/* ==========================================================================
   GLASS MEMORY - ADVANCED CYBERPUNK GLASSMORPHISM STYLESHEET
   State-of-the-art Web Visuals, High-End Animations & Ultra-Crisp Responsive UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@500;700;800&display=swap');

/* Dynamic Gradient Property for Smooth CSS Angle Animations */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --bg-dark: #0c1836;
    --bg-glass-base: rgba(18, 36, 76, 0.85);
    --bg-glass-heavy: rgba(22, 45, 95, 0.94);
    --bg-glass-light: rgba(35, 65, 125, 0.75);
    
    --border-glass: rgba(56, 189, 248, 0.45);
    --border-glass-bright: rgba(56, 189, 248, 0.95);
    --border-glass-red: rgba(255, 60, 110, 0.85);
    --border-glass-green: rgba(16, 185, 129, 0.85);
    --border-glass-gold: rgba(251, 191, 36, 0.85);

    --neon-cyan: #38bdf8;
    --neon-cyan-bright: #00f0ff;
    --neon-cyan-glow: rgba(56, 189, 248, 0.6);
    --neon-green: #10b981;
    --neon-green-glow: rgba(16, 185, 129, 0.6);
    --neon-red: #ff0055;
    --neon-red-glow: rgba(255, 0, 85, 0.75);
    --neon-magenta: #ec4899;
    --neon-purple: #a855f7;
    --neon-gold: #fbbf24;

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --font-title: 'Outfit', sans-serif;
    --font-ui: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   RESET & VIEWPORT
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, #172a5a 0%, #0c1838 60%, #081028 100%);
    font-family: var(--font-ui);
    color: var(--text-primary);
    touch-action: none;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* ==========================================================================
   AMBIENT BACKGROUND LIGHTING & CYBER GRID
   ========================================================================== */
.ambient-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    animation: orbFloat 16s ease-in-out infinite alternate;
}

.orb-cyan {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0) 70%);
    top: -100px;
    left: 10%;
    animation-duration: 12s;
}

.orb-magenta {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #f43f5e 0%, rgba(244, 63, 94, 0) 70%);
    bottom: -100px;
    right: 8%;
    animation-duration: 18s;
    animation-delay: -4s;
}

.orb-purple {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
    top: 30%;
    right: 30%;
    animation-duration: 15s;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1.0); }
    50% { transform: translate(60px, 40px) scale(1.15); }
    100% { transform: translate(-40px, 70px) scale(0.9); }
}

.cyber-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.8;
}

.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12),
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.35;
    pointer-events: none;
}

/* ==========================================================================
   GLASSMORPHISM BASE SYSTEM
   ========================================================================== */
.glass-panel {
    background: var(--bg-glass-base);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(0, 240, 255, 0.06);
    position: relative;
}

/* ==========================================================================
   MAIN MENU SCREEN
   ========================================================================== */
.screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(6, 12, 24, 0.45) 0%, rgba(4, 6, 10, 0.88) 85%);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 540px;
    width: 90%;
    padding: 44px 36px;
    border-radius: 28px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 240, 255, 0.18),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
    animation: menuCardIn 0.5s var(--ease-out-expo);
}

@keyframes menuCardIn {
    from { opacity: 0; transform: scale(0.94) translateY(20px); }
    to { opacity: 1; transform: scale(1.0) translateY(0); }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: dotPulse 1.4s ease-in-out infinite alternate;
}

@keyframes dotPulse {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.3); }
}

.title-container {
    position: relative;
    margin-bottom: 12px;
}

.game-title {
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 6.5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 0%, #dff9ff 40%, #00f0ff 75%, #00aaff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.45));
}

.game-subtitle {
    font-size: clamp(1.0rem, 2.4vw, 1.2rem);
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 38px;
}

.subtitle-quote {
    color: var(--neon-cyan);
    font-weight: 700;
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 360px;
}



/* ==========================================================================
   CYBER BUTTONS & INTERACTIVE STATES
   ========================================================================== */
.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    font-family: var(--font-title);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s var(--ease-out-expo);
    border: 1.5px solid transparent;
}

.btn:active {
    transform: translateY(1px) scale(0.97);
    transition-duration: 0.08s;
}

.btn-icon {
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px) scale(1.15);
}

/* Primary High-Brilliance Blue-Cyan Glow Button */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
    border: 1.5px solid #38bdf8;
    color: #ffffff;
    box-shadow: 
        0 10px 30px rgba(14, 165, 233, 0.55),
        0 0 25px rgba(56, 189, 248, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 60%, #0284c7 100%);
    border-color: #ffffff;
    box-shadow: 
        0 15px 40px rgba(14, 165, 233, 0.75),
        0 0 40px rgba(56, 189, 248, 0.85),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
    transform: translateY(-3px) scale(1.02);
}

/* Secondary High-Contrast Cyber Button */
.btn-secondary {
    background: linear-gradient(135deg, rgba(30, 56, 115, 0.8) 0%, rgba(18, 38, 85, 0.9) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    color: #ffffff;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(46, 85, 165, 0.9) 0%, rgba(28, 56, 125, 0.95) 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 
        0 12px 35px rgba(56, 189, 248, 0.5),
        0 0 25px rgba(56, 189, 248, 0.35);
    transform: translateY(-3px) scale(1.02);
}

/* Accent Luminous Emerald Button */
.btn-accent {
    background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
    border: 1.5px solid #34d399;
    color: #ffffff;
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.55),
        0 0 25px rgba(52, 211, 153, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
    border-color: #ffffff;
    box-shadow: 
        0 15px 40px rgba(16, 185, 129, 0.75),
        0 0 40px rgba(52, 211, 153, 0.85),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
    transform: translateY(-3px) scale(1.02);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.35) 0%, rgba(200, 0, 65, 0.5) 100%);
    border: 1.5px solid var(--neon-red);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(255, 60, 110, 0.55) 0%, rgba(255, 0, 85, 0.7) 100%);
    color: #ffffff;
    box-shadow: 0 0 35px rgba(255, 0, 85, 0.7);
    transform: translateY(-3px) scale(1.02);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Button Glass Shimmer Reflection */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.btn:hover .btn-shimmer {
    left: 140%;
}

/* Compact Cyber Button */
.btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    border-radius: 12px;
    gap: 8px;
}

/* ==========================================================================
   GAMEPLAY HUD
   ========================================================================= */
#game-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
}

.hud-top-bar {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.hud-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    border-radius: 40px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}

.hud-status-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.hud-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hud-level-tag {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--neon-cyan);
}

.hud-progress-wrapper {
    width: 110px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.hud-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: width 0.35s ease;
}

.hud-progress-tag {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.0rem;
    color: #ffffff;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hud-buttons {
    display: flex;
    gap: 12px;
}

.hud-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hud-icon-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: scale(1.1);
}

.hud-icon-btn:active {
    transform: scale(0.95);
    transition-duration: 0.08s;
}

/* ==========================================================================
   SCREEN-SPACE MEMORIZATION & REVEAL COUNTDOWN HUD (LEFT CORNER BELOW LEVEL PILL)
   ========================================================================== */
.top-notice-overlay {
    position: fixed;
    top: 86px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 6;
    pointer-events: none;
    transition: all 0.3s ease;
}

.memorize-banner-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 12px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 30, 86, 0.6);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.75),
        0 0 30px rgba(255, 30, 86, 0.3);
    overflow: hidden;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.scan-anim-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff1e56, transparent);
    animation: scanAnim 1.8s linear infinite;
}

@keyframes scanAnim {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100px); opacity: 0; }
}

.memorize-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-red);
    margin-bottom: 2px;
}

.warn-icon {
    animation: warnFlash 1.0s ease-in-out infinite alternate;
}

@keyframes warnFlash {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.counter-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    height: auto;
    margin: 2px 0;
}

.memorize-timer {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 0 30px rgba(255, 30, 86, 0.9),
        0 0 15px rgba(255, 30, 86, 1);
    line-height: 1;
}

.memorize-subtext {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-top: 2px;
}

.pulse-pop {
    animation: popAnim 0.35s var(--ease-spring);
}

@keyframes popAnim {
    0% { transform: scale(1.35); opacity: 0.6; }
    100% { transform: scale(1.0); opacity: 1; }
}

/* Path Reveal Banner (Stage 2) */
.reveal-banner-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 12px 20px;
    border-radius: 18px;
    border-color: rgba(0, 255, 170, 0.6);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.75),
        0 0 30px rgba(0, 255, 170, 0.3);
    overflow: hidden;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.reveal-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffaa, transparent);
    animation: scanAnim 1.8s linear infinite;
}

.reveal-badge {
    color: var(--neon-green);
}

.reveal-timer {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.9);
}

.reveal-subtext {
    color: #6ee7b7;
}

/* ==========================================================================
   ABILITIES HUD ACTION GROUP & BUTTONS (STAGE 2 & NEURAL ORACLE)
   ========================================================================== */
.abilities-hud-group {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    pointer-events: none;
}

.path-reveal-action-btn,
.neural-oracle-action-btn {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 26px;
    min-width: 210px;
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.28s var(--ease-out-expo);
    pointer-events: auto;
    overflow: visible;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Path Reveal Button (Cyan) */
.path-reveal-action-btn {
    border: 1px solid var(--neon-cyan);
    background: rgba(8, 20, 42, 0.88);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(0, 240, 255, 0.35);
}

.radar-pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid var(--neon-cyan);
    border-radius: 24px;
    opacity: 0;
    animation: radarPulse 2.0s ease-out infinite;
    pointer-events: none;
}

@keyframes radarPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.path-reveal-action-btn:hover:not(.disabled) {
    transform: translateY(-4px) scale(1.03);
    border-color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.55);
    background: rgba(0, 240, 255, 0.22);
}

/* Neural Oracle Button (Amethyst / Violet) */
.neural-oracle-action-btn {
    border: 1.5px solid #a855f7;
    background: rgba(24, 10, 46, 0.9);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(168, 85, 247, 0.38);
}

.oracle-pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1.5px solid rgba(168, 85, 247, 0.7);
    border-radius: 24px;
    animation: oraclePulseRing 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}

@keyframes oraclePulseRing {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.15); opacity: 0; }
}

.neural-oracle-action-btn:hover:not(.disabled) {
    transform: translateY(-4px) scale(1.03);
    border-color: #f3e8ff;
    box-shadow: 0 20px 50px rgba(192, 132, 252, 0.6);
    background: rgba(168, 85, 247, 0.28);
}

.reveal-btn-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oracle-symbol {
    color: #c084fc;
    text-shadow: 0 0 12px #c084fc;
}

.reveal-hotkey {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

.neural-oracle-action-btn .reveal-hotkey {
    color: #d8b4fe;
}

.reveal-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.oracle-dot {
    background-color: #c084fc;
    box-shadow: 0 0 10px #c084fc;
}

.reveal-btn-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-green);
}

.path-reveal-action-btn.disabled,
.neural-oracle-action-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.path-reveal-action-btn.disabled .radar-pulse-ring,
.neural-oracle-action-btn.disabled .oracle-pulse-ring {
    display: none;
}

.path-reveal-action-btn.disabled .status-indicator-dot,
.neural-oracle-action-btn.disabled .status-indicator-dot {
    background-color: var(--text-muted);
    box-shadow: none;
}

/* (Victory floating HUD bar removed by owner request - level completion
   presents only the full modals.) */

.btn-sm {
    padding: 10px 18px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    border-radius: 12px;
}

/* ==========================================================================
   MOBILE TOUCH CONTROLS
   ========================================================================== */
#touch-controls {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 6;
    display: flex;
    gap: 16px;
    pointer-events: auto;
}

.touch-jump-btn {
    width: 120px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.18s ease;
}

.touch-jump-btn:active {
    transform: scale(0.93);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, rgba(20, 42, 92, 0.65) 0%, rgba(10, 22, 52, 0.78) 100%);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 580px;
    width: 90%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 38px 32px;
    border-radius: 26px;
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    background: linear-gradient(160deg, rgba(24, 48, 102, 0.94) 0%, rgba(14, 28, 64, 0.97) 100%);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(56, 189, 248, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
    animation: modalScaleIn 0.35s var(--ease-out-expo);
    text-align: center;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to { opacity: 1; transform: scale(1.0) translateY(0); }
}

.btn-close-modal {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    color: #ffffff;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(1.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-pre-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 4px;
}

/* ==========================================================================
   STAGE CARDS
   ========================================================================== */
.stage-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stage-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.28s var(--ease-out-expo);
}

.stage-card:hover:not(.locked) {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 240, 255, 0.35);
}

.stage-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.stage-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 900;
    background: rgba(12, 20, 36, 0.9);
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.cyan-glow {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.magenta-glow {
    color: var(--neon-magenta);
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.gold-glow {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.stage-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.stage-info h3 {
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    text-transform: uppercase;
}

.meta-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.stage-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-unlocked {
    background: rgba(0, 255, 170, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 170, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
}

/* ==========================================================================
   LEVEL SELECT GRID
   ========================================================================== */
.level-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90px;
    border-radius: 18px;
    background: rgba(14, 22, 38, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.25);
    cursor: pointer;
    transition: all 0.24s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.level-card.unlocked:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.15);
}

.level-card.completed {
    border-color: rgba(0, 255, 170, 0.5);
    background: rgba(0, 255, 170, 0.08);
}

.level-card.completed::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--neon-green);
}

.level-card.locked {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.level-card-num {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 900;
}

.level-card-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.level-card.completed .level-card-status {
    color: var(--neon-green);
}

/* ==========================================================================
   TRAINING GUIDE / HOW TO PLAY
   ========================================================================== */

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.guide-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 18px 24px;
    border-radius: 18px;
    background: rgba(14, 28, 60, 0.78);
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    text-align: left;
    transition: all 0.25s var(--ease-out-expo);
}

.guide-item:hover {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    background: rgba(18, 38, 80, 0.92);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(56, 189, 248, 0.22);
}

.guide-badge {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 900;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 16, 36, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.guide-badge.cyan-glow {
    color: var(--neon-cyan);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
}

.guide-badge.green-glow {
    color: var(--neon-green);
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.35);
}

.guide-badge.red-glow {
    color: var(--neon-red);
    border-color: rgba(255, 0, 85, 0.7);
    box-shadow: 0 0 22px rgba(255, 0, 85, 0.35);
}

.guide-badge.gold-glow {
    color: var(--neon-gold);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.35);
}

.guide-badge.purple-glow {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.75);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.4);
}

.guide-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-text h3 {
    font-family: var(--font-title);
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
}

.guide-text p {
    font-family: var(--font-ui);
    font-size: 0.96rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.55;
    letter-spacing: 0.2px;
    margin: 0;
}

.hl-red {
    color: #ff3366;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.hl-cyan {
    color: #38bdf8;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.hl-gold {
    color: #fbbf24;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.hl-purple {
    color: #c084fc;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.45);
}

/* ==========================================================================
   THE GOAL OF GM MODAL
   ========================================================================== */
.goal-modal-card {
    max-width: 620px;
}

.goal-writeup-card {
    position: relative;
    padding: 28px 30px;
    border-radius: 20px;
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(150deg, rgba(20, 42, 90, 0.8) 0%, rgba(12, 26, 60, 0.9) 100%);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(56, 189, 248, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.35);
    margin: 20px 0 28px 0;
    text-align: left;
    overflow: hidden;
}

.goal-quote-mark {
    position: absolute;
    top: -10px;
    right: 18px;
    font-family: var(--font-title);
    font-size: 7rem;
    font-weight: 900;
    color: rgba(56, 189, 248, 0.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.goal-paragraph {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.65;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.goal-lead {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    border-left: 3px solid var(--neon-cyan);
    padding-left: 14px;
    margin-bottom: 18px;
}

.goal-punchline {
    font-size: 1.15rem;
    font-weight: 800;
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    margin: 16px 0;
}

.goal-conclusion {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0;
}

/* ==========================================================================
   VICTORY & GAME OVER MODALS
   ========================================================================== */
.modal-pre-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.text-red { color: #ff3366; text-shadow: 0 0 25px rgba(255, 51, 102, 0.7); }
.text-green { color: #10b981; text-shadow: 0 0 25px rgba(16, 185, 129, 0.7); }
.text-gold { color: #fbbf24; text-shadow: 0 0 25px rgba(251, 191, 36, 0.7); }

.red-accent-panel {
    border-color: rgba(255, 51, 102, 0.65);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 51, 102, 0.3),
        inset 0 1px 2px rgba(255, 180, 200, 0.4);
}

.green-accent-panel {
    border-color: rgba(16, 185, 129, 0.65);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(16, 185, 129, 0.3),
        inset 0 1px 2px rgba(200, 255, 230, 0.4);
}

.gold-accent-panel {
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(251, 191, 36, 0.3),
        inset 0 1px 2px rgba(255, 240, 200, 0.4);
}

.modal-stat-text {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 26px;
    letter-spacing: 0.5px;
}

.unlock-award-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 18px;
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
    margin-bottom: 28px;
    text-align: left;
}

.unlock-icon {
    font-size: 2.2rem;
}

.unlock-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--neon-gold);
}

.unlock-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    margin: 2px 0 4px 0;
}

.unlock-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* ==========================================================================
   UTILITY & ANIMATIONS
   ========================================================================== */
.hidden {
    display: none !important;
}

.shake-anim {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 768px) {
    .menu-card {
        padding: 34px 22px;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .hud-top-bar {
        top: 14px;
        left: 14px;
        right: 14px;
    }

    .hud-key-hints {
        display: none;
    }

    .hud-pill {
        padding: 8px 16px;
        gap: 10px;
    }

    .hud-progress-wrapper {
        width: 70px;
    }

    .hud-level-tag {
        font-size: 0.8rem;
    }

    .hud-progress-tag {
        font-size: 0.85rem;
    }

    .top-notice-overlay {
        top: 72px;
        left: 14px;
    }

    .memorize-timer {
        font-size: 2.0rem;
    }

    .memorize-banner-box,
    .reveal-banner-box {
        padding: 10px 16px;
    }

    .abilities-hud-group {
        bottom: 18px;
        right: 18px;
        gap: 10px;
    }

    .path-reveal-action-btn,
    .neural-oracle-action-btn {
        padding: 10px 18px;
        min-width: 170px;
    }

    .level-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .level-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .guide-item {
        padding: 14px 16px;
        gap: 14px;
    }

    .guide-badge {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    .guide-text h3 {
        font-size: 1.05rem;
    }

    .guide-text p {
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   REALITY SHIFT GLITCH OVERLAY (LEVEL 19)
   ========================================================================== */
.reality-shift-overlay {
    position: fixed;
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 120;
    pointer-events: none;
    animation: glitchIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reality-shift-box {
    background: rgba(15, 6, 28, 0.88);
    border: 1.5px solid #a855f7;
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.45), inset 0 0 20px rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 16px 28px;
    text-align: center;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.glitch-icon {
    font-size: 2rem;
    color: #f43f5e;
    text-shadow: 0 0 16px #f43f5e;
    animation: iconPulse 0.8s infinite alternate;
}

.reality-shift-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #f43f5e;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(244, 63, 94, 0.6);
}

.reality-shift-desc {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 1px;
}

.reality-shift-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: #a855f7;
    letter-spacing: 2px;
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
        filter: blur(8px);
    }
    50% {
        transform: translate(-49%, -48%) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   STEP DECAY WARNING HUD (LEVEL 18)
   ========================================================================== */
.decay-warning-hud {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    pointer-events: none;
    animation: decayHudPulse 0.5s infinite alternate;
}

.decay-warning-pill {
    background: rgba(30, 8, 12, 0.85);
    border: 1px solid #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
}

.decay-flame {
    font-size: 1.1rem;
}

.decay-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 1.5px;
}

.decay-seconds {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ff2a55;
    text-shadow: 0 0 8px #ff2a55;
}

@keyframes decayHudPulse {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.04); }
}

/* ==========================================================================
   ABILITY DENIED ERROR FEEDBACK (LEVEL 20)
   ========================================================================== */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

.shake-error {
    animation: shakeError 0.4s ease-in-out !important;
    border-color: #ff0055 !important;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.9) !important;
}

/* ==========================================================================
   NEURAL ORACLE HOLOGRAPHIC OVERLAY & CIPHER MODAL
   ========================================================================== */
.oracle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 3, 14, 0.82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    padding: 24px;
    animation: oracleOverlayFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.oracle-box {
    position: relative;
    width: 100%;
    max-width: 620px;
    border-radius: 24px;
    padding: 38px 36px 32px;
    background: linear-gradient(150deg, rgba(28, 12, 54, 0.95) 0%, rgba(12, 6, 26, 0.98) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.65);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(168, 85, 247, 0.38),
        inset 0 1px 2px rgba(233, 213, 255, 0.45);
    text-align: center;
    animation: oracleBoxPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

.btn-close-oracle {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(192, 132, 252, 0.45);
    background: rgba(168, 85, 247, 0.15);
    color: #e9d5ff;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-out-expo);
    z-index: 2;
}

.btn-close-oracle:hover {
    background: rgba(192, 132, 252, 0.35);
    border-color: #f3e8ff;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.6);
}

.oracle-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.oracle-pre-badge {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #c084fc;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}

.oracle-title {
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #f3e8ff;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 22px rgba(192, 132, 252, 0.7);
}

.oracle-body {
    margin: 24px 0 22px;
    padding: 24px 28px;
    border-radius: 18px;
    background: rgba(8, 4, 18, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.38);
    box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.5);
}

.oracle-text {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 700;
    color: #e9d5ff;
    line-height: 1.7;
    letter-spacing: 0.3px;
    font-style: italic;
    text-shadow: 0 0 12px rgba(216, 180, 254, 0.3);
    margin: 0;
}

.oracle-footer {
    margin-top: 8px;
}

.oracle-hint {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #a855f7;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s;
    animation: oracleHintGlow 1.4s infinite alternate;
}

.oracle-hint:hover {
    color: #f3e8ff;
    text-shadow: 0 0 10px #c084fc;
}

@keyframes oracleOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes oracleBoxPop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes oracleHintGlow {
    0% { opacity: 0.65; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); }
}

/* ==========================================================================
   KINETIC ROW MAG-LEV WARNING & STEP DECAY HUD (LEVEL 18 & 20)
   ========================================================================== */
.kinetic-warning-hud,
.decay-warning-hud {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    pointer-events: none;
    animation: kineticPillDrop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kinetic-warning-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(8, 20, 48, 0.88);
    border: 1.5px solid rgba(0, 240, 255, 0.7);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.65),
        0 0 25px rgba(0, 240, 255, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.kinetic-symbol {
    font-size: 1.1rem;
    font-weight: 900;
    color: #00f0ff;
    animation: kineticSymbolSpin 2.5s linear infinite;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.kinetic-label {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.kinetic-seconds {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #00ffaa;
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.7);
}

.decay-warning-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(48, 8, 20, 0.88);
    border: 1.5px solid rgba(255, 0, 85, 0.7);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.65),
        0 0 25px rgba(255, 0, 85, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.decay-flame {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ff0055;
    animation: pulsePop 0.8s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.8);
}

.decay-label {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.decay-seconds {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ff3366;
    text-shadow: 0 0 12px rgba(255, 51, 102, 0.7);
}

@keyframes kineticPillDrop {
    0% {
        opacity: 0;
        transform: translate(-50%, -16px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

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

