/* Steam Guess — "match broadcast" direction, Steam client palette.
   One accent (Steam blue) marks state: timer, selection, correct, primary action, streak.
   Red appears only for a wrong answer. No gradients, glass, glows or decorative shadows. */

:root {
  --bg: #171a21;
  --surface: #1b2838;
  --line: #2a3f5a;
  --line-strong: #3d5a7a;
  --text: #dcdedf;
  --muted: #8f98a0;
  --faint: #5f6d7a;
  --accent: #66c0f4;
  --accent-ink: #0e141b;
  --accent-hover: #8fd2f8;
  --bad: #e5533d;

  /* aliases used by fx.js */
  --good: var(--accent);
  --gold: var(--accent);
  --accent-2: var(--text);

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Golos Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--body);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.label {
  display: block;
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
kbd {
  font: 500 11px/1 var(--mono);
  padding: 3px 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.55;
}

#app { max-width: 1120px; margin: 0 auto; padding: 0 32px 64px; }

/* ================= shared controls ================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 20px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 2px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible { outline-color: var(--text); }
.btn-primary:active { transform: translateY(1px); }
.text-btn { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.text-btn:hover { color: var(--text); text-decoration-color: currentColor; }

.topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 600 18px/1 var(--display); letter-spacing: 0.12em; }

/* ================= start ================= */
.rules { max-width: 640px; margin: 48px 0 28px; color: var(--muted); font-size: 17px; }

.modes { border-top: 1px solid var(--line); }
.mode {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: "num name record" "num desc record";
  align-items: baseline;
  column-gap: 16px;
  width: 100%;
  padding: 22px 0 22px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.mode::before {
  content: "";
  position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s var(--ease);
}
.mode:hover { background: var(--surface); }
.mode.active::before { transform: scaleY(1); }
.mode-num { grid-area: num; font: 400 14px/1 var(--mono); color: var(--faint); }
.mode-name { grid-area: name; font: 500 clamp(32px, 5vw, 52px)/1 var(--display); text-transform: uppercase; color: var(--muted); }
.mode.active .mode-name { color: var(--text); }
.mode.active .mode-num { color: var(--accent); }
.mode-desc { grid-area: desc; margin-top: 8px; color: var(--muted); font-size: 15px; }
.mode-record { grid-area: record; align-self: center; font: 400 13px/1.3 var(--mono); color: var(--faint); text-align: right; white-space: nowrap; }
.mode-record b { display: block; font: 500 28px/1.1 var(--display); color: var(--text); }

.btn-play { margin-top: 32px; font-size: 26px; padding: 18px 28px; }

.settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; }
.seg button { padding: 5px 12px; font: 500 12px/1 var(--mono); color: var(--muted); }
.seg button.active { background: var(--text); color: var(--bg); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  display: grid; place-items: center;
  cursor: pointer;
}
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check:hover { color: var(--text); }
.reset-btn { margin-left: auto; }
.reset-btn.armed { color: var(--bad); text-decoration-color: currentColor; }
.reset-btn:disabled { visibility: hidden; }

/* ================= game ================= */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  grid-template-areas: "main board";
  column-gap: 48px;
  padding-top: 28px;
}
.main { grid-area: main; min-width: 0; }

/* board (score rail) */
.board {
  grid-area: board;
  position: sticky; top: 28px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.board-back, .board-finish { font-size: 14px; color: var(--muted); padding: 2px 0 18px; }
.board-back:hover, .board-finish:hover { color: var(--text); }
.board-finish { padding: 18px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.board-cell { padding: 16px 0; border-top: 1px solid var(--line); }
.big { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font: 500 44px/1 var(--display); font-variant-numeric: tabular-nums; }
#hud-streak .big { font-size: 30px; }
#hud-streak.hot .big { color: var(--accent); }
.mult { font: 500 14px/1 var(--mono); padding: 3px 6px; background: var(--accent); color: var(--accent-ink); border-radius: 2px; }

.progress-num { display: block; margin-top: 8px; font: 500 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.progress-num small { font-size: 16px; color: var(--faint); }
.squares-row { display: flex; gap: 3px; margin-top: 10px; }
.sq { width: 12px; height: 12px; background: var(--line); border-radius: 1px; transition: background 0.2s; }
.sq.ok { background: var(--accent); }
.sq.bad { background: var(--bad); }
.sq.life { background: var(--text); }
.sq.life.lost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sq.now { box-shadow: inset 0 0 0 1px var(--text); }

.hints { display: grid; gap: 2px; margin-top: 10px; }
.hint {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.hint small { font: 400 12px/1 var(--mono); color: var(--faint); }
.hint:hover:not(:disabled) { color: var(--accent); }
.hint:disabled { color: var(--faint); }
.hint.used { text-decoration: line-through; }
.hints-inline { display: none; }

/* timer */
.timer { display: flex; align-items: center; gap: 14px; height: 18px; }
.timer-track { flex: 1; height: 2px; background: var(--line); }
.timer-bar { height: 100%; background: var(--accent); transform-origin: left; }
.timer-bar.frozen { background: var(--faint); }
#timer-sec { width: 3.5em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* review — laid out like a Steam user review */
.review { margin-top: 24px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.review-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.22);
}
.thumb {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: #2a475e;
  color: var(--accent);
  font-size: 20px;
  border-radius: 2px;
}
.review.negative .thumb { background: #4c2a25; color: var(--bad); }
.review-title { font-size: 17px; font-weight: 500; color: #e5e6e7; line-height: 1.2; }
.review-hours { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lang-badge { margin-left: auto; color: var(--faint); }
.review-content { padding: 14px 16px 16px; }
.review-date { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.review-body {
  max-width: 64ch;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.55;
  color: #c6d4df;
  overflow-wrap: anywhere;
  position: relative;
}
.review-body.collapsed { max-height: 13.5em; overflow: hidden; }
.review-body.collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em;
  background: linear-gradient(transparent, var(--surface));
}
.review-body.typing::after { content: "▌"; color: var(--accent); animation: blink 0.7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.redacted {
  display: inline-block;
  width: 3.4em; height: 0.82em;
  margin: 0 0.1em;
  background: var(--text);
  vertical-align: -0.04em;
  overflow: hidden;
  color: transparent;
  font-size: 0.9em;
  user-select: none;
}
#btn-more { margin-top: 10px; }
.review-votes {
  display: flex; flex-wrap: wrap; gap: 2px 24px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px; color: var(--muted);
}
.review-votes:has(span:empty + span:empty) { display: none; }
.hint-results, .hints-inline { padding: 0 16px; }
.hint-results:not(:empty) { padding-bottom: 12px; }
.hint-results { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.hint-results:empty { display: none; }
.hint-tag { font: 500 13px/1.3 var(--mono); color: var(--accent); animation: appear 0.3s var(--ease); }
.hint-tag i { display: none; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } }

/* options */
.question { margin: 30px 0 10px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.options { border-top: 1px solid var(--line); perspective: 1000px; }
.option {
  position: relative;
  display: grid;
  grid-template-columns: 44px 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, opacity 0.25s;
}
.option::before {
  content: ""; position: absolute; left: -16px; top: -1px; bottom: -1px; width: 4px;
  background: transparent;
}
.option-num { font: 500 30px/1 var(--display); color: var(--faint); text-align: center; transition: color 0.15s; }
.option-cover { width: 128px; aspect-ratio: 460 / 215; background: var(--surface); overflow: hidden; }
.option-cover img { width: 100%; height: 100%; object-fit: cover; }
.option-name { font-size: 19px; font-weight: 500; line-height: 1.25; }
.option:hover:not(:disabled) { background: var(--surface); }
.option:hover:not(:disabled) .option-num { color: var(--accent); }
.option.picked .option-num { color: var(--text); }
.option.correct { background: var(--surface); }
.option.correct::before { background: var(--accent); }
.option.correct .option-num { color: var(--accent); }
.option.wrong::before { background: var(--bad); }
.option.wrong .option-num, .option.wrong .option-name { color: var(--bad); }
.option.dim { opacity: 0.35; }
.option.removed { opacity: 0.2; pointer-events: none; }
.option.removed .option-name { text-decoration: line-through; }

/* result strip */
.result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--text);
  animation: appear 0.3s var(--ease);
}
.result.is-correct { border-top-color: var(--accent); }
.result.is-wrong { border-top-color: var(--bad); }
.result-verdict { font: 500 40px/1 var(--display); text-transform: uppercase; }
.result.is-correct .result-verdict { color: var(--accent); }
.result.is-wrong .result-verdict { color: var(--bad); }
.result-info { font-size: 15px; line-height: 1.6; }
.result-info b { font-weight: 600; }
.result-points { font: 500 28px/1 var(--display); color: var(--accent); }

/* skeleton & toast */
.skeleton { display: grid; gap: 14px; padding-top: 28px; }
.sk { height: 18px; background: var(--surface); animation: shimmer 1.2s ease-in-out infinite alternate; }
@keyframes shimmer { to { background: var(--line); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  display: flex; gap: 18px; align-items: center;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  background: var(--surface);
  border-left: 4px solid var(--bad);
  font-size: 14px;
}

/* ================= results ================= */
.res-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: end;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}
.res-score-val { display: block; margin-top: 12px; font: 500 clamp(88px, 16vw, 168px)/0.9 var(--display); font-variant-numeric: tabular-nums; }
.record-mark { display: inline-block; margin-top: 14px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.res-verdict { margin-top: 12px; color: var(--muted); font-size: 17px; }
.res-stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.res-stats div:last-child { border-bottom: 0; }
.res-stats dt { color: var(--muted); font-size: 15px; }
.res-stats dd { font: 500 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.squares { display: flex; flex-wrap: wrap; gap: 4px; padding: 24px 0; }
.squares .sq { width: 18px; height: 18px; animation: appear 0.25s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.history-title { margin: 48px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.history { list-style: none; counter-reset: h; }
.history-item {
  display: grid;
  grid-template-columns: 32px 96px minmax(0, 1fr) 64px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.history-item::before { counter-increment: h; content: counter(h, decimal-leading-zero); font: 400 12px/1 var(--mono); color: var(--faint); }
.history-item img { width: 96px; aspect-ratio: 460 / 215; object-fit: cover; }
.history-name { font-weight: 600; }
.history-name i { display: none; }
.history-item.ok::before { color: var(--accent); }
.history-item.bad::before { color: var(--bad); }
.history-text { margin-top: 2px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item.open .history-text { white-space: normal; }
.history-points { font: 500 20px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.history-item.ok .history-points { color: var(--accent); }
.history-item.bad .history-points { color: var(--faint); }

/* ================= FX ================= */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.float-text {
  position: fixed; z-index: 55; pointer-events: none;
  font: 500 34px/1 var(--display);
  color: var(--accent);
  transform: translate(-50%, -50%);
  animation: float-up 1.1s var(--ease) forwards;
}
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, -30%); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -180%); }
}
.fx-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: translateY(-4px); color: var(--accent); } }

.streak-banner {
  position: fixed; left: 0; right: 0; top: 38%; z-index: 56; pointer-events: none;
  display: flex; align-items: baseline; justify-content: center; gap: 24px;
  padding: 18px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  animation: banner-life 1.6s ease forwards;
}
.streak-banner-title { font: 600 clamp(40px, 8vw, 72px)/1 var(--display); text-transform: uppercase; }
.streak-banner-sub { font: 500 16px/1 var(--mono); text-transform: uppercase; }
@keyframes banner-life { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.banner-slam { animation: banner-life 1.6s ease forwards, slam 0.35s var(--ease); }
@keyframes slam { from { transform: scaleY(0); } }
.banner-sweep { animation: banner-life 1.6s ease forwards, sweep 0.4s var(--ease); }
@keyframes sweep { from { transform: translateX(-100%); } }
.banner-spin { animation: banner-life 1.6s ease forwards, wipe 0.45s var(--ease); }
@keyframes wipe { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }

/* review entrances */
.in-deal { animation: in-deal 0.4s var(--ease); }
@keyframes in-deal { from { opacity: 0; transform: translateX(-24px); } }
.in-blur { animation: in-blur 0.45s ease; }
@keyframes in-blur { from { opacity: 0; filter: blur(8px); } }
.in-rise { animation: in-rise 0.4s var(--ease); }
@keyframes in-rise { from { opacity: 0; transform: translateY(18px); } }
.in-flip { animation: in-flip 0.45s var(--ease); }
@keyframes in-flip { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.in-zoom { animation: in-zoom 0.35s var(--ease); }
@keyframes in-zoom { from { opacity: 0; letter-spacing: 0.04em; } }

/* option entrances */
.opt-cascade .option { animation: opt-cascade 0.35s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 120ms); }
@keyframes opt-cascade { from { opacity: 0; transform: translateY(10px); } }
.opt-flip .option { animation: opt-flip 0.4s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 100ms); transform-origin: top; }
@keyframes opt-flip { from { opacity: 0; transform: rotateX(-70deg); } }
.opt-sides .option { animation: opt-side 0.35s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 100ms); }
@keyframes opt-side { from { opacity: 0; transform: translateX(32px); } }
.opt-pop .option { animation: opt-wipe 0.4s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes opt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* exits */
.out-left { animation: out-left 0.28s ease-in forwards; }
@keyframes out-left { to { opacity: 0; transform: translateX(-40px); } }
.out-up { animation: out-up 0.28s ease-in forwards; }
@keyframes out-up { to { opacity: 0; transform: translateY(-24px); } }
.out-fade { animation: out-fade 0.28s ease forwards; }
@keyframes out-fade { to { opacity: 0; } }
.out-scale { animation: out-scale 0.28s ease-in forwards; }
@keyframes out-scale { to { opacity: 0; clip-path: inset(0 0 100% 0); } }

/* answer feedback */
.fx-shake { animation: shake 0.4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.fx-glitch { animation: glitch 0.5s steps(2) 1; }
@keyframes glitch {
  25% { transform: translate(-3px, 1px); clip-path: inset(10% 0 45% 0); }
  50% { transform: translate(3px, -1px); clip-path: inset(55% 0 5% 0); }
  75% { transform: translate(-1px, 0); clip-path: none; }
}
.fx-crumble { animation: crumble 0.5s ease; }
@keyframes crumble { 40% { transform: skewX(-6deg); } 70% { transform: skewX(3deg); } }
.fx-jolt { animation: jolt 0.35s ease; }
@keyframes jolt { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.fx-flip-win { animation: flip-win 0.6s var(--ease); }
@keyframes flip-win { 50% { transform: rotateX(90deg); } }

/* ================= responsive ================= */
@media (max-width: 900px) {
  #app { padding: 0 16px 48px; }
  .game { grid-template-columns: 1fr; grid-template-areas: "board" "main"; padding-top: 0; }
  .board {
    position: sticky; top: 0; z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    margin: 0 -16px 16px;
    padding: 10px 16px;
    background: var(--bg);
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .board-back { padding: 0; }
  .board-back span { display: none; }
  .board-cell { padding: 0; border-top: 0; }
  .board-cell .label { font-size: 9px; margin-bottom: 3px; }
  .board-cell:nth-child(2) .label, .board-hints { display: none; }
  .progress-num { margin-top: 0; font-size: 20px; }
  .squares-row { margin-top: 4px; }
  .sq { width: 8px; height: 8px; }
  .big, #hud-streak .big { margin-top: 0; font-size: 26px; gap: 6px; }
  .mult { font-size: 11px; padding: 2px 4px; }
  .board-finish { grid-column: 1 / -1; padding: 0; text-align: right; }
  .hints-inline { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
  .hints-inline .hint { border: 0; padding: 4px 0; gap: 6px; }
  .review { margin-top: 14px; }
  .review-body { font-size: 18px; }
  .hints-inline { padding-bottom: 12px; margin-top: 4px; }
  .option { grid-template-columns: 32px 96px minmax(0, 1fr); gap: 12px; }
  .option-cover { width: 96px; }
  .option-num { font-size: 24px; }
  .option-name { font-size: 16px; }
  .option::before { left: -16px; }
  .result { grid-template-columns: 1fr auto; gap: 14px; }
  .result-info { grid-column: 1 / -1; grid-row: 2; }
  .result-points { grid-column: 2; grid-row: 1; text-align: right; }
  #btn-next { grid-column: 1 / -1; justify-content: center; }
  .res-top { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .history-item { grid-template-columns: 24px 72px minmax(0, 1fr) 48px; gap: 10px; }
  .history-item img { width: 72px; }
}
@media (max-width: 560px) {
  .mode { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "num name" "num desc" "num record"; padding-left: 14px; }
  .mode-record { text-align: left; margin-top: 8px; }
  .mode-record b { display: inline; font-size: 18px; margin-left: 6px; }
  .btn-play { width: 100%; justify-content: center; font-size: 22px; }
  .option { grid-template-columns: 24px 72px minmax(0, 1fr); }
  .option-cover { width: 72px; }
  .history-item { grid-template-columns: 0 64px minmax(0, 1fr) 44px; }
  .history-item::before { display: none; }
  .history-item img { width: 64px; }
  kbd { display: none; }
}

/* ================= motion off ================= */
body.no-anim *, body.no-anim *::before, body.no-anim *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
/* the answer timer is information, not decoration: keep it running */
body.no-anim .timer-bar, .timer-bar { transition-duration: 20000ms !important; }
