#tg-page-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: #15171b;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0s;
}

#tg-page-transition.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.tg-pt-logo {
    display: block;
    width: min(220px, 52vw);
    height: auto;
}

.tg-pt-logo-text {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

#tg-page-transition:not(.is-hidden) .tg-pt-logo {
    animation:
        tg-pt-logo-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both,
        tg-pt-breathe 2.4s ease-in-out 0.7s infinite;
}

.tg-pt-line {
    width: min(140px, 36vw);
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.tg-pt-line::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 2px;
    background: #fff;
    animation: tg-pt-slide 1.1s ease-in-out infinite;
}

@keyframes tg-pt-logo-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes tg-pt-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

@keyframes tg-pt-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    #tg-page-transition:not(.is-hidden) .tg-pt-logo,
    .tg-pt-line::after {
        animation: none;
    }
}