/* ===================================
   SPLASH INTRO — Flaming Lion Entrance
   =================================== */

/* Full-screen overlay */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo container */
.splash-logo-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.3);
    filter: brightness(0);
    animation: splashLogoEnter 1.2s ease forwards;
    animation-delay: 0.3s;
}

/* Ring of fire around the logo */
.splash-fire-ring {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    opacity: 0;
    animation: fireRingBurst 2s ease forwards;
    animation-delay: 1s;
}

.splash-fire-ring::before,
.splash-fire-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.splash-fire-ring::before {
    border: 3px solid transparent;
    border-top-color: #FF6A00;
    border-right-color: #FF3C00;
    animation: fireRingSpin 1.5s linear infinite;
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.6), inset 0 0 30px rgba(255, 106, 0, 0.2);
}

.splash-fire-ring::after {
    border: 2px solid transparent;
    border-bottom-color: #FFD700;
    border-left-color: #FF6A00;
    animation: fireRingSpin 2s linear infinite reverse;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Flame burst particles */
.splash-flames {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.splash-flame {
    position: absolute;
    width: 6px;
    height: 20px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    left: 50%;
    top: 50%;
    transform-origin: center center;
}

/* Roar shockwave */
.splash-shockwave {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 106, 0, 0.8);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 1;
}

.splash-shockwave.burst {
    animation: shockwaveBurst 1s ease-out forwards;
}

.splash-shockwave.burst-2 {
    animation: shockwaveBurst 1.2s ease-out 0.15s forwards;
    border-color: rgba(255, 215, 0, 0.6);
}

.splash-shockwave.burst-3 {
    animation: shockwaveBurst 1.4s ease-out 0.3s forwards;
    border-color: rgba(255, 60, 0, 0.4);
}

/* Screen shake on roar */
.splash-shake {
    animation: screenShake 0.5s ease-out;
}

/* Splash title */
.splash-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #FF6A00;
    text-align: center;
    opacity: 0;
    margin-top: 30px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow:
        0 0 7px #FF6A00,
        0 0 15px #FF6A00,
        0 0 30px #FF3C00,
        0 0 50px rgba(255,60,0,0.4);
    animation: splashTitleFade 1s ease forwards, neonTextPulse 3s ease-in-out 2.8s infinite;
}

/* ---- Keyframes ---- */

@keyframes splashLogoEnter {
    0% {
        opacity: 0;
        transform: scale(0.3);
        filter: brightness(0);
    }
    40% {
        opacity: 1;
        transform: scale(1.15);
        filter: brightness(1.5) drop-shadow(0 0 30px rgba(255, 106, 0, 0.8));
    }
    60% {
        transform: scale(0.95);
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 106, 0, 0.6));
    }
    80% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 106, 0, 0.5));
    }
}

@keyframes fireRingBurst {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
    60% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes fireRingSpin {
    to { transform: rotate(360deg); }
}

@keyframes shockwaveBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-4px, 2px); }
    20% { transform: translate(4px, -2px); }
    30% { transform: translate(-3px, -3px); }
    40% { transform: translate(3px, 3px); }
    50% { transform: translate(-2px, 1px); }
    60% { transform: translate(2px, -1px); }
    70% { transform: translate(-1px, 2px); }
    80% { transform: translate(1px, -1px); }
    90% { transform: translate(0, 1px); }
}

@keyframes flameBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-120px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200px) scale(0.3);
    }
}

@keyframes splashTitleFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
        letter-spacing: 8px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 4px;
    }
}

/* Flame glow background pulse during splash */
@keyframes splashBgPulse {
    0%, 100% {
        background: radial-gradient(circle at center, rgba(255, 60, 0, 0) 0%, #000 100%);
    }
    50% {
        background: radial-gradient(circle at center, rgba(255, 60, 0, 0.08) 0%, #000 70%);
    }
}

.splash-overlay {
    animation: splashBgPulse 2s ease-in-out infinite;
    animation-delay: 1s;
}
