/* ==========================================================================
   CyberJet 3D: Net Rush - Next-Gen Soft Golden UI Design System
   Refined Minimalist Typography, Floating Capsule Header & Soft Golden Theme
   ========================================================================== */

:root {
    --bg-dark: #080705;
    --bg-surface: rgba(20, 17, 12, 0.88);
    --bg-surface-elevated: rgba(30, 24, 16, 0.95);
    --primary-gold: #ffd166;
    --primary-gold-light: #fff3c4;
    --primary-gold-glow: rgba(255, 209, 102, 0.55);
    --primary-gold-dim: rgba(255, 209, 102, 0.18);
    --accent-amber: #f59e0b;
    --accent-amber-glow: rgba(245, 158, 11, 0.45);
    --accent-coral: #ff6b6b;
    --accent-coral-glow: rgba(255, 107, 107, 0.45);
    --emerald-accent: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.4);
    --card-border: rgba(255, 209, 102, 0.28);
    --card-border-highlight: rgba(255, 255, 255, 0.22);
    --card-blur: blur(20px);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none;
    outline: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: #f8fafc;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overscroll-behavior: none;
}

/* Three.js Canvas Container */
#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

#game-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

/* Invisible Fullscreen Tap Area */
#tap-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Floating Scores & Combo Effects */
#floating-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.floating-score {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    animation: floatUpFade 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 0 10px currentColor);
}

@keyframes floatUpFade {
    0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
    20% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -140%) scale(1); }
}

/* In-Game Notifications Toast */
#game-toast {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    background: var(--bg-surface-elevated);
    border: 1.2px solid var(--primary-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-gold-glow);
    backdrop-filter: var(--card-blur);
    padding: 7px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#game-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Heads Up Display (HUD) - Soft Golden Style
   ========================================================================== */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.hud-left, .hud-center, .hud-right {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.hud-panel {
    background: var(--bg-surface);
    border: 1.2px solid var(--card-border);
    backdrop-filter: var(--card-blur);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.hud-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hud-score-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 18px var(--primary-gold-glow);
}

.combo-badge {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 14px var(--accent-amber-glow);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulseCombo 0.7s infinite alternate;
}

@keyframes pulseCombo {
    0% { transform: scale(0.98); }
    100% { transform: scale(1.08); }
}

.hud-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-shadow: 0 0 8px var(--primary-gold-glow);
}

.hud-stat-item.gold { color: var(--primary-gold); }
.hud-stat-item.amber { color: var(--accent-amber); }

.hud-icon-svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.shield-active-badge {
    display: none;
    align-items: center;
    gap: 5px;
    background: rgba(255, 209, 102, 0.15);
    border: 1.2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 14px var(--primary-gold-glow);
}

/* ==========================================================================
   FULL-PAGE IMMERSIVE LANDING SCREEN
   ========================================================================== */
#start-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    z-index: 30;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(12, 10, 6, 0.12) 0%, rgba(10, 8, 4, 0.65) 100%);
    transition: opacity 0.35s ease;
}

/* Unified Floating Rounded Header Capsule */
.landing-header-capsule {
    width: 100%;
    max-width: 900px;
    background: var(--bg-surface);
    border: 1.4px solid var(--card-border);
    backdrop-filter: var(--card-blur);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--card-border-highlight);
    pointer-events: auto;
}

.capsule-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    background: linear-gradient(135deg, #ffd166, #f59e0b);
    color: #080705;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--primary-gold-glow);
}

.capsule-title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 20%, #fff3c4 70%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.capsule-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   CENTER HERO: LUXURY SOFT GOLDEN "CHƠI NGAY" LAUNCH BUTTON
   ========================================================================== */
.landing-center-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-align: center;
    position: relative;
    margin: auto 0;
}

/* Smooth Ambient Breathing Aura */
.hero-soft-ambient-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 110px;
    border-radius: var(--radius-full);
    background: radial-gradient(ellipse at center, rgba(255, 209, 102, 0.45) 0%, rgba(245, 158, 11, 0.22) 50%, rgba(0, 0, 0, 0) 80%);
    filter: blur(22px);
    pointer-events: none;
    animation: auraBreathe 3.4s ease-in-out infinite alternate;
}

@keyframes auraBreathe {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* The Soft Liquid-Gold Launch Button */
.btn-hero-play-launch {
    min-width: 230px;
    height: 64px;
    padding: 0 30px 0 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #ffe082 0%, #ffd166 35%, #f59e0b 80%, #d97706 100%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 14px 36px rgba(245, 158, 11, 0.45), 
        0 0 28px rgba(255, 209, 102, 0.4), 
        inset 0 2px 2px rgba(255, 255, 255, 0.9), 
        inset 0 -2px 6px rgba(180, 83, 9, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    position: relative;
    z-index: 5;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
    text-decoration: none;
}

.btn-hero-play-launch:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 
        0 20px 48px rgba(245, 158, 11, 0.65), 
        0 0 45px rgba(255, 224, 130, 0.75),
        inset 0 2px 3px #ffffff;
}

.btn-hero-play-launch:active {
    transform: translateY(1px) scale(0.97);
}

/* Soft Diagonal Shimmer Light Sweep */
.btn-shimmer-sweep {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: skewX(-24deg);
    pointer-events: none;
    animation: shimmerSweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmerSweep {
    0% { left: -120%; opacity: 0; }
    20% { opacity: 1; }
    50% { left: 160%; opacity: 0; }
    100% { left: 160%; opacity: 0; }
}

/* Icon Play Circle */
.play-launch-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f1910, #0a0805);
    border: 1.5px solid rgba(255, 209, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-hero-play-launch:hover .play-launch-icon-box {
    transform: scale(1.08);
}

.play-launch-icon-box svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-gold);
    margin-left: 2px;
    filter: drop-shadow(0 0 4px var(--primary-gold-glow));
}

/* Typography Container */
.play-launch-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.play-launch-main-text {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #1a1205;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    line-height: 1.1;
    text-transform: uppercase;
}

.play-launch-sub-text {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #78350f;
    text-transform: uppercase;
    margin-top: 1px;
}

.btn-settings-header {
    background: rgba(255, 255, 255, 0.06);
    border: 1.2px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    padding: 5px 14px;
    font-size: 0.76rem;
    border-radius: var(--radius-full);
}

.btn-settings-header:hover {
    background: var(--primary-gold-dim);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Bottom Control Dashboard with Clear Modular Sections */
.landing-bottom-dock {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
    background: rgba(15, 12, 8, 0.75);
    border: 1.4px solid rgba(255, 209, 102, 0.2);
    backdrop-filter: blur(20px);
    padding: 8px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    margin-bottom: 4px;
}

.dock-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dock-module-label {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #94a3b8;
    text-transform: uppercase;
}

.dock-module-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hangar-module {
    padding: 5px 14px;
    font-size: 0.76rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1.2px solid rgba(255, 209, 102, 0.3);
    color: #ffd166;
}

.btn-hangar-module:hover {
    background: var(--primary-gold-dim);
    border-color: var(--primary-gold);
    color: #fff;
}

.audio-controls-module {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dock-module-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(255, 209, 102, 0.35), transparent);
}

/* ==========================================================================
   Modals (Game Over, Hangar, Pause) - Next-Gen Arcade Aesthetics
   ========================================================================== */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(8, 7, 5, 0.75);
    backdrop-filter: blur(16px);
    z-index: 35;
    padding: 16px;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--bg-surface);
    border: 1.5px solid var(--card-border);
    border-radius: 28px;
    padding: 24px 22px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--primary-gold-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: modalPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.88); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Specific Clean Arcade Game Over Card */
.game-over-card {
    max-width: 370px;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.game-over-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 107, 0.12);
    border: 1.2px solid rgba(255, 107, 107, 0.5);
    color: #ff8585;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* Big Hero Score Stage */
.hero-score-stage {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto;
}

.hero-score-glow-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.25) 0%, rgba(255, 209, 102, 0) 70%);
    border: 1.5px dashed rgba(255, 209, 102, 0.4);
    animation: rotateRing 14s linear infinite;
}

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

.hero-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-score-val {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 24px var(--primary-gold-glow), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-score-sub {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Compact Stats Pills Row */
.stats-pills-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.stat-pill {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 7px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 900;
    color: #fff;
}

.pill-svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.stat-pill.trophy { color: #ffd166; border-color: rgba(255, 209, 102, 0.25); }
.stat-pill.bullseye { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.25); }
.stat-pill.gems { color: #f59e0b; border-color: rgba(245, 158, 11, 0.25); }
.stat-pill.combo { color: #f472b6; border-color: rgba(244, 114, 182, 0.25); }

/* Revive Pulse Banner */
.btn-revive-glow {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--accent-amber-glow);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulseRevive 1.5s infinite alternate;
}

@keyframes pulseRevive {
    0% { transform: scale(0.98); box-shadow: 0 4px 14px var(--accent-amber-glow); }
    100% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.8); }
}

.btn-revive-glow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Action Controls Dock (Equal Width HOME & PLAY AGAIN Buttons) */
.game-over-actions-dock {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-gameover-equal {
    flex: 1;
    height: 48px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.btn-gameover-home {
    background: rgba(255, 255, 255, 0.08);
    border: 1.4px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
}

.btn-gameover-home:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--primary-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-gameover-play {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-amber) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #080705;
    box-shadow: 0 6px 20px var(--primary-gold-glow);
}

.btn-gameover-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 209, 102, 0.8);
}

.btn-play-again-hero svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Auto-Return Countdown Bar */
.game-over-auto-return {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

.game-over-auto-return strong {
    color: var(--primary-gold);
    font-weight: 800;
}

.auto-return-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.auto-return-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-amber), var(--primary-gold));
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-svg-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn:hover .btn-svg-icon {
    transform: scale(1.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-amber) 100%);
    color: #080705;
    box-shadow: 0 4px 16px var(--primary-gold-glow);
    padding: 11px 22px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 209, 102, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-revive {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-amber-glow);
    padding: 11px 22px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-revive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    border: 1.2px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-gold);
    color: #fff;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1.2px solid var(--card-border);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary-gold-dim);
    border-color: var(--primary-gold);
    transform: scale(1.05);
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* Camera Mode Selector */
.camera-toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
}

.cam-btn {
    padding: 5px 11px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.cam-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-amber));
    color: #080705;
    box-shadow: 0 0 12px var(--primary-gold-glow);
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-btn {
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1.2px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
}

.audio-btn.muted {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Game Over Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.stat-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1.2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-title {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
}

.stat-number.gold { color: var(--primary-gold); text-shadow: 0 0 8px var(--primary-gold-glow); }
.stat-number.amber { color: var(--accent-amber); text-shadow: 0 0 8px var(--accent-amber-glow); }

/* ==========================================================================
   Hangar / Skins Selector Modal
   ========================================================================== */
.skins-modal-content {
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
}

.skins-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.skin-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1.4px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.skin-card.equipped {
    border-color: var(--primary-gold);
    box-shadow: 0 0 16px var(--primary-gold-glow);
    background: var(--primary-gold-dim);
}

.skin-preview {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.skin-jet-icon {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.skin-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.skin-desc {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 10px;
    text-align: center;
    height: 28px;
    line-height: 1.3;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.72rem;
    border-radius: var(--radius-full);
    width: 100%;
}

.btn-equipped {
    background: var(--primary-gold-dim);
    color: var(--primary-gold);
    border: 1.2px solid var(--primary-gold);
}

.btn-equip {
    background: var(--primary-gold);
    color: #080705;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-amber));
    color: #080705;
    font-weight: 900;
}

/* ==========================================================================
   Mobile Quick Jet Thruster Button
   ========================================================================== */
#mobile-jump-btn {
    display: none;
    position: absolute;
    bottom: 26px;
    right: 26px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-amber) 100%);
    color: #080705;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border: 2.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px var(--primary-gold-glow);
    z-index: 15;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.1s ease;
}

#mobile-jump-btn:active {
    transform: scale(0.92);
}

#mobile-jump-btn svg {
    width: 20px;
    height: 20px;
    fill: #080705;
}

/* ==========================================================================
   Comprehensive Settings Modal (Cyberpunk Glass & Rich SVG Badges)
   ========================================================================== */
.settings-modal-card {
    max-width: 440px;
    width: 100%;
    background: rgba(14, 11, 7, 0.85);
    border: 1.5px solid rgba(255, 209, 102, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 209, 102, 0.1);
    padding: 22px 20px;
    border-radius: var(--radius-lg);
}

.settings-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-header-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-gold-dim);
    border: 1.2px solid rgba(255, 209, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px var(--primary-gold-glow);
    flex-shrink: 0;
}

.settings-gear-svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-gold);
    animation: slowSpin 20s linear infinite;
}

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

.settings-header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.settings-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.settings-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

.settings-sections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-module-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1.2px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-card-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.64rem;
    font-weight: 900;
    color: var(--primary-gold);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tag-svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.settings-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.settings-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setting-icon-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.setting-icon-pill.gold { background: rgba(255, 209, 102, 0.12); color: var(--primary-gold); border: 1px solid rgba(255, 209, 102, 0.3); }
.setting-icon-pill.purple { background: rgba(217, 70, 239, 0.12); color: #d946ef; border: 1px solid rgba(217, 70, 239, 0.3); }
.setting-icon-pill.cyan { background: rgba(0, 240, 255, 0.12); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.setting-icon-pill.red { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.setting-item-label {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.setting-label-main {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #f1f5f9;
}

.setting-label-sub {
    font-size: 0.68rem;
    color: #64748b;
}

/* Sliding iOS/Cyberpunk Switch Toggle */
.btn-toggle-switch {
    width: 64px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.2px solid rgba(255, 255, 255, 0.16);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 4px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.switch-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #64748b;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.switch-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 900;
    color: #64748b;
    position: absolute;
    right: 8px;
    transition: color 0.25s ease;
}

.btn-toggle-switch.active {
    background: rgba(255, 209, 102, 0.2);
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px var(--primary-gold-glow);
}

.btn-toggle-switch.active .switch-knob {
    transform: translateX(34px);
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-amber));
    box-shadow: 0 2px 8px var(--primary-gold-glow);
}

.btn-toggle-switch.active .switch-text {
    left: 8px;
    right: auto;
    color: var(--primary-gold);
}

/* Danger Button */
.btn-setting-danger {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.12);
    border: 1.2px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-setting-danger:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Close Settings Hero Button */
.btn-close-settings-hero {
    width: 100%;
    margin-top: 14px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.4px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-settings-hero:hover {
    background: var(--primary-gold-dim);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #start-menu {
        padding: 12px;
    }

    .landing-header-capsule {
        padding: 6px 12px;
    }

    .capsule-title {
        font-size: 0.95rem;
    }

    .landing-bottom-dock {
        flex-direction: column;
        padding: 10px 14px;
        gap: 10px;
        border-radius: var(--radius-md);
    }

    .dock-module-divider {
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.35), transparent);
    }

    .btn-hero-play-launch {
        min-width: 190px;
        height: 56px;
        padding: 0 20px;
    }

    .play-launch-main-text {
        font-size: 1.0rem;
    }

    .modal-content {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

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

    #hud {
        padding: 10px 14px;
    }

    .hud-score-value {
        font-size: 1.8rem;
    }

    .skins-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #mobile-jump-btn {
        display: flex;
    }
}
