body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0b0b10;
    color: #F9FAFB;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* The dove badge. 54px (75% of #1725's 72px, which was itself down from 120px) so the cowboy below
   is the star (#1730). Scoped to .logo so it never sizes the cowboy, which is the splash's second
   <img>. No short-screen override: at 54px the badge is already smaller than anything those queries
   shrink. */
body fuse-splash-screen img.logo {
    width: 54px;
    max-width: 54px;
}

body fuse-splash-screen .spinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    width: 56px;
}

body fuse-splash-screen .spinner > div {
    width: 12px;
    height: 12px;
    background-color: #1E96F7;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: fuse-bouncedelay 1s infinite ease-in-out both;
    animation: fuse-bouncedelay 1s infinite ease-in-out both;
}

body fuse-splash-screen .spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

body fuse-splash-screen .spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

/* THE COWBOY (#1725, Proposal A). The 404 page's white line art, shown IMMEDIATELY with the dove —
   not on the hold copy's 1.2s delay. It is an <img> in the markup, never a CSS background, so this
   stylesheet still fetches nothing (splash-costs-no-request.spec.ts). The markup carries
   width="615" height="560" so the box is reserved before the bytes land; height: auto here keeps
   that aspect ratio at the CSS width.
   margin-top IS the gap between the dove and the cowboy (#1730). The PNG has NO transparent padding
   on top (the hat's crown is drawn from row 0), so this margin is the whole gap in real pixels:
   24px here, 18px and 12px on the short-screen queries below, never zero. */
body fuse-splash-screen img.cowboy {
    display: block;
    width: 240px;
    max-width: calc(100vw - 48px);
    height: auto;
    margin-top: 24px;
}

body fuse-splash-screen .caption {
    margin: 16px 0 0;
    max-width: 22rem;
    padding: 0 24px;
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    text-wrap: balance;
}

@media (min-width: 768px) {
    body fuse-splash-screen img.cowboy {
        width: 260px;
    }

    body fuse-splash-screen .caption {
        font-size: 24px;
        line-height: 30px;
    }
}

/* SHORT SCREENS: the cowboy shrinks rather than pushing the hold copy off the bottom. The splash is
   position: fixed with no scroll, so anything that does not fit is simply never seen. */
@media (max-height: 700px) {
    body fuse-splash-screen img.cowboy {
        width: 170px;
        margin-top: 18px;
    }

    body fuse-splash-screen .spinner {
        margin-top: 28px;
    }
}

@media (max-height: 560px) {
    body fuse-splash-screen img.cowboy {
        width: 120px;
        margin-top: 12px;
    }

    body fuse-splash-screen .caption {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Cold-start message. The splash stays up until the first NavigationEnd, which on a scale-to-zero
   backend waits on the auth round-trip — so the user needs to know the wait is expected, not broken.
   It fades in AFTER 1.2s (opacity 0 until then, via animation-delay) so a warm load never flashes it. */
body fuse-splash-screen .hold {
    margin-top: 28px;
    max-width: 22rem;
    padding: 0 24px;
    text-align: center;
    opacity: 0;
    animation: fuse-hold-in 600ms cubic-bezier(0.4, 0, 0.2, 1) 1200ms forwards;
}

body fuse-splash-screen .hold .hold-title {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #E5E7EB;
}

body fuse-splash-screen .hold .hold-sub {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: #9CA3AF;
}

@keyframes fuse-hold-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body fuse-splash-screen .hold {
        animation-delay: 1200ms;
        animation-duration: 1ms;
        transform: none;
    }
}

@-webkit-keyframes fuse-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }
    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes fuse-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
