/* Senior Cognitive: la página de pasatiempos.
   Newsprint ground, navy ink, one marker-orange second ink, thick ruled boxes.
   Shape rule: boxes and buttons are square; phone screenshots keep the curve of a real screen. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #edf1f6;
  --paper-deep: #dfe6ef;
  --field: #ffffff;
  --ink: #14223a;
  --ink-soft: #35465e;
  --blue: #2f6db8;
  --blue-deep: #1f4f8f;
  --link: #1f4f8f;
  --orange: #f29b62;
  --orange-ink: #8a3b0a;
  --on-blue: #ffffff;

  --display: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rule: 3px;
  --maxw: 1240px;
  --gutter: 16px;
  --r-screen: 26px;
  --mast-h: 68px;
  --fs: 1.1875rem;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --fs: 1.25rem; --mast-h: 72px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1827;
    --paper-deep: #172335;
    --field: #142033;
    --ink: #e7ecf4;
    --ink-soft: #b4c0d2;
    --blue: #6ea3e8;
    --blue-deep: #1b3f73;
    --link: #9cc0f2;
    --orange-ink: #f6b788;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs)/1.55 var(--text);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
::selection { background: var(--orange); color: #14223a; }
input, textarea, select { caret-color: var(--blue); }
.cat__row, .lvl-wrap, .fam__phones { scrollbar-color: var(--ink) var(--paper-deep); scrollbar-width: thin; }
.sec--blue .lvl-wrap, .sec--blue .fam__phones { scrollbar-color: #fff var(--blue); }
.num, .listing li::before { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--orange); } }
@media (prefers-color-scheme: dark) { .menu__panel { box-shadow: none; } }
.on-blue :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  font: 800 1rem var(--display); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--display); color: inherit; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(2.4rem, 1.1rem + 4.4vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; }
h2 { font-weight: 900; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.015em; }
h3 { font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.5; max-width: 34ch; }
.lead a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.lead a:hover { background: var(--orange); color: #14223a; text-decoration: none; }
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1em; }
.soft { color: var(--ink-soft); }
.small { font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 56px; padding: 0.7em 1.4em;
  border: var(--rule) solid var(--ink); background: var(--ink); color: var(--paper);
  font: 900 1.0625rem/1.1 var(--display); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -6px 0 var(--orange);
  transition: transform 0.12s ease-out, box-shadow 0.14s ease-out, color 0.14s ease-out;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { box-shadow: inset 0 -64px 0 var(--orange); color: #14223a; } }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -64px 0 var(--orange); color: #14223a; }
.btn:disabled { opacity: 0.65; cursor: progress; }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; color: var(--ink); background: var(--paper-deep); }
.btn--ghost:active { transform: translateY(2px); box-shadow: none; color: var(--ink); }
.btn--soon, .btn--soon.btn--sm { background: var(--paper); color: var(--ink); box-shadow: none; cursor: default; border-style: dashed; }
.btn--soon:hover, .btn--soon:active { transform: none; box-shadow: none; color: var(--ink); }
.btn--sm { min-height: 46px; padding: 0.4em 1.05em; font-size: 1rem; box-shadow: inset 0 -4px 0 var(--orange); }
.btn--white { background: #fff; border-color: #fff; color: #14223a; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Masthead ---------- */
.mast {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper); border-bottom: var(--rule) solid var(--ink);
}
.mast__in { display: flex; align-items: center; gap: 20px; min-height: var(--mast-h); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  font: 900 1.35rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap;
}
.brand img { width: 42px; height: 42px; display: block; border-radius: 10px; }
.brand { min-height: 44px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
  font: 800 1.0625rem/1 var(--display); border-bottom: 4px solid transparent;
}
.nav a:hover { border-bottom-color: var(--orange); }
.mast__tools { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 8px;
  border: var(--rule) solid var(--ink); color: var(--ink); text-decoration: none; font: 900 1rem var(--display);
}
.lang:hover { background: var(--paper-deep); }

.menu { display: none; position: relative; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  border: var(--rule) solid var(--ink); font: 900 1rem var(--display);
}
.menu summary::-webkit-details-marker { display: none; }
.menu svg { width: 1.3em; height: 1.3em; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(86vw, 320px);
  background: var(--paper); border: var(--rule) solid var(--ink); box-shadow: 0 14px 28px -10px rgba(20, 34, 58, 0.45);
}
.menu__panel a { display: block; padding: 16px 18px; font: 800 1.2rem var(--display); color: var(--ink); text-decoration: none; }
.menu__panel li + li { border-top: 2px solid var(--paper-deep); }
.menu__panel a:hover { background: var(--paper-deep); }
.menu__panel a.btn { margin: 12px; display: flex; color: var(--paper); }
.menu__panel a.btn:hover { background: var(--ink); color: #14223a; }
.menu__panel .menu__lang a { font-size: 1.05rem; color: var(--ink-soft); }
@media (min-width: 561px) { .menu__lang { display: none; } }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; margin-left: 0; }
  .mast__tools { margin-left: auto; }
  .menu__panel .btn { display: none; }
}
@media (max-width: 560px) {
  .mast__tools { display: none; }
  .menu { margin-left: auto; }
  .menu__panel .btn { display: flex; }
}
@media (max-width: 420px) { .brand span { font-size: 1.15rem; } .brand img { width: 36px; height: 36px; } .mast__in { gap: 10px; } }

/* ---------- Ruled sheet ---------- */
.sheet { display: grid; gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); }
.cell { background: var(--paper); min-width: 0; }
.cell--blue { background: var(--blue-deep); color: var(--on-blue); }
.cell--orange { background: var(--orange); color: #14223a; }
.cell--deep { background: var(--paper-deep); }

.num {
  display: inline-grid; place-items: center; flex: none; width: 2.1em; height: 2.1em; border-radius: 50%;
  background: var(--orange); color: #14223a; border: var(--rule) solid #14223a;
  font: 900 1.1rem/1 var(--display);
}
.tag {
  display: inline-block; padding: 0.15em 0.6em 0.2em; background: var(--orange); color: #14223a;
  border: 2px solid #14223a; font: 900 0.875rem/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
}

/* Phone screenshots */
.screen { margin: 0; border: var(--rule) solid var(--ink); border-radius: var(--r-screen); overflow: hidden; background: #f7f8fa; }
.screen img { display: block; width: 100%; height: auto; }
.screen--crop { border-radius: 0; }
.screen--pad { border-radius: 18px; }

/* ---------- Hero ---------- */
.hero { padding-block: 20px 56px; }
.hero__sheet {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head shots" "minis shots" "levels levels";
}
.hero__head { grid-area: head; padding: clamp(22px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero__head .actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 8px; }
.hero__shots { grid-area: shots; position: relative; overflow: hidden; min-height: 420px; }
.hero__shots .screen { position: absolute; width: 46%; }
.hero__shots .screen:nth-child(1) { left: 4%; top: 6%; }
.hero__shots .screen:nth-child(2) { right: 4%; top: 22%; }
.hero__minis { grid-area: minis; display: grid; grid-template-columns: 1fr 1fr; gap: var(--rule); background: var(--ink); }
.mini { background: var(--paper); display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 900 1.1rem/1.1 var(--display); }
.bar .num { width: 2em; height: 2em; font-size: 1rem; }
.bar .tag { margin-left: auto; }
.mini .crop { height: clamp(120px, 12vw, 180px); overflow: hidden; background: var(--paper-deep); }
.mini .crop img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% var(--pos, 40%); }
.hero__levels { grid-area: levels; display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: var(--rule); background: var(--ink); }
.hero__levels > * { background: var(--paper); min-width: 0; }
.hero__levels .lead-in { padding: 12px 18px; display: flex; align-items: center; font: 900 1.15rem/1.15 var(--display); color: var(--ink); text-decoration: none; }
.hero__levels .lead-in:hover { background: var(--paper-deep); }
.lvlink {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink);
  font: 800 1.05rem/1 var(--display);
}
.lvlink:hover { background: var(--orange); color: #14223a; }
.lvlink img { width: 38px; height: 38px; flex: none; }
@media (max-width: 1100px) {
  .lvlink { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 2px; font-size: 0.9375rem; text-align: center; }
  .lvlink img { width: 34px; height: 34px; }
}

@media (max-width: 860px) {
  .hero__sheet { grid-template-columns: 1fr; grid-template-areas: "head" "shots" "minis" "levels"; }
  .hero__shots { min-height: 400px; }
  .hero__shots .screen { width: 56%; }
  .hero__levels { grid-template-columns: repeat(5, 1fr); }
  .hero__levels .lead-in { grid-column: 1 / -1; }
  .lvlink { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 2px; font-size: 0.875rem; text-align: center; }
  .lvlink img { width: 34px; height: 34px; }
  .mini .crop { height: 130px; }
}
@media (max-width: 400px) { .lvlink { font-size: 0.8125rem; letter-spacing: -0.01em; padding-inline: 0; } }
@media (max-width: 340px) { :root { --gutter: 10px; } .lvlink { font-size: 0.75rem; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .cell, .hero .mini, .hero__levels { animation: rise 0.4s cubic-bezier(0.23, 1, 0.32, 1) both; }
  .hero__head { animation-delay: 0ms; }
  .hero__shots { animation-delay: 60ms; }
  .hero__minis .mini:nth-child(1) { animation-delay: 120ms; }
  .hero__minis .mini:nth-child(2) { animation-delay: 170ms; }
  .hero__levels { animation-delay: 220ms; }
}
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec--blue { background: var(--blue-deep); color: var(--on-blue); }
.sec--deep { background: var(--paper-deep); }
.sec__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 52px); max-width: 52rem; }
.sec--blue a { color: #fff; }
.sec--blue .soft { color: #d4e2f6; }

/* Panels: a ruled box with a bar and one real screen, the unit of the puzzle page */
.panels { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--rule); background: var(--ink); min-width: 0; }
.panel { margin: 0; background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.panel .bar { font-size: 1.05rem; align-items: flex-start; }
.panel .bar small { display: block; margin-top: 2px; font: 400 0.9375rem/1.25 var(--text); color: var(--paper-deep); opacity: 0.9; }
.panel img { display: block; width: 100%; height: auto; background: #f7f8fa; }
.panel__cap { margin-top: auto; padding: 14px 16px 18px; border-top: var(--rule) solid var(--ink); font-size: 1rem; line-height: 1.4; background: var(--paper); }
.panels--lines { background: #fff; border: var(--rule) solid #fff; }
.panels--lines .bar { background: #14223a; color: #f2f5fa; }
.panels--lines .bar small { color: #c7d3e6; }

/* Un día */
.day { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.day__text { padding: clamp(22px, 3.4vw, 48px); display: grid; gap: 18px; align-content: center; }
.facts-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rule); background: var(--ink); }
.facts-strip li { background: var(--paper); display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 18px clamp(16px, 2vw, 26px); }
.facts-strip svg { width: 28px; height: 28px; margin-top: 2px; color: var(--orange-ink); }
@media (max-width: 900px) { .facts-strip { grid-template-columns: 1fr; } }
.facts { display: grid; gap: 18px; margin-top: 10px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.facts svg { width: 28px; height: 28px; margin-top: 2px; color: var(--orange-ink); }
.sec--blue .facts svg { color: var(--orange); }
@media (max-width: 900px) {
  .day { grid-template-columns: 1fr; }
  .panels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .panels > .panel { flex: 0 0 64%; scroll-snap-align: start; }
}

/* Games */
.cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); }
.cat { background: var(--ink); min-width: 0; }
.cat__bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 14px 18px;
  background: var(--blue-deep); color: #fff;
}
.cat__bar h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; }
.cat__bar p { font: 400 1.0625rem/1.3 var(--text); color: #d4e2f6; }
.cat__row { display: grid; gap: var(--rule); background: var(--ink); margin-top: var(--rule); }
.cat--3 .cat__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat--2 .cat__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game { background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.game__what { padding: 14px 18px 4px; font-size: 1.125rem; line-height: 1.4; }
.game__shot { margin: 14px 18px 18px; aspect-ratio: 1 / 1; overflow: hidden; background: #f7f8fa; margin-top: auto; }
.game__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 760px) {
  .cat__row, .cat--3 .cat__row, .cat--2 .cat__row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-left: 0;
  }
  .cat__row > .game { flex: 0 0 82%; scroll-snap-align: start; display: flex; }
}

/* Levels */
.lvl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--rule); background: #14223a; border: var(--rule) solid #14223a; }
.lvl > li { background: var(--paper); color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.lvl__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px; background: var(--orange); color: #14223a; }
.lvl__head img { width: 44px; height: 44px; flex: none; }
.lvl__head b { font: 900 1.25rem/1 var(--display); }
.lvl__crops { display: grid; gap: var(--rule); background: #14223a; }
.lvl__crops img { display: block; width: 100%; height: auto; background: #f7f8fa; }
.lvl__txt { padding: 12px 14px 16px; font-size: 1.0625rem; line-height: 1.35; }
.lvl__txt span { display: block; }
.lvl__txt span + span { margin-top: 6px; }
.lvl__txt b { font-family: var(--display); font-weight: 800; }
.lvl-wrap { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.lvl-wrap:focus-visible { outline-offset: 2px; }
@media (max-width: 980px) {
  .lvl { grid-template-columns: repeat(5, 250px); width: max-content; }
  .lvl > li { scroll-snap-align: start; }
}
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 5vw, 64px); }
.trio > div { border-top: 4px solid #fff; padding-top: 14px; }
.trio h3 { margin-bottom: 8px; }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; gap: 24px; } }

/* Week */
.week { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text panels" "list panels"; }
.week__text { grid-area: text; padding: clamp(22px, 3.4vw, 48px); display: grid; gap: 18px; align-content: start; }
.week__panels { grid-area: panels; }
.listing { grid-area: list; background: var(--field); display: flex; flex-direction: column; }
.listing ol { counter-reset: n; }
.listing li { display: flex; align-items: center; gap: 14px; padding: 12px 18px; font-size: 1.125rem; }
.listing li + li { border-top: 2px solid var(--paper-deep); }
.listing li::before {
  counter-increment: n; content: counter(n); flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: var(--rule) solid var(--ink); border-radius: 50%; font: 900 1rem var(--display);
}
.listing__note { margin-top: auto; padding: 12px 18px; border-top: var(--rule) solid var(--ink); background: var(--paper-deep); font-size: 1rem; }
@media (max-width: 900px) {
  .week { grid-template-columns: 1fr; grid-template-areas: "text" "list" "panels"; }
}

/* Family */
.fam { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.payrule { margin-top: 22px; padding: 14px 18px; border: var(--rule) solid #fff; font: 800 1.2rem/1.3 var(--display); max-width: 30ch; }
.fam__panels { margin-top: clamp(36px, 5vw, 64px); }
.fam__panels .panel .bar { min-height: 76px; }
.how { display: grid; gap: 20px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.how li::before {
  counter-increment: how; content: counter(how); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #14223a; border: var(--rule) solid #14223a; font: 900 1.2rem var(--display);
}
.how b { font-family: var(--display); font-weight: 800; }
.note-box { margin-top: 28px; padding: 16px 20px; border: var(--rule) solid #fff; }
@media (max-width: 1000px) { .fam { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .fam__panels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .fam__panels > .panel { flex: 0 0 min(72%, 270px); scroll-snap-align: start; }
}

/* Gratis y Plus */
.sol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rule); background: var(--ink); }
.sol .bar { padding: 14px clamp(20px, 3vw, 32px); }
.sol .bar h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 900; }
.bar--blue { background: var(--blue-deep); color: #fff; }
.sol .tag { margin-left: 10px; vertical-align: middle; }
.ticks { display: grid; gap: 14px; padding: 22px clamp(20px, 3vw, 32px) 28px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 26px; height: 26px; margin-top: 2px; color: var(--orange-ink); }
.sol__note { padding: 18px clamp(20px, 3vw, 32px); background: var(--orange); color: #14223a; font-weight: 700; }
@media (max-width: 800px) { .sol { grid-template-columns: 1fr; } }

.faq { margin-top: clamp(40px, 5vw, 64px); max-width: 52rem; }
.faq h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 900; margin-bottom: 14px; }
.q { border-top: var(--rule) solid var(--ink); }
.q:last-child { border-bottom: var(--rule) solid var(--ink); }
.q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 4px; font: 800 1.25rem/1.25 var(--display);
}
.q summary::-webkit-details-marker { display: none; }
.q summary svg { width: 28px; height: 28px; flex: none; }
.q[open] summary svg { transform: rotate(45deg); }
.q summary:hover { background: var(--paper-deep); }
.q__a { padding: 0 4px 20px; max-width: 46rem; }
@media (prefers-reduced-motion: no-preference) { .q summary svg { transition: transform 0.15s ease-out; } }

/* Centres + form */
.centers { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.groups { display: grid; gap: 28px; margin-top: 28px; }
.groups h3 { font-size: 1.3rem; margin-bottom: 8px; }
.groups h3 + * { margin-top: 0; }
.pad-fig { margin-top: 32px; }
.pad-fig figcaption { margin-top: 10px; font: 800 1rem/1.25 var(--display); }
.form { background: var(--field); border: var(--rule) solid var(--ink); }
.form__bar { padding: 14px clamp(20px, 3vw, 36px); }
.form__bar h3 { font-size: 1.5rem; font-weight: 900; }
.form__body { padding: clamp(16px, 2.4vw, 28px) clamp(20px, 3vw, 36px) clamp(22px, 3vw, 36px); }
.form__help { color: var(--ink-soft); font-size: 1rem; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label, .field legend { font: 800 1.0625rem/1.2 var(--display); }
.field .opt { font: 400 1rem var(--text); color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 10px 14px; border: var(--rule) solid var(--ink); border-radius: 0;
  background: var(--field); color: var(--ink); font: 400 1.125rem/1.4 var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 4px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field--bad input, .field--bad textarea { border-color: var(--orange-ink); }
.err { color: var(--orange-ink); font: 700 1rem/1.3 var(--text); }
.err[hidden] { display: none; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; margin-top: 22px; font-size: 1.0625rem; }
.consent input { width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--blue-deep); }
.form .btn { margin-top: 24px; }
.form__alt { margin-top: 18px; font-size: 1rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.form__status { margin-top: 16px; font-weight: 700; }
.form__status:empty { display: none; }
.form__status[data-state] { padding: 12px 16px; border: var(--rule) solid currentColor; }
.form__status[data-state="ok"] { color: var(--ink); background: var(--paper-deep); }
.form__status[data-state="error"] { color: var(--orange-ink); }
@media (max-width: 960px) { .centers { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: var(--rule) solid var(--ink); padding-block: 40px 56px; }
.foot__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.foot p { font-size: 1rem; color: var(--ink-soft); max-width: 60ch; }
.foot p + p { margin-top: 10px; }
.foot__in > div:first-child { display: grid; gap: 18px; justify-items: start; align-content: start; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font: 800 1rem var(--display); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 800px) { .foot__in { grid-template-columns: 1fr; } }

/* Motion with a reason: the menu grows from its button, the form answer is noticed. */
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__panel { transform-origin: top right; animation: pop 0.16s cubic-bezier(0.23, 1, 0.32, 1); }
  .form__status[data-state="ok"], .form__status[data-state="error"] { animation: notice 0.25s cubic-bezier(0.23, 1, 0.32, 1); }
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes notice { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Utilities */
.stack > * + * { margin-top: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

@media print {
  .mast, .menu, .btn { display: none !important; }
  .sec { padding-block: 24px; }
}

.cat--2 .game__shot { aspect-ratio: 1 / 1; width: min(100% - 36px, 380px); margin-inline: auto; }

/* ---------- Legal and help pages (privacy, support) ---------- */
.legal { width: min(100% - 2 * var(--gutter), 46rem); padding-block: 36px 72px; }
.legal h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.2rem); }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; margin-top: 2.1em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.4em; }
.legal h2 + p, .legal h3 + p, .legal h2 + ul, .legal h2 + h3 { margin-top: 0.6em; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.9em; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li + li { margin-top: 0.45em; }
.legal li::marker { color: var(--orange-ink); }
.legal__kicker { font: 800 1rem var(--display); }
.legal__kicker a { display: inline-flex; align-items: center; min-height: 44px; }
.legal__date { margin-top: 0.7em; color: var(--ink-soft); font-size: 1rem; }
.legal__sum { margin-top: 1.6em; padding: 20px 22px 22px; border: var(--rule) solid var(--ink); background: var(--field); box-shadow: inset 0 -6px 0 var(--orange); }
.legal__sum h2 { margin-top: 0; font-size: 1.35rem; }
.legal__sum p, .legal__sum ul { margin-top: 0.7em; }
.legal__end { margin-top: 2.4em; font: 800 1.0625rem var(--display); }
.legal__end a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links a[aria-current="page"] { text-decoration-thickness: 4px; text-decoration-color: var(--orange); }
