/* ==========================================================================
   TOTAL AUTO CARE & TOWING - GAME HUD & PORTAL STYLESHEET
   Pure CSS - Gaming & Animation Focused Visual Design
   ========================================================================== */

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

:root {
  --bg-dark: #06090f;
  --bg-panel: #0d131f;
  --bg-card: rgba(16, 24, 39, 0.85);
  --bg-card-hover: rgba(22, 33, 54, 0.95);
  
  --cyan-neon: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --cyan-dark: #083344;
  
  --orange-neon: #ff7b00;
  --orange-glow: rgba(255, 123, 0, 0.45);
  --orange-dark: #431407;
  
  --gold-neon: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.4);
  
  --green-neon: #10b981;
  --purple-neon: #a855f7;
  --red-neon: #ef4444;
  
  --chrome-light: #f8fafc;
  --chrome-mid: #94a3b8;
  --chrome-dark: #334155;
  
  --border-hud: rgba(0, 240, 255, 0.25);
  --border-hud-active: rgba(0, 240, 255, 0.8);
  
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease-game: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: #e2e8f0;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Cyber Grid & Vignette */
.cyber-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 10%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 123, 0, 0.06) 0%, transparent 50%),
    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: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  opacity: 0.6;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION / HUD TOPBAR
   ========================================================================== */
.hud-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 15, 0.88);
  border-bottom: 1px solid var(--border-hud);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.hud-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.brand-wrapper:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--chrome-light);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.brand-title span {
  color: var(--orange-neon);
}

.brand-subtitle {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan-neon);
  text-transform: uppercase;
}

/* HUD Live Status Bar */
.hud-status-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(13, 19, 31, 0.7);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.hud-stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.hud-stat-icon {
  width: 18px;
  height: 18px;
}

.hud-stat-cash {
  color: var(--gold-neon);
  text-shadow: 0 0 8px var(--gold-glow);
}

.hud-stat-lvl {
  color: var(--cyan-neon);
  text-shadow: 0 0 8px var(--cyan-glow);
}

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

.nav-link {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
  transition: width 0.3s var(--ease-game);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hud);
  color: var(--cyan-neon);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* ==========================================================================
   BUTTONS & HUD CONTROLS
   ========================================================================== */
.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-game);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-game:hover::before {
  left: 100%;
}

.btn-primary-orange {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 4px 18px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary-orange:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 6px 25px rgba(255, 123, 0, 0.7);
  transform: translateY(-2px);
}

.btn-primary-cyan {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #ffffff;
  border-color: #06b6d4;
  box-shadow: 0 4px 18px var(--cyan-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary-cyan:hover {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline-hud {
  background: rgba(13, 19, 31, 0.8);
  color: var(--cyan-neon);
  border: 1px solid var(--cyan-neon);
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.15);
}

.btn-outline-hud:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
}

/* Quick Audio / Haptic Toggle Buttons in Nav */
.hud-icon-btn {
  background: rgba(16, 24, 39, 0.7);
  border: 1px solid var(--border-hud);
  color: #94a3b8;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-icon-btn.active {
  color: var(--cyan-neon);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-glow);
  background: rgba(0, 240, 255, 0.1);
}

.hud-icon-btn:hover {
  border-color: var(--cyan-neon);
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION - GAMING MISSION CONTROL
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan-neon);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--chrome-light);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-title .highlight-orange {
  color: var(--orange-neon);
  text-shadow: 0 0 18px var(--orange-glow);
}

.hero-title .highlight-cyan {
  color: var(--cyan-neon);
  text-shadow: 0 0 18px var(--cyan-glow);
}

.hero-description {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Feature Quick Telemetry */
.telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(13, 19, 31, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  padding: 1rem;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #64748b;
  text-transform: uppercase;
}

.telemetry-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--chrome-light);
}

/* Hero Showcase Card */
.hero-emblem-card {
  background: radial-gradient(circle at 50% 50%, rgba(13, 27, 42, 0.9), rgba(6, 11, 20, 0.95));
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 240, 255, 0.05);
}

/* HUD Corner Brackets */
.hud-corners::before, .hud-corners::after,
.hud-corner-bl, .hud-corner-br {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--cyan-neon);
  pointer-events: none;
}

.hud-corners::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan-neon);
  border-left: 2px solid var(--cyan-neon);
}

.hud-corners::after {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--cyan-neon);
  border-right: 2px solid var(--cyan-neon);
}

.hud-corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--cyan-neon);
  border-left: 2px solid var(--cyan-neon);
}

.hud-corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--cyan-neon);
  border-right: 2px solid var(--cyan-neon);
}

.emblem-display {
  max-width: 340px;
  margin: 0 auto 1.5rem;
  animation: floatEmblem 4s ease-in-out infinite;
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

.emblem-display img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px var(--cyan-glow));
}

.emblem-caption {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ==========================================================================
   MINI PLAYABLE ARCADE GAME ARENA (HTML5 Canvas Game)
   ========================================================================== */
.arcade-section {
  padding: 4rem 0;
  position: relative;
}

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

.section-tag {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan-neon);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--chrome-light);
  letter-spacing: 1px;
}

.section-desc {
  color: #94a3b8;
  max-width: 650px;
  margin: 0.5rem auto 0;
  font-size: 1rem;
}

.arcade-wrapper {
  background: #090e18;
  border: 1px solid var(--border-hud-active);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.15);
  position: relative;
}

.arcade-top-hud {
  background: rgba(13, 19, 31, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.arcade-hud-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.arcade-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.booster-selector {
  display: flex;
  gap: 0.5rem;
}

.booster-btn {
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.booster-btn:hover {
  border-color: var(--cyan-neon);
  color: #ffffff;
}

.booster-btn.selected {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.booster-btn.booster-bomb.selected {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--red-neon);
  color: var(--red-neon);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.booster-btn.booster-rainbow.selected {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-neon);
  color: var(--purple-neon);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.arcade-canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at 50% 100%, #131b2e 0%, #060a12 100%);
  cursor: crosshair;
  touch-action: none;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-instruction {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 9, 15, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #94a3b8;
  pointer-events: none;
  text-transform: uppercase;
}

/* ==========================================================================
   WORKSHOP & UPGRADE BAYS (Launcher, Rescue Crew, Workshop)
   ========================================================================== */
.workshop-section {
  padding: 4rem 0;
}

.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.upgrade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-game);
}

.upgrade-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hud-active);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
}

.upgrade-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.upgrade-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(13, 19, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upgrade-icon-box img {
  width: 100%;
  height: 100%;
}

.upgrade-meta {
  flex: 1;
}

.upgrade-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--chrome-light);
}

.upgrade-level-tag {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-neon);
  letter-spacing: 1px;
}

.upgrade-bar-wrapper {
  margin-bottom: 1rem;
}

.upgrade-bar-bg {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.upgrade-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, var(--cyan-neon));
  box-shadow: 0 0 8px var(--cyan-neon);
  transition: width 0.4s var(--ease-game);
}

.upgrade-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.upgrade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upgrade-cost {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-neon);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   BOOSTERS ARSENAL (Bomb, Rainbow, Tow Hook)
   ========================================================================== */
.boosters-section {
  padding: 4rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(13, 24, 40, 0.5) 0%, transparent 80%);
}

.boosters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.booster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease-game);
}

.booster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.booster-card.card-bomb:hover {
  border-color: var(--red-neon);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.3);
}

.booster-card.card-rainbow:hover {
  border-color: var(--purple-neon);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.3);
}

.booster-card.card-hook:hover {
  border-color: var(--cyan-neon);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.3);
}

.booster-badge-img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.booster-card:hover .booster-badge-img {
  transform: scale(1.1);
}

.booster-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--chrome-light);
  margin-bottom: 0.35rem;
}

.booster-qty-badge {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  margin-bottom: 0.85rem;
  letter-spacing: 1px;
}

.booster-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   LEVEL MAP & STAR RATINGS PROGRESSION
   ========================================================================== */
.progression-section {
  padding: 4rem 0;
}

.level-map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.level-node {
  background: rgba(13, 19, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-game);
}

.level-node.unlocked {
  border-color: var(--cyan-neon);
  background: rgba(0, 240, 255, 0.05);
}

.level-node.unlocked:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: translateY(-2px);
}

.level-node.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.level-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--chrome-light);
  margin-bottom: 0.35rem;
}

.star-rating-row {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.star-icon {
  width: 14px;
  height: 14px;
  filter: grayscale(1) opacity(0.3);
}

.star-icon.filled {
  filter: grayscale(0) opacity(1) drop-shadow(0 0 4px var(--gold-glow));
}

/* ==========================================================================
   DAILY REWARD & LOCAL DATA INSPECTOR TERMINAL
   ========================================================================== */
.terminal-section {
  padding: 4rem 0;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.terminal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--chrome-light);
}

.json-code-box {
  background: #060a12;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.825rem;
  color: #38bdf8;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-bottom: 1.25rem;
}

.settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 19, 31, 0.6);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-label {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  color: #cbd5e1;
}

/* Custom Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-glow);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #042f2e;
}

/* ==========================================================================
   CONTACT US & PRIVACY SUMMARY SECTION
   ========================================================================== */
.contact-section {
  padding: 4rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(10, 20, 35, 0.8) 0%, transparent 80%);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange-neon);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  background: rgba(255, 123, 0, 0.1);
  border: 1px solid rgba(255, 123, 0, 0.4);
  transition: all 0.25s ease;
  margin: 1.5rem 0;
}

.contact-email-link:hover {
  background: rgba(255, 123, 0, 0.2);
  border-color: var(--orange-neon);
  box-shadow: 0 0 20px var(--orange-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hud-footer {
  border-top: 1px solid var(--border-hud);
  background: #04070d;
  padding: 2.5rem 0;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s ease;
}

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

.footer-legal {
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   PRIVACY POLICY PAGE STYLING
   ========================================================================== */
.policy-container {
  max-width: 960px;
  margin: 3rem auto;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.policy-header {
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.policy-effective {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-neon);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.policy-content section {
  margin-bottom: 2.5rem;
}

.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--chrome-light);
  margin-bottom: 0.85rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-content h2::before {
  content: '//';
  color: var(--cyan-neon);
  font-family: var(--font-tech);
}

.policy-content p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.policy-content ul {
  list-style: none;
  margin: 1rem 0 1.25rem 1rem;
}

.policy-content li {
  color: #94a3b8;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.policy-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan-neon);
}

/* ==========================================================================
   MODAL / HUD NOTIFICATIONS
   ========================================================================== */
.hud-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

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

.hud-modal-content {
  background: #0b111d;
  border: 1px solid var(--cyan-neon);
  border-radius: 8px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 0 30px var(--cyan-glow);
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-game);
}

.hud-modal.active .hud-modal-content {
  transform: scale(1);
}

.hud-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13, 19, 31, 0.95);
  border: 1px solid var(--cyan-neon);
  box-shadow: 0 0 15px var(--cyan-glow);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s var(--ease-game);
  pointer-events: none;
}

.hud-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .upgrades-grid, .boosters-grid {
    grid-template-columns: 1fr;
  }
  .terminal-grid {
    grid-template-columns: 1fr;
  }
  .hero-emblem-card {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #090e18;
    border-bottom: 1px solid var(--border-hud);
    padding: 1.5rem;
    gap: 1rem;
  }
  .telemetry-row {
    grid-template-columns: 1fr;
  }
  .arcade-canvas-container {
    height: 380px;
  }
}

/* ========================================================================== 
   2026 UI REFRESH // ASYMMETRIC RESCUE COMMAND DECK
   Keeps the existing game, content and controls while changing the visual flow.
   ========================================================================== */
:root {
  --panel-glass: rgba(8, 14, 24, 0.76);
  --panel-line: rgba(0, 240, 255, 0.18);
  --panel-line-hot: rgba(0, 240, 255, 0.72);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(0, 240, 255, 0.025) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 8% 24%, rgba(255, 123, 0, 0.08), transparent 27%),
    radial-gradient(circle at 92% 58%, rgba(0, 240, 255, 0.075), transparent 30%);
}

.container { max-width: 1320px; }

.hud-navbar {
  border-bottom-color: rgba(0, 240, 255, 0.22);
  background: linear-gradient(180deg, rgba(6, 9, 15, 0.96), rgba(6, 9, 15, 0.82));
}

.hud-nav-inner { height: 76px; gap: 1.15rem; }

.brand-wrapper {
  padding-right: 1rem;
  position: relative;
}

.brand-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  width: 1px;
  height: 76%;
  background: linear-gradient(transparent, rgba(0,240,255,.55), transparent);
}

.nav-link {
  position: relative;
  padding: .55rem .15rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--orange-neon));
  box-shadow: 0 0 10px var(--cyan-glow);
  transition: right .24s ease;
}

.nav-link:hover::after { right: 0; }

/* Hero: visual console LEFT, mission copy RIGHT */
.hero-section {
  padding: 5.25rem 0 5rem;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: -230px;
  top: 12%;
  border: 1px solid rgba(0,240,255,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(0,240,255,.018), 0 0 0 104px rgba(255,123,0,.012);
  pointer-events: none;
}

.hero-grid {
  grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr);
  grid-template-areas: 'visual content';
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
}

.hero-content-col {
  grid-area: content;
  position: relative;
  padding: 1.6rem 0 1.6rem 1.75rem;
  border-left: 1px solid rgba(0,240,255,.22);
}

.hero-content-col::before {
  content: '02  //  RESCUE COMMAND';
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 3px;
  color: rgba(148,163,184,.72);
}

.hero-content-col::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 2rem;
  width: 7px;
  height: 80px;
  background: linear-gradient(var(--cyan-neon), var(--orange-neon));
  box-shadow: 0 0 18px var(--cyan-glow);
}

.hero-badge-tag {
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 1.15rem;
}

.hero-title {
  font-size: clamp(2.7rem, 5.7vw, 5.25rem);
  line-height: .98;
  max-width: 850px;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}

.hero-description {
  max-width: 760px;
  font-size: 1.08rem;
  border-left: 3px solid rgba(255,123,0,.75);
  padding-left: 1rem;
}

.hero-actions {
  gap: .8rem;
  align-items: stretch;
}

.btn-game {
  min-height: 48px;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.telemetry-row {
  max-width: 760px;
  padding: 0;
  gap: 0;
  background: rgba(4, 8, 15, .62);
  border-radius: 4px;
  overflow: hidden;
}

.telemetry-item {
  min-height: 84px;
  justify-content: center;
  padding: .9rem 1.1rem;
  position: relative;
}

.telemetry-item + .telemetry-item { border-left: 1px solid rgba(0,240,255,.14); }
.telemetry-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36%;
  height: 2px;
  background: var(--cyan-neon);
  opacity: .5;
}
.telemetry-item:nth-child(2)::before { background: var(--orange-neon); }
.telemetry-item:nth-child(3)::before { background: var(--gold-neon); }

.hero-emblem-card {
  grid-area: visual;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 2rem;
  border-radius: 0;
  background:
    linear-gradient(155deg, rgba(0,240,255,.08), transparent 32%),
    linear-gradient(335deg, rgba(255,123,0,.08), transparent 31%),
    rgba(7, 12, 21, .86);
  clip-path: polygon(0 26px, 26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.62), inset 0 0 65px rgba(0,240,255,.035);
}

.hero-emblem-card::before {
  content: '01 // VEHICLE CORE';
  position: absolute;
  left: 22px;
  top: 18px;
  width: auto;
  height: auto;
  border: 0;
  font-family: var(--font-tech);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--cyan-neon);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.hero-emblem-card::after {
  content: '';
  position: absolute;
  inset: 52px 28px 86px;
  border: 1px dashed rgba(0,240,255,.18);
  border-radius: 50%;
  pointer-events: none;
}

.emblem-display {
  max-width: 390px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.emblem-display::before,
.emblem-display::after {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(0,240,255,.15);
  border-radius: 50%;
  animation: hudSpin 16s linear infinite;
  pointer-events: none;
}

.emblem-display::after {
  inset: 16%;
  border-style: dashed;
  border-color: rgba(255,123,0,.22);
  animation-direction: reverse;
  animation-duration: 11s;
}

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

.emblem-caption { position: relative; z-index: 2; color: #d5dde8; }
.hero-emblem-card > div:last-child { position: relative; z-index: 2; }

/* Alternating section rhythm instead of every heading centered */
.section-header {
  position: relative;
  max-width: 840px;
  margin-bottom: 2.8rem;
}

.arcade-section .section-header,
.boosters-section .section-header,
.terminal-section .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  padding-left: 1.2rem;
  border-left: 3px solid var(--cyan-neon);
}

.workshop-section .section-header,
.progression-section .section-header {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
  padding-right: 1.2rem;
  border-right: 3px solid var(--orange-neon);
}

.arcade-section .section-desc,
.boosters-section .section-desc,
.terminal-section .section-desc {
  margin-left: 0;
  margin-right: auto;
}

.workshop-section .section-desc,
.progression-section .section-desc {
  margin-left: auto;
  margin-right: 0;
}

.section-tag {
  padding: .25rem .6rem;
  background: rgba(0,240,255,.06);
  border: 1px solid rgba(0,240,255,.15);
}

.section-title { line-height: 1.12; }

/* Main blocks become beveled game panels */
.arcade-wrapper,
.level-map-container,
.terminal-card,
.contact-card,
.upgrade-card,
.booster-card {
  border-radius: 0;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.arcade-wrapper {
  border-color: rgba(0,240,255,.55);
  box-shadow: 0 24px 70px rgba(0,0,0,.58), 0 0 38px rgba(0,240,255,.09);
}

.arcade-top-hud {
  background: linear-gradient(90deg, rgba(0,240,255,.07), rgba(13,19,31,.97) 36%, rgba(255,123,0,.055));
}

.upgrades-grid { gap: 1.8rem; align-items: start; }
.upgrade-card:nth-child(2) { margin-top: 2rem; }
.upgrade-card:nth-child(3) { margin-top: .7rem; }

.upgrade-card,
.booster-card,
.terminal-card {
  background: linear-gradient(150deg, rgba(18,28,44,.86), rgba(7,12,21,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.upgrade-card:hover,
.booster-card:hover {
  transform: translateY(-7px);
}

.boosters-grid { gap: 1.8rem; }
.booster-card:nth-child(1) { transform: rotate(-.45deg); }
.booster-card:nth-child(2) { margin-top: 1.6rem; }
.booster-card:nth-child(3) { transform: rotate(.45deg); }
.booster-card:hover { transform: translateY(-7px) rotate(0); }

.level-map-container {
  background:
    linear-gradient(120deg, rgba(0,240,255,.035), transparent 42%),
    rgba(9,14,24,.92);
  border-left-width: 1px;
  border-top: 3px solid rgba(255,123,0,.78);
}

.level-node {
  border-radius: 2px;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.terminal-grid { grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.terminal-card:nth-child(2) { margin-top: 2rem; }

.contact-card {
  max-width: 940px;
  background: linear-gradient(105deg, rgba(0,240,255,.06), rgba(9,14,24,.94) 45%, rgba(255,123,0,.05));
}

.hud-footer {
  background: linear-gradient(180deg, rgba(5,8,14,.96), #03060a);
  border-top-color: rgba(0,240,255,.18);
}

/* Privacy page inherits the refreshed gaming shell */
.policy-card {
  border-radius: 0;
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  background: linear-gradient(145deg, rgba(14,23,37,.94), rgba(7,11,18,.98));
  border-left-color: var(--cyan-neon);
}

@media (max-width: 1180px) {
  .hud-status-bar { display: none; }
  .nav-links { gap: 1rem; }
  .nav-link { font-size: .9rem; }
}

@media (max-width: 992px) {
  .hero-section { min-height: auto; padding-top: 3.2rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'visual' 'content';
    gap: 2.5rem;
  }
  .hero-emblem-card { max-width: 560px; width: 100%; min-height: 410px; margin: 0 auto; }
  .hero-content-col { max-width: 760px; margin: 0 auto; }
  .upgrade-card:nth-child(2),
  .upgrade-card:nth-child(3),
  .booster-card:nth-child(2),
  .terminal-card:nth-child(2) { margin-top: 0; }
  .booster-card:nth-child(1), .booster-card:nth-child(3) { transform: none; }
  .terminal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-section { padding: 2.4rem 0 3.5rem; }
  .hero-grid { grid-template-areas: 'content' 'visual'; }
  .hero-content-col {
    padding: 1rem 0 0 1rem;
  }
  .hero-title { font-size: clamp(2.15rem, 11vw, 3.4rem); }
  .hero-description { font-size: .98rem; }
  .hero-emblem-card { min-height: 360px; padding: 2.5rem 1.4rem 1.7rem; }
  .hero-emblem-card::after { inset: 48px 18px 78px; }
  .telemetry-row { grid-template-columns: 1fr; }
  .telemetry-item + .telemetry-item { border-left: 0; border-top: 1px solid rgba(0,240,255,.12); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-game { width: 100%; }
  .arcade-section .section-header,
  .boosters-section .section-header,
  .terminal-section .section-header,
  .workshop-section .section-header,
  .progression-section .section-header {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    padding: 0 0 0 1rem;
    border-right: 0;
    border-left: 3px solid var(--cyan-neon);
  }
  .workshop-section .section-desc,
  .progression-section .section-desc { margin-left: 0; margin-right: auto; }
  .brand-wrapper::after { display: none; }
}
