/* Splash Screen Styles - Cyberpunk Theme */
#splash {
    display: none; /* Hidden by default, shown by Splash.js */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 55; /* Between loader (60) and menu (50) */
    animation: splashFade 3s ease-in-out forwards;
}

/* Fade in/out animation - 3 seconds total */
@keyframes splashFade {
    0% { opacity: 0; }
    16.67% { opacity: 1; } /* Fade in: 0.5s (30/180 frames) */
    83.33% { opacity: 1; } /* Hold: 2s (150/180 frames) */
    100% { opacity: 0; } /* Fade out: 0.5s (30/180 frames) */
}

/* Animated background with cyberpunk grid */
.splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0030 0%, #0a0015 100%);
    overflow: hidden;
}

/* Grid lines overlay */
.splash-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(0, 255, 255, 0.15) 39px,
            rgba(0, 255, 255, 0.15) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            rgba(0, 255, 255, 0.15) 39px,
            rgba(0, 255, 255, 0.15) 40px
        );
    background-size: 100% 100%;
    pointer-events: none;
    animation: gridScroll 8s linear infinite;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Scanlines effect */
.splash-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.02) 0px,
        rgba(0, 255, 255, 0.02) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
}

/* Splash content container */
.splash-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Logo with neon glow and glitch effect - 72px * UI_SCALE */
.splash-logo {
    position: absolute;
    top: calc(350px * var(--ui-scale));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.logo-main {
    display: block;
    font-family: monospace;
    font-size: calc(72px * var(--ui-scale));
    font-weight: bold;
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
    animation: logoPulse 2s ease-in-out infinite;
}

/* Glitch overlay for logo */
.logo-glitch {
    position: absolute;
    top: -3px;
    left: 4px;
    font-family: monospace;
    font-size: calc(72px * var(--ui-scale));
    font-weight: bold;
    color: #ff0099;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes logoPulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff;
    }
    50% { 
        text-shadow: 
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff,
            0 0 80px #00ffff;
    }
}

/* Subtitle - 18px * UI_SCALE */
.splash-subtitle {
    position: absolute;
    top: calc(420px * var(--ui-scale));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: monospace;
    font-size: calc(18px * var(--ui-scale));
    color: #ff00ff;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff;
}

/* Skip hint - 14px * UI_SCALE - fade in after 1s */
.splash-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: monospace;
    font-size: calc(14px * var(--ui-scale));
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: hintFade 2s ease-in-out forwards;
    opacity: 0;
}

@keyframes hintFade {
    0%, 33.33% { opacity: 0; } /* Wait 1s (60/180 frames) */
    100% { opacity: 1; }
}
