html.splash-pending body.auth-page { background: #071b19; }
html.splash-pending .auth-shell { visibility: hidden; }
html.splash-pending, html.splash-active { overflow: hidden; }

.pwa-splash[hidden] { display: none !important; }
.pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: #081b2a url('../img/splash-landscape.webp') center / cover no-repeat;
    opacity: 1;
    transition: opacity .3s ease;
}
.pwa-splash.is-leaving { opacity: 0; pointer-events: none; }
.pwa-splash-video, .pwa-splash-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.pwa-splash-video { object-fit: cover; object-position: center; }
.pwa-splash-shade { background: linear-gradient(180deg, rgba(3, 19, 22, .45), rgba(4, 23, 24, .66) 55%, rgba(3, 18, 20, .85)); }
.pwa-splash-content {
    position: relative;
    z-index: 1;
    width: min(90vw, 640px);
    padding: 2rem;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.pwa-splash-content img {
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.6rem;
    padding: 10px;
    object-fit: contain;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
}
.pwa-splash-eyebrow {
    margin: 0 0 .6rem;
    color: #f4d977;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.pwa-splash-name { font-size: clamp(2.1rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.pwa-splash-caption { margin: .75rem 0 0; font-size: clamp(.95rem, 2vw, 1.15rem); }
.pwa-splash-progress { width: min(220px, 50vw); height: 3px; margin: 2rem auto 0; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.3); }
.pwa-splash-progress span { display: block; width: 100%; height: 100%; background: #f4d977; transform-origin: left; animation: splash-progress 5s linear forwards; }
.pwa-splash-skip {
    position: absolute;
    z-index: 2;
    right: 1.5rem;
    bottom: 1.5rem;
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    padding: .65rem 1rem;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 999px;
    background: rgba(3, 24, 23, .45);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.pwa-splash-skip:hover, .pwa-splash-skip:focus-visible { background: rgba(3, 24, 23, .8); outline-color: #f4d977; }
@keyframes splash-progress { to { transform: scaleX(0); } }
@media (max-width: 600px) {
    .pwa-splash { background-image: url('../img/splash-portrait.webp'); }
    .pwa-splash-content { padding: 1.5rem; }
    .pwa-splash-content img { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .pwa-splash, .pwa-splash-progress span { animation: none; transition: none; }
}
