#site-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05051a;
    overflow: hidden;
}

#site-splash.is-exiting {
    animation: splashExit 0.35s ease-in forwards;
    pointer-events: none;
}

@keyframes splashExit {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.site-splash__stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.splash-logo {
    width: min(78vw, 420px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.splash-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.splash-logo__main {
    opacity: 0;
    animation: splashMainFade 1.1s ease-out forwards;
}

.splash-logo__child {
    opacity: 0;
    transform: translateX(100px);
    animation: splashChildSlideIn 1s ease-out 0.5s forwards;
}

@keyframes splashMainFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes splashChildSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.splash-active {
    overflow: hidden;
}

@media (max-width: 767px) {
    .splash-logo {
        width: min(86vw, 320px);
        gap: 14px;
    }

    .splash-logo__child {
        transform: translateX(64px);
        animation: splashChildSlideInMobile 1s ease-out 0.5s forwards;
    }

    @keyframes splashChildSlideInMobile {
        from {
            opacity: 0;
            transform: translateX(64px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    #site-splash {
        display: none !important;
    }

    body.splash-active {
        overflow: auto;
    }
}
