/* --- Feature 28: Loading Screen Styles --- */

/* The Full-Screen Overlay */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a; /* Fallback brand color (Dark Navy) */
    z-index: 10001; /* CRITICAL: Higher than #app-curtain (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Smooth Fade Out Transition */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

/* The Hidden State (Applied via JS) */
#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Let clicks pass through */
}

/* The Video Element */
#loading-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills screen without stretching */
    display: block;
}