:root {
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.45);
  --primary-subtle: rgba(0, 240, 255, 0.08);
  --primary-border: rgba(0, 240, 255, 0.22);
  --secondary: #6366f1;
  --secondary-glow: rgba(99, 102, 241, 0.4);
  --accent: #f59e0b;
  --danger: #ef4444;
  --bg-darkest: #04060d;
  --bg-base: #070a14;
  --bg-surface: #0c1222;
  --bg-card: rgba(13, 20, 38, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --width-max: 1300px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-darkest);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(30, 27, 75, 0.3) 0%, transparent 60%);
  color: var(--text-main);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

::selection {
  background: var(--primary);
  color: #04060d;
}

.shell {
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* TYPOGRAPHY HELPERS */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-pure);
  margin-bottom: 18px;
}

.section-title span.highlight {
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
}

.orange-rule {
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  margin: 24px 0;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-main {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #04060d;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.72rem;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 13, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.15), rgba(12, 18, 34, 0.95));
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.2);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-symbol {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 25px var(--primary-glow);
  transform: translateY(-1px);
}

.brand-symbol svg {
  display: block;
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-name strong {
  color: var(--primary);
  font-weight: 900;
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
  border-radius: 2px;
}

.nav a:hover:after {
  width: 100%;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.1rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 24px;
}

.hero-copy h1 span {
  color: var(--primary);
  text-shadow: 0 0 40px var(--primary-glow);
}

.hero-copy p {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-stat small {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* HERO TACTICAL RADAR VISUAL */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.radar-terminal {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(12, 18, 34, 0.8), rgba(4, 6, 13, 0.95));
  border: 1px solid var(--primary-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radar-rings {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-rings:before {
  content: "";
  position: absolute;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.radar-rings:after {
  content: "";
  position: absolute;
  width: 35%;
  height: 35%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.radar-sweep {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  right: 0;
  transform-origin: bottom left;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.35) 0%, transparent 60%);
  border-radius: 100% 0 0 0;
  animation: radarScan 4s linear infinite;
}

.radar-core {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.radar-emblem {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(99, 102, 241, 0.3));
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 0 30px var(--primary-glow);
  margin-bottom: 14px;
}

.radar-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.radar-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-top: 4px;
  text-transform: uppercase;
}

.radar-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}
.node-1 { top: 25%; left: 30%; }
.node-2 { bottom: 28%; right: 26%; }
.node-3 { top: 38%; right: 22%; }

.art-corner {
  position: absolute;
  z-index: 10;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(12, 18, 34, 0.9);
  border: 1px solid var(--primary-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}
.art-corner.top { top: -14px; left: -14px; }
.art-corner.bottom { bottom: -14px; right: -14px; }

.ornament {
  position: absolute;
  left: 20px;
  bottom: 20px;
  opacity: 0.3;
  writing-mode: vertical-rl;
  letter-spacing: 0.3em;
  font-size: 0.6rem;
  color: var(--primary);
}

/* TICKER BANNER */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 10, 20, 0.65);
  backdrop-filter: blur(10px);
}

.ticker-inner {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 36px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ticker b {
  color: var(--primary);
}

/* GAME ARENA SECTION */
.game-section {
  padding: 110px 0;
  position: relative;
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.game-frame {
  background: linear-gradient(160deg, rgba(16, 24, 46, 0.85), rgba(7, 10, 20, 0.95));
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 240, 255, 0.08);
}

.game-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 16px;
}

.game-topline .left, .game-topline .right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.game-topline span {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.game-topline .live {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-stage {
  position: relative;
  overflow: hidden;
  background: #040813;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  touch-action: none;
  user-select: none;
}

.game-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
}

.game-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
}

/* GAME HUD */
.game-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 10;
}

.game-hud > * {
  pointer-events: auto;
}

.hud-bubble {
  background: rgba(12, 18, 34, 0.85);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.meters {
  min-width: 220px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 5px 0;
}

.bar-name {
  width: 44px;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f87171);
  border-radius: 999px;
  transition: width 0.25s;
}

.bar-fill.gold-bar {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.bar-fill.score-bar {
  background: linear-gradient(90deg, #0284c7, var(--primary));
}

.bar-number {
  width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.day-panel {
  text-align: center;
  min-width: 190px;
}

.day-panel strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.day-panel small {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-top: 4px;
  text-transform: uppercase;
}

.zone-panel {
  text-align: right;
  min-width: 170px;
}

.zone-panel strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.zone-panel small {
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* HUD BOTTOM DOCK */
.hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
  z-index: 10;
}

.hud-bottom > * {
  pointer-events: auto;
}

.hotbar {
  display: flex;
  gap: 8px;
  background: rgba(12, 18, 34, 0.9);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(20px);
}

.slot {
  position: relative;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot:hover, .slot.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-3px);
}

.slot.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot i {
  position: absolute;
  top: 4px;
  left: 6px;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--primary);
}

.slot small {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--accent);
}

.hud-actions {
  display: flex;
  gap: 8px;
}

.hud-control {
  width: 44px;
  height: 44px;
  background: rgba(12, 18, 34, 0.9);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: all 0.2s;
}

.hud-control:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-2px);
}

.hud-control.active {
  background: var(--primary);
  color: #04060d;
}

.hud-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* FLOATING INSPECTOR */
.tower-panel {
  position: absolute;
  bottom: 90px;
  left: 16px;
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.2);
  padding: 14px 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
}

.tower-panel[hidden] {
  display: none !important;
}

.tower-panel-info h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.tower-panel-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tower-panel-actions {
  display: flex;
  gap: 8px;
}

.btn-inspect-up {
  background: linear-gradient(135deg, #0284c7, var(--primary));
  color: #04060d;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.btn-inspect-up:disabled {
  background: #334155;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-inspect-sell {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* TOAST ALERT */
.toast {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -10px);
  background: rgba(12, 18, 34, 0.95);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 30;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* MODAL DIALOG */
.game-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(4, 6, 13, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.game-modal[hidden] {
  display: none !important;
}

.modal-content {
  max-width: 520px;
  width: 100%;
}

.modal-mark {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 25px var(--primary-glow));
}

.modal-pre {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.game-modal h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 16px;
}

.game-modal p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hint {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 20px;
  line-height: 1.7;
}

.game-below {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 0 6px;
}

.game-below p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.key {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

.ctrl-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-right: 8px;
}

/* FEATURES SECTION (BENTO GRID) */
.features {
  padding: 110px 0;
  position: relative;
}

.features-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 54px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(145deg, rgba(14, 21, 40, 0.65), rgba(7, 10, 20, 0.85));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.1);
}

.feature-n {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.3));
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* STORY SECTION */
.story {
  padding: 110px 0;
  position: relative;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}

.story-visual {
  position: relative;
  min-height: 440px;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8), rgba(4, 6, 13, 0.95));
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.story-ring {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25), inset 0 0 30px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: breath 6s ease-in-out infinite;
}

.story-ring:before, .story-ring:after {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 50%;
}

.story-ring:after {
  inset: -45px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.story-ring strong {
  font-size: 7.5rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: #fff;
  text-shadow: 0 0 40px var(--primary-glow);
}

.story-caption {
  position: absolute;
  bottom: 24px;
  left: 30px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 800;
}

.story-copy p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.story-mini {
  display: flex;
  gap: 36px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.story-mini strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.story-mini small {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* PATH JOURNEY SECTION */
.path-section {
  padding: 110px 0;
  position: relative;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.path-item {
  background: linear-gradient(150deg, rgba(14, 21, 40, 0.7), rgba(6, 9, 18, 0.85));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.3s;
  position: relative;
}

.path-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.path-flag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.path-num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.path-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.path-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ SECTION */
.faq {
  padding: 110px 0;
  position: relative;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(12, 18, 34, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.faq-item[open] {
  border-color: var(--primary-border);
  background: rgba(14, 21, 40, 0.85);
}

.faq-item summary {
  padding: 20px 24px;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary:after {
  content: "−";
}

.faq-item[open] summary {
  color: var(--primary);
}

.faq-item p {
  padding: 0 24px 22px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* CLOSING CALL TO ACTION */
.closing {
  padding: 60px 0 120px;
}

.closing-box {
  background: linear-gradient(145deg, rgba(16, 24, 48, 0.9), rgba(6, 9, 18, 0.95));
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-xl);
  padding: 70px clamp(24px, 6vw, 90px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.1);
}

.closing-box:after {
  content: "20";
  position: absolute;
  right: -20px;
  bottom: -60px;
  font-size: 18rem;
  font-weight: 900;
  letter-spacing: -0.1em;
  color: var(--primary);
  opacity: 0.04;
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 16px 0 18px;
}

.closing p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 32px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-subtle);
  background: #03050a;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 18px;
  max-width: 380px;
}

.footer-col strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom b {
  color: var(--primary);
}

/* ANIMATIONS */
@keyframes pulse {
  50% { opacity: 0.35; box-shadow: 0 0 0 var(--primary); }
}
@keyframes breath {
  50% { transform: scale(1.025); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes radarScan {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-copy p {
    margin: 0 auto 36px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .story-ring {
    margin: 0 auto;
  }
  .story-mini {
    justify-content: center;
  }
  .orange-rule {
    margin: 24px auto;
  }
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .status-pill {
    display: none;
  }
  .section-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .hud-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .hotbar {
    justify-content: center;
  }
  .hud-actions {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .path-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .game-below .ctrl {
    display: none;
  }
}
