html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* The base of DHBackground's night sky. Set here as well as on #splash so the page never
       flashes white before the stylesheet's own paint. */
    background: #04010F;
}

#splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #04010F;
    z-index: 1;
    /* Faded out rather than cut, so the handover to the first composed frame isn't a jump. */
    transition: opacity 220ms ease-out;
}

#splash.hidden {
    opacity: 0;
    pointer-events: none;
}

#splash-mark {
    width: 120px;
    height: 120px;
    /* Matches DHSplash's pulse (1400ms, reversing, 0.92–1.0 scale, 0.55–1.0 alpha). */
    animation: splash-pulse 2800ms linear infinite;
}

@keyframes splash-pulse {
    0% { transform: scale(0.92); opacity: 0.55; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.92); opacity: 0.55; }
}
