/* ==========================================================================
   QuantNova.store - Premium 2D Quantum Game & Portal CSS Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-dark: #050714;
    --bg-card: rgba(14, 18, 41, 0.75);
    --bg-card-hover: rgba(22, 29, 66, 0.9);
    --border-cyan: rgba(0, 240, 255, 0.3);
    --border-violet: rgba(177, 60, 255, 0.3);
    
    --neon-cyan: #00f0ff;
    --neon-purple: #b13cff;
    --neon-amber: #ffaa00;
    --neon-pink: #ff007f;
    --neon-green: #00ff88;

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --neon-glow-cyan: 0 0 15px rgba(0, 240, 255, 0.5);
    --neon-glow-purple: 0 0 15px rgba(177, 60, 255, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080b1e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
}

/* Animated Starfield Background Canvas */
#bg-starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(5, 7, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: #000;
    box-shadow: var(--neon-glow-cyan);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0,240,255,0.4); }
    100% { box-shadow: 0 0 22px rgba(177,60,255,0.8); }
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-domain-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
    text-shadow: var(--neon-glow-cyan);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-icon.active {
    background: rgba(177, 60, 255, 0.2);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: var(--neon-glow-purple);
}

/* Main Container Layout */
.main-wrapper {
    margin-top: 70px;
    padding-bottom: 4rem;
}

/* Hero Section */
.hero-section {
    padding: 2.5rem 2rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(177, 60, 255, 0.1);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-tag span.dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Probe Ship & Difficulty Selector Toolbar */
.game-toolbar {
    max-width: 1100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(10, 14, 32, 0.8);
    border: 1px solid var(--border-cyan);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    font-family: var(--font-sub);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.probe-selector, .diff-selector {
    display: flex;
    gap: 0.4rem;
}

.probe-btn, .diff-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.probe-btn:hover, .diff-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
}

.probe-btn.active {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.diff-btn.active {
    background: rgba(177, 60, 255, 0.25);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(177, 60, 255, 0.4);
}

/* Game Frame Window & Fullscreen Handling */
.game-viewport-card {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 16px;
    box-shadow: var(--glass-shadow), 0 0 25px rgba(0, 240, 255, 0.15);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.game-viewport-card.fullscreen-mode {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.game-viewport-card.fullscreen-mode .game-canvas-container {
    height: calc(100vh - 120px);
}

.game-header-bar {
    background: rgba(10, 14, 32, 0.95);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    font-family: var(--font-sub);
}

.game-title-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-level-badge {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: #000;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

.game-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.game-stats-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-item.score { color: var(--neon-amber); }
.stat-item.energy { color: var(--neon-green); }
.stat-item.high-score { color: var(--neon-cyan); }

.game-canvas-container {
    position: relative;
    width: 100%;
    height: 480px;
    background: #02030a;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Floating Fullscreen Trigger Button inside canvas */
.btn-fullscreen-trigger {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(5, 7, 20, 0.75);
    border: 1px solid var(--border-cyan);
    color: var(--neon-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 15;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-fullscreen-trigger:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: var(--neon-glow-cyan);
}

/* Game Start / GameOver Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 20, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.game-overlay.hidden {
    display: none;
}

.overlay-hero-banner {
    max-width: 320px;
    border-radius: 12px;
    border: 2px solid var(--neon-cyan);
    box-shadow: var(--neon-glow-cyan);
    margin-bottom: 1rem;
}

.overlay-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: var(--neon-glow-cyan);
}

.overlay-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #00a2ff);
    color: #040817;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: var(--neon-glow-cyan);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.8);
}

.btn-secondary {
    background: rgba(177, 60, 255, 0.15);
    border: 1px solid var(--neon-purple);
    color: #fff;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(177, 60, 255, 0.3);
    box-shadow: var(--neon-glow-purple);
}

/* Touch Controls Bar for Mobile */
.mobile-controls {
    display: none;
    background: rgba(10, 14, 32, 0.95);
    padding: 0.8rem 1.5rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
}

.dpad {
    display: flex;
    gap: 0.5rem;
}

.btn-touch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-cyan);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: manipulation;
}

.btn-touch:active {
    background: var(--neon-cyan);
    color: #000;
}

/* Controls Hint Bar */
.controls-hint-bar {
    background: rgba(5, 8, 22, 0.95);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-family: var(--font-sub);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--neon-cyan);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.75rem;
}

/* Stats Counter Section */
.stats-banner-container {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.stat-card-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    padding: 1.2rem;
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-widget-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 0.2rem;
}

.stat-widget-label {
    font-family: var(--font-sub);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Level Portal / Map Section */
.section-container {
    max-width: 1280px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Level Card */
.level-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.level-card.active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.level-card.locked {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(10, 13, 30, 0.6);
    opacity: 0.85;
}

.level-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple);
}

.level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.level-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
}

.level-status-pill {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-playable {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.status-coming-soon {
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid var(--neon-amber);
    color: var(--neon-amber);
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
    animation: comingSoonPulse 2s infinite alternate;
}

@keyframes comingSoonPulse {
    0% { border-color: rgba(255, 170, 0, 0.4); }
    100% { border-color: rgba(255, 170, 0, 1); box-shadow: 0 0 15px rgba(255, 170, 0, 0.6); }
}

.level-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.level-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.level-lock-banner {
    background: rgba(255, 170, 0, 0.08);
    border: 1px dashed var(--neon-amber);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    font-family: var(--font-sub);
    color: var(--neon-amber);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Store / Vault Section */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.vault-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-violet);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vault-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.vault-icon-frame {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vault-icon-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vault-icon-symbol {
    font-size: 2.5rem;
    color: var(--neon-cyan);
}

.vault-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.vault-item-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.vault-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-family: var(--font-sub);
    font-weight: 700;
    text-transform: uppercase;
}

/* FAQ Accordion Section */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #fff;
    user-select: none;
}

.faq-question:hover {
    color: var(--neon-cyan);
}

.faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question {
    color: var(--neon-cyan);
}

/* Leaderboard Section */
.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sub);
    text-align: left;
}

.leaderboard-table th {
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    font-weight: 600;
}

.rank-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.rank-1 { background: var(--neon-amber); color: #000; box-shadow: 0 0 10px var(--neon-amber); }
.rank-2 { background: #e2e8f0; color: #000; }
.rank-3 { background: #cd7f32; color: #000; }
.rank-other { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* Modal Windows */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 4, 12, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(14, 18, 41, 0.95);
    border: 1px solid var(--neon-cyan);
    box-shadow: var(--glass-shadow), var(--neon-glow-cyan);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

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

.modal-close-btn:hover {
    background: rgba(255, 0, 127, 0.2);
    color: var(--neon-pink);
}

.input-field {
    width: 100%;
    background: rgba(5, 7, 20, 0.8);
    border: 1px solid var(--border-cyan);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: rgba(14, 18, 41, 0.95);
    border: 1px solid var(--neon-cyan);
    box-shadow: var(--neon-glow-cyan);
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-sub);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Cyber Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    background: rgba(10, 14, 32, 0.95);
    border: 1px solid var(--neon-purple);
    box-shadow: var(--neon-glow-purple);
    border-radius: 14px;
    padding: 1.2rem;
    z-index: 2500;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-family: var(--font-sub);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Live Ticker Bar */
.live-ticker-bar {
    background: rgba(10, 13, 30, 0.9);
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 3rem;
}

.ticker-content {
    display: inline-block;
    animation: ticker 35s linear infinite;
    font-family: var(--font-sub);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 3rem;
}

.ticker-highlight {
    color: var(--neon-cyan);
    font-weight: 700;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-cyan);
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    background: rgba(3, 5, 15, 0.95);
    text-align: center;
    font-family: var(--font-sub);
    color: var(--text-muted);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-domain {
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.2rem 0;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-links { display: none; }
    .hero-title { font-size: 2rem; }
    .game-canvas-container { height: 360px; }
    .game-toolbar { flex-direction: column; align-items: flex-start; }
}
