:root {
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --surface-alt: #F3F5F8;
  --ink: #0F172A;
  --ink-hover: #1E293B;
  --muted: #475569;
  --accent: #0F766E;
  --accent-soft: #F0FDFA;
  --warm: #B45309;
  --warm-soft: #FFFBEB;
  --danger: #B91C1C;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.14s ease; }
a:hover { color: var(--ink); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; border-radius: var(--radius); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tabular { font-variant-numeric: tabular-nums; }

/* Refined Sticky Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.025em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.gf-site-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
}
.nav-link:hover { color: var(--ink); background: var(--surface-alt); text-decoration: none; }
.nav-divider { width: 1px; height: 20px; background: var(--border-strong); margin: 0 6px; flex-shrink: 0; }
.nav-cta { margin-left: 8px; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(1.9rem, 4vw, 3.05rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -0.025em; }
h3 { font-size: 18px; letter-spacing: -0.015em; }
p { margin: 0 0 16px; max-width: 68ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-lead { font-size: 17px; line-height: 1.65; color: var(--muted); margin-bottom: 24px; }

/* High-Trust Obsidian Buttons (Stripe / OpenAI style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease, color 0.14s ease;
  touch-action: manipulation;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--ink-hover); color: var(--surface); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-alt); }
.btn-accent {
  background: var(--accent);
  color: var(--surface);
}
.btn-accent:hover { background: var(--ink); color: var(--surface); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 10px; }

/* Hero: Left Value Prop + Right Interactive Live Assessment Preview */
.hero-band {
  padding: 44px 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.hero-text-link:hover { color: var(--ink); }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.proof-mark { color: var(--accent); font-weight: 800; }

/* Right Interactive Demo Card (Clean 2-Tab + Dropdown + Calm Diagnostic Completion) */
.studio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  padding: 20px;
}
.demo-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: 13px;
  margin-bottom: 16px;
}
.demo-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.demo-seg-btn:hover { color: var(--ink); }
.demo-seg-btn.active {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-xs);
}
.demo-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.demo-picker-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.demo-picker-lbl {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.demo-clock-pill {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.demo-select {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 40px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.demo-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.demo-stage-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 20px;
  min-height: 274px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.demo-board { transition: filter 0.25s ease, opacity 0.25s ease; }
.demo-board.blurred {
  filter: blur(3.5px);
  opacity: 0.68;
  pointer-events: none;
  user-select: none;
}
.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.demo-overlay[hidden] { display: none; }
.demo-start-btn {
  min-height: 46px;
  padding: 11px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}
.demo-split-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.demo-split-cell { padding: 14px 10px; text-align: center; }
.demo-split-cell:first-child { border-right: 1px solid var(--border); }
.demo-split-cell span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.demo-split-cell strong { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.demo-prompt-txt { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.demo-tiles-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-tile {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.mini-tile:hover:not(:disabled) { border-color: var(--ink); background: var(--surface-alt); }
.mini-tile.picked { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.mini-tile:disabled { opacity: 0.45; cursor: default; }
.mini-flanker {
  text-align: center;
  padding: 20px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.mini-flanker.alt { color: var(--warm); background: var(--warm-soft); border-color: var(--warm); }
.mini-two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-bart-visual { display:flex; align-items:center; justify-content:center; gap:18px; margin-bottom:14px; }
.mini-bart-pot { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink); }
.mini-status { margin: 10px 0 0; min-height: 20px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.mini-status.ok { color: var(--accent); }
.mini-status.err { color: var(--danger); }

/* Calm Centered Completion Card + Clean Pace Pill */
.demo-complete { text-align: center; padding: 6px 4px 2px; }
.demo-check-badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.demo-done-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.demo-done-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 auto 8px;
  max-width: 24ch;
}
.demo-done-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto 14px;
  max-width: 40ch;
}
.demo-gate-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
}
.demo-gate-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
}
.demo-gate-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 auto 13px;
  max-width: 36ch;
}
.demo-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.demo-sub-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}
.demo-sub-link:hover { color: var(--ink); text-decoration: underline; }
.demo-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin: 6px auto 0;
  max-width: 44ch;
}
.overview-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.overview-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
}
.ov-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overview-list strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.overview-list span { display: block; font-size: 13px; color: var(--muted); }
.pay-notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
}
.replay-gate-box {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin: 16px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.replay-gate-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 6px;
}
.replay-gate-box h3 { margin: 0 0 6px; font-size: 20px; }
.replay-gate-box p { color: var(--muted); font-size: 14px; margin: 0 auto 16px; max-width: 52ch; }
.replay-gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.replay-tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.12s ease;
}
.replay-tier-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.replay-tier-btn.popular {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.replay-tier-btn span { font-size: 12px; font-weight: 600; opacity: 0.8; }
.replay-tier-btn strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.15; }
.replay-tier-btn small { font-family: var(--font-mono); font-size: 12px; opacity: 0.78; }
.replay-gate-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* Post-Game Blurred Report Reveal & Candidate Standing Gauge */
[data-summary] { position: relative; }
.gap-summary-blurred > *:not(.gap-reveal-overlay):not(.replay-gate-box) {
  filter: blur(7px);
  opacity: 0.36;
  pointer-events: none;
  user-select: none;
}
.gap-summary-blurred { min-height: 520px; }
.gap-reveal-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: rgba(250, 251, 253, 0.34);
  transition: opacity 0.24s ease;
}
.gap-reveal-card {
  width: 100%;
  max-width: 416px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.gap-reveal-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.gap-reveal-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.gap-reveal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.24;
  color: var(--ink);
  margin: 0 auto 8px;
  max-width: 24ch;
}
.gap-reveal-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto 14px;
  max-width: 34ch;
  line-height: 1.5;
}
.gap-standing-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 14px;
  text-align: left;
  margin-bottom: 14px;
}
.gap-standing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.gap-standing-head strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.gap-standing-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--danger), var(--warm), var(--accent));
}
.gap-standing-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gap-standing-live { margin: 0 0 14px; }
.gap-standing-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.gap-reveal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.gap-reveal-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gap-reveal-chk { color: var(--accent); font-weight: 800; }
.gap-reveal-cta { width: 100%; min-height: 46px; }
.gap-reveal-foot {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.gap-replay-bar {
  width: 100%;
  max-width: 416px;
  margin-top: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.14s ease, background 0.14s ease;
}
.gap-replay-bar:hover { border-color: var(--ink); background: var(--bg); }
.gap-hub-link {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.gap-hub-link:hover { color: var(--ink); }

/* Employer Trust Strip */
.employer-strip {
  padding: 18px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.employer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.employer-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.employer-list { display: flex; gap: 20px; flex-wrap: wrap; }
.employer-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.78;
}

/* Sections */
.section-band { padding: 60px 0; border-bottom: 1px solid var(--border); }
.section-white { background: var(--surface); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head p { color: var(--muted); margin-bottom: 0; font-size: 16px; }

/* Filter Bar */
.filter-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.filter-btn {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.progress-summary { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-summary strong { color: var(--accent); }

/* High-Craft Light Game Cards + Signature 2px Progress Bar */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.game-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.other-brands-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.other-brands-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 12px;
}
.other-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.other-brand-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}
.other-brand-card:hover {
  text-decoration: none;
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.other-brand-card strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.other-brand-card span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.demo-cross-link {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.demo-cross-link a {
  font-weight: 600;
  color: var(--accent);
}
.mini-shape-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.mini-shape-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.mini-shape-card:hover { border-color: var(--ink); }
.mini-shape-card.picked { border-color: var(--accent); background: var(--accent-soft); }
.mini-digit-display {
  text-align: center;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-digit-input-row {
  display: flex;
  gap: 8px;
}
.mini-digit-input {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  color: var(--ink);
}
.mini-sec-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.mini-sec-orb.go { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.mini-sec-orb.hold { background: var(--warm-soft); border-color: var(--warm); color: var(--warm); }
.mini-pat-grid {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 8px;
  justify-content: center;
  margin: 0 auto 10px;
}
.mini-pat-cell {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.mini-pat-cell.lit { background: var(--accent); border-color: var(--accent); }
.mini-pat-cell.hit { background: var(--ink); border-color: var(--ink); }
.mini-pat-cell:disabled { cursor: default; }
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.game-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.game-thumb svg { width: 100%; height: 100%; }
.game-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.game-provider {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.game-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.45;
}
.game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.game-stage-num { color: var(--ink); font-weight: 700; }
.game-card-bar { height: 2px; width: 100%; background: var(--surface-alt); }
.game-card-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.25s ease; }

/* Telemetry Split Showcase (Steps + Sample Diagnostic Report) */
.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.step-stack { display: flex; flex-direction: column; gap: 22px; }
.step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.step-idx {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h3 { margin-bottom: 4px; font-size: 17px; }
.step-item p { margin: 0; font-size: 15px; color: var(--muted); }

.report-mockup {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.rm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.rm-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.rm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.rm-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.rm-stat span { display: block; font-size: 12px; color: var(--muted); }
.rm-stat strong { display: block; font-family: var(--font-mono); font-size: 20px; color: var(--ink); margin-top: 2px; }
.rm-stat strong.good { color: var(--accent); }
.rm-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--ink);
}

/* Pricing Preview Cards (3-Tier One-Time Passes: $19 / $29 / $39) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
}
.price-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.price-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.price-pop {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--surface);
  background: var(--ink);
  padding: 2px 9px;
  border-radius: 999px;
}
.price-free-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 22px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.price-free-strip strong { color: var(--ink); }
.price-free-strip span { color: var(--muted); }
.price-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.price-sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}
.price-list li { display: flex; gap: 8px; }
.price-check { color: var(--accent); font-weight: 800; }

/* Hub Editorial Index */
.hub-index { border-top: 1px solid var(--border); }
.hub-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.hub-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.hub-desc { font-size: 15px; color: var(--muted); margin: 0; }
.hub-link { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hub-link:hover { color: var(--accent); }

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.data-table, .prose-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td, .prose-block th, .prose-block td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th, .prose-block th {
  background: var(--surface-alt);
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--muted);
}
.data-table tr:last-child td, .prose-block tr:last-child td { border-bottom: none; }

/* Tool Page & Light Executive Simulator Console */
.tool-hero, .page-hero {
  padding: 28px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tool-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tool-lead { color: var(--muted); font-size: 16px; margin: 0; }
.meta-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.simulator-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gap-progress-track { height: 4px; width: 100%; background: var(--surface-alt); }
.gap-progress-fill { height: 100%; width: 100%; background: var(--accent); transition: width 0.12s linear; }
.gap-progress-fill.warn { background: var(--warm); }
.gap-progress-fill.crit { background: var(--danger); }
.gap-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.gap-metrics-group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.gap-metric { display: flex; flex-direction: column; gap: 2px; min-width: 72px; }
.gap-metric-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.gap-metric-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.gap-metric-val.primary { color: var(--ink); }
.gap-metric-val.accent { color: var(--accent); }
.gap-audio-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gap-audio-btn:hover { color: var(--ink); border-color: var(--ink); }

.gap-stage { background: var(--surface); padding: 28px 24px; min-height: 330px; }
.gap-intro-card { max-width: 640px; }
.gap-intro-card p { color: var(--muted); margin-bottom: 16px; }
.gap-feedback { margin-top: 14px; min-height: 22px; font-size: 14px; font-weight: 600; }
.gap-ok { color: var(--accent); }
.gap-err { color: var(--danger); }

.gap-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.gap-report {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.gap-report-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.gap-report-box span { display: block; font-size: 12px; color: var(--muted); }
.gap-report-box strong {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  color: var(--ink);
  margin-top: 4px;
}
.gap-chart-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
}
.gap-chart-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.gap-coach {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  margin: 14px 0;
}
/* Post-Round Conversion Banner */
.gap-upgrade-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.gap-upgrade-bar strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.gap-upgrade-bar span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

@keyframes gapShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.gap-shake { animation: gapShake 0.22s ease; }

/* Content + Side Rail */
.content-with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}
.prose-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-xs);
}
.prose-block h2 { margin-top: 28px; font-size: 22px; }
.prose-block h2:first-child { margin-top: 0; }
.prose-block h3 { margin-top: 20px; font-size: 17px; }
.prose-block p, .prose-block li { color: var(--muted); }
.prose-block strong { color: var(--ink); }
.prose-block ul, .prose-block ol { margin: 0 0 16px; padding-left: 20px; }
.prose-block li { margin-bottom: 7px; }
.prose-block code {
  font-family: var(--font-mono);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
}
.prose-block table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}

.side-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 82px; }
.rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.rail-card h2 { font-size: 16px; margin-bottom: 12px; }
.spec-list { margin: 0; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.rail-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rail-links a {
  display: block;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.rail-links a:hover { border-color: var(--ink); text-decoration: none; }
.rail-links strong { display: block; color: var(--ink); font-size: 14px; }
.rail-links span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* FAQ Accordion */
.faq-list { border-top: 1px solid var(--border); max-width: 840px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { margin-top: 10px; color: var(--muted); font-size: 15px; }
.faq-answer p { margin: 0; }

/* Contact & Tickets */
.ticket-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; margin-top: 26px; }
.ticket-form { display: flex; flex-direction: column; gap: 12px; }
.ticket-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ticket-form input, .ticket-form textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.ticket-form input:focus, .ticket-form textarea:focus { outline: none; border-color: var(--ink); }
.ticket-msg { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0; }

/* Clean Editorial Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-tagline { color: var(--muted); font-size: 14px; margin: 12px 0; max-width: 38ch; }
.footer-more { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.footer-more a { color: var(--ink); font-weight: 600; }
.footer-more a:hover { color: var(--accent); }
.footer-email { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { padding-top: 22px; }
.disclaimer { font-size: 13px; color: var(--muted); margin-bottom: 8px; max-width: 96ch; }
.copyright { font-size: 12px; color: var(--muted); margin: 0; }

/* Legal & 404 */
.legal-wrap { padding: 44px 0 60px; }
.legal-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.notfound-wrap { padding: 72px 0; }

/* Mobile */
@media (max-width: 1024px) {
  .hero-grid, .split-showcase, .content-with-rail, .ticket-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-brands-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hub-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side-rail { position: static; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.35rem); }
  .hero-band { padding: 28px 0 36px; }
  .section-band { padding: 40px 0; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card-body { padding: 12px; }
  .game-title { font-size: 14px; }
  .gap-report, .rm-stats, .footer-grid, .replay-gate-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 0; }
  .footer-col { padding: 18px 0; border-bottom: 1px solid var(--border); }
  .footer-col:first-child { padding-top: 0; }
  .footer-col:last-child { border-bottom: none; padding-bottom: 0; }
  .gap-reveal-card { padding: 20px 16px 18px; }
  .gap-summary-blurred { min-height: 560px; }
  .prose-block { padding: 20px; }
  .gap-stage { padding: 20px 14px; }
  .menu-toggle { display: inline-flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .header-nav.open { display: flex; }
  .nav-divider { width: 100%; height: 1px; margin: 6px 0; background: var(--border); }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}
@media (max-width: 380px) {
  .game-grid { grid-template-columns: 1fr; }
}


/* ===== /arctic-shores refinements · 2026-12-04 ===== */

/* hero 次级链接做成真正的按钮 */
.hero-band-arctic .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-band-arctic .hero-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.hero-band-arctic .hero-link-btn:hover { background: var(--surface-alt); border-color: var(--border-strong); transform: translateY(-1px); }

/* 游戏卡缩略图：加一层机内 HUD，读起来像游戏画面而不是图标 */
.hero-band-arctic .game-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 240 / 150; padding: 16px 12px 8px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-band-arctic .game-thumb svg { width: 100%; height: 100%; display: block; }
.hero-band-arctic .game-thumb::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px;
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
}
.hero-band-arctic .game-thumb::after {
  position: absolute; top: 4px; right: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 7px;
}
.hero-band-arctic .game-card[data-stage-key="balloon-risk"] .game-thumb::after { content: "ROUND 3 / 15 · $0.45"; }
.hero-band-arctic .game-card[data-stage-key="direction"] .game-thumb::after { content: "TRIAL 12 / 30 · 412MS"; }
.hero-band-arctic .game-card[data-stage-key="security"] .game-thumb::after { content: "SIGNAL 21 / 36 · GO"; }
.hero-band-arctic .game-card[data-stage-key="patterns"] .game-thumb::after { content: "SPAN 4 · 3 LIVES"; }

/* 任务目录表格：不再是一堵墙 */
.prose-block table th, .prose-block table td { padding: 8px 11px; vertical-align: top; }
.prose-block tbody tr:nth-child(2n) { background: var(--bg); }

@media (max-width: 768px) {
  .hero-band-arctic h1 { font-size: 28px; line-height: 1.22; letter-spacing: -.012em; }
  .hero-band-arctic .hero-lead { font-size: 15.5px; margin-top: 10px; }
  .hero-band-arctic .hero-pill { font-size: 12px; }
  .hero-band-arctic .hero-actions { margin-top: 14px; }
  .hero-band-arctic .hero-actions .btn,
  .hero-band-arctic .hero-link-btn { flex: 1 1 100%; justify-content: center; }
  .hero-band-arctic .hero-proof { flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
  .prose-block { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose-block table { min-width: 540px; }
}


/* /arctic-shores · 第二轮微调 2026-12-04 */
.hero-band-arctic .breadcrumb { margin-bottom: 16px; }
.hero-band-arctic .game-thumb { padding: 24px 12px 10px; }
.hero-band-arctic .game-thumb::before { height: 24px; background: var(--surface-alt); }
.hero-band-arctic .game-thumb::after { top: 5px; right: 10px; }
.hero-band-arctic .game-card .game-title { margin-top: 4px; }
.hero-band-arctic .hero-link-btn { border-color: var(--border-strong); }
.prose-block p { max-width: 72ch; }
.prose-block tbody tr:nth-child(2n) { background: var(--bg); }
@media (max-width: 768px) {
  .hero-band-arctic .breadcrumb { margin-bottom: 14px; }
  .hero-band-arctic h1 { margin: 10px 0 0; }
}


/* /arctic-shores · 手机端收尾 2026-12-04 */
@media (max-width: 640px) {
  .menu-toggle { min-width: 44px; min-height: 44px; padding: 12px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 768px) {
  .hero-band-arctic .breadcrumb { margin-bottom: 10px; }
  .hero-band-arctic h1 { margin: 6px 0 8px; font-size: clamp(26px, 7vw, 34px); line-height: 1.18; }
  .hero-band-arctic .hero-lead { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
  .hero-band-arctic .demo-seg-btn { padding: 8px 10px; font-size: 12.5px; white-space: nowrap; }
  .hero-band-arctic .demo-seg-btn svg { width: 14px; height: 14px; }
}

/* ===== A2 Auth / Member Popover / Access Banners / Instant Live Demo · 2026-12-06 ===== */
[hidden] { display: none !important; }

.hero-band-arctic { padding: 26px 0 32px; }
.hero-band-arctic .hero-lead { margin-bottom: 18px; }
.hero-band-arctic .hero-actions { margin-bottom: 16px; }
.hero-band-arctic .hero-proof { padding-top: 14px; }
.hero-band-arctic .studio-card { padding: 16px; }
.hero-band-arctic .demo-stage-wrap { min-height: 244px; padding: 16px; }

.nav-auth-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
}
.member-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.member-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.member-pill-btn:hover { border-color: var(--ink); background: var(--surface-alt); }
.member-pill-btn.pass-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.mp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.mp-caret { font-size: 12px; color: var(--muted); }
.member-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
  z-index: 150;
  text-align: left;
}
.mp-head { padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mp-head strong { display: block; font-size: 15px; color: var(--ink); }
.mp-head span { display: block; font-size: 13px; color: var(--muted); word-break: break-all; margin-top: 2px; }
.mp-pass {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.mp-pass.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.mp-pass strong { display: block; font-size: 14px; color: var(--ink); }
.mp-pass span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.mp-upgrade-btn { width: 100%; margin-top: 10px; }
.mp-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.mp-meta-row strong { color: var(--ink); }
.mp-sync-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.mp-section { padding-top: 10px; border-top: 1px solid var(--border); margin-bottom: 10px; }
.mp-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.mp-orders { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mp-orders li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
}
.mp-ord-st {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
}
.mp-ord-st.paid { background: var(--accent-soft); color: var(--accent); }
.mp-ord-st.refunded { background: var(--warm-soft); color: var(--danger); }
.mp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.mp-signout {
  background: none;
  border: none;
  padding: 4px 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.mp-signout:hover { color: var(--danger); }

.pay-notice-warn {
  background: var(--warm-soft);
  border-color: var(--warm);
}
.pay-notice-err {
  background: var(--warm-soft);
  border-color: var(--danger);
}
.pay-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-top: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.pay-status-bar strong { display: block; font-size: 15px; color: var(--ink); }
.pay-status-bar span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pricing-checkout-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 82ch;
}

.gap-access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.gap-access-banner strong { color: var(--ink); }
.gap-access-banner.is-pass {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.gap-access-banner.is-used {
  background: var(--warm-soft);
  border-color: var(--warm);
  color: var(--ink);
}
.gap-access-banner a { font-weight: 700; white-space: nowrap; }

.gap-cloud-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  margin: 14px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
}
.gap-cloud-strip strong { display: block; color: var(--ink); font-size: 14px; }
.gap-cloud-strip.synced {
  background: var(--bg);
  border-color: var(--border);
}
.gap-cloud-strip.synced strong { display: inline; color: var(--accent); }

.gap-upgrade-inline {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.gap-up-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gap-up-link { font-size: 13px; font-weight: 700; white-space: nowrap; }
.gap-up-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gap-up-pills .btn { flex: 1 1 160px; }
.replay-gate-auth-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 auto 12px;
  max-width: 56ch;
}
.btn.is-loading, .replay-tier-btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.mini-digit-start-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.gap-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: 380px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
}
.gap-toast-ok { background: var(--accent); }
.gap-toast-err { background: var(--danger); }

@media (max-width: 640px) {
  .member-popover {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
  .member-menu-wrap { flex-direction: column; align-items: stretch; }
  .member-pill-btn { justify-content: center; }
  .gap-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ===== Unified High-Craft Game Offer Card · 2026-12-06 ===== */
.gap-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gap-save-pill {
  font-size: 13px;
}
.gap-save-pill.synced {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
}

.gap-offer-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 18px 0 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
@keyframes gapOfferPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.35), var(--shadow-sm); }
  55% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.14), var(--shadow-md); }
  100% { box-shadow: var(--shadow-sm); }
}
.gap-offer-pulse { animation: gapOfferPulse 0.9s ease; }

.gap-offer-nudge {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--warm-soft);
  border: 1px solid var(--warm);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.gap-offer-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.gap-offer-head h3 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink);
}
.gap-offer-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 66ch;
}

.gap-offer-gapbar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px 12px;
  margin-bottom: 16px;
}
.gap-offer-gaplabels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.gap-offer-gaplabels strong { color: var(--ink); font-family: var(--font-mono); }
.gap-offer-gaptrack {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: visible;
}
.gap-offer-gapfill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}
.gap-offer-targetmark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.gap-offer-benefits {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.gap-offer-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.gap-offer-benefits strong { color: var(--ink); }
.gap-ben-chk {
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.gap-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.gap-tier-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}
.gap-tier-card:hover { border-color: var(--ink); }
.gap-tier-card.is-selected {
  border-color: var(--ink);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--ink);
}
.gap-tier-top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.gap-tier-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  flex-shrink: 0;
  position: relative;
}
.gap-tier-card.is-selected .gap-tier-radio {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.gap-tier-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.gap-tier-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
}
.gap-tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.gap-tier-price-row strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}
.gap-tier-price-row span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.gap-tier-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.gap-offer-cta-wrap { text-align: center; }
.gap-offer-cta {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}
.gap-offer-trust {
  margin: 10px auto 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 68ch;
}
.gap-offer-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .gap-offer-card { padding: 18px 15px; }
  .gap-offer-benefits { grid-template-columns: 1fr; padding: 12px; }
  .gap-tier-grid { grid-template-columns: 1fr; }
  .gap-offer-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Homepage Closing Experience CTA */
.closing-cta-band {
  padding: 56px 0 64px;
}
.closing-cta-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 280px at 92% 0%, rgba(20, 184, 166, 0.22), transparent 70%),
    radial-gradient(480px 240px at 8% 100%, rgba(15, 118, 110, 0.18), transparent 70%),
    var(--ink);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 42px 32px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
}
.closing-cta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.closing-cta-copy {
  max-width: 620px;
}
.closing-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #5EEAD4;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.24);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.closing-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2DD4BF;
}
.closing-cta-card h2 {
  color: #FFFFFF;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.closing-cta-desc {
  color: #CBD5E1;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 58ch;
}
.closing-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 250px;
}
.closing-btn-primary {
  background: #FFFFFF;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.closing-btn-primary:hover {
  background: #F0FDFA;
  color: var(--ink);
}
.closing-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 46px;
  padding: 11px 22px;
}
.closing-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #FFFFFF;
}
.closing-cta-proof {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 13.5px;
  font-weight: 500;
  color: #CBD5E1;
}
.closing-cta-proof > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.closing-check {
  color: #2DD4BF;
  font-weight: 800;
}

@media (max-width: 900px) {
  .closing-cta-card { padding: 32px 28px 26px; }
  .closing-cta-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .closing-cta-actions { width: 100%; flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 640px) {
  .closing-cta-band { padding: 36px 0 44px; }
  .closing-cta-card { padding: 26px 20px 22px; border-radius: var(--radius); }
  .closing-cta-actions { flex-direction: column; }
  .closing-cta-actions .btn { width: 100%; }
  .closing-cta-proof { gap: 10px 18px; font-size: 13px; margin-top: 22px; padding-top: 16px; }
}

/* ============================================================================
   NATIVE MOBILE APP SHELL, BOTTOM SHEETS, FOCUS PLAY MODE & DISCOVERY UX
   Desktop (>768px) remains untouched; Mobile (<=768px) behaves like a native app
   ============================================================================ */

/* Hidden on Desktop */
.app-topbar,
.app-tabbar,
.gap-focus-exit,
.gap-result-dock { display: none; }
@media (min-width: 769px) {
  .demo-pill-tabs:not(.dir-filter-pills) { display: none; }
}
.dir-filter-pills { border-bottom: none; padding: 12px 0 2px; margin-bottom: 0; }

/* Demo Segmented Pill Tabs (works cleanly on both desktop & mobile) */
.demo-pill-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.demo-pill-tabs::-webkit-scrollbar { display: none; }
.demo-pill-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}
.demo-pill-tab:active { transform: scale(0.96); }
.demo-pill-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.demo-pill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

/* Play Badge Overlay on Game Thumbnails (all viewports) */
.game-thumb { position: relative; }
.game-thumb-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  pointer-events: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.game-card:hover .game-thumb-play {
  background: var(--accent);
  transform: scale(1.08);
}

/* Hide desktop keyboard hints on coarse touch screens */
@media (hover: none) and (pointer: coarse) {
  .kbd-hint,
  .num-keycap,
  .sd-keycap,
  .num-hint { display: none !important; }
  .btn:hover,
  .game-card:hover,
  .other-brand-card:hover { transform: none; }
}

/* Universal Bottom Sheet & iOS Install Modal */
html.app-sheet-open,
html.app-sheet-open body {
  overflow: hidden;
  overscroll-behavior: none;
}
.app-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.app-sheet-backdrop.is-open { opacity: 1; }
.app-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 610;
  max-height: min(86dvh, 680px);
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.app-sheet.is-open { transform: translateY(0); }
.app-sheet-drag {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
  touch-action: none;
}
.app-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}
.app-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.app-sheet-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.app-sheet-body {
  padding: 14px 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet-group-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 12px 0 8px;
}
.sheet-group-label:first-child { margin-top: 0; }
.sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}
.sheet-row:active { transform: scale(0.985); background: var(--surface-alt); }
.sheet-row.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.sheet-row-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sheet-row-txt { flex: 1; min-width: 0; }
.sheet-row-txt strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.sheet-row-txt span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.sheet-chev { font-size: 20px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.sheet-stage-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
}
.sheet-stage-pill.has-prog {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.sheet-lead {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}
.sheet-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.sheet-tier-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.sheet-tier-row.is-selected {
  border-color: var(--ink);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--ink);
}
.sheet-tier-row.is-selected .gap-tier-radio {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.sheet-tier-mid { flex: 1; min-width: 0; }
.sheet-tier-mid strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--ink);
}
.sheet-tier-mid em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
}
.sheet-tier-mid span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.sheet-tier-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}
.sheet-primary-cta {
  width: 100%;
  min-height: 50px;
  font-size: 15.5px;
  border-radius: 14px;
}
.sheet-trust {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 9px 0 12px;
}
.sheet-foot-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.sheet-guest-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.sheet-guest-card strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.sheet-guest-card p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.sheet-guest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-guest-actions .btn { min-height: 42px; padding: 8px 10px; font-size: 13.5px; }
.sheet-progress-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.sheet-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.sheet-progress-head strong { font-family: var(--font-mono); color: var(--ink); }
.sheet-progress-track { height: 7px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.sheet-progress-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.25s ease; }
.sheet-pwa-card,
.gap-pwa-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  margin: 12px 0;
}
.sheet-pwa-card strong,
.gap-pwa-copy strong { display: block; font-size: 13.5px; color: var(--ink); }
.sheet-pwa-card span,
.gap-pwa-copy span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.gap-pwa-acts { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gap-pwa-x {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.sheet-exit-stack { display: flex; flex-direction: column; gap: 10px; }
.sheet-exit-stack .btn { width: 100%; min-height: 48px; }
.sheet-danger-btn { color: var(--danger); border-color: rgba(185, 28, 28, 0.28); }

/* iOS Add-to-Home-Screen Guided Modal */
.ios-install-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
}
.ios-install-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-md);
}
.ios-install-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ios-install-head strong { font-size: 16px; color: var(--ink); }
.ios-install-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.ios-install-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

/* ============================================================================
   MOBILE APP SHELL & VIEWPORT ADAPTATION (<= 768px)
   ============================================================================ */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
  }

  /* Replace desktop header with native compact App Top Bar */
  .site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding-top: env(safe-area-inset-top);
  }
  .header-inner { display: none; }
  .app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 52px;
    padding: 0 14px;
  }
  .app-topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .app-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .app-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.025em;
    text-decoration: none;
  }
  .app-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app-brand .gf-site-icon { width: 26px; height: 26px; border-radius: 7px; }
  .app-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 36px;
    padding: 4px 8px 4px 2px;
    border-radius: 10px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  .app-back-btn:active { background: var(--surface-alt); }
  .app-topbar-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
  }
  .app-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
  }
  .app-icon-btn:active { background: var(--surface-alt); transform: scale(0.95); }
  .app-account-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
  }
  .app-account-pill.pass-on {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }
  .app-account-pill:active { transform: scale(0.96); }

  /* Fixed Bottom 4-Tab Thumb Bar */
  .app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 420;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  }
  .app-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    border: none;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 10px;
    touch-action: manipulation;
    transition: color 0.14s ease, transform 0.1s ease;
  }
  .app-tab:active { transform: scale(0.94); }
  .app-tab:hover { text-decoration: none; color: var(--ink); }
  .app-tab.is-active { color: var(--accent); }
  .app-tab.is-active::before {
    content: "";
    position: absolute;
    top: -6px;
    width: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--accent);
  }
  .app-tab-ico {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
  }
  .app-tab-lbl {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
  }
  .app-tab-badge {
    position: absolute;
    top: -6px;
    right: -16px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #FFFFFF;
    line-height: 1.3;
    transform: scale(0.8);
    transform-origin: center;
  }
  .app-tab-dot {
    position: absolute;
    top: -1px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 1.5px solid var(--surface);
  }

  /* Lift Toast above Bottom Tabbar */
  .gap-toast {
    left: 14px;
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    max-width: none;
    border-radius: 14px;
  }

  /* Hide desktop keyboard hints on mobile viewports as well as coarse pointers */
  .kbd-hint,
  .num-keycap,
  .sd-keycap,
  .num-hint { display: none !important; }

  /* Compact Hero & Instant First-Screen Playability (390x844 & 375x667) */
  .hero-band,
  .hero-band-arctic {
    padding: 12px 0 16px !important;
  }
  .hero-band .breadcrumb,
  .hero-band-arctic .breadcrumb,
  .tool-hero .breadcrumb,
  .page-hero .breadcrumb {
    display: none;
  }
  .hero-grid { gap: 10px; }
  .hero-pill {
    font-size: 12px;
    padding: 3px 10px;
    margin-bottom: 6px;
  }
  .hero-band h1,
  .hero-band-arctic h1 {
    font-size: clamp(22px, 6vw, 25px) !important;
    line-height: 1.16 !important;
    margin: 0 0 6px !important;
    letter-spacing: -0.025em;
  }
  .hero-band .hero-lead,
  .hero-band-arctic .hero-lead {
    font-size: 13.5px !important;
    line-height: 1.42 !important;
    margin: 0 0 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions,
  .hero-band-arctic .hero-actions {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px !important;
    margin: 0 0 8px !important;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 12px;
    flex: unset !important;
  }
  .hero-band-arctic .hero-link-btn,
  .hero-text-link {
    height: auto !important;
    padding: 2px 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--accent) !important;
    font-size: 13px !important;
    font-weight: 700;
    justify-content: center;
    text-align: center;
    flex: unset !important;
  }
  .hero-proof {
    padding-top: 8px !important;
    gap: 4px 12px !important;
    font-size: 12px !important;
  }

  /* App-style Interactive Studio Card */
  .studio-card,
  .hero-band-arctic .studio-card {
    padding: 12px !important;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }
  .studio-card .demo-picker-row { display: none; }
  .studio-card .demo-pill-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 5px;
    overflow: visible;
    padding: 0 0 9px;
    margin-bottom: 9px;
  }
  .studio-card .demo-pill-tab {
    padding: 6px 4px;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .studio-card .demo-stage-wrap,
  .hero-band-arctic .demo-stage-wrap {
    min-height: 204px !important;
    padding: 12px !important;
    border-radius: 13px;
  }
  .demo-split-box { margin-bottom: 9px; }
  .demo-split-cell { padding: 8px 6px; }
  .demo-split-cell strong { font-size: 24px; }
  .demo-prompt-txt { font-size: 12.5px; margin-bottom: 8px; }
  .mini-bart-visual { gap: 14px; margin-bottom: 8px; }
  .mini-bart-visual svg { width: 62px; height: 66px; }
  .mini-bart-pot { font-size: 20px; }
  .mini-two-btns .btn { min-height: 44px; font-size: 13.5px; padding: 8px 10px; border-radius: 11px; }
  .mini-status { margin-top: 6px; min-height: 16px; font-size: 12px; }
  .demo-cross-link { margin-top: 8px; font-size: 12px; }

  /* Employer Strip clean compact wrap (zero right-edge clipping) */
  .employer-strip { padding: 10px 0; }
  .employer-inner { gap: 6px; }
  .employer-label { font-size: 12px; }
  .employer-list {
    flex-wrap: wrap;
    gap: 4px 12px;
    width: 100%;
  }
  .employer-name { white-space: nowrap; font-size: 12.5px; }

  /* Tool Page Prep Header (Compact before Focus Mode) */
  .tool-hero,
  .page-hero { padding: 14px 0 22px; }
  .tool-header-row { gap: 8px; margin-bottom: 12px; }
  .tool-hero h1,
  .page-hero h1 { font-size: clamp(22px, 6vw, 26px); margin-bottom: 4px; }
  .tool-lead { font-size: 14px; line-height: 1.45; }
  .meta-pills { gap: 6px; }
  .meta-pill { font-size: 12px; padding: 4px 9px; }

  /* Simulator Shell Mobile Base */
  .simulator-shell { border-radius: 16px; }
  .gap-bar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gap-bar::-webkit-scrollbar { display: none; }
  .gap-metrics-group {
    flex-wrap: nowrap;
    gap: 14px;
    flex: 1;
  }
  .gap-metric { min-width: 0; }
  .gap-metric-label { font-size: 12px; white-space: nowrap; }
  .gap-metric-val { font-size: 16px; white-space: nowrap; }
  .gap-audio-btn {
    min-height: 32px;
    padding: 4px 9px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .gap-stage { padding: 16px 14px; min-height: 260px; }

  /* ============================================================================
     FULL-VIEWPORT FOCUS PLAY MODE (100dvh Native Game Chamber)
     ============================================================================ */
  html[data-gap-focus="1"],
  html[data-gap-focus="1"] body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    height: 100dvh;
    touch-action: manipulation;
  }
  html[data-gap-focus="1"] .site-header,
  html[data-gap-focus="1"] .app-tabbar {
    display: none !important;
  }
  .simulator-shell[data-gap-focus="1"] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 500 !important;
    width: 100vw;
    height: 100dvh;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    overscroll-behavior: none;
  }
  .simulator-shell[data-gap-focus="1"] .gap-focus-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
  }
  .simulator-shell[data-gap-focus="1"] .gap-bar {
    flex-shrink: 0;
    padding: 8px 10px;
    gap: 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  .simulator-shell[data-gap-focus="1"] .gap-metrics-group {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
    flex: 1;
    min-width: 0;
  }
  .simulator-shell[data-gap-focus="1"] .gap-metric {
    align-items: center;
    text-align: center;
  }
  .simulator-shell[data-gap-focus="1"] .gap-metric:nth-child(n+4) {
    display: none;
  }
  .simulator-shell[data-gap-focus="1"] .gap-audio-btn {
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 10px;
  }
  .simulator-shell[data-gap-focus="1"] .gap-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 14px;
    overflow: hidden;
  }
  .simulator-shell[data-gap-focus="1"] [data-play] {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .simulator-shell[data-gap-focus="1"] [data-play] [data-end] {
    display: none;
  }
  .simulator-shell[data-gap-focus="1"] .gap-feedback {
    margin-top: 6px;
    min-height: 20px;
    font-size: 13px;
  }

  /* Post-Game Compact 2-Column Report + Sticky Mobile Result Dock */
  .gap-report {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .gap-report-box { padding: 11px 12px; border-radius: 12px; }
  .gap-report-box strong { font-size: 19px; }
  .gap-report-head h2 { font-size: 18px; margin: 0; }
  .gap-coach { padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
  /* Hide duplicate inline replay/next row inside summary when Sticky Result Dock is active */
  [data-summary] > .num-actions,
  [data-summary] > .sd-actions,
  [data-summary] > .bart-actions,
  [data-summary] > .nb-actions,
  [data-summary] > div:has(> [data-restart]) {
    display: none !important;
  }
  .gap-result-dock {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    margin: 16px 0 4px;
    padding: 14px 0 0;
    background: transparent;
    border-top: 1px solid var(--border);
  }
  .gap-result-dock .btn {
    min-height: 46px;
    padding: 8px 12px;
    font-size: 13.5px;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile Card Grid & Alignment Polish */
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .game-card { border-radius: 14px; }
  .game-card-body { padding: 10px 11px 11px; gap: 4px; }
  .game-provider { font-size: 12px; }
  .game-title { font-size: 13.5px; line-height: 1.24; }
  .game-desc {
    font-size: 12px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .game-meta-row {
    padding-top: 8px;
    font-size: 12px;
    align-items: baseline;
  }
  .game-thumb-play { width: 26px; height: 26px; right: 7px; bottom: 7px; }

  /* Responsive Table-to-Cards (Zero horizontal scroll wall) */
  .prose-block { padding: 18px 16px; border-radius: 16px; }
  .prose-block table.gap-resp-table {
    min-width: 0 !important;
    border: none;
    background: transparent;
  }
  .prose-block table.gap-resp-table thead { display: none; }
  .prose-block table.gap-resp-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .prose-block table.gap-resp-table tr {
    display: flex;
    flex-direction: column;
    background: var(--bg) !important;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    gap: 6px;
  }
  .prose-block table.gap-resp-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    border: none;
    font-size: 13px;
    text-align: right;
  }
  .prose-block table.gap-resp-table td:first-child {
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
    text-align: left;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .prose-block table.gap-resp-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }
  .prose-block table.gap-resp-table td:first-child::before { display: none; }

  /* Pricing Mobile Polish */
  .price-card { padding: 20px 18px; border-radius: 16px; }
  .price-val { font-size: 32px; }
  .price-free-strip { padding: 12px 14px; font-size: 13px; }

  /* Side Rail on Tool Pages: Compact horizontal next-task cards */
  .rail-card { padding: 16px; border-radius: 14px; }
  .spec-row { padding: 7px 0; font-size: 13px; }
}

/* ============================================================================
   PHASE 1 ENGAGEMENT ENGINE: WARM-UP, MISTAKE BREAKDOWN, RUN HISTORY & SUITE DIAGNOSTIC
   ============================================================================ */
.gap-warmup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 13px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--warm-soft);
  border: 1px solid rgba(180, 83, 9, 0.28);
  color: var(--warm);
  font-size: 12.5px;
  font-weight: 700;
  width: 100%;
}
.gap-warmup-bar span { display: inline-flex; align-items: center; gap: 6px; }
.gap-warmup-exit {
  border: 1px solid rgba(180, 83, 9, 0.35);
  background: var(--surface);
  color: var(--warm);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.gap-warmup-exit:hover { background: var(--warm); color: #FFFFFF; }

.gap-warmup-done {
  text-align: center;
  padding: 24px 20px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  max-width: 520px;
  margin: 4px auto;
}
.gap-warmup-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.gap-warmup-done h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}
.gap-warmup-done p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.gap-warmup-done-acts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.gap-intro-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.btn-warmup {
  border: 1.5px dashed var(--border-strong);
  background: var(--bg);
  color: var(--ink);
}
.btn-warmup:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Detailed Per-Round Breakdown Card */
.gap-breakdown-card {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.gap-bd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gap-bd-head strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink);
}
.gap-bd-head span {
  font-size: 12px;
  color: var(--muted);
}
.gap-bd-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gap-bd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.gap-bd-chip strong { font-family: var(--font-mono); color: var(--ink); font-weight: 700; }
.gap-bd-chip.tone-ok { border-color: rgba(15, 118, 110, 0.3); background: var(--accent-soft); }
.gap-bd-chip.tone-ok strong { color: var(--accent); }
.gap-bd-chip.tone-warn { border-color: rgba(180, 83, 9, 0.3); background: var(--warm-soft); }
.gap-bd-chip.tone-warn strong { color: var(--warm); }

.gap-bd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.gap-bd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
}
.gap-bd-row-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.gap-bd-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--muted);
  flex-shrink: 0;
  text-transform: uppercase;
}
.gap-bd-badge.tone-ok { background: var(--accent-soft); color: var(--accent); }
.gap-bd-badge.tone-warn { background: var(--warm-soft); color: var(--warm); }
.gap-bd-badge.tone-err { background: var(--warm-soft); color: var(--danger); }
.gap-bd-text { min-width: 0; }
.gap-bd-text strong { display: block; color: var(--ink); font-size: 13px; font-weight: 700; }
.gap-bd-text span { display: block; color: var(--muted); font-size: 12px; line-height: 1.38; }
.gap-bd-metric {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.gap-bd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gap-bd-table th,
.gap-bd-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.gap-bd-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-alt);
}
.gap-bd-table tr:last-child td { border-bottom: none; }
.gap-bd-table td { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }

/* Run-by-Run Improvement Trend Card */
.gap-trend-card {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.gap-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gap-trend-head strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink);
}
.gap-trend-deltas { display: flex; gap: 6px; flex-wrap: wrap; }
.gap-trend-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
}
.gap-trend-pill.up { background: var(--accent-soft); color: var(--accent); }
.gap-trend-pill.down { background: var(--warm-soft); color: var(--warm); }
.gap-trend-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.gap-trend-svg { display: block; width: 100%; height: 92px; }

/* Suite Baseline Diagnostic Progress Bar */
.gap-suite-card {
  margin: 14px 0;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}
.gap-suite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.gap-suite-head strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink);
}
.gap-suite-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.gap-suite-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
  margin-bottom: 11px;
}
.gap-suite-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.gap-suite-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.gap-suite-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  font-size: 12.5px;
  color: var(--ink);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.gap-suite-pill:hover { border-color: var(--accent); text-decoration: none; }
.gap-suite-pill.is-done {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.28);
}
.gap-suite-pill.is-cur { border-color: var(--ink); }
.gap-suite-pill em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.gap-suite-pill:not(.is-done) em { color: var(--muted); }
.gap-suite-composite {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  line-height: 1.48;
}
.gap-suite-composite strong { color: var(--accent-soft); }
.gap-suite-composite a { color: var(--accent-soft); font-weight: 700; text-decoration: underline; }
.gap-suite-sub {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* 4-Dimension Readiness Mini Profile in Account Popover & Sheet */
.gap-dims-box {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.gap-dims-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
}
.gap-dim-row { margin-bottom: 7px; }
.gap-dim-row:last-child { margin-bottom: 0; }
.gap-dim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 3px;
}
.gap-dim-top span { color: var(--ink); font-weight: 600; }
.gap-dim-top a,
.gap-dim-top strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.gap-dim-top strong { color: var(--accent); }
.gap-dim-top a { color: var(--muted); text-decoration: underline; }
.gap-dim-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}
.gap-dim-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

@media (max-width: 768px) {
  .gap-intro-btns { flex-direction: column; align-items: stretch; }
  .gap-intro-btns .btn { width: 100%; }
  .gap-bd-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .gap-suite-pills { grid-template-columns: 1fr; }
  .gap-warmup-bar { padding: 6px 10px; margin-bottom: 8px; font-size: 12px; }
}
