/*
 * Verbos en Inglés — public site.
 *
 * The app's neo-brutal system, shared with the admin center
 * (verbos-api-db/admin/assets/admin.css). Values come from the Flutter app
 * (verbosios, feature-neo-brutal): lib/common/constants.dart for colors,
 * lib/ui/design_tokens.dart for stroke, shadow, radii and motion,
 * lib/ui/app_typography.dart for type. Pages use tokens, never hex.
 */

/* ── Fonts (bundled from verbosios/fonts) ───────────────────────────────── */
@font-face { font-family: Outfit; src: url(fonts/Outfit-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/Outfit-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/Outfit-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Anton; src: url(fonts/Anton-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --paper: #F4EFE3;
  --grid: #E2DACA;
  --surface: #FFFFFF;
  --ink: #1B2737;
  --stroke: #1B2737;
  --text: #1B2737;
  --text-2: #64748B;
  --divider: #E2DACA;
  --crimson: #D2194F;
  --on-crimson: #FFFFFF;
  --on-tile: #1A1200;
  --shadow: #000000;
  --skeleton: rgba(27, 39, 55, .08);
  --ok: #4F7A2A;
  --bad: #B5493E;
  --inv-bg: #1B2737;
  --inv-fg: #FFFFFF;

  --butter: #F5E3A4;  --butter-a: #876B12;
  --sage:   #BBD69E;  --sage-a:   #4F7A2A;
  --salmon: #EF9A8E;  --salmon-a: #B5493E;
  --sky:    #A9D2E3;  --sky-a:    #23779A;
  --lilac:  #C9B8E8;  --lilac-a:  #7A55C9;
  --pink:   #F6B6C8;  --pink-a:   #AD3A63;

  --stroke-w: 2.5px;
  --stroke-bold: 3px;
  --r-tag: 8px; --r-btn: 12px; --r-row: 16px; --r-box: 20px; --r-sheet: 24px;
  --sh: 4px; --sh-btn: 3px; --sh-big: 6px;
  --ease: cubic-bezier(.33, 1, .68, 1);
  --fast: 150ms;

  --display: Outfit, "Avenir Next", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --poster: Anton, Impact, "Arial Narrow", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1180px;
  --top-h: 68px;
}

/* Dark: pastels keep 8% black over them (AppColors.tileFill) and an ink
   outline; the light outline is only for neutral surfaces. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F172A;
    --grid: rgba(255, 255, 255, .05);
    --surface: #1E293B;
    --stroke: rgba(203, 213, 225, .6);
    --text: #F8FAFC;
    --text-2: #94A3B8;
    --divider: #334155;
    --crimson: #F4668A;
    --on-crimson: #1B2737;
    --skeleton: rgba(255, 255, 255, .08);
    --ok: #BBD69E;
    --bad: #EF9A8E;
    --inv-bg: #F8FAFC;
    --inv-fg: #0F172A;
    --butter: color-mix(in srgb, #F5E3A4 92%, black); --butter-a: #F5E3A4;
    --sage:   color-mix(in srgb, #BBD69E 92%, black); --sage-a:   #BBD69E;
    --salmon: color-mix(in srgb, #EF9A8E 92%, black); --salmon-a: #EF9A8E;
    --sky:    color-mix(in srgb, #A9D2E3 92%, black); --sky-a:    #A9D2E3;
    --lilac:  color-mix(in srgb, #C9B8E8 92%, black); --lilac-a:  #C9B8E8;
    --pink:   color-mix(in srgb, #F6B6C8 92%, black); --pink-a:   #F6B6C8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F172A;
  --grid: rgba(255, 255, 255, .05);
  --surface: #1E293B;
  --stroke: rgba(203, 213, 225, .6);
  --text: #F8FAFC;
  --text-2: #94A3B8;
  --divider: #334155;
  --crimson: #F4668A;
  --on-crimson: #1B2737;
  --skeleton: rgba(255, 255, 255, .08);
  --ok: #BBD69E;
  --bad: #EF9A8E;
  --inv-bg: #F8FAFC;
  --inv-fg: #0F172A;
  --butter: color-mix(in srgb, #F5E3A4 92%, black); --butter-a: #F5E3A4;
  --sage:   color-mix(in srgb, #BBD69E 92%, black); --sage-a:   #BBD69E;
  --salmon: color-mix(in srgb, #EF9A8E 92%, black); --salmon-a: #EF9A8E;
  --sky:    color-mix(in srgb, #A9D2E3 92%, black); --sky-a:    #A9D2E3;
  --lilac:  color-mix(in srgb, #C9B8E8 92%, black); --lilac-a:  #C9B8E8;
  --pink:   color-mix(in srgb, #F6B6C8 92%, black); --pink-a:   #F6B6C8;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--body);
  color: var(--text);
  /* GridBackground: 24px cells, 1px lines, paper underneath. */
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  background-color: var(--paper);
  min-height: 100vh;
}
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: inherit; line-height: 1.2; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; }
.skip:focus { left: 8px; padding: 8px 12px; background: var(--surface); border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-btn); }

.glyph { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon {
  display: inline-block; width: 36px; height: 36px; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.icon.sm { width: 26px; height: 26px; }
.icon.lg { width: 72px; height: 54px; }
.icon.xl { width: 168px; height: 126px; }

/* Dark: text 20px and up drops one weight, as in the app. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) h1 { font-weight: 600; }
}
:root[data-theme="dark"] h1 { font-weight: 600; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: var(--stroke-w) solid var(--stroke);
}
.top-inner {
  max-width: var(--max); margin: 0 auto; height: var(--top-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo {
  width: 40px; height: 40px; border-radius: var(--r-btn); object-fit: cover; background: #fff;
  border: var(--stroke-w) solid var(--ink); box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
}
.brand-text { font: 700 19px/1 var(--display); letter-spacing: -.2px; white-space: nowrap; }
.top-nav { display: flex; gap: 2px; flex: 1; min-width: 0; justify-content: center; }
.top-nav a {
  padding: 8px 11px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 600 15px/1.2 var(--display); color: var(--text-2);
  border: var(--stroke-w) solid transparent;
}
.top-nav a:hover { color: var(--text); border-color: var(--stroke); background: var(--surface); }
.top-nav a.on { color: var(--on-crimson); background: var(--crimson); border-color: var(--ink); box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  color: var(--text); background: var(--surface);
  border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-btn);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.icon-btn:active { transform: translate(var(--sh-btn), var(--sh-btn)); box-shadow: 0 0 0 var(--shadow); }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: contents; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: contents; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}
.menu-btn { display: none; }

/* ── Menu sheet ─────────────────────────────────────────────────────────── */
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .45); }
.sheet {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0;
  width: min(380px, 100%); overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-left: var(--stroke-w) solid var(--stroke);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; font: 700 22px/1 var(--display); }
.sheet-rows { display: flex; flex-direction: column; gap: 12px; }
.sheet-rows .row { min-height: 58px; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--text-2); margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ── Bottom bar (phones) ────────────────────────────────────────────────── */
.bottom-bar { display: none; }

/* ── Page ───────────────────────────────────────────────────────────────── */
.page { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 72px; }
.page > * + * { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 13px/1.4 var(--body); color: var(--text-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.crumbs + * { margin-top: 14px !important; }

/* ── BrutalBox / rows / tiles ───────────────────────────────────────────── */
.box {
  background: var(--surface);
  border: var(--stroke-w) solid var(--stroke);
  border-radius: var(--r-box);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow);
  padding: 20px;
}
.box.flat { box-shadow: none; }
.box-title { font: 600 22px/1.25 var(--display); letter-spacing: -.2px; }
.box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.tone-butter { background: var(--butter); --accent: var(--butter-a); }
.tone-sage   { background: var(--sage);   --accent: var(--sage-a); }
.tone-salmon { background: var(--salmon); --accent: var(--salmon-a); }
.tone-sky    { background: var(--sky);    --accent: var(--sky-a); }
.tone-lilac  { background: var(--lilac);  --accent: var(--lilac-a); }
.tone-pink   { background: var(--pink);   --accent: var(--pink-a); }
.tone-surface { background: var(--surface); --accent: var(--text); }
[class*="tone-"]:not(.tone-surface) { color: var(--on-tile); border-color: var(--ink); }
[class*="tone-"]:not(.tone-surface) .muted { color: color-mix(in srgb, var(--on-tile) 70%, transparent); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font: 700 clamp(24px, 3.4vw, 32px)/1.15 var(--display); letter-spacing: -.5px; }
.section-head p { color: var(--text-2); margin-top: 4px; max-width: 60ch; }
.section-link { font: 600 15px/1.2 var(--display); color: var(--crimson); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.row {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 12px; min-height: 64px;
  border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-row);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow);
  text-decoration: none; color: var(--text);
}
a.row, button.row { cursor: pointer; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
a.row:hover, button.row:hover { transform: translate(-1px, -1px); box-shadow: calc(var(--sh) + 1px) calc(var(--sh) + 1px) 0 var(--shadow); }
a.row:active, button.row:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--shadow); }
.row:not([class*="tone-"]) { background: var(--surface); }
.row-icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: var(--r-btn);
  border: 2px solid var(--ink); background: var(--surface); color: var(--accent, var(--text));
}
:root[data-theme="dark"] [class*="tone-"]:not(.tone-surface) .row-icon { background: rgba(255, 255, 255, .35); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [class*="tone-"]:not(.tone-surface) .row-icon { background: rgba(255, 255, 255, .35); }
}
.row-body { flex: 1; min-width: 0; }
.row-title { flex: 1; min-width: 0; font: 600 18px/1.3 var(--display); letter-spacing: -.1px; overflow-wrap: anywhere; }
.row-body .row-title { display: block; }
.row-sub { display: block; font: 500 13px/1.35 var(--body); color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
[class*="tone-"]:not(.tone-surface) .row-sub { color: color-mix(in srgb, var(--on-tile) 70%, transparent); }
.rows { display: flex; flex-direction: column; gap: 14px; }

/* Section tiles: pastel card, illustration, title, one line, count. */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tiles-5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  min-height: 200px; padding: 18px;
  border: var(--stroke-w) solid var(--ink); border-radius: var(--r-box);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow);
  text-decoration: none; overflow: hidden;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-big) var(--sh-big) 0 var(--shadow); }
.tile:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--shadow); }
.tile-art { color: var(--on-tile); opacity: .85; margin: -6px 0 4px -6px; }
.tile.tone-surface .tile-art { color: var(--text); }
.tile-art .icon { width: 108px; height: 81px; }
.tile h3 { font: 700 22px/1.15 var(--display); letter-spacing: -.3px; }
.tile p { font-size: 14px; line-height: 1.45; color: color-mix(in srgb, var(--on-tile) 74%, transparent); flex: 1; }
.tile-count { align-self: flex-start; margin-top: 8px; }
.tile.tone-surface p { color: var(--text-2); }

/* ── Tags, chips, buttons ───────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px;
  font: 700 11px/1.1 var(--body); letter-spacing: .8px; text-transform: uppercase;
  color: var(--on-crimson); background: var(--crimson);
  border: 1.5px solid var(--ink); border-radius: var(--r-tag);
  white-space: nowrap;
}
.tag.ink { background: var(--inv-bg); color: var(--inv-fg); }
.tag.plain { background: var(--surface); color: var(--text); border-color: var(--stroke); }
.tag.butter { background: var(--butter); color: var(--on-tile); border-color: var(--ink); }
.tag.sage { background: var(--sage); color: var(--on-tile); border-color: var(--ink); }
.tag.sky { background: var(--sky); color: var(--on-tile); border-color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  font: 700 13px/1.35 var(--body); letter-spacing: .2px; text-decoration: none;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--stroke); border-radius: 999px; white-space: nowrap; cursor: pointer;
}
.chip.on, .chip[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip, .related .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; cursor: pointer; text-decoration: none;
  font: 600 16px/1.2 var(--display); letter-spacing: .2px;
  color: var(--on-crimson); background: var(--crimson);
  border: var(--stroke-w) solid var(--ink); border-radius: var(--r-btn);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: calc(var(--sh-btn) + 1px) calc(var(--sh-btn) + 1px) 0 var(--shadow); }
.btn:active:not(:disabled) { transform: translate(var(--sh-btn), var(--sh-btn)); box-shadow: 0 0 0 var(--shadow); }
.btn:disabled { opacity: .45; box-shadow: none; cursor: default; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--stroke); }
.btn-ink { background: var(--inv-bg); color: var(--inv-fg); }
.btn-small { padding: 8px 13px; font-size: 14px; }
.btn-big { padding: 15px 26px; font-size: 18px; }
.btn .glyph { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.audio-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--text); background: var(--surface);
  border: 2px solid var(--stroke); border-radius: 999px;
  box-shadow: 2px 2px 0 var(--shadow);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
[class*="tone-"]:not(.tone-surface) .audio-btn { border-color: var(--ink); }
.audio-btn:active, .audio-btn.playing { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }
.audio-btn.playing { background: var(--crimson); color: var(--on-crimson); border-color: var(--ink); }
.audio-btn.sm { width: 32px; height: 32px; }
.audio-btn.sm .glyph { width: 16px; height: 16px; }

/* ── Stores ─────────────────────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  border: var(--stroke-w) solid var(--ink); border-radius: var(--r-btn);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
:root[data-theme="dark"] .store { border-color: var(--stroke); background: #000; }
.store:active { transform: translate(var(--sh-btn), var(--sh-btn)); box-shadow: 0 0 0 var(--shadow); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font: 600 17px/1.1 var(--display); }
.store small { font: 500 11px/1.2 var(--body); opacity: .8; }
.stores.small .store { padding: 7px 12px 7px 10px; }
.stores.small .store svg { width: 22px; height: 22px; }
.stores.small .store span { font-size: 15px; }

/* ── Hero band (section pages) ──────────────────────────────────────────── */
.hero-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 4vw, 32px);
  border: var(--stroke-w) solid var(--ink); border-radius: var(--r-sheet);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow);
  overflow: hidden;
}
.hero-band h1 { font: 700 clamp(30px, 5vw, 46px)/1.08 var(--display); letter-spacing: -1px; overflow-wrap: anywhere; }
.hero-band p { margin-top: 10px; font-size: clamp(15px, 2vw, 18px); max-width: 60ch; color: color-mix(in srgb, var(--on-tile) 78%, transparent); }
.hero-band.tone-surface p { color: var(--text-2); }
.hero-band-text { min-width: 0; flex: 1; }
.hero-band-text > .btn-row, .hero-band-text > .chips, .hero-band-text > .pron-line { margin-top: 16px; }
.hero-band-art { color: var(--on-tile); opacity: .85; flex: none; }
.hero-band.tone-surface .hero-band-art { color: var(--text); }

/* ── Home hero ──────────────────────────────────────────────────────────── */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center;
  padding: clamp(12px, 3vw, 36px) 0 8px;
}
.home-hero h1 { font: 700 clamp(38px, 6.4vw, 72px)/1.02 var(--display); letter-spacing: -2px; }
.home-hero h1 .poster {
  display: inline-block; font: 400 1.08em/1 var(--poster); letter-spacing: .5px; text-transform: uppercase;
  color: var(--on-crimson); background: var(--crimson);
  padding: .06em .2em .02em; border: var(--stroke-w) solid var(--ink); border-radius: var(--r-btn);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow); transform: rotate(-2deg);
}
.home-hero .lead { margin-top: 20px; font-size: clamp(16px, 2.2vw, 20px); color: var(--text-2); max-width: 54ch; }
.home-hero .btn-row { margin-top: 26px; }
.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage .tile { min-height: 150px; }
.hero-collage .tile:nth-child(1) { transform: rotate(-2.5deg); }
.hero-collage .tile:nth-child(2) { transform: rotate(2deg) translateY(18px); }
.hero-collage .tile:nth-child(3) { transform: rotate(1.5deg); }
.hero-collage .tile:nth-child(4) { transform: rotate(-1.5deg) translateY(18px); }
.hero-collage .tile:hover { transform: translate(-2px, -2px); }
.hero-collage .tile-art .icon { width: 84px; height: 63px; }
.hero-collage .tile h3 { font-size: 19px; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 14px 16px; }
.stat-value { font: 700 clamp(24px, 3vw, 32px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.stat-label { font: 600 14px/1.3 var(--body); margin-top: 4px; }

/* Word of the day. */
.wotd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; }
.wotd-word { font: 700 clamp(34px, 5vw, 52px)/1 var(--display); letter-spacing: -1px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wotd-es { font: 500 18px/1.3 var(--body); margin-top: 6px; }
.wotd .forms { grid-column: 1 / -1; }

/* ── Steps / features ───────────────────────────────────────────────────── */
.features { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature h3 { font: 600 19px/1.25 var(--display); margin: 12px 0 6px; }
.feature p { color: var(--text-2); font-size: 15px; }
.feature .num-badge {
  display: grid; place-items: center; width: 40px; height: 40px;
  font: 700 18px/1 var(--display); color: var(--on-crimson); background: var(--crimson);
  border: 2px solid var(--ink); border-radius: var(--r-btn);
}

.app-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(22px, 4vw, 36px); }
.app-band h2 { font: 700 clamp(26px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.8px; }
.app-band > div > p { margin-top: 10px; color: var(--text-2); }
.app-band .stores { margin-top: 20px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-list .glyph { color: var(--ok); margin-top: 3px; stroke-width: 2.6; }
.app-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.app-callout .box-title { margin: 8px 0 4px; }

/* ── Catalogue lists ────────────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search {
  position: relative; flex: 1 1 280px; max-width: 520px;
}
.search .glyph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.search input {
  width: 100%; padding: 13px 14px 13px 44px;
  font: 500 16px/1.3 var(--body); color: var(--text);
  background: var(--surface); border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-btn);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
}
.search input:focus { outline: none; border-color: var(--crimson); }
.count-note { font: 500 14px/1.3 var(--body); color: var(--text-2); }
.alpha { display: flex; flex-wrap: wrap; gap: 6px; }
.alpha a {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
  font: 700 14px/1 var(--display); text-decoration: none;
  background: var(--surface); border: 2px solid var(--stroke); border-radius: 10px;
}
.alpha a:hover { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.letter-head { font: 400 30px/1 var(--poster); letter-spacing: .5px; color: var(--crimson); margin: 30px 0 12px; }
.letter-head:first-child { margin-top: 0; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 72px;
  background: var(--surface); color: var(--text); text-decoration: none;
  border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-row);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
a.card:hover { transform: translate(-1px, -1px); box-shadow: var(--sh) var(--sh) 0 var(--shadow); }
a.card:active { transform: translate(var(--sh-btn), var(--sh-btn)); box-shadow: 0 0 0 var(--shadow); }
.card-img {
  width: 52px; height: 52px; flex: none; border-radius: var(--r-btn); object-fit: cover;
  background: var(--skeleton); border: 2px solid var(--ink);
}
.card-letter {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: var(--r-btn);
  font: 700 22px/1 var(--display); background: var(--accent-bg, var(--sage)); color: var(--on-tile); border: 2px solid var(--ink);
}
.card-body { min-width: 0; flex: 1; }
.card-title { display: block; font: 600 17px/1.25 var(--display); overflow-wrap: anywhere; }
.card-sub { display: block; font: 500 13px/1.35 var(--body); color: var(--text-2); overflow-wrap: anywhere; }
.empty { padding: 28px; text-align: center; color: var(--text-2); }

/* Vocabulary word grid (word, image, audio in one card). */
.words { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.word {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 10px 12px;
  background: var(--surface); border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-row);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
}
.word img { width: 96px; height: 96px; object-fit: contain; }
.word-en { font: 700 18px/1.2 var(--display); overflow-wrap: anywhere; }
.word-pron { font: 500 12px/1.2 var(--mono); color: var(--text-2); }
.word-es { font: 500 14px/1.3 var(--body); color: var(--text-2); overflow-wrap: anywhere; }

/* ── Detail pages ───────────────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail-main > * + * { margin-top: 24px; }
.detail-side { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 20px; }
.detail-img {
  width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface);
  border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-box);
}
.pron-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 16px/1.3 var(--mono); }
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.form {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  background: var(--surface); color: var(--text);
  border: 2px solid var(--stroke); border-radius: var(--r-row);
}
[class*="tone-"]:not(.tone-surface) .form { border-color: var(--ink); }
.form-label { font: 700 11px/1.2 var(--body); letter-spacing: .8px; text-transform: uppercase; color: var(--text-2); }
.form-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 20px/1.2 var(--display); overflow-wrap: anywhere; }
.form-pron { font: 500 12px/1.2 var(--mono); color: var(--text-2); }

.examples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.example {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  background: var(--surface); border: 2px solid var(--stroke); border-radius: var(--r-row);
}
.example-body { flex: 1; min-width: 0; }
.example-en { font: 600 17px/1.4 var(--display); overflow-wrap: anywhere; }
.example-es { font-size: 15px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.example .tag { margin-bottom: 6px; }

.explainer { font-size: 16px; }
.explainer h2 { font: 600 22px/1.25 var(--display); margin-bottom: 8px; }
.explainer p + p { margin-top: 10px; }
.explainer p, .explainer li { color: var(--text); }
.explainer ul { margin: 8px 0 0; padding-left: 20px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager a { max-width: 48%; }

/* ── Grammar prose (theory topics are authored HTML) ────────────────────── */
.prose { font-size: 16.5px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font: 700 clamp(26px, 4vw, 34px)/1.15 var(--display); }
.prose h2 { font: 600 23px/1.25 var(--display); margin-top: 28px; }
.prose h3 { font: 600 19px/1.3 var(--display); margin-top: 22px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose strong, .prose b { font-weight: 700; }
.prose code, .prose .mono { font: 500 .92em/1.4 var(--mono); background: var(--skeleton); padding: 1px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { text-align: left; font: 700 12px/1.2 var(--body); letter-spacing: .6px; text-transform: uppercase; padding: 10px; border-bottom: 2px solid var(--stroke); background: var(--skeleton); }
.prose td { padding: 10px; border-bottom: 1.5px solid var(--divider); vertical-align: top; }
.prose .table-wrap { overflow-x: auto; border: 2px solid var(--stroke); border-radius: var(--r-row); background: var(--surface); }
.prose .wrap, .prose .grid { display: block; max-width: none; margin: 0; padding: 0; background: none; }
.prose .grid > * + * { margin-top: 16px; }
.prose .hero {
  padding: 18px 20px; background: var(--sky); color: var(--on-tile);
  border: var(--stroke-w) solid var(--ink); border-radius: var(--r-box); box-shadow: var(--sh) var(--sh) 0 var(--shadow);
}
.prose .hero h1, .prose .hero h2, .prose .hero p { color: var(--on-tile); }
.prose .card {
  display: block; min-height: 0; padding: 16px 18px;
  background: var(--surface); border: 2px solid var(--stroke); border-radius: var(--r-row); box-shadow: none;
}
.prose .card > * + * { margin-top: 10px; }
.prose .callout, .prose .tip {
  padding: 12px 16px; background: var(--butter); color: var(--on-tile);
  border: 2px solid var(--ink); border-radius: var(--r-row);
}
.prose .callout *, .prose .tip * { color: var(--on-tile); }
.prose .ex { padding-left: 12px; border-left: 4px solid var(--sky-a); }
.prose .good { color: var(--ok); font-weight: 600; }
.prose .bad { color: var(--bad); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.prose .chips { gap: 6px; }
.prose .chip { cursor: default; font-size: 12.5px; padding: 3px 10px; }
.prose .ipa { font-family: var(--mono); color: var(--text-2); }
.prose .highlight { background: var(--butter); color: var(--on-tile); padding: 0 4px; border-radius: 4px; }
.prose img { border-radius: var(--r-row); }

/* ── News ───────────────────────────────────────────────────────────────── */
.news-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.news-card:hover { transform: translate(-1px, -1px); box-shadow: calc(var(--sh) + 1px) calc(var(--sh) + 1px) 0 var(--shadow); }
.news-card h3 { font: 600 20px/1.25 var(--display); letter-spacing: -.2px; }
.news-card p { color: var(--text-2); font-size: 15px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 13px/1.3 var(--body); color: var(--text-2); }
.article { max-width: 760px; }
.article h1 { font: 700 clamp(28px, 4.6vw, 44px)/1.1 var(--display); letter-spacing: -1px; }
.article .title-es { margin-top: 10px; font: 500 19px/1.4 var(--body); color: var(--text-2); }
.para + .para { margin-top: 22px; }
.para h2 { font: 600 21px/1.3 var(--display); margin-bottom: 10px; }
.sent { display: block; margin-bottom: 10px; }
.sent-en { font: 500 18px/1.6 var(--body); }
.sent-es { display: block; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.article.hide-es .sent-es { display: none; }
.source-note { font-size: 14px; color: var(--text-2); }

/* ── Games ──────────────────────────────────────────────────────────────── */
.game { max-width: 760px; margin-left: auto; margin-right: auto; }
.game-stage { min-height: 320px; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font: 600 15px/1.2 var(--display); }
.progress { height: 14px; background: var(--surface); border: 2px solid var(--stroke); border-radius: 999px; overflow: hidden; flex: 1; min-width: 120px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--crimson); transition: width 250ms var(--ease); }
.q-text { font: 700 clamp(22px, 3.6vw, 30px)/1.25 var(--display); letter-spacing: -.3px; margin: 6px 0 18px; overflow-wrap: anywhere; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; cursor: pointer;
  font: 600 clamp(15px, 2.4vw, 18px)/1.3 var(--display); color: var(--text); background: var(--surface);
  overflow-wrap: anywhere; min-width: 0;
  border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-row);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.option:active:not(:disabled) { transform: translate(var(--sh-btn), var(--sh-btn)); box-shadow: 0 0 0 var(--shadow); }
.option:disabled { cursor: default; }
.option .key { display: grid; place-items: center; width: 30px; height: 30px; flex: none; font: 700 14px/1 var(--display); border: 2px solid currentColor; border-radius: 8px; }
.option.right { background: var(--sage); color: var(--on-tile); border-color: var(--ink); }
.option.wrong { background: var(--salmon); color: var(--on-tile); border-color: var(--ink); }
.feedback { margin-top: 14px; font: 600 16px/1.4 var(--display); min-height: 1.4em; }
.feedback.ok { color: var(--ok); }
.feedback.no { color: var(--bad); }
.result { text-align: center; padding: 28px 20px; }
.result-score { font: 400 clamp(56px, 10vw, 88px)/1 var(--poster); color: var(--crimson); }
.result h2 { font: 700 26px/1.2 var(--display); margin-top: 8px; }
.result p { color: var(--text-2); margin-top: 6px; }
.result .btn-row { justify-content: center; margin-top: 20px; }

/* Hangman */
.hang-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0; }
.hang-letter {
  display: grid; place-items: center; width: clamp(30px, 8vw, 44px); height: clamp(40px, 10vw, 54px);
  font: 700 clamp(20px, 5vw, 28px)/1 var(--display); text-transform: uppercase;
  border-bottom: 4px solid var(--stroke);
}
.hang-letter.space { border-bottom-color: transparent; width: 16px; }
.hang-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.hang-figure { width: 140px; height: 150px; color: var(--text); }
.hang-figure .part { opacity: 0; transition: opacity 200ms; }
.hang-figure .part.on { opacity: 1; }
.lives { display: flex; gap: 4px; }
.lives span { width: 14px; height: 14px; border-radius: 4px; background: var(--crimson); border: 1.5px solid var(--ink); }
.lives span.off { background: transparent; border-color: var(--stroke); }
.keyboard { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.keyboard button {
  height: 46px; padding: 0; cursor: pointer;
  font: 700 18px/1 var(--display); text-transform: uppercase; color: var(--text); background: var(--surface);
  border: 2px solid var(--stroke); border-radius: 10px; box-shadow: 2px 2px 0 var(--shadow);
}
.keyboard button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.keyboard button.hit { background: var(--sage); color: var(--on-tile); border-color: var(--ink); box-shadow: none; }
.keyboard button.miss { background: var(--skeleton); color: var(--text-2); box-shadow: none; opacity: .6; }
.clue-img { width: 110px; height: 110px; object-fit: contain; border-radius: var(--r-row); background: var(--surface); border: 2px solid var(--stroke); }

/* Memory */
.memory { display: grid; gap: clamp(6px, 1.6vw, 10px); grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; }
.mem-card {
  position: relative; aspect-ratio: 3 / 4; padding: 0; cursor: pointer; perspective: 600px;
  background: none; border: 0;
}
.mem-inner { position: absolute; inset: 0; transition: transform 300ms var(--ease); transform-style: preserve-3d; }
.mem-card.open .mem-inner, .mem-card.done .mem-inner { transform: rotateY(180deg); }
.mem-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: var(--stroke-w) solid var(--ink); border-radius: var(--r-row); box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
  font: 700 clamp(12px, 2.4vw, 17px)/1.15 var(--display); text-align: center; overflow-wrap: anywhere;
}
.mem-back { background: var(--crimson); color: var(--on-crimson); font: 400 clamp(28px, 6vw, 44px)/1 var(--poster); }
.mem-front { background: var(--surface); color: var(--text); transform: rotateY(180deg); }
.mem-front img { width: 70%; max-height: 60%; object-fit: contain; }
.mem-card.done .mem-front { background: var(--sage); color: var(--on-tile); }

/* Sentence builder */
.sentence-es { font: 600 clamp(20px, 3.2vw, 26px)/1.35 var(--display); margin-bottom: 14px; }
.answer-zone {
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; min-height: 74px; padding: 12px;
  background: var(--surface); border: var(--stroke-w) dashed var(--stroke); border-radius: var(--r-row);
}
.answer-zone.right { border-style: solid; border-color: var(--ink); background: var(--sage); }
.answer-zone.wrong { border-style: solid; border-color: var(--ink); background: var(--salmon); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.word-chip {
  padding: 8px 14px; cursor: pointer;
  font: 600 17px/1.2 var(--display); color: var(--text); background: var(--surface);
  border: 2px solid var(--stroke); border-radius: var(--r-btn); box-shadow: 2px 2px 0 var(--shadow);
}
.word-chip:active { transform: translate(2px, 2px); box-shadow: none; }
.answer-zone .word-chip { background: var(--butter); color: var(--on-tile); border-color: var(--ink); }
.word-chip.used { visibility: hidden; }

/* Word search */
.ws-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
.ws-grid {
  display: grid; gap: 2px; padding: 8px; user-select: none; touch-action: none;
  background: var(--surface); border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-row);
}
.ws-cell {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px;
  font: 700 clamp(13px, 3.4vw, 20px)/1 var(--display); text-transform: uppercase; cursor: pointer;
}
.ws-cell.sel { background: var(--butter); color: var(--on-tile); }
.ws-cell.found { background: var(--sage); color: var(--on-tile); }
.ws-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-list li { padding: 4px 10px; border: 1.5px solid var(--stroke); border-radius: 999px; font: 600 14px/1.3 var(--display); text-transform: uppercase; }
.ws-list li.found { text-decoration: line-through; background: var(--sage); color: var(--on-tile); border-color: var(--ink); }

/* Image and word */
.iw-img { display: block; width: min(240px, 70%); aspect-ratio: 1; object-fit: contain; margin: 0 auto 18px; background: var(--surface); border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-box); }

.game-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.game-intro h2 { font: 600 20px/1.25 var(--display); margin-bottom: 8px; }
.game-intro p, .game-intro li { color: var(--text-2); font-size: 15px; }
.game-intro ul { margin: 0; padding-left: 20px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.25 var(--body); }
.field small { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  font: 400 16px/1.4 var(--body); color: var(--text);
  background: var(--surface); border: 2px solid var(--stroke); border-radius: var(--r-btn);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 14px 18px; font-weight: 500; border: var(--stroke-w) solid var(--ink); border-radius: var(--r-row); }
.flash-ok { background: var(--sage); color: var(--on-tile); }
.flash-warn { background: var(--salmon); color: var(--on-tile); }

/* ── Legal / text pages ─────────────────────────────────────────────────── */
.text-page { max-width: 820px; }
.text-page h2 { font: 600 22px/1.3 var(--display); margin: 28px 0 8px; }
.text-page h2:first-child { margin-top: 0; }
.text-page p, .text-page li { color: var(--text); }
.text-page p + p { margin-top: 10px; }
.text-page ul { padding-left: 22px; margin: 8px 0 0; }
.text-page li + li { margin-top: 4px; }
.text-page a { color: var(--crimson); }

/* ── Ads ────────────────────────────────────────────────────────────────── */
/* Reserved height so the unit does not push content when it fills (CLS). */
.ad { display: block; min-height: 120px; padding: 8px 0; text-align: center; }
.ad-label { display: block; margin-bottom: 4px; font: 600 10.5px/1 var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }
.ad ins { min-height: 100px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: var(--stroke-w) solid var(--stroke); background: var(--surface); }
.foot-inner {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 24px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px;
}
.foot-brand p { margin: 14px 0 16px; color: var(--text-2); font-size: 14px; max-width: 42ch; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font: 700 13px/1.2 var(--body); letter-spacing: .8px; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.foot-col a { text-decoration: none; font-weight: 500; font-size: 15px; }
.foot-col a:hover { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 28px; border-top: 1.5px solid var(--divider); font-size: 13px; color: var(--text-2); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .top-nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-collage { max-width: 560px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
  .app-band { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-img { max-width: 320px; }
  .foot-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .ws-layout { grid-template-columns: 1fr; }
  .game-intro { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --top-h: 60px; }
  .top-inner { gap: 10px; }
  .top-cta { display: none; }
  .brand-text span { display: none; }
  .menu-btn { display: none; }
  .page { padding-top: 14px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .page > * + * { margin-top: 22px; }
  .bottom-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-box);
    box-shadow: var(--sh) var(--sh) 0 var(--shadow);
    padding: 6px;
  }
  .bottom-bar a, .bottom-bar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
    font: 600 12px/1.1 var(--display); text-decoration: none; color: var(--text);
    background: none; border: 0; border-radius: var(--r-btn); cursor: pointer;
  }
  .bottom-bar a:active, .bottom-bar button:active { background: var(--skeleton); }
  .hero-band { flex-direction: column-reverse; align-items: flex-start; }
  .hero-band-art .icon.xl { width: 112px; height: 84px; }
  .hero-collage { gap: 10px; }
  .hero-collage .tile { min-height: 128px; padding: 14px; }
  .hero-collage .tile p { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .wotd { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner .foot-col:last-child { grid-column: 1 / -1; }
  .words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word img { width: 80px; height: 80px; }
  .keyboard { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .hang-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hang-figure { width: 110px; height: 118px; }
  .pager a { max-width: 100%; flex: 1 1 100%; }
  .box { padding: 16px; }
}
@media (max-width: 380px) {
  .stores .store { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { padding: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font: 600 18px/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 24px/1 var(--display); color: var(--crimson); flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 18px 18px; color: var(--text-2); }

/* Category select for vocabulary games. */
.select-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font: 600 14px/1.2 var(--body); }
.select-wrap select {
  flex: 1 1 200px; max-width: 320px; padding: 10px 12px;
  font: 600 15px/1.2 var(--display); color: var(--text); background: var(--surface);
  border: var(--stroke-w) solid var(--stroke); border-radius: var(--r-btn);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--shadow);
}
