:root {
  --bg: #090814;
  --bg2: #17142f;
  --panel: rgba(12, 13, 26, 0.92);
  --panel2: rgba(17, 19, 36, 0.94);
  --line: #6ee7ff;
  --gold: #ffd76b;
  --mint: #8affb2;
  --danger: #ff718d;
  --lava: #ff7e3f;
  --violet: #8f72ff;
  --text: #f7f4ff;
  --muted: #c8c2ef;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(104, 73, 255, 0.28), transparent 30%),
    radial-gradient(circle at 20% 18%, rgba(0, 188, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #1a1740 0%, #0d1023 38%, #05070f 100%);
  font-family: Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
body.game-active { overflow: hidden; }
.page-shell { width: min(1200px, calc(100% - 24px)); margin: 0 auto; padding: 18px 0 36px; }
.frame, .button, .touch-controls button, .faq-list details {
  border: 4px solid #05050a;
  box-shadow: 0 0 0 2px rgba(110, 231, 255, 0.18), var(--shadow);
}
.hero, .copy-panel, .content-card, .game-card, .info-card, .final-cta, .site-footer {
  background: linear-gradient(180deg, rgba(23, 25, 49, 0.96), rgba(8, 9, 19, 0.98));
}
.hero { padding: 16px; overflow: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.brand, .nav-cta, h1, h2, h3, .button, .eyebrow, .hud, summary, .message { font-family: 'Press Start 2P', monospace; }
.brand, .nav-cta { font-size: .78rem; }
.nav-cta { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.eyebrow { font-size: .68rem; line-height: 1.7; color: var(--line); }
h1, h2 { margin: 0 0 16px; line-height: 1.35; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.15rem, 2.4vw, 2rem); }
h3 { font-size: .82rem; line-height: 1.6; }
.subtitle, .lead, .feature-grid p, .steps li, .faq-list p, .controls-bar p, .legend div, .section-copy, .content-copy, .copy-panel p {
  color: var(--muted);
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #b3ffbe, #2ccc6e);
  color: #071109;
  padding: 14px 18px;
  font-size: .68rem;
  cursor: pointer;
}
.button.ghost { background: linear-gradient(180deg, #ffe89d, #ffaf48); }
.button.small { padding: 12px 14px; }
.hero-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #14162f 0%, #1a2f56 35%, #345286 55%, #4c824d 56%, #284a2c 100%);
}
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 4px);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.sun { position: absolute; right: 42px; top: 30px; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle, #fff2a9 0%, #ffae42 58%, rgba(255,174,66,0.1) 72%, transparent 74%); }
.mountain { position: absolute; bottom: 116px; width: 0; height: 0; filter: drop-shadow(0 8px 0 rgba(0,0,0,.3)); }
.mountain-a { left: 0; border-left: 120px solid transparent; border-right: 120px solid transparent; border-bottom: 150px solid #5b57a5; }
.mountain-b { left: 114px; border-left: 105px solid transparent; border-right: 105px solid transparent; border-bottom: 130px solid #44487e; }
.mountain-c { left: 240px; border-left: 82px solid transparent; border-right: 82px solid transparent; border-bottom: 112px solid #313566; }
.temple { position: absolute; right: 86px; bottom: 84px; width: 126px; height: 112px; background: linear-gradient(180deg, #bdb4d6, #675d90); clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%); }
.temple::before { content: ''; position: absolute; inset: 36px 18px 0; background: repeating-linear-gradient(90deg, #2f2844 0 12px, #8b84a7 12px 20px); }
.palm { position: absolute; bottom: 44px; width: 14px; height: 72px; background: #6b4420; }
.palm::before { content: ''; position: absolute; left: -20px; top: -18px; width: 56px; height: 36px; background: radial-gradient(circle at center, #7df29e 0%, #1d8145 70%); clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%); }
.palm-a { left: 38px; } .palm-b { left: 86px; bottom: 52px; }
.hero-sprite, .orb-sprite, .turret-sprite { position: absolute; image-rendering: pixelated; }
.hero-sprite { left: 148px; bottom: 50px; width: 54px; height: 58px; background: linear-gradient(180deg, #4a74ff 0 24%, #ffd9a6 24% 46%, #ff4d74 46% 76%, #411d6e 76% 100%); box-shadow: inset 12px 0 0 #253173, inset -12px 0 0 #253173; }
.orb-sprite { right: 182px; bottom: 86px; width: 26px; height: 26px; background: radial-gradient(circle, #c8ffff 0%, #7af9e3 50%, #13759d 100%); transform: rotate(45deg); }
.turret-sprite { right: 40px; bottom: 60px; width: 44px; height: 34px; background: linear-gradient(180deg, #8573ff, #352c63); border-radius: 8px; }
.section { padding: 34px 0 0; }
.section-head { margin-bottom: 18px; }
.section-head.compact { margin-bottom: 6px; }
.copy-panel, .content-card, .final-cta, .site-footer, .game-card, .info-card { padding: 18px; }
.bullet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.bullet-grid > div { padding: 14px; background: rgba(255,255,255,0.04); border: 2px solid rgba(110, 231, 255, 0.18); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.game-shell { position: relative; }
.game-shell:focus-within { box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.32), var(--shadow); }
.game-shell:fullscreen { width: min(100vw, 960px); max-width: 100vw; margin: 0; min-height: 100vh; padding: 20px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at top, rgba(58, 89, 255, 0.22), rgba(6, 7, 15, 0.98) 62%); }
.game-shell:fullscreen .message { max-width: 760px; }
.game-shell:fullscreen canvas { max-height: calc(100vh - 240px); width: min(88vw, calc(100vh - 240px)); margin: 0 auto; }
.info-card { background: linear-gradient(180deg, rgba(20, 22, 41, 0.98), rgba(10, 11, 22, 0.98)); }
.hud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .52rem; margin-bottom: 12px; }
.hud-group { display: flex; gap: 8px; align-items: center; }
.label { color: var(--gold); }
canvas {
  width: 100%; aspect-ratio: 1; display: block;
  background: radial-gradient(circle at center, #0d1324, #06080f);
  border: 4px solid #000; image-rendering: pixelated; touch-action: none;
}
.controls-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 14px; }
.controls-bar p { margin: 0; font-size: .9rem; }
.message { margin-top: 14px; font-size: .64rem; line-height: 1.7; color: var(--line); min-height: 3.2em; }
.touch-controls { display: none; margin-top: 14px; gap: 10px; flex-direction: column; align-items: center; }
.touch-row { display: flex; gap: 10px; }
.touch-controls button {
  width: 62px; height: 62px;
  background: linear-gradient(180deg, #312a75, #191337);
  color: white;
  font-family: 'Press Start 2P', monospace;
}
.attack-touch { color: var(--gold); }
.feature-grid, .faq-list { display: grid; gap: 16px; }
.steps { margin: 0; padding-left: 20px; }
.steps li + li { margin-top: 12px; }
.legend { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.swatch { display: inline-block; width: 16px; height: 16px; margin-right: 10px; border: 2px solid #000; vertical-align: middle; }
.swatch.shard { background: #77fff4; }
.swatch.key { background: #ffd76b; }
.swatch.spike { background: #ff7e3f; }
.swatch.turret { background: #8f72ff; }
.faq-list details { background: rgba(23, 28, 58, 0.94); padding: 18px; }
summary { cursor: pointer; color: var(--gold); font-size: .74rem; line-height: 1.6; }
.final-cta { text-align: center; }
.site-footer { margin-top: 36px; text-align: center; }
.site-footer p { margin: 8px 0; }
@media (max-width: 960px) {
  .hero-grid, .game-layout, .bullet-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
@media (max-width: 720px) {
  .page-shell { width: min(100% - 16px, 100%); }
  .brand, .nav-cta { font-size: .64rem; }
  .hero-art { min-height: 280px; }
  .controls-bar { justify-content: center; }
  .controls-bar p { width: 100%; text-align: center; }
  .touch-controls { display: flex; }
  .message { text-align: center; }
  .hud { gap: 9px; }
}