/* Landing page. The game canvas sits behind this layer on a desktop. */
* { box-sizing: border-box; }
html { overflow-x: clip; }
html, body { margin: 0; background: #05060c; color: #e6e9f2; }
body { font: 16px system-ui, sans-serif; line-height: 1.5; }
[hidden] { display: none !important; }
#game { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; background: #05060c; pointer-events: none; outline: none; }
body.playing { overflow: hidden; height: 100%; }
body.playing #game { pointer-events: auto; }
#launcher { position: relative; z-index: 1; min-height: 100vh; overflow-x: clip; background: transparent; }
#landing { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; display: flex; flex-direction: column; gap: 28px; }
.hero { order: 1; }
#form { order: 2; }
#how { order: 3; }
#notes { order: 4; }
#landing > footer { order: 5; }
.panel { background: rgba(7, 11, 20, 0.92); border: 1px solid #39405a; border-radius: 12px; padding: 24px; }
h1, h2, h3 { font-family: system-ui, sans-serif; line-height: 1.2; }
h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; margin: 0 0 8px; color: #e6e9f2; }
h1 .beta { color: #ffd34d; font: 12px ui-monospace, Menlo, monospace; letter-spacing: 0; vertical-align: 12px; margin-left: 8px; border: 1px solid #ffd34d; padding: 2px 8px; white-space: nowrap; }
h2 { margin: 0 0 12px; font-size: 22px; color: #e6e9f2; }
h3 { margin: 12px 0 0; font-size: 18px; color: #e6e9f2; }
p { margin: 0 0 12px; color: #cfd5e6; }
.pitch { color: #7fffd4; font-size: 20px; margin: 0 0 8px; }
a { color: #7fffd4; }
nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
label { display: block; margin: 0 0 6px; color: #e6e9f2; font-weight: 700; }
input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #39405a; background: #10162a; color: #e6e9f2; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
button, .actions a { display: inline-block; min-height: 44px; padding: 12px 18px; border: 0; border-radius: 8px; background: #7fffd4; color: #05060c; font: 700 16px system-ui, sans-serif; text-decoration: none; cursor: pointer; }
#form button { margin-top: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article { background: rgba(7, 11, 20, 0.92); border: 1px solid #39405a; border-radius: 12px; overflow: hidden; }
#how h2 { display: inline-block; margin: 0 0 12px; padding: 4px 10px; background: #070b14; border-radius: 8px; }
.cards img { display: block; width: 100%; height: auto; }
.cards h3, .cards p { padding: 0 12px; }
.cards p { padding-bottom: 12px; }
#notes a { margin-right: 16px; }
footer { color: #cfd5e6; }
#phone-note { display: none; color: #ffd34d; font-weight: 700; }
#staging-ribbon { position: fixed; top: 0; left: 0; right: 0; z-index: 40; margin: 0; padding: 4px 0; background: #e6a817; color: #1a1200; text-align: center; font: 700 12px system-ui, sans-serif; letter-spacing: 0.14em; pointer-events: none; }
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  #play, #form button, #add-chrome { display: none; }
  #phone-note { display: block; }
  #launcher { background: #05060c url("hero.png") center 40px / min(960px, 100%) auto no-repeat; }
  #game { display: none !important; }
  h1 .beta { display: inline-block; margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
