/* ============================================================================
   摇一杯 · MOCHI'S BOBA COUNTER — HANDS-ON   prom/js/drills/boba2.js
   ============================================================================
   This is the sole stylesheet for the current Boba Counter.

   Everything here is a THING ON A COUNTER. The counter is a lacquered slab with
   an ink edge; the ticket is paper that slides out of a printer and comes into
   focus; the graduated measure is a glass you pour into and then CARRY; the cup
   is the kit's drawn vessel gaining a layer at a time; the sink is where a
   botched measure goes. Nothing is a widget and nothing is a panel.

   What this file does NOT redraw: the cup, the fills, the settling solids, the
   docket, the chop, the pour tilt and the counter are all kit classes (.dk-*),
   and the pour/drag/grind feedback is the gesture kit's (.gk-*).

   TYPE — four steps, and there are only four, all from drill-kit.css:
     --dk-display  the station's name (the one thing the round is about now)
     --dk-read     20px, EVERY hanzi a player must read: ticket rows, ladder
                   rungs, jar labels, bin labels, the pad, the call-slip
     --dk-label    16px, latin labels and buttons
     --dk-caption  12.5px, pinyin and gloss only — never the only home of a fact
   Nothing below sets a raw font-size for anything a player reads.

   COLOUR — ink, cream stock, ONE accent (Mochi's own #a9762f), and the
   semantic three. Gold = the line your hand is standing on right now.
   Vermillion = over the brim / wrong. Teal = correct, and it is spent ONLY when
   the customer takes the cup. The liquids inside the glass are the painting,
   not the chrome.
   ========================================================================= */

.b2-game {
  --dk-accent: #a9762f;                    /* Mochi's colour, and the only accent here */
  --b2-wood: #57402a;                      /* the counter slab, lacquered */
  --b2-wood-2: #372413;
  --b2-lane: 0px;                          /* room reserved for the host + her bubble */
}

/* ====================================================== THE ENGLISH UNDER IT
   Lau: "can you have mochi's directions also show english?" and "All error
   messages should show in both english and chinese." So every line the SHOP
   says carries a gloss on the line beneath, house pattern: 汉字 first, English
   under it. It is --dk-label (16px), the latin readable floor, NOT the caption
   tier — this is read to play, and drill-kit.css reserves 14px for pinyin and
   glosses that a player "can lose entirely and still play the round". A player
   who cannot read the Chinese instruction cannot lose this one.
   NO NEW TYPE STEP: the drill still runs on the kit's four.
   The ORDER never gets one. Ticket values, the pad, the ladder rungs and the
   jar labels stay Chinese-only, because comprehending them IS the drill. */
.b2-en2 {
  display: block; font-size: var(--dk-label); font-weight: 600; font-style: normal;
  line-height: 1.28; letter-spacing: 0.01em; color: var(--paper, #f2efe9); opacity: 0.9;
}
/* on cream stock — stickers, the shift slip, the correction card — it is ink */
.b2-sticker .b2-en2, .b2-tally .b2-en2, .b2-fix .b2-en2, .b2-next .b2-en2,
.b2-mic .b2-en2 { color: var(--dk-ink-soft); opacity: 1; }
/* HER BUBBLE IS PAPER, SO THE GLOSS IS INK. Caught in the first screenshot of
   this pass: .mg-bubble is #fdf6e0 with #241335 type (prom.css), and a gloss
   inheriting the drill's night-surface --paper came out cream-on-cream at about
   1.1:1 — an English line nobody could read, which is the exact opposite of
   what fixes 1 and 4 are for. Ink, at the same soft weight the rest of the
   drill's secondary text uses on cream. It sits under her line with a hair of
   air, so the two languages read as one utterance and not two captions. */
.b2-game #mgBubble .b2-en2 { margin-top: 3px; opacity: 1; color: rgba(36, 19, 53, 0.72); }

/* ------------------------------------------------------------------ THE COURT
   The stage is a flex column with an ABSOLUTE header pinned to the top, so a
   tall drill has to reserve that band itself or the counter slides under the
   score. Top padding is the reservation; flex-start keeps the counter parked
   under it instead of drifting on a centred axis as the round's height changes. */
.minigame.b2-game { justify-content: flex-start; padding-top: 54px; }
.b2-court {
  display: flex; flex-direction: column; align-items: stretch; gap: 7px;
  width: min(860px, 95vw);
}

/* the counter itself: a slab you put things on, ink lip, the hard offset shadow
   every other object in the game casts */
.b2-counter {
  display: grid; grid-template-columns: 246px minmax(300px, 1fr) 178px;
  gap: 11px; align-items: start; padding: 9px 11px 11px;
  background: linear-gradient(180deg, var(--b2-wood) 0%, var(--b2-wood-2) 100%);
  border: 3px solid #241335; border-radius: 14px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.13), 0 5px 0 rgba(14, 6, 24, 0.8);
}

/* ============================================================ THE PAPER COLUMN
   Two surfaces, one clock. The printer's ticket is the machine's echo of the
   order; Mochi's pad is what she HEARD. Both come into focus over ~3.4s, which
   is Cooking Mama's de-blurring Add step: a listener starts at t=0 with a huge
   cushion, and a player with no sound at all waits and still fills the order.
   On an allergy round the two disagree, and the pad is the one that counts. */
.b2-game [hidden] { display: none !important; }
.b2-papercol { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }
.b2-printer { width: 100%; max-width: 214px; line-height: 0; }
.b2-printer .b2-art { width: 100%; height: auto; display: block; }
.b2-ticket { width: 100%; max-width: 244px; margin-top: -4px; padding: 8px 11px 7px; position: relative; z-index: 1; }
.b2-ticket .dk-docket-hd { padding-bottom: 4px; margin-bottom: 5px; flex-wrap: wrap; }
/* ---------------------------------------------- WHOSE PAPER IS THIS, IN WORDS
   ROUND 14, and it is a comprehension fix rather than a decoration. A blind
   judge on one screenshot of this board: "the order card at top-left and the
   小圆记下的 sentence box in the middle look like two different orders — I spent
   time checking whether they were." They are ONE order recorded twice, on
   purpose: the printer's echo and Mochi's ear, and from round 3 they disagree
   about the toppings, which is the gate the drill is built on. Neither can go.
   So each panel now NAMES ITS ROLE in the same shape — 机器打的 / 小圆听见的,
   hanzi at the reading floor with the English under it, house pattern — and
   both carry the SAME DOCKET NUMBER, which says "same order" without a sentence.
   The role line is a notice about the object, so it is glossed; the ORDER on
   both papers still carries no English at all.
   THE COLOUR IS 0.88 INK AND NOT --dk-ink-soft, which is what it started as.
   --dk-ink-soft is 0.68 and measures 5.42:1 on stock — "the darkest quiet
   allowed", i.e. no headroom at all — and Mochi's thumb dims this whole head to
   0.78 at 喊单 (.b2-ticket.covered .dk-docket-hd, itself already raised once
   from 0.55 for this exact reason). Measured on the built board it came out at
   3.46:1 under her thumb. At 0.88 the same state measures 5.4:1 and the lit
   state 10:1, and it still reads a clear step quieter than the 20px hanzi
   beside it. */
.b2-role {
  flex: 1 0 100%; margin-top: 1px;
  font-size: var(--dk-label); font-weight: 700; font-style: normal;
  line-height: 1.2; letter-spacing: 0.01em; text-transform: none;
  color: rgba(36, 19, 53, 0.88);
}
.b2-ticket.in { animation: b2Print 0.5s cubic-bezier(0.25, 1, 0.4, 1) both; }
@keyframes b2Print { from { transform: translateY(-26px) scaleY(0.72); opacity: 0; } }

.b2-row { align-items: center; gap: 8px; padding: 1px 0; }
/* THE LABEL STACKS. It used to run 杯型 size along one line, which cost the
   value column the full width of the English — 116px of the ticket's 222 on the
   加料 row — and at 16px that pushed 百香果绿茶's reading onto a second line.
   A wrapped pinyin is not itself a crime, but the COLD row has no pinyin, so
   the paper lost 15px of height the moment it went cold and every row under it
   jumped. Stacked, the label is as wide as the wider of its two words (75px at
   worst), every reading fits on one line, and the row is 47px hot and cold. */
.b2-lab { flex: none; display: grid; align-content: center; justify-items: start; }
.b2-lab .b2-slot { font-size: var(--dk-read); font-weight: 800; line-height: 1.15; color: var(--dk-ink-soft); }
/* ROUND 9 — THE TICKET HAS NO CAPTION TIER LEFT ON IT. The kit allows pinyin
   and gloss at --dk-caption on the grounds that they are the two things a
   player "can lose entirely and still play the round". That is true of a gloss
   sitting beside a picture; it is NOT true here. The pinyin on this ticket is
   what the player says out loud at 喊单 — the production gate the whole drill
   is built around — and the row's English is how a first-week player knows
   which of five near-identical hanzi labels is the sugar one. Both are read to
   play, and read-to-play has a 16px floor. They move to --dk-label, and the
   ticket now runs on two steps — 20px hanzi, 16px latin — with no caption tier
   on it at all. The drill's remaining 14px runs are the jar and cup pinyin and
   the guest's gloss, which are captions on objects and measure 5.9-11:1. */
.b2-lab .b2-en {
  font-size: var(--dk-label); font-weight: 700; font-style: normal;
  line-height: 1.15; letter-spacing: 0.01em; color: var(--dk-ink-soft);
}
.b2-val { flex: 1 1 auto; text-align: right; min-width: 0; }
/* THE RUN HUGS ITS OWN WORDS. These were full-width blocks with the glyphs
   pushed to the right end by text-align, which is invisible until something
   travels across the box: the round-9 erase then spent the first 40% of 不加's
   wipe crossing empty paper and took the characters off in a rush at the end.
   fit-content + margin-left:auto keeps the right alignment and makes the box
   the WORDS, so the wipe is over the text for its whole length whether the
   value is 不加 or 百香果绿茶. */
.b2-val .han, .b2-val .b2-py { width: fit-content; max-width: 100%; margin-left: auto; }
.b2-val .han { display: block; font-size: var(--dk-read); font-weight: 800; line-height: 1.1; }
.b2-val .b2-py {
  display: block; font-size: var(--dk-label); font-weight: 700; font-style: normal;
  line-height: 1.2; letter-spacing: 0.01em; color: var(--dk-ink-soft);
}

/* THE DE-BLUR. hanzi sharpen first, then pinyin, then the gloss. Every stage is
   a CLASS, so prefers-reduced-motion (which lands `resolved` immediately, in
   JS) loses the motion and keeps every character. */
.b2-ticket .han, .b2-padline { filter: blur(4.5px); transition: filter 0.55s ease; }
/* …except the LETTERHEAD. The de-blur is the ORDER coming into focus; whose
   paper this is does not come into focus, it is printed on the roll. It used to
   catch 涂小圆的店 with the rows and nobody minded, but the head now carries the
   panel's ROLE (机器打的 / printed by the machine — see .b2-role) and the role
   arriving late, half of it sharp and half of it blurred, is the opposite of
   what that line is for. */
.b2-ticket .dk-docket-hd .han { filter: none; }
.b2-ticket.han-in .han, .b2-pad.han-in .b2-padline { filter: blur(0); }
.b2-ticket .b2-py, .b2-ticket .b2-en { opacity: 0; transition: opacity 0.4s ease; }
.b2-ticket.py-in .b2-py { opacity: 1; }
/* ROUND 7, found while screenshotting the reduced-motion path: `py-in` is a
   STAGE OF THE DE-BLUR and the reduced-motion branch of startResolveClock()
   skips straight to `resolved` — so a player on reduced motion never got the
   pinyin at all, on any order, for the whole shift. That is the one thing the
   kit's rule forbids: reduced motion cuts the MOTION, never the information.
   `resolved` carries the reading too now, exactly as it already carried the
   gloss on the line below. Nothing changes on the normal path, where py-in
   lands a second ahead of resolved and this is already true. */
.b2-ticket.resolved .b2-py, .b2-ticket.resolved .b2-en { opacity: 1; }
.b2-ticket.resolved .han, .b2-pad.resolved .b2-padline { filter: blur(0); }

/* …AND THEN IT GOES COLD. The de-blur only bought a listener a head start if
   the paper stopped being the answer afterwards — round-4 judging: the ticket
   and the pad were "fully readable, free and untolled through the entire build
   phase, so listening is optional". The shop prints on 热敏纸 and thermal ink
   fades, so the WORDS cool away a few seconds after they resolve and the row
   labels stay: 杯型 → 品名 → 糖度 → 冰度 → 加料 is the sentence's skeleton and
   the grammar lesson, and it is printed on the 杯贴 anyway.
   The values fade on their PARENT (.b2-val, .b2-padline) rather than on the
   glyph, so this composes with the de-blur above instead of fighting it for
   specificity. 看单 removes both classes and the paper snaps back — see
   .b2-look. Nothing is ever locked and nothing is charged; the round is just
   counted as a read.

   ROUND 6 — THE CURVE IS FRONT-LOADED. It used to be a slow-start ease
   (cubic-bezier(.4,0,.7,.4)), which measured at opacity 0.99 a quarter-second
   into the fade and 0.96 more than half a second in: the first two thirds of
   FADE_MS were not a fade at all, and judging poured a whole second station off
   the "cooling" ticket. Thermal ink decays exponentially anyway — it goes fast
   and then it lingers — so the values now measure 0.80 at 250ms, 0.55 at 600ms
   and 0.21 at 1.4s, settling over the same 2.6s. Nothing snaps (a first attempt
   at cubic-bezier(.16,.9,.3,1) went 1.00 → 0.12 inside one 250ms sample, which
   is a cut, not a fade, and broke animation-grammar rule 1); the player still
   watches the paper go for a full two and a half seconds. What they no longer
   get is a full-strength answer for four seconds after their hand has moved.

   AND IT IS AN ANIMATION, NOT A TRANSITION, which is the bug the round-6 pass
   actually found. paintTicket() replaces the ticket's innerHTML every time the
   cup changes — and the first thing a player does is put a cup down. A FRESH
   node does not transition: it is born at the end value. So the old transition
   silently became a CUT the instant a station completed, and the whole 2.6s
   fade only ever played on a round where nobody touched anything. An animation
   plus a NEGATIVE start offset survives the rebuild: the JS keeps the cool-down
   start time and stamps `--b2-cool-at: -<elapsed>ms` on the (stable) paper node,
   so a row rebuilt one second into the fade is born exactly one second in.

   ROUND 7 — AND THE FADE NOW ENDS AT NOTHING. Judging measured the settled
   state and it was a resting board carrying five rows of 20px hanzi at
   1.11-1.16:1 (reproduced in both themes, prom/dev/b2-r7-audit.mjs): dimmed to
   0.11, still painted, still selectable, still in the accessibility tree.
   "Too faint to read" is not a state this game's own rules allow — the bar is
   4.5:1 or it is not text on the board. So the animation runs to opacity 0
   instead of 0.12, and boba2.js's cool() then REPLACES the words with a ghost
   the same way Mochi's thumb replaces them (.b2-ghost, .b2-padline.is-cold).
   The fade is still the whole two and a half seconds of information — you
   watch the order leave — and what it settles into is paper with a mark on it
   and nothing to squint at. The → column (what YOU poured) never fades: that
   is your own work, not the answer.

   ROUND 9 — AND IT IS NOT A FADE AT ALL ANY MORE. Round-8 judging measured the
   thing rounds 6 and 7 had built between them: "the order docket parks in a
   stable half-legible cooling tier for the WHOLE duration of the carry — 20
   measured contrast failures across both themes". Re-measured here
   (prom/dev/b2-r9-cool.mjs: the cool-down frozen instant by instant with the
   Web Animations API, then probed against the painted bitmap, both themes) it
   was worse than reported, and the reason is structural rather than a matter of
   tuning. An opacity ramp from 1 to 0 walks through EVERY value in between, so
   the ticket's 20px hanzi measured 2.86:1 at 300ms, 1.98:1 at 500ms, 1.46:1 at
   800ms and 1.17:1 at 1.2s, with the pinyin and the gloss under them at
   1.4-2.8:1 across the same window — 182 failures over seven sampled instants.
   No curve fixes that. Any cross-fade of ink against paper spends most of its
   length under 4.5:1, because that is what a cross-fade IS.
   So the ink is not dimmed any more. It is ERASED: a hard-edged wipe — a 1px
   ramp, no wider than a glyph's own antialiasing — travels right to left
   across each value, and every pixel of every character still on the paper is
   at FULL strength until the moment it is gone. Occlusion, not dimming, which
   is the same honest move Mochi's thumb already makes on this same ticket. The
   rows go one at a time, top down, 340ms apart, and the heat blot grows in
   behind the wipe so a row lands on its final mark instead of standing empty
   until the repaint. The player still watches the order leave across the whole
   2.6s, and now they can see exactly what is going. */
/* the wipe itself: a mask twice as wide as the box with one hard edge in the
   middle of it, slid across. At mask-position 0% the whole run sits in the
   opaque half; at 100% none of it does. 300% tall so a tone mark, a descender
   or an ǎ is never clipped off the top or the bottom of its own line box. */
.b2-ticket.cooling .b2-row:not(.is-ok) .b2-val > b.han,
.b2-ticket.cooling .b2-row:not(.is-ok) .b2-val > .b2-py,
.b2-pad.cooling .b2-padline.han {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - 0.5px), rgba(0, 0, 0, 0) calc(50% + 0.5px));
  mask-image: linear-gradient(90deg, #000 calc(50% - 0.5px), rgba(0, 0, 0, 0) calc(50% + 0.5px));
  -webkit-mask-size: 200% 300%; mask-size: 200% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 50%; mask-position: 0% 50%;
}
@keyframes b2Erase {
  from { -webkit-mask-position: 0% 50%; mask-position: 0% 50%; }
  to { -webkit-mask-position: 100% 50%; mask-position: 100% 50%; }
}
/* ONE ROW AT A TIME, TOP DOWN. --b2-lag is the row's place in the queue and it
   is added to --b2-cool-at, the negative resume offset the JS stamps on every
   repaint, so a row rebuilt mid-wipe comes back exactly where it left off. */
.b2-ticket .b2-row:nth-child(2) { --b2-lag: 0ms; }
.b2-ticket .b2-row:nth-child(3) { --b2-lag: 340ms; --b2-blotw: 58%; }
.b2-ticket .b2-row:nth-child(4) { --b2-lag: 680ms; }
.b2-ticket .b2-row:nth-child(5) { --b2-lag: 1020ms; --b2-blotw: 66%; }
.b2-ticket .b2-row:nth-child(6) { --b2-lag: 1360ms; --b2-blotw: 50%; }
.b2-ticket.cooling .b2-row:not(.is-ok) .b2-val > .b2-py {
  animation: b2Erase 700ms linear calc(var(--b2-cool-at, 0s) + var(--b2-lag, 0ms)) both;
}
/* the reading goes a beat before the character it sits under: the scaffold is
   the first thing the paper gives up, and the hanzi is the last */
.b2-ticket.cooling .b2-row:not(.is-ok) .b2-val > b.han {
  animation: b2Erase 700ms linear calc(var(--b2-cool-at, 0s) + var(--b2-lag, 0ms) + 170ms) both;
}
/* Mochi's pad is ONE long line — the whole sentence, and on an allergy round
   the only place the countermand is written — so it is the last thing to go,
   and it takes longer to go than any single row does. */
.b2-pad.cooling .b2-padline.han {
  animation: b2Erase 1150ms linear calc(var(--b2-cool-at, 0s) + 1360ms) both;
}
/* THE HEAT BLOT, arriving behind the wipe. Same geometry, same gradient and
   same blur as .b2-ghost below — the mark the repaint puts in the row at 2.6s —
   so when the DOM finally swaps words for ghost there is nothing to see: the
   mark is already exactly where it will be. Without this the row would stand
   blank for up to a second and a half between its own wipe and the repaint.
   z-index -1 keeps it UNDER the ink, which is what heat under print is; it is
   scoped off :not(.cold) so it hands over cleanly, and off :not(.is-covered)
   so it can never paint on a row Mochi's thumb is already holding. */
.b2-ticket.cooling:not(.cold) .b2-row:not(.is-covered):not(.is-ok) .b2-val { position: relative; }
.b2-ticket.cooling:not(.cold) .b2-row:not(.is-covered):not(.is-ok) .b2-val::before {
  content: ""; position: absolute; z-index: -1; top: 3px; right: 0; width: 0; height: 15px;
  border-radius: 8px 6px 7px 9px; transform: rotate(-0.6deg);
  background: linear-gradient(90deg,
    rgba(36, 19, 53, 0.03), rgba(36, 19, 53, 0.16) 12%, rgba(36, 19, 53, 0.11) 46%,
    rgba(36, 19, 53, 0.17) 72%, rgba(36, 19, 53, 0.04));
  filter: blur(1.6px);
  animation: b2Blot 700ms linear calc(var(--b2-cool-at, 0s) + var(--b2-lag, 0ms) + 170ms) both;
}
@keyframes b2Blot { to { width: var(--b2-blotw, 74%); } }
/* THE SETTLED STATE, and the state prefers-reduced-motion lands on directly.
   Round 7: no opacity here at all — any word still in a cold row is DISPLAY
   NONE, because a 0.11 glyph is a glyph on the board and the board's floor is
   4.5:1. The row keeps its height off .b2-ghost, which is a mark and not a
   word. `animation: none` first, or the keyframe's end value outranks these. */
.b2-ticket.cold .b2-row:not(.is-ok) .b2-val > b.han,
.b2-ticket.cold .b2-row:not(.is-ok) .b2-val > .b2-py {
  animation: none; display: none; transition: none;
}
.b2-pad.cold .b2-padline.han { animation: none; display: none; transition: none; }
/* the shop's name and the docket number are not the answer, so they never fade:
   dimming them only pushed a run of text under the contrast bar for nothing.
   ROUND 9 — and neither is the row's ENGLISH. `size / drink / sugar / ice /
   toppings` is the label's own translation, not the order: it is the half of
   the sentence's skeleton a first-week player can actually read, it is printed
   on the 杯贴's placeholder anyway, and it stays under Mochi's thumb already,
   so taking it away only when the paper cooled was the odd one out. It now
   stays in every state the label stays in, which is all of them. */

/* THE GHOST — what the heat leaves on 热敏纸 once the words have gone. It is a
   MARK, not a redaction and not a skeleton loader: pale, soft-edged, blotchy,
   and there is nothing in it to try to read, which is exactly the point. The
   wet-ink smear under Mochi's thumb (.b2-blank) is dark and deliberate — a hand
   put it there. This is the opposite: the page just stopped holding the ink. */
.b2-ghost {
  display: block; height: 15px; margin: 3px 0 4px auto; width: 74%;
  border-radius: 8px 6px 7px 9px; transform: rotate(-0.6deg);
  background: linear-gradient(90deg,
    rgba(36, 19, 53, 0.03), rgba(36, 19, 53, 0.16) 12%, rgba(36, 19, 53, 0.11) 46%,
    rgba(36, 19, 53, 0.17) 72%, rgba(36, 19, 53, 0.04));
  filter: blur(1.6px);
}
.b2-row.is-cold:nth-child(3) .b2-ghost { width: 58%; }
.b2-row.is-cold:nth-child(5) .b2-ghost { width: 66%; }
.b2-row.is-cold:nth-child(6) .b2-ghost { width: 50%; }
/* the pad's cold line borrows the covered line's shape and loses its weight —
   pencil that rubbed off, not pencil a hand covered. It has to stay VISIBLE:
   a pad with nothing on it at all reads as a bug rather than as a thing that
   faded, so this is lighter than .b2-blank and heavier than the eye's floor. */
.b2-padline.is-covered.is-cold i {
  background: linear-gradient(90deg,
    rgba(36, 19, 53, 0.05), rgba(36, 19, 53, 0.22) 10%, rgba(36, 19, 53, 0.17) 62%, rgba(36, 19, 53, 0.06));
  filter: blur(1.7px);
}

/* 看单 — the door back to the paper. It lives under the ticket, in the paper
   column, because that is the object it is about. Never gold: gold means "the
   thing to look at now" and the thing to look at now is the station your hands
   are at.

   ROUND 14 — IT HAS A BUTTON FACE NOW, AND THAT IS THE WHOLE FIX. A blind judge
   given one screenshot of this board said of it: "its border is dashed and
   faded, which everywhere else on this screen seems to mean not a button, so I
   am not sure it is pressable." They are right, and it is this board that
   taught them the rule — the 杯垫 coaster four inches to the right is a DASHED
   ghost meaning "empty slot, put a cup here", and so is the sink's outline. A
   dashed border on this counter means a place, not a control.
   So it is built the way this game builds every solid pressable thing: an ink
   outline, a flat fill, a lit top edge and a HARD OFFSET SHADOW it can be
   pressed down into. The fill is #3a2b57 — the printer's own body colour, three
   centimetres above it in ART.printer — so it reads as the button ON the
   machine that prints the ticket, which is exactly what it is. Cream on that
   measures 10.9:1, up from the 4.06:1 the old wash managed.
   The price used to be printed on it. There is no price now (Lau: the paid hint
   is a mercy); the third line says it is free instead. */
.b2-look {
  width: 100%; max-width: 244px; margin-top: 7px;
  display: grid; justify-items: center; gap: 0; padding: 5px 10px 6px; cursor: pointer;
  font-family: var(--han); color: var(--paper, #f2efe9);
  background: #3a2b57;
  border: 3px solid #241335; border-radius: 9px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 rgba(14, 6, 24, 0.8);
  transition: background 0.18s ease, transform 0.12s cubic-bezier(0.2, 1, 0.3, 1),
    box-shadow 0.12s cubic-bezier(0.2, 1, 0.3, 1);
}
.b2-look .han { font-size: var(--dk-read); font-weight: 800; line-height: 1.1; }
.b2-look .b2-rule { color: var(--paper, #f2efe9); opacity: 0.86; }
.b2-look:hover {
  background: #48376b; transform: translateY(-2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), 0 6px 0 rgba(14, 6, 24, 0.8);
}
/* pressed all the way down onto the counter — the shadow goes with the travel,
   which is the only thing that makes a hard-shadow object feel like a key */
.b2-look:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(14, 6, 24, 0.8);
}
.b2-look:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 3px; }
/* ROUND 13 — IT IS A LATCH NOW, NOT A LOOK. Lau pressed the old button and
   asked what it did, then specified the fix herself: "Change the 'Counts as
   read, not heard' button to 'Reveal words', and if user clicks it, all the
   words should be revealed permanently, instead of disappearing after a bit.
   User can click it again to hide words."
   So the state has to read at a glance and it has to read as PRESSED, not as
   spent: lit stock, ink text, an inset press shadow, aria-pressed on the node.
   Gold is not used — gold means "the thing to put your hand on now", and the
   thing to put your hand on is the station. This is a switch you left on. */
/* ON is the same object PRESSED IN: it keeps its ink outline and its travel,
   loses most of its drop shadow and gains the inset one, and turns to paper. */
.b2-look.on {
  background: var(--dk-stock); border-color: #241335;
  color: var(--dk-ink); transform: translateY(2px);
  box-shadow: inset 0 3px 0 rgba(14, 6, 24, 0.22), 0 2px 0 rgba(14, 6, 24, 0.8);
}
.b2-look.on .han, .b2-look.on .b2-en2, .b2-look.on .b2-rule { color: var(--dk-ink); opacity: 1; }
.b2-look.on .b2-rule { color: var(--dk-ink-soft); }
.b2-look.on:hover {
  background: var(--dk-stock-2); transform: translateY(1px);
  box-shadow: inset 0 3px 0 rgba(14, 6, 24, 0.22), 0 3px 0 rgba(14, 6, 24, 0.8);
}
.b2-look .b2-en2 { text-align: center; }

/* what is actually in the cup, filled in as each measure is tipped. It takes
   the pinyin's LINE (the scaffold has done its job by the time you have poured)
   but not its size: this is hanzi a player reads to judge their own work, so it
   sits at the 20px floor like everything else on the ticket. The row reserves
   the taller of the two so the paper never jitters mid-round. It carries NO
   verdict until the customer takes the cup. */
.b2-row { min-height: 47px; }
.b2-got { display: block; font-style: normal; font-size: var(--dk-read); font-weight: 800; line-height: 1.15; }
.b2-got.made { color: var(--dk-ink-soft); }
.b2-got.bad { color: #a8231a; }
.b2-mark { flex: none; font-size: var(--dk-read); font-weight: 900; line-height: 1; }
.b2-mark.ok { color: var(--dk-jade-deep); }   /* 5.2:1 on cream; #10715a was 4.78 and fell under the bar on a confirmed row's wash */
.b2-mark.bad { color: #a8231a; }
.b2-row.gno { background: rgba(168, 35, 26, 0.13); border-radius: 4px; padding: 3px 4px; margin: 0 -4px; }

/* ------------------------------------------- THE ROW YOU GOT RIGHT, CONFIRMED
   Lau: "When player gets an ingredient right, it should reveal on the menu."
   A slot the player has actually filled correctly comes back to full ink with a
   teal tick and STAYS — the wipe and the cold state are both scoped off
   .is-ok above, so the one word on the paper you have earned is the one word
   the thermal fade cannot take. It is the positive half of the feedback loop
   and it teaches by showing you the Chinese you just got right, on the object.
   TEAL, and this widens what teal meant in this file by exactly one step: it
   used to be spent only when the customer took the cup. It now means "correct",
   whether the customer has said so yet or not, which is the same word. It is
   #10715a — the ink-on-cream teal the resolve stamp already uses, 5.1:1 on the
   stock — never --dk-jade, which is a night-surface colour and 1.8:1 on paper. */
.b2-row.is-ok { background: rgba(13, 107, 87, 0.05); border-radius: 4px;
  padding: 3px 4px; margin: 0 -4px; box-shadow: inset 2px 0 0 var(--dk-jade-deep); }
.b2-row.is-ok .b2-val > b.han { color: var(--dk-ink); }
.b2-row.is-ok .b2-lab .b2-slot { color: var(--dk-ink); }
/* the moment it lands: the tick swings in with anticipation and the word inks
   itself back across the paper, left to right — the erase, run backwards, which
   is exactly what the player is being told has happened */
.b2-row.is-newok .b2-val > b.han {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - 0.5px), rgba(0, 0, 0, 0) calc(50% + 0.5px));
  mask-image: linear-gradient(90deg, #000 calc(50% - 0.5px), rgba(0, 0, 0, 0) calc(50% + 0.5px));
  -webkit-mask-size: 200% 300%; mask-size: 200% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: b2Ink 460ms cubic-bezier(0.3, 1, 0.4, 1) both;
}
@keyframes b2Ink {
  from { -webkit-mask-position: 100% 50%; mask-position: 100% 50%; }
  to { -webkit-mask-position: 0% 50%; mask-position: 0% 50%; }
}
.b2-row.is-newok .b2-mark.ok { animation: b2Tick 520ms cubic-bezier(0.3, 1.7, 0.45, 1) both; }
@keyframes b2Tick {
  0% { transform: scale(0.2) rotate(-22deg); opacity: 0; }
  40% { transform: scale(1.32) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.b2-row.is-newok { animation: b2RowGlow 900ms ease-out both; }
@keyframes b2RowGlow {
  0% { box-shadow: inset 2px 0 0 var(--dk-jade-deep), 0 0 0 3px rgba(13, 107, 87, 0.45); }
  100% { box-shadow: inset 2px 0 0 var(--dk-jade-deep), 0 0 0 3px rgba(13, 107, 87, 0); }
}

/* Mochi's pad: pencil on a cheap ruled block, lying across the counter with the
   one button that belongs to it. A strip rather than a column, so a long order
   (an allergy plus two toppings) grows sideways instead of shoving the shelf. */
.b2-padrow { display: flex; align-items: stretch; gap: 8px; }
.b2-pad {
  flex: 1 1 auto; min-width: 0; padding: 5px 11px 8px; transform: rotate(-0.5deg);
  background: repeating-linear-gradient(180deg, #f7f2e2 0 29px, #eee6d0 29px 30px);
  color: #241335; border: 3px solid #241335; border-radius: 4px 4px 8px 8px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.7);
}
/* 小圆听见的 is hanzi, so it takes the READING step — the label step is the
   latin floor and hanzi has its own, higher one. It stays legible as a kicker
   rather than as a second headline on colour, weight and tracking, which is
   what a kicker should be riding on anyway.
   ROUND 14: it carries the ticket's docket number and its own role gloss (see
   .b2-role), so the two papers on this board are visibly one order. */
.b2-padhd {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  color: var(--dk-ink-soft); letter-spacing: 0.06em; font-weight: 700;
  font-size: var(--dk-read);
}
.b2-padhd .han { letter-spacing: 0; }
.b2-padhd .b2-role { flex: 0 1 auto; margin-top: 0; letter-spacing: 0.01em; }
.b2-padline { font-family: var(--han); font-size: var(--dk-read); font-weight: 700; line-height: 1.45; }
/* same as the ticket's runs: the pencil line's box is the SENTENCE, so the
   erase crosses words for its whole length instead of starting on blank ruling.
   Only the written line — .is-covered is a flex row of smears and needs the
   full width of the pad to lay them out on. */
.b2-padline.han { width: fit-content; max-width: 100%; }
.b2-pad.pop { animation: b2Pop 0.24s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes b2Pop { 0% { transform: rotate(-0.5deg) scale(0.94); opacity: 0.4; } 70% { transform: rotate(-0.5deg) scale(1.02); } }
.b2-again {
  flex: none; display: grid; align-content: center; justify-items: center; gap: 1px;
  padding: 4px 12px; font-family: var(--han); font-size: var(--dk-read); font-weight: 800;
}
.b2-again small { font-family: inherit; font-size: var(--dk-caption); font-weight: 700; }
/* 再说一遍 reads as an icon alone — see AGAIN_ICON — so it drops the label. */
.b2-again-ic { padding: 9px; }
.b2-again-ic svg { width: 22px; height: 22px; }

/* ================================================================= THE BENCH */
.b2-bench { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
/* THE STATION SIGN. 打糖 and its gloss used to hang straight over the painting,
   and the painting is a lit wooden counter — measured in the shipped frame,
   "take a cup" came out at 3.93:1 on rgb(84,61,40), under the body bar and
   against the house rule that no text sits directly on the art. Both runs share
   one scrimmed plate now, so the ink is measured against the plate rather than
   against whatever the shop happens to be doing behind them. :not(:empty)
   because between stations there is no sign, and an empty pill is a blob. */
/* ROUND 14 — AND IT IS A SIGN, NOT A BUTTON. It used to be a dark PILL with a
   cream ring around it and its two runs on one line — 「拿杯 take a cup」 — which
   is the exact shape of every pressable pill in this game. A blind judge given
   one screenshot read it as the control: "there are two things that both claim
   to take a cup; I would press the oval first, and try the row of cups only if
   the oval did nothing." The cups ARE the control (paintShelf → .b2-cupslot,
   and the rail under them now says the gesture out loud), so this had to stop
   competing with them.
   It is now a BAND ACROSS THE WHOLE STATION with a rule under it — the shape of
   a heading, and a shape no button in this game has ever had. Buttons here are
   compact objects with an ink outline, a hard offset shadow and something to
   press down into (see .b2-look just above, and .tool in prom.css); a run of
   text spanning its whole column with a hairline under it is a label for the
   things below it. Its two runs stack, because a sign is two lines and a button
   label is one, and the node is inert (pointer-events: none) so a player who
   does try it gets no cursor, no hover and no press. The scrim stays: this sits
   over a lit painted counter and the house rule is that no text sits directly
   on the art. */
/* the margin is CLEARANCE, not air: the stage's header is absolutely positioned
   over the top of the court, and a two-line sign starting at the counter's own
   top edge had its first character sliced off by it. It costs the board nothing
   — the counter's height is set by the paper column (ticket + 看单), which is
   ~100px taller than this one. */
.b2-step {
  position: relative; margin-top: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 0; min-height: 32px; pointer-events: none;
}
.b2-step:not(:empty) {
  align-self: stretch; width: 100%; padding: 2px 12px 5px;
  background: linear-gradient(180deg, rgba(16, 9, 28, 0) 0%, rgba(16, 9, 28, 0.62) 46%,
    rgba(16, 9, 28, 0.72) 100%);
  border-bottom: 2px solid rgba(242, 228, 194, 0.28);
  border-radius: 0;
}
.b2-steptitle { font-family: var(--han); font-size: var(--dk-display); font-weight: 900; line-height: 1.1; color: var(--paper, #f2efe9); }
.b2-stepen { color: var(--paper, #f2efe9); opacity: 0.87; }
/* HEADROOM OVER THE GLASS. The bottle does not stay on the shelf while you
   pour — it flies to the rim and tips there, and it needs air above the rim to
   do that in. Without this padding it lands ON the station's name: measured
   mid-hold, the syrup bottle's art box was 809-869 x 54-110 and 打糖 was
   833-905 x 66-106, so the held object covered the first character of the word
   naming the step. The counter grows; the pour gets somewhere to happen. */
.b2-benchrow {
  display: flex; align-items: flex-end; justify-content: center; gap: 10px;
  min-height: 228px; padding-top: 56px;
}

/* ------------------------------------------------------------- THE MEASURE
   A graduated glass with the round's ladder etched on it. You pour INTO it with
   a held gesture and then CARRY it — to the cup, or to the sink. It is the one
   object in the drill that turns a Chinese word into a height. */
.b2-measurewrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.b2-measure {
  position: relative; width: 112px; height: 200px; flex: none; cursor: grab;
  background: rgba(10, 5, 20, 0.42);
  border: 3px solid #241335; border-radius: 5px 5px 13px 13px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.14), 0 5px 0 rgba(14, 6, 24, 0.75);
}
.b2-measure:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 3px; }
/* THE WELL — the box the syrup actually lives in, and the one rule in this file
   that must out-rank the gesture kit.
   levelMeter() puts `.gk-level` on this node, and gesture.js injects its own
   `.gk-level { position: relative }` into a <style> that document.head.append()
   places AFTER every <link> in index.html. Single class vs single class is a
   specificity tie, so the later sheet won: the well went `position: relative`,
   lost its `inset` box, collapsed to 0px tall, and every pour in the drill
   rendered as an empty glass — sugar, tea AND ice, since all three share this
   node. Two classes (0,2,0) beat one (0,1,0) regardless of sheet order, so the
   glass fills again whatever the kit injects next. Do not flatten this back to
   a single class. */
.b2-measure > .b2-measure-well {
  position: absolute; inset: 3px; border-radius: 2px 2px 10px 10px; overflow: hidden;
}
/* THE LIQUID ITSELF, re-stated here for the same reason the well is: everything
   the kit draws inside this glass has to lose to this file. No transition goes
   anywhere near the height — the rAF loop IS the motion, and easing it would
   smooth over the exact thing the player's hand is steering. */
.b2-measure .gk-level-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--lvl, 0) * 100%);
  background: var(--c, var(--dk-gold)); transition: none;
}
/* the column is lit where it meets air and deep at the bottom, so a tall pour
   reads as a VOLUME and not as a filled rectangle */
.b2-measure .gk-level-fill::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0) 30%,
    rgba(14, 6, 24, 0.28) 100%);
}
/* the meniscus: what tells liquid from a coloured bar. It only rocks while
   something is actually falling into the glass — a still surface means your
   hand is off, which is information. */
.b2-measure .gk-level-fill::after {
  content: ""; position: absolute; left: -9%; right: -9%; top: -5px; height: 11px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.34);
}
.b2-measure.b2-live .gk-level-fill::after { animation: b2Surface 0.4s ease-in-out infinite; }
@keyframes b2Surface { 50% { transform: translateX(4%) scaleY(0.62); } }
/* the rim: a stuck-on band, so the glass reads as a made object and not a bar */
.b2-measure::before {
  content: ""; position: absolute; left: -7%; right: -7%; top: -11px; height: 20px;
  background: var(--dk-stock); border: 3px solid #241335; border-radius: 5px;
}
.b2-measure.b2-live { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.14), 0 5px 0 rgba(14, 6, 24, 0.75), 0 0 0 3px rgba(255, 200, 74, 0.35); }
.b2-measure.b2-carry { cursor: grabbing; }
.b2-measure.b2-tipping { animation: b2Tip 0.38s cubic-bezier(0.3, 1.3, 0.5, 1); }
@keyframes b2Tip { 45% { transform: rotate(-38deg) translate(10px, -6px); } }

/* THE LADDER. Nothing here is pre-marked: the four rungs are the vocabulary
   written out, and which one the customer asked for is the comprehension task.
   `.under` = the liquid has passed this rung. `.at` = your hand is standing on
   this rung RIGHT NOW, and that is what gold means. */
.b2-ladder { position: absolute; inset: 3px; pointer-events: none; z-index: 2; }
.b2-notch {
  position: absolute; left: -3px; right: -3px; bottom: calc(var(--at) * 100%); height: 0;
  border-top: 3px solid rgba(36, 19, 53, 0.85);
}
.b2-notch b.han {
  position: absolute; right: 2px; bottom: 1px; padding: 1px 7px 2px;
  white-space: nowrap; background: var(--dk-stock); color: var(--dk-ink);
  border: 2.5px solid #241335; border-radius: 4px; box-shadow: 0 2px 0 rgba(14, 6, 24, 0.5);
  font-family: var(--han); font-size: var(--dk-read); font-weight: 800; line-height: 1.15;
  transition: background 0.14s, transform 0.14s;
}
.b2-notch.under { border-top-color: rgba(255, 255, 255, 0.55); }
.b2-notch.at { border-top-color: var(--dk-gold); border-top-width: 4px; }
.b2-notch.at b.han { background: var(--dk-gold); transform: translateX(-2px) scale(1.04); }
/* HOW WIDE THE RUNG ACTUALLY IS. The tolerance in FLOW has always been real —
   stop a hair over the line and it still reads 半糖 — but a hairline says
   "hit this exactly", so the band is the same number drawn instead of hidden.
   It sits behind the line and the label (z-index inside .b2-ladder's own
   stacking context), and it goes gold with the rung it belongs to. */
.b2-band {
  position: absolute; left: -3px; right: -3px; z-index: -1; pointer-events: none;
  bottom: calc((var(--at) - var(--tol)) * 100%);
  height: calc(var(--tol) * 200%);
  background: rgba(255, 255, 255, 0.13); border-radius: 3px;
  transition: background 0.14s;
}
.b2-notch.at + .b2-band { background: rgba(255, 200, 74, 0.28); }

/* over the brim: the glass is running down its own outside, and it is vermillion
   because that is the only thing vermillion means */
.b2-spill {
  position: absolute; left: 0; right: 0; top: -6px; height: calc(6px + var(--over, 0) * 40px);
  opacity: var(--over, 0); pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(224, 74, 58, 0.9), rgba(224, 74, 58, 0));
  border-radius: 6px 6px 0 0;
}
.b2-measure.b2-spilling { border-color: var(--dk-verm); }
.b2-measure.is-active { border-color: var(--dk-gold); }
.b2-measure.is-wrong { border-color: var(--dk-verm); }

/* the graduation READING, in the ladder's own words. Never a percentage. */
.b2-measurelab {
  min-height: 30px; padding: 3px 10px 4px; text-align: center;
  background: var(--dk-stock); color: var(--dk-ink);
  border: 2.5px solid #241335; border-radius: 5px; box-shadow: 0 3px 0 rgba(14, 6, 24, 0.6);
}
.b2-measurelab .han { font-family: var(--han); font-size: var(--dk-read); font-weight: 800; line-height: 1.2; }

/* --------------------------------------------------------------- THE SINK
   The corrective move. It costs a tip, so an overpour is never fatal and never
   free — Potion Craft's titration, in Mochi's warmest register. */
.b2-sink {
  display: grid; justify-items: center; gap: 1px; padding: 4px 5px 3px; align-self: flex-end; width: 68px;
  border: 3px dashed rgba(255, 255, 255, 0.28); border-radius: 12px;
}
.b2-sink .b2-art { width: 64px; height: auto; filter: drop-shadow(0 3px 0 rgba(14, 6, 24, 0.55)); }
.b2-sink b.han { font-size: var(--dk-read); font-weight: 800; color: var(--paper, #f2efe9); white-space: nowrap; }
.b2-sink.gk-zone-hot { border-style: solid; }

/* the finished drink gets the bench to itself, and gets to be big: the beauty
   shot before it goes out (benchmarks principle 7) */
.b2-benchrow.solo { --b2-cs: calc(var(--b2-cs0) * 1.26); }
.b2-benchrow.solo .b2-cupwrap { padding-top: 22px; }

/* ------------------------------------------------------------------ THE CUP
   ONE DRAWING, THREE SIZES. Every cup carries two unitless numbers set on the
   element (--b2-cw / --b2-ch, straight off the CUPS bank) and the sheet
   multiplies them by a single scale, --b2-cs. So the 大杯 hanging on the rack,
   the 大杯 standing on the coaster and the 大杯 in the beauty shot are the same
   object photographed from three distances — and the rack's six cups keep their
   TRUE relative heights, which is the whole reason 小杯 / 中杯 / 大杯 is
   learnable here without a single number on screen.
   `> .dk-vessel` beats drill-kit's own `.dk-vessel { --w: 96px }` on
   specificity, which is the same lesson the measure well taught. */
.b2-game { --b2-cs0: 1px; --b2-cs: var(--b2-cs0); }
.dk-vessel.b2-cup {
  --w: calc(var(--b2-cw, 88) * var(--b2-cs));
  --ht: calc(var(--b2-ch, 126) * var(--b2-cs));
}
.b2-cupzone { display: flex; align-items: flex-end; justify-content: center; min-height: 176px; }
.b2-cupwrap { position: relative; padding-top: 16px; }
/* the cup ARRIVES on the coaster: it drops the last few pixels, squashes, and
   settles — the animation grammar's follow-through, on the one object the whole
   round is built inside */
.b2-cupwrap.b2-land .dk-vessel { animation: b2Land 0.46s cubic-bezier(0.3, 1.4, 0.45, 1) both; }
@keyframes b2Land {
  0% { transform: translateY(-26px); }
  56% { transform: translateY(0) scale(1.05, 0.93); }
  100% { transform: translateY(0) scale(1, 1); }
}
/* the coaster the cup ends up standing on: the ghost's base line, made real */
.b2-matline {
  position: absolute; left: -10%; right: -10%; bottom: -8px; height: 11px; border-radius: 50%;
  background: rgba(14, 6, 24, 0.5); border: 2.5px solid rgba(246, 237, 218, 0.34);
}

/* ------------------------------------------------------------ 杯垫 / THE MAT
   The empty place, drawn as the dashed ghost of a cup. It states no size, does
   nothing when pressed, and is the only spot on the counter where a cup may be
   set down — so 拿杯 is carrying an object to a position, not answering a
   two-button question. The kit paints the drop affordance on it while a cup is
   in the air (.gk-zone-live / .gk-zone-hot), so nothing here shouts before the
   player's hand is actually moving. */
.b2-matwrap { position: relative; padding-top: 16px; align-self: flex-end; }
.b2-mat {
  display: grid; justify-items: center; gap: 1px;
  width: 128px; padding: 4px 6px 6px; border-radius: 12px;
}
.b2-mat .b2-art {
  width: 88px; height: auto; display: block;
  transition: transform 0.18s cubic-bezier(0.2, 1, 0.3, 1);
}
.b2-mat b.han { font-size: var(--dk-read); font-weight: 800; color: var(--paper, #f2efe9); }
.b2-mat small { color: var(--haze, #a49fae); }
.b2-mat.gk-zone-hot .b2-art { transform: scale(1.07); }

/* --------------------------------------------------------- 杯架 / THE RACK
   Six real cups off a real counter, hung in a shuffled order every round. The
   grammar is deliberately identical to the eight-jar shelf — drawn object, 20px
   hanzi, pinyin caption — because it is the same skill: read the labels, find
   the one the customer said. 超大杯 contains 大杯, and that is the trap. */
/* ROUND 15 — THE RACK IS A ROW ON THE POURING SHELF'S OWN PLATE, not a rail of
   its own with a second rail of instruction stacked under it. Same grammar as
   every other station on this counter (objects on top, the gesture printed
   along the plate's edge), one fewer panel on a board a judge counted eleven
   panels on, and one outline that can hold BOTH the six cups and the sentence
   telling you what to do with them — which is what the gold live ring goes
   round when the board opens. See paintShelf() in boba2.js. */
.b2-rack { --b2-cs: calc(var(--b2-cs0) * 0.6); gap: 10px; align-items: flex-end; }
/* the hint band inside the rack's plate — the same legend the pouring shelves
   carry along their own edge, kept in its own row so it centres under six cups
   of wildly different heights */
.b2-rackplate .b2-rail-hint { display: flex; min-height: 0; width: 100%; }
.b2-cupslot {
  display: grid; justify-items: center; gap: 2px; padding: 3px 5px 2px;
  background: none; border: 0; cursor: grab; font-family: var(--han);
  color: var(--paper, #f2efe9);
}
/* every cup hangs off the SAME line, whatever its height — a rack, not a chart */
.b2-cupslot .b2-cupart {
  display: flex; align-items: flex-end; justify-content: center;
  height: calc(180 * var(--b2-cs)); transition: transform 0.16s cubic-bezier(0.2, 1, 0.3, 1);
}
/* an empty cup off the rack is brighter glass than one on the counter — there
   is nothing in it to read, so the SILHOUETTE has to carry the whole object */
.b2-cupslot .dk-vessel-well { background: rgba(255, 255, 255, 0.2); }
/* THE RIM. An empty cup with no rim is a trapezoid, and six trapezoids on a
   rail read as a chart rather than as stock on a shelf. The cream band is the
   same stock, ink line and overhang as the lid the cup wears once it is on the
   coaster, so the thing on the rack and the thing on the counter are visibly
   ONE OBJECT that moved. No text on it — the size is written under the cup,
   where a hand reaching for a stack of cups would actually read it. */
.b2-cupslot .dk-vessel::after {
  content: ""; position: absolute; left: -7%; right: -7%; top: -6px; height: 11px; z-index: 2;
  background: var(--dk-stock); border: 2.5px solid #241335; border-radius: 4px;
}
.b2-cupslot b.han { font-size: var(--dk-read); font-weight: 800; line-height: 1.15; }
.b2-cupslot small { color: var(--haze, #a49fae); }
.b2-cupslot:hover:not(:disabled) .b2-cupart { transform: translateY(-7px); }
.b2-cupslot:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; border-radius: 8px; }
.b2-cupslot.b2-lifted .b2-cupart { transform: translateY(-10px); }
.b2-cupslot:disabled { cursor: default; }
.b2-cupslot.gone { visibility: hidden; }         /* that peg is empty: it is on the counter now */

/* the cup's MOUTH — the drop target a topping has to actually land in */
.b2-mouth {
  position: absolute; left: 4%; right: 4%; top: -16px; height: 34px; z-index: 3; border-radius: 10px;
}
.b2-mouth.gk-zone-live { outline-offset: 0; }
/* ice riding on the surface: solids the kit's .dk-pearls can't be, because they
   float instead of settling */
.b2-cubes { position: absolute; left: 0; right: 0; height: 20px; pointer-events: none; }
.b2-cubes i {
  position: absolute; bottom: 0; width: 14px; height: 14px; border-radius: 3px;
  background: rgba(232, 247, 251, 0.86); box-shadow: inset -3px -3px 0 rgba(120, 190, 210, 0.5);
  animation: b2Bob 2.4s ease-in-out infinite;
}
.b2-cubes i:nth-child(2) { animation-delay: 0.4s; transform: rotate(14deg); }
.b2-cubes i:nth-child(3) { animation-delay: 0.9s; transform: rotate(-11deg); }
.b2-cubes i:nth-child(4) { animation-delay: 1.3s; transform: rotate(6deg); }
@keyframes b2Bob { 50% { transform: translateY(-3px) rotate(7deg); } }
.dk-pearls i.b2-cube { border-radius: 3px; width: 12px; height: 12px; }
/* the lid goes on for the shake */
.dk-vessel.cup.lidded .dk-vessel-lid { background: var(--dk-gold); }
/* the shake itself: a real repeated gesture, and every stroke is felt */
.b2-shakeable { cursor: grab; }
.b2-shakeable:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 4px; border-radius: 10px; }
.b2-shakeable::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -12px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--dk-gold) calc(var(--shakeN, 0) * 100%), rgba(255, 255, 255, 0.18) 0);
  border: 2px solid #241335;
}
.b2-stroke { animation: b2Stroke 0.15s ease-out; }
@keyframes b2Stroke { 50% { transform: translateX(-6px) rotate(-5deg); } }
.b2-shaken { animation: b2Shaken 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes b2Shaken { 40% { transform: translateY(-8px) scale(1.04, 0.96); } }

/* ------------------------------------------------------------------ THE GUEST */
.b2-guestcol { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.b2-guest .b2-art { width: 96px; height: auto; display: block; filter: drop-shadow(0 5px 0 rgba(14, 6, 24, 0.55)); }
/* The guest's name hangs over the shop, and the shop is a PAINTING: measured,
   "a boy in a team jersey" came out at 4.41:1 on rgb(75,54,33) — under the body
   bar, and against the house rule that nothing sits directly on the art. It
   gets its own scrim, the same ink material the station sign uses. */
.b2-guestname {
  text-align: center; line-height: 1.3; padding: 3px 10px 4px; border-radius: 10px;
  background: rgba(16, 9, 28, 0.7); max-width: 15em;
}
.b2-guestname .han { display: block; font-size: var(--dk-read); font-weight: 700; color: var(--paper, #f2efe9); }
.b2-guestname small { display: block; font-size: var(--dk-caption); color: var(--paper, #f2efe9); opacity: 0.84; }

/* ------------------------------------------------------------------ THE SHELF
   Whatever this station reaches for: the syrup bottle, the ice, EIGHT similar
   jars, the topping bins. Every object is drawn and labelled in hanzi; none of
   them is a list row, and the jar rail is a reading task, not a choice of four. */
.b2-shelf { display: flex; flex-direction: column; gap: 8px; }
.b2-rail {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: flex-end;
  padding: 5px 10px 5px; min-height: 78px; width: fit-content; max-width: 100%; margin: 0 auto;
  /* ROUND 15 — THE SHELF IS A SOLID OBJECT, NOT A TINT OVER THE PAINTING. At
     0.5 alpha the shop's own lantern-lit amber came through the plate and every
     caption on it was measured against whatever the art happened to be doing:
     the cup readings came out at 2.59:1 on rgb(114,90,51) (prom/dev/
     b2-r6-paper.mjs, both themes), which is a run of text under the house's
     4.5:1 floor for no reason but transparency. At 0.84 the same readings
     measure over 5:1 and the 20px labels over 11:1, the plate reads as a shelf
     standing in front of the shop rather than a wash laid on it — and it gives
     the gold live ring a solid thing to go round, which is the whole point of
     the ring. The painting is not hidden: it is behind the shelf, where a shop
     wall is. */
  background: rgba(18, 10, 30, 0.84); border: 3px solid #241335; border-radius: 13px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.06), 0 4px 0 rgba(14, 6, 24, 0.7);
}
.b2-rail-hint { align-items: center; justify-content: center; min-height: 52px; }
/* THE POURING SHELF is one plate: the objects on top, and the gesture printed
   along its edge underneath them. One plate rather than two stacked ones,
   because the line is a label ON this shelf and not a second announcement —
   and it holds its place while the bottle is up at the glass, which is the
   moment a player is actually reading it. */
.b2-rail-pour { flex-direction: column; align-items: center; gap: 3px; padding-bottom: 7px; }
.b2-railrow {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: flex-end;
  max-width: 100%;
}
.b2-pourhint { margin: 0; padding: 5px 12px; }
.b2-jar, .b2-src, .b2-bin {
  display: grid; justify-items: center; gap: 1px; width: 86px; padding: 3px 2px 2px;
  background: none; border: 0; border-radius: 10px; font-family: var(--han);
  color: var(--paper, #f2efe9); transition: transform 0.12s, background 0.12s;
}
.b2-jar, .b2-src { cursor: pointer; touch-action: none; }
/* A jar sizes to its own label rather than forcing the label into a box. A
   reading is a WORD: bǎixiāngg / uǒ invents a syllable that does not exist, and
   in a game where the player copies what they see that is the same class of
   error as a wrong character. min-width keeps the shelf even; max-width keeps
   the longest reading from taking a whole row (it breaks at its SPACE, which is
   a real word boundary). */
.b2-jar, .b2-src { width: max-content; min-width: 86px; max-width: 130px; }
/* ------------------------------------------ THE LABEL GETS ITS OWN BAND
   PLAYTEST BUG (Lau, with a screenshot): "on the eight-jar ingredient rail, the
   LABELS OVERLAP THE JAR ART." Measured and reproduced: the DOM rects did not
   intersect — the gap between a vessel's box and its hanzi was exactly 1px —
   but a rect is not what is painted. drill-kit's .dk-vessel carries
   `filter: var(--dk-outline) drop-shadow(0 6px 0 …)`, which is a 2px ink
   outline in all four directions AND a hard shadow six pixels below it, so the
   drawn object overhangs its own box by ~8px at the bottom and lands squarely
   on the first row of characters. 红茶 and 乌龙茶 were the worst because the
   squat urns sit lowest in the row.
   So the labels get a reserved band that is wider than the overhang, on every
   object on every rail — and the type does not move: 20px hanzi, 14px reading,
   exactly as before. The tracks were already sized from the widest LABEL
   (width: max-content on .b2-jar), which is why nothing else had to change. */
.b2-jar b.han, .b2-src b.han, .b2-bin b.han, .b2-none b.han {
  font-size: var(--dk-read); font-weight: 800; line-height: 1.15; text-align: center;
  margin-top: 13px;                 /* clears the 2px outline + 6px hard shadow with room */
}
/* the bin's scoop is pulled up over its tub by a negative margin, so its label
   is already clear of the art and only needs the outline's own two pixels */
.b2-bin b.han { margin-top: 4px; }
/* and a little more air sideways, so a wide label never touches its neighbour's */
.b2-jarrow { gap: 6px 10px; }
/* The caption tier on a shelf object is its READING and nothing else — pinyin
   on the 普通话 track, jyutping on 廣東話. It is never where an instruction
   lives: the pour step used to write 按住不放 here, which put hanzi at 14px at
   the one moment the player is reading the shelf to learn the gesture. The
   instruction is a .dk-legend under the rail now, at reading size, and this
   line went back to being a reading. See paintShelf() in boba2.js.
   `min-width: 0` + `overflow-wrap` keeps a long reading (bǎixiāngguǒ lǜchá)
   inside its own object instead of running under the next jar's name, and the
   reserved two-line box keeps every hanzi name on the rail at one height. */
.b2-jar small, .b2-src small, .b2-bin small {
  font-size: var(--dk-caption); color: var(--haze, #a49fae); line-height: 1.2;
  text-align: center; min-width: 0; max-width: 100%; overflow-wrap: break-word;
}
.b2-jar small { min-height: 2.4em; }
/* ---------------------------------------- TWO SILHOUETTES ON THE 茶底 SHELF
   ROUND 7. The eight objects on this rail used to be one shape in eight
   saturated hues — the benchmark's named "six differently-coloured jars"
   failure, measured at the drink station as five saturated hue buckets against
   a cap of three. Every liquid is now a tint of one amber (see BASES/ADDS in
   boba2.js), which means the DIFFERENCE the player sees before they read has to
   come from somewhere else: the silhouette.
   A 茶底 stands in a squat wide urn — the thing a shop brews a batch of tea in
   and racks behind the counter. A flavour comes out of a tall narrow bottle.
   Both still pour: the kit's .dk-pourer tips whichever one your hand is on.
   Shape says WHICH HALF OF THE NAME this is; the 20px label says which word,
   and it is the only thing that does. */
.b2-jar .dk-vessel.b2-urn { --w: 58px; --ht: 56px; }
.b2-jar .dk-vessel.b2-urn .dk-vessel-well {
  border-radius: 5px 5px 11px 11px;
  clip-path: polygon(20% 0, 80% 0, 80% 12%, 100% 26%, 100% 84%, 87% 100%, 13% 100%, 0 84%, 0 26%, 20% 12%);
}
.b2-jar .dk-vessel.b2-bot { --w: 38px; --ht: 76px; }
.b2-jar .dk-vessel.b2-bot .dk-vessel-well {
  border-radius: 4px 4px 12px 12px;
  clip-path: polygon(33% 0, 67% 0, 67% 28%, 100% 46%, 100% 100%, 0 100%, 0 46%, 33% 28%);
}
/* the rail hangs its objects off a shared baseline, so a squat urn and a tall
   bottle sit on the same shelf instead of floating at their own mid-points */
.b2-jarrow .b2-jar { align-content: end; }
.b2-jar .dk-vessel { align-self: end; }
.b2-jar:hover:not(:disabled):not(.pouring), .b2-src:hover:not(:disabled):not(.pouring) { transform: translateY(-4px); background: rgba(255, 200, 74, 0.12); }
.b2-jar:focus-visible, .b2-src:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
.b2-jar.on { background: rgba(255, 200, 74, 0.2); box-shadow: inset 0 0 0 2.5px var(--dk-gold); }
.b2-src .b2-art { height: 50px; width: auto; }
.b2-bin .b2-art { height: 44px; width: auto; }
/* 按住 drawn on the object. The wordless half of the pour instruction: a
   fingertip on a ring that keeps filling for as long as it is held, so a player
   who reads no Chinese still knows this is a press-and-hold and the hanzi
   legend under the rail is never the ONLY home of that fact (the kit's rule for
   anything at caption size, and the reason the instruction left the caption).
   It sits on the bottle, not beside it, so the affordance and the object the
   hand goes to are the same thing. */
.b2-srcart { position: relative; display: block; line-height: 0; }
.b2-holdpip {
  /* 22x32, not 22x22: the viewBox grew a chevron above the fingertip when the
     pour became press-and-LIFT, and the disc still has to land where it did */
  position: absolute; right: -13px; bottom: -6px; width: 22px; height: 32px;
  overflow: visible; pointer-events: none;
  filter: drop-shadow(0 2px 0 rgba(14, 6, 24, 0.55));
  animation: b2HoldPress 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.b2-holdarc { animation: b2HoldFill 2.4s cubic-bezier(0.3, 0, 0.3, 1) infinite; }
@keyframes b2HoldFill {
  0%, 6% { stroke-dashoffset: 57; }
  58%, 76% { stroke-dashoffset: 0; }
  92%, 100% { stroke-dashoffset: 57; }
}
@keyframes b2HoldPress {           /* the finger presses in, then LIFTS */
  0%, 100% { transform: translateY(0) scale(1); }
  10% { transform: translateY(0) scale(0.9); }
  58%, 80% { transform: translateY(-8px) scale(0.9); }
}
/* the bottle is already in the player's hand — the prompt has done its job */
.b2-src.pouring .b2-holdpip, .b2-src.returning .b2-holdpip { opacity: 0; transition: opacity 0.1s; }
@media (prefers-reduced-motion: reduce) {
  /* motion goes, information stays: the finger rests part-way up its travel
     with the ring part-filled, which is the frame that says "press and LIFT"
     rather than "press" */
  .b2-holdpip, .b2-holdarc { animation: none; }
  .b2-holdpip { transform: translateY(-4px); }
  .b2-holdarc { stroke-dashoffset: 22; }
}
/* ONE QUICK TAP — the fine top-up, 一点点. The bottle dabs and comes back: the
   discrete half of the pour, and the reason the last few percent do not need a
   surgeon's hand. */
.b2-dab .b2-art, .b2-dab .dk-pourer { animation: b2Dab 0.26s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes b2Dab {
  0% { transform: rotate(0) translateY(0); }
  45% { transform: rotate(-22deg) translateY(-3px); }
  100% { transform: rotate(0) translateY(0); }
}
.b2-jar .b2-art, .b2-src .b2-art, .b2-bin .b2-art { filter: drop-shadow(0 3px 0 rgba(14, 6, 24, 0.55)); transition: transform 0.2s cubic-bezier(0.3, 1.35, 0.5, 1); }
/* THE POUR. The held object leaves the shelf, travels to the glass's rim and
   tips there — you cannot pour uphill, and the shelf is below the bench. JS
   measures the trip and hands it over as --px/--py; the spring and the tip are
   here. .pouring beats :hover on specificity ON PURPOSE: a hand that is already
   pouring is not hovering. */
.b2-jar.pouring, .b2-src.pouring {
  transform: translate(var(--px, 0), var(--py, 0)) !important;
  z-index: 40; position: relative; background: none;
  transition: transform 0.2s cubic-bezier(0.3, 1.35, 0.5, 1);
}
/* THE ANGLE IS THE FLOW. --tilt comes out of the same rAF tick that moves the
   liquid: 0 is upright over the rim and pours nothing, 1 is all the way over.
   The rotation is the READOUT of the control, so it cannot be smoothed into a
   lie — 60ms of ease is enough to take the stair-steps off a fast hand and
   short enough that the bottle is never showing an angle you are not holding. */
.b2-src.pouring .b2-art, .b2-jar.pouring .dk-pourer {
  transform: rotate(calc(var(--tilt, 0) * -58deg));
  transition: transform 0.06s linear;
}
.b2-src.pouring b, .b2-src.pouring small,
.b2-jar.pouring b, .b2-jar.pouring small { opacity: 0; transition: opacity 0.12s; }
/* on the way home it is still in the air over the glass for a quarter second —
   and an object in the air must not be the thing your next click lands on */
.b2-jar.returning, .b2-src.returning {
  transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1); pointer-events: none;
}
.b2-jar, .b2-src { transition: transform 0.16s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.12s; }
/* the ribbon between the spout and the rim — a pour with no stream is a slider */
/* The stream runs from the spout at the rim DOWN TO THE SURFACE, so it shortens
   as the glass fills. --drop is (1 - level), set from the same rAF tick that
   moves the liquid, and --wellh is the glass's inside height, measured once. */
/* …and the stream is the flow, not the press: --flow is 0 with the bottle
   upright, so a hand resting on the bottle without lifting it pours nothing and
   SHOWS that it is pouring nothing. */
.b2-pourstream {
  position: absolute; left: 30%; top: -10px; z-index: 5;
  width: calc(3px + var(--flow, 1) * 6px);
  opacity: var(--flow, 1);
  height: calc(13px + var(--drop, 1) * var(--wellh, 194px));
  /* the kit's stream darkens toward its foot, which inside a glass reads as a
     muddy column instead of falling syrup. In here it is lit down its length. */
  background: var(--c, var(--dk-gold));
  box-shadow: inset -2.5px 0 0 rgba(14, 6, 24, 0.32), inset 2.5px 0 0 rgba(255, 255, 255, 0.34);
}

/* a bin, and the scoop you actually drag out of it */
.b2-bin { position: relative; width: 92px; padding-bottom: 4px; }
.b2-scoop {
  background: none; border: 0; padding: 0; cursor: grab; touch-action: none;
  margin: -18px 0 -4px; filter: drop-shadow(0 3px 0 rgba(14, 6, 24, 0.6));
}
.b2-scoop:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; border-radius: 6px; }
.b2-scoop .b2-art { width: 46px; height: auto; }
.b2-scoop:hover { transform: translateY(-4px); }
.b2-bin.on { background: rgba(255, 200, 74, 0.16); box-shadow: inset 0 0 0 2.5px var(--dk-gold); }

/* ================================================ 无糖 · 去冰 · 不加 — THE CHOP
   Lau: "if the user does not need to add ice or sugar, then that should be a
   button the user can click, instead of pouring the empty jar on the boba cup."
   Right, and it is not a breach of the contract: what the contract bans is a
   control that PERFORMS A QUANTITY. There is no quantity here — "none" is a
   decision, and the real-world hand for it is to leave the bottle alone and
   mark the cup. Every other rung on every ladder is still the held, tilted,
   overshootable pour.
   It is a shop object, not a form control: a wooden-handled chop with a red
   pad, standing beside the bottle on the same rail, labelled with the rung it
   asserts. Ink and paper — never gold, never teal — because it is a tool, not
   a verdict. */
/* ROUND 15 — AND IT HAS A BUTTON FACE, for the reason 看单 got one. A DASHED
   border on this counter means A PLACE: the 杯垫 coaster is a dashed ghost of a
   cup, the sink is a dashed basin, and the kit paints its drop zones dashed. The
   chop was drawn the same way and it is not a place, it is the control that
   says 无糖 / 去冰 / 不加 — a REQUIRED, GRADED gesture (near() in handOver reads
   an untouched sugar station as 没打糖 and fails the cup), so a player who reads
   it as inert scenery loses the round without ever knowing there was a button.
   Same recipe as every solid pressable thing in this game and in this file: ink
   outline, flat fill, a lit top edge and a hard offset shadow to press it down
   into. The fill is the printer's body colour, which is what 看单 already uses,
   so the two things you PRESS on this board are visibly the same material. */
.b2-none {
  display: grid; justify-items: center; gap: 1px; padding: 3px 6px 5px; cursor: pointer;
  width: max-content; min-width: 104px; max-width: 146px;
  background: #3a2b57; border: 3px solid #241335;
  border-radius: 10px; font-family: var(--han); color: var(--paper, #f2efe9);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 rgba(14, 6, 24, 0.8);
  transition: transform 0.14s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.14s,
    box-shadow 0.12s cubic-bezier(0.2, 1, 0.3, 1);
}
.b2-none .b2-art { height: 50px; width: auto; filter: drop-shadow(0 3px 0 rgba(14, 6, 24, 0.55)); }
.b2-none b.han { font-size: var(--dk-read); font-weight: 800; line-height: 1.15; }
.b2-none small { font-size: var(--dk-caption); color: var(--haze, #a49fae); line-height: 1.2; }
.b2-none .b2-nonen { text-align: center; opacity: 0.82; }
.b2-none:hover {
  background: #48376b; transform: translateY(-2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), 0 6px 0 rgba(14, 6, 24, 0.8);
}
/* pressed all the way down onto the shelf — the shadow travels with it, which
   is the only thing that makes a hard-shadow object feel like a key */
.b2-none:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(14, 6, 24, 0.8);
}
.b2-none:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
/* the chop comes down, and the cup takes the mark */
.b2-none.b2-chopped .b2-art { animation: b2Chop 0.36s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes b2Chop {
  0% { transform: translateY(-10px) rotate(-4deg); }
  40% { transform: translateY(6px) rotate(0deg) scaleY(0.9); }
  100% { transform: none; }
}
.b2-cupwrap.b2-stamped .dk-vessel { animation: b2Stamped 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes b2Stamped { 45% { transform: translateY(3px) scale(1.03, 0.96); } }

/* ------------------------------------------------- TAP TO PLACE, DRAG TO AIM
   Lau: "If it's simply placing something somewhere, then a simple tap should do
   it." The measure is the one carried object with a real CHOICE at the end of
   it — the cup, or the sink — so a tap picks it up and both destinations light
   as targets rather than the player hauling the glass across the counter. The
   drag still works and is unchanged. */
.b2-measure.b2-inhand {
  transform: translateY(-8px) rotate(-3deg);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.14), 0 11px 0 rgba(14, 6, 24, 0.6),
    0 0 0 3px var(--dk-gold);
  transition: transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.b2-placing .b2-cupwrap, .b2-placing .b2-sink { cursor: pointer; }
.b2-placing .b2-cupwrap::after {
  content: ""; position: absolute; inset: -10px -12px; border-radius: 14px;
  border: 3px dashed var(--dk-gold); pointer-events: none;
  animation: b2Target 1.5s ease-in-out infinite;
}
.b2-placing .b2-sink { border-color: var(--dk-gold); animation: b2Target 1.5s ease-in-out infinite; }
@keyframes b2Target { 50% { opacity: 0.55; } }

/* --------------------------------------------------- FOUR SIZES, AND ONLY FOUR
   The stage's shared chrome ships a 22px counter, a 15px reveal and a 12px
   score — near-misses that would put six sizes on one screen. Pinned to the
   kit's four here so the claim in this file's header is true of a screenshot,
   not just of the rules below it. */
.b2-game .dk-counter-n { 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. */
.b2-game .mg-reveal { font-size: var(--dk-label); }
.b2-game .mg-reveal .han { font-size: var(--dk-read); }
/* THE LESSON SITS ON MATERIAL. This line used to lie straight on the painted
   night market, and the market has a lit red sign in it — the house rule is
   that text over art gets its own solid or scrim, verified by measurement and
   not by eyeballing the frame you happened to screenshot. Ink at 0.9 is the
   kit's scrim; it only paints when there is something to say. */
.b2-game .mg-reveal:not(:empty) {
  display: inline-block; padding: 5px 13px 6px; border-radius: 9px;
  background: var(--dk-mat-scrim); max-width: min(760px, 94vw);
}

/* ------------------------------------------------------------- THE CALL-OUT
   You finish a drink by SAYING it. This strip is the mic's state in the room's
   voice — and with no mic it becomes a paper call-slip Mochi reads off instead.
   Never a lockout, never a silent one. */
/* 14px of gap, not 6: the kit's live ring goes round the 杯贴 while it is the
   thing to write on, and its outline breathes out to 10px — at 6px it grazed
   the 让小圆替你喊 button underneath it. */
.b2-say {
  min-height: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; color: var(--haze, #a49fae);
}
.b2-say .han { font-size: var(--dk-read); font-weight: 800; color: var(--paper, #f2efe9); }
.b2-say .dk-label { color: var(--haze, #a49fae); }
/* Every .dk-label on this strip is a CHINESE line doing a label's job — 客人在等,
   再喊一次, 店里太吵了 — and --dk-label is the LATIN floor. Hanzi has its own,
   higher one (drill-kit.css: 20px, no exemptions), so the strip takes it. The
   single latin label here is .b2-slipwhy, the browser's own reason the mic is
   off, and that one keeps label size because latin at 16px is correct. */
.b2-say .dk-label { font-size: var(--dk-read); font-weight: 700; }
.b2-say .b2-slipwhy.dk-label { font-size: var(--dk-label); font-weight: 600; }
.b2-say.live .han, .b2-say.live .dk-label { color: var(--dk-gold); }
.b2-say.live.rec .han::after {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 7px;
  border-radius: 50%; background: var(--dk-verm); animation: b2Rec 0.9s ease-in-out infinite;
}
@keyframes b2Rec { 50% { opacity: 0.25; transform: scale(0.75); } }
.b2-say.heard.miss .han { color: #ffb9ae; }
.b2-ok { color: var(--dk-jade); font-weight: 900; font-size: var(--dk-read); }
.b2-slipwhy { color: #ffd9a6; max-width: var(--dk-measure); }
.b2-slipbtn {
  display: grid; justify-items: center; gap: 2px; padding: 7px 16px 8px; cursor: pointer;
  background: var(--dk-stock); color: var(--dk-ink);
  border: 3px solid #241335; border-radius: 8px 8px 4px 4px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.75); font-family: var(--han);
  transition: transform 0.12s, box-shadow 0.12s;
}
.b2-slipbtn .han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-ink); }
.b2-slipbtn small { color: var(--dk-ink-soft); }
.b2-slipbtn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 rgba(14, 6, 24, 0.75); }
.b2-slipbtn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(14, 6, 24, 0.75); }
/* the secondary door — she calls it for you. It stays a real, reachable, ink-
   outlined object (never a dead end) but it does not compete with the sticker:
   smaller, quieter, and it is the one that costs the production credit. */
.b2-say.slip .b2-slipbtn {
  padding: 5px 13px 6px; background: transparent; box-shadow: none;
  max-width: min(566px, 94%); border-color: rgba(242, 228, 194, 0.34);
}
.b2-say.slip .b2-slipbtn .han { font-size: var(--dk-read); color: var(--paper, #f2efe9); }
.b2-say.slip .b2-slipbtn small { color: var(--haze, #a49fae); }
.b2-say.slip .b2-slipbtn:hover { transform: none; background: rgba(242, 228, 194, 0.12); }
.b2-say.slip .b2-slipbtn:active { transform: translateY(1px); box-shadow: none; }

/* ====================================== THE COUNTER IS WAITING ON YOU TO SPEAK
   Lau: "It's unclear in the UI when the user was supposed to repeat back the
   order, and the time for the microphone to be on is automatic and so short.
   Let the user choose when to turn on the microphone and speak."
   Two failures, two fixes. The step now ANNOUNCES itself — a lit plate that
   says whose turn it is in both languages, with the shop visibly holding still
   around it — and nothing opens the microphone but the player's own hand on the
   mic. While it is open the plate says what the mic is doing, live. */
/* the gap is 14px and the bottom padding 16px because the KIT'S LIVE RING goes
   round the microphone here (setLive in boba2.js) and an outline-offset that
   breathes out to 10px needs somewhere to breathe: measured at 6px/9px it drew
   straight through the panel's own English line above the button */
.b2-say.call {
  width: min(600px, 96%); margin: 0 auto; gap: 14px;
  padding: 7px 14px 16px; border-radius: 12px;
  background: rgba(16, 9, 28, 0.86); box-shadow: inset 0 0 0 2px rgba(255, 200, 74, 0.3);
  animation: b2Ask 0.32s cubic-bezier(0.2, 1.2, 0.35, 1) both;
}
@keyframes b2Ask { from { transform: translateY(9px); opacity: 0; } }
.b2-callask .han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-gold); }
.b2-callask .b2-en2 { color: var(--paper, #f2efe9); opacity: 0.94; }
.b2-callctl { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; align-items: stretch; }
/* THE MICROPHONE, as an object you press. Gold because at this moment it IS the
   thing to put your hand on — which is the one meaning gold has in this game. */
.b2-mic {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 7px 16px 8px; font-family: var(--han);
  background: var(--dk-gold); color: var(--dk-ink);
  border: 3px solid #241335; border-radius: 9px 9px 5px 5px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.75);
  transition: transform 0.12s, box-shadow 0.12s, background 0.16s;
}
.b2-mic b.han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-ink); }
.b2-mic .b2-en2 { color: var(--dk-ink-soft); opacity: 1; text-align: left; }
.b2-mic > span:not(.b2-en2) { display: grid; justify-items: start; }
.b2-micart { width: 22px; height: 28px; flex: none; }
.b2-mic:hover { transform: translateY(-3px); box-shadow: 0 7px 0 rgba(14, 6, 24, 0.75); }
.b2-mic:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(14, 6, 24, 0.75); }
.b2-mic:focus-visible { outline: 3px solid var(--paper, #f2efe9); outline-offset: 3px; }
/* recording: the shop's own vermillion, and it says CANCEL because that is
   honestly what it does — see the kit-gap note in boba2.js. */
.b2-mic.on { background: var(--dk-stock); }
.b2-mic.on::after {
  content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--dk-verm);
  box-shadow: 0 0 0 2px #241335; animation: b2Rec 0.9s ease-in-out infinite;
}
/* the pen is always right there — never a punishment, never an escalation you
   have to fail your way into */
/* ROUND 15 — SOLID, for the same reason the chop and 看单 are. It sat beside a
   gold microphone wearing a dashed outline, which on this board is the mark of
   a PLACE (the coaster, the sink, the kit's drop zones) — and this is not a
   place, it is the other door out of 喊单, the one a player with no microphone,
   no voice or a loud room has to be able to see is pressable. Secondary to the
   mic, which is gold because gold means "your hand goes here now"; solid ink
   outline and a hard offset shadow, because that is what a button is here. */
.b2-pen {
  display: grid; justify-items: center; gap: 1px; cursor: pointer; padding: 6px 14px 8px;
  font-family: var(--han); background: #3a2b57; color: var(--paper, #f2efe9);
  border: 3px solid #241335; border-radius: 9px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 rgba(14, 6, 24, 0.8);
  transition: background 0.16s, transform 0.12s cubic-bezier(0.2, 1, 0.3, 1),
    box-shadow 0.12s cubic-bezier(0.2, 1, 0.3, 1);
}
.b2-pen b.han { font-size: var(--dk-read); font-weight: 800; color: var(--paper, #f2efe9); }
.b2-pen:hover {
  background: #48376b; transform: translateY(-2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), 0 6px 0 rgba(14, 6, 24, 0.8);
}
.b2-pen:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(14, 6, 24, 0.8);
}
.b2-pen:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
/* WHAT WENT WRONG WITH THE TAKE, and it does not go anywhere until you say so.
   It never prints the answer: 喊单 is the production gate, so a miss names the
   ROWS that never arrived and sends you back to the paper. */
/* COMPACT ON PURPOSE. The stage does not scroll, so every line this card grows
   pushes the microphone toward the bottom edge; it is measured at 1400x900 and
   1280x720 with the card open (prom/dev scratch: fold probe) and the mic and
   the pen must both be fully on screen in each. */
.b2-callmiss {
  width: 100%; padding: 5px 10px 6px; border-radius: 9px; line-height: 1.25;
  background: rgba(224, 74, 58, 0.16); box-shadow: inset 0 0 0 2px rgba(224, 74, 58, 0.4);
  text-align: left;
}
.b2-callmiss .han { font-size: var(--dk-read); font-weight: 800; color: var(--paper, #f2efe9); }
.b2-heardline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.b2-heardlab .han { color: var(--haze, #a49fae); font-weight: 700; }
.b2-heardlab .b2-en2 { display: inline; }
/* the shop holds still while it waits on you: the guest leans in, and nothing
   else on the counter is asking for a hand */
.b2-await .b2-guest .b2-art { animation: b2Lean 2.2s ease-in-out infinite; }
@keyframes b2Lean { 50% { transform: translateY(-5px) rotate(-1.6deg); } }
/* THE MICROPHONE HAS TO BE ON SCREEN. The stage does not scroll, and a missed
   take grows the panel by ~90px — measured at 1280x720 that put the mic and the
   pen at y 693-759, entirely below the fold, i.e. no way to try again. At 喊单
   there is no pour, so the bench's headroom (56px of air for a bottle to fly
   into) and the full beauty-shot scale are both paying for nothing. They are
   trimmed for the call-out only, and only where the room is genuinely short. */
@media (max-height: 860px) {
  .b2-game.b2-await .b2-benchrow.solo {
    min-height: 158px; padding-top: 8px; --b2-cs: calc(var(--b2-cs0) * 1.0);
  }
  .b2-game.b2-await .b2-court { gap: 5px; }
  /* the printer is the object the paper came out of, and the paper is already
     out — chrome, and chrome goes first when a control needs the room */
  .b2-game.b2-await .b2-printer { display: none; }
  /* a row under Mochi's thumb is a smear with no words in it, so it does not
     need the height that keeps a hot row and a cold row the same. Scoped to
     .is-covered, which only exists while the words are away: with 看单 latched
     on there are real characters in these rows and they keep their full band. */
  .b2-game.b2-await .b2-row.is-covered { min-height: 36px; }
  /* the reveal strip is EMPTY at 喊单 — it is filled at the resolve, and
     b2-await is off by then — so at the call-out it is 40px of nothing standing
     between the player and the microphone */
  .b2-game.b2-await .mg-prompt { display: none; }
  .minigame.b2-game.b2-await { padding-bottom: 14px; padding-top: 40px; }
  /* AND THEN THE PANEL IS PINNED, because trimming the counter is a losing
     race: the paper column alone is ~400px, the panel grows by ~90px the moment
     a take misses, and the stage does not scroll. Every pixel I bought back
     above went straight into the next line of feedback. So on a short screen
     the thing the player has to press is fixed to the bottom of the viewport —
     it already carries its own opaque plate and its own gold rim, so it reads
     as the shop leaning over the counter at you rather than as a floating
     widget. Tall screens keep it in the flow, where it fits. */
  .b2-game.b2-await .b2-say.call, .b2-game.b2-await .b2-say.slip {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 10px;
    z-index: 30; width: min(600px, 94vw);
    box-shadow: inset 0 0 0 2px rgba(255, 200, 74, 0.3), 0 6px 22px rgba(8, 4, 16, 0.6);
  }
  .b2-game.b2-await .b2-say.slip {
    background: rgba(16, 9, 28, 0.92); border-radius: 12px; padding: 8px 10px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .b2-await .b2-guest .b2-art { animation: none; }
  .b2-say.call { animation: none; }
}

/* A RULE IS NOT A GLOSS. drill-kit.css narrowed the caption tier to pinyin and
   glosses only — "helper text" had been read as a licence to caption an
   instruction or a rule. Everything 喊单 says about what counts as speaking is a
   RULE, so it sits at the latin label floor, told apart from body text by
   colour and weight rather than by size. */
.b2-rule { font-size: var(--dk-label); font-weight: 600; line-height: 1.25; }
.b2-say .b2-rule, .b2-credit .b2-rule { color: var(--haze, #a49fae); }
.b2-say .b2-sticker .b2-rule, .b2-tally .b2-rule { color: var(--dk-ink-soft); }
.b2-credit.said .b2-rule { color: var(--dk-gold); }

/* --------------------------------------------------------------- 杯贴
   THE CUP STICKER — the pen half of 喊单, and the reason a silent shift no
   longer masters anything. It is a real sticker: cream stock, ink edge, one
   torn corner, and a ruled line you write the drink on. Writing it is
   production; letting Mochi call it is not. Nothing here is a widget — the
   input has no box, only the rule it is written on. */
/* every rule below is scoped under .b2-say on purpose: the strip already says
   `.b2-say .han { color: var(--paper) }` for light-on-night, and paper ink on
   cream stock is invisible. The sticker is a PAPER object, so it wins back its
   own ink at equal specificity. */
.b2-say .b2-sticker {
  display: grid; gap: 7px; width: min(566px, 94%);
  padding: 9px 13px 11px; text-align: left;
  background: var(--dk-stock); color: var(--dk-ink);
  border: 3px solid var(--dk-ink); border-radius: 10px 4px 10px 10px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.75);
  animation: b2Stick 0.34s cubic-bezier(0.2, 1, 0.3, 1) both;
}
@keyframes b2Stick {
  from { transform: translateY(-9px) rotate(-1.4deg) scale(0.97); opacity: 0; }
  60%  { transform: translateY(1px) rotate(0.4deg) scale(1.02); }
  to   { transform: none; opacity: 1; }
}
.b2-say .b2-stickhead { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.b2-say .b2-stickhead .han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-ink); }
.b2-say .b2-stickhead .b2-rule { color: var(--dk-ink-soft); }
.b2-say .b2-stickrow { display: flex; align-items: flex-end; gap: 9px; }
/* the ruled line, not a form field */
.b2-say .b2-stickin {
  flex: 1 1 auto; min-width: 0; appearance: none;
  font-family: var(--han); font-size: var(--dk-read); font-weight: 800; line-height: 1.3;
  color: var(--dk-ink); background: transparent;
  border: 0; border-bottom: 3px solid var(--dk-ink); border-radius: 0;
  padding: 3px 3px 5px; outline: none;
  transition: background 0.14s, border-color 0.14s;
}
.b2-say .b2-stickin::placeholder { color: var(--dk-ink-soft); font-weight: 600; }
.b2-say .b2-stickin:focus {
  border-bottom-color: var(--dk-gold-deep);
  background: rgba(255, 200, 74, 0.2);
}
/* 贴上去 — the chop that presses the sticker onto the cup */
.b2-say .b2-stickgo {
  flex: 0 0 auto; cursor: pointer; padding: 5px 13px 6px;
  background: var(--dk-ink); color: var(--dk-stock);
  border: 3px solid var(--dk-ink); border-radius: 7px 7px 4px 4px;
  box-shadow: 0 3px 0 rgba(14, 6, 24, 0.55);
  transition: transform 0.12s, box-shadow 0.12s;
}
.b2-say .b2-stickgo .han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-stock); }
.b2-say .b2-stickgo:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(14, 6, 24, 0.55); }
.b2-say .b2-stickgo:active { transform: translateY(2px) scale(0.97); box-shadow: 0 1px 0 rgba(14, 6, 24, 0.55); }
/* why it didn't stick — the ROW to go back and read, never the word itself */
.b2-say .b2-stickwhy { color: var(--dk-verm-deep); max-width: var(--dk-measure); }
.b2-say .b2-stickwhy .han { font-size: var(--dk-read); font-weight: 800; color: var(--dk-verm-deep); }

/* ------------------------------------------------------------- 交班单
   The shift slip: the last thing on the counter before the curtain, and the
   only place the two columns sit together. It is PAPER — the same cream stock
   as the ticket and the 杯贴 — because it is the thing you take home. Two rows,
   two colours, and the colours are the semantic ones: gold for what you said
   (yours, the thing to look at), quiet paper for what you only read. No third
   hue, no verdict, no score. */
.b2-tally {
  display: grid; gap: 6px; width: 100%; padding: 8px 13px 10px;
  background: var(--dk-stock); color: var(--dk-ink);
  border: 3px solid var(--dk-ink); border-radius: 4px 10px 10px 10px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.75);
  animation: b2Tally 0.42s cubic-bezier(0.2, 1, 0.3, 1) both;
}
@keyframes b2Tally {
  from { transform: translateY(14px) rotate(0.7deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
/* 交班: the pad and the last reveal come off the counter so the slip has room
   — on a 768-tall screen they pushed its own gloss past the bottom edge. */
.b2-game.b2-closing .b2-padrow, .b2-game.b2-closing .mg-prompt { display: none; }
.b2-tallyhd { display: flex; align-items: baseline; gap: 8px;
  border-bottom: 2px dashed rgba(36, 19, 53, 0.34); padding-bottom: 4px; }
.b2-tallyhd .han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-ink); }
.b2-tallyhd .dk-caption { color: var(--dk-ink-soft); }
.b2-tallyrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.b2-tallylab { flex: 0 0 auto; display: grid; }
.b2-tallylab .han { font-size: var(--dk-read); font-weight: 900; line-height: 1.15; }
.b2-tallylab .b2-rule { line-height: 1.2; }
.b2-tallywords { flex: 1 1 240px; min-width: 0; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 3px 5px; }
.b2-tallywords .han { font-size: var(--dk-read); font-weight: 800; color: var(--dk-ink); }
.b2-tallywords i { font-style: normal; color: var(--dk-ink-soft); }
/* GOLD AS A HIGHLIGHTER, NOT AS INK. --dk-gold-deep on cream stock measures
   2.58:1, which is under the body floor — gold is a MARK on paper, never text
   on it. So the words you said keep ink and wear a marker swipe, which is also
   what a person would actually do to a shift slip. */
.b2-tallyrow.said .b2-tallywords .han {
  background: rgba(255, 200, 74, 0.5); border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(255, 200, 74, 0.5);
}
.b2-tallyrow.read .b2-tallywords .han { color: var(--dk-ink-soft); }

/* ============================================ THE BEAT ON A CUP THAT MISSED
   Lau: "when player gets something wrong after trying to speak or type
   something, it shows what's wrong for like half a sec before going to the next
   customer. Let the user read and see and correct themselves."
   So a bad cup gets a CARD, not a flash: every slot that missed, what was asked
   and what was actually made, both languages, on cream stock like every other
   piece of paper in this shop — and the shift does not move on until the player
   presses 继续 or a long fallback clock runs out. This is the ONE place the
   order's English is printed: the round is over, so it is the correction, not
   the answer key. */
.b2-fix {
  /* .mg-reveal is an inline-block that shrinks to its content, so a percentage
     width here resolves against a box this card is itself sizing — measured, it
     came out ~330px and broke 全糖多一点 across a line. Absolute, and the
     reveal's own max-width (760px) still caps it. */
  display: grid; gap: 5px; width: min(700px, 86vw); margin: 0 auto; text-align: left;
  padding: 8px 13px 10px;
  background: var(--dk-stock); color: var(--dk-ink);
  border: 3px solid var(--dk-ink); border-radius: 4px 10px 10px 10px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.75);
  animation: b2Tally 0.34s cubic-bezier(0.2, 1, 0.3, 1) both;
}
.b2-fixhd { border-bottom: 2px dashed rgba(36, 19, 53, 0.34); padding-bottom: 4px; }
.b2-fixhd .han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-ink); }
.b2-fixhd .b2-en2 { color: var(--dk-ink-soft); }
.b2-fixrow {
  display: grid; grid-template-columns: minmax(72px, auto) 1fr 1fr; gap: 4px 14px;
  align-items: start; padding: 3px 0;
}
.b2-fixrow + .b2-fixrow { border-top: 1px dashed rgba(36, 19, 53, 0.22); }
.b2-fixslot .han, .b2-fixwant .han, .b2-fixgot .han {
  display: block; font-size: var(--dk-read); font-weight: 800; line-height: 1.15; color: var(--dk-ink);
}
.b2-fixslot .b2-en2, .b2-fixwant .b2-en2, .b2-fixgot .b2-en2 { color: var(--dk-ink-soft); }
/* the tag is a RULE, not a gloss — the latin sits at 16px and is told apart by
   colour and weight, and its hanzi takes the 20px floor like every other
   character on the board. (Measured: 要 / 你做的 shipped at 16px in the first
   cut of this card, which is the one thing the type rules have no exemption
   for.) */
.b2-fixtag { display: block; font-size: var(--dk-label); font-weight: 700; color: var(--dk-ink-soft); }
.b2-fixtag b.han { font-size: var(--dk-read); font-weight: 800; color: var(--dk-ink-soft); }
/* what was asked is the lesson and wears the highlighter; what you made is
   stated plainly and is not scolded — vermillion ink, no wash, no cross */
.b2-fixwant .han { background: rgba(255, 200, 74, 0.5); border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(255, 200, 74, 0.5); width: fit-content; }
.b2-fixgot .han { color: var(--dk-verm-deep); }
.b2-fixrow.allergen .b2-fixwant .han.bad { background: none; box-shadow: none; color: var(--dk-verm-deep); }
.b2-fixgot .b2-en2.wide i { display: block; font-style: italic; }
/* 继续 — the player says when. The fallback clock behind it is generous, so a
   fast player is never held and a learner is never rushed. */
.b2-next {
  display: inline-grid; justify-items: center; gap: 1px; margin: 8px auto 0; cursor: pointer;
  padding: 6px 22px 7px; font-family: var(--han);
  background: var(--dk-stock); color: var(--dk-ink);
  border: 3px solid #241335; border-radius: 8px 8px 4px 4px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.75);
  transition: transform 0.12s, box-shadow 0.12s;
}
.b2-next .han { font-size: var(--dk-read); font-weight: 900; color: var(--dk-ink); }
.b2-next .b2-en2 { color: var(--dk-ink-soft); }
.b2-next:hover { transform: translateY(-3px); box-shadow: 0 7px 0 rgba(14, 6, 24, 0.75); }
.b2-next:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(14, 6, 24, 0.75); }
.b2-next:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 3px; }
.b2-game .mg-reveal .b2-fix + .b2-next, .b2-game .mg-reveal .b2-next { display: grid; }
/* the shift slip states the reading cost in plain words, in Mochi's voice */
.b2-tallynote { border-top: 2px dashed rgba(36, 19, 53, 0.34); padding-top: 5px; }
.b2-tallynote .han { font-size: var(--dk-read); font-weight: 700; color: var(--dk-ink); }

/* who called the cup — stamped on the reveal, at the moment it happens */
.b2-credit { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 4px; }
.b2-credit .han { color: var(--haze, #a49fae); }
.b2-credit.said .han { color: var(--dk-gold); }

/* ------------------------------------------------------------ THE ALLERGEN
   The loudest failure in the shop. One vermillion wash over the stage and a tag
   that lands hard. Mochi catches the cup — the comedy is her panic, never the
   customer's expense. */
.b2-alarm {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 55%, rgba(224, 74, 58, 0.5), rgba(224, 74, 58, 0.14) 70%, transparent);
  animation: b2Alarm 0.9s ease-out both;
}
@keyframes b2Alarm { 0% { opacity: 0; } 12% { opacity: 1; } 45% { opacity: 0.35; } 60% { opacity: 0.9; } 100% { opacity: 0; } }
.mg-burst.b2-alarmtag b.han { color: #ffd9d3; text-shadow: 0 3px 0 #7a1d16; }

/* --------------------------------------------------------------- THE TIP JAR
   ROUND 15 — AND IT SAYS WHAT IT IS. The blind judge worked out that 小费 was
   the score only by finding the word "tips" in a parenthetical on a different
   panel, and that parenthetical has since been deleted (reading is free now),
   so the one number that moves on this board had nothing naming it in a
   language they could read. It is a NOTICE, not an answer, so the house
   bilingual rule applies: the English goes under — here, beside, because the
   whole strip is one 12px line — and it stays a step quieter than the digits. */
.b2-tip { display: inline-flex; align-items: baseline; gap: 5px; }
.b2-tipen { opacity: 0.72; letter-spacing: 0.02em; }
/* the fixed tagline's gloss, same tier and the same step quieter */
.b2-tagen { opacity: 0.72; letter-spacing: 0.02em; margin-left: 6px; }
/* THE NUMBER THE TWO PAPERS SHARE. It used to be #107 — a docket stamp with
   nothing to compare it against — and it is now 单 N/5, which says "same order"
   across the ticket and the pad exactly as well while also being the shift
   counter that was making the top strip carry two different /5s. Hanzi a
   player reads sits at the reading floor like every other hanzi here; the soft
   ink keeps it subordinate to the row values, which are the order itself. */
.b2-docno, .b2-padno {
  font-size: var(--dk-read); font-weight: 700; letter-spacing: 0.02em;
  color: var(--dk-ink-soft); font-variant-numeric: tabular-nums;
}
.b2-docno b { font-weight: 800; color: var(--dk-ink); }
.b2-game .mg-reveal .dim { font-size: var(--dk-caption); color: var(--haze, #a49fae); }
.b2-game .mg-reveal .bad { color: #ffb9ae; }

/* ------------------------------------------------- KEEPING THE HOST'S LANE
   Mochi's cutout stands at stage-left and her bubble opens beside her head.
   The lane is PADDING on the stage, not a margin on the court: a margin inside
   a centred flex column still lets the court drift left on a wide screen, and
   the one thing that must never happen is a ticket under a torso.
   Below 1100px there is no honest lane left — the cutout alone is ~300px of a
   1000px stage — so she steps off and her line floats into the flow above the
   counter instead, which is exactly what prom.css already does on phones. Every
   crew.bubble() in this drill is caption-grade for that reason. */
@media (min-width: 1100px) {
  .minigame.b2-game { padding-bottom: 54px; padding-left: var(--b2-lane); }
  /* her bubble is a caption, not a billboard: capped, and opened over her own
     shoulder rather than out across the counter */
  .b2-game #mgBubble { max-width: min(22vw, 230px); }
}
@media (max-width: 1099px) {
  .minigame.b2-game { padding-bottom: 26px; }
  .b2-game .mg-host { display: none; }
}
@media (min-width: 1100px) { .b2-game { --b2-lane: 330px; } }
@media (min-width: 1400px) { .b2-game { --b2-lane: 370px; } }

/* ------------------------------------------- THE WORDS HAVE TO FEEL A POINTER
   Two surfaces on this board wrap their Chinese for the definition card and
   then sit inside a node that is deaf to the pointer, so the hairline under
   every word advertises a card that can never open. Both are the SAME shape of
   bug, and both are fixed the same one-selector-wide way the kit's other
   drills already use (drill-cloze2.css, drill-haggle2.css, drill-tone2.css):
   the WORD SPANS take the pointer back, and nothing else does.

   1. MOCHI'S BUBBLE. `.mg-host` carries an inline `pointer-events: none`
      (minigames.js stageHTML) — correctly, because her cutout is a 44%-tall
      painting standing over the counter and it must never swallow a press
      meant for a cup. `pointer-events` inherits, so the bubble pinned to her
      shoulder went deaf with her. Measured on the cold board: all 29 words of
      「欢迎光临～今天你站柜台。客人自己说，机器再打单——听到的比印出来的大。」
      hit-tested to `div.painted-bg`, never to the span. That is the board's
      biggest block of Chinese AND its live instruction, and the two-line deal
      deleted a printed line from the labels on the promise that the card would
      give it back.
      Only the spans are exempted, never her paper and never her cutout, so the
      click-through the kit's rule protects is unchanged — verified by hit-test
      at four points over her art, all four still land on `div.painted-bg`.

   2. THE STATION SIGN (`.b2-step`). It is inert ON PURPOSE — a band of text
      across the counter with a rule under it is a heading, and the note above
      `.b2-step` explains that it is `pointer-events: none` so a player who
      tries to press it gets no cursor, no hover and no press. That reasoning
      is about the SIGN, not about its words: 拿杯 measured dead the same way.
      Hover consumes no click, so giving the two word spans the pointer back
      leaves the sign exactly as unpressable as it was — the band itself still
      takes nothing — while the hairline it already paints stops lying.

   Nothing here becomes newly pressable: a `.w` carries no handler of its own,
   the desktop path is hover, and game.js refuses any `.w` that sits inside a
   control whatever this file says. */
.b2-game .mg-bubble .w,
.b2-game .b2-step .w { pointer-events: auto; }

/* ---------------------------------------------- NARROW LANDSCAPE (721-1200)
   Objects shrink. Type does not. */
@media (min-width: 721px) and (max-width: 1200px) {
  .b2-counter { grid-template-columns: 214px minmax(250px, 1fr) 156px; }
  .b2-measure { width: 100px; height: 186px; }
  /* one number moves every cup in the drill — rack, counter and beauty shot */
  .b2-game { --b2-cs0: 0.86px; }
  .b2-mat { width: 116px; }
  .b2-mat .b2-art { width: 78px; }
  .b2-benchrow { gap: 8px; min-height: 226px; }
  .b2-sink { width: 62px; } .b2-sink .b2-art { width: 40px; }
  .b2-jar, .b2-src { min-width: 78px; max-width: 118px; }
  .b2-bin { width: 82px; }
}

/* ------------------------------------------------------------------- PHONES
   Below 720px prom.css takes the host off stage, so the lane goes away and the
   counter stacks: paper and guest share a row, the bench takes the next, the
   shelf wraps. OBJECTS shrink. TYPE DOES NOT — every hanzi above stays at the
   20px floor, because a misread character is this game's failure state. */
@media (max-width: 720px) {
  /* prom.css takes the host off stage here, so the lane goes away and the
     counter stacks. OBJECTS shrink; TYPE DOES NOT — every hanzi above stays at
     the 20px floor, because a misread character is this game's failure state.
     The priority when room runs out is that the BENCH and the SHELF — the two
     things the player's hands need — stay above the fold; the ticket and the
     pad are read once at the top of the round and may scroll. */
  .minigame.b2-game { padding-top: 94px; padding-bottom: 14px; }
  .b2-court { width: 97vw; gap: 7px; }
  .b2-counter { grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; padding: 7px 8px 9px; }
  .b2-papercol { grid-column: 1; grid-row: 1; }
  .b2-guestcol { grid-column: 2; grid-row: 1; }
  .b2-bench { grid-column: 1 / -1; grid-row: 2; }
  .b2-printer { display: none; }
  .b2-guest .b2-art { width: 62px; }
  .b2-guestname small { display: none; }
  /* the pinyin rides BESIDE the hanzi instead of under it: same five rows, same
     20px hanzi, ~80px less paper, so the BENCH and the SHELF — the two things
     the hands need — are on screen together. The shelf also jumps ahead of the
     note for the same reason: you pour from it, you only read the note once. */
  .b2-ticket { max-width: none; margin-top: 0; }
  /* the head used to go entirely here, on the grounds that the shop's name and
     the order number are chrome. It is not chrome any more: it is the line that
     says this paper is the MACHINE's copy and that the note below it is the
     same order (see .b2-role). So the hanzi and the number stay — one 24px line
     — and what goes on a phone is the English under them, on both papers. */
  .b2-ticket .dk-docket-hd { padding-bottom: 2px; margin-bottom: 3px; border-bottom-width: 1px; }
  .b2-ticket .dk-docket-hd .b2-role, .b2-padhd .b2-role { display: none; }
  .b2-val { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 7px; }
  /* the runs sit SIDE BY SIDE here, so the fit-content + margin-left:auto that
     right-aligns them in the stacked desktop column has to come off: an auto
     margin on a flex item would shove the reading away from its own hanzi */
  .b2-val .han, .b2-val .b2-py { display: inline; width: auto; margin-left: 0; }
  .b2-court > .b2-counter { order: 1; }
  .b2-court > .b2-shelf { order: 2; }
  .b2-court > .b2-padrow { order: 3; }
  .b2-court > .b2-say { order: 4; }
  .b2-pad { padding: 4px 8px 7px; }
  .b2-again { padding: 3px 8px; }
  .b2-step { min-height: 28px; }
  /* the bench reserves the tallest station so the counter never jitters between
     stations; on a phone that reservation costs the rack its second shelf, so
     it is trimmed to what the measure actually needs and no more */
  .b2-benchrow { gap: 6px; min-height: 182px; }
  .b2-measure { width: 94px; height: 170px; }
  .b2-game { --b2-cs0: 0.73px; }
  .b2-mat { width: 102px; padding: 3px 5px 5px; }
  .b2-mat .b2-art { width: 68px; }
  /* six cups will not sit in one 375px row without dropping the hanzi below
     its floor, so the rack becomes a two-shelf 3x2 grid — a tidy rack, not a
     ragged wrap with two cups pushed under the fold. The DRAWINGS shrink hard
     (their job on a phone is only to say "cup"); the LABELS, which are the
     whole reading task, stay at 20px like everything else. */
  .b2-rack {
    --b2-cs: calc(var(--b2-cs0) * 0.44);
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 3px 2px; width: 100%; padding: 4px 6px;
  }
  .b2-cupslot { padding: 2px 2px 1px; }
  .b2-cupslot .b2-cupart { height: calc(150 * var(--b2-cs)); }
  .b2-cupzone { min-height: 148px; }
  .b2-sink { width: 64px; } .b2-sink .b2-art { width: 34px; }
  /* A reading is a WORD and must never be cut through a syllable —
     wūlóngc/há teaches a syllable that does not exist, and the player copies
     what they see. So on a phone an object still sizes to its own label instead
     of the label being forced into a 70px box: min-width keeps the shelf even,
     and max-width keeps 百香果绿茶 from taking a whole row (it breaks at its
     SPACE, which is a real word boundary). */
  .b2-src { min-width: 70px; max-width: 112px; }
  .b2-bin { width: max-content; min-width: 74px; max-width: 112px; }
  /* Eight jars wrapping freely on a phone came out 4 / 3 / 1, and an orphan on
     the last row reads as an accident rather than a shelf. Three tidy columns
     is the same idiom the rack already uses one breakpoint up, costs the same
     three rows, and gives every reading a wide enough cell to sit on one line
     with no syllable cut in half. */
  .b2-jarrow {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 3px; width: 100%;
  }
  .b2-jarrow .b2-jar { width: auto; min-width: 0; max-width: 100%; }
  .b2-src .b2-art { height: 46px; }
  .b2-bin .b2-art { height: 42px; }
  .b2-notch b.han { padding: 1px 5px 2px; }
  /* the subtitle is helper text; the fact it carries is Mochi's round-1 line */
  .b2-game .mg-head > span:not(.mg-score) { display: none; }
}

/* --------------------------------------------- MOTION RESPECTS THE PLAYER
   Same contract as the kit: entrances land in their final state, loops stop,
   and every piece of STATE survives — the liquid still has its height, the
   ladder rung you are on is still gold, the spill is still vermillion, and the
   de-blur is landed sharp by the JS the moment reduced motion is on, so no
   character is ever hidden behind an animation a player cannot see. */
@media (prefers-reduced-motion: reduce) {
  .b2-ticket.in, .b2-pad.pop, .b2-cubes i, .b2-say.live.rec .han::after,
  .b2-measure.b2-tipping, .b2-stroke, .b2-shaken, .b2-cupwrap.b2-land .dk-vessel,
  .b2-measure.b2-live .gk-level-fill::after { animation: none; }
  .b2-alarm { animation: none; opacity: 0.55; }
  .b2-ticket .han, .b2-padline, .b2-ticket .b2-py, .b2-ticket .b2-en,
  .b2-cupslot .b2-cupart, .b2-jar, .b2-src, .b2-jar .dk-pourer, .b2-notch b.han,
  .b2-slipbtn { transition: none; }
  /* the paper still goes cold — that is INFORMATION, and the whole reason
     reading is no longer free — it just does not fade on screen. The JS lands
     `cooling` and `cold` together under reduced motion, and round 7's cool()
     swaps the words for the ghost in the same tick, so a reduced-motion player
     lands directly on the settled state: paper, a mark, and no run of text
     anybody has to squint at. Nothing moves and nothing is lost. */
  .b2-ticket.cooling .b2-row:not(.is-ok) .b2-val > b.han,
  .b2-ticket.cooling .b2-row:not(.is-ok) .b2-val > .b2-py {
    animation: none; transition: none; display: none;
  }
  .b2-pad.cooling .b2-padline.han, .b2-pad.cold .b2-padline.han {
    animation: none; transition: none; display: none;
  }
  /* the wipe is the MOTION and the row's mark is the STATE, so nothing is lost
     by having no wipe: startCooling() calls cool() in the same tick here, the
     repaint lands the real .b2-ghost immediately, and the growing heat blot
     (scoped to .cooling:not(.cold)) never gets a frame to exist in. */
  .b2-ghost, .b2-padline.is-covered.is-cold i { filter: none; }
  .b2-dab .b2-art, .b2-dab .dk-pourer { animation: none; }
  .b2-src.pouring .b2-art, .b2-jar.pouring .dk-pourer { transition: none; }
  /* the sticker still ARRIVES — it just arrives without the flick. Its state
     (focus rule, vermillion note, gold credit) is colour and position, never
     motion, so nothing is lost here. */
  .b2-say .b2-sticker, .b2-tally { animation: none; }
  .b2-say .b2-stickin, .b2-say .b2-stickgo { transition: none; }
}

/* ---------------------------------------------------------------------------
   喊单: THE TICKET GOES UNDER HER THUMB
   ---------------------------------------------------------------------------
   Round-4 judging typed the order straight off these rows into the 杯贴 and
   banked four phrases as permanently mastered. The production gate cannot have
   the answer painted beside the input, so at the call-out Mochi's hand comes
   down on the paper and the value column becomes a smear of wet printer ink.
   The LABELS stay — 杯型 → 品名 → 糖度 → 冰度 → 加料 is the sentence's shape,
   which is the lesson, not the answer.

   It is a cover, not a deletion: the rows keep their height so the paper does
   not jump, the values are gone from the DOM (a smudge you can select and copy
   is not a smudge), and 看单 lifts it whenever the player wants.  */
.b2-ticket.covered { transform: rotate(-0.8deg); }
/* 0.55 put the shop's name at 3.66:1 — a dimmed heading is still a run of text
   and the bar does not care that it is decoration */
.b2-ticket.covered .dk-docket-hd { opacity: 0.78; }
.b2-row.is-covered .b2-lab .b2-slot { color: var(--dk-ink-soft); }
/* a brush stroke, not a skeleton loader: solid ink, soft dry-brush ends, one
   degree off level because a hand drew it */
.b2-blank {
  display: block; height: 17px; margin: 2px 0 2px auto; width: 76%;
  border-radius: 9px 7px 8px 6px; transform: rotate(-0.7deg);
  background: linear-gradient(90deg,
    rgba(36, 19, 53, 0.10), rgba(36, 19, 53, 0.62) 9%, rgba(36, 19, 53, 0.72) 55%,
    rgba(36, 19, 53, 0.55) 88%, rgba(36, 19, 53, 0.12));
}
.b2-row.is-covered:nth-child(3) .b2-blank { width: 60%; }
.b2-row.is-covered:nth-child(5) .b2-blank { width: 68%; }
.b2-row.is-covered:nth-child(6) .b2-blank { width: 52%; }
/* the pad goes with it — one line, three smeared runs of pencil */
.b2-padline.is-covered { display: flex; gap: 7px; align-items: center; min-height: 30px; }
.b2-padline.is-covered i {
  display: block; height: 15px; border-radius: 8px 6px 7px 9px; flex: 1 1 auto;
  transform: rotate(-0.4deg);
  background: linear-gradient(90deg,
    rgba(36, 19, 53, 0.12), rgba(36, 19, 53, 0.55) 8%, rgba(36, 19, 53, 0.62) 60%, rgba(36, 19, 53, 0.14));
}
.b2-padline.is-covered i:nth-child(2) { flex: 0 0 26%; }
.b2-padline.is-covered i:nth-child(3) { flex: 0 0 18%; }
.b2-pad.covered { transform: rotate(-0.5deg) translateY(1px); }

/* 看单 — the door back to the paper. It is never disabled before it is used and
   it never scolds; its whole job is to say what the look costs, in the same
   ink as everything else on the counter. Gold and vermillion mean other things,
   so this is paper on ink like the 杯贴's own rules line. */
.b2-peek {
  display: grid; justify-items: center; gap: 1px; margin-left: 10px;
  padding: 5px 12px 6px; cursor: pointer;
  background: rgba(242, 228, 194, 0.10); color: var(--paper, #f2efe9);
  border: 2px dashed rgba(242, 228, 194, 0.45); border-radius: 9px;
  transition: background 0.18s ease, transform 0.14s cubic-bezier(.2,1,.3,1), opacity 0.2s ease;
}
.b2-peek .han { font-size: var(--dk-read); font-weight: 800; line-height: 1.1; }
/* the haze token is a caption colour and this is an instruction: measured at
   4.46:1 on the counter behind it, which is under the bar. Paper, dimmed. */
.b2-peek .b2-rule { color: var(--paper, #f2efe9); opacity: 0.84; }
.b2-peek:hover { background: rgba(242, 228, 194, 0.18); transform: translateY(-2px); }
.b2-peek:active { transform: translateY(1px); }
.b2-peek:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 3px; }
.b2-peek.spent, .b2-peek[disabled] {
  opacity: 0.5; cursor: default; border-style: solid; transform: none; background: none;
}
@media (prefers-reduced-motion: reduce) {
  .b2-peek, .b2-ticket.covered, .b2-pad.covered { transition: none; transform: none; }
}

/* ======================================================== FTUE PASS (audit)
   Two fixes from the blind playtest, both about REACHING the controls:
   1. The sink stopped being a bare icon: it carries its reading and its
      English like every other tool, and it answers a tap (boba2.js).
   2. THE 720 FOLD. At 1280x720 the syrup stage's only controls — the bottle
      and the 无糖 chop on the bottom shelf — sat half under the fold with
      their labels clipped, and the stage read as having no controls at all.
      The court gives the height back at short windows: chrome first (the
      printer is the object the paper came out of, and the paper is out),
      then air (bench headroom, cup zone, rail padding), never a label and
      never a hit target. Fits 1280x720 with the whole shelf on screen. */
.b2-sink { cursor: pointer; }
.b2-sink small { font-size: var(--dk-caption); color: var(--haze, #a49fae); line-height: 1.15; }
.b2-sink .b2-en2 { color: var(--paper, #f2efe9); opacity: 0.8; margin-top: 0; }
.b2-sink:focus-visible { outline: 3px solid var(--dk-gold, #ffc84a); outline-offset: 2px; }

/* 900, NOT 800 — THE BAND IN BETWEEN WAS THE ONE PEOPLE ACTUALLY HAVE. This
   block used to start at 800px and the only other height query on the board is
   the 860px one above, which is gated on `.b2-await` and therefore only ever
   fires during 喊单. So a 1440x900 laptop with any browser chrome at all — call
   it 800-860 of viewport — built and poured the whole cup at the FULL tall
   layout inside a `overflow:auto` pane, and .minigame quietly scrolled: the
   syrup bottle and the chop sat below the fold on the station they belong to.
   Everything here is air and chrome, never a label and never a hit target
   (see the note at the top), so it costs nothing to start giving it back
   earlier. The two rules that are genuinely 720-shaped — the bin rail going
   sideways and the beauty shot giving up its 1.26x — stay at 800, where they
   were measured. */
@media (max-height: 900px) {
  /* 54px, not 46: the stage's header is ABSOLUTE and its height does not shrink
     with the viewport, so a short screen was reserving less room than the band
     actually occupies and the counter's top edge ran under it — measured at
     1280x720 as a real overlap (prom/dev/b2-fit.mjs, headOverCounter). It is
     the same 54px the tall layout reserves, because it is the same header. */
  .minigame.b2-game { padding-top: 54px; }
  .b2-court { gap: 5px; }
  .b2-game .b2-printer { display: none; }
  .b2-game .b2-ticket { margin-top: 0; }
  .b2-game .b2-row { min-height: 42px; }
  .b2-benchrow { min-height: 204px; padding-top: 28px; }
  .b2-cupzone { min-height: 146px; }
  .b2-rail { min-height: 60px; }
  .b2-rack { --b2-cs: calc(var(--b2-cs0) * 0.52); }
  .b2-src .b2-art, .b2-none .b2-art { height: 42px; }
  .b2-bin .b2-art { height: 38px; }
  /* THE LIVE RING'S BREATHING ROOM IS A TALL-SCREEN LUXURY, AND THE FOLD IS NOT.
     The call strip and the 杯贴 took +8px of gap and +7px of bottom padding so
     the kit ring's outline-offset could breathe out to 10px without grazing the
     button under it. On a tall screen that is free. At 720 it is not: together
     with the header's 46px -> 54px correction it pushed the pour station's
     bottom to 731 against a 720 fold — putting the syrup bottle and the 无糖
     chop, the two objects the round is actually about, under the edge of the
     screen (measured 733/733 vs 720, ftue2-boba.mjs's 720-fold check). The ring
     still reads perfectly at its resting 5px offset; here it just stops
     breathing. An object you cannot see beats a ring that cannot pulse. */
  .b2-say { gap: 7px; }
  .b2-say.call { gap: 8px; padding-bottom: 9px; }
  /* The chop got a real button face this round — it is a REQUIRED graded
     gesture and it used to be drawn dashed, which on this board means "empty
     slot", so a first-timer read it as scenery and lost the cup silently. The
     face is right; its height is not free. At 720 the stamp measured 152px and
     carried the pour station's bottom to 731 against the fold, i.e. the syrup
     bottle and the chop themselves off the screen. Shorter art and a tighter
     footprint here keep the face and give back the pixels. */
  .b2-none { padding-bottom: 3px; }
  .b2-none .b2-art { height: 32px; }
  .b2-court { gap: 4px; }
  /* the last pixels come from hems, not from the stamp's art — the glyph on the
     chop has to stay readable. The counter's height is set by the paper column
     (the ticket is 327px of it), so the ticket's own hem is where the slack is;
     trimming .b2-counter alone does nothing, because a min-height further in
     was deciding the block. */
  .b2-counter { padding-bottom: 7px; }
  .b2-ticket { padding-top: 6px; padding-bottom: 5px; }
}

/* the two 720-shaped rules, left at the height they were measured at: both of
   them trade a layout or a beauty shot rather than air, and at 850 there is
   room for the bins to stay stacked and for the cup to stay big. */
@media (max-height: 800px) {
  /* the bin rail carries a written gesture line now (see paintShelf), and at
     720 the whole plate has to clear the fold — MEASURED at 774 vs 720 before
     this pair, which put the one instruction for the scoop off the screen */
  /* THE BIN RAIL'S WRITTEN GESTURE LINE MOVES BESIDE THE BINS AT 720.
     Stacked under them it is 53px tall and pushed the plate's bottom to 769
     against a 720 fold (measured, 1280x720, 加料·摇 station) — which would put
     the ONE printed instruction for the scoop off the bottom of the screen.
     The bins themselves end at 711, so beside them the line costs nothing
     vertical. nowrap keeps it beside: it is the .b2-railrow inside that wraps
     when there are more bins out. */
  .b2-rail.bins { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px; padding-bottom: 5px; }
  .b2-rail.bins .b2-binhint { max-width: 210px; text-align: left; padding: 2px 8px; line-height: 1.18; }
  /* …and the beauty shot has to SHARE the counter with that plate at 720. The
     finish station scales the cup up 1.26x and pads it away from the station
     name, which is right at 900 and off the bottom of the screen at 720 —
     measured, the bin rail ended at 769 against a 720 fold. The cup is still
     the biggest thing on the bench; it just stops eating the shelf. */
  .b2-benchrow.solo { --b2-cs: calc(var(--b2-cs0) * 1.06); padding-top: 16px; }
  .b2-benchrow.solo .b2-cupwrap { padding-top: 6px; }
}

/* the walkthrough's court-wide steps: the hole spans the whole counter, so the
   coach's card has no clear side — pinned to the top, under the head, where it
   covers nothing the step needs (boba2.js sets the class per step) */
.b2-game.b2-tutwide .tut-card { bottom: auto; top: 58px; }

/* ROUND 17 — THE COACH LAYER WAS SCROLLING WITH THE BOARD, NOT THE SCREEN.
   .b2-game is `position:fixed` but also `overflow:auto` with a 54px top pad
   (see .minigame.b2-game above) — at common sizes its own content runs a few
   dozen px taller than the viewport, which makes it a real scroll container.
   ./drills/tutorial.js appends .tut-layer as `position:absolute; inset:0`
   INSIDE that box, so the instant anything scrolls .b2-game even slightly
   (a focused button scrolling itself into view is enough), the whole dim +
   ring + card stack — meant to cover the true screen — scrolls off with it.
   MEASURED: a cold judge's coach card rendered with its top 60-140px above
   y=0, clipped by the browser chrome, on the very first walkthrough step
   after the ticket. manual.js's sibling overlay (.dm-layer, the book) is
   already `position:fixed` for exactly this reason — .tut-layer never got
   the same fix. Can't edit tutorial.js/drill-manual.css (shared); pinning it
   here, scoped to this board, is the equivalent fix: `fixed` on a descendant
   of a `fixed` ancestor with no transform/filter/perspective of its own
   resolves against the real viewport, not .b2-game's scrollTop. */
.b2-game .tut-layer { position: fixed; }

/* ROUND 17 — THE BOOK'S LAST PAGE RANG THE WRONG BUTTON. manual.js always
   autofocuses and gold-highlights "开始/继续 start" over "教我一遍 walk me
   through" (shared dm-go/dm-walk classes, drill-manual.css — not this
   drill's file to edit). Two cold judges both pressed the loud button
   because it was the loud button, and neither saw the walkthrough. Can't
   touch the shared button labels or the autofocus; scoped here so a
   first-timer's eye — not just a screen reader's tab order — lands on the
   teaching button first, on this board only. */
.b2-game .dm-layer .dm-actions .dm-go { background: var(--dk-stock-2, #f8eed4); }
.b2-game .dm-layer .dm-actions .dm-walk { background: var(--dk-gold, #ffc84a); }

/* Packet 06: one readable order above the physical work area. */
.b2-cue { color: var(--prom-ink); background: var(--prom-paper); font-size: var(--prom-text-latin); border-radius: 8px; }
.b2-cue:not(:empty) { padding: 8px; margin: 8px 0; }
.b2-cue .han { display: block; font-size: var(--prom-text-zh); }
.b2-follow { background: var(--prom-paper); color: var(--prom-ink); padding: 12px; font-size: var(--prom-text-latin); }
.b2-follow summary { min-height: 44px; cursor: pointer; }
@media (max-width: 720px) {
  .b2-game #mgBubble, .b2-game .mg-host, .b2-game .b2-guestcol { display: none !important; }
  .minigame.b2-game { padding: 8px 8px 24px; gap: 8px; }
  .b2-game .mg-head { position: relative; inset: auto; width: 100%; margin: 0; padding: 8px 44px; flex-wrap: wrap; height: auto; }
  .b2-game .mg-score { flex-wrap: wrap; }
  .b2-game .b2-court { width: 100%; }
  .b2-game .b2-counter { grid-template-columns: minmax(0,1fr); padding: 8px; gap: 8px; }
  .b2-game .b2-papercol { grid-column: 1; width: 100%; }
  .b2-game .b2-bench { grid-column: 1; min-width: 0; }
  .b2-game .b2-ticket { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px; }
  .b2-game .b2-ticket .dk-docket-hd { width: 100%; }
  .b2-game .b2-ticket .b2-row { flex: 1 1 120px; min-height: 28px; gap: 4px; }
  .b2-game .b2-ticket .b2-val { min-width: 0; }
  .b2-game .b2-look { min-height: 44px; }
  .b2-game .b2-step { background: var(--prom-paper); color: var(--prom-ink); padding: 8px; }
  .b2-game .b2-benchrow { min-height: 130px; padding: 8px 0; }
  .b2-game .b2-cupzone { min-height: 100px; }
  .b2-game .b2-rack { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .b2-game .b2-cupslot { min-width: 0; min-height: 44px; }
  .b2-game .b2-cupslot small { overflow-wrap: anywhere; }
  .b2-game .b2-shelf, .b2-game .b2-rail { min-width: 0; max-width: 100%; }
  .b2-game .b2-padrow { flex-wrap: wrap; }
  .b2-game .b2-pad { min-width: 0; }
  .b2-game .b2-stepen { font-size: var(--prom-text-latin); }
}
@media (max-width: 720px) {
  .b2-game .mg-head { transform: none; box-sizing: border-box; max-width: 100%; left: auto; top: auto; }
  .b2-game .b2-step, .b2-game .b2-step .han, .b2-game .b2-stepen { color: var(--dk-ink); background: var(--dk-stock); }
  .b2-game .b2-ticket .b2-py, .b2-game .b2-ticket .b2-en { display: none; }
  .b2-game .b2-benchrow { min-height: 80px; }
  .b2-game .b2-cupzone { min-height: 70px; }
  .b2-game .b2-mat .b2-art { width: 40px; }
  .b2-game .b2-mat { padding: 0; }
  .b2-game .b2-steptitle { font-size: var(--prom-text-zh); }
  .b2-game .mg-head > b { min-width: 0; overflow-wrap: anywhere; }
  .b2-game .mg-score { min-width: 0; white-space: normal; }
}
@media (max-width: 720px) {
  .b2-game .dk-goal { min-width: 0; max-width: 100%; flex-wrap: wrap; white-space: normal; }
  .b2-game .dk-goal-en { white-space: normal; }
  .b2-game .b2-ticket .b2-row { flex-basis: 9rem; }
  .b2-game .b2-ticket .b2-lab { white-space: nowrap; }
  .b2-game .b2-ticket .b2-val > .han { overflow-wrap: normal; word-break: normal; }
  .b2-game .b2-mat { min-height: 64px; }
  .b2-game .b2-mat .b2-en2 { display: none; }
}
.b2-game .b2-restart { font-size: var(--prom-text-latin); color: var(--prom-ink); background: var(--prom-paper); padding: 8px; border-radius: 8px; }
/* The size label grows with text instead of being clipped inside the drawn lid. */
.b2-game .b2-cupwrap { display: flex; flex-direction: column; align-items: center; }
.b2-game .b2-size-label { display: block; color: var(--dk-ink); background: var(--dk-stock); font-size: var(--prom-text-zh); line-height: 1.3; white-space: nowrap; padding: 2px 6px; margin-bottom: 12px; border-radius: 4px; }
@media (max-width: 720px) {
  .b2-game .b2-benchrow { flex-wrap: wrap; }
  .b2-game .b2-jar { flex: 1 1 7rem; min-width: min-content; max-width: 100%; }
  .b2-game .b2-jar small { word-break: keep-all; overflow-wrap: normal; }
}
@media (max-width: 720px) {
  .b2-game .b2-jarrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
}
@media (max-width: 720px) {
  .b2-game .b2-rack { grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr)); }
  .b2-game .b2-cupslot small { overflow-wrap: normal; word-break: keep-all; }
  .b2-game .b2-mat { width: max-content; max-width: 100%; }
}
.b2-game .b2-cue .b2-en2, .b2-game .b2-follow .b2-en2 { color: inherit; }

/* Optional order reference remains readable without audio at every width. */
.b2-game .b2-orderhelp { width: 100%; min-width: 0; box-sizing: border-box; color: var(--dk-ink); background: var(--dk-stock); border: 2px solid var(--dk-ink); border-radius: 8px; }
.b2-game .b2-orderhelp summary { min-height: 44px; box-sizing: border-box; padding: 10px; cursor: pointer; font-size: var(--prom-text-latin); line-height: 1.4; }
.b2-game .b2-orderhelp summary:focus-visible { outline: 3px solid var(--dk-gold); outline-offset: 2px; }
.b2-game .b2-orderhelp [data-help-line] { display: grid; gap: 4px; padding: 10px; border-top: 1px solid currentColor; min-width: 0; font-size: var(--prom-text-latin); line-height: 1.5; }
.b2-game .b2-orderhelp [data-help-line] > * { min-width: 0; white-space: normal; overflow-wrap: anywhere; color: inherit; }
.b2-game .b2-orderhelp .han { font-size: var(--prom-text-zh); }

/* Painted Boba layers. Hidden until loaded and selected by the riso variant;
   the original CSS/SVG remains the default and per-file error fallback. */
.b2-game .b2-riso-asset,
.b2-game .b2-riso-cell { display: none; pointer-events: none; user-select: none; }
.b2-game .b2-riso-fallback { display: contents; pointer-events: none; }
.b2-game .b2-riso-fallback * { pointer-events: none; }
.b2-game .b2-riso-asset { object-fit: contain; }

/* Paper crop wrappers are inert even before the optional skin loads. */
.b2-game .b2-paper-art { display: none; pointer-events: none; }
.b2-game .b2-success { display: contents; }

/* Extra shop identity and the visual mobile order duplicate belong to riso. */
.b2-game :is(.b2-club, .b2-active-order) { display: none; }
