:root {
  --bg: #06080f;
  --surface: #0d1117;
  --surface-alt: #161d2b;
  --border: #1e2533;
  --text: #ffffff;
  --text-2: #9aa4b2;
  --text-3: #5b6472;
  --accent: #e74c3c;
  --accent-sub: #ff6b35;
  --green: #27ae60;
  --gold: #ffd700;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-sub); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.brand .logo { font-size: 24px; }
.brand .name { color: var(--text); }
.brand .name .v { color: var(--accent); }
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; align-items: center; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }
.nav-links a.play-link {
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 10px; font-weight: 800;
}
.nav-links a.play-link:hover { background: var(--accent-sub); text-decoration: none; }

/* Play Here — device frame */
.play-stage { display: flex; justify-content: center; padding: 32px 0 56px; }
.device-frame {
  /* iPhone 16 Pro Max: 430x932 pt screen + 14px bezel each side. */
  width: 458px; max-width: 96vw; aspect-ratio: 458 / 960;
  background: #000; border: 14px solid #11151d; border-radius: 56px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 2px #2a3242;
  overflow: hidden; position: relative;
}
.device-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.play-hint { text-align: center; color: var(--text-3); font-size: 13px; margin-top: -34px; padding-bottom: 30px; }

/* Hero */
.hero { text-align: center; padding: 72px 0 48px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: -1px; }
.hero h1 .v { color: var(--accent); }
.hero .tagline { color: var(--text-2); font-size: 18px; margin-top: 12px; letter-spacing: 2px; text-transform: uppercase; }
.hero .cta { margin-top: 28px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 14px; font-weight: 800;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-sub); text-decoration: none; }
.btn.secondary { background: var(--surface-alt); border: 1px solid var(--border); color: var(--text); }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--text-2); margin-bottom: 24px; }

/* Steps */
.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.step .num {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.step .txt { font-size: 16px; }

/* Scoring table */
.zones { display: grid; gap: 10px; }
.zone {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
}
.zone .swatch { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.zone .zname { flex: 1; font-weight: 700; }
.zone .pts { font-weight: 900; color: var(--gold); }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mode {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.mode .mhead { display: flex; align-items: center; gap: 10px; }
.mode .memoji { font-size: 24px; }
.mode .mname { font-weight: 800; font-size: 17px; }
.mode .mdesc { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.mode .mdist { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }

/* Prose (privacy) */
.prose { padding: 32px 0 64px; }
.prose h1 { font-size: 34px; font-weight: 900; margin-bottom: 6px; }
.prose .updated { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent-sub); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px;
  color: var(--text-3); font-size: 14px;
}
.site-footer .fnav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer .fnav a { color: var(--text-2); }
