@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,500;0,600;0,700;1,700&family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-deep: #050507;
  --bg-dark: #0a0a12;
  --bg-surface: #10101c;
  --bg-panel: #1a1a2e;
  --bg-card: rgba(10, 10, 18, 0.85);
  --bg-card-hover: rgba(26, 26, 46, 0.9);
  
  --cyan-neon: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --blue-bright: #0080ff;
  --blue-core: #2563eb;
  
  --token-amber: #ff9100;
  --token-glow: rgba(255, 145, 0, 0.4);
  --emerald-neon: #00f59b;
  --purple-neon: #b55fe6;
  
  --text-main: #e0e0e0;
  --text-white: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --border-subtle: rgba(0, 229, 255, 0.2);
  --border-neon: rgba(0, 229, 255, 0.35);
  --border-active: #00e5ff;
  --border-amber: rgba(255, 145, 0, 0.35);
  
  --font-hud: 'Chakra Petch', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --hud-clip: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

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

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom High Density Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan-neon);
  border-radius: 2px;
}

/* Background Gaming Canvas / Radial Glow / Scan Grid */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-grid-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

.bg-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.06) 0%, rgba(5, 5, 7, 0.95) 75%);
  pointer-events: none;
  z-index: 1;
}

/* Typography & Display Headings */
h1, h2, h3, h4, .hud-heading {
  font-family: var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--cyan-neon);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--cyan-glow);
}

/* High Density Corner Brackets Pattern */
.corner-bracketed {
  position: relative;
}
.corner-bracketed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--cyan-neon);
  border-left: 2px solid var(--cyan-neon);
  pointer-events: none;
}
.corner-bracketed::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--cyan-neon);
  border-right: 2px solid var(--cyan-neon);
  pointer-events: none;
}

/* Simple Header Navigation */
.game-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: 1360px;
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-wrapper { display:flex; align-items:center; gap:12px; text-decoration:none; min-width:0; }
.brand-logo-img { width:46px; height:46px; border-radius:10px; object-fit:contain; }
.brand-title { color:#fff; font-family:var(--font-hud); font-size:1rem; font-weight:700; letter-spacing:.06em; white-space:nowrap; }
.game-nav { display:flex; align-items:center; }
.nav-links { display:none; list-style:none; align-items:center; gap:8px; }
@media (min-width: 900px) { .nav-links { display:flex; } }
.nav-link { color:var(--text-muted); font-family:var(--font-hud); font-size:.78rem; letter-spacing:.04em; padding:9px 10px; border-radius:6px; transition:.2s ease; }
.nav-link:hover,.nav-link.active { color:#fff; background:rgba(0,229,255,.08); }
.mobile-menu-btn { display:flex; align-items:center; justify-content:center; background:transparent; border:1px solid var(--border-subtle); color:#fff; padding:8px; border-radius:7px; cursor:pointer; }
@media (min-width: 900px) { .mobile-menu-btn { display:none; } }
@media (max-width: 560px) { .header-inner { min-height:64px; padding:8px 14px; } .brand-logo-img { width:40px; height:40px; } .brand-title { font-size:.78rem; letter-spacing:.025em; white-space:normal; line-height:1.15; } }

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 18, 0.98);
  border-bottom: 2px solid var(--cyan-neon);
  padding: 16px 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  font-size: 0.9rem;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Container */
.app-container {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Stage Section */
.hero-stage {
  padding: 36px 0 44px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-neon);
  padding: 4px 12px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-neon);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: var(--font-hud);
}

.hero-title .glow-text {
  color: var(--cyan-neon);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
}

.hero-description {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

/* High Density HUD Buttons */
.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.hud-btn-primary {
  background: var(--cyan-neon);
  border: 1px solid var(--cyan-neon);
  color: #050507;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.hud-btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #050507;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.75);
  transform: translateY(-1px);
}

.hud-btn-secondary {
  background: rgba(10, 10, 18, 0.9);
  border: 1px solid var(--border-neon);
  color: var(--text-main);
}

.hud-btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan-neon);
  color: #ffffff;
  box-shadow: 0 0 12px var(--cyan-glow);
  transform: translateY(-1px);
}

.hud-btn-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 1px solid var(--token-amber);
  color: #ffffff;
  box-shadow: 0 0 12px var(--token-glow);
}

.hud-btn-gold:hover {
  background: var(--token-amber);
  color: #050507;
  font-weight: 800;
  box-shadow: 0 0 20px var(--token-glow);
  transform: translateY(-1px);
}

/* High-Density Key Metrics Bar */
.hero-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 16px;
  background: rgba(10, 10, 18, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.spec-block {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.spec-val.cyan {
  color: var(--cyan-neon);
}
.spec-val.gold {
  color: var(--token-amber);
}
.spec-val.green {
  color: var(--emerald-neon);
}

/* High Density Interactive Cleaning Mini-Simulator */
.interactive-simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.simulator-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.simulator-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-indicator {
  width: 8px;
  height: 8px;
  background: var(--cyan-neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-neon);
  animation: pulseDot 1.5s infinite;
}

.sim-hud-title {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.sim-score-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.sim-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
}

.sim-stat span {
  color: #ffffff;
  font-weight: 700;
}

.sim-canvas-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background: #06060c;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}

#clean-sim-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sim-overlay-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 7, 0.85);
  border: 1px solid var(--border-neon);
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan-neon);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.sim-progress-track {
  flex-grow: 1;
  height: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.sim-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan-neon));
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: width 0.15s ease;
}

.sim-btn-reset {
  background: #0a0a12;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-reset:hover {
  color: #ffffff;
  border-color: var(--cyan-neon);
  background: rgba(0, 229, 255, 0.1);
}

/* Sections */
.section-wrapper {
  padding: 50px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 36px auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-neon);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* High Density Mission & Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.game-hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--cyan-neon);
  border-radius: 2px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.game-hud-card.amber-accent {
  border-left-color: var(--token-amber);
}

.game-hud-card:hover {
  border-color: var(--cyan-neon);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12);
  transform: translateY(-2px);
}

.card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--cyan-neon);
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-family: var(--font-hud);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-hud-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-neon);
}

/* High Density Stage Map */
.stage-map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 22px;
  position: relative;
}

.stage-map-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.stage-node {
  background: #0a0a12;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.stage-node:hover {
  border-color: var(--cyan-neon);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.stage-node.active {
  border-color: var(--cyan-neon);
  background: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.stage-node.locked {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
}

.stage-node.locked:hover {
  box-shadow: none;
  background: #0a0a12;
}

.stage-number {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.stage-stars {
  color: var(--token-amber);
  font-size: 0.78rem;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.stage-score {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

/* Stage Detail Briefing HUD */
.stage-briefing-hud {
  background: #050507;
  border: 1px solid var(--border-neon);
  border-radius: 2px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .stage-briefing-hud {
    grid-template-columns: 1fr 1fr;
  }
}

.briefing-block h4 {
  font-size: 0.78rem;
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.briefing-block p {
  font-size: 0.88rem;
  color: #ffffff;
}

/* High Density Tool Locker */
.tools-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-level-badge {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-neon);
  color: var(--cyan-neon);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.tool-stat-bars {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.stat-bar-track {
  height: 4px;
  background: var(--bg-panel);
  border-radius: 1px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan-neon));
}

.stat-bar-fill.gold {
  background: linear-gradient(90deg, #d97706, var(--token-amber));
}

.tool-action-btn {
  width: 100%;
  padding: 8px;
  background: #0a0a12;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-hud);
  font-size: 0.78rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tool-action-btn:hover {
  background: var(--cyan-neon);
  color: #050507;
  font-weight: 800;
  border-color: var(--cyan-neon);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* Achievements Vault Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.achievement-card.unlocked {
  border-color: var(--border-amber);
  background: rgba(26, 26, 46, 0.6);
}

.ach-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: #050507;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.achievement-card.unlocked .ach-icon {
  border-color: var(--token-amber);
  color: var(--token-amber);
  box-shadow: 0 0 10px var(--token-glow);
}

.ach-info {
  flex-grow: 1;
}

.ach-title {
  font-family: var(--font-hud);
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.ach-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ach-progress-bar {
  height: 3px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 1px;
  overflow: hidden;
}

.ach-progress-fill {
  height: 100%;
  background: var(--token-amber);
}

/* Settings & Local Controls */
.settings-hud-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 26px;
  max-width: 850px;
  margin: 0 auto;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-info h4 {
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.setting-info p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Switch Toggle UI */
.switch-control {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #10101c;
  border: 1px solid var(--border-subtle);
  transition: .25s;
  border-radius: 12px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .25s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: rgba(0, 229, 255, 0.2);
  border-color: var(--cyan-neon);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
  background-color: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
}

/* Support Desk */
.support-hud-card {
  background: rgba(10, 10, 18, 0.92);
  border: 1px solid var(--border-neon);
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.1);
  max-width: 780px;
  margin: 0 auto;
}

.support-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #050507;
  border: 1px solid var(--cyan-neon);
  padding: 10px 20px;
  border-radius: 24px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--cyan-neon);
  margin: 16px 0;
  box-shadow: 0 0 12px var(--cyan-glow);
  text-decoration: none;
  transition: all 0.2s ease;
}

.support-email-pill:hover {
  background: var(--cyan-neon);
  color: #050507;
  font-weight: 800;
  transform: scale(1.02);
}

/* Cloudflare Export Bar */
.cloudflare-export-bar {
  background: #0a0a12;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cloudflare-export-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-badge {
  background: #ff9100;
  color: #050507;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* Footer */
.game-footer {
  background: #050507;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 20px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-links h4 {
  font-size: 0.85rem;
  color: var(--cyan-neon);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-list a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

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

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Toast */
.hud-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a0a12;
  border: 1px solid var(--cyan-neon);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--font-hud);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9), 0 0 15px var(--cyan-glow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Privacy Policy Layout */
.policy-hero {
  padding: 36px 0 24px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
}

.policy-badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-neon);
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 992px) {
  .policy-layout {
    grid-template-columns: 260px 1fr;
  }
}

.policy-toc-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.toc-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-neon);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.toc-list a {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  padding: 4px 6px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.toc-list a:hover, .toc-list a.active {
  color: #ffffff;
  background: rgba(0, 229, 255, 0.1);
  border-left: 2px solid var(--cyan-neon);
}

.policy-content-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 28px;
  backdrop-filter: blur(12px);
}

.policy-section-block {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: 80px;
}

.policy-section-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section-title {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section-title .sec-num {
  font-family: var(--font-mono);
  color: var(--cyan-neon);
  font-size: 0.9rem;
}

.policy-content-body p {
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 0.92rem;
}

.policy-content-body ul {
  margin: 10px 0 16px 20px;
  color: var(--text-main);
}

.policy-content-body li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.policy-highlight-box {
  background: rgba(0, 229, 255, 0.08);
  border-left: 3px solid var(--cyan-neon);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  margin: 14px 0;
}

/* Animations */
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}
