/* Mini-game days (loaded after polish.css). Pipe Run is a riveted bulkhead board with brass pipes
   and glowing plasma, on a dive through Sunken Deco. Tokens: plate #2a5662, edge #0f2a31,
   brass #d3a03f, plasma #58f2c9. */
.academy-root[data-scene="deep"] { background:#0c3263 }

/* A game day keeps the exam sheet but trims it in deep-sea teal. */
body[data-game="pipes"] .sheet { background:#fbfaf0;border-color:#183a43;box-shadow:0 6px 0 #0b1e2466,0 24px 44px -26px #040a1ccc }
body[data-game="pipes"] .quiz-title,body[data-game="pipes"] .today-intro h2 { color:#10333b }
body[data-game="pipes"] .badge { color:#0f6a5a;border-color:#0f6a5a }
.game-chip { display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border:2px solid #0f2a31;border-radius:99px;background:#17343c;color:#9ff5dd;font:600 12px/1 var(--pixel);letter-spacing:.06em }
.game-chip::before { content:"";width:8px;height:8px;border-radius:50%;background:#58f2c9;box-shadow:0 0 6px #58f2c9 }

/* ---------- board ---------- */
.pipes-wrap { width:min(100%,calc((var(--cols) + 1) * 86px + 24px));margin:14px auto 6px }
.pipes-board { display:grid;grid-template-columns:minmax(0,.45fr) repeat(var(--cols),minmax(0,1fr)) minmax(0,.45fr);gap:3px;padding:5px 0;background:#16343c;border:3px solid #0b1e24;border-radius:12px;box-shadow:inset 0 0 0 2px #2d5a66,0 4px 0 #0b1e24;touch-action:manipulation }
.pipes-port { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;grid-column:1;grid-row:calc(var(--row) + 1);min-width:0 }
.pipes-port.drain { grid-column:calc(var(--cols) + 2) }
.pipes-port .port-art { display:block;width:100% }
.pipes-port svg { display:block;width:100%;height:auto }
.pipes-port b { font:600 9px/1 var(--pixel);letter-spacing:.14em;text-transform:uppercase;color:#7fe3c8 }

.pipe-cell { position:relative;display:block;grid-column:calc(var(--c) + 2);grid-row:calc(var(--r) + 1);width:100%;min-width:0;min-height:0;aspect-ratio:1;padding:0;border:2px solid #0f2a31;border-radius:7px;overflow:hidden;cursor:pointer;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:inherit;
  background:radial-gradient(circle at 11% 11%,#a9d6d0 0 1.5px,transparent 2px),radial-gradient(circle at 89% 11%,#a9d6d0 0 1.5px,transparent 2px),radial-gradient(circle at 11% 89%,#a9d6d0 0 1.5px,transparent 2px),radial-gradient(circle at 89% 89%,#a9d6d0 0 1.5px,transparent 2px),linear-gradient(180deg,#31697a,#25525d);
  box-shadow:inset 0 2px 0 #4a8591,0 2px 0 #0b1e24;transition:border-color 100ms ease,box-shadow 100ms ease,transform 100ms ease }
.pipe-cell svg { position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none }
.pipe-cell .art { transform-origin:50% 50%;transition:transform 170ms cubic-bezier(.3,1.5,.5,1) }
.pipe-cell .fluid { overflow:visible }
.pipe-cell.is-wet .fluid { filter:drop-shadow(0 0 2.5px #58f2c9) }
.pipe-cell.p-rock { cursor:default;background:linear-gradient(180deg,#1f4650,#1a3b44);box-shadow:inset 0 2px 0 #2d5a66,0 2px 0 #0b1e24 }
.pipe-cell.is-bolt,.pipe-cell.is-wet { cursor:not-allowed }
.pipe-cell.is-wet { box-shadow:inset 0 0 0 2px #58f2c966,0 2px 0 #0b1e24 }
.pipes-board:not(.is-over) .pipe-cell:not(.p-rock):not(.is-bolt):not(.is-wet):hover { border-color:#58f2c9;transform:translateY(-2px) }
.pipes-board:not(.is-over) .pipe-cell:not(.p-rock):not(.is-bolt):not(.is-wet):active { transform:translateY(0) }
.pipe-cell:focus-visible { outline:3px solid var(--cobalt);outline-offset:2px;box-shadow:0 0 0 2px #fff6dc,0 2px 0 #0b1e24;z-index:2 }
.pipe-cell.is-leak { border-color:#ff6a55;box-shadow:inset 0 0 0 2px #ff6a5599,0 2px 0 #0b1e24 }
.pipes-board.is-over .pipe-cell { cursor:default }
.pipes-board.is-solved { box-shadow:inset 0 0 0 2px #58f2c9,0 4px 0 #0b1e24,0 0 18px #58f2c966 }
.pipes-board.is-failed { box-shadow:inset 0 0 0 2px #ff6a55,0 4px 0 #0b1e24 }
.pipe-cell.is-rush .fluid path { transition:stroke-dasharray 170ms linear var(--rush,0ms) }

/* A leak: a hot glow on the open side and a few droplets. */
.spurt { display:none;position:absolute;width:46%;height:46%;pointer-events:none;border-radius:50%;background:radial-gradient(circle,#ffb39e 0 12%,#ff6a55aa 35%,transparent 70%);animation:spurt 520ms ease-out infinite }
.is-leak .spurt { display:block }
.is-leak[data-leak="n"] .spurt { top:-12%;left:27% }
.is-leak[data-leak="s"] .spurt { bottom:-12%;left:27% }
.is-leak[data-leak="e"] .spurt { right:-12%;top:27% }
.is-leak[data-leak="w"] .spurt { left:-12%;top:27% }
@keyframes spurt { from { transform:scale(.55);opacity:1 } to { transform:scale(1.35);opacity:0 } }

/* ---------- flow gauge ---------- */
.flowbar { display:flex;align-items:center;gap:10px;width:min(100%,calc((var(--cols,5) + 1) * 86px + 24px));margin:12px auto 0;font:700 12px/1 var(--mono);color:#10333b }
.flowbar .track { flex:1;height:12px;border:2px solid #0b1e24;border-radius:6px;background:#16343c;overflow:hidden }
.flowbar .level { display:block;height:100%;width:var(--p,0%);background:linear-gradient(90deg,#2fbf9a,#58f2c9) }
.flowbar output { min-width:9.5em;text-align:right;white-space:nowrap }
.flowbar.flowing .track { box-shadow:0 0 0 2px #58f2c966 }
.flowbar.ended output { color:var(--muted) }
.pipes-hint { margin:10px 0 0 }

/* ---------- report ---------- */
.pipe-frame { width:52px!important;aspect-ratio:auto!important;filter:none!important }
.pipe-frame .pipe-thumb { display:block;width:100%;height:auto }
.review-rule .pipe-frame { width:72px!important }
.recap .pipe-frame { width:96px!important }

.reduce-motion .pipe-cell,.reduce-motion .pipe-cell .art,.reduce-motion .pipe-cell.is-rush .fluid path { transition:none }
.reduce-motion .spurt { animation:none;opacity:.8 }
.reduce-motion .pipes-board:not(.is-over) .pipe-cell:hover { transform:none }
@media(max-width:420px){
  .sheet .pipes-wrap { width:calc(100% + 30px);margin-inline:-15px }
  .pipes-board { border-radius:10px;gap:2px }
  .flowbar output { min-width:8.5em;font-size:11px }
}
@media(forced-colors:active){ .pipe-cell { forced-color-adjust:auto;border-color:CanvasText } .pipe-cell:focus-visible { outline-color:Highlight } }

/* ---------- Number Run (Signal) ---------- */
.academy-root[data-scene="signal"] { background:#0d0a2a }
body[data-game="numbers"] .sheet { background:#fbfaf3;border-color:#231c4a;box-shadow:0 6px 0 #0d0a2a66,0 24px 44px -26px #05030fcc }
body[data-game="numbers"] .quiz-title,body[data-game="numbers"] .today-intro h2 { color:#231c4a }
body[data-game="numbers"] .badge { color:#3d2fa0;border-color:#3d2fa0 }
body[data-game="numbers"] .game-chip { background:#231c4a;border-color:#0d0a2a;color:#a9f5e2 }

.num-wrap { width:min(100%,520px);margin:12px auto 4px }
.num-terms { display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none }
.num-chip { position:relative;display:grid;place-items:center;min-width:54px;padding:15px 10px 8px;border:2px solid #231c4a;border-radius:8px;background:#fff;box-shadow:0 3px 0 #231c4a33 }
.num-chip small { position:absolute;top:3px;left:6px;font:9px/1 var(--mono);color:#8a82aa }
.num-chip b { font:700 24px/1 var(--pixel);color:#231c4a;font-variant-numeric:tabular-nums }
.num-slot { border-style:dashed;border-color:#3d2fa0;background:repeating-linear-gradient(45deg,#f4f1ff 0 5px,#ebe6ff 5px 10px);min-width:84px }
.num-slot b { color:#3d2fa0 }.num-slot b.empty { color:#9a90cc }
.num-slot small,.num-answer small { color:#3d2fa0 }
.num-answer.is-right { border-color:#2f8a55;background:#e4f5ea }.num-answer.is-wrong { border-color:#b4402c;background:#fbe9e4 }
.num-hint { margin:10px 0 0;text-align:center;color:var(--muted);font-size:12.5px }
.num-hint:empty { display:none }

.num-pad { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(100%,300px);margin:12px auto 0 }
.num-key { min-height:52px;padding:0;border:2px solid #0d0a2a;border-radius:8px;background:#fff6e0;color:#231c4a;font:600 22px var(--pixel);box-shadow:0 4px 0 #b9a985;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform 80ms ease,box-shadow 80ms ease }
.num-key:hover { transform:translateY(-1px) }
.num-key:active { transform:translateY(3px);box-shadow:0 1px 0 #b9a985 }
.num-key.k-enter { background:#231c4a;color:#a9f5e2;box-shadow:0 4px 0 #0d0a2a }.num-key.k-enter:active { box-shadow:0 1px 0 #0d0a2a }
.num-key.k-back { background:#ece6d4 }
.num-key:focus-visible { outline:3px solid var(--cobalt);outline-offset:2px }

.num-full { display:flex;flex-wrap:wrap;justify-content:center;gap:5px;max-width:100% }
.num-full b { padding:4px 7px;border:1.5px solid #231c4a;border-radius:6px;background:#fff;font:700 15px var(--pixel);color:#231c4a }
.num-full b.hit { border-color:#2f8a55;background:#e4f5ea }
.num-thumb { display:block;font:700 12px var(--mono);color:#231c4a;white-space:nowrap }
.num-thumb b { color:#2f8a55 }
.mark-cell .num-thumb { max-width:92px;overflow:hidden;text-overflow:ellipsis }
.review-rule .num-thumb { align-self:center;min-width:92px }
.reduce-motion .num-key { transition:none }
@media(max-width:420px){ .num-chip { min-width:44px;padding:14px 7px 7px }.num-chip b { font-size:20px }.num-slot { min-width:70px }.num-terms { gap:6px } }
@media(forced-colors:active){ .num-chip,.num-key { forced-color-adjust:auto;border-color:CanvasText } }

/* ---------- Try a mini-game ---------- */
.minigame-card { padding:15px 18px 17px;margin-bottom:18px }
.minigame-card h3 { margin:0 0 4px;font:600 22px var(--pixel);color:#1b2140 }
.minigame-card p { margin:0 0 12px;color:var(--muted);font-size:12.5px }
.mg-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px }
.mg-item { display:grid;gap:2px;justify-items:start;padding:10px 12px;border:2px solid var(--plaque-edge);border-radius:8px;background:#fff6e0;color:var(--plaque);box-shadow:0 4px 0 #b9a985;cursor:pointer;text-align:left;transition:transform 90ms ease,box-shadow 90ms ease }
.mg-item b { font:600 16px var(--pixel) }.mg-item small { font-size:11px;color:var(--muted) }.mg-emoji { font-size:18px }
.mg-item:hover { transform:translateY(-1px) }.mg-item:active { transform:translateY(3px);box-shadow:0 1px 0 #b9a985 }
.mg-item:focus-visible { outline:3px solid var(--cobalt);outline-offset:3px }

/* ---------- Line Shaper (Arcade) ---------- */
.academy-root[data-scene="arcade"] { background:#120a38 }
body[data-game="shaper"] .sheet { background:#fbf9f2;border-color:#2a1a60;box-shadow:0 6px 0 #0a062066,0 24px 44px -26px #06041acc }
body[data-game="shaper"] .quiz-title,body[data-game="shaper"] .today-intro h2 { color:#2a1a60 }
body[data-game="shaper"] .badge { color:#a02a78;border-color:#a02a78 }
body[data-game="shaper"] .game-chip { background:#2a1a60;border-color:#0a0620;color:#ffd0f0 }
body[data-game="shaper"] .game-chip::before { background:#ff5ac8;box-shadow:0 0 6px #ff5ac8 }
body[data-game="shaper"] .flowbar .level { background:linear-gradient(90deg,#4df3ff,#b06cff 60%,#ff5ac8) }
.flowbar.urgent output { color:#b4402c;font-weight:800 }.flowbar.urgent .level { background:linear-gradient(90deg,#ff5a6e,#ff9a4d)!important }
.game-sheet .flowbar { margin:10px auto 0 }

.sh-wrap { --u:26px;width:min(100%,calc(var(--cols) * 58px + 64px));margin:12px auto 4px;user-select:none;-webkit-user-select:none }
.sh-stage { position:relative;padding:0 24px }
.sh-board { position:relative;aspect-ratio:var(--cols) / var(--rows);border:3px solid #0a0620;border-radius:12px;
  background:radial-gradient(circle at 50% 0%,#2a1a6888,transparent 70%),linear-gradient(180deg,#191045,#120a36);box-shadow:inset 0 0 0 2px #3a2a80,0 4px 0 #0a0620,0 16px 30px -18px #06041a }
.sh-grid { position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);border-radius:9px;overflow:hidden }
.sh-cell { position:relative;box-shadow:inset 0 0 0 .5px #8a7aff1c }
.sh-cell::before { content:"";position:absolute;left:-1.5px;top:-1.5px;width:3px;height:3px;border-radius:50%;background:#8a7aff40 }
.sh-cell.is-wall { margin:2px;border-radius:5px;background:linear-gradient(180deg,#6a3aa8,#4a2680);box-shadow:inset 0 2px 0 #a07ae0,inset 0 -3px 0 #2a1450,0 0 0 1px #0a0620 }
.sh-cell.is-wall::before { left:20%;right:20%;top:46%;width:auto;height:2px;border-radius:1px;background:#2a1450 }
.sh-cell.is-check::after { content:"";position:absolute;left:50%;top:50%;width:34%;height:34%;transform:translate(-50%,-50%) rotate(45deg);border:2px solid #ffe14d;border-radius:2px;background:#ffe14d22;box-shadow:0 0 8px #ffe14d66;z-index:3 }
.sh-cell.is-hit::after { background:#ffe14d;box-shadow:0 0 12px #ffe14d,0 0 0 2px #fff6c0 }
.sh-cell.gh-ok { background:#5dff8a33;box-shadow:inset 0 0 0 2px #5dff8a }
.sh-cell.gh-bad { background:#ff5a6e33;box-shadow:inset 0 0 0 2px #ff5a6e }
.sh-cell.is-cursor { box-shadow:inset 0 0 0 3px #fff6dc }
.sh-layer { position:absolute;inset:0 }
.sh-line { position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:4 }
.sh-line path { fill:none;stroke-linecap:round;stroke-linejoin:round }
.sh-glow { stroke:#4df3ff;stroke-width:.34;opacity:.28 }
.sh-core { stroke:#c9fbff;stroke-width:.12 }
.sh-pulse { stroke:#ffffff;stroke-width:.14;stroke-dasharray:.35 2.4;animation:sh-run 1.6s linear infinite }
.sh-air { stroke:#4df3ff;stroke-width:.1;stroke-dasharray:.16 .14 }
.sh-preview { stroke:#ffffffb0;stroke-width:.09;stroke-dasharray:.18 .14 }
.sh-crash path { stroke:#ff5a6e;stroke-width:.13 }
@keyframes sh-run { to { stroke-dashoffset:-2.75 } }
.sh-wrap.is-solved .sh-core { stroke:#fff2a8 }.sh-wrap.is-solved .sh-glow { stroke:#ffe14d;opacity:.45 }
.sh-wrap.is-solved .sh-board { box-shadow:inset 0 0 0 2px #ffe14d,0 4px 0 #0a0620,0 0 24px #ffe14d66 }
.sh-wrap.is-failed .sh-board { box-shadow:inset 0 0 0 2px #ff5a6e,0 4px 0 #0a0620 }

.sh-port { position:absolute;z-index:5;margin-inline:-2px;display:grid;place-items:center;width:24px;height:24px;transform:translateY(-50%);border:2px solid #0a0620;border-radius:6px;background:#2a1a60;box-shadow:0 2px 0 #0a0620 }
.sh-port.in { left:0;background:#4df3ff }.sh-port.in::after { content:"";position:absolute;right:-7px;top:50%;width:7px;height:4px;transform:translateY(-50%);background:#4df3ff }
.sh-port.out { right:0 }.sh-port.out.is-lit { background:#ffe14d;box-shadow:0 2px 0 #0a0620,0 0 14px #ffe14d }
.sh-port b { font:700 7px/1 var(--pixel);letter-spacing:.06em;color:#0a0620 }.sh-port.out b { color:#ffd0f0 }.sh-port.out.is-lit b { color:#0a0620 }
.sh-status { min-height:1.3em;margin:9px 0 0;text-align:center;font:600 12px/1.35 var(--sans);color:#3a2a70 }
.sh-wrap.is-solved .sh-status { color:#26734a }

/* Pieces: bevelled blocks with the line's groove cut through them. */
.sh-piece { --bc:#4df3ff;--bd:#1a8aa8;position:relative;display:block;padding:0;border:0;background:none;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent;color:inherit }
.sh-piece.f-step { --bc:#4df3ff;--bd:#1680a0 }.sh-piece.f-square { --bc:#ff7ac8;--bd:#a83080 }.sh-piece.f-wave { --bc:#5dff8a;--bd:#1f8a48 }.sh-piece.f-boost { --bc:#ffb347;--bd:#b0661a }
.sh-blocks { position:absolute;inset:0;display:grid }
.sh-blocks b { margin:1px;border-radius:5px;background:linear-gradient(180deg,color-mix(in srgb,var(--bc) 82%,#fff),var(--bc));box-shadow:inset 0 2px 0 #ffffffb0,inset 0 -3px 0 var(--bd),0 0 0 1.5px #0a0620 }
.sh-groove { position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none }
.sh-groove path { fill:none;stroke:#0a0620;stroke-width:.2;stroke-linecap:round;stroke-linejoin:round;opacity:.72 }
.sh-groove path.nub { fill:#0a0620;stroke:#fff;stroke-width:.05;opacity:.9 }
.sh-jump { position:absolute;left:100%;top:50%;width:200%;height:2px;transform:translateY(-50%);background:repeating-linear-gradient(90deg,#ffb34799 0 5px,transparent 5px 9px);pointer-events:none }
.sh-piece.is-placed { position:absolute;z-index:2;filter:drop-shadow(0 3px 0 #0a062099) }
.sh-piece.is-placed:hover { filter:drop-shadow(0 5px 0 #0a062099) brightness(1.06) }
.sh-piece.is-placed:active { cursor:grabbing }
.sh-piece.in-dock { width:calc(var(--w) * var(--u));height:calc(var(--h) * var(--u));filter:drop-shadow(0 3px 0 #0a062066);transition:transform 120ms ease }
.sh-piece.in-dock:hover { transform:translateY(-2px) }
.sh-piece.is-lifted { opacity:.22 }
.sh-piece.is-carried { outline:3px dashed #ff5ac8;outline-offset:3px;border-radius:6px }
.sh-piece:focus-visible { outline:3px solid var(--cobalt);outline-offset:3px;border-radius:6px }
.sh-float { position:fixed;left:0;top:0;z-index:80;pointer-events:none;filter:drop-shadow(0 14px 14px #06041a99) drop-shadow(0 3px 0 #0a0620);transition:none;will-change:transform }
.sh-float.is-snapped { filter:drop-shadow(0 4px 0 #0a0620) drop-shadow(0 0 10px #5dff8a88);transition:transform 70ms ease-out }
.sh-float.is-bad .sh-blocks b { filter:saturate(.4) brightness(.8) }
.sh-key { position:absolute;top:-8px;left:-8px;z-index:2;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:6px;background:var(--plaque);color:var(--cream);font:700 11px/1 var(--pixel);box-shadow:0 2px 0 var(--plaque-edge) }
.sh-dock { display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:14px 18px;margin:12px auto 0;padding:14px 12px 10px;border:2px dashed #b9a0e0;border-radius:12px;background:#f3eefc }
.sh-slot { display:grid;justify-items:center;gap:6px }
.sh-slot small { font:600 10.5px/1.1 var(--sans);color:#4a3a80;text-align:center;max-width:100px }
.sh-empty { margin:0;color:var(--muted);font-size:12px }
.sh-frame { width:84px!important;aspect-ratio:auto!important;filter:none!important }.sh-frame .sh-thumb { display:block;width:100%;height:auto }
.review-rule .sh-frame { width:96px!important }.recap .sh-frame { width:150px!important }
.reduce-motion .sh-pulse { animation:none;stroke-dasharray:none;opacity:0 }
.reduce-motion .sh-float,.reduce-motion .sh-piece.in-dock { transition:none }
@media(max-width:420px){ .game-sheet { padding-inline:9px }.sh-wrap { --u:20px;width:calc(100% + 8px);margin-inline:-4px }.sh-stage { padding:0 13px }.sh-slot { padding-top:6px }.sh-port { width:18px;height:18px;border-radius:5px }.sh-port b { font-size:5.5px }.sh-dock { gap:12px 14px;padding:12px 8px 8px } }
@media(forced-colors:active){ .sh-cell,.sh-piece { forced-color-adjust:auto } }

/* ---------- Number Run: digits in a clear face ----------
   Pixel digits read badly at speed (5 and S, 8 and 3, 1 and 7), so every number the player must
   read or type uses a rounded system face with even-width figures. */
:root { --num:"SF Pro Rounded",ui-rounded,"Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif }
.num-chip b,.num-key,.num-full b,.num-thumb,.num-slot b { font-family:var(--num);font-weight:700;font-variant-numeric:tabular-nums lining-nums;letter-spacing:.01em }
.num-chip { min-width:60px;padding:17px 12px 9px }
.num-chip b { font-size:28px;line-height:1;color:#1a1438 }
.num-slot b { font-size:28px }
.num-key { font-size:26px;font-weight:650 }
.num-key.k-back,.num-key.k-enter { font-family:var(--sans) }
.num-full b { font-size:16px;padding:4px 8px }
.num-thumb { font-size:13px }
@media(max-width:420px){ .num-chip { min-width:48px;padding:15px 8px 8px }.num-chip b,.num-slot b { font-size:22px } }

/* ---------- Quality of life ---------- */
/* A short fade when one backdrop replaces another. */
.academy-root.scene-in .academy-pixels { animation:scene-in 480ms ease-out }
@keyframes scene-in { from { opacity:0 } to { opacity:1 } }
.reduce-motion .academy-root.scene-in .academy-pixels { animation:none }
/* The home card says when each game is next the daily paper. */
.mg-item em { margin-top:3px;font:600 10.5px/1.2 var(--sans);font-style:normal;color:#8a5a00 }
/* On touch screens keyboard hints are noise; during play on phones the masthead gives way to the board. */
@media (pointer:coarse) { .keyboard-hint { display:none } }
@media(max-width:580px){
  body[data-screen="exam"] .streak-chip { display:none }
  body[data-screen="exam"] .masthead { padding:6px 8px;gap:6px }
  .practice-banner { padding:7px 10px;font-size:11.5px }
}
/* Number Run: a key lights when typed on a keyboard; an empty answer slot shows a blinking cursor. */
.num-key.is-pressed { transform:translateY(3px);box-shadow:0 1px 0 #b9a985;background:#ffe9b0 }
.num-slot b.empty { animation:num-caret 1.1s steps(1) infinite }
@keyframes num-caret { 50% { opacity:.25 } }
.reduce-motion .num-slot b.empty { animation:none }
