/* ============================================================================
   夜市帮工 · NIGHT-MARKET RUSH (hands-on) — the stall, the rack, the tray
   ============================================================================
   Benchmark: Overcooked. Everything urgent in this room is an OBJECT — a paper
   docket that yellows and rattles, a customer who folds their arms, a wok whose
   flame climbs. No text ever tells the player to hurry and there is no number
   on screen that counts down.

   Shared kit does the heavy lifting: the dockets are .dk-docket, the served
   chop is .dk-stamp, the till is .dk-counter, the type scale and the materials
   are drill-kit.css. This file adds only what is THIS stall.

   COLOUR, and it is the whole discipline: ink #241335 and cream #f2e4c2 are
   materials and never change. The ONLY saturated hues in the chrome are the
   semantic three — gold = act now, teal = correct, vermillion = wrong/about to
   lapse. The wok's flame is drawn from gold into vermillion for exactly that
   reason: it is the patience ramp wearing a fire costume, not decoration.
   Food colour lives INSIDE a vessel, which is the painting, not the interface.
   That sentence was ASPIRATIONAL until round 9 and is now measured true: the
   stall's own wood was a fourth saturated hue for eight rounds and has been
   desaturated under the census floor (see the block above .minigame.rush2).
   Measured after the fix in prom/dev/rz-hue.mjs: TWO buckets in the resting
   chrome (paper/gold, and vermillion where the flame is lit) and THREE at a
   correct serve, in both themes — which is the sanctioned palette exactly.

   Every animation below reports state, and every one of them is switched off
   under prefers-reduced-motion with the STATE left standing — a hot docket is
   still ringed vermillion, a folded customer is still folded, a loaded tray is
   still loaded.
   ========================================================================= */

/* ROUND-9 COLOUR: THE STALL'S WOOD IS NOT A COLOUR ANY MORE.
   The judges' census (ui5-lib HUES: HSL s>=0.35, 0.16<l<0.93, 20-degree hue
   buckets, no area floor) found FOUR saturated buckets on a correct serve in
   both themes, and the fourth — the only one outside the sanctioned palette —
   was THIS wood at bucket 20: 137,426px across the rack gradient, the tray
   gradient and the slop bucket, measured in prom/dev/rz-hue.mjs. That is 12%
   of a 1280x900 viewport and the second-largest colour presence in the drill.
   The header below used to argue that food colour inside a vessel is the
   painting and therefore free; that argument is sound and unchanged, but it
   never covered the rack and the tray, which are not paintings behind the
   interface — they are drawn here, in CSS, which makes them chrome and makes
   their hue chrome. Hoops settled the identical question in its round 9 (see
   the head of drill-hoops2.css: a gym drawn in CSS is measured as chrome).
   Fix, and it is the one the house rule asks for — DESATURATE, DO NOT RE-HUE:
   all six wood values keep their hue (23-28deg, warm), keep their value order
   and their HSL lightness exactly, and drop chroma from s 0.40-0.44 to
   s 0.21-0.23 — under the 0.35 census floor and under the stricter 0.28
   pixel-judge floor, with margin in both. Contrast goes UP, not down: every
   word painted on this wood is cream, and the desaturated stops are all
   fractionally darker (rack head 5.23:1 -> 5.43:1, tray label 4.50:1 ->
   4.75:1, bin 9.26:1 -> 9.41:1). What is left is a dim oiled bench: the value
   gradient, the ink outline and the cream tags do the reading exactly as
   before, and the three colours that are ALLOWED to be saturated here — gold,
   teal, vermillion — now have the frame to themselves. */
.minigame.rush2 {
  --dk-accent: #b8860b;                 /* the stall's one accent: lamp brass */
  --rz-wood: #6d5846;                   /* the rack, oiled — h28 s0.22 */
  --rz-wood-dk: #44362b;                /* its shadow end   — h26 s0.23 */
  justify-content: flex-start;
  /* Tight, because the header now costs real flow height (see the un-float
     below) and the teaching line at the bottom must never fall off a 720px
     screen. Every pixel spent here is a pixel taken off the 他要的 line. */
  padding-top: 6px;
  gap: 7px;
}
/* The head plaque STOPS FLOATING in this drill, and that is a bug fix rather
   than a preference. prom.css absolutely-positions .minigame > .mg-head at
   top:18px while every other child sits in the flow underneath it, so the
   drill has to guess a padding-top big enough to clear a box whose height it
   does not control — and it guessed 44px, which was right in the dark theme
   and 16px short the moment the light theme gave the plaque a border and
   padding. The line that fell inside those 16px was 开声音, this drill's only
   "turn your sound on" instruction. In the flow the plaque cannot cover
   anything, at any width, in either theme, however tall it grows. */
.minigame.rush2 > .mg-head { position: static; transform: none; }
/* The plaque's shared 5px padding is generous for a two-line card; this drill
   uses it as a one-line signboard and needs the height at the other end. */
:root[data-theme="light"] .minigame.rush2 > .mg-head { padding: 2px 13px 3px; }
/* ---- THE PLAQUE IS TWO ROWS, AT EVERY WIDTH (round-8) --------------------
   Measured before: at 320px the title 夜市帮工 · Night-Market Rush wants 305px
   on one line and the plaque offers 275 (96vw, less a 2px border and 13px of
   padding a side, in light theme), so the name broke mid-hyphen and the counter
   landed on a third row — 97px of signboard on a 640px-tall phone. The roster
   rule is "title bars must not wrap to three rows", and the type rule under it
   is "shorten the words, never the type": 20px hanzi is a floor, so the fix is
   in the copy. 夜市 already says "night market" in the four characters standing
   immediately to the left, so below 360px the latin gloss drops the word that
   is a duplicate of the hanzi and reads 夜市帮工 · Market Rush — 237px, one
   row, 38px of slack. 360px and up is untouched: the full name, as it shipped.
   (Same move the chalk button already makes at 430px, and the same move the kit
   makes when it drops every drill's subtitle at 900px.) */
.minigame.rush2 .mg-head b.han .rz-tt-wide { font-style: normal; }
@media (max-width: 359px) {
  .minigame.rush2 .mg-head b.han .rz-tt-wide { display: none; }
}
/* FTUE pass: the ? coin claims 46px of the plaque's right edge below 760px
   (drill-manual.css .has-manual clearance), which put the full title back
   over the width it fits in — measured at 375px it broke mid-name and the
   score took a third row, the exact round-8 bug at a new width. Same cure at
   the new boundary: shed the word the hanzi beside it already says. */
@media (max-width: 470px) {
  .minigame.rush2.has-manual .mg-head b.han .rz-tt-wide { display: none; }
}
/* The host cutout is shortened so his speech bubble sits BELOW the tray line
   instead of through it; the bubble is narrowed for the same reason. */
.minigame.rush2 .mg-host { height: 38%; }
/* Narrow ONLY on desktop, where the cutout owns the left lane. Below 720px
   prom.css takes the host off stage and the kit floats this bubble into the
   page flow — a vw-based cap there turns it into one hanzi per line. */
@media (min-width: 721px) { .minigame.rush2 .mg-bubble { max-width: min(20vw, 206px); } }
.minigame.rush2 .mg-bubble { font-size: var(--dk-label); }
.minigame.rush2 .mg-bubble .han { font-size: var(--dk-read); }
/* THE ENGLISH SUPPORT LINE (bilingual pass). Lau's standing rule is that every
   direction, error and notice carries English under the hanzi — so the bubbles
   that DIRECT or CORRECT get a second line, and the bubbles that carry the
   ORDER never do (those are the mime, and the mime is the drill). It sits at
   the label floor rather than caption size: it is an instruction, not a gloss,
   and the kit's type rule reserves caption for pinyin and translations. Ink on
   the bubble's cream (#241335 on #fdf6e0) measures ~15.5:1 in both themes — the
   bubble paints its own paper, so neither theme can get under it. */
.minigame.rush2 .mg-bubble .rz-en {
  display: block; margin-top: 3px; font-style: normal;
  font-size: var(--dk-label); font-weight: 700; line-height: 1.25;
  color: #241335; opacity: 0.88;
}
/* Four type sizes on screen and only four: the shared header and reveal are
   pulled onto the same scale as everything this file draws. */
.minigame.rush2 .mg-head b.han { font-size: var(--dk-read); }
/* the counter defers to drill-kit.css: one size in every drill (--dk-label) */
/* The subtitle's size is the kit's now (.dk-drill, drill-kit.css): 16px, the
   readable floor. This sheet used to pin it to --dk-caption, which loads AFTER
   the kit at equal specificity and would silently win. */
.minigame.rush2 .mg-reveal { font-size: var(--dk-label); }
.minigame.rush2 .mg-reveal .han { font-size: var(--dk-read); }
/* The 他要的 line is the drill's whole pedagogy payload — what he asked for and
   what you carried over, side by side — and it was landing bare on the painting
   with its left end behind Jackpot's cutout (measured 78×29px of overlap at
   1280, because the stage layer paints above an in-flow sibling). Same answer
   as the sound slip: put it on the kit's scrim, and lift the slot over the
   cutout so a long two-item order is never read through a sleeve. It only
   dresses up once it HAS something to say — before the first docket resolves
   :empty keeps the slot invisible and the court still. */
/* 4 sits above .mg-host (3) and below .mg-finale (7): the teaching line clears
   the cutout, and the curtain call still dims it with everything else. */
.minigame.rush2 .mg-prompt { position: relative; z-index: 4; }
.minigame.rush2 .mg-reveal:not(:empty) {
  background: var(--dk-mat-scrim); color: var(--paper, #f2efe9);
  border-radius: 10px; padding: 4px 16px 6px; max-width: min(880px, 92vw);
  line-height: 1.35;
}
/* the 看字 tag on the teaching line: why THIS plate paid what it paid. Gold,
   because gold is "the thing to look at now" and this is the one number the
   player can change next time by listening instead of reading. It is neither
   teal nor vermillion: reading the board is not an error. */
.minigame.rush2 .mg-reveal .ccmark {
  display: inline-block; margin-left: 10px; font-size: var(--dk-label);
  font-weight: 800; color: var(--dk-gold);
}
.minigame.rush2 .mg-reveal .ccmark b.han { font-size: var(--dk-read); margin-right: 5px; }

/* --------------------------------------------- THE ONE RIBBON (2026-08-01)
   This board used to carry TWO black scrim ribbons in the same material two
   rows apart: 开声音 above the rail, the 再喊 key below it. A blind judge could
   not tell them apart, could not tell either from a button — "it looks
   identical to the other black ribbon so I'm unsure" — and counted them among
   "five separate strips of instruction text stacked vertically, each in a
   different style". They were also the same fact twice over: the order lives
   in the air. So there is one ribbon now, in the KEY's position, under the rail
   and beside the button it explains rather than floating over the painting.
   Two clauses, one scrim, one row.

   1. MATERIAL. The kit's .dk-legend scrim (ink at 0.90) carries it — the kit's
      own answer to "text over art with no object to sit on". It is the same
      ink material over cream and over the painting, so it needs NO
      :root[data-theme="light"] override, and a missing light override is
      precisely what made 开声音 measure 1.32:1. Composited, the cream body runs
      ~12:1 and the gold hanzi ~10:1 in BOTH themes.
   2. TYPE. Hanzi a player reads to play never goes under --dk-read, and the
      instruction carrying it never goes under --dk-label. No new size enters
      the drill: both tiers are already on screen, so the scale stays at four.
   3. LENGTH. 48 English characters across the two clauses — "the order is
      shouted, not printed" (33) and "replays it, free" (15) — inside the house
      ~50 limit for a line. They are held on one row by column-gap rather than
      by punctuation, so neither clause can be read as a continuation of the
      other.
   4. THE SOUND CLAUSE RETIRES. It is the one line a player MUST read before
      the first docket lands, and it has done its whole job once a plate has
      gone out — serve() hides #rzHint, and the replay key stays for the shift.
      Only the ribbon re-centres; nothing below it moves. */
.minigame.rush2 .mg-head { flex-wrap: wrap; row-gap: 3px; }
.minigame.rush2 .rz-hint {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  column-gap: 15px; row-gap: 1px;
  margin: 0; padding: 2px 15px 3px; border: 0;
  line-height: 1.22; font-weight: 700; text-align: center;
  /* .dk-legend caps at --dk-measure, which is set for a paragraph; these are
     two short clauses and they should read as one row, not four. */
  max-width: min(640px, 92vw);
}
/* a clause never breaks in the middle: it wraps as a whole or not at all */
.minigame.rush2 .rz-key { display: inline-block; white-space: nowrap; }
/* [hidden] loses to the display above, so it has to be said out loud */
.minigame.rush2 .rz-key[hidden] { display: none; }
/* :root wins the specificity fight with prom.css's
   :root[data-theme="light"] .minigame .mg-head b.han { color: #241335 }, which
   would put a theme's idea of a colour on a surface that has no theme. */
:root .minigame.rush2 .rz-hint { color: var(--dk-stock); }
:root .minigame.rush2 .rz-hint b.han {
  font-size: var(--dk-read); font-weight: 800; color: var(--dk-gold); margin: 0 5px 0 0;
}
.minigame.rush2 .rz-hint i { font-style: normal; }
/* The kit's till counter ships at 22px, which is close enough to the 20px read
   tier to read as a fifth size rather than a fourth. Pin it to the scale, and
   pin its colour to the paper material so the light theme does not introduce a
   crimson that means nothing. */
.minigame.rush2 .dk-counter-n { font-size: var(--dk-read); color: var(--dk-stock); }

.rz-court {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  width: min(980px, 96vw);
}
/* On a wide screen the stall sits to Jackpot's right rather than on top of him:
   the host cutout owns the left lane and his speech bubble reaches ~376px in,
   which is exactly where a centred hopper row starts. Shifting the court is the
   honest fix — shrinking the bubble instead would shrink his voice. */
@media (min-width: 1024px) { .minigame.rush2 { padding-left: 170px; } }

/* --------------------------------------------------------------- THE RAIL
   Two dockets hang here at once. Three would not read at 20px hanzi, which is
   why the cap is two and not Overcooked's five.

   Cycle-4: for three rounds this comment described a rail the module never
   built — rush2.js capped the queue at ONE until a second docket had spawned,
   which it could not do, and then topped up on a 15s wall clock longer than a
   build. A competent player met exactly one customer all shift. The scheduler
   is fixed (see scheduleRail() in the module) and two is now the STEADY state
   rather than a ceiling: measured across a full shift the rail carries two for
   ~55% of a learner's play and is never empty mid-shift. Everything below that
   was written for a pair is finally load-bearing — the 18px gap, the 224px
   docket that breaks a two-phrase order at the comma, the 172px phone width
   that fits two of them plus the gap inside 375px, and the two-stop patience
   ramp, which now has to stay legible with a gold docket and a vermillion one
   standing side by side. */
.rz-rail {
  display: flex; gap: 18px; justify-content: center; align-items: flex-end;
  min-height: 136px; width: 100%;
}
.rz-docket {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: rzDrop 0.34s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
@keyframes rzDrop { from { opacity: 0; transform: translateY(-22px) rotate(-3deg); } }
.rz-docket.rz-gone { animation: rzTear 0.6s ease-in both; }
@keyframes rzTear { to { opacity: 0; transform: translateY(14px) rotate(5deg) scale(0.9); } }

/* the customer. Posture IS the patience: upright, then arms folded, then
   hunched away. No colour ramp, no bar with four stops. */
.rz-cust { width: 40px; height: 48px; transform-origin: 50% 100%;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1); }
.rz-cust svg { width: 100%; height: 100%; display: block; }
.rz-slump .rz-cust { transform: translateY(3px) rotate(-4deg) scaleY(0.94); }
.rz-fold .rz-cust { transform: translateY(6px) rotate(6deg) scaleY(0.88); animation: rzTap 0.7s ease-in-out infinite; }
@keyframes rzTap { 50% { transform: translateY(6px) rotate(3deg) scaleY(0.88); } }

/* 224px is where a two-phrase order (三串烤串，两个煎饼 — the longest this stall
   can shout) breaks at the comma instead of inside a phrase. */
.rz-docket .dk-docket { width: 224px; position: relative; padding-bottom: 16px; }
.rz-docket .dk-docket-hd { justify-content: space-between; }
.rz-ph { white-space: nowrap; }

/* ------------------------------------------ WHERE THE ONE RIBBON SITS
   Under the rail, because that is where both of its clauses point: 再喊 is a
   key to the docket's one unglossed control (its header has to hold 单 N, the
   改 stamp and the key itself inside 172px on a phone without wrapping, and a
   wrapped header grows the rail by 28px — the 28px that puts his bubble under
   the fold), and 开声音 is about the paper directly above it being blank. The
   look is in THE ONE RIBBON block near the top of this file. */
.rz-railkey { display: flex; justify-content: center; font-size: var(--dk-label); margin-top: -2px; }
.rz-railkey i { font-style: normal; }

/* ------------------------------------------------- THE SLOT: BLANK, OR CHALK
   The order is a SOUND. The slip lands blank and stays blank unless the player
   buys the sentence, so this one box holds either the chalk button or the
   chalked phrase — same slot, same height, nothing on the rail jumps when the
   words arrive. (Cycle-2 fix: the first build printed the order here and
   un-fogged it for free after 2.4s against 30s of patience, which made the
   whole drill winnable by glyph-matching with the sound off.) */
/* One height for both states — blank slip and chalked slip — so nothing on the
   rail jumps when the words arrive mid-build. */
.rz-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 58px; }
.rz-order { display: block; line-height: var(--dk-lh-read); }
/* chalk, arriving: it dusts on rather than blinking into existence */
.rz-order.rz-chalkin { animation: rzChalk 0.42s cubic-bezier(0.2, 1, 0.3, 1) both; }
@keyframes rzChalk {
  from { opacity: 0; filter: blur(5px); transform: translateY(-3px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* 写下来 — the one thing on the slip you can buy. It is a purchase, so it says
   what it costs on its own face and nowhere else, and it never states a
   QUANTITY: the only amounts in this drill still come out of a held thumb.

   ROUND-9, AND IT IS A CROSS-CUTTING FINDING: THIS BUTTON WAS DRAWN DASHED.
   It used to be a transparent box with a dashed rule under it — "a blank line
   on the slip", which was a nice idea about paper and a bad idea about
   controls. Across the fifteen-board blind review a DASHED border means
   "empty slot, drop something here" everywhere else in this game (the tray's
   own landing outline, three drawers in cloze, the manual's own cloze art), so
   a dashed BUTTON reads as inert — a place where a thing is missing rather
   than a thing you may press. It gets a real button face: raised paper, ink
   edge, a hard drop that flattens when it goes down. Same slot, same height,
   nothing on the rail moves. The chalk RULE survives where it belongs, on the
   line the chalk lands on (.rz-mwblank), which is genuinely a blank. */
.rz-chalk {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  width: 100%; padding: 3px 8px 4px; cursor: pointer; text-align: left;
  font: inherit; color: var(--dk-ink-soft); background: var(--dk-stock-2, #f8eed4);
  border: 2.5px solid var(--dk-ink); border-radius: 7px;
  box-shadow: 0 3px 0 rgba(36, 19, 53, 0.55);
  transition: background 0.14s ease-out, color 0.14s ease-out,
              box-shadow 0.12s ease-out, transform 0.12s ease-out;
  /* FTUE audit: the blind runs tapped, held and dragged this button and read
     every miss as "nothing happened" — a near-miss was TEXT-SELECTING the
     label, which eats the click. So the paper is not selectable, a coarse
     pointer gets the whole padded box, and a real press visibly presses. */
  touch-action: manipulation;
}
.rz-chalk:active { background: rgba(255, 200, 74, 0.35); transform: translateY(3px); box-shadow: 0 0 0 rgba(36, 19, 53, 0.55); }
.rush2 .dk-docket, .rush2 .dk-docket * { -webkit-user-select: none; user-select: none; }
/* The hanzi on it is read to play, so it sits at the reading tier like every
   other hanzi here; the price it quotes is a FACT, not a gloss, so it sits at
   the label floor rather than caption size (drill-kit's type rule: caption is
   for pinyin and translations and nothing else). */
.rz-chalk b.han { font-size: var(--dk-read); font-weight: 800; color: var(--dk-ink); line-height: 1.2; }
.rz-chalk .rz-cost { font-size: var(--dk-label); font-weight: 700; color: var(--dk-ink-soft); line-height: 1.22; }
/* icon-only face now (Lau, 2026-08-09) — same sizing as the replay glyph */
.rz-chalk-ic { width: 1.15em; height: 1.15em; font-size: var(--dk-read); color: var(--dk-ink); margin-bottom: 2px; }
.rz-chalk .rz-cost i { font-style: normal; }
.rz-chalk:hover { background: rgba(255, 200, 74, 0.22); }
.rz-chalk:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
/* 老板娘的单 — the one plate a shift he will not write. It occupies the chalk
   button's exact slot so nothing on the rail moves, and it is deliberately NOT
   a control: there is nothing here to press, which is the point. Without it a
   shift bought entirely in chalk could score 满分 with no Chinese and no audio,
   and the save file would record ten phrases as learned. */
.rz-earonly {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  width: 100%; padding: 1px 4px 2px; text-align: left; color: var(--dk-ink-soft);
  border-bottom: 2px solid var(--dk-verm-deep); border-radius: 3px;
}
.rz-earonly b.han { font-size: var(--dk-read); font-weight: 800; color: var(--dk-ink); line-height: 1.2; }
.rz-earonly .rz-cost { font-size: var(--dk-label); font-weight: 700; color: var(--dk-ink-soft); line-height: 1.22; }
.rz-earonly .rz-cost i { font-style: normal; }
.dk-docket.rz-boss { box-shadow: var(--dk-drop), inset 0 0 0 3px rgba(224, 74, 58, 0.45); }
/* ------------------------------------------- THE HOLE WHERE THE 量词 GOES
   The slip he sells you is a CLOZE, not a transcript. He chalks the dish and
   the count and leaves the classifier a ruled box, because the classifier is
   the one thing this drill exists to teach and a printed 碗 next to a rack
   labelled 碗 turns the whole shift into string matching. (Cycle-3 round 3:
   a deaf run that bought chalk on every docket and matched glyphs finished
   5/6 and banked 听+2. Measured, not guessed.)

   It has to read as a deliberate gap and never as a smudge, so it is a full
   hanzi square on the same baseline as the characters either side — the 方框
   a Chinese exercise book leaves you to fill in, which is exactly what it is.
   No colour: gold means "the thing to look at now" and this box is not a
   control, it is an absence. */
.rz-mwblank {
  display: inline-block; width: 0.92em; height: 0.92em; margin: 0 0.1em;
  vertical-align: -0.08em; box-sizing: border-box;
  border: 2px dashed var(--dk-ink); border-radius: 3px;
  background: rgba(36, 19, 53, 0.055);
}
/* …and the hole fills itself in as the plate goes out. Anticipation is the
   gold flash, the action is the character dropping in oversized, the
   follow-through is it settling to ink at rest — the one moment in the drill
   where the answer is written down, and it lands after the commitment. */
.rz-mwfill {
  display: inline-block; font-weight: 900; color: var(--dk-ink);
  animation: rzMwIn 0.44s cubic-bezier(0.2, 1.5, 0.35, 1) both;
}
@keyframes rzMwIn {
  0% { opacity: 0; transform: scale(1.9) translateY(-4px); color: var(--dk-gold); }
  55% { opacity: 1; transform: scale(0.92); color: var(--dk-gold); }
  100% { opacity: 1; transform: none; color: var(--dk-ink); }
}
.rz-order.rz-completed { opacity: 1; }

/* 改单 on a slip you already paid for: he ERASES the line he changed. Striking
   it and leaving it legible still handed a reader the dish and the old count,
   and the old count was one of two candidates — so the changed phrase becomes a
   chalk smudge and its new words exist only in the air. The phrase he did NOT
   change survives untouched, which is the tell that says which half moved. */
.rz-ph.rz-wiped { white-space: nowrap; }
.rz-ph.rz-wiped > i {
  display: inline-block; width: 3.1em; height: 0.9em; vertical-align: -0.1em;
  border-radius: 5px; opacity: 0.8; transform: rotate(-1.4deg);
  background: repeating-linear-gradient(-32deg,
    rgba(36, 19, 53, 0.62) 0 3px, rgba(36, 19, 53, 0.24) 3px 9px);
  filter: blur(1.1px);
  animation: rzWipe 0.42s cubic-bezier(0.3, 0, 0.2, 1) both;
}
@keyframes rzWipe {
  from { opacity: 1; transform: rotate(-1.4deg) scaleX(0.2); transform-origin: 0 50%; }
  to { opacity: 0.8; transform: rotate(-1.4deg) scaleX(1); transform-origin: 0 50%; }
}
/* the slip as a whole is superseded — dimmed, never struck through, because a
   listener paid for the half he did not change and still has to read it */
.rz-order.rz-stale { opacity: 0.74; }
/* a plate whose words were read, not heard: marked while it is still on the
   rail, so the lighter tip is never a surprise at the reveal */
.rz-ccnote { display: flex; align-items: baseline; gap: 6px; color: var(--dk-ink-soft); }
/* 看字 is two hanzi and must stay two hanzi on ONE line — as a shrinkable flex
   item it broke into a 看/字 column the moment the note beside it grew. */
.rz-ccnote b.han { font-size: var(--dk-read); font-weight: 800; flex: 0 0 auto; white-space: nowrap; }
.rz-ccnote i { font-style: normal; font-size: var(--dk-label); font-weight: 700; }
.dk-docket.rz-read { background: repeating-linear-gradient(
  -50deg, var(--dk-stock) 0 9px, var(--dk-stock-2) 9px 18px); }

/* 再喊 — free, and infinite. A listening drill that charges for a second listen
   teaches players to stop listening. Sits in the docket header as a small
   ghost key, never competing with the slip's own content. */
.rz-again {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 6px; cursor: pointer; font: inherit; color: var(--dk-ink);
  background: var(--dk-stock-2); border: 2px solid var(--dk-ink); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(36, 19, 53, 0.5); transition: transform 0.12s ease-out;
}
.rz-again-ic { width: 1.15em; height: 1.15em; font-size: var(--dk-read); }
.rz-again:hover { background: var(--dk-gold); }
.rz-again:active { transform: translateY(2px); box-shadow: none; }
.rz-again:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
.rz-again.rz-rung { animation: rzRung 0.4s ease-out both; }
@keyframes rzRung { 40% { transform: scale(1.14); } }

/* 改单 — the amendment. Audio carries WHAT changed; the paper only ever says
   THAT something changed, which is the whole point of putting it on the ear. */
.rz-amendmark {
  margin-left: auto; padding: 0 7px 1px; align-self: center;
  font-size: var(--dk-read); font-weight: 900; color: var(--dk-stock);
  background: var(--dk-verm-deep); border-radius: 5px; transform: rotate(-5deg);
  animation: rzStampIn 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes rzStampIn { from { transform: rotate(-5deg) scale(2.2); opacity: 0; } }
.rz-amendmark + .rz-again { margin-left: 8px; }
.rz-amended .dk-docket { animation: rzShove 0.5s ease-in-out 2; }
@keyframes rzShove { 25% { transform: translateX(-3px) rotate(-0.8deg); } 75% { transform: translateX(3px) rotate(0.8deg); } }

/* his mouth, mid-shout: the bubble carries WHO and WHEN, never the words */
.rz-mime { display: inline-flex; gap: 5px; align-items: center; vertical-align: middle; padding-left: 2px; }
.rz-mime i {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.45;
  animation: rzMime 0.9s ease-in-out infinite;
}
.rz-mime i:nth-child(2) { animation-delay: 0.15s; }
.rz-mime i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rzMime { 40% { opacity: 1; transform: translateY(-3px); } }

/* patience: ONE bar, two stops. Paper → gold → vermillion, nothing between. */
.rz-pat { position: absolute; left: 10px; right: 10px; bottom: 7px; height: 6px;
  background: rgba(36, 19, 53, 0.16); border-radius: 999px; overflow: hidden; }
.rz-pat i { display: block; height: 100%; width: 100%; transform-origin: 0 50%;
  background: var(--dk-ink); border-radius: 999px; }
.rz-warm .rz-pat i { background: var(--dk-gold-deep); }
.rz-hot .rz-pat i { background: var(--dk-verm); }
/* ROUND-9 · A GOLD OUTLINE ON THIS BOARD MEANS ONE THING NOW: YOUR HAND GOES
   HERE. The board carries the kit's live ring (see the FTUE block at the foot
   of this file), and the ring is a breathing gold OUTLINE. Two of the docket's
   own states were also gold outlines — the warm patience band and the docket
   he is shouting — so on a board with two customers a player could be looking
   at three gold rings, exactly one of which was a control. Two rings is the
   question the ring exists to answer, asked twice.
   Neither state is deleted; both move OFF the edge and ONTO the paper, which
   is where they belonged anyway:
     WARM  — the slip YELLOWS. This file's own header says the urgent things in
             this room are objects ("a paper docket that yellows"), and until
             now the paper did not yellow, it wore a ring. The gold patience bar
             and the customer folding their arms are unchanged.
     HOT   — keeps its ring, in VERMILLION, which never means "act here" and is
             the one state that has earned an alarm.
   Reduced motion is safe by construction: both are background colours, i.e.
   state, not movement. */
.rz-warm { box-shadow: var(--dk-drop); background: #ecd7a6; }
.rz-hot { box-shadow: var(--dk-drop), 0 0 0 3px var(--dk-verm); animation: rzRattle 0.5s ease-in-out infinite; }
@keyframes rzRattle { 25% { transform: rotate(-1.1deg); } 75% { transform: rotate(1.1deg); } }
/* HE IS SHOUTING THIS ONE, RIGHT NOW — and a shout is a thing that leaves.
   The paper takes a gold wash for the second it is being read aloud and a ring
   of light radiates off it and dissipates, leaving no outline behind. The wash
   is a class, so a reduced-motion player still sees WHICH docket is speaking
   for the same second; only the radiating half is motion. */
.dk-docket.rz-calling { background: #ffe3a6; animation: rzCall 1.2s ease-out 1; }
/* it starts at ZERO spread on purpose: any frame of this that has a solid band
   of gold standing off the paper is a frame that looks like the live ring. */
@keyframes rzCall {
  0% { box-shadow: var(--dk-drop), 0 0 0 0 rgba(255, 200, 74, 0.7); }
  100% { box-shadow: var(--dk-drop), 0 0 0 24px rgba(255, 200, 74, 0); }
}
.rz-served { box-shadow: var(--dk-drop), 0 0 0 3px var(--dk-jade); animation: none; }
.rz-wrongserve, .rz-lapsed { box-shadow: var(--dk-drop), 0 0 0 3px var(--dk-verm); animation: none; }
.rz-lapsed { filter: grayscale(0.5); }

/* ------------------------------------------------------------ THE STALL
   Two shelves. Above: the vessel rack — the 量词, as six different physical
   shapes. Below: the food line and the wok. */
.rz-stall { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }

.rz-rack {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 16px 7px; border-radius: 12px;
  background: linear-gradient(180deg, var(--rz-wood) 0%, var(--rz-wood-dk) 100%);
  border: var(--dk-line); box-shadow: var(--dk-drop);
}
.rz-rack-hd { display: flex; align-items: baseline; gap: 7px; color: #f5e6c6; }
/* ROUND-8: this rule shouted. "DRAG THE RIGHT VESSEL DOWN" was the only all-caps
   English instruction anywhere in the build — fifteen drills and one of them was
   yelling — and all-caps is a legibility cost as well as a tonal one: it strips
   the word shapes a reader scans by, and it does it to the line that TELLS YOU
   THE GESTURE. Sentence case, and the wide tracking that only existed to keep
   caps from setting solid comes back down to the kit's own 0.01em. Nothing else
   about the line changes: same size, same colour, same gold-on-refusal state. */
.rz-rack-hd .dk-label { letter-spacing: 0.01em; opacity: 0.86;
  transition: color 0.2s, opacity 0.2s; }
/* a hand PRESSED a vessel instead of carrying it: the rack's own line says what
   the hand should have done. Gold = look here now, and it is the same gold the
   tray flashes, so the eye is told BOTH ends of the gesture at once. */
.rz-rack-hd.rz-rack-say .dk-label { color: var(--dk-gold); opacity: 1; }
.rz-rack-hd.rz-rack-say { animation: rzRackSay 0.7s cubic-bezier(0.2, 1, 0.3, 1) 2; }
@keyframes rzRackSay { 0%, 100% { transform: none; } 45% { transform: translateY(2px); } }
.rz-hooks { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rz-hook { display: flex; flex-direction: column; align-items: center; gap: 0; width: 68px; }
.rz-hook .dk-caption { color: #e8d6ad; }

/* One vessel on its hook: the SILHOUETTE first, then the classifier on a paper
   tag hanging under it. Laying a display-size hanzi across a 60px drawing hides
   the drawing, and the drawing is half of how these six are told apart — the
   two confusable pairs (根/个, 碗/笼) are separated by shape before they are
   separated by character. */
.rz-vessel {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0;
  width: 66px; cursor: grab; touch-action: none;
  transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.rz-vessel svg { width: 58px; height: 44px; display: block;
  filter: drop-shadow(0 3px 0 rgba(14, 6, 24, 0.5)); }
.rz-vessel:hover, .rz-vessel:focus-visible { transform: translateY(-5px); outline: none; }
.rz-vessel:focus-visible .rz-mw { box-shadow: 0 0 0 3px var(--dk-gold); }
.rz-vessel:active { cursor: grabbing; }
.rz-mw {
  /* line-height 1.18 is TIGHTER THAN THE EM BOX of a 36px hanzi, so the top and
     bottom of 碗 / 杯 / 根 / 个 hung a few pixels past the cream chip onto the
     ink edge behind it — measured as low as 1.00:1 against the darkest pixel
     under the glyph. 1.3 puts the whole glyph box on paper in both themes. */
  margin-top: -6px; padding: 1px 9px 2px; line-height: 1.3;
  background: var(--dk-stock); color: var(--dk-ink); font-weight: 900;
  border: 2.5px solid var(--dk-ink); border-radius: 7px;
  box-shadow: 0 3px 0 rgba(14, 6, 24, 0.6); pointer-events: none;
}

/* ------------------------------------------------------------- THE BENCH */
.rz-bench { display: flex; gap: 14px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.rz-hoppers { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* A hopper is a thing you press into, not a button you click. It never states
   an amount — the amount is how long you hold it. */
.rz-hopper {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: 90px; padding: 4px 4px 5px; cursor: pointer; touch-action: none;
  background: var(--dk-stock); color: var(--dk-ink);
  border: var(--dk-line); border-radius: 10px; box-shadow: var(--dk-drop);
  font: inherit; text-align: center;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.15s;
}
.rz-hopper .dk-caption { color: var(--dk-ink-soft); }
.rz-hopper:hover { background: var(--dk-stock-2); transform: translateY(-2px); box-shadow: var(--dk-drop-lift); }
.rz-hopper:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
.rz-hopper-art { width: 52px; height: 27px; }
.rz-hopper-art svg { width: 100%; height: 100%; display: block; }
/* held: pressed IN and staying in, with the ladle running */
.rz-hopper.rz-pouring, .rz-hopper.gk-holding {
  background: var(--dk-gold); transform: translateY(3px); box-shadow: 0 1px 0 rgba(14, 6, 24, 0.75);
}
.rz-hopper.rz-pouring::after {
  content: ""; position: absolute; inset: auto auto 0 50%; width: 5px; height: 26px;
  transform: translate(-50%, 100%); background: var(--dk-gold); border-radius: 3px;
  animation: rzStream 0.32s linear infinite;
}
.rz-hopper { position: relative; }
@keyframes rzStream { from { opacity: 0.35; } to { opacity: 1; } }

/* the wok. Heat climbs while anyone is waiting; it FLARES when someone is
   about to walk. --heat is written from the drill's rAF loop. */
.rz-wokwrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rz-wok { position: relative; width: 92px; height: 64px; }
.rz-wok svg { width: 100%; height: 100%; display: block; }
.rz-flame { position: absolute; left: 12%; right: 34%; bottom: 6px; height: 40px; pointer-events: none; }
.rz-flame i {
  position: absolute; bottom: 0; width: 13px; border-radius: 60% 60% 40% 40%;
  height: calc(6px + var(--heat, 0) * 34px);
  background: linear-gradient(180deg, var(--dk-verm), var(--dk-gold));
  opacity: calc(0.25 + var(--heat, 0) * 0.75);
  filter: blur(0.4px);
  animation: rzLick 0.42s ease-in-out infinite alternate;
}
.rz-flame i:nth-child(1) { left: 2%; }
.rz-flame i:nth-child(2) { left: 36%; animation-delay: 0.14s; }
.rz-flame i:nth-child(3) { left: 68%; animation-delay: 0.27s; }
@keyframes rzLick { to { transform: scaleY(1.28) translateY(-2px); } }
.rz-wok.rz-flare { animation: rzFlare 0.5s ease-out infinite alternate; }
@keyframes rzFlare { to { filter: drop-shadow(0 0 12px rgba(224, 74, 58, 0.8)); } }

/* the slop bucket: the only way back from an overshoot, and it costs time */
/* The face carries its English (bilingual pass): 倒掉 at the reading step over
   "dump tray" at the label floor, stacked, because the bucket is 92px wide and
   two runs side by side would set the hanzi below its floor to fit. Cream
   #f5e6c6 on the bucket's --rz-wood-dk measures well past 4.5:1 in both themes;
   the bucket paints its own wood, so no light-theme override is needed. */
.rz-bin {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* flex: none — on a phone .rz-wokwrap turns into a row and the bucket was a
     shrinkable item beside the wok, so it came in under its declared width and
     clipped its own English to "dump tra". The words shorten, the type never
     does, and the object does not shrink either. */
  gap: 1px; line-height: 1.14; width: 92px; height: 56px; flex: none;
  background: var(--rz-wood-dk); color: #f5e6c6; border: var(--dk-line);
  border-radius: 6px 6px 12px 12px; box-shadow: var(--dk-drop); cursor: pointer;
}
.rz-bin:hover { background: #524135; }   /* h25 s0.22, same lightness as before */
.rz-bin:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
/* A drag is over it and will land: the kit's zone classes were unstyled here,
   so the tray travelled with no confirmation of where it would come down. */
.rz-bin.gk-zone-hot { background: #5c493b; box-shadow: var(--dk-drop-lift), inset 0 0 0 3px var(--dk-gold); }
.rz-docket .dk-docket.gk-zone-hot { box-shadow: var(--dk-drop-lift), inset 0 0 0 3px var(--dk-gold); }
/* what the bucket has swallowed this shift. Potion Craft's jar level: waste is
   legible at day's end without a number and without a scolding. */
.rz-bin::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  /* below the census's l>=0.16 floor either way, but it is the same material as
     the bucket around it and it moves with it: h23 s0.21, lightness unchanged,
     so the swallowed level still reads as darker than the bin it fills. */
  height: calc(var(--waste, 0) * 62%); background: #251d18;
  border-top: 2px solid rgba(245, 230, 198, 0.35);
  transition: height 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
.rz-bin > * { position: relative; }
.rz-bin-en { color: #f5e6c6; opacity: 0.9; white-space: nowrap; }
.rz-bin.rz-bin-used { animation: rzBinTake 0.34s ease-out; }
@keyframes rzBinTake { 40% { transform: translateY(3px) scaleY(0.94); } }

/* -------------------------------------------------------------- THE TRAY
   Objects that slide and clatter. The tray is what your hand carries and it is
   what you throw at a customer. */
.rz-trayline { display: flex; justify-content: center; width: 100%; }
.rz-tray {
  position: relative; width: min(540px, 94vw); min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 12px 5px; cursor: grab; touch-action: none;
  background: linear-gradient(180deg, #78604d 0%, var(--rz-wood-dk) 100%);
  border: var(--dk-line); border-radius: 10px;
  box-shadow: var(--dk-drop), inset 0 0 0 3px rgba(245, 230, 198, 0.14);
  transition: transform 0.18s cubic-bezier(0.2, 1.3, 0.4, 1), box-shadow 0.18s;
}
.rz-tray:active { cursor: grabbing; }
.rz-tray:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 3px; }
.rz-tray.rz-loaded { box-shadow: var(--dk-drop-lift), inset 0 0 0 3px rgba(255, 200, 74, 0.35); }
/* while a vessel is in the air, the tray shows it has a place to land */
.rz-tray.rz-tray-open { outline: 3px dashed var(--dk-gold); outline-offset: 4px; }
/* …and when a hand PRESSED a vessel instead of carrying it, the tray says where
   the vessel was supposed to end up. Gold, because gold is "look here now" —
   the tap is not an error, it is an unfinished gesture, so nothing goes
   vermillion. Motion only; the coaching line carries the same information for a
   reduced-motion player. */
.rz-tray.rz-tray-nudge { animation: rzTrayNudge 0.9s cubic-bezier(0.2, 1, 0.3, 1) 2; }
@keyframes rzTrayNudge {
  0%, 100% { outline: 3px dashed rgba(255, 200, 74, 0); outline-offset: 4px; }
  40% { outline: 3px dashed var(--dk-gold); outline-offset: 9px; }
}
.rz-tray-slots { display: flex; gap: 18px; align-items: flex-end; justify-content: center;
  min-height: 52px; flex-wrap: wrap; }
.rz-group { display: flex; gap: 2px; align-items: flex-end; padding: 2px 6px; border-radius: 8px; }
.rz-group.rz-group-live { box-shadow: inset 0 0 0 3px var(--dk-gold); }
.rz-group.rz-wrongfit { box-shadow: inset 0 0 0 3px var(--dk-verm); background: rgba(224, 74, 58, 0.25); }
/* Each unit is a thing you can pick up: TAP IT AND IT COMES OFF. That is the
   benchmark's "a fourth skewer makes the tray read 四串 and you pull one off",
   and it is why the tray is no longer all-or-nothing. A drag from the same
   pixel still carries the whole tray (gesture.js commits at 4px of travel), so
   the object has two verbs and no mode switch. */
.rz-unit { position: relative; width: 54px; height: 46px; cursor: pointer; touch-action: none;
  transition: transform 0.14s cubic-bezier(0.2, 1.4, 0.4, 1), filter 0.14s; }
.rz-unit svg { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 2px 0 rgba(14, 6, 24, 0.55)); }
.rz-unit:hover { transform: translateY(-3px); filter: drop-shadow(0 0 6px rgba(255, 200, 74, 0.6)); }
.rz-unit:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; border-radius: 6px; }
.rz-unit.rz-empty { opacity: 0.42; }
/* the surplus, marked on the object rather than announced in text: gold means
   "this is the thing to look at now", and the thing is the fourth skewer */
.rz-group.rz-over .rz-unit:last-child {
  filter: drop-shadow(0 0 0 var(--dk-gold));
  animation: rzSurplus 0.9s ease-in-out infinite alternate;
}
@keyframes rzSurplus {
  from { transform: none; filter: drop-shadow(0 0 2px rgba(255, 200, 74, 0.5)); }
  to { transform: translateY(-4px) rotate(3deg); filter: drop-shadow(0 0 9px rgba(255, 200, 74, 0.95)); }
}
/* pulled off: it arcs into the slop bucket and lands, rather than vanishing */
.rz-unit.rz-toss { animation: rzToss 0.5s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
@keyframes rzToss {
  0% { transform: none; opacity: 1; }
  35% { transform: translate(calc(var(--tx) * 0.4), calc(var(--ty) * 0.4 - 26px)) rotate(-14deg) scale(1.04); }
  100% { transform: translate(var(--tx), var(--ty)) rotate(-40deg) scale(0.55); opacity: 0; }
}
/* the partial vessel currently under the thumb: it fills at 60fps */
.rz-group-live .rz-unit.rz-empty::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 14%;
  height: calc(var(--frac, 0) * 48%); background: var(--dk-gold); border-radius: 3px;
}
.rz-unit.rz-land { animation: rzLand 0.26s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes rzLand {
  0% { transform: translateY(-16px) scaleY(1.12); }
  62% { transform: translateY(0) scaleY(0.9) scaleX(1.06); }
  100% { transform: none; }
}
.rz-food { position: absolute; left: 8%; right: 8%; top: 12%; height: 46%; pointer-events: none; }
.rz-food svg { filter: none; }
/* the wrong vessel for this food: it sits askew and it never gets a name */
.rz-food.rz-spill { transform: rotate(-15deg) translate(4px, -8px); }

.rz-tray-label {
  min-height: 1.5em; color: #fbf1d8; text-align: center; line-height: var(--dk-lh-tight);
  text-shadow: 0 2px 0 rgba(14, 6, 24, 0.6);
}
.rz-tray-label .dk-caption, .rz-tray-label .dk-label { color: #e2cfa4; }
.rz-tray-label.rz-bad { color: #ffb3aa; }
/* more of something than any order on this stall ever asks for: look here now */
.rz-tray-label.rz-over { color: var(--dk-gold); }
/* …and the way back, named. 多了 sits at the reading tier because it is hanzi a
   player reads to play; the English beside it is a label, not a gloss, because
   it states the MOVE and the move is a fact about this stall. */
.rz-overhint { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 10px; }
.rz-overhint b.han { font-size: var(--dk-read); font-weight: 800; color: var(--dk-gold); }
.rz-overhint .dk-label { color: #f0dcb0; }
.rz-strike { text-decoration: line-through; margin-right: 6px; }
/* the English half of a bilingual label, printed inline right after its hanzi:
   the tray's 量词不对 and the teaching line's 他要的 / 你端的. It is an
   instruction, not a gloss, so it is at the label floor and never at caption. */
.rz-en-in { margin-left: 6px; font-style: normal; opacity: 0.92; }

.rz-combo, .rz-dump { background: var(--dk-ink); color: var(--dk-stock);
  border: 2.5px solid var(--dk-stock); border-radius: 10px; padding: 4px 12px; }
/* HANZI NEVER SITS AT THE LABEL TIER, wherever it lands. 量词不对 on the tray,
   连单 in the combo burst and 倒掉 in the dump burst are all read to play, so
   their type is the reading tier even though the latin beside them is a label.
   (Found by the cycle-3 audit, which is the first one to look at states that
   only exist after a plate resolves — the old sweep audited a fresh stall.) */
.rz-tray-label .han, .rz-combo .han, .rz-dump .han { font-size: var(--dk-read); }

/* ------------------------------------------------------------------ PHONE
   Below 720px prom.css takes the host cutout off stage, which frees the room.
   Objects shrink; TYPE NEVER DOES. */
@media (max-width: 720px) {
  /* The header is in the flow now (see the un-float above), so its height costs
     court instead of covering it — which makes trimming it worth real pixels.
     The English subtitle is the one line that carries nothing a player needs
     mid-shift, so it goes and the header comes back to two rows. */
  .minigame.rush2 { padding-top: 8px; padding-left: 8px; padding-right: 8px; gap: 4px; }
  /* THE VERTICAL BUDGET, and it buys one specific thing: on a phone prom.css
     takes the host cutout off stage and floats caption-grade bubbles into the
     page flow at the END of it — so if the court runs long, the one bubble a
     muted player needs (his 写下来 answer, and the wage line at the curtain)
     lands under the fold. Measured at 375×812 it was starting at y=822. Every
     trim below is a caption or a gap, never a type size and never an object a
     hand has to hit: the pinyin under each hopper is the only thing that goes,
     and it is on the teaching line and in the ledger a moment later. */
  .rz-hopper .dk-caption { display: none; }
  .rz-hopper { padding: 2px 4px 3px; }
  .rz-hopper-art { height: 20px; }
  .rz-stall { gap: 6px; }
  .rz-rack { gap: 2px; padding: 2px 8px 4px; }
  .rz-vessel svg { height: 32px; }
  .rz-tray { min-height: 68px; }
  .rz-tray-slots { min-height: 40px; }
  /* No host cutout on a phone, so the reveal has no sleeve to clear — it keeps
     the scrim (it is still text on a painting) and gives back the padding. */
  .minigame.rush2 .mg-reveal:not(:empty) { padding: 2px 12px 3px; }
  .minigame.rush2 .mg-head { width: 96vw; row-gap: 2px; }
  .minigame.rush2 .mg-head > span:not(.mg-score) { display: none; }
  /* THE PHONE DROPS A CLAUSE, NEVER A GLOSS (2026-08-01). The old narrow rule
     hid .rz-hint i — every English clause on the ribbon — which since the two
     ribbons merged would leave 开声音 再喊 standing with no gloss at all, and a
     hanzi line with nothing beside it strands the beginner this wave is for.
     So the phone drops the SOUND CLAUSE whole instead: it is the one fact a
     phone player discovers anyway by watching the first docket resolve, and it
     retires after the first plate on every width. The replay key keeps its
     English, because nothing else on a phone says what 再喊 costs. */
  .minigame.rush2 .rz-key-sound { display: none; }
  .minigame.rush2 .rz-hint { padding: 1px 11px 3px; }
  .rz-court { gap: 5px; }
  .rz-rail { min-height: 124px; gap: 8px; }
  /* 172px, not 164: the header has to carry 单 N + 改 + 再喊 on ONE row when he
     amends an order, and a wrapped header grows the rail by 28px — which is
     exactly the 28px that puts his bubble back under the fold. Two of these
     plus the gap is 352px, inside a 375px screen's 359px of usable width. */
  .rz-docket .dk-docket { width: 172px; padding-left: 10px; padding-right: 10px; }
  .rz-docket .dk-docket-hd { gap: 5px; flex-wrap: nowrap; }
  .rz-amendmark { padding: 0 5px 1px; }
  .rz-amendmark + .rz-again { margin-left: 5px; }
  .rz-again { padding: 0 5px 1px; }
  /* 164px of paper carries 单 N, 再喊 and the slip's own line, so the chalk
     button drops the redundant half of its English ("write it" is what 写下来
     says) and keeps the half that is a fact. Shorten the words, never the type
     — nothing on this docket goes below its tier at any width. */
  .rz-chalk .rz-cost i, .rz-ccnote i, .rz-earonly .rz-cost i { display: none; }
  .rz-slot { min-height: 52px; }
  .rz-cust { width: 32px; height: 38px; }
  /* superseded by the vertical budget above; widths stay, heights come down */
  .rz-hooks { gap: 4px; flex-wrap: nowrap; }
  .rz-hook { width: 52px; }
  .rz-vessel { width: 52px; }
  .rz-vessel svg { width: 46px; }
  .rz-mw { padding: 0 6px 1px; }
  .rz-hoppers { gap: 5px; }
  .rz-hopper { width: 82px; }
  .rz-hopper-art { width: 44px; }
  .rz-bench { gap: 6px; }
  .rz-wokwrap { flex-direction: row; gap: 8px; }
  .rz-wok { width: 70px; height: 50px; }
  /* the stacked English holds at every width — the type never shrinks, so the
     bucket keeps the two rows and only loses the padding around them */
  .rz-bin { width: 92px; height: 56px; }
  .rz-tray-slots { gap: 10px; }
  .rz-unit { width: 42px; height: 36px; }
}

/* ------------------------------------------------- 320px: THE RACK FITS
   Found while measuring the round-8 plaque finding, at the same width the
   judges' narrow sweep photographs. The rack above is sized for 375: six hooks
   at 52px with 4px of air is 332px of hooks inside a 348px rack, and a 320px
   screen is 28px short of that — so the stage clipped the two OUTER vessels.
   Measured: 串 painted from x=-1 and its pinyin from x=-2, 个 ran to x=321.
   The leftmost classifier in a drill whose entire subject is the classifier
   was being cut in half by the bezel, in both themes.
   Nothing here touches type: 串 stays at --dk-display, the pinyin stays at
   --dk-caption, every hook stays a 44px hit target. The hooks give back the
   air BETWEEN them and the drawings come down 6px — shape still carries the
   two confusable pairs (根/个, 碗/笼) at 40px, which is where the tray's own
   units already live. 6×46 + 5×3 + 16 of rack padding = 307 inside 320. */
@media (max-width: 359px) {
  .rz-hooks { gap: 3px; }
  .rz-hook { width: 46px; }
  .rz-vessel { width: 46px; }
  .rz-vessel svg { width: 40px; }
  .rz-mw { padding: 0 4px 1px; }
  .rz-rack { padding-left: 6px; padding-right: 6px; }
}

/* --------------------------------------------------------- REDUCED MOTION
   Movement goes; state stays. A hot docket keeps its vermillion ring, a folded
   customer keeps their posture, the flame keeps its height, the tray keeps its
   load — the player who cannot take motion loses nothing they need. */
@media (prefers-reduced-motion: reduce) {
  .rz-docket, .rz-docket.rz-gone, .rz-hot, .rz-fold .rz-cust,
  .rz-flame i, .rz-wok.rz-flare, .rz-unit.rz-land, .rz-hopper.rz-pouring::after,
  .rz-again.rz-rung, .rz-amended .dk-docket, .dk-docket.rz-calling { animation: none; }
  .rz-cust, .rz-order, .rz-vessel, .rz-tray, .rz-hopper { transition: none; }
  /* The chalk still ARRIVES — it just arrives without the dust, because a
     player who cannot take motion must still see the words appear. Same for
     the 改 mark and the mime: they stop moving, they do not stop existing, and
     the mime's dots go solid so "he is shouting right now" is still legible. */
  .rz-order.rz-chalkin, .rz-amendmark { animation: none; opacity: 1; }
  .rz-mime i { animation: none; opacity: 0.9; }
  /* The 量词 still lands in its hole and the wiped line is still wiped — both
     are information, so both stay; only the drop and the sweep go. */
  .rz-mwfill { animation: none; opacity: 1; transform: none; color: var(--dk-ink); }
  .rz-ph.rz-wiped > i { animation: none; }
  /* The surplus unit stops bobbing and STAYS MARKED — gold outline instead of
     gold motion, because "this is the one to pull off" is information, not
     decoration. The toss never renders at all (the JS skips the flight); the
     bucket's level still rises, it just rises without the settle. */
  .rz-group.rz-over .rz-unit:last-child {
    animation: none; outline: 3px solid var(--dk-gold); outline-offset: 2px; border-radius: 6px;
  }
  .rz-unit, .rz-unit:hover { transition: none; transform: none; }
  /* the tap-refusal nudge stops pulsing and just HOLDS the gold ring for its
     900ms, and the rack's line stops bobbing and stays gold: "you pressed it,
     it wants to be carried, and it goes THERE" is information, the motion is
     not. Both states survive; only the movement goes. */
  .rz-tray.rz-tray-nudge { animation: none; outline: 3px dashed var(--dk-gold); outline-offset: 6px; }
  .rz-rack-hd.rz-rack-say { animation: none; }
  .rz-bin.rz-bin-used { animation: none; }
  .rz-bin::before { transition: none; }
}

/* Raster props are opt-in. The shipped CSS/SVG board remains the complete
   default and is also the per-image error fallback in storybook mode. */
.rush2 .rz-riso-asset,
.rush2 .rz-riso-cell,
.rush2 .rz-riso-preload { display: none; }
.rush2 .rz-riso-host,
.rush2 .rz-riso-fallback { display: contents; }

/* ============================================================ FTUE (v17)
   The goal chip in the head, the practice rail under the coach, and the
   self-paced end sheet. JS: the FTUE block in rush2.js; engines in
   drills/manual.js + tutorial.js; chip/verdict pieces in drill-manual.css. */
/* the head plaque's vertical rhythm must not change: the chip's flag hangs
   off the score line's baseline like the counters around it */
.rush2 .rz-goal { vertical-align: baseline; }
.rush2 .rz-goal .dk-goal-zh { font-size: var(--dk-read); }
/* 320-430px: the head is one line by round-8 decree — the chip sheds its
   gloss (the manual and the verdict both state the pass line) and keeps the
   number, which is the part that moves. */
@media (max-width: 430px) {
  .rush2 .rz-goal .dk-goal-en { display: none; }
}

/* the coach's practice rail: the real shift's paper hides while its clocks
   are paused, so the stage holds exactly the docket being taught */
.rush2.rz-tutoring .rz-docket:not(.rz-practice) { display: none; }

/* ------------------------------------------------------------ the end sheet
   Self-paced: verdict against the stated goal, every order in writing, and
   收工 as the only way off. Sits under the finale layer (z 7) so the curtain
   still lands on top the moment the player clocks out. */
.rz-endsheet {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
  background: rgba(14, 6, 24, 0.62); overflow-y: auto;
}
.rz-endsheet .dk-goal-verdict { position: static; transform: none; flex: none; }
.rz-recap { display: flex; flex-direction: column; gap: 6px; width: min(460px, 94%); flex: none; }
.rz-recap-hd { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.rz-recap-hd .dk-label { color: var(--dk-ink-soft); font-weight: 700; }
.rz-recap-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  border-top: 2px dashed rgba(36, 19, 53, 0.2); padding-top: 5px;
}
.rz-recap-mark { font-style: normal; font-weight: 900; font-size: var(--dk-label); flex: none; }
.rz-rr-ok .rz-recap-mark { color: var(--dk-jade-deep); }
.rz-rr-wrong .rz-recap-mark, .rz-rr-lapse .rz-recap-mark { color: var(--dk-verm-deep); }
.rz-recap-n { font-size: var(--dk-label); font-weight: 800; color: var(--dk-ink-soft); flex: none; }
.rz-recap-n .han { font-family: var(--han); font-size: var(--dk-read); color: var(--dk-ink-soft); }
.rz-recap-row > .dk-caption { color: var(--dk-ink-soft); }
.rz-recap-cc, .rz-recap-walk {
  font-size: var(--dk-caption); font-weight: 800; letter-spacing: 0.02em;
  border: 2px solid rgba(36, 19, 53, 0.35); border-radius: 999px; padding: 0 8px 1px;
  color: var(--dk-ink-soft);
}
.rz-recap-walk { border-color: var(--dk-verm-deep); color: var(--dk-verm-deep); }
.rz-endbtn { flex: none; }
/* phones: six rows plus verdict can outrun a short screen — the sheet
   scrolls from the top instead of centering past its own header */
@media (max-height: 700px) {
  .rz-endsheet { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .rz-chalk { transition: none; }
  .rz-chalk:active { transform: none; }
}

/* ============================================================================
   ROUND-9 · THE FTUE PASS — ONE LIVE VERB, AND FOUR THINGS THE JUDGE COULD NOT
   NAME
   ============================================================================
   Fifteen blind judges each saw one screenshot of one board. This one scored
   2/5 on "could you start playing", and the single strongest correlation in
   the whole set was that the only boards where a judge named the right gesture
   on the right target were the two carrying a gold-ringed live control. So the
   board now carries the kit's .dk-live and MOVES it with the hand — rack, then
   food line, then tray (see liveTarget() in rush2.js).

   For a ring to be worth anything, everything else has to stop shouting. The
   four loudest non-answers on this board, and what happened to each:

     THE HEAD carried three numbers and the judge could not say which was the
     score. 单 N/6 is gone from it (every docket wears its own 单 N and the end
     sheet recaps all six); the goal chip keeps the head, and the till is
     demoted to a subordinate readout below.

     开声音 was the brightest thing on the screen — lantern gold, and lantern
     gold is this game's one "act here now" colour, spent on a notice about
     something that already happened. The words stay, at the same two type
     tiers; the gold does not. Gold on this board now means the ring.

     THE FOOD LINE had no header at all, so two rows of near-identical tiles
     sat there with no statement of what either was for. It gets the rack's
     header treatment: 量词 above the vessels, 分量 above the food.

     THE SLOP BUCKET sat directly under the wok, both in the same dark wood, so
     "dump tray" read as words printed across the drawing of a pan. They are
     pulled apart and the bucket is given a rim that says it is a container you
     press, not the bottom half of the wok. */

/* ---- the head: one goal, one subordinate till --------------------------- */
.minigame.rush2 .mg-score { display: inline-flex; align-items: baseline; gap: 12px; }
/* The till is not the score and must not read as one. It is demoted by WEIGHT
   and by order, never by fading: an earlier draft of this rule ran it at
   opacity 0.72 and measured 4.25:1 in dark and 3.08:1 in light on the head
   plaque (prom/dev/scratch/rz-look.mjs) — a readout nobody can read is not a
   subordinate readout, it is a bug. Full ink, lighter stroke, second in the
   row, and the ¥ in front of it says what kind of number it is. Its size is
   untouched on purpose: it animates on every serve, and a shrunken number
   animating reads as a glitch rather than as a payout. */
.minigame.rush2 .mg-score .rz-till { font-weight: 600; }
.minigame.rush2 .mg-score .rz-till .dk-counter-n { font-weight: 700; }
/* the goal chip leads the row: it is the one that answers "how do I win" */
.minigame.rush2 .mg-score .rz-goal { font-weight: 800; }

/* ---- 开声音, demoted (the words stay, the gold goes) --------------------- */
/* Same selector shape as the rule above, later in the file, so it wins without
   an !important: the hanzi keeps the reading step (no hanzi on this board goes
   under --dk-read, ever) and takes the paper colour instead of the gold. */
:root .minigame.rush2 .rz-hint b.han { color: var(--dk-stock); }
/* (.mg-soundhint's own dimming went with the element — the two ribbons became
   one and it lives in the rail key's slot now. See THE ONE RIBBON above.) */
/* it is a notice about the AUDIO, and once a plate has gone out the player has
   heard everything they are going to hear from it — the module already hides
   that clause after the first serve. */
.minigame.rush2 .rz-railkey { opacity: 0.9; }

/* ---- the food line: the rack's twin ------------------------------------- */
/* Two shelves, drawn the same way, because they are the two halves of one
   answer: WHICH VESSEL (量词, dragged) and WHICH FOOD AND HOW MANY (分量,
   held). Identical panel, identical header, so the pairing is visible before a
   word is read — and so the ring can sit on either one and mean the same kind
   of thing. */
/* both shelf headers: the hanzi is a NAME and never breaks between its two
   characters. Measured at 320px, where 分量 stacked into 分 / 量 while its
   English wrapped beside it — the label may wrap, the name may not. */
.rz-rack-hd { flex-wrap: wrap; justify-content: center; text-align: center; }
.rz-rack-hd b.han { flex: none; white-space: nowrap; }
.rz-foodline {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 16px 7px; border-radius: 12px;
  background: linear-gradient(180deg, var(--rz-wood) 0%, var(--rz-wood-dk) 100%);
  border: var(--dk-line); box-shadow: var(--dk-drop);
}
/* the bench is a row of two objects now — the shelf and the wok corner. It
   already lays out flex-end/wrap 500 lines up and needs nothing added here. */

/* ---- the tray says where the plate goes --------------------------------- */
/* There is no serve button on this board and there is not going to be one: the
   hand-off is a carry, and a button would take the one spatial decision in the
   drill (WHICH customer) and turn it into a press. What was missing was the
   sentence. It appears only when the tray is genuinely carryable — food on it,
   no wrong vessel to fix, nothing surplus to pull off — so it never competes
   with 量词不对 or 多了, which are the same slot saying something more urgent. */
.rz-carry { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin-top: 1px; }
.rz-carry b.han { font-size: var(--dk-read); font-weight: 800; color: var(--dk-gold); }
.rz-carry .dk-label { color: #f0dcb0; }
/* An empty tray is a DROP TARGET and dashed is how this game says so — the
   judge read the tray as "a large empty brown rectangle with no slots, so I do
   not know how many things fit or in what order". The rule is drawn inside the
   tray's own edge, at rest, not only while something is in the air. */
.rz-tray:not(.rz-loaded) .rz-tray-slots {
  align-self: stretch; border: 2.5px dashed rgba(245, 230, 198, 0.42);
  border-radius: 8px;
}
.rz-tray.rz-loaded .rz-tray-slots { border: 2.5px dashed transparent; }

/* ---- the bucket is not the bottom of the wok ---------------------------- */
/* Measured cause of "the words 'dump tray' sit right on top of the bowl
   drawing": .rz-wokwrap stacked a dark wok on a dark bucket 10px apart, both
   --rz-wood-dk against a night backdrop, and the wok's own drop shadow closed
   the gap. More air, and a cream rim across the top of the bucket so the eye
   finds an edge where the object starts. */
/* …on the wide board only. Below 720px .rz-wokwrap turns into a ROW and sets
   its own 8px gap; this rule sits later in the file, so left unscoped it would
   have quietly re-opened that gap to 16px on every phone. */
@media (min-width: 721px) { .rz-wokwrap { gap: 16px; } }
.rz-bin { border-top: 3px solid rgba(245, 230, 198, 0.5); }
/* the wok is a READOUT — the heat is the urgency — and it sits beside a
   control that looks like it. It steps back one notch so the pressable thing
   is the brighter of the two. */
.rz-wok { opacity: 0.88; }
.rz-wok.rz-flare { opacity: 1; }

/* ---- the ring itself ---------------------------------------------------- */
/* .dk-live paints outline + drop-shadow, so it composes with everything these
   three objects already carry (the rack and the food line have a box-shadow
   drop; the tray has an inset rule). Two collisions to keep honest:
     · the tray's landing outline (.rz-tray-open) and its nudge animation both
       write `outline`, and both are two-class selectors, so they win for the
       moment they are up — which is correct: a vessel in the air over the tray
       is more specific news than "act here".
     · a shelf is a PANEL, not a chip, so the ring wants to stand a little
       further off it than the kit's default 5px, or it reads as a border. */
.rz-rack.dk-live, .rz-foodline.dk-live { outline-offset: 7px; }
@media (max-width: 470px) {
  .rz-rack.dk-live, .rz-foodline.dk-live { outline-offset: 4px; }
}

/* Packet 06: keep the goal short and feedback at the active rail. */
.rush2 .rz-mode, .rush2 .rz-feedback { background: var(--prom-paper); color: var(--prom-ink); border-radius: 8px; font-size: var(--prom-text-latin); padding: 8px; }
.rush2 .rz-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rush2 .rz-mode button { min-height: 44px; font: inherit; white-space: normal; padding: 8px; }
.rush2 .rz-mode span { flex: 1 1 180px; }
.rush2 .rz-feedback:empty { display: none; }
.rush2 .rz-feedback[data-kind]:not([data-kind="correct"]) { border-left: 4px solid var(--prom-danger); }
.rush2.rz-relaxed .rz-patience { visibility: hidden; }
@media (max-width: 720px) {
  .rush2 #mgBubble, .rush2 .mg-host { display: none !important; }
  .minigame.rush2 { padding: 8px 8px 24px; justify-content: flex-start; }
  .rush2 .mg-head { position: relative; inset: auto; width: 100%; height: auto; margin: 0 0 8px; padding: 8px 44px; flex-wrap: wrap; }
  .rush2 .mg-head .mg-score { flex-wrap: wrap; }
  .rush2 .rz-court { width: 100%; max-width: 100%; }
  .rush2 .rz-rail { gap: 8px; }
  .rush2 .rz-docket { min-width: 0; }
  .rush2 .rz-hooks, .rush2 .rz-hoppers { flex-wrap: wrap; }
  .rush2 .rz-order { overflow-wrap: anywhere; font-size: var(--prom-text-zh); }
  .rush2 .rz-endsheet { overflow-y: auto; max-height: 100%; }
}
.rush2.rz-relaxed .rz-pat { visibility: hidden; }
@media (max-width: 720px) {
  .rush2 .rz-goal .dk-goal-en { display: block; white-space: normal; }
  .rush2 .rz-goal { flex-wrap: wrap; }
  .rush2 .rz-rail { flex-wrap: wrap; }
  .rush2 .rz-docket { flex: 1 1 9rem; max-width: 100%; }
}
@media (max-width: 720px) {
  .rush2 .rz-docket { flex-basis: 10rem; }
  .rush2 .rz-docket .dk-docket { width: 100%; max-width: none; }
  .rush2 .rz-order .rz-ph { white-space: normal; overflow-wrap: anywhere; }
  .rush2 .rz-hopper { width: auto; min-width: 4.5rem; flex: 1 1 4.5rem; }
  .rush2 .rz-hopper b { white-space: nowrap; }
  .rush2 .rz-hook { width: auto; min-width: 3rem; }
  .rush2 .rz-hook .dk-caption { white-space: nowrap; }
}
