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

:root {
  /* CYBERPUNK SPACE SHOOTER PALETTE */
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.55);
  --primary-subtle: rgba(0, 240, 255, 0.1);
  --primary-border: rgba(0, 240, 255, 0.3);
  
  --secondary: #ff007f;
  --secondary-glow: rgba(255, 0, 127, 0.5);
  --secondary-subtle: rgba(255, 0, 127, 0.12);
  --secondary-border: rgba(255, 0, 127, 0.35);

  --accent: #ffe600;
  --accent-glow: rgba(255, 230, 0, 0.45);
  --accent-subtle: rgba(255, 230, 0, 0.12);

  --success: #00ff9d;
  --danger: #ff2a5f;

  --bg-darkest: #02040a;
  --bg-base: #050816;
  --bg-surface: #0a1024;
  --bg-card: rgba(10, 16, 38, 0.88);
  --bg-glass: rgba(12, 20, 48, 0.75);

  --text-pure: #ffffff;
  --text-main: #f0f6fc;
  --text-muted: #8b9bb4;
  --text-tech: #00f0ff;

  --border-subtle: rgba(0, 240, 255, 0.14);
  --border-glow: rgba(0, 240, 255, 0.45);

  --width-max: 1300px;
  --font-display: 'Orbitron', 'Syne', sans-serif;
  --font-tech: 'Rajdhani', monospace, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

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

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

body {
  background-color: var(--bg-darkest);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(0, 240, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(255, 0, 127, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 65%, rgba(10, 16, 38, 0.95) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.015) 2px, rgba(0, 240, 255, 0.015) 4px);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-glow);
}

::selection {
  background: var(--primary);
  color: #02040a;
}

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

/* TYPOGRAPHY HELPERS */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--primary-border);
  padding: 5px 14px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.18);
}

.eyebrow::before {
  content: '◈';
  color: var(--secondary);
  font-size: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-pure);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 12px;
}

.section-title .highlight {
  background: linear-gradient(135deg, #00f0ff 0%, #ff007f 60%, #ffe600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
}

.section-text {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* GAMING BUTTONS WITH SCI-FI CHAMFERED CUTS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-main {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 60%, #0369a1 100%);
  color: #02040a;
  padding: 13px 28px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  border: 1px solid #70f7ff;
  box-shadow: 
    0 4px 0 #075985,
    0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-main:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #70f7ff 0%, #00f0ff 100%);
  box-shadow: 
    0 6px 0 #075985,
    0 0 32px rgba(0, 240, 255, 0.7);
  color: #000;
}

.btn-main:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #075985, 0 0 14px rgba(0, 240, 255, 0.3);
}

.btn-ghost {
  background: rgba(10, 16, 38, 0.75);
  border: 1px solid var(--primary-border);
  color: var(--text-pure);
  padding: 13px 26px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.78rem;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

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

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

.brand-img {
  max-height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-img-foot {
  max-height: 46px;
}

.brand-logo:hover .brand-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px var(--primary));
}

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

.nav a {
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary-glow);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: width 0.2s ease;
}

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

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid rgba(255, 0, 127, 0.35);
  color: var(--secondary);
  font-family: var(--font-tech);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.2);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
  animation: pulseDot 1.4s infinite ease-in-out;
}

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

.menu-toggle {
  display: none;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* HERO SECTION */
.hero {
  padding: clamp(36px, 7vw, 76px) 0 40px;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-pure);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, #00f0ff 0%, #ff007f 70%, #ffe600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.5));
}

.hero p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 240, 255, 0.18);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  background: rgba(10, 16, 38, 0.6);
  padding: 10px 14px;
  border-left: 2px solid var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 14px var(--primary-glow);
  line-height: 1;
}

.hero-stat small {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* HERO ART / POSTER FRAME WITH MECHA BRACKETS */
.hero-art {
  position: relative;
  border: 2px solid rgba(0, 240, 255, 0.45);
  box-shadow: 
    0 0 0 1px rgba(255, 0, 127, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 240, 255, 0.25);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  overflow: hidden;
  background: #02040a;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-art:hover img {
  transform: scale(1.03);
}

.art-corner {
  position: absolute;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(2, 4, 10, 0.9);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  z-index: 2;
  text-transform: uppercase;
}

.art-corner.top {
  top: 10px;
  right: 10px;
  border-color: rgba(255, 0, 127, 0.5);
  color: var(--secondary);
}

.art-corner.bottom {
  bottom: 10px;
  left: 10px;
}

.ornament {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(0, 240, 255, 0.2);
  pointer-events: none;
}

/* TICKER MARQUEE */
.ticker {
  background: linear-gradient(90deg, rgba(2, 4, 10, 0.95), rgba(10, 16, 38, 0.95), rgba(2, 4, 10, 0.95));
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  border-bottom: 1px solid rgba(255, 0, 127, 0.25);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.ticker-inner {
  display: inline-block;
  animation: tickerSlide 26s linear infinite;
}

.ticker-inner span {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  padding-right: 40px;
}

.ticker-inner b {
  color: var(--secondary);
  margin: 0 8px;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ARCADE GAME SECTION */
.game-section {
  padding: 48px 0;
}

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

.game-frame {
  background: linear-gradient(180deg, #090e24 0%, #030612 100%);
  border: 2px solid rgba(0, 240, 255, 0.4);
  box-shadow: 
    0 0 0 1px rgba(255, 0, 127, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 240, 255, 0.2);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  position: relative;
  overflow: hidden;
}

.game-topline {
  background: rgba(2, 4, 10, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.game-topline .live {
  color: #ff007f;
  text-shadow: 0 0 10px #ff007f;
  animation: pulseDot 1s infinite alternate;
}

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

.game-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 640;
  background: #02040a;
  overflow: hidden;
  touch-action: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: crosshair;
}

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

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

.hud-bubble {
  background: rgba(2, 5, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 240, 255, 0.15);
  padding: 8px 14px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.hud-bubble.meters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bar-name {
  width: 44px;
  color: var(--text-muted);
}

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

.bar-fill {
  display: block;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: width 0.2s ease;
}

.bar-fill.gold-bar {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.bar-fill.score-bar {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

.bar-number {
  width: 46px;
  text-align: right;
  color: var(--text-pure);
}

.day-panel, .zone-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.day-panel strong, .zone-panel strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.day-panel small, .zone-panel small {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* INGAME BOTTOM BAR & HOTBAR */
.hud-bottom {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
}

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

.hotbar .slot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(2, 5, 14, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  transition: all 0.15s ease;
}

.hotbar .slot i {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.hotbar .slot.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--primary);
  color: var(--text-pure);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

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

.hud-control {
  background: rgba(2, 5, 14, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--primary);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 7px 12px;
  cursor: pointer;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  transition: all 0.15s ease;
}

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

/* TOAST ALERT */
.toast {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(2, 5, 14, 0.92);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 8px 20px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 25;
}

/* MODAL OVERLAY (START & GAMEOVER) */
[hidden], .game-modal [hidden] {
  display: none !important;
}

.game-modal {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 30;
  overflow-y: auto;
}

.modal-content {
  max-width: 520px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 16, 38, 0.95), rgba(4, 7, 18, 0.98));
  border: 2px solid var(--primary);
  padding: clamp(24px, 4vw, 36px);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.35);
}

.modal-mark {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.modal-pre {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-pure);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

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

.modal-content .hint {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  color: var(--primary);
  border-top: 1px dashed rgba(0, 240, 255, 0.25);
  padding-top: 12px;
  line-height: 1.5;
}

/* GAME BELOW GUIDES */
.game-below {
  padding: 12px 18px;
  background: rgba(2, 4, 10, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-tech);
  font-size: 0.82rem;
}

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

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

.ctrl .key {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 800;
}

.ctrl-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  margin-right: 6px;
}

/* FEATURES GRID WITH GAMING DATA PLATES */
.features {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(0, 240, 255, 0.14);
}

.features-heading {
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(12, 18, 44, 0.9) 0%, rgba(5, 8, 20, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  padding: 28px 24px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.25);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.feature-n {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--secondary);
  display: block;
  margin-bottom: 8px;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

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

/* STORY SECTION & HOLOGRAPHIC RADAR TERMINAL */
.story {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(255, 0, 127, 0.15);
}

.story-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.story-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-terminal {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.06) 0%, rgba(2, 4, 10, 0.95) 75%);
  border: 2px solid rgba(0, 240, 255, 0.4);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radar-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.radar-rings {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.radar-rings::before {
  content: '';
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 0, 127, 0.35);
}

.radar-rings::after {
  content: '';
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.45) 0deg, transparent 60deg, transparent 360deg);
  transform-origin: 0 0;
  animation: radarRotate 4s linear infinite;
  border-radius: 0 100% 0 0;
}

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

.radar-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff007f;
  box-shadow: 0 0 10px #ff007f;
}

.radar-node.node-1 { top: 32%; left: 68%; }
.radar-node.node-2 { bottom: 28%; left: 35%; background: #00f0ff; box-shadow: 0 0 10px #00f0ff; }
.radar-node.node-3 { top: 65%; right: 28%; }

.radar-core {
  position: relative;
  z-index: 5;
  text-align: center;
  background: rgba(2, 4, 10, 0.85);
  border: 1px solid var(--primary-border);
  padding: 10px 18px;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

.radar-emblem {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.radar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.radar-sub {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-caption {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-top: 14px;
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.orange-rule {
  display: block;
  width: 50px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.story-copy p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.story-copy a {
  color: var(--primary);
  text-decoration: none;
}

.story-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.16);
}

.story-mini div {
  display: flex;
  flex-direction: column;
}

.story-mini strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.story-mini small {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* PATH SECTION */
.path-section {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(0, 240, 255, 0.14);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.path-item {
  background: linear-gradient(180deg, rgba(12, 18, 44, 0.85) 0%, rgba(4, 7, 18, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 24px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.path-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.2);
}

.path-flag {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 6px;
}

.path-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary-glow);
  margin-bottom: 8px;
}

.path-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 8px;
}

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

/* FAQ SECTION */
.faq {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(255, 0, 127, 0.15);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

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

.faq-item {
  background: rgba(10, 16, 38, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.18);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color 0.15s ease;
}

.faq-item summary:hover {
  color: var(--primary);
}

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

.faq-item summary::after {
  content: '▶';
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
  color: var(--secondary);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CLOSING BOX */
.closing {
  padding: 40px 0 60px;
}

.closing-box {
  background: linear-gradient(135deg, rgba(12, 18, 44, 0.95) 0%, rgba(5, 8, 20, 0.98) 100%);
  border: 2px solid var(--primary);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.closing-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 900;
  color: var(--text-pure);
  text-transform: uppercase;
  margin: 12px 0 14px;
}

.closing-box p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* FOOTER */
footer {
  background: #02040a;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  padding: 50px 0 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

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

/* DEDICATED MOBILE TOUCH CONTROLS (Hidden on Desktop) */
.mobile-touch-bar {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.mob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  background: rgba(10, 16, 38, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--text-pure);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: all 0.12s ease;
}

.mob-btn:active {
  transform: scale(0.97);
  background: rgba(0, 240, 255, 0.25);
}

.mob-btn.bomb-touch {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25) 0%, rgba(225, 29, 72, 0.25) 100%);
  border-color: rgba(255, 0, 127, 0.55);
  color: #ff3388;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.25);
}

.mob-btn.bomb-touch:active {
  background: #ff007f;
  color: #fff;
}

.mob-btn.auto-touch {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-layout, .story-layout, .faq-layout, .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .radar-terminal {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-copy {
    text-align: center;
    align-items: center;
  }
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(2, 4, 10, 0.98);
    border-bottom: 1px solid var(--primary-border);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    z-index: 200;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .status-pill {
    display: none;
  }

  .btn-small {
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  /* Hero Section */
  .hero-art {
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .hero-stat {
    padding: 8px 6px;
    text-align: center;
  }

  .hero-stat strong {
    font-size: 1.3rem;
  }

  .hero-stat small {
    font-size: 0.64rem;
  }

  /* Game Frame Mobile Adaptation */
  .game-frame {
    padding: 6px;
    clip-path: none;
    border-radius: 8px;
    margin-bottom: 6px;
  }

  .game-topline {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .game-stage {
    aspect-ratio: 4 / 3;
    min-height: 290px;
    touch-action: none;
    border-radius: 6px;
  }

  /* Modal on Mobile */
  .game-modal {
    padding: 8px;
    overflow-y: auto;
  }

  .modal-content {
    padding: 12px 14px;
    max-width: 96%;
    clip-path: none;
    border-radius: 6px;
  }

  .modal-mark {
    font-size: 1.6rem;
    margin-bottom: 2px;
  }

  .modal-pre {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
  }

  .modal-content h3 {
    font-size: 1.15rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .modal-content p {
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .modal-buttons {
    width: 100%;
    margin-bottom: 6px;
  }

  .modal-buttons .btn {
    width: 100%;
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .modal-content .hint {
    font-size: 0.6rem;
    padding-top: 6px;
    line-height: 1.35;
    margin-top: 4px;
  }

  .game-hud {
    top: 6px;
    left: 6px;
    right: 6px;
    gap: 6px;
  }

  .hud-bubble {
    padding: 4px 8px;
  }

  .hud-bubble.meters {
    min-width: auto;
    gap: 4px;
  }

  .bar-track {
    display: none;
  }

  .bar-row {
    font-size: 0.64rem;
    gap: 4px;
  }

  .zone-panel {
    display: none;
  }

  .day-panel strong {
    font-size: 0.76rem;
  }

  .day-panel small {
    font-size: 0.58rem;
  }

  .hud-bottom {
    bottom: 6px;
    left: 6px;
    right: 6px;
    gap: 6px;
  }

  .hotbar {
    gap: 3px;
  }

  .hotbar .slot {
    padding: 4px 6px;
    font-size: 0.65rem;
  }

  .hud-control {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  /* Switch Desktop Guide to Mobile Touch Bar */
  .game-below {
    display: none;
  }

  .mobile-touch-bar {
    display: grid;
    margin-top: 10px;
  }

  /* Features & Story */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 20px 18px;
  }

  .radar-terminal {
    max-width: 280px;
  }

  .story-mini {
    gap: 10px;
    text-align: center;
  }

  .story-mini strong {
    font-size: 1.15rem;
  }

  /* Path Section */
  .path-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .path-item {
    padding: 18px 16px;
  }

  /* FAQ */
  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .faq-item p {
    padding: 0 16px 14px;
    font-size: 0.86rem;
  }

  /* Closing */
  .closing-box {
    padding: 28px 18px;
  }

  .closing-box h2 {
    font-size: 1.6rem;
  }

  /* Footer */
  .footer-main {
    text-align: center;
  }

  .footer-brand p {
    margin: 10px auto 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hotbar .slot i {
    display: none;
  }
  .game-stage {
    aspect-ratio: 1 / 1;
    min-height: 300px;
  }
  .modal-content {
    padding: 10px 10px;
  }
  .modal-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  .modal-content p {
    font-size: 0.74rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .modal-content .hint {
    display: none;
  }
}
