/* ============================================================================
   晨练 · SQUARE DANCE (HANDS-ON v2) — prom/js/drills/dance2.js
   ============================================================================
   Benchmark: RHYTHM HEAVEN, whose hardest rule is the one it never breaks —
   THERE IS NO HUD DURING PLAY. No score, no combo bar, no accuracy meter, no
   note highway. Everything you need to read is happening to the characters, on
   the beat. So this sheet has exactly one job: make a park at dawn where five
   paper figures dance, and put nothing on top of the painting that is not an
   OBJECT IN THE PARK.

   The two objects that carry Chinese are both physical: four paper lanterns
   strung over the square painted 五 六 七 八 (the count-in a 广场舞 leader
   actually shouts, and the drill's no-audio metronome), and a 口令牌 command
   placard hung UNDER the painting. Cycle-2 shipped with neither, so the play
   surface of a language game had no readable Chinese on it at all.

   Every pose in here is driven by a CSS custom property written from the JS
   rAF loop (--armL / --armR / --head / --lift / --lean / --squat / --spin /
   --bob / --clap), which is what lets prefers-reduced-motion drop the EASING
   without dropping a single piece of state: a squatting figure is still
   squatting. Every joint pivots at its own coordinate in the figure's viewBox
   (transform-box: view-box), not at a percentage of a bounding box that moves
   whenever the art does.

   COLOUR — ROUND 8, and this is the finding that scored the drill a 3. The
   census counted FIVE saturated hue families on this panel in both themes, the
   worst on the roster, and three of them were decorative: h120 willow foliage,
   h140 the shading green and the troupe's skirts (two greens a player cannot
   tell apart, carrying no distinction), and h20 timber. All three belonged to
   the vector park and the vector uniform, and both are gone:

     · THE PARK IS A PAINTING NOW. art/bg/park.jpg — already this drill's stage
       backdrop, and every other panel on the roster puts its play surface on a
       painted backdrop rather than hiding one behind an illustration of the
       same place. Mirrored, so the bench with somebody's boombox on it sits at
       stage left and the rookie has clean paving under her. It carries the
       colour; nothing else here is allowed to.
     · THE UNIFORM IS INK. Dark indigo skirt, lighter indigo top, cream trim —
       measured under 0.28 HSL saturation, i.e. chrome, not a colour. The four
       aunties are told apart by HAIR SILHOUETTE and position, which is the
       spec's own order. The fifth figure is gold head to hem, because gold
       means "you / act now" and she is the only thing here a player touches.

   What is left that a census can see: gold (semantic — her body, the lit
   lanterns, the beat bloom, and cream/skin, which fall in the same family),
   plus teal and vermillion strictly as "correct" and "wrong".
   TYPE, checked: four sizes only, and every hanzi sits at --dk-read (20px) or
   above. Loaded after drill-kit.css; the drill claims it itself.
   ========================================================================= */

.dz-game {
  /* the troupe's uniform, and none of it is a colour: measured HSL saturation
     0.24 / 0.22 / 0.19, all under the 0.28 floor a hue census counts at. They
     are ink, the same as every outline in the kit, in three values so the row
     still reads as clothing rather than as four silhouettes. */
  --dz-skirt: #322b48;
  --dz-top: #4a4166;
  --dz-trim: #bdb6a6;
}

/* ---------------------------------------------------------- THE HOST CUTOUT
   art/cutout/general.png carries a soft halo the other cutouts do not: 5.6% of
   its pixels sit at alpha 16-47 against 0.6-1.5% for leap / mochi / nak / coco
   / rip. prom.css's four-way ink drop-shadow traces the OUTERMOST non-zero
   alpha, so on this one asset it was drawing a rectangle around the wash — an
   outlined purple slab at stage left, next to silhouettes everywhere else.
   #dzCutClean (defined in dance2.js) clamps alpha to 0 below ~0.44 and 1 above
   ~0.59 BEFORE the outline runs, so the ink line lands on her actual edge. The
   0.15-wide ramp is deliberate: a hard binarise would alias.
   Scoped to this drill because the asset is shared and fixing it in prom.css
   would ripple into six other screens on somebody else's watch.

   THE FILTER IS APPLIED FROM dance2.js, NOT FROM HERE, and that is not a style
   choice: a fragment-only url(#id) inside an EXTERNAL stylesheet resolves
   against the stylesheet's own URL, so this rule would look for the filter
   inside css/drill-dance2.css and find nothing. An inline style resolves
   against the document, where the <defs> actually live. `HOST_FILTER` in
   dance2.js is the value; this note is the reason it is over there. */
.dz-game .dz-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* LAYOUT — the same constraint as the hoops arena, for the same reason. prom.css
   reserves 210px at the foot of a drill with a host so the play area clears his
   speech bubble; a wide park panel would rather pay for that sideways. The
   General keeps a lane at stage left, her bubble is capped to it, and the square
   starts to the right of it. */
.dz-game > .mg-head { z-index: 5; }
/* ROUND-5. The light theme already re-materials the plaque as cream paper; the
   dark theme had it on NOTHING — measured `backgroundColor: rgba(0,0,0,0)` and
   `backgroundImage: none`, i.e. the title and the subtitle sat straight on the
   school-gate painting. It happened to measure 7.8:1 in the shot I took, but
   that number belongs to whichever brushstroke was behind the words at the time;
   the rule is a material, not a lucky pixel. Same fix, same shape ktv2 landed.

   Geometry copied from the light rule EXACTLY — same radius, same padding, same
   drop — and deliberately NOT `width: auto`: prom.css gives .mg-head
   `width: min(920px, 96vw)` with `.mg-score { margin-left: auto }`, so shrinking
   the plaque to its content pulls the counter off the end of the row and the
   title bar goes from one line to two. Measured: 1 row at 920px, 2 rows at auto,
   1280x800. One plaque, one width, two materials. */
:root:not([data-theme="light"]) .dz-game > .mg-head {
  background: var(--dk-mat-scrim, rgba(18, 9, 30, 0.9));
  border: 2px solid var(--dk-ink, #241335);
  border-radius: 10px; padding: 5px 14px;
  box-shadow: 0 3px 0 rgba(8, 3, 16, 0.55);
}
/* THE PLAQUE HAS ONE HEADLINE AND ONE FOOTNOTE. The census found mg-score
   stuffed on most boards — three counters and a currency, and not one judge
   could say which number was the score. Here the GOAL CHIP (答对 0/4 to pass) is
   the headline: it is the only thing on the board that answers "how do I win",
   and it is up from the first frame. The rep/call counter is a footnote and is
   painted as one — a step quieter, a step smaller, and it never carries hanzi.
   (The streak counter that used to sit here is gone entirely; it has a badge
   that fires where it changes and a mix that thickens with it.) */
.dz-game .mg-score { display: inline-flex; align-items: baseline; gap: 10px; }
.dz-game .dz-phase { font-size: var(--dk-caption); font-weight: 700; opacity: 0.66; }
/* SEMANTIC PALETTE, light theme. prom.css paints every drill's counter numerals
   #8c2333 — vermillion's ink-side twin, the WRONG token — on a round counter and
   a streak that are neither right nor wrong. Contrast passes (7.5:1); the
   meaning does not. Dark already uses neutral --paper for the same numerals, so
   this is its cream-side twin, and the numerals stay told apart by weight. */
:root[data-theme="light"] .dz-game .mg-score b { color: var(--dk-ink, #241335); }
/* The prompt row gets a real stacking level too. PROM.uiCheck() only reports an
   overlap between two controls at the SAME z-index — its way of saying "these
   are in one layer and are genuinely colliding" — and the scene's own .line-say
   speaker button, still in the DOM under the full-bleed drill, lands right on
   this row at 1280×800. It is covered, not colliding; saying so with a z-index
   is the honest fix, and nudging the row by a few pixels would only move the
   collision to a different viewport. */
.dz-game > .mg-prompt { position: relative; z-index: 5; }
.dz-game > .mg-prompt .tool { position: relative; z-index: 5; }
.dz-wrap {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  width: min(780px, 94vw, calc((100vh - 268px) * 1.78)); margin: 22px auto 0;
}
@media (min-width: 721px) {
  .minigame.dz-game { padding-bottom: 40px; }
  .dz-game .mg-bubble { max-width: min(24vw, 236px) !important; left: 5% !important; }
  .dz-game .dz-wrap {
    width: min(780px, calc(94vw - 268px), calc((100vh - 268px) * 1.78));
    margin-left: 268px; margin-right: 0;
  }
}

/* ------------------------------------------------------------------ THE PARK
   A PAINTED backdrop, like every other panel on the roster. .dz-paint carries
   art/bg/park.jpg, mirrored and pushed in on the paved square; the layer above
   it is the only grade — a night wash across the top so the lantern wire has
   sky to hang against, the beat's own light rising off the paving, and a
   grounding vignette at the foot. --pulse runs 1 → 0 across every beat, so the
   light IS the metronome for a player who cannot hear the kick. */
.dz-park {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 3px solid #241335; border-radius: 12px; background: #16101f;
  box-shadow: inset 0 0 70px rgba(14,6,24,0.55), 0 5px 0 rgba(14,6,24,0.8);
  touch-action: none;
}
/* The stage backdrop behind the panel is the SAME painting, and seeing it at
   two scales at once reads as a mistake rather than as depth. It goes soft and
   dark — the panel is then the one lit, sharp, contrasted thing on the screen,
   which is what the density rule asks for and what every other drill gets for
   free by not putting a second picture in front of its own. */
.dz-game .painted-bg.mg-stagebg { filter: blur(3px) brightness(0.6) saturate(0.72); }
.dz-paint {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("../art/bg/park.jpg");
  background-repeat: no-repeat; background-size: 126%; background-position: 11% 100%;
  /* MIRRORED. The painting's interest — the shrine, the old tree, the bench
     with the boombox on it — is all on its right, and so is the rookie's own
     spot in the formation. Flipping the plate puts the furniture at stage left,
     next to the General, and leaves the row a clean run of paving to dance on.
     It also lands the painted boombox where the vector one used to sit. */
  transform: scaleX(-1);
}
/* The one grade, and every stop in it is either neutral ink or the beat's gold.
   No violet sky gradient any more: the sky is painted. */
.dz-paint::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,9,26,0.88) 0%, rgba(17,9,26,0.5) 16%, rgba(17,9,26,0) 32%),
    radial-gradient(ellipse 74% 50% at 50% 104%, rgba(255,200,74, calc(0.07 + 0.13 * var(--pulse, 0))) 0%, rgba(255,200,74,0) 68%),
    linear-gradient(180deg, rgba(14,6,24,0) 56%, rgba(14,6,24,0.42) 100%);
}
/* THE GRAIN. One static sheet of paper tooth over the whole panel — the
   painting under it is brushed and the figures over it are cut, and this is
   what makes the two belong to the same picture. feTurbulence baked into a
   data URI rather than a live SVG filter on purpose: the figures are re-posed
   every animation frame, and a per-frame turbulence pass on five of them is
   the one way this panel could lose its beat. Static, blended, unmeasurable in
   the frame budget. */
.dz-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='170' height='170'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='170' height='170' filter='url(%23g)'/></svg>");
  background-size: 170px 170px;
}
/* the downbeat: the square lifts a hair. Small, and you feel it every bar. */
.dz-park.down { box-shadow: inset 0 0 70px rgba(14,6,24,0.4), 0 5px 0 rgba(14,6,24,0.8); }
.dz-park.flash::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,200,74,0.28), rgba(255,200,74,0));
  animation: dzFlash 0.46s ease-out forwards;
}
@keyframes dzFlash { to { opacity: 0; } }

/* ------------------------------------------------------------- THE LANTERNS
   五 六 七 八 — the count-in, strung over the square as four paper lanterns
   that light one per beat into the move. Three jobs in one object: readable
   Chinese ON the play surface, the numerals 5-8 taught as a physical count, and
   the complete no-audio timing path. They are OBJECTS, not a HUD, which is the
   only way anything is allowed to sit over the painting (principle 3), and the
   hanzi sits on lantern paper so its contrast is solved by the material.
   Sized in px, not %, so the hanzi never drops under the 20px floor on a phone. */
.dz-lanterns {
  position: absolute; left: 0; right: 0; top: 3%; padding-top: 11px;
  display: flex; justify-content: center; gap: clamp(10px, 2.4%, 26px);
  pointer-events: none;
}
/* the wire they hang from */
.dz-lanterns::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 2px;
  background: rgba(246,237,218,0.22);
}
/* Unlit, a lantern is LACQUER — an opaque dark paper with cream calligraphy,
   which is the kit's own night material. The first cut made it a 13% cream wash
   with 66% cream text, which measured 4.3:1 against the dawn sky: under the
   4.5 body-text bar, on the one object that carries the count. Opaque paper
   both makes the number legible and makes lit-vs-unlit a material change
   (lacquer → gold) rather than an opacity change. */
.dz-lanterns i {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 44px; border-radius: 46% 46% 40% 40% / 40% 40% 52% 52%;
  background: rgba(30, 18, 40, 0.88); border: 2.5px solid rgba(246,237,218,0.44);
  box-shadow: none; transition: background 0.14s linear, border-color 0.14s linear,
    box-shadow 0.18s ease-out, transform 0.18s cubic-bezier(.2,1.5,.35,1);
}
/* the cord up to the wire */
.dz-lanterns i::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 11px;
  transform: translateX(-50%); background: rgba(246,237,218,0.28);
}
.dz-lanterns i b {
  font-family: var(--han); font-size: var(--dk-read); font-weight: 800; line-height: 1;
  color: #f6edda;
}
.dz-lanterns i.on {
  background: var(--dk-gold); border-color: #f0b52c;
  box-shadow: 0 0 16px rgba(255,200,74,0.55); transform: translateY(2px) scale(1.06);
}
.dz-lanterns i.on b { color: #241335; }
.dz-lanterns.go i.on:last-child { box-shadow: 0 0 26px rgba(255,200,74,0.95); transform: translateY(3px) scale(1.14); }
/* the top tier takes the lanterns away and she says so. They stay hung and
   unlit rather than vanishing, so the count is still READABLE — only the
   timing help is gone, and the row is still dancing on the beat. */
.dz-lanterns.off { opacity: 0.34; }
.dz-lanterns.off i.on { background: rgba(30, 18, 40, 0.88); border-color: rgba(246,237,218,0.44);
  box-shadow: none; transform: none; }
.dz-lanterns.off i.on b { color: #f6edda; }
/* …and DIM through the warm-up, which is the state the census judge met them
   in. Nothing is counting yet, so four evenly spaced lit-looking discs at the
   top of the frame were the loudest inert thing on the board — the judge's
   first instinct was to press one. They come up to full on the first scored
   count-in (intoSong), which is also the first time they mean anything.
   Unlike .off this is opacity only: the lit look still works under it, so the
   walkthrough can demonstrate the count without fighting the rule. */
.dz-lanterns.dim { opacity: 0.4; }

/* THE SIGN ON THE WIRE. The lantern strip's name, hung off the far end of its
   own wire, in the same lacquer the 新兵 floor tag is cut from — the census
   judge listed the four lanterns AND the wire behind them as two separate
   unidentifiable objects, and guessed "buttons" for the first. One sign answers
   both. Top-RIGHT on purpose: the coach tag owns the top-left corner. */
.dz-lantern-tag {
  position: absolute; right: 2.5%; top: 4%; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 2px 8px 3px; border-radius: 6px;
  background: rgba(14, 12, 18, 0.86); border: 2px solid rgba(246, 237, 218, 0.3);
}
.dz-lantern-tag b.han {
  font-family: var(--han); font-size: var(--dk-read); font-weight: 800; line-height: 1.15;
  color: rgba(246, 237, 218, 0.92);
}
.dz-lantern-tag span {
  font-size: var(--dk-caption); font-weight: 700; line-height: 1.1;
  color: rgba(246, 237, 218, 0.66);
}

/* -------------------------------------------------------------- THE COACH TAG
   ROUND-7 PEDAGOGY FIX. The drill has a beat window, a 连 combo, a mix that
   thickens with the combo and a painted fan gated on landing dead on the beat,
   and nothing on screen ever said when the beat was or what it bought. Hoops
   closed the same gap in round 5 and this is its object, in this park's
   fiction: a note the General has taped to the square, in the same cream stock
   and ink border every other paper thing in the kit is cut from, tilted a
   degree like something actually stuck up there. Fired by the player's own
   hand, twice per beat, then gone for the session (see COACH in dance2.js).

   It never covers a read. It lives in the TOP-LEFT of the park, which is the
   one region nothing is ever read in: the lanterns are centre-top, the placard
   is under the painting, the row runs 13%-73% along the bottom and her own
   figure is at the right edge. It is pointer-transparent, and it sits under
   the ghost hand's z-index so the 热身 can never be occluded by it. */
.dz-coach {
  position: absolute; left: 2.5%; top: 4%; z-index: 3;
  max-width: 34%; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 5px 10px 6px;
  background: var(--dk-stock, #f2e4c2); color: var(--dk-ink, #241335);
  border: 3px solid var(--dk-ink, #241335); border-radius: 8px;
  box-shadow: 0 4px 0 rgba(14, 6, 24, 0.6);
  transform: rotate(-1.4deg);
}
.dz-coach[hidden] { display: none; }
.dz-coach b.han {
  font-family: var(--han); font-size: var(--dk-read); font-weight: 900;
  line-height: 1.15; color: var(--dk-ink, #241335);
  white-space: nowrap;              /* 等八再动 is one phrase or it is nothing */
}
/* the gloss is helper text and takes caption size — it is the only thing on
   this tag a player could not work out from the square itself */
.dz-coach .dk-caption { color: var(--dk-ink-soft, rgba(36,19,53,0.68)); line-height: 1.2; }
.dz-coach.in { animation: dzTape 0.34s cubic-bezier(.2,1.4,.3,1); }
@keyframes dzTape {
  0% { transform: rotate(-6deg) translateY(10px) scale(0.9); opacity: 0; }
  100% { transform: rotate(-1.4deg); opacity: 1; }
}

/* ------------------------------------------------------------------- THE ROW
   Four aunties, always correct, always on the beat. You are the fifth figure
   and your body out of phase with theirs IS the timing readout — that is the
   whole reason there is no meter anywhere on this screen. */
.dz-row {
  position: absolute; left: 15%; right: 26%; bottom: 3%;
  display: flex; align-items: flex-end; justify-content: space-around; gap: 1%;
}
/* she is the fifth figure, standing a step forward of the line so the row can
   still be read as a row — near enough to compare against, far enough that the
   ring and her spot belong to her alone */
.dz-me-wrap { position: absolute; right: 3%; bottom: 2%; width: 20%; z-index: 3; }
.dz-fig, .dz-me { width: 100%; line-height: 0; }
.dz-row .dz-fig { width: 26%; }
.dz-body { width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 2px 0 rgba(14,6,24,0.45)); }

/* the limbs. Every one of these transforms is a live custom property, and every
   origin is a real joint in the figure's own coordinates. */
.dz-all, .dz-torso, .dz-legs, .dz-head-g,
.dz-armL, .dz-armR, .dz-foreL, .dz-foreR { transform-box: view-box; }
.dz-all { transform-origin: 35px 118px;
  transform: translateY(calc(var(--bob, 0) * 3px)) rotateY(var(--spin, 0deg)); }
.dz-torso { transform-origin: 35px 86px;
  transform: translateY(calc(var(--squat, 0.12) * 19px)) rotate(var(--lean, 0deg))
             scaleY(calc(1 - var(--squat, 0.12) * 0.14)); }
.dz-legs { transform-origin: 35px 81px;
  transform: scaleY(calc(1 - var(--squat, 0.12) * 0.62)); }
/* 抬头 is a chin coming up, not a head tilting sideways: lift, then a little
   rotation. A front-on tilt reads as "confused", which is the wrong verb. */
.dz-head-g { transform-origin: 35px 36px;
  transform: translateY(calc(var(--lift, 0) * -7px)) rotate(var(--head, 0deg)); }
.dz-armL { transform-origin: 25px 41px; transform: rotate(var(--armL, 0deg)); }
.dz-armR { transform-origin: 45px 41px; transform: rotate(calc(-1 * var(--armR, 0deg))); }
/* 拍手, and it is the elbows that do it. Solved rather than eyeballed: her hand
   sits 30 viewBox units from the shoulder and her midline is 20 units in, so a
   rigid limb rotating about the shoulder CANNOT reach the middle of her chest —
   which is why the old pose (both straight arms out at 58 degrees) never once
   looked like a clap. With the upper arm held still and the forearm folded
   108 degrees in about the elbow at (19,55), the two hands land on the midline
   at y≈54, which is where a person's hands actually meet. --clap runs 0→1 with
   the player's own pointer, so the clap forms and can be backed out of.
   The -14deg at rest is not slack: a limb held dead straight from shoulder to
   fingertip is the shape the judge called a stick, and every arm in the row is
   straight at rest for most of the 八拍.

   ROUND-11 BLOCKER, and it lived in the punctuation of this very note. The
   paragraph above used to CLOSE after "backed out of", and then ran three more
   lines of prose to a second close marker — so the CSS parser left comment
   state early, read that loose prose as a selector prelude, ran it up to the
   next brace, and dropped the whole qualified rule it landed on. (Which is
   also why nothing in this sheet may ever spell a comment terminator inside a
   comment: the first cut of THIS note quoted the marker and took the sheet from
   123 rules to 46.) Measured in the browser (prom/dev/dz11-css.mjs): the
   sheet's selector list contained `.dz-foreR` and no `.dz-foreL` at all, and
   with --clap forced to 1 the left
   forearm computed `transform: none, transform-origin: 0px 0px` against the
   right one's 106deg about (50,55). Every 拍手 in the drill — the row's
   demonstration, the player's own hands, and the counted 拍两下 — was ONE
   forearm swinging across a limb that never moved, so the two hands never met.
   The rest at -14deg was gone with it, which is the straight stick this note
   claims to have fixed. One comment now, and the rule parses. */
.dz-foreL { transform-origin: 20px 55px; transform: rotate(calc(-14deg + var(--clap, 0) * -92deg)); }
.dz-foreR { transform-origin: 50px 55px; transform: rotate(calc(14deg + var(--clap, 0) * 92deg)); }
.dz-skirt { fill: var(--dz-skirt); }
.dz-shirt { fill: var(--dz-top); }
.dz-sleeve { stroke: var(--dz-top); }
.dz-trimF { fill: var(--dz-trim); }
.dz-trimS { stroke: var(--dz-trim); fill: none; }
/* the shadow side and the lit side. Two flat washes, no gradients — the kit is
   cut paper, and paper takes a shadow as another sheet laid over it. */
.dz-shade { fill: rgba(24,10,34,0.24); }
.dz-rim { stroke: rgba(255,206,140,0.4); fill: none; }
.dz-sash { stroke: var(--dz-trim); }
.dz-fanleaf { fill: var(--dz-trim); }
/* the rookie has not earned a fan. Principle 7's collectible is 扇子, and the
   one figure without one is the one the player is holding. */
.dz-me .dz-fanprop { display: none; }
/* yours is the GOLD one, head to hem — gold means "you / act now", here as
   everywhere, and she is the only figure on this panel a player ever touches.
   Two tints of the one hue (hem and top) plus ink trim, so she reads as a whole
   body in the token rather than as a dark figure wearing a gold skirt. */
.dz-me { --dz-skirt: var(--dk-gold); --dz-top: #e0a94c; --dz-trim: #2e1a3f; }
.dz-me .dz-rim { stroke: rgba(255,240,205,0.55); }

/* --------------------------------------------------------- SHE IS GRABBABLE
   The cycle-2 build's most expensive omission: the whole drill is "put your
   hand on this figure and move her" and nothing on screen said so. Three tells,
   in the fiction, none of them a HUD:
     · a painted floor decal reading 新兵 you — her spot in the formation, and
       what the General calls every recruit she has ever had;
     · the kit's live ring (.dk-live, drill-kit.css), driven by setLive() from
       the rAF loop — gold = act now, the same as everywhere else;
     · a ghost hand that runs the drag from the first frame and leaves for good
       the first time a real hand lands on her.

   THE DASHED RING IS GONE, and this is the census finding that removed it. The
   drill used to draw its own gold oval here in a 9-9 dash, and the judge read it
   as "a selection highlight, or a spotlight, or a zone I must stay inside —
   dashes often mean 'not solid yet', which makes me think it might be a target
   I have to fill." That reading is CORRECT everywhere else in this game: a
   dashed border means empty slot, drop here. So the one mark on the board that
   said "put your hand on this" was drawn in the vocabulary of "put something
   else here". The kit ring is solid, breathes on its own, and is the same
   object on fifteen boards. */
/* the decal is squashed into the paving by perspective; the LABEL is not,
   because hanzi lying flat on the ground is hanzi nobody can read. It sits on
   its own lacquer tag at the front edge of the spot, upright, at 20px, and it
   carries its English under it the way every notice in this drill does. */
.dz-spot {
  position: absolute; left: 50%; bottom: 1%; width: 86%; height: 17%;
  transform: translateX(-50%) perspective(90px) rotateX(56deg);
  pointer-events: none;
  background: rgba(246,237,218,0.13); border: 2.5px dashed rgba(246,237,218,0.4);
  border-radius: 6px;
}
.dz-spotlabel {
  position: absolute; left: 50%; bottom: -5%; transform: translateX(-50%);
  z-index: 3; pointer-events: none; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 1px 8px 2px; border-radius: 6px;
  background: rgba(14,12,18,0.9); border: 2px solid rgba(246,237,218,0.34);
  color: #f6edda;
}
.dz-spotlabel b.han {
  font-family: var(--han); font-size: var(--dk-read); font-weight: 800; line-height: 1.2;
}
.dz-spotlabel span {
  font-size: var(--dk-caption); font-weight: 700; line-height: 1.1;
  color: rgba(246,237,218,0.72);
}

.dz-me {
  cursor: grab; touch-action: none; position: relative; z-index: 2;
  /* the kit's live ring is an `outline`, and it follows the element's own
     border-radius — so the ring around her is a stadium the shape of a standing
     figure rather than a hard rectangle. Nothing here clips: the SVG overflows
     this box on purpose (her arms swing outside it). */
  border-radius: 999px;
  filter: drop-shadow(0 0 0 rgba(255,200,74,0));
  transition: filter 0.18s ease-out;
}
/* MEASURED, AND IT COST THE WHOLE RING. This rule used to carry a flat
   `outline: none` — the ordinary way a drill suppresses the browser's focus box
   when it draws its own focus look with a filter. drill-dance2.css loads AFTER
   drill-kit.css at equal specificity, so that one declaration silently beat
   `.dk-live { outline: 4px solid }` and the live ring computed to
   `outline-style: none`: the board passed the census (the CLASS was there) while
   showing the player nothing but a soft glow. Verified in the browser —
   prom/dev/scratch/dz-ring-probe.mjs prints the computed outline. The
   suppression now stands down for the one state that needs an outline. */
.dz-me:not(.dk-live) { outline: none; }
/* .dk-live paints its halo with `filter`, and these three states also paint
   filter — at higher specificity, so without this the ring's glow blinked off
   whenever the pointer crossed her. The outline (the ring itself) is untouched
   by any of them; only the halo needed re-stating. */
.dz-me.dk-live:hover, .dz-me.dk-live:focus-visible, .dz-me.dk-live.grabbed {
  filter: drop-shadow(0 0 16px rgba(255,200,74,0.75)) drop-shadow(0 0 5px rgba(255,200,74,0.85));
}
.dz-me:hover { filter: drop-shadow(0 0 8px rgba(255,200,74,0.7)); }
.dz-me.grabbed { cursor: grabbing; }
.dz-me:focus-visible { filter: drop-shadow(0 0 10px rgba(255,200,74,0.9)); }
/* a stroke landing: one snap of light, and it is the ONLY feedback a hit gets */
.dz-me.hit { animation: dzHit 0.3s cubic-bezier(.2,1.6,.35,1); }
@keyframes dzHit { 40% { filter: drop-shadow(0 0 12px rgba(255,200,74,0.95)) brightness(1.2); } }
/* off the beat: a dry settle, no colour, no verdict */
.dz-me.late { animation: dzLate 0.5s ease-out; }
@keyframes dzLate { 30% { transform: translateY(4px) rotate(2deg); } 100% { transform: none; } }
/* she went too deep — the one place her body reads WRONG before anyone speaks,
   and now the ONLY red anywhere in the row, which is what the token is for */
.dz-me.toodeep .dz-skirt { fill: var(--dk-verm); }
/* a miss jostles the whole row, which is the benchmark's own punishment */
.dz-row.bump { animation: dzBump 0.62s cubic-bezier(.2,1,.3,1); }
@keyframes dzBump {
  0% { transform: none; } 25% { transform: translateX(-8px) rotate(-0.8deg); }
  55% { transform: translateX(5px) rotate(0.5deg); }
  80% { transform: translateX(-2px); } 100% { transform: none; }
}

/* the ghost of the gesture, shown in the walkthrough and the 热身. SIX moves,
   six hand paths — down at the waist for 蹲下, up at each hand for 左手/右手, up
   at her head for 抬头, ACROSS her chest for 拍手, and ROUND her for 转圈 — so
   the ZONE is taught as well as the grab, and so is every direction of travel
   the drill grades.
   FTUE BAR 3: the first three of these were the only three that existed, which
   is exactly as many moves as the drill used to teach while grading all six.
   转圈 in particular is the one gesture in the game with a shape rather than a
   direction, so it gets a drawn loop and a hand that actually goes round. */
.dz-guide { position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.25s ease-out; z-index: 4; }
.dz-guide.on { opacity: 1; }
/* the hand and the arrow sit SIDE BY SIDE, not on top of one another — stacked,
   the arrow swallowed the hand and the frame read as a stray chevron */
.dz-guide .dz-hand { position: absolute; width: 33%; line-height: 0;
  filter: drop-shadow(0 3px 6px rgba(14,6,24,0.85)); }
.dz-guide .dz-hand svg { width: 100%; height: auto; }
.dz-guide .dz-trail { position: absolute; width: 26%; height: 32%; opacity: 0.9; }
.dz-guide.g-dunxia .dz-hand { left: 48%; top: 36%; animation: dzGhostDown 1.9s cubic-bezier(.4,0,.3,1) infinite; }
.dz-guide.g-dunxia .dz-trail { left: 22%; top: 40%; }
.dz-guide.g-zuoshou .dz-hand { left: -4%; top: 48%; animation: dzGhostUp 1.9s cubic-bezier(.4,0,.3,1) infinite; }
.dz-guide.g-zuoshou .dz-trail { left: 24%; top: 16%; transform: rotate(180deg); }
/* 拍手 — the same hand, travelling ACROSS her to the midline, where her two
   hands meet. The arrow rides above the path so the two glyphs never stack.
   This one travel is written as a PERCENTAGE of the ghost hand's own width
   rather than in pixels: the figure is 18.5% of the court on a desktop and 26%
   on a phone, and a fixed 46px stroke that reads as "to her chest" at 1280
   overshoots her whole body at 375. */
.dz-guide.g-paishou .dz-hand { left: -4%; top: 50%; animation: dzGhostAcross 1.9s cubic-bezier(.4,0,.3,1) infinite; }
.dz-guide.g-paishou .dz-trail { left: 24%; top: 31%; transform: rotate(-90deg); }
/* 右手 is 左手 mirrored, and it has to be, because the row is seen FROM BEHIND
   (see the header of dance2.js): her right hand is the one on the viewer's
   right, and a ghost hand on the wrong side would teach the mirror of the word. */
.dz-guide.g-youshou .dz-hand { right: -4%; top: 48%; animation: dzGhostUp 1.9s cubic-bezier(.4,0,.3,1) infinite; }
.dz-guide.g-youshou .dz-trail { right: 24%; top: 16%; transform: rotate(180deg); }
/* 抬头 — the same upward pull, but grabbed at the head. The zone is the lesson
   here as much as the direction: the top third of her body is the head zone. */
.dz-guide.g-taitou .dz-hand { left: 33%; top: 22%; animation: dzGhostUp 1.9s cubic-bezier(.4,0,.3,1) infinite; }
.dz-guide.g-taitou .dz-trail { left: 64%; top: 4%; transform: rotate(180deg); }
/* 转圈 — the hand ORBITS her centre of mass, which is the point the gesture is
   actually measured about (dance2.js moveGesture). rotate-translate-rotate so
   the hand travels a true circle and stays upright doing it, and the radius is
   a percentage of the hand's own box so it scales with the figure on a phone. */
.dz-guide.g-zhuanquan .dz-hand { left: 33%; top: 34%; animation: dzGhostRound 2.6s linear infinite; }
.dz-trail.dz-round { display: none; }
.dz-guide.g-zhuanquan .dz-trail { display: none; }
.dz-guide.g-zhuanquan .dz-trail.dz-round {
  display: block; left: 11%; top: 12%; width: 78%; height: auto; aspect-ratio: 1 / 1;
}
/* the hand is VISIBLE for 90% of its loop. The first cut faded out for a third
   of every cycle, so the one thing on screen saying "pick her up" was missing
   whenever you happened to look. */
@keyframes dzGhostDown {
  0% { transform: translateY(0) scale(1); opacity: 0.15; }
  6% { opacity: 1; }
  46% { transform: translateY(44px) scale(0.94); opacity: 1; }
  88% { transform: translateY(44px) scale(0.94); opacity: 1; }
  96%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
}
@keyframes dzGhostUp {
  0% { transform: translateY(0) scale(1); opacity: 0.15; }
  6% { opacity: 1; }
  46% { transform: translateY(-46px) scale(0.94); opacity: 1; }
  88% { transform: translateY(-46px) scale(0.94); opacity: 1; }
  96%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
}
@keyframes dzGhostAcross {
  0% { transform: translateX(0) scale(1); opacity: 0.15; }
  6% { opacity: 1; }
  46% { transform: translateX(96%) scale(0.94); opacity: 1; }
  88% { transform: translateX(96%) scale(0.94); opacity: 1; }
  96%, 100% { transform: translateX(0) scale(1); opacity: 0.15; }
}
/* the only ghost that never fades: a loop has no start and no end to fade at,
   and blinking one out mid-arc is the fastest way to make a circle read as a
   flick. It just goes round, at roughly the rate a hand actually draws one. */
@keyframes dzGhostRound {
  from { transform: rotate(0deg) translateY(-78%) rotate(0deg); }
  to   { transform: rotate(360deg) translateY(-78%) rotate(-360deg); }
}

/* the streak badge is kit chrome and it lands ON the painting, so it gets its
   own material here — 五连！势不可挡！in gold over a dawn sky was the one
   unreadable thing in the drill (contrast rule, measured on the r5 frame). */
.dz-game .mg-burst.streak {
  background: rgba(14, 12, 18, 0.9); border: 2.5px solid var(--dk-gold);
  border-radius: 10px; padding: 4px 12px; text-shadow: none;
}
/* the painted fan lands low and late, out of the streak badge's lane */
.dz-game .mg-burst.dz-fan { top: 66%; }

/* --------------------------------------------------------- THE 口令牌
   The command placard: cream stock, ink calligraphy, hung UNDER the painting.
   It is the drill's one literal readout and the benchmark puts its own on a
   physically separate screen for exactly this reason. Its box is RESERVED at
   all times (min-height), so the park never jumps when a call lands.
   The command is the one thing the round is about, so it gets --dk-display. */
.dz-strip { display: flex; justify-content: center; min-height: 62px; align-items: flex-start; }
.dz-cap {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  padding: 7px 20px; border-radius: 10px; text-align: center;
  max-width: min(46ch, 96%);
  background: rgba(14,12,18,0.9); border: 2px solid rgba(255,255,255,0.14);
  color: #cfc6dd;
}
.dz-cap:empty { visibility: hidden; }
.dz-cap .dk-caption { color: #cfc6dd; }
/* the 热身 instruction. Hanzi at reading size — it is read-to-play text, and
   caption size is under the hanzi floor. */
.dz-cap.help { flex-wrap: wrap; max-width: min(52ch, 96%); row-gap: 2px; }
/* the key map is its own sentence and takes its own row, so neither line has to
   be over the house's ~50-character cap to fit the mapping in */
.dz-cap.help .dz-keys { flex: 1 0 100%; }
.dz-cap .dz-help { font-family: var(--han); font-size: var(--dk-read); font-weight: 800;
  line-height: 1.2; color: #f6edda; }
/* the call itself arrives on PAPER — ink on cream, the highest-contrast
   material in the kit, and unmistakably a different object from a helper line */
.dz-cap.order {
  background: var(--dk-stock, #f6edda); border: 3px solid #241335; color: #241335;
  box-shadow: 0 4px 0 rgba(14,6,24,0.6);
  animation: dzCapIn 0.24s cubic-bezier(.2,1.5,.35,1) both;
}
@keyframes dzCapIn { from { transform: translateY(-6px) scale(0.94); opacity: 0; } }
.dz-cap.order .dz-order {
  font-family: var(--han); font-size: var(--dk-display); font-weight: 900;
  line-height: 1.1; color: #241335;
}
/* the pinyin. 0.68 alpha over cream stock computes to 5.68:1 — it passes the
   body floor, but only just, and the placard arrives on a 0.24s fade, so a
   frame caught part-way through it measures 4.35:1. 0.78 settles at 7.8:1 and
   is still an obvious step quieter than the 36px hanzi above it, which is what
   the tint is for. Measured, not eyeballed: prom/dev/dz8-ui.mjs. */
.dz-cap.order .dz-py { color: rgba(36,19,53,0.78); font-size: var(--dk-caption); font-weight: 700; }
/* THE STALLED-WARM-UP KEY HINT takes its own row, the same way the opening
   instruction's key map does. Measured at 390px before this rule: the hint
   competed with the call for the placard's width and broke 左手！across two
   lines — the one word on screen a player has to read whole. Ink on cream, one
   step quieter than the pinyin, and only ever present after a stall.
   Scoped to .keyed (set alongside the hint in warmStep) so the verdict placard
   and her closing report keep the single-row layout they were laid out and
   measured with. */
.dz-cap.order.keyed { flex-wrap: wrap; row-gap: 1px; }
.dz-cap.order.keyed .dz-keys {
  flex: 1 0 100%; font-size: var(--dk-caption); font-weight: 700;
  color: rgba(36,19,53,0.72);
}
/* her closing report is three or four SENTENCES, not one word, so it drops to
   reading size — display size is for "the one thing the round is about" */
.dz-cap.order.report { max-width: min(40ch, 96%); }
.dz-cap.order.report .dz-order { font-size: var(--dk-read); line-height: 1.45; }
.dz-cap.order.right { border-color: #1f7d68; box-shadow: 0 4px 0 rgba(31,125,104,0.5); }
.dz-cap.order.wrong { border-color: var(--dk-verm-deep, #a8231a); box-shadow: 0 4px 0 rgba(168,35,26,0.5); }

.dz-cc.on { border-color: var(--dk-gold); color: var(--dk-gold); }
/* ROUND-5: the answer line was the last text in this drill standing on the bare
   painting. It happened to measure well (12-19:1) because the school-gate art
   behind it is dark in both themes, but that is the painting's luck and not a
   material — and it is the only surface a player reads AFTER a miss, which is
   the moment the drill is actually teaching. Same ink stock as everything else
   here, so it does not become a fifth material either. */
.dz-game .mg-reveal {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.dz-game .mg-reveal:not(:empty) {
  background: var(--dk-mat-scrim, rgba(18, 9, 30, 0.9));
  border: 2px solid var(--dk-ink, #241335); border-radius: 999px;
  padding: 3px 16px 5px; box-shadow: 0 3px 0 rgba(8, 3, 16, 0.55);
  max-width: min(46ch, 92%); margin: 2px auto 0;
}
.dz-game .mg-reveal .han { color: var(--title); }
/* The middle grade. Rhythm Heaven's readout is three-tier and each tier has its
   own event; teal is "correct", vermillion is "wrong", and gold here is not
   decoration — it is the third tier, "you knew the word and missed the beat",
   which is the one this drill deliberately refuses to fail you for. */
.dz-late { color: var(--dk-gold); }
/* …and the two verdict marks carry their hanzi in <b class="han"> now (round-8
   type fix, see judge() — 没动 at 16px was under the hanzi floor). The kit's
   `.mg-reveal .han { color: var(--title) }` would repaint them neutral, which
   would cost the reveal its one piece of semantics, so each mark keeps its
   own colour through the wrapper. */
.dz-game .mg-reveal .dz-late .han { color: var(--dk-gold); }
.dz-game .mg-reveal .badmark .han { color: inherit; }

/* ------------------------------------------------------------------- PHONE
   The park keeps its aspect; the figures grow so nothing becomes a smudge, and
   the type does not move at all. */
@media (max-width: 720px) {
  .dz-wrap { width: 96vw; }
  .dz-park { aspect-ratio: 4 / 3; }
  /* the crop is its own decision at 4:3. The desktop framing puts a third of
     the plate into canopy, and on a phone that is a third of a small panel
     spent on sky while the five figures a player is meant to READ shrink into
     the bottom strip. Pushed in and dropped onto the paving. */
  .dz-paint { background-size: 196%; background-position: 22% 100%; }
  .dz-row { left: 10%; right: 32%; bottom: 4%; }
  .dz-row .dz-fig { width: 29%; }
  /* 2% -> 5%: the live ring stands 5-10px off her box and breathes, and at 2%
     its right arc was being shaved off by the park's own overflow at 390px.
     A ring with a flat side is a rendering bug, not an instruction. Measured:
     prom/dev/scratch/dz-themes.mjs prints her box against the park's. */
  .dz-me-wrap { width: 30%; right: 5%; bottom: 3%; }
  .dz-lanterns { gap: 8px; top: 3%; }
  .dz-lanterns i { width: 34px; height: 40px; }
  /* the sign tucks in against the frame; the type does not move */
  .dz-lantern-tag { right: 1.5%; top: 2.5%; padding: 1px 6px 2px; }
  /* the phone header is one narrow row and the chip has to fit it, so the
     footnote steps aside there rather than wrapping the plaque to two lines */
  .dz-game .dz-phase { display: none; }
  /* the tag drops below the lantern wire on a phone, where the park is 4:3 and
     the lanterns hang wider; the type does not move */
  .dz-coach { top: 26%; max-width: 40%; padding: 4px 8px 5px; border-width: 2.5px; }
}

/* ------------------------------------------------- REDUCED MOTION
   Motion goes, information stays. The pose properties keep being written every
   frame, so the row still shows its shape and the player's squat is still a
   squat — only the springy flourishes and the light pulse stop. The grab ring
   stays LIT (not breathing) so "act now" survives without movement, and the
   ghost hand freezes at the end of its drag instead of looping. The live ring
   itself is the kit's and drill-kit.css already stops its breath here while
   keeping the ring — it is state, and state never goes. */
@media (prefers-reduced-motion: reduce) {
  .dz-me.hit, .dz-me.late, .dz-row.bump, .dz-park.flash::after,
  .dz-cap.order { animation: none; }
  /* the painting stays; only the light stops breathing on it */
  .dz-paint::after { background:
    linear-gradient(180deg, rgba(17,9,26,0.88) 0%, rgba(17,9,26,0.5) 16%, rgba(17,9,26,0) 32%),
    radial-gradient(ellipse 74% 50% at 50% 104%, rgba(255,200,74,0.12) 0%, rgba(255,200,74,0) 68%),
    linear-gradient(180deg, rgba(14,6,24,0) 56%, rgba(14,6,24,0.42) 100%); }
  .dz-lanterns i { transition: none; }
  .dz-guide .dz-hand { animation: none !important; }
  /* the tag arrives without the tape flourish; it still arrives */
  .dz-coach.in { animation: none; transform: rotate(-1.4deg); }
  .dz-guide.g-dunxia .dz-hand { top: 58%; }
  .dz-guide.g-zuoshou .dz-hand { top: 28%; }
  .dz-guide.g-youshou .dz-hand { top: 28%; }
  .dz-guide.g-taitou .dz-hand { top: 4%; }
  /* the clap ghost parks at the END of its travel, on her midline, so a
     reduced-motion player still reads "this hand belongs over there" */
  .dz-guide.g-paishou .dz-hand { left: 28%; }
  /* …and the turn parks at the TOP of its loop, where the drawn circle starts.
     The loop itself is the information here and it is a static drawing, so a
     reduced-motion player loses nothing but the orbit. */
  .dz-guide.g-zhuanquan .dz-hand { top: 8%; }
}

/* ------------------------------------------------- TYPE SCALE, ENFORCED
   Four sizes on screen and no more: --dk-display, --dk-read, --dk-label,
   --dk-caption. Two things needed pinning to stay inside that.
   1. The tool buttons ship at label size (16px), which is the latin floor but
      UNDER the hanzi floor. Their hanzi goes to reading size here.
   2. prom.css sets the head's subtitle and score line to 12px. That is caption
      territory, so those two carry LATIN ONLY in this drill (the house pattern
      the classic drills already used) and are lifted to the caption token so
      12px never appears as a fifth size. */
.dz-game .tool { font-size: var(--dk-label); display: inline-flex; align-items: baseline; gap: 6px; }
.dz-game .tool .han { font-size: var(--dk-read); font-weight: 800; line-height: 1; }
/* the replay control is icon-only now (Lau, 2026-08-09) — same shape as
   forge2/cloze2's speaker glyph, centered rather than baseline-aligned */
.dz-game .tool.tool-ic { align-items: center; padding: 9px; }
.dz-game .tool.tool-ic svg { width: 22px; height: 22px; }
/* 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. */
/* the reveal always takes its own row under the tools (see the hoops sheet) */
.dz-game .mg-reveal { font-size: var(--dk-label); flex: 1 0 100%; text-align: center;
  max-width: min(52ch, 96vw); margin: 0 auto; }
.dz-game .mg-reveal .han { font-size: var(--dk-read); }

/* prom.css sets bubble hanzi to 19px, which is a fifth type size AND under the
   hanzi floor. The host's lines are Chinese the player is meant to read, so
   they go to reading size here. */
.dz-game .mg-bubble .han { font-size: var(--dk-read); }

/* ------------------------------------------------- SHE SAYS IT TWICE (english)
   House rule from playtesting: every direction, correction and notice carries
   English as well as Chinese. Three surfaces take it — her bubble, the reveal's
   verdict mark and her closing report on the placard — and all three sit at
   --dk-label (16px, the readable floor), NOT --dk-caption: the kit reserves
   caption size for pinyin and glosses that are never load-bearing, and a
   translated correction is read-to-play by definition. No new type size: the
   drill still measures display / --dk-read / --dk-label / --dk-caption.
   The CALL never takes one — see G_EN in dance2.js.
   Contrast, measured against what is actually behind each: #cfc6dd on the
   reveal's scrim is 11.8:1, and the placard's ink on its cream stock is 12:1.
   Both surfaces are pinned to their own material in either theme. */
.dz-en { display: block; font-size: var(--dk-label); font-weight: 700;
  line-height: 1.35; letter-spacing: 0.01em; }
.dz-game .mg-bubble .en { display: block; margin-top: 4px;
  font-size: var(--dk-label); font-weight: 700; line-height: 1.35;
  letter-spacing: 0.01em; color: #4b3a63; }
/* the verdict mark becomes a two-row stack: hanzi over its gloss, centred, and
   still one baseline-aligned item in the reveal's flex row */
.dz-game .mg-reveal .dz-late, .dz-game .mg-reveal .badmark {
  display: inline-block; text-align: center;
}
.dz-game .mg-reveal .dz-en { color: #cfc6dd; margin-top: 1px; }
/* her closing report: the English takes its own full row under the sentences */
.dz-cap.order.report { flex-wrap: wrap; row-gap: 3px; }
.dz-cap.order .dz-en { color: rgba(36, 19, 53, 0.86); flex: 1 0 100%; }

/* ------------------------------------------------- THE READING SEAM (hover/tap)
   The look of a wrapped word — the hairline under it and cursor:help — is the
   kit's (drill-kit.css, .minigame :where(.w)), and this sheet deliberately does
   not restate it: one policy, fifteen boards. It matters here more than most,
   because the census judge's top unknown on this board was "four small dark
   round buttons in a row… I can't tell whether they're clickable", and the sign
   naming them drew the same guess. A hand cursor on those would have confirmed
   the misread; cursor:help says the true thing — this explains ITSELF, it does
   not do anything — and leaves the one gold ring as the only mark on the board
   that means "touch me here".

   Three reading surfaces sit inside pointer-transparent layers over the
   painting (the lanterns, their sign, her taped note), because none of them may
   ever eat the press that grabs the dancer. Pointer-events come back on the
   WORDS ONLY: the strip, the wire, the lacquer and the tape stay transparent,
   so the only pixels that answer a pointer are the glyphs themselves — about
   20px square, all of them at the top of the frame, none of them within reach
   of her body at the right edge. The floor tag under her (新兵) is deliberately
   NOT in this list: the card opens above its word, which is exactly where she
   stands. It keeps its printed English instead. */
.dz-lanterns i b .w,
.dz-lantern-tag b.han .w,
.dz-coach b.han .w { pointer-events: auto; }

/* Packet 08: headers take real space as text grows; the board follows them. */
.minigame.dz-game { justify-content:flex-start; padding-top:12px; overflow-y:auto; }
.minigame.dz-game > .mg-head { position:relative; top:auto; left:auto; transform:none;
  flex:0 0 auto; margin:0 auto 12px; max-width:calc(100% - 16px); height:auto; }
.minigame.dz-game .mg-score { min-width:0; max-width:100%; white-space:normal; flex-wrap:wrap; }
.minigame.dz-game .dk-goal { max-width:100%; white-space:normal; flex-wrap:wrap; }
.minigame.dz-game .tool { min-width:44px; min-height:44px; }

.dz-game .dz-wrap { margin-top:8px; flex-shrink:0; }
.dz-game .mg-score .dk-goal-en { white-space:normal; }

.minigame.dz-game .dk-goal-zh, .minigame.dz-game .dk-goal-count { flex-shrink:0; white-space:nowrap; }

.minigame.dz-game.motor-over > .dk-goal-verdict { position:relative; inset:auto; transform:none;
  flex:0 0 auto; margin:8px auto; max-width:calc(100% - 24px); }
