/* ════════════════════════════════════════════════════════════════ */
/* SPLASH SCREEN GLOBAL - Carga del juego y videos                  */
/* ════════════════════════════════════════════════════════════════ */

#globalSplash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

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

#globalSplash.removing {
    display: none;
}

#splashLogo {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: auto;
    animation: splashPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes splashPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Spinner alternativo (comentado) */
#splashSpinner {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: splashSpin 1s linear infinite;
    display: none;
}

@keyframes splashSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Modo oscuro - se aplica automáticamente */
@media (prefers-color-scheme: dark) {
    #globalSplash {
        background-color: #000000;
    }
}
