/* sincalcu.com — one small stylesheet. The page is a game first: a big
   question, a clock, and the trick drawn as boxes. System fonts, no images. */
:root {
  --paper: #fff8ec; --ink: #1d1b16; --quiet: #6b655a; --line: #eadfca;
  --accent: #ff5a1f; --accent-ink: #fff; --good: #1f9d55; --bad: #d63b2f;
  --sun: #ffd23f; --card: #ffffff;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15140f; --ink: #f5efe2; --quiet: #a39d90; --line: #34312a; --card: #1f1d17; --good: #4cc982; --bad: #ff6b5e; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 680px; margin: 0 auto; padding: 14px 16px; }
.logo { font: 800 22px/1 var(--mono); text-decoration: none; letter-spacing: -0.5px; }
.logo b { color: var(--accent); }
.top nav { display: flex; gap: 14px; font-size: 14px; }
main { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }
.kicker { margin: 8px 0 0; font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--quiet); }
h1 { font-size: clamp(26px, 6.5vw, 38px); line-height: 1.12; margin: 6px 0 18px; letter-spacing: -0.5px; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
section { margin: 36px 0; }
.quiet, .hint { color: var(--quiet); font-size: 14px; }

/* ---- the game ---- */
.game { margin-top: 0; background: var(--ink); color: var(--paper); border-radius: 18px;
  padding: 20px 18px 18px; box-shadow: 0 10px 0 var(--accent); }
.game .hint { color: #b9b2a3; margin: 12px 0 0; text-align: center; }
.dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #4a463c; transition: transform .2s; }
.dots i.now { background: var(--paper); transform: scale(1.3); }
.dots i.ok { background: var(--good); }
.dots i.no { background: var(--bad); }
.ask { text-align: center; }
.ask .q { display: block; font: 800 clamp(30px, 9vw, 46px)/1.15 var(--mono); letter-spacing: -1px; }
.ask .row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.ask .eq { font: 800 34px var(--mono); }
.ask input { font: 800 30px var(--mono); width: 5.2em; padding: 8px 12px; text-align: center;
  border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); outline: 3px solid transparent; }
.ask input:focus { outline-color: var(--sun); }
.ask input::placeholder { color: #c9c0ad; }
button { font: 800 17px system-ui, sans-serif; padding: 12px 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button:active { transform: translateY(2px); }
.clock { height: 6px; background: #3a372f; border-radius: 3px; margin-top: 16px; overflow: hidden; }
.clock span { display: block; height: 100%; width: 100%; background: var(--sun); }
.reveal { text-align: center; }
.reveal:empty { display: none; }
.yes { font: 800 28px var(--mono); color: var(--good); margin: 14px 0 0; animation: pop .3s ease-out; }
.nope { font-size: 19px; margin: 16px 0 6px; animation: pop .3s ease-out; }
.nope b { font: 800 26px var(--mono); color: var(--sun); }
.trick-title { margin: 8px 0 4px; font-weight: 700; color: #b9b2a3; }
.reveal .go { margin-top: 14px; }
.score { font: 800 72px/1 var(--mono); margin: 8px 0 0; animation: pop .4s ease-out; }
.score small { font-size: 32px; color: #b9b2a3; }
.avg { font: 600 15px var(--mono); color: var(--sun); margin: 4px 0 8px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- the trick, drawn ---- */
.flow { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.flow li { position: relative; background: var(--card); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 14px; padding: 10px 16px; width: min(100%, 420px); text-align: center;
  opacity: 0; animation: rise .35s ease-out forwards; animation-delay: calc(var(--i) * .35s); }
.flow li + li { margin-top: 26px; }
.flow li + li::before { content: "↓"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font: 800 20px/26px var(--mono); color: var(--accent); }
.game .flow li { border-color: var(--paper); }
.game .flow li + li::before { color: var(--sun); }
.flow b { display: block; font: 800 22px/1.3 var(--mono); overflow-wrap: anywhere; }
.flow span { display: block; font-size: 14px; color: var(--quiet); }
.flow li:last-child { border-color: var(--accent); box-shadow: 0 4px 0 var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flow li, .yes, .nope, .score { animation: none; opacity: 1; } }

/* ---- below the game ---- */
.answer { font-size: 17px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 18px; }
.card.link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.card.link strong { font-size: 16px; }
.card.link span { color: var(--quiet); font-size: 13px; }
.card.link:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--accent); }
.try .calc { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font: 700 20px var(--mono); }
.try .calc input { font: 800 22px var(--mono); width: 4.6em; padding: 6px 8px; text-align: center;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); }
.try .calc input[size="4"] { width: 3.4em; }
.try .calc button { display: none; }
.big-answer { text-align: center; font: 800 34px var(--mono); color: var(--accent); margin: 14px 0 0; }
.ojo { background: var(--sun); color: #1d1b16; border-radius: 14px; padding: 14px 16px; font-size: 15px; margin: 28px 0; }
.more details { border-top: 1px solid var(--line); padding: 12px 0; }
.more details:last-child { border-bottom: 1px solid var(--line); }
.more summary { cursor: pointer; font-weight: 700; }
.more p, .more ol { font-size: 15px; }
.next { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 16px; }
.pill { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; }
.cta { display: block; text-align: center; font-weight: 800; text-decoration: none; padding: 16px;
  border-radius: 14px; background: var(--ink); color: var(--paper); }
.trains { font-size: 12px; color: var(--quiet); margin-top: 24px; }
footer { max-width: 680px; margin: 0 auto; padding: 20px 16px 36px; font-size: 13px; color: var(--quiet); }
.try { margin-top: 16px; }
.try-title { margin: 0 0 10px; font-weight: 700; text-align: center; }

/* ---- the trick, played (viz.ts + the player in client.ts) ----
   Every drawn element carries data-s (appears at frame s) or data-x (leaves
   at frame x). Without JavaScript nothing is hidden: the finished picture and
   every caption as a list. With it, `.js` hides what the frame has not reached. */
.viz { --v-ink: var(--ink); --v-bg: var(--card); --v-cell: var(--paper); --v-mute: var(--quiet);
  margin: 14px 0 0; background: var(--v-bg); color: var(--v-ink); border: 2px solid var(--ink);
  border-radius: 16px; padding: 16px 14px 12px; box-shadow: 0 5px 0 var(--ink); text-align: center; }
.game .viz { --v-ink: #f5efe2; --v-bg: #2a2720; --v-cell: #3a362d; --v-mute: #b9b2a3;
  border-color: #4a463c; box-shadow: none; }
.viz.js [data-s]:not(.on), .viz.js [data-x]:not(.on) { opacity: 0; }
.viz:not(.js) [data-x] { display: none; }
.viz [data-s], .viz [data-x] { transition: opacity .35s ease, transform .45s cubic-bezier(.2,.9,.3,1.3); }
.stage { position: relative; min-height: 120px; }
.bar-label { font: 800 26px/1.1 var(--mono); margin-bottom: 8px; }
.bar-label small { font-size: 15px; color: var(--v-mute); font-weight: 600; }
.viz-answer { font: 800 44px/1 var(--mono); color: var(--accent); margin: 14px 0 0; }
.viz.js .viz-answer:not(.on) { transform: scale(.5); }

/* percent: 5 × 2 tiles, painted from the bottom like a glass filling */
.bar { position: relative; display: grid; gap: 6px; }
.bar.g10 { grid-template-columns: repeat(5, 1fr); }
.bar.g4 { grid-template-columns: repeat(4, 1fr); gap: 0; }
.bar.g2 { grid-template-columns: repeat(2, 1fr); gap: 0; }
.cell { position: relative; height: 62px; background: var(--v-cell); border: 2px solid var(--v-ink);
  border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* halves and quarters: one outlined bar; only the cut lines divide it */
.bar.g4, .bar.g2 { border: 2px solid var(--v-ink); border-radius: 10px; overflow: hidden; background: var(--v-cell); }
.g4 .cell, .g2 .cell { border: 0; border-radius: 0; height: 74px; overflow: visible; background: transparent; }
.viz.js .g10 .cell:not(.on) { transform: scale(.85); }
.cell b { position: relative; z-index: 2; font: 800 15px var(--mono); overflow-wrap: anywhere; padding: 0 2px; }
.cell .f { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.cell .full { top: 0; background: var(--accent); }
.cell .five { background: var(--sun); }
.cell .ones { background: var(--good); }
.cell.gone b { position: relative; z-index: 4; color: #fff; text-shadow: 0 1px 2px #0008; }
.cell .minus { background: repeating-linear-gradient(45deg, var(--bad) 0 4px, transparent 4px 7px); z-index: 3; }
.cell .ticks { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to top, transparent 0 calc(10% - 1px), color-mix(in srgb, var(--v-ink) 35%, transparent) calc(10% - 1px) 10%); }
.viz.js .cell .f:not(.on) { transform: scaleY(0); transform-origin: bottom; }
.cell:has(.full.on) b, .viz:not(.js) .cell:has(.full) b { color: #fff; }
.cell .div { position: absolute; left: -2px; top: -4px; bottom: -4px; width: 0; border-left: 3px dashed var(--v-ink); z-index: 4; }
.whole { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: var(--v-cell); border: 2px solid var(--v-ink); border-radius: 10px; font: 800 30px var(--mono); }
.viz.js .whole:not(.on) { transform: scale(1.06); pointer-events: none; }

/* division: the bar cut, and every piece cut again */
.split { display: flex; flex-direction: column; gap: 10px; }
.row-bar { display: flex; gap: 4px; }
.row-bar .pc { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--v-cell); border: 2px solid var(--v-ink); border-radius: 8px; font: 800 16px var(--mono); }
.row-bar.dense { gap: 2px; }
.row-bar.dense .pc { border-width: 1px; border-radius: 4px; font-size: 12px; }
.viz.js .row-bar:not(.on) { transform: translateY(-14px); }
.row-bar .pc.pick { transition: background .3s; }
.viz-answer.on ~ * .pick, .split:has(~ .viz-answer.on) .pick, .viz:not(.js) .pick { background: var(--accent); color: #fff; }
.chunks { display: flex; gap: 4px; min-height: 68px; border: 2px dashed var(--v-mute); border-radius: 12px; padding: 4px; }
.seg { min-width: 3.2em; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; color: #fff; padding: 6px 2px; }
.seg b { font: 800 18px var(--mono); }
.seg small { font: 700 12px var(--mono); opacity: .9; }
.seg.c0 { background: var(--accent); } .seg.c1 { background: var(--good); } .seg.c2 { background: #3b6fd8; }
.seg.rest { background: var(--v-cell); color: var(--v-ink); border: 2px solid var(--v-mute); }
.viz.js .seg:not(.on) { transform: scaleX(.3); }

/* regla de tres: two rows; whatever happens on top happens underneath */
.ratio { display: inline-flex; flex-direction: column; gap: 10px; max-width: 100%; }
.ratio .r { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ratio .num { min-width: 2.6em; padding: 10px 8px; border: 2px solid var(--v-ink); border-radius: 10px;
  background: var(--v-cell); font: 800 22px var(--mono); }
.ratio .top .num { background: transparent; }
.ratio .target { border-style: dashed; }
.ratio .answer { position: relative; border-color: var(--accent); }
.ratio .answer i { font-style: normal; }
.ratio .answer .qm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--v-mute); }
.ratio .arrow { font: 800 15px var(--mono); color: var(--accent); white-space: nowrap; }
.ratio .arrow::after { content: " →"; }
.game .ratio .arrow { color: var(--sun); }
.viz.js .ratio .arrow:not(.on) { transform: translateX(-10px); }
@media (max-width: 380px) { .ratio .num { font-size: 18px; min-width: 2.2em; padding: 8px 5px; } .ratio .arrow { font-size: 13px; } }

/* captions: one at a time, arithmetic big */
.caps { list-style: none; padding: 0; margin: 14px 0 0; min-height: 64px; }
.caps li { padding: 4px 0; }
.caps li b { display: block; font: 800 22px/1.25 var(--mono); overflow-wrap: anywhere; }
.caps li span { display: block; font-size: 15px; color: var(--v-mute); }
.viz.js .caps li:not(.now) { display: none; }
.viz.js .caps li.now { animation: rise .3s ease-out; }
.caps li.end b { color: var(--accent); }
.ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ctl button { padding: 10px 16px; font-size: 15px; }
.ctl .ghost { background: transparent; color: var(--v-ink); border: 2px solid var(--v-mute); }
.ctl .ghost:disabled { opacity: .3; }
.pips { display: flex; gap: 5px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--v-mute); opacity: .35; }
.pips i.done { background: var(--accent); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .viz [data-s], .viz [data-x] { transition: none; } .viz.js .caps li.now { animation: none; } }
.ctl[hidden] { display: none; }

/* number line: hops over the axis; a step back hops under it */
.line { position: relative; height: 150px; margin: 4px 6px 0; }
.line .axis { position: absolute; left: 0; right: 0; top: 92px; border-top: 3px solid var(--v-ink); }
.line .pt { position: absolute; top: 84px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.line .pt::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--v-ink); border: 3px solid var(--v-bg); }
.line .pt b { font: 800 15px var(--mono); margin-top: 26px; white-space: nowrap; }
.line .pt.start::before { background: var(--v-mute); }
.line .pt.last::before { background: var(--accent); }
.line .pt.last b { color: var(--accent); font-size: 18px; }
.line .hop { position: absolute; top: 30px; height: 62px; border: 3px solid var(--accent); border-bottom: 0;
  border-radius: 999px 999px 0 0; text-align: center; transform-origin: left bottom; }
.line .hop small { position: relative; top: -24px; font: 800 15px var(--mono); color: var(--accent); background: var(--v-bg); padding: 0 4px; white-space: nowrap; }
.line .hop.h1 { border-color: var(--good); } .line .hop.h1 small { color: var(--good); }
.line .hop.h2 { border-color: #3b6fd8; } .line .hop.h2 small { color: #3b6fd8; }
.line .hop.back { top: 95px; height: 40px; border: 3px dashed var(--bad); border-top: 0; border-radius: 0 0 999px 999px; transform-origin: right top; }
.line .hop.back small { top: 22px; color: var(--bad); }
.line .pt:has(+ .hop.back) b, .line .hop.back + .pt b { margin-top: 26px; }
.viz.js .line .hop:not(.on) { transform: scaleX(0); }
.line .hop.back ~ .pt.last b { margin-top: -54px; }

/* judgment: a thousand dots, 40 to a row; a mark (<u>) is laid over a dot at its frame */
.dots { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 2px; width: 100%; max-width: 420px; margin: 0 auto; }
.dots i { position: relative; display: block; width: 100%; height: 0; padding-bottom: 100%; border-radius: 50%; background: color-mix(in srgb, var(--v-mute) 38%, transparent); }
.dots u { position: absolute; inset: 0; border-radius: 50%; text-decoration: none; }
.dots .some { background: var(--v-ink); }
.dots .real { background: var(--accent); }
.dots .fake { background: #3b6fd8; }
.viz.js .dots u:not(.on) { transform: scale(.2); }
.tally { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: max-content; max-width: 100%; margin: 12px auto 0; font: 700 14px var(--mono); text-align: left; }
.viz.js .tally span:not(.on) { display: none; }
.tally span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.tally .some { color: var(--v-ink); } .tally .real, .share .real { color: var(--accent); } .tally .fake { color: #3b6fd8; }
.game .tally .fake { color: #8fb0f5; } .game .dots .fake, .game .share .fake { background: #8fb0f5; }
.share { max-width: 420px; margin: 14px auto 0; }
.share small { display: block; margin-bottom: 4px; color: var(--v-mute); font-size: 13px; }
.share div { display: flex; height: 30px; border-radius: 8px; overflow: hidden; }
.share span { display: flex; align-items: center; justify-content: center; min-width: 30px; font: 800 14px var(--mono); color: #fff; }
.share .real { background: var(--accent); color: #fff; } .share .fake { background: #3b6fd8; } .game .share .fake { color: #1d1b16; }
/* the words lead on this picture: what a colour means has to arrive before the eye hunts for it */
.viz.k-dots { display: flex; flex-direction: column; }
.viz.k-dots .caps { order: -1; margin: 0 0 12px; }
.viz.k-dots .caps li span { color: var(--v-ink); font-size: 16px; }

/* multiplication: the rectangle cut along one side */
.area { max-width: 360px; margin: 0 auto; }
.area .sides { position: relative; display: flex; height: 26px; margin-left: 34px; font: 800 17px var(--mono); }
.area .sides span { text-align: center; }
.area .sides em { position: absolute; inset: 0; font-style: normal; text-align: center; }
.area .rect-row { display: flex; align-items: stretch; gap: 8px; }
.area .side-b { width: 26px; display: flex; align-items: center; justify-content: center; font: 800 17px var(--mono); }
.area .rect { position: relative; flex: 1; display: flex; height: 120px; border: 2px solid var(--v-ink); border-radius: 10px; overflow: hidden; background: var(--v-cell); }
.area .part { position: relative; display: flex; align-items: center; justify-content: center; }
.area .part .f { position: absolute; inset: 0; }
.area .p0 .f { background: var(--accent); } .area .p1 .f { background: var(--good); }
.area .part b { position: relative; font: 800 20px var(--mono); color: #fff; }
.area .div { position: absolute; top: 0; bottom: 0; border-left: 3px dashed var(--v-ink); }
.viz.js .area .part .f:not(.on) { transform: scaleY(0); transform-origin: bottom; }

/* the game: options to pick, items to order, a block to study */
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.opts button { background: var(--paper); color: var(--ink); text-align: left; font: 700 16px system-ui, sans-serif; padding: 12px 14px; }
.opts button.correct { background: var(--good); color: #fff; }
.opts button.wrong { background: var(--bad); color: #fff; }
.opts.order button { display: flex; align-items: center; gap: 10px; }
.opts.order button i { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid #c9c0ad; font: 800 14px/22px var(--mono); font-style: normal; text-align: center; }
.opts.order button.picked { opacity: .55; }
.opts.order button.picked i { background: var(--accent); border-color: var(--accent); color: #fff; }
.opts .undo { align-self: center; background: transparent; color: var(--paper); border: 2px solid #4a463c; text-align: center; }
.ask .q.studying { font-size: clamp(18px, 4.8vw, 24px); line-height: 1.4; letter-spacing: 0; }
.ask .q.tap { cursor: pointer; color: var(--sun); }
.nope .txt { font: 700 18px system-ui, sans-serif; color: var(--sun); }
.why { color: #d9d2c3; font-size: 15px; }
.order-answer { text-align: left; display: inline-block; margin: 6px 0; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ghost-light { background: transparent !important; border: 2px solid var(--paper) !important; color: var(--paper) !important; }

/* "Ahora tú" */
.you { margin-top: 14px; background: var(--card); border: 2px dashed var(--accent); border-radius: 16px; padding: 14px; text-align: center; }
.you-title { margin: 0 0 10px; font-weight: 700; }
.you-title b { font: 800 22px var(--mono); color: var(--accent); }
.bar.paint .cell { padding: 0; cursor: pointer; background: var(--paper); color: var(--ink); font: inherit; border-radius: 10px; }
.bar.paint .cell.p10 { background: var(--accent); color: #fff; }
.bar.paint .cell { border: 2px solid var(--line, var(--quiet)); }
.bar.paint .cell.p10 { border-color: var(--accent); }
/* half a piece is the same colour as a whole one: it is the same 10% cut in two, not a different thing */
.bar.paint .cell.p5 { background: linear-gradient(to top, var(--accent) 50%, var(--paper) 50%); border-color: var(--accent); }
.bar.paint .cell.p5 b { color: var(--ink); }
.you-read { font: 800 20px var(--mono); margin: 12px 0 4px; }
.you-read.ok { color: var(--good); animation: pop .3s ease-out; }
.you-hint { font-size: 13px; color: var(--quiet); margin: 0 0 6px; }

/* skill pages and the home index */
.demo-q { margin: 14px 0 0; text-align: center; color: var(--quiet); }
.demo-q b { color: var(--ink); font-family: var(--mono); }
.all h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--quiet); margin: 22px 0 8px; font-family: var(--mono); }
.tricks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tricks a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; text-decoration: none; background: var(--card); }
.tricks a:hover { box-shadow: 0 4px 0 var(--accent); }
.tricks strong { font-size: 15px; }
.tricks span { font: 13px var(--mono); color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- readability pass (2026-11-09 review of all 38 pages on a phone) ---- */
/* A word problem in 40px monospace pushed the answer box off the screen on
   every judgment page. Sentences are set as sentences. */
.ask .q.long { font: 700 clamp(19px, 5.2vw, 24px)/1.4 system-ui, -apple-system, sans-serif; letter-spacing: 0; text-align: left; }
/* A step that is words, not arithmetic, reads as text; a step with no
   arithmetic leads with its words instead of a grey line under an empty box. */
.flow li.wordy b, .flow b.say { font: 700 17px/1.4 system-ui, -apple-system, sans-serif; letter-spacing: 0; }
.flow b.say { color: var(--ink); }
.game .flow li b.say { color: var(--ink); }
/* Hops all arc above the line now (height set inline from the width); a hop
   back is red, dashed, and points left. */
.line .hop { border-bottom: 0 !important; }
.line .hop::after { content: ""; position: absolute; right: -7px; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--accent); }
.line .hop.h1::after { border-top-color: var(--good); }
.line .hop.h2::after { border-top-color: #3b6fd8; }
.line .hop.back { border: 3px dashed var(--bad); border-bottom: 0; border-radius: 999px 999px 0 0; transform-origin: right bottom; }
.line .hop.back::after { right: auto; left: -7px; border-top-color: var(--bad); }
.line .hop.back small { top: -24px; color: var(--bad); }
.line .hop.back ~ .pt.last b { margin-top: 26px; }
.demo-q b { font-family: system-ui, -apple-system, sans-serif; }
.ask .q.tap { text-align: center; }
