/* MindChess · mindchess.app
   El mundo es la propia app: tokens de Packages/MindChess/Sources/Styleguide (Color+Root.swift),
   tablero muestreado de las capturas reales, piezas resourchess. */

@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* primitivos de la app */
  --ebony: #111827;
  --ebonyClay: #1F2937;
  --oxford: #374151;
  --night: #0B1120;
  --grayChateau: #9CA3AF;
  --mischka: #D1D5DB;
  --dodgerBlue: #3B82F6;
  --malibu: #60A5FA;
  --cornflower: #8B5CF6;
  --shamrock: #34D399;
  --ecstasy: #F97316;
  --neonCarrot: #FB923C;
  --heliotrope: #A78BFA;
  --persianPink: #F472B6;
  --candlelight: #DEBA13;
  /* tablero (muestreado de la captura de Memory) */
  --sq-light: #DFE3E4;
  --sq-dark: #94AAB2;

  --bg: var(--ebony);
  --surface: var(--ebonyClay);
  --line: rgba(255, 255, 255, .08);
  --text: #FFFFFF;
  --text2: var(--grayChateau);
  --accent: var(--dodgerBlue);
  --challenge: linear-gradient(120deg, var(--dodgerBlue) 0%, var(--cornflower) 100%);

  --display: 'Bricolage', ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;

  --r12: 12px; --r16: 16px; --r20: 20px; --r28: 28px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--malibu); }
::selection { background: var(--dodgerBlue); color: #fff; }
:focus-visible { outline: 3px solid var(--malibu); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--oxford) var(--night); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }

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

/* ---------- barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; color: var(--text2); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); font-size: .8rem; font-weight: 600; }
.lang a { padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--text2); }
.lang a[aria-current="true"] { background: var(--oxford); color: var(--text); }
.btn-store-sm {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: background-color .2s;
}
.btn-store-sm:hover { background: var(--dodgerBlue); color: #fff; filter: brightness(1.1); }
.btn-store-sm svg { width: 15px; height: 15px; }

/* ---------- héroe: la página es un ejercicio ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.25rem); }
.hero h1 span { color: var(--malibu); }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--mischka); max-width: 34ch; }
.store { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 32px; }
.badge { display: inline-block; border-radius: 10px; transition: transform .25s var(--ease-out); }
.badge:hover { transform: translateY(-2px); }
.badge img { width: 168px; height: auto; }
.store small { color: var(--text2); font-size: .9rem; line-height: 1.4; }

/* el escenario del ejercicio imita la pantalla de juego de la app */
.stage {
  position: relative;
  background: var(--surface);
  border-radius: var(--r28);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  isolation: isolate;
  overflow: hidden;
}
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.stage-title .ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.stage-title .ico img { width: 20px; height: 20px; }
.clock { font: 600 1rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--neonCarrot); display: flex; align-items: center; gap: 6px; }
.clock svg { width: 16px; height: 16px; }
.timebar { height: 4px; border-radius: 4px; background: var(--oxford); margin-top: 14px; overflow: hidden; }
.timebar i { display: block; height: 100%; width: 100%; background: var(--neonCarrot); transform-origin: left; transform: scaleX(var(--left, 1)); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: var(--bg); border-radius: var(--r12); padding: 10px 12px; text-align: center; }
.stat b { display: block; font: 700 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; color: var(--text2); }
.stat.ok b { color: var(--shamrock); }
.stat.ko b { color: var(--ecstasy); }
.stat.st b { color: var(--dodgerBlue); }

.question { text-align: center; padding: clamp(10px, 2vw, 22px) 0 clamp(14px, 2vw, 22px); }
.coord {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(8.5rem, 21vw, 17rem);
  line-height: .86;
  letter-spacing: 0;
  font-variant-numeric: lining-nums;
  min-height: .86em;
}
.coord.enter { animation: coord-in .42s var(--ease-out); }
@keyframes coord-in { from { opacity: 0; transform: translateY(18%); filter: blur(6px); } }
.prompt { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--mischka); margin-top: 8px; }
.prompt em { font-style: normal; color: var(--text2); font-size: .85em; display: block; margin-top: 4px; }

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer {
  position: relative;
  min-height: 92px;
  border: 0; border-radius: var(--r20);
  cursor: pointer;
  font: 700 1.25rem/1 var(--display);
  font-stretch: 90%;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px;
  transition: transform .18s var(--ease-out), box-shadow .18s;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}
.answer kbd { font: 600 .72rem/1 var(--body); padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, .12); }
.answer.light { background: var(--sq-light); color: var(--ebony); }
.answer.dark { background: var(--sq-dark); color: var(--ebony); }
.answer:hover { transform: translateY(-2px); }
.answer:active { transform: translateY(1px); }
.answer[disabled] { cursor: default; opacity: .5; transform: none; }
.stage[data-flash="ok"] { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 2px var(--shamrock); }
.stage[data-flash="ko"] { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 2px var(--ecstasy); }
.stage { transition: box-shadow .25s; }

.result {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center;
  padding: 28px;
  background: var(--challenge);
  clip-path: circle(0% at 50% 60%);
  transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
.result[data-open] { clip-path: circle(150% at 50% 60%); visibility: visible; }
.result .big { font: 800 clamp(5rem, 12vw, 9rem)/.9 var(--display); font-stretch: 75%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.result p { font-size: 1.15rem; max-width: 30ch; }
.result .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; }
.ghost {
  border: 1.5px solid rgba(255, 255, 255, .7); background: transparent; border-radius: 999px;
  padding: 11px 18px; font-weight: 600; cursor: pointer;
}
.ghost:hover { background: rgba(255, 255, 255, .12); }

/* iconos de categoría de la app, pintados con su color (máscara) */
.gi { display: inline-block; width: 22px; height: 22px; flex: none; background: var(--c, currentColor); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.stage-title .ico .gi { width: 20px; height: 20px; }

/* ---------- secciones ---------- */
section { position: relative; }
.band { padding: clamp(72px, 10vw, 136px) 0; }
.band + .band { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.copy h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.copy p { margin-top: 18px; color: var(--mischka); font-size: 1.1rem; max-width: 42ch; }
.copy .game { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; color: var(--text2); font-size: .95rem; }
.copy .game img { width: 22px; height: 22px; }

/* tablero interactivo */
.boardbox { display: grid; gap: 16px; justify-items: center; }
.boardbox .ask { font: 700 clamp(1.45rem, 2.2vw, 1.8rem)/1.1 var(--display); font-stretch: 85%; letter-spacing: -.01em; min-height: 2.6em; text-align: center; }
.boardbox .ask small { font: 500 1rem/1.3 var(--body); color: var(--text2); display: block; letter-spacing: 0; margin-top: 8px; }
.board {
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  border-radius: var(--r12);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
  user-select: none;
}
.board button {
  border: 0; padding: 0; margin: 0; position: relative; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .2s, box-shadow .2s;
}
.board button.l { background: var(--sq-light); }
.board button.d { background: var(--sq-dark); }
.board button:hover { box-shadow: inset 0 0 0 3px rgba(59, 130, 246, .55); }
.board button:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--dodgerBlue); border-radius: 0; }
.board button.hit { background: var(--shamrock); }
.board button.miss { background: var(--ecstasy); }
.board button.reveal { box-shadow: inset 0 0 0 4px var(--shamrock); }
.board img { width: 86%; height: 86%; pointer-events: none; transition: opacity .5s, transform .5s var(--ease-out); }
.board img.gone { opacity: 0; transform: scale(.7); }
.board[data-idle] img { opacity: .38; }
.board .lbl { position: absolute; font: 700 .74rem/1 var(--body); pointer-events: none; }
.board button.l .lbl { color: #4B5D6B; }
.board button.d .lbl { color: #1F2937; }
.board .lbl.f { right: 4px; bottom: 3px; }
.board .lbl.r { left: 4px; top: 3px; }
.board[data-locked] button { cursor: default; }
.boardbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--text2); font-size: .95rem; }
.boardbar b { color: var(--text); font-variant-numeric: tabular-nums; }
.pill {
  border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 600; font-size: .92rem;
  background: var(--oxford); color: var(--text);
}
.pill:hover { background: #4B5563; }
.pill.primary { background: var(--accent); }
.pill.primary:hover { background: var(--malibu); color: var(--ebony); }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle input { accent-color: var(--dodgerBlue); width: 18px; height: 18px; }

/* la app: capturas reales de la App Store */
.reel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reel-head h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 14ch; }
.reel-head p { color: var(--mischka); max-width: 40ch; font-size: 1.1rem; }
.reel {
  margin-top: 40px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 290px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px;
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: thin;
}
.reel figure { margin: 0; scroll-snap-align: start; }
.reel img { border-radius: var(--r20); background: var(--surface); aspect-ratio: 860 / 1864; object-fit: cover; }
.games { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 40px; padding: 0; list-style: none; }
.games li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.games li span { color: var(--text2); font-size: .9rem; text-align: right; }
.games li.playable { padding: 0; }
.games li.playable a { display: flex; flex: 1; justify-content: space-between; gap: 12px; padding: 13px 0; text-decoration: none; }
.games li.playable a span { color: var(--malibu); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.games li.playable .up { width: 13px; height: 13px; }
.games li.playable a:hover span { color: #fff; }
.modes { margin-top: 28px; color: var(--mischka); max-width: 70ch; }
.modes b { color: var(--text); }

/* reto diario: el campo de color de la app */
.daily { background: var(--challenge); color: #fff; padding: clamp(72px, 10vw, 136px) 0; overflow: hidden; }
.daily .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.daily h2 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.daily p { margin-top: 20px; font-size: 1.15rem; max-width: 40ch; color: #EEF2FF; }
.daily .cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.daily .cats li { background: rgba(17, 24, 39, .22); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .95rem; }
.daily .cats li.bonus { background: #fff; color: var(--cornflower); }
.daily .evidence { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.daily .evidence img { width: 84px; border-radius: 14px; box-shadow: 0 16px 30px -14px rgba(17, 24, 39, .7); }
.daily .evidence p { margin: 0; font-size: .9rem; color: #E0E7FF; max-width: 26ch; }
.today { background: var(--ebony); color: var(--text); border-radius: var(--r28); padding: clamp(18px, 2.4vw, 26px); box-shadow: 0 40px 80px -30px rgba(17, 24, 39, .75); display: grid; gap: 16px; }
.today-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.today-steps li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 999px; padding: 7px 10px; text-align: center; font-size: .8rem; font-weight: 700; background: var(--surface); color: var(--text2); }
.today-steps li[data-state="now"] { background: var(--dodgerBlue); color: #fff; }
.today-steps li[data-state="ok"] { background: rgba(52, 211, 153, .18); color: var(--shamrock); }
.today-steps li[data-state="ko"] { background: rgba(249, 115, 22, .18); color: var(--neonCarrot); }
.today .ask { font: 700 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--display); font-stretch: 85%; text-align: center; min-height: 2.4em; }
.today .ask b { display: block; font-size: 3.4em; font-weight: 800; font-stretch: 75%; line-height: .9; }
.today .board { width: 100%; max-width: 380px; margin-inline: auto; }
.today .board button.target { box-shadow: inset 0 0 0 4px var(--dodgerBlue); }
.today .answers .answer { min-height: 64px; }
.today .answers .answer.yes { background: var(--shamrock); }
.today .answers .answer.no { background: var(--oxford); color: #fff; }
.today .done { text-align: center; display: grid; gap: 12px; justify-items: center; }
.today .done .big { font: 800 4.5rem/.9 var(--display); font-stretch: 75%; }
.today .done p { color: var(--mischka); max-width: 32ch; }

/* en camino */
.next h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.next .intro { margin-top: 18px; color: var(--mischka); font-size: 1.1rem; max-width: 52ch; }
.next .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); margin-top: 48px; align-items: start; }
.roadmap { list-style: none; padding: 0; margin: 0; }
.roadmap li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.roadmap li:last-child { border-bottom: 1px solid var(--line); }
.roadmap h3 { font-size: 1.35rem; font-stretch: 90%; letter-spacing: -.01em; }
.roadmap p { grid-column: 1 / -1; color: var(--text2); font-size: .98rem; max-width: 60ch; }
.status { align-self: center; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status.dev { background: rgba(251, 146, 60, .16); color: var(--neonCarrot); }
.status.design { background: rgba(139, 92, 246, .2); color: var(--heliotrope); }
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; position: sticky; top: 96px; }
.previews figure { margin: 0; }
.previews figure:nth-child(2) { transform: translateY(28px); }
.previews figcaption, .previews-note { font-size: .78rem; color: var(--text2); margin-top: 8px; text-align: center; }
.previews-note { grid-column: 1 / -1; margin-top: 40px; }

/* en público */
.band.public { border-top: 1px solid var(--line); padding-top: clamp(72px, 10vw, 136px); }
.public .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.public h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.public p { margin-top: 18px; color: var(--mischka); font-size: 1.1rem; max-width: 50ch; }
.links { list-style: none; padding: 0; margin: 0; }
.links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.links a span { color: var(--text2); font-weight: 400; }
.links a:hover span { color: var(--malibu); }

/* cierre */
.close { text-align: center; padding: clamp(88px, 12vw, 160px) 0; }
.close h2 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 16ch; margin-inline: auto; }
.close .store { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--text2); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- páginas de texto (legal, novedades) ---------- */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 28px; }
.doc h2 { font-size: 1.6rem; font-stretch: 90%; margin: 44px 0 12px; letter-spacing: -.01em; }
.doc h3 { font-size: 1.2rem; font-stretch: 95%; margin: 28px 0 8px; letter-spacing: 0; }
.doc p, .doc li { color: var(--mischka); max-width: 68ch; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); }
.doc .meta { color: var(--text2); font-size: .95rem; }
.release { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 40px; }
.release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release h2 time { font: 500 .95rem var(--body); color: var(--text2); letter-spacing: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split, .daily .wrap, .next .grid, .public .wrap { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .previews { position: static; }
  .top nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .today-steps li { font-size: .7rem; padding: 7px 6px; }
  .top .wrap { gap: 12px; }
  .btn-store-sm span { display: none; }
  .btn-store-sm { padding: 9px; }
  .answer { min-height: 76px; }
  .stats { gap: 6px; }
  .stat b { font-size: 1.3rem; }
  .daily figure { transform: none; }
  .daily figcaption { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
