body.tl-lock {
    overflow: hidden;
}

.tl {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 40%, rgba(23, 47, 143, 0.62) 0%, rgba(6, 12, 40, 0.82) 100%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    backdrop-filter: blur(10px) saturate(130%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.tl.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: progress;
    transition: opacity 0.28s ease;
}

.tl-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: tl-float 7s ease-in-out infinite;
}

.tl-glow--a {
    width: 360px;
    height: 360px;
    left: 8%;
    top: 12%;
    background: #2955e8;
}

.tl-glow--b {
    width: 300px;
    height: 300px;
    right: 6%;
    bottom: 8%;
    background: #6c8cff;
    animation-delay: -3s;
}

.tl-card {
    position: relative;
    width: min(420px, 100%);
    padding: 38px 32px 28px;
    text-align: center;
    color: #fff;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(14px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tl.is-on .tl-card {
    transform: none;
}

.tl-orbit {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 26px;
}

.tl-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.tl-ring--1 {
    border-top-color: #fff;
    border-right-color: rgba(255, 255, 255, 0.35);
    animation: tl-spin 1.1s linear infinite;
}

.tl-ring--2 {
    inset: 12px;
    border-bottom-color: #9db4ff;
    border-left-color: rgba(157, 180, 255, 0.35);
    animation: tl-spin 1.6s linear infinite reverse;
}

.tl-core {
    position: absolute;
    inset: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a73ff 0%, #2047c9 100%);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 14px 30px -8px rgba(41, 85, 232, 0.9);
    font-size: 24px;
    animation: tl-pulse 1.6s ease-in-out infinite;
}

.tl-dot {
    position: absolute;
    top: -3px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.9);
    transform-origin: 5px 59px;
    animation: tl-spin 2.2s linear infinite;
}

.tl-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tl-text {
    min-height: 24px;
    margin: 8px 0 0;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.tl-text.is-out {
    opacity: 0;
    transform: translateY(6px);
}

.tl-bar {
    height: 5px;
    margin: 24px 6px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.tl-bar span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: tl-slide 1.3s ease-in-out infinite;
}

.tl-hint {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes tl-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes tl-pulse {
    50% {
        transform: scale(1.08);
    }
}

@keyframes tl-slide {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(380%);
    }
}

@keyframes tl-float {
    50% {
        transform: translate(24px, -20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-ring,
    .tl-dot,
    .tl-core,
    .tl-bar span,
    .tl-glow {
        animation-duration: 3s;
    }
}
