/* Pocketful Games: one stylesheet, mobile-first, no framework.
   Per-game colors (--accent, --pop, --wash-*, --pattern ...) come from /css/games.css, which the
   server generates from src/content/games.ts with AA-checked text colors. */

@font-face {
  font-family: 'Pocketful Rounded';
  src: url('/fonts/pocketful-rounded-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* palette: sampled from the official logo (navy wordmark, sky "Games", denim pocket, toys) */
  --navy: #1a4277;
  --sky: #3c9dec;
  --denim: #4897df;
  --denim-deep: #235fa3;
  --sun: #fed048;
  --leaf: #38c670;
  --tomato: #fc5f41;
  --grape: #8057d9;
  --blush: #fda4a1;

  --bg: #f7faff;
  --surface: #ffffff;
  --surface-2: #f0f6fd;
  --glass: rgba(255, 255, 255, 0.86);
  --text: #172a4d;
  --muted: #4e5f80;
  --line: #dfe8f4;
  --line-strong: #c5d4e8;
  --device: #16203a;
  --ok: #17703a;
  --error: #b42318;
  --banner-bg: #ffe08a;
  --banner-text: #3a2c00;

  /* the accent family: studio sky blue by default, per game from games.css */
  --accent: var(--sky);
  --on-accent: #0f1f3d;
  --accent-deep: var(--denim-deep);
  --accent-ink: #1f5fa8;
  --accent-soft: #e2f0fd;
  --pop: var(--sun);
  --wash-1: #dcedff;
  --wash-2: #fff2c6;
  --pattern: none;
  --pattern-on-accent: none;

  /* type */
  --font-display: 'Pocketful Rounded', ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* shape, depth, motion */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 42, 77, 0.06), 0 3px 8px rgba(23, 42, 77, 0.06);
  --shadow-md: 0 2px 4px rgba(23, 42, 77, 0.05), 0 12px 28px -8px rgba(23, 42, 77, 0.18);
  --shadow-lg: 0 4px 10px rgba(23, 42, 77, 0.06), 0 28px 56px -16px rgba(23, 42, 77, 0.3);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --page: 1120px;
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1630;
    --surface: #15213f;
    --surface-2: #111b36;
    --glass: rgba(21, 33, 63, 0.88);
    --text: #eef4ff;
    --muted: #a7b6d4;
    --line: #233257;
    --line-strong: #34487a;
    --device: #070d1d;
    --ok: #6fdc8c;
    --error: #ff8a80;
    --banner-bg: #5c4700;
    --banner-text: #fff3c4;
    --accent-ink: #8cc4ff;
    --accent-soft: #182c52;
    --wash-1: #12305e;
    --wash-2: #2b2816;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 28px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.3), 0 28px 56px -16px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(70% 520px at 0% 0%, var(--wash-1), transparent 72%),
    radial-gradient(60% 460px at 100% 6%, var(--wash-2), transparent 72%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The game's pattern, fading out down the page. */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  background-image: var(--pattern);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
  pointer-events: none;
}
main { display: block; overflow-x: hidden; overflow-x: clip; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 8px;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); margin: 0.2em 0 0.2em; }
h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin: 0 0 0.35em; }
h3 { font-size: 1.2rem; margin: 0 0 0.3em; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.fine { color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin: 10px 0 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0.4em auto 0; }
.kicker {
  margin: 0 0 10px;
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
[hidden] { display: none !important; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 1.1em; height: 1.1em; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); color: var(--text); padding: 10px 14px; z-index: 50; border-radius: var(--r-sm); box-shadow: var(--shadow-md); }

.test-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 6px 14px;
  border-bottom: 2px dashed currentColor;
}

/* ---------- Header and logo ---------- */
.site-header { position: relative; z-index: 10; }
.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 10px var(--gutter);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 12px; }
.logo-mark { display: block; width: auto; height: 44px; flex: none; }
.logo .logo-mark { transition: transform 0.35s var(--spring); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.wordmark, .wordmark img { display: block; height: 34px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-edge: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1.1rem/1 var(--font-display);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 24px -10px var(--btn-edge);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04) saturate(1.05); box-shadow: 0 6px 0 var(--btn-edge), 0 18px 28px -10px var(--btn-edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px -8px var(--btn-edge); transition-duration: 0.05s; }
.btn:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; border-radius: var(--r-pill); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn .icon { transition: transform 0.2s var(--spring); }
.btn:hover .icon { transform: translateX(3px); }
.btn-cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%), var(--btn-bg);
  min-height: 58px;
  font-size: 1.18rem;
}
.btn-wide { width: 100%; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.98rem; box-shadow: 0 3px 0 var(--btn-edge); }
.btn-small:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn-quiet { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-edge: var(--line-strong); border: 1.5px solid var(--line-strong); }
.btn-danger { --btn-bg: var(--error); --btn-fg: #fff; --btn-edge: #7a170f; }
@media (prefers-color-scheme: dark) { .btn-danger { --btn-fg: #2a0a06; --btn-edge: #a8423a; } }
.btn.header-cta { display: none; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px 7px 11px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font: 700 0.76rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); }
.chip {
  display: inline-block;
  margin: 0;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 700 0.74rem/1.1 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- Game page: hero ---------- */
.hero {
  /* everything above the CTA's bottom edge, minus the phone: see the .device height */
  --hero-chrome: 352px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 2px var(--gutter) 28px;
  display: grid;
  grid-template-areas: 'head' 'media' 'actions';
  justify-items: center;
  text-align: center;
  row-gap: 16px;
}
.is-preview .hero { --hero-chrome: 400px; }
.hero-head { grid-area: head; }
.hero h1 { font-size: clamp(2.5rem, 11.5vw, 4.9rem); line-height: 0.98; margin: 12px 0 8px; letter-spacing: -0.025em; }
.tagline { margin: 0 auto; max-width: 30ch; font-size: 1.1rem; line-height: 1.38; color: var(--muted); }
.hero-media { grid-area: media; position: relative; display: grid; place-items: center; }
.hero-actions { grid-area: actions; width: 100%; display: grid; justify-items: center; }
.hero-actions .btn { width: min(100%, 380px); }
.hero-actions .fine { max-width: 34ch; }
.hero-actions .btn-vote { margin-top: 10px; }
.btn-vote .icon { color: var(--error); }
.btn-vote[aria-pressed="true"] { opacity: 1; cursor: default; }

.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-1 {
  width: 115%; aspect-ratio: 1; left: -45%; top: 2%;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0.32;
}
.blob-2 {
  width: 95%; aspect-ratio: 1; right: -42%; bottom: -4%;
  background: radial-gradient(closest-side, var(--pop), transparent);
  opacity: 0.36;
}

/* The phone mock-up. Percent radii keep the corners round at any size (9:16 frame). */
.device {
  position: relative;
  aspect-ratio: 9 / 16;
  height: clamp(240px, calc(100vh - var(--hero-chrome)), 560px);
  height: clamp(240px, calc(100svh - var(--hero-chrome)), 560px);
  max-width: 76vw;
}
.device-frame {
  position: absolute;
  inset: 0;
  padding: 3.4%;
  border-radius: 13.5% / 7.6%;
  background: linear-gradient(150deg, #4a405f 0%, var(--device) 22%, var(--device) 78%, #3a3150 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 4px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(30, 18, 50, 0.12),
    0 30px 60px -18px rgba(30, 18, 50, 0.5),
    0 18px 36px -24px var(--accent);
  transform: rotate(-2deg);
}
.device::before, .device::after {
  content: '';
  position: absolute;
  width: 1.4%;
  border-radius: 2px;
  background: #3a3150;
  transform: rotate(-2deg);
}
.device::before { left: -1%; top: 22%; height: 8%; }
.device::after { right: -1.1%; top: 28%; height: 13%; }
.device-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10.6% / 5.9%;
  background: #120e1a;
}
.video-toggle {
  position: absolute;
  right: 9%;
  bottom: 6.5%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  background: rgba(18, 12, 28, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 700 0.8rem/1 var(--font-body);
  cursor: pointer;
  transform: rotate(-2deg);
}
.video-toggle::before {
  content: '';
  width: 10px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video-toggle[data-state='playing']::before { clip-path: none; background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%); }
.video-toggle:focus-visible { outline-color: #fff; }

.sticker {
  position: absolute;
  left: max(-6px, calc(50% - 7.6em));
  bottom: 19%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font: 700 0.78rem/1 var(--font-body);
  box-shadow: var(--shadow-md);
  transform: rotate(-6deg);
  white-space: nowrap;
}
.sticker .icon { color: var(--accent-ink); }

/* Placeholder art (no clip or screenshots yet): themed, deliberate. */
.placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(closest-side, rgba(20, 10, 30, 0.34), transparent) center / 120% 60% no-repeat,
    var(--pattern-on-accent),
    linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 100%);
  background-size: 120% 60%, 96px 96px, auto;
}
.placeholder-title { position: relative; font: 700 clamp(1.4rem, 9cqw, 2.2rem)/1.05 var(--font-display); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22); }
.placeholder-note {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--r-pill);
  background: rgba(20, 10, 30, 0.6);
  font: 700 0.74rem/1.15 var(--font-body);
}
.ph-shapes span { position: absolute; display: block; }
.ph-a { width: 22%; aspect-ratio: 1; left: 12%; top: 12%; border-radius: 26%; background: var(--pop); transform: rotate(-14deg); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14); }
.ph-b { width: 15%; aspect-ratio: 1; right: 14%; top: 20%; border-radius: 50%; background: #fff; opacity: 0.9; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.ph-c { width: 26%; aspect-ratio: 1; right: 10%; bottom: 13%; border-radius: 30%; background: var(--sun); transform: rotate(12deg); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.14); }
.ph-d { width: 13%; aspect-ratio: 1; left: 16%; bottom: 18%; border-radius: 50%; background: var(--pop); opacity: 0.9; }
.device-frame .placeholder { container-type: inline-size; }

/* ---------- Sections ---------- */
.section { max-width: var(--page); margin: 0 auto; padding: 44px var(--gutter); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.section-head h2 { margin-bottom: 0.2em; }
.how .lead { font-size: 1.04rem; }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.05);
}
.feature-icon .icon { width: 28px; height: 28px; }
.feature-card h3 { margin: 4px 0 4px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Screenshots: a swipeable strip (scroll-snap, no JS) on phones, a row on wide screens. */
.shot-strip {
  list-style: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 22px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shot-strip::-webkit-scrollbar { display: none; }
.shot-strip:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.shot-strip li { flex: 0 0 auto; width: min(46vw, 230px); scroll-snap-align: start; }
.shot-strip li:nth-child(even) { transform: translateY(14px); }
.shot-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 598 / 1300;
  object-fit: cover;
  border-radius: 24px;
  border: 5px solid var(--device);
  background: var(--line);
  box-shadow: var(--shadow-md);
}

/* Signup */
.signup-wrap { max-width: 580px; }
.signup {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 30px 20px 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 30px 70px -40px var(--accent);
  overflow: hidden;
  scroll-margin-top: 64px;
}
.signup::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--accent), var(--pop));
}
.signup p { margin: 0; }
.signup-head { text-align: center; display: grid; justify-items: center; gap: 4px; }
.signup-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 22px;
  background: var(--accent-soft);
  transform: rotate(-6deg);
}
.signup-badge .logo-mark { height: 40px; transform: rotate(6deg); }
.signup h2 { margin: 0; font-size: clamp(1.8rem, 7vw, 2.2rem); }
.perks { list-style: none; margin: 4px 0 6px; padding: 14px 16px; display: grid; gap: 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--line-strong); }
.perks li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; line-height: 1.35; }
.perks .icon { color: var(--accent-ink); width: 1.25rem; height: 1.25rem; }
.field-label { font-weight: 700; font-size: 0.95rem; margin-bottom: -6px; }
.field {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 400 1.08rem/1 var(--font-body);
  transition: border-color 0.15s, box-shadow 0.2s var(--ease), background 0.15s;
}
.field::placeholder { color: var(--muted); opacity: 0.75; }
.field:hover { border-color: var(--accent); }
.field:focus { outline: none; border-color: var(--accent-ink); background: var(--surface); box-shadow: 0 0 0 5px var(--accent-soft); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 0.93rem; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-ink); cursor: pointer; }
.check input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* .cf-turnstile: no reserved height; with data-appearance="interaction-only" it only takes space when Turnstile needs the visitor. */
.status { min-height: 1.5em; font-weight: 700; text-align: center; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }
.signup-fine { margin: 10px 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); text-align: center; }
.note { font-size: 0.9rem; color: var(--error); }
.signup.done .field, .signup.done .check, .signup.done .perks { opacity: 0.55; }
.signup.done .status { padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--text); }
.stack { display: grid; gap: 14px; margin: 20px 0; text-align: left; }
.stack .field-label { margin-bottom: -8px; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font: 700 1.1rem/1.25 var(--font-display);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--accent-ink); transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.disclaimer { text-align: center; color: var(--muted); font-size: 0.85rem; max-width: 560px; margin: 0 auto; padding: 8px var(--gutter) 24px; }

/* Sticky mobile CTA: app.js shows it between the hero button and the form. */
.sticky-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 9px 9px 9px 18px;
  border-radius: 22px;
  background: var(--surface);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 30px));
  transition: transform 0.35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-title { display: grid; line-height: 1.15; min-width: 0; }
.sticky-cta .btn { flex: none; white-space: nowrap; padding: 0 16px; }
.sticky-title strong { font: 700 1.05rem/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-title small { color: var(--muted); font-size: 0.78rem; }

/* ---------- Launch-game showcase: stats, clip reel, journey, boosters, encore ---------- */
.stats-wrap { padding-top: 8px; padding-bottom: 8px; }
.stats-band {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stats-band li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 16px 10px 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
}
.stats-band li::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--accent), var(--pop)); }
.stats-band strong { font: 700 clamp(2rem, 9vw, 2.7rem)/1 var(--font-display); color: var(--accent-ink); letter-spacing: -0.02em; }
.stats-band span { color: var(--muted); font-weight: 700; font-size: 0.92rem; }

/* A small phone holding a looping clip (reel cards and the home page's featured cards). */
.clip-phone { position: relative; width: 100%; aspect-ratio: 9 / 16; }
.clip-frame {
  position: absolute;
  inset: 0;
  padding: 4%;
  border-radius: 14% / 8%;
  background: linear-gradient(150deg, #4a405f 0%, var(--device) 22%, var(--device) 78%, #3a3150 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 2px 4px rgba(30, 18, 50, 0.12), 0 22px 44px -18px rgba(30, 18, 50, 0.5), 0 14px 30px -20px var(--accent);
}
.clip-screen { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10.5% / 6%; background: #120e1a; }
.clip-toggle { right: 8%; bottom: 5%; transform: none; }

.reel-strip {
  list-style: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 26px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel-strip::-webkit-scrollbar { display: none; }
.reel-strip:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.reel-card {
  flex: 0 0 auto;
  width: min(72vw, 290px);
  scroll-snap-align: center;
  display: grid;
  gap: 14px;
  align-content: start;
}
.reel-card .clip-phone { width: 86%; justify-self: center; }
.reel-card:nth-child(odd) .clip-frame { transform: rotate(-1.5deg); }
.reel-card:nth-child(even) .clip-frame { transform: rotate(1.5deg); }
.reel-copy { position: relative; padding: 16px 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.reel-num {
  position: absolute;
  top: -15px;
  left: 14px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--pop));
  color: #fff;
  font: 700 0.85rem/1 var(--font-display);
  box-shadow: var(--shadow-sm);
}
.reel-copy h3 { margin: 6px 0 4px; }
.reel-copy p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.journey-list { list-style: none; margin: 0 auto; padding: 0 0 0 30px; max-width: 760px; position: relative; display: grid; gap: 14px; }
.journey-list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--accent), var(--pop));
  opacity: 0.55;
}
.journey-stop { position: relative; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.journey-dot {
  position: absolute;
  left: -27px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.journey-stop:nth-child(even) .journey-dot { border-color: var(--pop); }
.journey-levels { margin: 0 0 4px; font: 700 0.76rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.journey-stop h3 { margin: 0 0 4px; }
.journey-stop > p:last-child { margin: 0; color: var(--muted); font-size: 0.97rem; }

.booster-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.booster { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 12px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; transition: transform 0.25s var(--spring); }
.booster:hover { transform: translateY(-3px) rotate(-1deg); }
.booster-badge {
  --badge: var(--accent);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 42%), var(--badge);
  color: #fff;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16), var(--shadow-sm);
}
.booster:nth-child(6n + 2) .booster-badge { --badge: var(--pop); }
.booster:nth-child(6n + 3) .booster-badge { --badge: var(--sky); }
.booster:nth-child(6n + 4) .booster-badge { --badge: var(--leaf); }
.booster:nth-child(6n + 5) .booster-badge { --badge: var(--tomato); }
.booster:nth-child(6n + 6) .booster-badge { --badge: var(--grape); }
.booster strong { font: 700 1.08rem/1.15 var(--font-display); }
.booster > span:last-child { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }

.encore {
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 22px;
  border-radius: var(--r-xl);
  text-align: center;
  background:
    radial-gradient(80% 120% at 0% 0%, var(--wash-1), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, var(--wash-2), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.encore > :not(.blob) { position: relative; }
.encore .blob-1 { width: 60%; left: -20%; top: -30%; }
.encore .blob-2 { width: 50%; right: -18%; bottom: -30%; }
.encore h2 { margin: 0 0 8px; }
.encore .lead { margin: 0 auto 22px; }

/* ---------- Home ---------- */
.home-hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px var(--gutter) 28px;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.home-hero h1 { font-size: clamp(2.2rem, 9vw, 4.4rem); line-height: 1; letter-spacing: -0.025em; max-width: 13ch; margin: 14px auto 10px; }
.home-hero .lead { margin-bottom: 22px; }
.home-hero-art { position: relative; order: -1; width: min(76vw, 400px); }
.lockup, .lockup img { position: relative; display: block; width: 100%; height: auto; }
.home-hero-art .blob-1 { width: 90%; left: -24%; top: -6%; background: radial-gradient(closest-side, var(--sky), transparent); opacity: 0.28; }
.home-hero-art .blob-2 { width: 80%; right: -22%; bottom: 4%; opacity: 0.4; }

.game-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.game-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.game-card:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.game-card:focus-visible { outline-offset: 4px; border-radius: var(--r-xl); }
.game-card-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 212px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 10%, var(--wash-1), transparent 70%),
    radial-gradient(60% 80% at 90% 90%, var(--wash-2), transparent 70%),
    var(--surface-2);
}
.game-card-art::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px 96px; }
.game-card-art img, .game-card-placeholder {
  position: relative;
  width: 118px;
  height: 210px;
  margin-top: 44px;
  object-fit: cover;
  border-radius: 22px;
  border: 5px solid var(--device);
  box-shadow: var(--shadow-md), 0 18px 30px -16px var(--accent);
  transform: rotate(-5deg);
  transition: transform 0.4s var(--spring);
}
.game-card-placeholder { padding: 10px; gap: 8px; }
.game-card-placeholder .placeholder-title { font-size: 1.15rem; }
.game-card-placeholder .placeholder-note { font-size: 0.62rem; padding: 5px 7px; }
.game-card-placeholder .placeholder-note .icon { display: none; }
.game-card:hover .game-card-art img, .game-card:hover .game-card-placeholder { transform: rotate(0deg) translateY(-8px); }
.game-card-body { display: grid; gap: 6px; justify-items: start; padding: 18px 20px 20px; flex: 1; align-content: start; }
.game-card-title { font: 700 1.55rem/1.1 var(--font-display); margin-top: 4px; }
.game-card-tagline { color: var(--muted); }
.game-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--accent-ink); }
.game-card-cta .icon { transition: transform 0.2s var(--spring); }
.game-card:hover .game-card-cta .icon { transform: translateX(4px); }

/* Featured launch games: the hero clip playing in a phone beside the title and numbers. */
.featured-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; gap: 22px; }
.feature-game {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 18px;
  padding: 22px 18px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 90% at 0% 0%, var(--wash-1), transparent 70%),
    radial-gradient(80% 90% at 100% 100%, var(--wash-2), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md), 0 30px 60px -40px var(--accent);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-game::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 110px 110px; opacity: 0.6; pointer-events: none; }
.feature-game:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), 0 34px 70px -36px var(--accent); }
.feature-game:focus-visible { outline-offset: 4px; border-radius: var(--r-xl); }
.feature-game-art { position: relative; display: grid; place-items: center; }
.feature-game-art .blob-1 { width: 130%; left: -50%; top: -10%; }
.feature-game-art .blob-2 { width: 110%; right: -45%; bottom: -10%; }
.feature-game-phone { width: min(100%, 230px); transform: rotate(-3deg); transition: transform 0.4s var(--spring); }
.feature-game:hover .feature-game-phone { transform: rotate(0deg) translateY(-6px); }
.feature-game-body { position: relative; display: grid; gap: 8px; justify-items: start; }
.feature-game-title { font: 700 clamp(1.7rem, 7vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.02em; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.mini-stats span { padding: 5px 10px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.mini-stats b { color: var(--accent-ink); font-family: var(--font-display); }
.feature-game-cta { min-height: 48px; padding: 0 20px; font-size: 1rem; }
.game-grid-small .game-card-art { height: 180px; }
.game-grid-small .game-card-art img, .game-grid-small .game-card-placeholder { width: 100px; height: 178px; margin-top: 40px; }

.about-card {
  display: grid;
  gap: 26px;
  padding: 30px 22px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 120% at 0% 0%, var(--wash-1), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, var(--wash-2), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.about-copy p:last-child { margin-bottom: 0; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pillars li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--line);
}
.pillars .icon { grid-row: span 2; width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.pillars strong { font: 700 1.08rem/1.2 var(--font-display); }
.pillars span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Message pages (confirm, thanks, unsubscribe, delete, 404) ---------- */
.message { display: grid; place-items: center; padding: 20px var(--gutter) 56px; min-height: 62vh; }
.message-card {
  width: 100%;
  max-width: 540px;
  padding: 26px 22px 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.message-card .illustration { width: 168px; height: auto; margin: 0 auto 6px; }
.message-card h1 { font-size: clamp(2rem, 8vw, 2.6rem); margin: 12px 0 10px; }
.message-card > p:not(.chip) { font-size: 1.05rem; margin: 0 0 12px; }
.message-card .chip { margin-top: 4px; }
.message-actions { margin-top: 22px; display: grid; justify-items: center; gap: 10px; }
.message-actions form { width: 100%; }

.illustration { overflow: visible; }
.il-blob { fill: var(--accent-soft); }
.il-paper { fill: var(--surface); stroke: var(--text); stroke-width: 3; stroke-linejoin: round; }
.il-line, .il-fold { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il-fold { stroke-opacity: 0.35; }
.il-heart { fill: var(--tomato); }
.il-spark { fill: var(--sun); }
.il-dot { fill: var(--sky); }
.il-dot2 { fill: var(--leaf); }
.il-dot3 { fill: var(--sun); }
.il-star { fill: var(--sun); stroke: var(--text); stroke-width: 3; stroke-linejoin: round; }
.il-eye { fill: #16243d; }
.il-smile { fill: none; stroke: #16243d; stroke-width: 3; stroke-linecap: round; }
.il-conf1 { fill: var(--tomato); }
.il-conf2 { fill: var(--sky); }
.il-conf3 { fill: var(--leaf); }
.il-trail { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; }
.il-shield { fill: var(--leaf); stroke: var(--text); stroke-width: 3; stroke-linejoin: round; }
.il-check { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.il-q { fill: none; stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.il-qdot { fill: var(--text); }

/* ---------- Privacy policy and admin ---------- */
.prose-page { max-width: 780px; margin: 0 auto; padding: 8px var(--gutter) 56px; }
.prose-head { text-align: center; padding: 8px 0 22px; }
.prose-head .illustration { width: 140px; height: auto; margin: 0 auto; }
.prose-head h1 { margin: 6px 0 10px; }
.prose-head .muted { max-width: 54ch; margin: 0 auto; }
.prose { padding: 6px 22px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.prose h2 { font-size: 1.4rem; margin: 1.6em 0 0.5em; padding-top: 1.1em; border-top: 1px dashed var(--line-strong); }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: var(--accent); }
.prose ul ul { margin-top: 0.45em; }

.page { margin: 28px auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; }
.wide { max-width: var(--page); }
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
caption { text-align: left; font: 700 1.05rem/1.2 var(--font-display); padding: 14px 14px 8px; }
th, td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Footer and cookie notice ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 0.9rem; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 30px var(--gutter) 36px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.page-game .footer-inner { padding-bottom: 104px; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-align: left; }
.footer-mark { width: auto; height: 46px; }
.footer-brand p { margin: 0; display: grid; }
.footer-brand strong { font: 700 1.1rem/1.2 var(--font-display); color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-links a, .footer-links .linklike { color: var(--text); font-weight: 700; padding: 6px 0; }
.footer-legal { margin: 0; font-size: 0.82rem; }

.cookie-notice {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
}
.cookie-notice p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow-dot { animation: pulse 2.4s var(--ease) infinite; }
  .sticker { animation: bob 4s ease-in-out infinite; }
  .ph-a { animation: float-a 6s ease-in-out infinite; }
  .ph-c { animation: float-c 7s ease-in-out infinite; }
  .ph-b, .ph-d { animation: float-b 5s ease-in-out infinite; }
  .home-hero-art .lockup { animation: bob-soft 6s ease-in-out infinite; }
  /* Entrance on scroll: pure CSS where scroll timelines exist; app.js covers the rest. */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise both linear; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
  .js-reveal .reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(26px) scale(0.985); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
@keyframes bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-5px); } }
@keyframes bob-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-a { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes float-c { 0%, 100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(22deg) translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .btn.header-cta { display: inline-flex; }
  .feature-card { padding: 22px; }
  .signup { padding: 36px 32px 28px; }
  .message-card { padding: 34px 40px 36px; }
  .prose { padding: 10px 40px 34px; }
  .footer-inner { grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .footer-legal { grid-column: 1 / -1; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars li { grid-template-columns: 1fr; row-gap: 10px; padding: 18px; }
  .pillars .icon { grid-row: auto; }
  .game-card-art { height: 236px; }
  .stats-band { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .reel-card { width: 280px; }
  .feature-game { padding: 28px; gap: 26px; }
}
/* Narrow phones: the featured card stacks, phone first. */
@media (max-width: 479px) {
  .feature-game { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature-game-body { justify-items: center; }
  .mini-stats { justify-content: center; }
  .feature-game-phone { width: min(56vw, 210px); }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas: 'head media' 'actions media';
    grid-template-rows: auto 1fr;
    justify-items: start;
    text-align: left;
    column-gap: 56px;
    row-gap: 26px;
    padding-top: 40px;
    padding-bottom: 64px;
  }
  .hero-head { align-self: end; }
  .hero-actions { align-self: start; justify-items: start; }
  .hero-actions .btn { width: auto; padding: 0 40px; }
  .hero h1 { font-size: clamp(3.6rem, 6.4vw, 5.8rem); }
  .tagline { margin: 0; font-size: 1.35rem; }
  .hero-media { justify-self: center; }
  .device { height: min(600px, calc(100vh - 170px)); min-height: 440px; max-width: none; }
  .sticker { left: -34px; font-size: 0.85rem; padding: 10px 14px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature-card { grid-template-columns: 1fr; padding: 26px; }
  .feature-icon { grid-row: auto; margin-bottom: 14px; }
  .shot-strip { justify-content: center; overflow: visible; margin: 0; padding: 0 0 24px; }
  .shot-strip li { width: 220px; }
  /* The reel becomes a wrapped grid; the journey a two-column zigzag. */
  .reel-strip { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 8px 0 0; gap: 34px 26px; }
  .reel-card { width: 300px; }
  .journey-list { padding-left: 0; max-width: 980px; grid-template-columns: 1fr 1fr; column-gap: 72px; row-gap: 18px; }
  .journey-list::before { left: calc(50% - 2px); }
  .journey-stop:nth-child(odd) { grid-column: 1; text-align: right; }
  .journey-stop:nth-child(even) { grid-column: 2; margin-top: 60px; }
  .journey-stop:nth-child(odd) .journey-dot { left: auto; right: -47px; }
  .journey-stop:nth-child(even) .journey-dot { left: -47px; }
  .encore { padding: 56px 48px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .feature-game { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 34px 28px 30px; }
  .feature-game-body { justify-items: center; }
  .mini-stats { justify-content: center; }
  .feature-game-phone { width: 240px; }
  .sticky-cta { display: none; }
  .page-game .footer-inner { padding-bottom: 36px; }
  .home-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); justify-items: start; text-align: left; align-items: center; padding-top: 48px; padding-bottom: 56px; column-gap: 48px; }
  .home-hero h1 { margin-left: 0; max-width: 15ch; }
  .home-hero .lead { margin-left: 0; }
  .home-hero-art { order: 0; justify-self: center; width: 100%; max-width: 460px; }
  .about-card { grid-template-columns: 0.9fr 1.1fr; padding: 44px; align-items: center; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { grid-template-columns: 44px 1fr; row-gap: 2px; }
  .pillars .icon { grid-row: span 2; }
  .message { padding-top: 40px; }
}

/* Turnstile's flexible widget is at least 300px wide: on the narrowest phones, give it the card. */
@media (max-width: 359px) {
  :root { --gutter: 10px; }
  .signup, .message-card { padding-left: 14px; padding-right: 14px; }
  .cf-turnstile { margin-left: -14px; margin-right: -14px; }
}

/* Ratings keep the prose shell; product rows stack into labeled cards on phones. */
.ratings-page { max-width: 1120px; }
.ratings-table { table-layout: fixed; margin: 20px 0; }
.ratings-table th, .ratings-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.ratings-table th:nth-child(2) { width: 24%; }
.ratings-table th:nth-child(5) { width: 30%; }
.ratings-table tbody th { text-transform: none; letter-spacing: normal; color: var(--text); font-size: 0.95rem; }
.ratings-table code { font-size: 0.82rem; }
.rating-label { display: none; }
@media (max-width: 700px) {
  .ratings-table, .ratings-table tbody, .ratings-table tr, .ratings-table td, .ratings-table tbody th { display: block; width: auto; }
  .ratings-table caption { display: block; padding-left: 0; }
  .ratings-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ratings-table tr { margin: 12px 0; padding: 10px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
  .ratings-table td, .ratings-table tbody th { padding: 6px 14px; border: 0; }
  .ratings-table tbody th { font-size: 1.05rem; }
  .rating-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
}
