/*
 * home.css — wordable.live homepage (Oct 2026 redesign, "play first").
 *
 * One page, two layouts: a single column on phones (board fills the width,
 * Get app pinned in the header) and a two-column hero on desktop (copy left,
 * live board right). The board/tile/word-builder rules mirror play.css so
 * BoardView renders identically here; the page chrome is new.
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* touch-action does NOT inherit — setting it on every element is what kills
     iOS Safari's double-tap zoom during rapid play. The board overrides it. */
  touch-action: manipulation;
}

:root {
  --pink: #FF6699;
  --pink-deep: #E5598A;
  --gold: #FFD700;
  --green: #55DDAA;
  --purple: #7B3FC4;
  --purple-dark: #4E1F86;
  --ink: #2A0E4A;
  --ink-2: #6A5875;
  --plum: #2A0E4A;
  --plum-deep: #1E0A36;
  --cell: 50px;
  --gap: 4px;
  --grid-pad: 12px;
  --scale: 1;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--pink);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }

.only-desktop { display: none !important; }

/* ---------- App Store button (shared component) ---------- */

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  height: 44px;
  padding: 0 14px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.btn-store:active { transform: scale(0.97); }
.btn-store svg { width: 17px; height: 20px; fill: #fff; flex-shrink: 0; }
.btn-store .two { display: flex; flex-direction: column; line-height: 1; text-align: left; gap: 2px; }
.btn-store .two small { font-size: 10px; font-weight: 700; }
.btn-store .two b { font-size: 17px; font-weight: 800; }
.btn-store.light { background: #fff; color: #111; }
.btn-store.light svg { fill: #111; }
.btn-store.big { height: 60px; border-radius: 14px; padding: 0 24px; gap: 12px; }
.btn-store.big svg { width: 22px; height: 26px; }
.btn-store.big .two small { font-size: 12px; }
.btn-store.big .two b { font-size: 22px; font-weight: 900; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { height: 38px; width: auto; display: block; }
.hdr-links {
  display: none;
  gap: 28px;
  align-items: center;
  font-weight: 800;
  font-size: 16px;
}
.hdr-links a { text-decoration: none; }
.hdr-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */

.hero { padding: 18px 10px 32px; }
.hero-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 6px;
}
.hero-title {
  font-weight: 900;
  line-height: 1.1;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-title .t-desktop { display: none; }
.hero-bullets, .hero-chips { display: none; }

.site-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.site-nav a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.3); }

/* In-game HUD (Wordabot bar + Time/Score bar) — appears once the clock runs */
.hud { display: none; flex-direction: column; gap: 6px; width: min(100%, 430px); }
.hud .bar {
  background: #fff;
  border-radius: 10px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--pink);
  font-weight: 900;
  font-size: 21px;
  transition: background-color 0.15s;
}
.hud .bar.score { justify-content: space-between; padding: 0 22px; font-size: 22px; }
.hud .diff-tag { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #A9A9A9; }
.hud .bot-score { margin-left: auto; font-size: 22px; }
.hud .warning-flash { display: none; width: 100%; text-align: center; color: #fff; font-size: 18px; }
.hud .bar.warn-thirty { background: #FFAB4C; }
.hud .bar.warn-ten { background: #FF6348; }
.hud .bar.warn-thirty .hdr, .hud .bar.warn-ten .hdr { display: none; }
.hud .bar.warn-thirty .warning-flash, .hud .bar.warn-ten .warning-flash { display: block; }

body.playing .hero-title, body.playing .hero-nav { display: none; }
body.playing .hud { display: flex; }

/* ---------- Stage: board + word builder + submit ---------- */

.stage { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.board-zone { position: relative; display: inline-block; }

.board-wrap {
  position: relative;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  overflow: hidden; /* clip falling tiles to the grid, matching the app's .clipped() */
  transition: background-color 0.35s;
}
body.playing .board-wrap { background: #C0587E; }
.board { position: relative; }

.cell {
  position: absolute;
  width: var(--cell);
  height: var(--cell);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(var(--cell) * 0.5);
  color: #111;
  transition: transform 0.165s cubic-bezier(0.3, 1.4, 0.6, 1);
}
/* Tile colors mirror the app's LetterCell: white/black idle, gold/pink selected
   with a blue points badge; J/X/Q/Z (rare) are lavender idle and purple selected
   with a gold badge. */
.cell.filled { background: #fff; color: #000; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12); cursor: pointer; }
.cell.selected { background: var(--gold); color: var(--pink); }
.cell.rare.filled { background: #E9E0FF; color: #5E3BBF; }
.cell.rare.selected { background: #8E62F0; color: #fff; }
.cell.rare.selected .pts { background: #FFD84D; color: #3B1A78; }
.cell.popping { transform: scale(1.1); }
.cell .pts {
  position: absolute;
  left: calc(var(--cell) * 0.04);
  top: calc(var(--cell) * 0.04);
  width: calc(var(--cell) * 0.34);
  height: calc(var(--cell) * 0.34);
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.7);
  color: #fff;
  font-family: var(--font);
  font-size: calc(var(--cell) * 0.22);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.falling {
  position: absolute;
  width: var(--cell);
  height: var(--cell);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(var(--cell) * 0.5);
  color: #111;
  pointer-events: none;
  will-change: transform;
}
.falling.rare { background: #E9E0FF; color: #5E3BBF; }

.board-flash {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 12;
}
.board-flash.thirty { background: #FFAB4C; opacity: 0.18; }
.board-flash.ten { background: #FF6348; opacity: 0.18; }

.confetti-canvas {
  position: absolute;
  inset: -60px 0 0 0;
  height: calc(100% + 60px);
  width: 100%;
  pointer-events: none;
  z-index: 15;
}

/* Word builder */
.word-builder {
  width: min(100%, 430px);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 6px;
}
.wb-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  height: 100%;
  display: flex;
  align-items: center;
  visibility: hidden;
}
.word-builder.has-word .wb-btn { visibility: visible; }
.word-field {
  flex: 1;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 10px;
  background: var(--pink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  touch-action: none; /* cursor is draggable — don't let touch scroll the page */
  cursor: text;
}
.word-field .wf-inner { display: inline-flex; align-items: center; white-space: nowrap; }
.word-field .hint { font-size: 16px; font-weight: 800; letter-spacing: 0; color: #FFD3E1; }
.word-field .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #fff;
  vertical-align: text-bottom;
  opacity: 0;
}
.word-field .cursor.on { opacity: 1; }

.stage-note {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  min-height: 20px;
  padding: 0 16px;
  text-wrap: pretty;
}
.stage-note .pts-pill {
  display: inline-block;
  background: rgba(30, 80, 255, 0.3);
  border-radius: 999px;
  padding: 3px 12px;
}

.submit-row {
  position: relative;
  width: min(100%, 430px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}
.submit-btn {
  width: 72%;
  max-width: 280px;
  height: 58px;
  border: none;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.5);   /* app: Color.gray.opacity(0.5) until 3 letters */
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s, background-color 0.15s;
}
.submit-btn.ready { background: rgba(0, 0, 0, 0.5); }       /* app: Color.black.opacity(0.5) */
.submit-btn.valid { background: rgba(46, 204, 113, 0.7); }   /* app: Color.green.opacity(0.7) */
.submit-btn.invalid { background: rgba(231, 76, 60, 0.7); }  /* app: Color.red.opacity(0.7) */
.submit-btn:active { transform: scale(0.96); }

.invalid-toast {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.invalid-toast.show { opacity: 1; transform: translateX(-50%) scale(1); }

.shuffle-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
body.playing .shuffle-btn { display: flex; }
body.over .shuffle-btn { display: none; }
.shuffle-btn:disabled { opacity: 0.35; }
.shuffle-btn svg { width: 18px; height: 18px; }

/* Results overlay — covers the board when time runs out */
.results-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(42, 14, 74, 0.95);
  display: none;
  padding: 20px 18px;
  text-align: center;
  z-index: 20;
  overflow: auto;
  scrollbar-width: none;
}
.results-overlay::-webkit-scrollbar { display: none; }
.results-overlay.show { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.rs-inner {
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rs-head { font-weight: 900; font-size: 30px; line-height: 1.05; text-wrap: balance; }
.rs-scores { display: flex; gap: 20px; font-weight: 900; font-size: 18px; color: #E6D9F0; }
.rs-new { font-size: 14px; font-weight: 800; color: var(--gold); }
.rs-pitch { font-weight: 700; font-size: 16px; line-height: 1.45; color: #E6D9F0; max-width: 290px; text-wrap: pretty; }
.rs-cta { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.rs-cta .btn-store { width: 100%; }
.rs-qr { display: none; width: 96px; height: 96px; background: #fff; border-radius: 12px; padding: 6px; flex-shrink: 0; }
.rs-again {
  background: none;
  border: none;
  color: #FF8FB5;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 10px;
}
.rs-words-toggle {
  background: none;
  border: none;
  color: #CDBBDB;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 6px;
}
.rs-words {
  display: none;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
  font-size: 13px;
}
.rs-words.show { display: grid; }
.rs-col h4 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #CDBBDB; margin-bottom: 4px; }
.rs-col .wrow { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-weight: 700; }
.rs-col .wrow .ws { color: var(--gold); }
.rs-col .none { color: #CDBBDB; font-weight: 700; }

/* ---------- "The full game is on iPhone" ---------- */

.section-app { background: #fff; color: var(--ink); padding: 40px 16px; scroll-margin-top: 72px; }
.section-inner { max-width: 1152px; margin: 0 auto; }
.section-app h2 { font-weight: 900; font-size: 32px; line-height: 1.05; text-wrap: balance; }
.section-app .lead { font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.card {
  border-radius: 22px;
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  height: 400px;
}
.card.arena { background: #FFF0F5; }
.card.h2h { background: #F3EBFF; }
.card.streak { background: #FFF7DB; }
.card h3 { font-weight: 900; font-size: 22px; }
.card p { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.phone {
  margin: 12px auto 0;
  width: 200px;
  flex: 1;
  border-radius: 30px 30px 0 0;
  border: 7px solid var(--ink);
  border-bottom: 0;
  overflow: hidden;
  background: var(--pink);
}
.phone img { width: 100%; height: auto; display: block; }

.howto { scroll-margin-top: 72px; margin-top: 36px; border-top: 2px solid #F0E2E8; padding-top: 28px; }
.howto h3 { font-weight: 900; font-size: 22px; margin-bottom: 14px; }
.howto ol { list-style: none; display: grid; gap: 14px; }
.howto li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.howto .n {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.howto strong { color: var(--ink); }
.howto .guide-links { margin-top: 16px; font-weight: 700; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.howto a { color: var(--purple); text-decoration: none; }
.howto a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--plum);
  padding: 44px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta-copy { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.cta-band h2 { font-weight: 900; font-size: 32px; line-height: 1.08; text-wrap: balance; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.cta-row .btn-store { width: 100%; }
.cta-rating { font-weight: 800; font-size: 15px; color: #FFC800; }
.cta-qr { display: none; flex-direction: column; align-items: center; gap: 10px; }
.cta-qr img { width: 150px; height: 150px; background: #fff; border-radius: 16px; padding: 8px; }
.cta-qr span { font-weight: 800; font-size: 14px; color: #E6D9F0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--plum-deep);
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
  font-weight: 800;
  font-size: 15px;
  color: #CDBBDB;
}
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: none; }

/* ---------- Difficulty picker (port of the app's WordabotDifficultyPicker) ---------- */

.picker-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
}
.picker-overlay[hidden] { display: none; }
.picker-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.picker-card {
  position: relative;
  width: min(300px, 88%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: pickerIn 0.22s cubic-bezier(0.2, 1.4, 0.5, 1);
}
@keyframes pickerIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.picker-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
  background: linear-gradient(to right, #3498DB 0%, #5DADE2 40%, #85C1E9 100%);
}
.picker-bot { font-size: 32px; }
.picker-title { font-size: 18px; font-weight: 700; color: #fff; }
.picker-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.picker-body { background: #fff; padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.picker-sub { text-align: center; font-size: 16px; font-weight: 600; color: #999; }
.picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(to right, #3498DB, #2980B9);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
  transition: transform 0.1s;
}
.picker-row:active { transform: scale(0.96); }
.picker-row .pe { font-size: 22px; }
.picker-row .row-play { width: 13px; height: 15px; margin-left: auto; }

/* ---------- Mobile: once the first word lands, the game takes over the screen
   (HUD, board, word builder, Submit all visible at once) with an X to leave. */
.stage-close {
  display: none;
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  z-index: 70;
}
@media (max-width: 759px) {
  body.playing, body.over { overflow: hidden; }
  body.playing .stage, body.over .stage {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--pink);
    padding: calc(14px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
    justify-content: flex-start;
    overflow: hidden;
  }
  /* The X shares the top row with the Wordabot bar, so the score sits as high
     as it can and the board takes the rest of the screen. No shuffle on phones. */
  body.playing .stage .hud .bar:first-child, body.over .stage .hud .bar:first-child { width: calc(100% - 50px); }
  .shuffle-btn { display: none !important; }
  body.playing .stage .stage-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* results up: the word builder and Submit have nothing left to do */
  body.over .stage .word-builder, body.over .stage .stage-note, body.over .stage .submit-row { display: none; }
  body.playing .stage-close, body.over .stage-close { display: flex; align-items: center; justify-content: center; }
}

/* ---------- Desktop ---------- */

@media (min-width: 760px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: inline-flex !important; }

  .site-header { position: static; padding: 22px 48px; border-bottom: 0; }
  .site-header .logo img { height: 58px; }
  .hdr-links { display: flex; }

  .hero { padding: 24px 64px 72px; }
  .hero-inner { grid-template-columns: 1fr 420px; gap: 72px; align-items: start; }
  .hero-copy { align-items: flex-start; text-align: left; gap: 24px; padding: 48px 0 0; }
  .hero-title { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
  .hero-title .t-desktop { display: inline; }
  .hero-title .t-mobile { display: none; }
  .hero-bullets { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; max-width: 460px; }
  .hero-bullets li { position: relative; padding-left: 30px; font-weight: 700; font-size: 21px; line-height: 1.3; color: #FFF3F7; }
  .hero-bullets li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 4px; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); }
  .hero-bullets li:last-child::before { background: #8E62F0; }
  .hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
  .hero-chips span {
    font-weight: 800;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    padding: 6px 14px;
  }
  .hero-nav { display: none; }
  body.playing .hero-title { display: block; }
  .hud .bar { height: 52px; border-radius: 12px; font-size: 24px; padding: 0 18px; }
  .hud .bar.score { font-size: 26px; padding: 0 26px; }
  .hud .bot-score { font-size: 26px; }

  .stage { gap: 12px; }
  .word-builder { height: 60px; }
  .word-field { font-size: 30px; }
  .word-field .hint { font-size: 18px; }
  .stage-note { font-size: 15px; min-height: 21px; }
  .submit-btn { width: 66%; height: 60px; font-size: 26px; }

  .results-overlay { padding: 24px 26px; }
  .rs-head { font-size: 34px; }
  .rs-scores { font-size: 19px; gap: 24px; }
  .rs-pitch { font-size: 16px; max-width: 320px; }
  .rs-cta .btn-store { width: auto; }
  .rs-qr { display: block; }

  .section-app { padding: 72px 64px; }
  .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
  .section-app h2 { font-size: 44px; max-width: 620px; }
  .section-app .lead { max-width: 420px; font-size: 18px; margin-top: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
  .card { border-radius: 24px; padding: 28px 28px 0; gap: 10px; height: 520px; }
  .card h3 { font-size: 24px; }
  .card p { font-size: 16px; }
  .phone { width: 220px; border-radius: 34px 34px 0 0; border-width: 8px; margin-top: 14px; }

  .howto { margin-top: 56px; padding-top: 40px; }
  .howto h3 { font-size: 28px; margin-bottom: 20px; }
  .howto ol { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .howto li { font-size: 16px; }
  .howto .guide-links { margin-top: 24px; }

  .cta-band {
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    text-align: left;
  }
  .cta-copy { align-items: flex-start; }
  .cta-band h2 { font-size: 48px; }
  .cta-row { flex-direction: row; gap: 20px; width: auto; }
  .cta-row .btn-store { width: auto; }
  .cta-qr { display: flex; }

  .site-footer { display: flex; justify-content: space-between; align-items: center; padding: 28px 64px; }
  .site-footer .brand { display: block; }
  .site-footer nav { display: flex; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
