/* ============================================================================
   RISO MINIGAME CHROME
   --------------------------------------------------------------------------
   The drills are rooms, not cards in an app. This alternate skin turns the
   furniture shared by every room into school stationery: cream stock, rough
   pigment edges, and a little screenprint tooth. Board sheets still own their
   own play fields — a boba counter must not inherit a quiz card's geometry.
   ========================================================================== */

/* Hoops painted props. The enclosing live objects keep every transform and
   reaction class; readiness hides only the matching adjacent fallback. */
:root[data-storybook-art="riso"] .hp-game .hp-riso-asset[data-riso-ready] {
  display: block; width: 100%; height: 100%; object-fit: contain;
  pointer-events: none; user-select: none;
}

:root[data-storybook-art="riso"] .hp-game .hp-riso-asset[data-riso-ready] + .hp-riso-fallback { display: none; }
:root[data-storybook-art="riso"] .hp-game :is(.hp-hoop, .hp-ball) > .hp-riso-asset { position: absolute; inset: 0; }
:root[data-storybook-art="riso"] .hp-game .hp-floor-decoration:has([data-riso-ready]) {
  display: block; position: absolute; left: 3%; bottom: 3%; width: 14%; aspect-ratio: 1;
  opacity: .65; pointer-events: none;
}
:root[data-storybook-art="riso"] .hp-game .hp-focus-art:not([hidden]):has([data-riso-ready]) {
  display: block; position: absolute; width: 17%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scaleY(.385); opacity: .85; pointer-events: none;
}
:root[data-storybook-art="riso"] .hp-game .hp-focus-art.is-rim:not([hidden]) {
  width: 10%; transform: translate(-50%, -50%);
}
:root[data-storybook-art="riso"] .hp-game .hp-whistle-art:has([data-riso-ready]) {
  display: block; position: absolute; width: 64px; height: 35px;
  left: -58px; top: 50%; transform: translateY(-50%); pointer-events: none;
}
:root[data-storybook-art="riso"] .hp-game .hp-whistle b { position: relative; }
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .hp-game .hp-focus-art:not(.is-rim):not([hidden]) { width: 23%; }
}
/* The shared paper skin changes these materials. Keep the live readout dark
   on cream, and the clock light on its existing dark scoreboard. */
:root[data-storybook-art="riso"] .hp-game #hpReveal .dk-caption { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .hp-game #hpClock .dk-ring-face { color: #fff7e8; }
:root[data-storybook-art="riso"] .hp-game #hpClock .dk-ring-track { stroke: rgba(255,247,232,.3); }
:root[data-storybook-art="riso"] .hp-game #hpClock .dk-ring-drain { stroke: #e2bd73; }
:root[data-storybook-art="riso"] .hp-game #hpClock .dk-ring.low .dk-ring-face,
:root[data-storybook-art="riso"] .hp-game #hpClock .dk-ring.low ~ .hp-clock-tag :is(b.han, span) { color: #ffbba9; }
:root[data-storybook-art="riso"] .minigame.hp-game .mg-head .mg-score .dk-goal.hp-goal {
  background: var(--riso-paper-hi); color: var(--riso-ink);
}
:root[data-storybook-art="riso"] .minigame.hp-game .mg-head .mg-score .dk-goal.hp-goal :is(b, .dk-goal-count, .dk-goal-count i, .dk-goal-zh, .dk-goal-en) { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .minigame.hp-game .mg-head .mg-score .dk-goal.hp-goal.met b { color: var(--dk-jade-deep); }
@media (max-width: 720px) {
  /* Keep the header, arena and correction in one scrollable document flow.
     Enlarged text can then grow without covering the clock or losing copy. */
  :root[data-storybook-art="riso"] .minigame.hp-game { justify-content: flex-start; padding: 12px 8px 32px; gap: 12px; }
  :root[data-storybook-art="riso"] .minigame.hp-game > .mg-head { position: relative; inset: auto; transform: none; width: 100%; flex-shrink: 0; }
  :root[data-storybook-art="riso"] .minigame.hp-game .hp-wrap { width: 100%; margin: 0; flex-shrink: 0; }
  :root[data-storybook-art="riso"] .minigame.hp-game .mg-prompt { flex-shrink: 0; width: 100%; }
  :root[data-storybook-art="riso"] .hp-game .hp-side { flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  :root[data-storybook-art="riso"] .hp-game .hp-side .hp-en { overflow-wrap: anywhere; text-align: center; }
  :root[data-storybook-art="riso"] .hp-game .hp-court { flex-shrink: 0; }
}
:root[data-storybook-art="riso"] .hp-game { container: hoops / inline-size; }
@container hoops (max-width: 20rem) {
  :root[data-storybook-art="riso"] .hp-game .hp-board { grid-template-columns: 1fr 1fr; }
  :root[data-storybook-art="riso"] .hp-game .hp-side { grid-row: 1; }
  :root[data-storybook-art="riso"] .hp-game .hp-side:last-child { grid-column: 2; }
  :root[data-storybook-art="riso"] .hp-game .hp-clock { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; gap: 12px; }
  :root[data-storybook-art="riso"] .hp-game .hp-clock .dk-ring { flex-shrink: 0; }
  :root[data-storybook-art="riso"] .hp-game .hp-clock-tag { max-width: calc(100% - 58px); }
  :root[data-storybook-art="riso"] .hp-game .hp-grab-say { min-width: 0; }
  :root[data-storybook-art="riso"] .hp-game :is(.hp-grab-say, .hp-coach, .hp-soft) b.han { white-space: normal; }
  :root[data-storybook-art="riso"] .minigame.hp-game .hp-court-frame :is(.hp-grab, .hp-coach, .hp-soft) { position: relative; inset: auto !important; transform: none; width: 100%; max-width: 100%; margin-top: 8px; }
  :root[data-storybook-art="riso"] .hp-game .hp-coach.dodge { opacity: 1; }
  /* Only the shirt labels move inward; all figure feet and catch targets stay
     at their existing percentage anchors. */
  :root[data-storybook-art="riso"] .hp-game .hp-mate[data-edge="left"] .hp-jersey { left: 72%; }
  :root[data-storybook-art="riso"] .hp-game .hp-mate[data-edge="right"] .hp-jersey { left: 28%; }
}
/* End Hoops painted props. */

/* Tone's sprites stay inside the live canvas. Its enlarged text needs room
   outside the canvas without changing the flight's coordinate system. */
:root[data-storybook-art="riso"] .tg-host #tgHold { flex-wrap: wrap; }
:root[data-storybook-art="riso"] .tg-host #tgHold .han,
:root[data-storybook-art="riso"] .tg-host #tgCC .han { font-size: var(--dk-read); }
:root[data-storybook-art="riso"] .tg-host #tgHold .lat,
:root[data-storybook-art="riso"] .tg-host #tgCC .lat { font-size: var(--dk-label); }
:root[data-storybook-art="riso"] .tg-host #tgCC { background: var(--riso-paper-hi); color: var(--riso-ink); }
:root[data-storybook-art="riso"] .tg-host #tgCC .py { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .tg-host .mg-finale {
  position: fixed; inset: 0; z-index: 80; padding: 24px;
  box-sizing: border-box; overflow-y: auto; justify-content: safe center; text-align: center;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale > * { flex-shrink: 0; max-width: 100%; }
:root[data-storybook-art="riso"] .tg-host .mg-finale > .dk-goal-verdict {
  position: static; transform: none; width: min(600px, 100%); margin: 0;
}
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .minigame.tg-host { padding-top: 12px; }
  :root[data-storybook-art="riso"] .minigame.tg-host > .mg-head { position: relative; inset: auto; transform: none; flex-shrink: 0; }
  :root[data-storybook-art="riso"] .tg-host .tg-game { flex-shrink: 0; }
  :root[data-storybook-art="riso"] .tg-host .mg-score { white-space: normal; }
  :root[data-storybook-art="riso"] .tg-host .dk-goal { flex-wrap: wrap; }
}
/* End Tone canvas integration. */

/* ========================================================================
   HOOPS + TONE · PAINTED ROOM FINISH
   The first prop pass put good little objects inside two old rectangles. These
   four large sheets fix the read at room scale: art supplies the material and
   live DOM/canvas still supplies every line, throw, gate, word and hit target.
   ======================================================================== */
:root[data-storybook-art="riso"] .hp-game .hp-riso-court-surface[data-riso-ready] {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none;
}
:root[data-storybook-art="riso"] .hp-game .hp-court:has(.hp-riso-court-surface[data-riso-ready]) {
  background: #d8b679; border-color: transparent; border-radius: 3% 2.2% 3.4% 2.5%;
  box-shadow: 0 6px 0 rgba(63,53,62,.24), 0 16px 34px rgba(55,35,28,.18);
}
:root[data-storybook-art="riso"] .hp-game .hp-court:has(.hp-riso-court-surface[data-riso-ready]) .hp-lines {
  z-index: 1; opacity: .62; mix-blend-mode: multiply;
}
:root[data-storybook-art="riso"] .hp-game .hp-board {
  background-color:#476355; background-image:var(--riso-tooth);
  border-color:rgba(247,236,213,.2); box-shadow:0 4px 0 rgba(31,39,48,.22);
}
:root[data-storybook-art="riso"] .hp-game .hp-court:has(.hp-riso-court-surface[data-riso-ready]) :is(.hp-hoop,.hp-figs,.hp-me,.hp-aim,.hp-bshadow,.hp-ball,.hp-whistle,.hp-grab,.hp-coach,.hp-soft,.hp-pullto,.hp-focus-art,.hp-floor-decoration) {
  z-index: 3;
}
:root[data-storybook-art="riso"] .hp-game .hp-focus-art:not([hidden]):has([data-riso-ready]) {
  opacity: 1; filter: drop-shadow(0 2px 0 rgba(67,98,80,.22));
}
:root[data-storybook-art="riso"] .hp-game .hp-aim path,
:root[data-storybook-art="riso"] .hp-game .hp-aim circle {
  stroke: #cf5e4a; stroke-width: 1.15;
  filter: drop-shadow(0 1px 0 #fff3d9);
}
:root[data-storybook-art="riso"] .hp-game :is(.hp-grab,.hp-coach,.hp-soft),
:root[data-storybook-art="riso"] .hp-game #hpReveal:not(:empty) {
  background-color:var(--riso-stock); background-image:var(--riso-tooth);
  border: 1px solid var(--riso-edge);
  border-radius: 5px 9px 6px 8px; box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .hp-game #hpReveal:not(:empty) {
  width:min(430px,calc(100% - 20px)); margin:8px auto 0; padding:9px 14px;
  font-size:15px; line-height:1.3; background-color:#fff7e8 !important;
  background-image:var(--riso-tooth) !important; color:var(--riso-ink) !important;
}
:root[data-storybook-art="riso"] .hp-game .hp-soft { display:none !important; }
:root[data-storybook-art="riso"] .hp-game .hp-court-frame .hp-grab {
  position:absolute !important; left:50% !important; top:calc(100% + 8px) !important;
  bottom:auto !important; transform:translateX(-50%) !important;
  width:min(430px,calc(100% - 18px)) !important; background:#fff7e8 !important;
  color:#4c392c !important; z-index:6;
}
:root[data-storybook-art="riso"] .hp-game #hpReveal:not(:empty) * { color:var(--riso-ink) !important; }
:root[data-storybook-art="riso"] .hp-game #hpReveal:not(:empty) :is(.hp-why,.dk-caption) { line-height:1.3; }
:root[data-storybook-art="riso"] .hp-game:has(#hpReveal:not(:empty)) .hp-coach { display:none !important; }
:root[data-storybook-art="riso"] .hp-game .mg-finale {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  box-sizing: border-box; padding: max(34px, 6vh) 28px; justify-content: safe center;
  background: rgba(49,36,43,.66); backdrop-filter: blur(2px);
}
:root[data-storybook-art="riso"] .hp-game .mg-finale > * { position: relative; z-index: 2; flex-shrink: 0; }
:root[data-storybook-art="riso"] .hp-game .mg-finale > .hp-riso-finale-award[data-riso-ready] {
  display: block; position: absolute; z-index: 0; left: 50%; top: 50%;
  width: min(690px, calc(100vw - 28px)); height: min(690px, calc(100vh - 28px));
  transform: translate(-50%,-50%); object-fit: fill; pointer-events: none;
}
:root[data-storybook-art="riso"] .hp-game .mg-finale:has(.hp-riso-finale-award[data-riso-ready]) {
  color: var(--riso-ink); gap: 12px;
}
:root[data-storybook-art="riso"] .hp-game .mg-finale:has(.hp-riso-finale-award[data-riso-ready]) > .han {
  color: var(--riso-coral); font-size: clamp(38px, 7vw, 62px);
}
:root[data-storybook-art="riso"] .hp-game .mg-finale > .dk-goal-verdict {
  position: relative !important; inset: auto !important; transform: none !important; width: min(500px, 72vw);
  margin: 0; background: rgba(255,247,232,.9);
}

.tg-riso-static { display: none; pointer-events: none; user-select: none; }
:root[data-storybook-art="riso"] .tg-host .tg-riso-static[data-riso-ready] { display: block; }
:root[data-storybook-art="riso"] .tg-host .tg-riso-sky-frame[data-riso-ready] {
  position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none;
}
:root[data-storybook-art="riso"] .tg-host .tg-skycase:has(.tg-riso-sky-frame[data-riso-ready]) .tg-sky {
  border: 0; border-radius: 8px; box-shadow: 0 6px 0 rgba(59,53,68,.2);
}
:root[data-storybook-art="riso"] .tg-host .tg-skycase::after {
  content:""; position:absolute; inset:5%; z-index:2; pointer-events:none;
  background:radial-gradient(circle at 20% 30%,rgba(255,247,232,.14) 0 1px,transparent 1.5px) 0 0/17px 19px;
  mix-blend-mode:soft-light; opacity:.42;
}
:root[data-storybook-art="riso"] .tg-host .tg-hold {
  background-color:var(--riso-stock); background-image:var(--riso-tooth);
  border: 1px solid var(--riso-edge);
  border-radius: 5px 9px 6px 8px; box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .tg-host .tg-desk {
  background-color:var(--riso-stock); background-image:var(--riso-tooth);
  border-color:var(--riso-edge); box-shadow:var(--riso-stamp);
}
:root[data-storybook-art="riso"] .tg-host .tg-transcript { display:none; }
:root[data-storybook-art="riso"] .tg-host .tg-hold.gk-holding,
:root[data-storybook-art="riso"] .tg-host .tg-hold:active { background: #e9c77e; }
:root[data-storybook-art="riso"] .tg-host .mg-finale > .tg-riso-finale-certificate[data-riso-ready] {
  display: block; position: absolute; z-index: 0; left: 50%; top: 50%;
  width: min(610px, calc(100vw - 24px)); height: min(720px, calc(100vh - 24px));
  transform: translate(-50%,-50%); object-fit: fill; pointer-events: none;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) {
  background: rgba(49,36,43,.66); color: var(--riso-ink); gap: 10px;
  justify-content: flex-start; padding-top: min(18vh, 150px);
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > :not(.tg-riso-finale-certificate) {
  position: relative; z-index: 2;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .han {
  color: var(--riso-coral); font-size: clamp(38px, 7vw, 62px);
}
:root[data-storybook-art="riso"] .tg-host .mg-finale > .dk-goal-verdict {
  position: relative !important; inset: auto !important; transform: none !important;
  margin: 0 auto; background: rgba(255,247,232,.88); border-color: var(--riso-edge);
}

/* at 200% the room becomes a short reading flow. decorative title copy and
   fixed character speech yield to the score, live field, current verb and its
   feedback in that order. */
:root[data-storybook-art="riso"] .hp-game.hp-textzoom > .mg-head > b,
:root[data-storybook-art="riso"] .hp-game.hp-textzoom > .mg-head > span:not(.mg-score),
:root[data-storybook-art="riso"] .hp-game.hp-textzoom :is(.hp-coach,.hp-soft) { display:none !important; }
:root[data-storybook-art="riso"] .hp-game.hp-textzoom > .mg-head { min-height:52px; padding:5px 46px 5px 10px; }
:root[data-storybook-art="riso"] .hp-game.hp-textzoom > .mg-head .mg-score { width:100%; justify-content:center; margin:0; }
:root[data-storybook-art="riso"] .hp-game.hp-textzoom > .mg-head .mg-score * { font-size:16px !important; line-height:1.15; }
:root[data-storybook-art="riso"] .hp-game.hp-textzoom .hp-board { padding:5px 9px; }
:root[data-storybook-art="riso"] .hp-game.hp-textzoom .hp-clock-tag { display:none; }
:root[data-storybook-art="riso"] .hp-game.hp-textzoom #hpReveal:not(:empty) {
  width:calc(100% - 16px); margin:6px auto; padding:8px 11px; font-size:16px;
}
:root[data-storybook-art="riso"] .hp-game.hp-textzoom #hpReveal:not(:empty) :is(.han,.hp-why,.dk-caption) { font-size:16px !important; line-height:1.3; }

:root[data-storybook-art="riso"] .tg-host.tg-textzoom > .mg-head > b,
:root[data-storybook-art="riso"] .tg-host.tg-textzoom > .mg-head > span:not(.mg-score),
:root[data-storybook-art="riso"] .tg-host.tg-textzoom #mgBubble { display:none !important; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom > .mg-head {
  min-height:54px; padding:5px 46px 5px 10px; width:calc(100% - 16px);
}
:root[data-storybook-art="riso"] .tg-host.tg-textzoom > .mg-head .mg-score { width:100%; justify-content:center; margin:0; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom > .mg-head .mg-score * { font-size:16px !important; line-height:1.15; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-hold {
  min-height:58px; padding:7px 12px; gap:5px;
}
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-hold .han { font-size:21px !important; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-hold .lat { font-size:15px !important; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-desk { padding:8px 12px; gap:7px; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-desk :is(.tg-flight,.tg-syl,.tg-reveal),
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-desk :is(.tg-flight,.tg-syl,.tg-reveal) * { font-size:17px !important; line-height:1.25; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-transcript {
  display:block; width:calc(100% - 32px); margin:5px auto 18px;
  background-color:var(--riso-stock); background-image:var(--riso-tooth);
  color:var(--riso-ink); border:1px solid var(--riso-edge); border-radius:6px;
}
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-transcript {
  background-color:#fff7e8 !important; background-image:var(--riso-tooth) !important;
}
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-transcript summary { padding:8px 12px; font-size:16px; font-weight:700; cursor:pointer; color:var(--riso-ink) !important; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-transcript summary i { margin-left:6px; font-size:14px; font-weight:500; }
:root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-transcript-copy { padding:2px 12px 10px; font-size:17px; line-height:1.35; }

/* result copy belongs in the upper writing field of each painted award. the
   fixed bounds also give the verifier a real certificate area to measure. */
:root[data-storybook-art="riso"] :is(.hp-game,.tg-host) .mg-finale:has(> [data-riso-ready]) > .dk-goal-verdict {
  max-height:none; overflow:visible; box-sizing:border-box;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) {
  justify-content:flex-start; padding-top:clamp(118px,17vh,148px);
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .dk-goal-verdict {
  width:min(480px,72vw); margin-top:4px;
}

@media (max-width: 720px) {
  /* At enlarged text the scoreboard fiction yields space to the live action.
     The deciding goal stays in the header; team English and the fixed sales
     line are the first things that may disappear. */
  :root[data-storybook-art="riso"] .hp-game > .mg-head > span:not(.mg-score),
  :root[data-storybook-art="riso"] .hp-game .hp-side .hp-en { display: none; }
  :root[data-storybook-art="riso"] .hp-game > .mg-head { padding: 10px 46px 10px 12px; gap: 6px; }
  :root[data-storybook-art="riso"] .hp-game > .mg-head > b.han { font-size: 24px; line-height: 1.1; }
  :root[data-storybook-art="riso"] .hp-game > .mg-head .mg-score { font-size: 16px; }
  :root[data-storybook-art="riso"] .hp-game .hp-board { padding: 7px 10px; }
  :root[data-storybook-art="riso"] .hp-game .hp-side b.han,
  :root[data-storybook-art="riso"] .hp-game .hp-num { font-size: 20px; }
  :root[data-storybook-art="riso"] .hp-game .hp-clock-tag span { display: none; }
  :root[data-storybook-art="riso"] .hp-game .hp-clock-tag b.han { font-size: 14px; }
  :root[data-storybook-art="riso"] .hp-game .mg-finale { padding: 32px 18px; }
  :root[data-storybook-art="riso"] .hp-game .mg-finale > .hp-riso-finale-award[data-riso-ready] { height: min(650px, calc(100vh - 18px)); }
  :root[data-storybook-art="riso"] .hp-game .mg-finale > .dk-goal-verdict { width: min(300px, 76vw); max-height: 42vh; overflow-y: auto; }

  :root[data-storybook-art="riso"] .tg-host > .mg-head > span:not(.mg-score) { display: none; }
  :root[data-storybook-art="riso"] .tg-host > .mg-head { padding: 10px 46px 10px 12px; gap: 6px; width: calc(100% - 16px); }
  :root[data-storybook-art="riso"] .tg-host > .mg-head > b.han { font-size: 24px; line-height: 1.1; }
  :root[data-storybook-art="riso"] .tg-host > .mg-head .mg-score { font-size: 16px; }
  :root[data-storybook-art="riso"] .tg-host > .mg-head .dk-goal { flex-wrap: nowrap; padding: 4px 7px; gap: 4px; }
  :root[data-storybook-art="riso"] .tg-host > .mg-head .dk-goal-zh { font-size: 20px; }
  :root[data-storybook-art="riso"] .tg-host > .mg-head .dk-goal-count { font-size: 26px; }
  :root[data-storybook-art="riso"] .tg-host > .mg-head .dk-goal-en { font-size: 14px; line-height: 1.1; }
  :root[data-storybook-art="riso"] .tg-host .tg-riso-sky-frame[data-riso-ready] { inset: 0; width: 100%; height: 100%; }
  :root[data-storybook-art="riso"] .tg-host .tg-hold { padding: 10px 12px; }
  :root[data-storybook-art="riso"] .tg-host .tg-hold .han { font-size: 20px; }
  :root[data-storybook-art="riso"] .tg-host .tg-hold .lat { font-size: 14px; }
  :root[data-storybook-art="riso"] .tg-host .mg-finale { padding: 72px 18px 32px; }
  :root[data-storybook-art="riso"] .tg-host .mg-finale > .tg-riso-finale-certificate[data-riso-ready] { height: min(720px, calc(100vh - 18px)); }
  :root[data-storybook-art="riso"] .tg-host .mg-finale > .dk-goal-verdict { width: min(300px, 76vw); max-height: 42vh; overflow-y: auto; }
  :root[data-storybook-art="riso"] :is(.hp-game,.tg-host) .mg-finale .dk-goal-verdict-zh { font-size: 28px; }
  :root[data-storybook-art="riso"] :is(.hp-game,.tg-host) .mg-finale .dk-goal-verdict-en { font-size: 18px; line-height: 1.25; }
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .tg-host #mgBubble { display:none !important; }
  :root[data-storybook-art="riso"] .tg-host .tg-transcript {
    display:block; width:calc(100% - 32px); margin:5px auto 18px;
    background:#fff7e8 !important; color:#4c392c !important;
    border:1px solid var(--riso-edge); border-radius:6px;
  }
  :root[data-storybook-art="riso"] .tg-host .tg-transcript summary { padding:7px 12px; color:#4c392c !important; }
  :root[data-storybook-art="riso"] .tg-host .tg-desk { padding:7px 10px; gap:6px; }
  :root[data-storybook-art="riso"] .tg-host .tg-desk :is(.tg-flight,.tg-syl,.tg-reveal),
  :root[data-storybook-art="riso"] .tg-host .tg-desk :is(.tg-flight,.tg-syl,.tg-reveal) * { font-size:16px !important; line-height:1.2; }
  :root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) { padding-top:110px; }
  :root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .dk-goal-verdict {
    width:min(300px,76vw); max-height:none; overflow:visible; margin-top:42px;
  }
}
/* End Hoops + Tone painted room finish. */

:root[data-storybook-art="riso"] .minigame {
  --riso-paper: #f7ecd5;
  --riso-paper-hi: #fff7e8;
  --riso-ink: #4c392c;
  --riso-quiet: #806956;
  --riso-sage: #557c67;
  --riso-sage-wash: #dce8ca;
  --riso-coral: #c85a48;
  --riso-coral-wash: #f2d6c6;
  --riso-violet: #7560a4;
  --riso-navy: #465878;
  --riso-edge: #b98e70;
  --riso-shadow: rgba(100, 70, 51, 0.18);
  --riso-tooth:
    radial-gradient(circle at 18% 27%, rgba(94, 63, 43, 0.09) 0 0.55px, transparent 0.8px),
    radial-gradient(circle at 78% 71%, rgba(255, 255, 255, 0.68) 0 0.7px, transparent 0.95px);
  --riso-stock: var(--riso-tooth), var(--riso-paper-hi);
  --riso-stamp: 0 3px 0 var(--riso-shadow), 0 10px 22px rgba(78, 50, 33, 0.08);
  background-color: #eadfc4;
  background-image:
    radial-gradient(ellipse 11px 25px at 88% 89%, rgba(85, 124, 103, 0.18) 0 96%, transparent 100%),
    radial-gradient(ellipse 15px 9px at 93% 86%, rgba(85, 124, 103, 0.14) 0 96%, transparent 100%),
    var(--riso-tooth);
  color: var(--riso-ink);
  isolation: isolate;

  /* the object kit predates this skin. Re-point its materials here so every
     counter, classroom, court and phone is cut from the same warm stationery
     without asking thirteen drill sheets to imitate one another. */
  --dk-ink: var(--riso-ink);
  --dk-stock: var(--riso-paper);
  --dk-stock-2: var(--riso-paper-hi);
  --dk-ink-soft: rgba(76, 57, 44, 0.72);
  --dk-ink-faint: rgba(76, 57, 44, 0.28);
  --dk-gold: #d59b3d;
  --dk-gold-deep: #805a1d;
  --dk-jade: #72a58a;
  --dk-jade-deep: #35644e;
  --dk-verm: var(--riso-coral);
  --dk-verm-deep: #983f35;
  --dk-line: 1.5px solid var(--riso-edge);
  --dk-drop: 0 3px 0 var(--riso-shadow), 0 9px 18px rgba(78, 50, 33, 0.07);
  --dk-drop-lift: 0 5px 0 var(--riso-shadow), 0 12px 22px rgba(78, 50, 33, 0.09);
  --dk-outline: drop-shadow(1px 0 0 var(--riso-edge)) drop-shadow(-1px 0 0 var(--riso-edge))
    drop-shadow(0 1px 0 var(--riso-edge)) drop-shadow(0 -1px 0 var(--riso-edge));
  --dk-mat-scrim: rgba(61, 47, 39, 0.88);
  --dk-mat-veil: rgba(61, 47, 39, 0.48);
}

/* the room gets two quiet margin drawings, not wallpaper. Their broad colour
   shapes rhyme with the fox stationery while leaving the lesson's middle bare. */
:root[data-storybook-art="riso"] .minigame:not(.dk-drill, .tut-reserved)::before,
:root[data-storybook-art="riso"] .minigame:not(.dk-drill)::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
:root[data-storybook-art="riso"] .minigame:not(.dk-drill, .tut-reserved)::before {
  left: -18px;
  bottom: 22px;
  width: 126px;
  height: 105px;
  background:
    radial-gradient(circle at 39% 58%, #4c392c 0 2px, transparent 2.5px),
    radial-gradient(circle at 63% 58%, #4c392c 0 2px, transparent 2.5px),
    radial-gradient(ellipse at 51% 68%, #f7ecd5 0 27%, transparent 28%),
    #c85a48;
  clip-path: polygon(9% 100%, 10% 49%, 26% 8%, 45% 34%, 55% 34%, 75% 7%, 90% 49%, 89% 100%);
  transform: rotate(-5deg);
  opacity: 0.44;
}
:root[data-storybook-art="riso"] .minigame:not(.dk-drill)::after {
  right: -15px;
  bottom: 32px;
  width: 132px;
  height: 82px;
  background:
    linear-gradient(90deg,
      #557c67 0 8%,
      #f7ecd5 8% 47%,
      #557c67 47% 51%,
      #f7ecd5 51% 92%,
      #557c67 92% 100%);
  border-top: 4px solid #7560a4;
  box-shadow: -9px 9px 0 rgba(85, 124, 103, 0.55);
  clip-path: polygon(5% 5%, 48% 13%, 53% 8%, 96% 1%, 92% 88%, 55% 82%, 49% 91%, 2% 82%);
  transform: rotate(4deg);
  opacity: 0.5;
}

/* the title and score travel together as one clipped admission slip, so the
   header remains readable over every painted stage in either theme. */
:root[data-storybook-art="riso"] .minigame > .mg-head {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border: 1px solid var(--riso-edge);
  border-top: 4px solid var(--riso-coral);
  border-radius: 3px 9px 4px 7px;
  box-shadow: var(--riso-stamp);
  padding: 7px 13px 8px;
  min-height: 48px;
  box-sizing: border-box;
}
:root[data-storybook-art="riso"] .minigame .mg-head b.han,
:root[data-storybook-art="riso"] .minigame .mg-head > span,
:root[data-storybook-art="riso"] .minigame .mg-score,
:root[data-storybook-art="riso"] .minigame .mg-score b {
  color: var(--riso-ink);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .mg-head > span,
:root[data-storybook-art="riso"] .minigame .mg-score { color: var(--riso-quiet); }
:root[data-storybook-art="riso"] .minigame .mg-score b { font-weight: 900; }

/* a strip of pigment, not a glossy capsule. The high-contrast fill remains
   available to the low-time state, which its own rule continues to paint. */
:root[data-storybook-art="riso"] .minigame > .mg-timerwrap,
:root[data-storybook-art="riso"] .minigame .mg-timerwrap {
  height: 7px;
  background: #d4bf9a;
  border: 1px solid rgba(86, 59, 42, 0.24);
  border-radius: 2px 5px 3px 4px;
  box-shadow: inset 0 1px 1px rgba(78, 50, 33, 0.16);
}
:root[data-storybook-art="riso"] .minigame .mg-timer {
  background: var(--riso-sage);
  border-radius: 1px 3px 2px 1px;
}
:root[data-storybook-art="riso"] .minigame .mg-timerwrap.low .mg-timer {
  background: var(--riso-coral) !important;
}

/* spoken instructions and feedback are handwritten notes, never heavy speech
   bubbles. The tail stays, but borrows the brown paper edge instead of ink. */
:root[data-storybook-art="riso"] .minigame .mg-bubble,
:root[data-storybook-art="riso"] .minigame .mg-bubble.float,
:root[data-storybook-art="riso"] .minigame .dk-legend {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border: 1px solid var(--riso-edge);
  border-radius: 4px 10px 5px 8px;
  box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .minigame .mg-bubble .han,
:root[data-storybook-art="riso"] .minigame .dk-legend .han { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .minigame .mg-bubble::after {
  background: var(--riso-paper);
  border-right: 1px solid var(--riso-edge);
  border-bottom: 1px solid var(--riso-edge);
}
:root[data-storybook-art="riso"] .minigame .mg-bubble.ok { border-color: var(--riso-sage); }
:root[data-storybook-art="riso"] .minigame .mg-bubble.bad { border-color: var(--riso-coral); }

/* an answer is a loose classroom slip: thin pigment edge, quiet stock, one
   offset shadow. The state is printed along its top instead of glowing around
   a generic app card. Trays keep their own useful object silhouette. */
:root[data-storybook-art="riso"] .minigame .mg-board:not(.tray) {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border: 1px solid var(--riso-edge);
  border-bottom: 3px solid #9e765c;
  border-radius: 4px 9px 5px 7px;
  box-shadow: 0 3px 0 var(--riso-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .mg-board:not(.tray):hover:not(:disabled) {
  background: var(--riso-tooth), #fff4de;
  border-color: var(--riso-sage);
  box-shadow: 0 5px 0 rgba(85, 124, 103, 0.18);
}
:root[data-storybook-art="riso"] .minigame .mg-board:not(.tray).right {
  background: var(--riso-tooth), #dce8ca;
  color: #355847;
  border-color: var(--riso-sage);
  border-top: 5px solid var(--riso-sage);
  box-shadow: 0 3px 0 rgba(85, 124, 103, 0.2);
}
:root[data-storybook-art="riso"] .minigame .mg-board:not(.tray).wrong {
  background: var(--riso-tooth), #f2d6c6;
  color: #864033;
  border-color: var(--riso-coral);
  border-top: 5px solid var(--riso-coral);
  box-shadow: 0 3px 0 rgba(200, 90, 72, 0.18);
}

/* the rebuilt drills already speak in slips, dockets and stamps. This pass
   removes their last hard black-card edges without flattening the objects into
   one component — each keeps the shape that explains how to use it. */
:root[data-storybook-art="riso"] .minigame :is(.dk-plate, .dk-docket, .dk-legend) {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border-color: var(--riso-edge);
  border-width: 1px;
  border-radius: 5px 10px 6px 8px;
  box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .minigame .dk-chip {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border: 1px solid var(--riso-edge);
  border-bottom: 3px solid #9e765c;
  border-radius: 3px 8px 4px 6px;
  box-shadow: 0 2px 0 var(--riso-shadow);
}
:root[data-storybook-art="riso"] .minigame .dk-chip:hover:not(:disabled) {
  background: var(--riso-tooth), #fff4de;
  border-color: var(--riso-sage);
  box-shadow: 0 4px 0 rgba(85, 124, 103, 0.18);
}
:root[data-storybook-art="riso"] .minigame .dk-chip.on,
:root[data-storybook-art="riso"] .minigame .dk-chip.live {
  background: var(--riso-tooth), #f3d9aa;
  color: var(--riso-ink);
  border-color: #b47e32;
}
:root[data-storybook-art="riso"] .minigame .dk-chip.right {
  background: var(--riso-tooth), var(--riso-sage-wash);
  color: #355847;
  border-color: var(--riso-sage);
}
:root[data-storybook-art="riso"] .minigame .dk-chip.wrong {
  background: var(--riso-tooth), var(--riso-coral-wash);
  color: #864033;
  border-color: var(--riso-coral);
}
:root[data-storybook-art="riso"] .minigame .dk-chip:is(.spent, :disabled) {
  background: #e7dcc5;
  color: #806f5f;
  border-color: #c4ad91;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .dk-slot {
  color: var(--riso-quiet);
  border-color: #a9896d;
  border-radius: 3px 7px 4px 6px;
}
:root[data-storybook-art="riso"] .minigame .dk-slot.filled {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border-color: var(--riso-sage);
}
:root[data-storybook-art="riso"] .minigame .dk-stamp {
  background: rgba(255, 247, 232, 0.78);
  color: var(--riso-coral);
  border-color: var(--riso-coral);
  border-radius: 4px 7px 3px 6px;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .dk-stamp.is-right {
  color: var(--riso-sage);
  border-color: var(--riso-sage);
}
:root[data-storybook-art="riso"] .minigame .dk-stamp.is-wrong {
  color: var(--riso-coral);
  border-color: var(--riso-coral);
}

/* classic listening rooms share one generous reading column. Rebuilt drills
   keep their own courts; these widths only stop the old chrome becoming a
   postcard floating in an empty page. */
:root[data-storybook-art="riso"] .minigame > .mg-bubble:not(.float) {
  width: min(320px, calc(100vw - 40px));
  max-width: 320px;
  box-sizing: border-box;
  padding: 17px 20px 18px;
  font-size: 16px;
  line-height: 1.42;
  text-align: left;
}
:root[data-storybook-art="riso"] .minigame > .mg-bubble:not(.float) .han {
  display: inline-block;
  margin-bottom: 4px;
}

:root[data-storybook-art="riso"] .minigame :is(.mg-bigprompt, .mg-prompt, .mg-reveal, .mg-soundhint) {
  color: var(--riso-ink);
  text-shadow: 0 1px 0 rgba(255, 248, 232, 0.72);
}
:root[data-storybook-art="riso"] .minigame > .mg-bigprompt {
  width: min(340px, calc(100vw - 32px));
  min-height: 0;
  margin: 18px auto 8px;
  text-align: center;
}
:root[data-storybook-art="riso"] .minigame .mg-reveal .han,
:root[data-storybook-art="riso"] .minigame .mg-reveal.big .han { color: var(--riso-violet); text-shadow: none; }
:root[data-storybook-art="riso"] .minigame :is(.okmark, .mg-reveal.ok) { color: var(--riso-sage); }
:root[data-storybook-art="riso"] .minigame :is(.badmark, .mg-reveal.bad) { color: var(--riso-coral); }
:root[data-storybook-art="riso"] .minigame .mg-reveal:is(.ok, .bad):not(:empty) {
  width: fit-content;
  max-width: min(560px, calc(100vw - 32px));
  margin-inline: auto;
  padding: 7px 12px 8px;
  background: var(--riso-stock);
  border: 1px solid var(--riso-edge);
  border-left: 5px solid var(--riso-sage);
  border-radius: 3px 8px 4px 6px;
  box-shadow: 0 2px 0 var(--riso-shadow);
}
:root[data-storybook-art="riso"] .minigame .mg-reveal.bad:not(:empty) {
  border-left-color: var(--riso-coral);
}

/* replay, hint, and next-step controls inherit one matte cut-paper treatment.
   Drill-specific tools can still set their width, icon, or position. */
:root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn) {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border: 1px solid var(--riso-edge);
  border-bottom: 3px solid #9e765c;
  border-radius: 3px 7px 4px 6px;
  box-shadow: 0 2px 0 var(--riso-shadow);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn):hover:not(:disabled) {
  background: var(--riso-tooth), #fff4de;
  border-color: var(--riso-sage);
  color: #385b4b;
  transform: translateY(-1px) rotate(-0.25deg);
}
:root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn):active:not(:disabled) {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .tool.on,
:root[data-storybook-art="riso"] .minigame .tool[aria-pressed="true"] {
  background: var(--riso-sage-wash);
  border-color: var(--riso-sage);
  color: #355847;
}
:root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn):disabled,
:root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn)[aria-disabled="true"] {
  background: #e4d8c0;
  border-color: #c6ad91;
  color: #8d7968;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .minigame > .bigbtn {
  width: min(356px, calc(100vw - 32px));
  min-height: 52px;
  padding: 11px 18px;
  font-size: 16px;
}
:root[data-storybook-art="riso"] .minigame > .tool {
  min-width: 184px;
  min-height: 44px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 750;
}

/* these are the recurring verb controls that otherwise escape .tool. Their
   drill still decides placement and size; the riso layer only supplies ink,
   paper and a pressed edge. */
:root[data-storybook-art="riso"] .minigame :is(
  .b2-look, .rz-hopper, .tg-hold, .tg-btn, .h2-tool,
  .f2-tool, .c2-tool, .s3-chop, .s3-restart, .c2-restart
) {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border-color: var(--riso-edge);
  border-width: 1px;
  border-bottom: 3px solid #9e765c;
  border-radius: 4px 8px 5px 7px;
  box-shadow: 0 2px 0 var(--riso-shadow);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame :is(
  .b2-look, .rz-hopper, .tg-hold, .tg-btn, .h2-tool,
  .f2-tool, .c2-tool, .s3-chop, .s3-restart, .c2-restart
):hover:not(:disabled) {
  background: var(--riso-tooth), #fff4de;
  border-color: var(--riso-sage);
}
:root[data-storybook-art="riso"] .minigame .s3-onair {
  background: var(--riso-tooth), #dc7a62;
  color: #4d2c25;
  border: 1px solid #a94f40;
  border-bottom: 4px solid #914537;
  border-radius: 5px 10px 6px 8px;
  box-shadow: 0 3px 0 rgba(111, 58, 45, 0.2);
  text-shadow: none;
}

/* settings and the lesson-door use the same pale stock as the head slip. The
   corners remain reserved even when an older drill forgot to announce them. */
:root[data-storybook-art="riso"] body:has(.minigame) .global-gear,
:root[data-storybook-art="riso"] body:has(.minigame) :is(.dm-help, .mg-exit) {
  background: #fff7e8;
  color: #4c392c;
  border: 1px solid #b98e70;
  border-radius: 5px 9px 6px 8px;
  box-shadow: 0 3px 0 rgba(100, 70, 51, 0.18);
}

/* the generic curtain call becomes a report card: coral for the moment, sage
   for a pass, and no black stroke around the celebration. */
:root[data-storybook-art="riso"] .minigame .mg-finale {
  background: var(--riso-tooth), rgba(255, 247, 232, 0.94);
  backdrop-filter: blur(2px) saturate(0.86);
  -webkit-backdrop-filter: blur(2px) saturate(0.86);
}
:root[data-storybook-art="riso"] .minigame .mg-finale > .han {
  color: var(--riso-coral);
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 rgba(255, 247, 232, 0.9);
}
:root[data-storybook-art="riso"] .minigame .mg-finale-en { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .minigame .mg-stars i {
  background: #e7d8bd;
  border: 1px solid var(--riso-edge);
  border-radius: 2px 4px 2px 3px;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .mg-stars i.on {
  background: var(--riso-sage);
  border-color: #416450;
  box-shadow: 0 1px 0 rgba(67, 98, 80, 0.25);
}

/* ========================================================================
   THE SHARED SCHOOL DESK
   The specialized boards still describe their own objects and gestures. This
   layer only changes the material those objects are printed on: thin pigment
   edges, blunt paper shadows, and corners that miss perfect registration by a
   few pixels. The result is illustrated without turning each answer into a
   decorated card.
   ====================================================================== */
:root[data-storybook-art="riso"] .minigame :is(
  .dk-plate, .dk-docket, .dk-legend, .dk-chip, .dk-slot,
  .dk-shellchip, .dk-slab
) {
  background-color: var(--riso-paper-hi);
  background-image: var(--riso-tooth);
  color: var(--riso-ink);
  border-color: var(--riso-edge);
  border-width: 1.5px;
  box-shadow: var(--riso-stamp);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame :is(
  .tool-ic, .b2-again-ic, .rz-again, .tk-btn-ic, .tg-btn-ic,
  .f2-tool-ic, .cloze2 .c2-tool-ic, .s3-vic
) {
  min-width: 44px;
}
:root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn) { min-height: 44px; }
:root[data-storybook-art="riso"] .minigame :is(button, [role="button"], input):focus-visible {
  outline: 3px solid #d59b3d;
  outline-offset: 3px;
}
:root[data-storybook-art="riso"] .minigame :is(.dk-plate, .dk-legend) {
  border-radius: 4px 11px 5px 8px;
}
:root[data-storybook-art="riso"] .minigame .dk-docket {
  border-radius: 3px 8px 4px 6px;
  transform: rotate(-0.18deg);
}
:root[data-storybook-art="riso"] .minigame .dk-docket-hd,
:root[data-storybook-art="riso"] .minigame .dk-docket-row {
  border-color: rgba(76, 57, 44, 0.2);
}
:root[data-storybook-art="riso"] .minigame .dk-docket-row.now {
  background: rgba(213, 155, 61, 0.2);
  box-shadow: inset 3px 0 0 #b87d2d;
}
:root[data-storybook-art="riso"] .minigame .dk-docket.stub::after {
  opacity: 0.55;
}
:root[data-storybook-art="riso"] .minigame .dk-chip {
  border-radius: 4px 8px 5px 7px;
}
:root[data-storybook-art="riso"] .minigame .dk-chip:nth-child(even) { transform: rotate(0.35deg); }
:root[data-storybook-art="riso"] .minigame .dk-chip:hover:not(:disabled) {
  background-color: #fff4de;
  border-color: var(--riso-sage);
  box-shadow: var(--dk-drop-lift);
}
:root[data-storybook-art="riso"] .minigame .dk-chip.on,
:root[data-storybook-art="riso"] .minigame .dk-chip.live {
  background: var(--riso-tooth), #ead49b;
  border-color: #9c722c;
}
:root[data-storybook-art="riso"] .minigame .dk-chip.right {
  background: var(--riso-tooth), var(--riso-sage-wash);
  border-color: var(--riso-sage);
}
:root[data-storybook-art="riso"] .minigame .dk-chip.wrong {
  background: var(--riso-tooth), var(--riso-coral-wash);
  border-color: var(--riso-coral);
}
:root[data-storybook-art="riso"] .minigame .dk-slot {
  background-color: rgba(255, 247, 232, 0.58);
  border-style: dashed;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .dk-stamp {
  border-width: 2px;
  text-shadow: none;
}

/* compact readouts are pinned paper tabs, not neon HUD capsules. */
:root[data-storybook-art="riso"] .minigame :is(.dk-counter, .dk-ring-face) {
  color: var(--riso-ink);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .dk-counter {
  min-height: 34px;
  padding: 4px 10px;
  background: var(--riso-stock);
  border: 1px solid var(--riso-edge);
  border-radius: 3px 7px 4px 6px;
  box-shadow: 0 2px 0 var(--riso-shadow);
}
:root[data-storybook-art="riso"] .minigame .dk-counter-n { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .minigame .dk-ring-track { stroke: rgba(76, 57, 44, 0.2); }
:root[data-storybook-art="riso"] .minigame .dk-ring-drain { stroke: var(--riso-sage); }
:root[data-storybook-art="riso"] .minigame .dk-live {
  outline: 3px solid #d59b3d;
  outline-offset: 4px;
  filter: drop-shadow(0 0 7px rgba(213, 155, 61, 0.34));
}
@keyframes risoDeskLive {
  0%, 100% { outline-offset: 4px; filter: drop-shadow(0 0 5px rgba(213, 155, 61, 0.28)); }
  50% { outline-offset: 7px; filter: drop-shadow(0 0 9px rgba(213, 155, 61, 0.42)); }
}
:root[data-storybook-art="riso"] .minigame .dk-live { animation-name: risoDeskLive; }

/* instructions and verdicts share the same note grammar even when a drill did
   not opt into the generic bubble. The thin coloured rule carries state; the
   whole page never needs to shout in teal or vermillion. */
:root[data-storybook-art="riso"] .minigame :is(
  .mg-reveal:not(:empty), .mg-soundhint, .dk-goal-verdict,
  .rz-endsheet .rz-recap, .s3-report, .r2-keepsake,
  .b2-fix, .c2-slip, .tk-slip, .tg-reveal
) {
  background-color: var(--riso-paper-hi);
  background-image: var(--riso-tooth);
  color: var(--riso-ink);
  border-color: var(--riso-edge);
  box-shadow: var(--riso-stamp);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .mg-reveal:not(:empty) {
  width: min(520px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 9px 14px;
  border: 1px solid var(--riso-edge);
  border-left: 4px solid var(--riso-violet);
  border-radius: 3px 9px 5px 7px;
}
:root[data-storybook-art="riso"] .minigame .mg-reveal.ok { border-left-color: var(--riso-sage); }
:root[data-storybook-art="riso"] .minigame .mg-reveal.bad { border-left-color: var(--riso-coral); }
:root[data-storybook-art="riso"] .minigame .mg-soundhint {
  padding: 5px 10px;
  border: 1px solid rgba(185, 142, 112, 0.72);
  border-radius: 3px 7px 4px 6px;
}
:root[data-storybook-art="riso"] .minigame .mg-burst {
  background: var(--riso-tooth), rgba(255, 247, 232, 0.96);
  color: var(--riso-ink);
  border: 1px solid var(--riso-edge);
  border-radius: 4px 10px 5px 8px;
  box-shadow: var(--riso-stamp);
  text-shadow: none;
}

/* thirteen rooms use different nouns for the same small action. Keeping the
   selectors here makes their touch geometry and paper weight visibly related
   while each sheet remains free to position its own tool. */
:root[data-storybook-art="riso"] .minigame :is(
  .b2-look, .b2-slipbtn, .b2-next, .b2-again,
  .rz-hopper, .rz-endbtn, .rz-again,
  .cy-card, .cy-seal,
  .hp-hole, .hp-grab,
  .dz-cap,
  .s3-mic, .s3-jump, .s3-chop, .s3-againbtn, .s3-restart,
  .c2-turn, .c2-dump, .c2-scoop, .c2-againbtn,
  .tk-btn, .tg-btn, .tg-hold,
  .f2-tool, .hist2 .h2-cloth, .cloze2 .c2-tool,
  .r2-chip, .r2-again, .r2-skip, .r2-end-go, .r2-end-quiet, .r2-restart
) {
  background-color: var(--riso-paper-hi);
  background-image: var(--riso-tooth);
  color: var(--riso-ink);
  border-color: var(--riso-edge);
  border-width: 1.5px;
  border-radius: 4px 8px 5px 7px;
  box-shadow: 0 3px 0 var(--riso-shadow);
  text-shadow: none;
  min-height: 44px;
}
:root[data-storybook-art="riso"] .minigame :is(
  .b2-look, .b2-slipbtn, .b2-next, .b2-again,
  .rz-hopper, .rz-endbtn, .rz-again,
  .cy-card, .cy-seal, .hp-hole, .hp-grab, .dz-cap,
  .s3-mic, .s3-jump, .s3-chop, .s3-againbtn, .s3-restart,
  .c2-turn, .c2-dump, .c2-scoop, .c2-againbtn,
  .tk-btn, .tg-btn, .tg-hold, .f2-tool, .hist2 .h2-cloth,
  .cloze2 .c2-tool, .r2-chip, .r2-again, .r2-skip,
  .r2-end-go, .r2-end-quiet, .r2-restart
):hover:not(:disabled) {
  background-color: #fff4de;
  border-color: var(--riso-sage);
  box-shadow: 0 5px 0 var(--riso-shadow);
}
:root[data-storybook-art="riso"] .minigame :is(
  .b2-look, .b2-slipbtn, .b2-next, .rz-hopper, .rz-endbtn,
  .cy-card, .hp-hole, .hp-grab, .dz-cap, .s3-mic, .s3-jump,
  .c2-turn, .c2-dump, .c2-scoop, .tk-btn, .tg-btn, .tg-hold,
  .f2-tool, .hist2 .h2-cloth, .cloze2 .c2-tool,
  .r2-chip, .r2-skip, .r2-end-go, .r2-end-quiet
):active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--riso-shadow);
}

/* social drills used glossy device chrome because their rooms imitate apps.
   They keep the device layout, but the shell now reads as a painted paper prop
   sitting in the same illustrated world as the classroom tools. */
:root[data-storybook-art="riso"] .minigame :is(.s3-phone, .s3-side, .s3-pinq, .r2-lyric) {
  background-color: var(--riso-paper-hi);
  background-image: var(--riso-tooth);
  color: var(--riso-ink);
  border-color: var(--riso-edge);
  box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .minigame :is(.s3-shead, .s3-inputrow, .r2-turntag) {
  background: var(--riso-tooth), #eadfc9;
  color: var(--riso-quiet);
  border-color: rgba(185, 142, 112, 0.58);
  box-shadow: none;
}
:root[data-storybook-art="riso"] .minigame .s3-input {
  background: var(--riso-tooth), #fffaf0;
  color: var(--riso-ink);
  border-color: var(--riso-edge);
  box-shadow: inset 0 1px 2px rgba(100, 70, 51, 0.1);
}
:root[data-storybook-art="riso"] .minigame .s3-vtools .tool,
:root[data-storybook-art="riso"] .minigame .s3-vic {
  width: 44px;
  height: 44px;
}
:root[data-storybook-art="riso"] .minigame .s3-msg.q { background: rgba(117, 96, 164, 0.1); }
:root[data-storybook-art="riso"] .minigame .s3-msg.host.fix { background: rgba(213, 155, 61, 0.15); }
:root[data-storybook-art="riso"] .minigame .r2-lyric { border-width: 1.5px; border-radius: 4px 10px 5px 8px; }
:root[data-storybook-art="riso"] .minigame .r2-chip.is-active {
  background: var(--riso-tooth), #ead49b;
  border-color: #9c722c;
}

/* the battle keeps its crowd and stage, but its opponent wall is a pinboard.
   That lets the loudest visual belong to the people on the posters instead of
   a second glowing frame around every one of them. */
:root[data-storybook-art="riso"] .minigame.rap2 {
  --r2-ink: var(--riso-ink);
  --r2-paper: var(--riso-paper-hi);
  --r2-card: #eadfc9;
  --r2-cardup: #f5ead5;
  --r2-cardink: var(--riso-ink);
}
:root[data-storybook-art="riso"] .minigame.rap2 :is(.r2-neon, .r2-turntag) {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border: 1px solid var(--riso-edge);
  border-top: 4px solid var(--riso-coral);
  border-radius: 4px 10px 5px 8px;
  box-shadow: var(--riso-stamp);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame.rap2 .r2-neon :is(.han, span) {
  color: var(--riso-ink);
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame.rap2 .r2-select {
  border: 1px solid rgba(185, 142, 112, 0.72);
  border-radius: 5px 11px 6px 9px;
  box-shadow: 0 4px 16px rgba(78, 50, 33, 0.14);
}
:root[data-storybook-art="riso"] .minigame.rap2 .r2-pick {
  background: var(--riso-stock);
  color: var(--riso-ink);
  border: 1.5px solid var(--riso-edge);
  border-radius: 3px 8px 4px 6px;
  box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .minigame.rap2 .r2-pick:nth-child(even) { transform: rotate(0.35deg); }
:root[data-storybook-art="riso"] .minigame.rap2 .r2-pick:hover:not(:disabled) {
  border-color: var(--riso-coral);
  box-shadow: 0 5px 0 var(--riso-shadow), 0 12px 22px rgba(78, 50, 33, 0.1);
}
:root[data-storybook-art="riso"] .minigame.rap2 .r2-pick :is(.r2-pick-name, .r2-pick-en, .r2-pick-taunt) {
  color: var(--riso-ink);
  text-shadow: none;
}

/* curtain calls are large sheets laid over the room. A gentle wash keeps the
   stage present behind them while the report itself remains the only focal
   surface. */
:root[data-storybook-art="riso"] .minigame :is(.rz-endsheet, .r2-end, .s3-endveil) {
  background: rgba(78, 57, 44, 0.48);
  backdrop-filter: blur(2px) saturate(0.78);
  -webkit-backdrop-filter: blur(2px) saturate(0.78);
}
:root[data-storybook-art="riso"] .minigame :is(.rz-recap, .s3-report, .r2-keepsake) {
  border: 1px solid var(--riso-edge);
  border-top: 4px solid var(--riso-coral);
  border-radius: 4px 11px 5px 8px;
  padding: 14px 16px;
}
:root[data-storybook-art="riso"] .minigame :is(.r2-end-zh, .r2-end-en, .r2-end-stats) {
  text-shadow: 0 2px 0 rgba(76, 57, 44, 0.28);
}

/* the underlying board sheets own their keyboard treatment; chrome gets the
   same warm ring without relying on a dark outline to announce focus. */
:root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn):focus-visible,
:root[data-storybook-art="riso"] .minigame .mg-tone:focus-visible {
  outline: 3px solid #d49c48;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  :root[data-storybook-art="riso"] .minigame {
    gap: 12px;
    padding: 92px 12px max(28px, env(safe-area-inset-bottom));
  }
  :root[data-storybook-art="riso"] .minigame:not(.dk-drill, .tut-reserved)::before {
    left: -8px;
    bottom: 12px;
    width: 98px;
    height: 90px;
  }
  :root[data-storybook-art="riso"] .minigame:not(.dk-drill)::after {
    right: -13px;
    bottom: 18px;
    width: 116px;
    height: 72px;
  }
  :root[data-storybook-art="riso"] .minigame:not(.dk-drill) > .mg-head {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100vw - 16px);
    min-height: 54px;
    padding: 7px 55px 8px !important;
    border-top-width: 3px;
    gap: 3px 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  /* these rooms deliberately park their title below the corner controls. The
     global help gutters only crush their two-line score into the next prop. */
  :root[data-storybook-art="riso"] .minigame:is(
    .b2-game, .rush2, .stream2-drill, .clinic2,
    .hist2, .forge2, .cloze2
  ) > .mg-head {
    padding-inline: 12px !important;
  }
  :root[data-storybook-art="riso"] .minigame:is(
    .b2-game, .rush2, .hist2, .forge2, .cloze2
  ) > .mg-head {
    min-height: 72px;
    height: auto;
  }
  :root[data-storybook-art="riso"] .minigame:not(.dk-drill) .mg-head > span:not(.mg-score) {
    display: none;
  }
  :root[data-storybook-art="riso"] .minigame:not(.dk-drill) .mg-head b.han {
    white-space: normal;
    line-height: 1.15;
  }
  :root[data-storybook-art="riso"] .minigame:not(.dk-drill) .mg-score {
    width: auto;
    margin-left: 0;
    flex: 0 0 auto;
  }
  :root[data-storybook-art="riso"] .minigame:not(.dk-drill) > .mg-timerwrap {
    top: calc(max(10px, env(safe-area-inset-top)) + 58px);
    width: calc(100vw - 32px);
  }
  :root[data-storybook-art="riso"] .minigame > .mg-bubble:not(.float) {
    width: min(310px, calc(100vw - 40px));
    max-width: none;
  }
  :root[data-storybook-art="riso"] .minigame > .tool {
    min-width: 200px;
    min-height: 46px;
  }
  :root[data-storybook-art="riso"] .minigame .mg-bubble.float,
  :root[data-storybook-art="riso"] .minigame .dk-legend { box-shadow: 0 2px 0 var(--riso-shadow); }
  :root[data-storybook-art="riso"] .minigame.rap2 .r2-pick:nth-child(n) { transform: none; }

  /* rebuilt drills use different header mechanics, but the phone contract is
     the same: the plaque owns its measured height and each status line gets a
     full row before the board begins. */
  :root[data-storybook-art="riso"] .minigame.dk-drill > .mg-head {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    min-height: 72px;
    height: auto;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 3px;
  }
  :root[data-storybook-art="riso"] .minigame:is(.forge2, .hist2) > .mg-head > :is(b, .mg-score) {
    width: 100%;
    flex: 1 0 100%;
  }
  :root[data-storybook-art="riso"] .minigame.hist2 .h2-tell { margin-top: 4px; }

  /* Coach notes are correspondence cards, and correspondence cards stop at
     the paper edge even when their anchor is close to a phone bezel. */
  :root[data-storybook-art="riso"] .minigame :is(.mg-bubble, .tut-card, .dk-legend, .f2-note, .h2-tell, .tk-slip, .tk-watch) {
    width: auto;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
  }
  :root[data-storybook-art="riso"] .minigame.hp-game .hp-grab {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    transform: none !important;
    animation: none;
  }
  :root[data-storybook-art="riso"] .minigame.hp-game .hp-grab::before,
  :root[data-storybook-art="riso"] .minigame.hp-game .hp-grab::after { display: none; }

  /* The talisman page is taller than a short phone by design. Keep its whole
     case in the scroll flow and leave a thumb-sized landing after the ledger. */
  :root[data-storybook-art="riso"] .minigame.tk-host {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  :root[data-storybook-art="riso"] .minigame.tk-host .tk-game { flex: 0 0 auto; min-height: max-content; }
  :root[data-storybook-art="riso"] .minigame.tk-host .tk-court { padding-bottom: 28px; }
}

/* Instructions use the journal's working ink. Haze is reserved for controls
   and steps that have actually become unavailable. */
:root[data-storybook-art="riso"] .minigame:is(.dz-game, .cloze2, .rush2, .b2-game, .tk-host) :is(
  .mg-bubble, .mg-bubble *, .mg-prompt, .mg-prompt *, .mg-soundhint,
  .dk-legend, .dk-legend *, .tut-card, .tut-card *,
  .dz-cap, .dz-cap *, .c2-slip, .c2-slip *, .rz-ccnote, .rz-ccnote *,
  .b2-orderhelp, .b2-orderhelp *, .b2-say, .b2-say *,
  .tk-slip, .tk-slip *, .tk-watch, .tk-watch *, .tk-shellcap, .tk-shellcap *
) {
  color: var(--riso-ink);
  opacity: 1;
  text-shadow: none;
}
:root[data-storybook-art="riso"] .minigame.tk-host .tk-shellcap {
  padding: 9px 12px;
  background: var(--riso-stock);
  border: 1px solid var(--riso-edge);
  border-radius: 4px 9px 5px 7px;
  box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .minigame :is(:disabled, .disabled, .spent, .done, .complete) :is(.dk-label, .dk-caption, .en, small) {
  color: var(--riso-quiet);
  opacity: 0.68;
}

/* A board already has a pigment border and pressed-paper shadow; an inherited
   outline was the third edge and made the surface look nested twice. */
:root[data-storybook-art="riso"] .minigame :is(.mg-board, .dk-plate, .dk-docket) { outline: 0; }

@media (prefers-reduced-motion: reduce) {
  :root[data-storybook-art="riso"] .minigame :is(.tool, .bigbtn) { transition: none; }
}

/* BOBA — painted shells, source geometry stays owned by drill-boba2.css. */
:root[data-storybook-art="riso"] .b2-game .b2-riso-asset[data-riso-ready] {
  display: block; pointer-events: none; filter: none;
}
:root[data-storybook-art="riso"] .b2-game .b2-riso-asset[data-riso-ready] + .b2-riso-fallback {
  display: none;
}
:root[data-storybook-art="riso"] .b2-game :is(.b2-cup, .b2-measure, .b2-jar .dk-vessel):has(> .b2-riso-asset[data-riso-ready]) {
  filter: none;
}
:root[data-storybook-art="riso"] .b2-game .b2-riso-cup,
:root[data-storybook-art="riso"] .b2-game .b2-riso-jar {
  position: absolute; z-index: 1; width: 125%; height: 125%;
  max-width: none; left: -12.5%; top: -12.5%;
}
:root[data-storybook-art="riso"] .b2-game .b2-cup:has(> .b2-riso-cup[data-riso-ready]) > .dk-vessel-well {
  background: transparent; border: 0; box-shadow: none;
  /* A live mask, concealed by the painted sides, keeps liquid within the cup. */
  inset: var(--b2-riso-inset, 10% 4% 12%);
  clip-path: polygon(5% 0%, 95% 0%, 79% 100%, 21% 100%);
}
:root[data-storybook-art="riso"] .b2-game .b2-cup:has(> .b2-riso-cup[data-riso-ready])::after { content: none; }
:root[data-storybook-art="riso"] .b2-game .b2-cup:has(> .b2-riso-cup[data-riso-ready]):not(.lidded) > .dk-vessel-lid {
  display: none;
}
:root[data-storybook-art="riso"] .b2-game .dk-vessel-lid:has(> .b2-riso-lid[data-riso-ready]) {
  background: transparent; border-color: transparent; box-shadow: none;
}
:root[data-storybook-art="riso"] .b2-game .b2-riso-lid {
  position: absolute; width: 125%; height: auto; max-width: none;
  left: -12.5%; top: 50%; transform: translateY(-50%);
}
:root[data-storybook-art="riso"] .b2-game .b2-riso-cupcoaster {
  position: absolute; width: 150%; height: 42px; max-width: none;
  left: -25%; bottom: -16px; z-index: -1;
}
:root[data-storybook-art="riso"] .b2-game .b2-cupwrap:has(> .b2-riso-cupcoaster[data-riso-ready]) { isolation: isolate; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-cupcoaster[data-riso-ready] + .b2-matline { visibility: hidden; }
:root[data-storybook-art="riso"] .b2-game .b2-measure:has(> .b2-riso-measure[data-riso-ready]) {
  background: transparent; border-color: transparent; box-shadow: none;
}
:root[data-storybook-art="riso"] .b2-game .b2-measure:has(> .b2-riso-measure[data-riso-ready])::before { content: none; }
:root[data-storybook-art="riso"] .b2-game .b2-measure:has(> .b2-riso-measure[data-riso-ready]):is(.is-active, .b2-live, .b2-inhand) {
  box-shadow: 0 0 0 3px var(--dk-gold);
}
:root[data-storybook-art="riso"] .b2-game .b2-measure:has(> .b2-riso-measure[data-riso-ready]):is(.is-wrong, .b2-spilling) {
  box-shadow: 0 0 0 3px var(--dk-verm);
}
:root[data-storybook-art="riso"] .b2-game .b2-riso-measure {
  position: absolute; left: -20%; top: -11%; width: 138%; height: 122%;
  max-width: none; z-index: 1;
}
:root[data-storybook-art="riso"] .b2-game .b2-measure:has(> .b2-riso-measure[data-riso-ready]) > .b2-measure-well {
  clip-path: inset(5% 17% 6% 7% round 6px);
}
:root[data-storybook-art="riso"] .b2-game .b2-jar .dk-vessel:has(> .b2-riso-jar[data-riso-ready]) > .dk-vessel-well {
  /* The painted source owns its silhouette; retain its live color behind it. */
  background: transparent; clip-path: inset(35% 26% 12%); border: 0; box-shadow: none;
}
/* Match the old SVG canvas boxes so replacing a prop never moves its hit
   target. object-fit preserves the new artwork's natural proportions. */
:root[data-storybook-art="riso"] .b2-game .b2-printer > .b2-riso-asset { aspect-ratio: 148 / 34; height: auto; }
:root[data-storybook-art="riso"] .b2-game .b2-mat > .b2-riso-asset { aspect-ratio: 100 / 128; height: auto; }
:root[data-storybook-art="riso"] .b2-game .b2-sink > .b2-riso-asset { aspect-ratio: 78 / 62; height: auto; }
:root[data-storybook-art="riso"] .b2-game .b2-srcart > [data-riso-asset="syrup-bottle"] { height: 50px; width: calc(50px * 70 / 108); }
:root[data-storybook-art="riso"] .b2-game .b2-srcart > [data-riso-asset="ice-bowl"] { height: 50px; width: calc(50px * 72 / 96); }
:root[data-storybook-art="riso"] .b2-game .b2-srcart > [data-riso-asset="chop"] { height: 50px; width: calc(50px * 62 / 74); }
:root[data-storybook-art="riso"] .b2-game .b2-bin > .b2-riso-asset { height: 44px; width: calc(44px * 66 / 58); }
:root[data-storybook-art="riso"] .b2-game .b2-scoop { position: relative; min-width: 44px; min-height: 44px; }
:root[data-storybook-art="riso"] .b2-game .b2-scoop > .b2-riso-asset { width: 46px; height: 40px; }
:root[data-storybook-art="riso"] .b2-game :is(.b2-counter, .b2-rail) { position: relative; isolation: isolate; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-counter {
  position: absolute; bottom: -13px; left: 0; width: 100%; height: 38px; z-index: -1;
}
:root[data-storybook-art="riso"] .b2-game .b2-riso-rack {
  position: absolute; top: -8px; left: 0; width: 100%; height: 90px; z-index: -1;
}

/* Fixed atlas cells, all text stays live HTML.
   ingredient-atlas.png: 640×320, 4 columns × 2 rows, 160×160 cells:
     ice | pearl | nata | pudding / grass jelly | taro | red bean | garnish.
   paper-frame-atlas.png: 720×480, 3×2, 240×240 cells:
     awning | ticket | instruction ribbon / notepad | report card | empty.
   feedback-atlas.png: 480×480, 2×2, 240×240 cells:
     success | correction / allergen | finale.
   The hidden image supplies a load/error signal for CSS backgrounds too. */
:root[data-storybook-art="riso"] .b2-game .b2-riso-cell:has(> [data-riso-ready]) {
  display: block; background-repeat: no-repeat; pointer-events: none;
}
:root[data-storybook-art="riso"] .b2-game .b2-riso-cell > .b2-riso-atlas-loader { display: none; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-ingredient {
  background-image: url('../art/minigames/riso/boba/ingredient-atlas.png');
  background-size: 400% 200%; background-position: var(--riso-x, 0%) var(--riso-y, 0%);
}
.b2-riso-ice { --riso-x: 0%; --riso-y: 0%; }
.b2-riso-pearl { --riso-x: 33.333333%; --riso-y: 0%; }
.b2-riso-nata { --riso-x: 66.666667%; --riso-y: 0%; }
.b2-riso-pudding { --riso-x: 100%; --riso-y: 0%; }
.b2-riso-grass-jelly { --riso-x: 0%; --riso-y: 100%; }
.b2-riso-taro { --riso-x: 33.333333%; --riso-y: 100%; }
.b2-riso-red-bean { --riso-x: 66.666667%; --riso-y: 100%; }
.b2-riso-garnish { --riso-x: 100%; --riso-y: 100%; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-paper-frame {
  background-image: url('../art/minigames/riso/boba/paper-frame-atlas.png');
  background-size: 300% 200%; background-position: var(--riso-x, 0%) var(--riso-y, 0%);
}
.b2-riso-awning { --riso-x: 0%; --riso-y: 0%; }
.b2-riso-ticket { --riso-x: 50%; --riso-y: 0%; }
.b2-riso-instruction-ribbon { --riso-x: 100%; --riso-y: 0%; }
.b2-riso-notepad { --riso-x: 0%; --riso-y: 100%; }
.b2-riso-report-card { --riso-x: 50%; --riso-y: 100%; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-feedback {
  background-image: url('../art/minigames/riso/boba/feedback-atlas.png');
  background-size: 200% 200%; background-position: var(--riso-x, 0%) var(--riso-y, 0%);
}
.b2-riso-success { --riso-x: 0%; --riso-y: 0%; }
.b2-riso-correction { --riso-x: 100%; --riso-y: 0%; }
.b2-riso-allergen { --riso-x: 0%; --riso-y: 100%; }
.b2-riso-finale { --riso-x: 100%; --riso-y: 100%; }
:root[data-storybook-art="riso"] .b2-game :is(.b2-cubes, .dk-pearls) i:has([data-riso-ready]) {
  background: transparent !important; border: 0; box-shadow: none;
}
:root[data-storybook-art="riso"] .b2-game :is(.b2-cubes, .dk-pearls) .b2-riso-cell {
  position: absolute; inset: -4px;
}
:root[data-storybook-art="riso"] .b2-game .b2-bin-ingredient {
  position: absolute; top: 17px; left: calc(50% - 15px); width: 30px; height: 30px;
}
:root[data-storybook-art="riso"] .b2-game .b2-scoop-ingredient {
  position: absolute; top: 12px; left: 6px; width: 22px; height: 22px;
}

/* Each stationery surface is one whole transparent PNG. No repeated edges,
   stretched texture, atlas backgrounds, or neutral patches. */
:root[data-storybook-art="riso"] .b2-game :is(.mg-head, .b2-ticket, .b2-pad, .b2-step, .b2-cue, .dk-legend, .b2-fix, .b2-success, .b2-tally, .b2-sticker, .mg-finale):has(> .b2-paper-art [data-riso-ready]) {
  isolation: isolate; position: relative; background: transparent; border: 0; box-shadow: none;
  border-radius: 0; color: var(--riso-ink); box-sizing: border-box;
}
:root[data-storybook-art="riso"] .b2-game .b2-paper-art:has([data-riso-ready]) {
  display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
:root[data-storybook-art="riso"] .b2-game .b2-paper-art > img[data-riso-ready] {
  display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
}

/* One club counter: notes at the side, the cup above its ingredient shelf. */
:root[data-storybook-art="riso"] .minigame.b2-game { padding: 132px 28px 32px 252px; gap: 20px; }
:root[data-storybook-art="riso"] .b2-game > :is(.mg-head, .b2-court, .mg-prompt) { flex-shrink: 0; }
:root[data-storybook-art="riso"] .b2-game > .mg-head:has([data-riso-ready]) {
  width: min(690px, calc(100vw - 300px)); left: auto; right: 40px; transform: none;
  display: grid; grid-template-columns: 1fr auto; gap: 3px 18px;
  padding: 10px 34px 29px !important; min-height: 90px;
}
:root[data-storybook-art="riso"] .b2-game .b2-club { display: block; grid-column: 1 / -1; color: var(--riso-navy); font: 500 14px/1.2 var(--body, sans-serif); letter-spacing: .06em; }
:root[data-storybook-art="riso"] .b2-game .mg-head > span:not(.mg-score) { display: none; }
:root[data-storybook-art="riso"] .b2-game .mg-score { display: flex; gap: 5px; flex-wrap: wrap; margin: 0; font-weight: 500; }
:root[data-storybook-art="riso"] .b2-game .mg-score :is(.dk-goal, .dk-counter) { background: none; border: 0; box-shadow: none; }
:root[data-storybook-art="riso"] .b2-game .b2-court {
  display: grid; grid-template-columns: 224px minmax(0, 1fr);
  grid-template-areas: "paper bench" "paper shelf" "pad say" "guest say";
  width: 100%; max-width: 990px; gap: 20px 24px; position: relative; align-items: start;
}
:root[data-storybook-art="riso"] .b2-game .b2-counter { display: contents; background: none; border: 0; box-shadow: none; }
:root[data-storybook-art="riso"] .b2-game .b2-papercol { grid-area: paper; gap: 7px; }
:root[data-storybook-art="riso"] .b2-game .b2-bench { grid-area: bench; gap: 10px; align-self: start; justify-content: start; }
:root[data-storybook-art="riso"] .b2-game .b2-shelf { grid-area: shelf; min-width: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-padrow { grid-area: pad; display: grid; grid-template-columns: 1fr 44px; gap: 10px 6px; }
:root[data-storybook-art="riso"] .b2-game .b2-pad { grid-column: 1 / -1; padding: 22px 17px 14px; transform: rotate(-1deg); }
:root[data-storybook-art="riso"] .b2-game .b2-padhd { gap: 4px; font-size: 16px; letter-spacing: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-padhd .b2-role { display: none; }
:root[data-storybook-art="riso"] .b2-game .b2-padline { font-weight: 500; line-height: 1.45; }
:root[data-storybook-art="riso"] .b2-game .b2-restart { grid-column: 1; background: var(--riso-paper); border: 0; border-radius: 0; padding: 7px; font-weight: 400; line-height: 1.3; }
:root[data-storybook-art="riso"] .b2-game .b2-again { grid-column: 2; min-width: 44px; min-height: 44px; align-self: start; }
:root[data-storybook-art="riso"] .b2-game .b2-guestcol { grid-area: guest; flex-direction: row; justify-content: start; gap: 8px; padding: 6px; background: var(--riso-paper); }
:root[data-storybook-art="riso"] .b2-game .b2-guest .b2-art { width: 36px; filter: none; }
:root[data-storybook-art="riso"] .b2-game .b2-guestname { text-align: left; background: none; padding: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-guestname :is(.han, small) { color: var(--riso-ink); font-weight: 400; }
:root[data-storybook-art="riso"] .b2-game .b2-guestname small { font-size: 14px; }
:root[data-storybook-art="riso"] .b2-game .b2-say { grid-area: say; min-width: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-counter[data-riso-ready] { display: none; }
:root[data-storybook-art="riso"] .b2-game .b2-ticket:has(> .b2-paper-art [data-riso-ready]) { padding: 14px 13px 18px; width: 100%; max-width: 100%; }
:root[data-storybook-art="riso"] .b2-game .b2-ticket:has(> .b2-paper-art [data-riso-ready])::before,
:root[data-storybook-art="riso"] .b2-game .b2-ticket:has(> .b2-paper-art [data-riso-ready])::after { content: none; }
:root[data-storybook-art="riso"] .b2-game .b2-role { font-size: 14px; font-weight: 500; }
:root[data-storybook-art="riso"] .b2-game :is(.b2-lab .b2-slot, .b2-val .han, .b2-cupslot b.han, .b2-jar b.han, .b2-bin b.han, .b2-src b.han) { font-weight: 600; }
:root[data-storybook-art="riso"] .b2-game :is(.b2-en2, .b2-py, .dk-caption, .b2-lab .b2-en) { font-weight: 400; }
:root[data-storybook-art="riso"] .b2-game .b2-step:not(:empty) { padding: 12px 28px; margin: 0; min-height: 54px; width: auto; align-self: center; }
:root[data-storybook-art="riso"] .b2-game .b2-steptitle { color: var(--riso-ink); font-size: 28px; font-weight: 750; }
:root[data-storybook-art="riso"] .b2-game .b2-stepen { color: var(--riso-ink); font-weight: 400; opacity: 1; }
:root[data-storybook-art="riso"] .b2-game .b2-benchrow { min-height: 220px; padding: 24px 0 10px; width: 100%; gap: 22px; }
:root[data-storybook-art="riso"] .b2-game .b2-benchrow:has(.b2-mat) { min-height: 170px; padding: 10px 0; }
:root[data-storybook-art="riso"] .b2-game .b2-matwrap { padding: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-mat { background: none; padding: 0; border-radius: 0; min-height: 44px; }
:root[data-storybook-art="riso"] .b2-game .b2-mat > .b2-riso-asset { width: 110px; height: auto; aspect-ratio: 280 / 180; }
:root[data-storybook-art="riso"] .b2-game .b2-mat :is(b, small) { background: var(--riso-paper); padding: 2px 5px; }
:root[data-storybook-art="riso"] .b2-game .b2-mat :is(.han, .dk-caption) { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .b2-game .b2-sink { border-color: var(--riso-edge); background: var(--riso-paper); border-width: 1px; }
:root[data-storybook-art="riso"] .b2-game .b2-sink .b2-en2 { color: var(--riso-ink); }
:root[data-storybook-art="riso"] .b2-game .b2-rail:has(> .b2-riso-rack[data-riso-ready]) { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 15px 8px 0; gap: 12px; width: 100%; box-sizing: border-box; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-rack[data-riso-ready] { object-fit: contain; width: 100%; height: auto; aspect-ratio: 760 / 300; left: 0; top: -12px; opacity: .96; }
:root[data-storybook-art="riso"] .b2-game .b2-rail.dk-live:has(> .b2-riso-rack[data-riso-ready]) { outline: none; filter: none; }
:root[data-storybook-art="riso"] .b2-game .b2-rack { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; gap: 14px 8px; --b2-cs: calc(var(--b2-cs0) * .72); }
:root[data-storybook-art="riso"] .b2-game .b2-cupslot { min-height: 44px; padding: 3px; }
:root[data-storybook-art="riso"] .b2-game .b2-rail :is(b.han, small.dk-caption) { color: var(--riso-ink); background: var(--riso-paper-hi); padding: 1px 4px; }
:root[data-storybook-art="riso"] .b2-game :is(.b2-cue, .dk-legend):has(> .b2-paper-art [data-riso-ready]) { padding: 12px 25px; font-weight: 500; }
:root[data-storybook-art="riso"] .b2-game .dk-legend .han { font-weight: 600; }
:root[data-storybook-art="riso"] .b2-game :is(.b2-orderhelp, .b2-follow) { border: 0; border-radius: 0; background: var(--riso-paper); }
:root[data-storybook-art="riso"] .b2-game :is(.b2-look, .b2-next, .b2-again, .b2-stickgo, .b2-slipbtn, .b2-none) { color: var(--riso-ink); background: var(--riso-paper-hi); border: 1px solid var(--riso-edge); border-radius: 3px; box-shadow: 0 2px 0 var(--riso-shadow); min-height: 44px; font-weight: 500; }
:root[data-storybook-art="riso"] .b2-game .b2-none { padding: 7px 9px; transition-property: transform, box-shadow; }
:root[data-storybook-art="riso"] .b2-game .b2-none .b2-srcart > [data-riso-asset="chop"] { width: 84px; height: 52px; }
:root[data-storybook-art="riso"] .b2-game .b2-none .b2-nonen { color: var(--riso-ink); opacity: 1; }
:root[data-storybook-art="riso"] .b2-game .b2-say:is(.slip, .call) { background: none; border: 0; box-shadow: none; padding: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-sticker { padding: 28px 20px 18px; }
:root[data-storybook-art="riso"] .b2-game .b2-stickrow { flex-wrap: wrap; gap: 8px; }
:root[data-storybook-art="riso"] .b2-game .b2-stickin { min-width: 0; width: 100%; flex: 1 1 100%; color: var(--riso-ink); background: var(--riso-paper-hi); border: 1px solid var(--riso-edge); min-height: 44px; }
:root[data-storybook-art="riso"] .b2-game .b2-say .b2-stickgo { color: var(--riso-ink); background: var(--riso-sage-wash); border: 1px solid var(--riso-sage); padding: 10px 18px; min-height: 44px; }
:root[data-storybook-art="riso"] .b2-game .b2-say .b2-slipbtn { padding: 10px 14px; color: var(--riso-ink); background: var(--riso-paper-hi); }
:root[data-storybook-art="riso"] .b2-game .b2-say .b2-slipbtn .b2-rule { color: var(--riso-ink); white-space: normal; }
:root[data-storybook-art="riso"] .b2-game .mg-reveal:has(.b2-paper-art [data-riso-ready]) { background: none; border: 0; box-shadow: none; padding: 8px; }
:root[data-storybook-art="riso"] .b2-game .b2-fix { width: 100%; padding: 18px 22px; box-sizing: border-box; }
:root[data-storybook-art="riso"] .b2-game .b2-fixhd { position: relative; padding-right: 56px; min-height: 54px; }
:root[data-storybook-art="riso"] .b2-game .b2-feedback-mark:has([data-riso-ready]) { width: 52px; height: 52px; flex: none; }
:root[data-storybook-art="riso"] .b2-game .b2-fixhd > .b2-feedback-mark { position: absolute; right: 0; top: -4px; }
:root[data-storybook-art="riso"] .b2-game .b2-success { display: flex; align-items: center; gap: 10px; padding: 14px 24px; }
:root[data-storybook-art="riso"] .b2-game .b2-success:has([data-riso-ready]) .b2-ok { display: none; }
:root[data-storybook-art="riso"] .b2-game .b2-credit { background: var(--riso-paper); padding: 8px; }
:root[data-storybook-art="riso"] .b2-game .b2-tally { padding: 24px; }
:root[data-storybook-art="riso"] .b2-game .b2-tallylab { flex: 1 1 100%; min-width: 0; max-width: 100%; }
:root[data-storybook-art="riso"] .b2-game .b2-tally .b2-rule { white-space: normal; overflow-wrap: anywhere; }
:root[data-storybook-art="riso"] .b2-game .dk-stamp:has(.b2-ticket-mark [data-riso-ready]) { display: flex; align-items: center; gap: 3px; background: var(--riso-paper); border: 0; box-shadow: none; color: var(--riso-ink); padding: 2px 5px; }
:root[data-storybook-art="riso"] .b2-game .b2-ticket-mark { width: 30px; height: 30px; }
:root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready]) { position: fixed; inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 40px)); min-height: 290px; box-sizing: border-box; z-index: 80; padding: 30px; backdrop-filter: none; box-shadow: 0 0 0 100vmax rgba(49, 36, 43, .6); }
:root[data-storybook-art="riso"] .b2-game .mg-finale > .b2-feedback-mark { width: 76px; height: 76px; margin: 0 auto 8px; }
:root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-feedback-mark [data-riso-ready]) .mg-stars { display: none; }
/* Keep the frozen host art whole, with no additional UI halo or clipping. */
:root[data-storybook-art="riso"] .b2-game .mg-host { position: fixed !important; height: 320px !important; left: 8px !important; bottom: 0 !important; overflow: visible; }
:root[data-storybook-art="riso"] .b2-game .mg-hostart,
:root[data-storybook-art="riso"] .b2-game .mg-hostart :is(.sprite, .pcard, img) { filter: none !important; overflow: visible; }
:root[data-storybook-art="riso"] .b2-game .mg-hostart .sprite { max-width: none; object-fit: contain; }
:root[data-storybook-art="riso"] .b2-game #mgBubble { width: 200px; max-width: 200px; left: 14px !important; bottom: 98% !important; font-weight: 500; }

:root[data-storybook-art="riso"] .b2-game.b2-await .b2-say { grid-column: 2; grid-row: 2; }

/* Per-shell liquid interiors remain live and stay inside their painted bases. */
:root[data-storybook-art="riso"] .b2-game .b2s-sml { --b2-riso-inset: 18% 8% 18%; }
:root[data-storybook-art="riso"] .b2-game .b2s-mid { --b2-riso-inset: 10% 4% 14%; }
:root[data-storybook-art="riso"] .b2-game .b2s-big { --b2-riso-inset: 9% 4% 13%; }
:root[data-storybook-art="riso"] .b2-game .b2s-xl { --b2-riso-inset: 10% 7% 14%; }
:root[data-storybook-art="riso"] .b2-game .b2s-hot { --b2-riso-inset: 12% 5% 15%; }
:root[data-storybook-art="riso"] .b2-game .b2s-paper { --b2-riso-inset: 15% 10% 23%; }
@media (max-width: 1000px) and (min-width: 721px) {
  :root[data-storybook-art="riso"] .minigame.b2-game { padding-left: 24px; }
  :root[data-storybook-art="riso"] .b2-game > .mg-head:has([data-riso-ready]) { width: calc(100vw - 60px); right: 30px; }
}
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .minigame.b2-game { padding: 56px 12px 28px; gap: 16px; }
  :root[data-storybook-art="riso"] .b2-game > .mg-head:has([data-riso-ready]) { position: relative; inset: auto; width: 100%; display: flex; flex-wrap: wrap; padding: 10px 24px 30px !important; gap: 4px; min-height: 110px; }
  :root[data-storybook-art="riso"] .b2-game .b2-club { width: 100%; font-size: 12px; }
  :root[data-storybook-art="riso"] .b2-game .mg-head > b { width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .mg-score { width: 100%; gap: 4px; }
  :root[data-storybook-art="riso"] .b2-game .b2-court { display: flex; flex-direction: column; gap: 16px; width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-papercol { order: 0; width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket { display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 10px 16px 14px; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket .b2-row { flex: 1 1 145px; min-height: 28px; }
  :root[data-storybook-art="riso"] .b2-game .b2-bench { order: 1; position: sticky; top: 0; z-index: 20; align-self: stretch; background: var(--riso-paper); padding: 8px 8px 10px; gap: 6px; margin-inline: -4px; border-bottom: 1px solid var(--riso-edge); }
  :root[data-storybook-art="riso"] .b2-game .b2-active-order { display: grid; gap: 2px; width: 100%; color: var(--riso-ink); padding-bottom: 4px; border-bottom: 1px solid var(--riso-edge); }
  :root[data-storybook-art="riso"] .b2-game .b2-active-order small { font: 400 12px/1.3 var(--body, sans-serif); color: var(--riso-quiet); }
  :root[data-storybook-art="riso"] .b2-game .b2-active-order .han { font-size: 20px; line-height: 1.3; font-weight: 500; }
  :root[data-storybook-art="riso"] .b2-game .b2-step:not(:empty) { min-height: 0; padding: 8px 24px; }
  :root[data-storybook-art="riso"] .b2-game .b2-steptitle { font-size: 22px; }
  :root[data-storybook-art="riso"] .b2-game .b2-benchrow { min-height: 0; padding: 14px 0 0; gap: 18px; flex-wrap: nowrap; }
  :root[data-storybook-art="riso"] .b2-game .b2-measure { width: 88px; height: 140px; }
  :root[data-storybook-art="riso"] .b2-game .b2-cupzone { min-height: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-sink { width: 58px; min-height: 60px; padding: 4px; }
  :root[data-storybook-art="riso"] .b2-game .b2-sink .b2-art { width: 38px; }
  :root[data-storybook-art="riso"] .b2-game .b2-benchrow:has(.b2-mat) { min-height: 0; padding: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-mat { padding: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; border-radius: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-mat .b2-art { width: 44px; }
  :root[data-storybook-art="riso"] .b2-game .b2-mat small { display: none; }
  :root[data-storybook-art="riso"] .b2-game .b2-shelf { order: 2; width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-padrow { order: 3; width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-say { order: 4; width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-rack { grid-template-columns: repeat(3, minmax(0, 1fr)); --b2-cs: calc(var(--b2-cs0) * .7); gap: 10px 4px; }
  :root[data-storybook-art="riso"] .b2-game .b2-cupslot .b2-cupart { height: calc(180 * var(--b2-cs)); }
  :root[data-storybook-art="riso"] .b2-game .b2-jarrow { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; max-width: 100%; padding: 8px 0 6px; scroll-padding: 8px; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar { flex: 0 0 112px; min-width: 112px; max-width: 112px; min-height: 44px; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar small { white-space: normal; word-break: keep-all; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins { display: flex; flex-direction: column; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-railrow { gap: 6px; }
  :root[data-storybook-art="riso"] .b2-game .b2-none { min-width: 104px; max-width: 132px; }
  :root[data-storybook-art="riso"] .b2-game .b2-fixrow { grid-template-columns: minmax(50px, .6fr) 1fr 1fr; gap: 8px; }
  :root[data-storybook-art="riso"] .b2-game.b2-await .b2-bench,
  :root[data-storybook-art="riso"] .b2-game:has(.b2-next) .b2-bench { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-storybook-art="riso"] .b2-game :is(.b2-fix, .b2-success) { animation: none; transition: none; }
}

/* Whole stationery layout. The wrapper ratios match the cropped PNGs exactly. */
:root[data-storybook-art="riso"] .minigame.b2-game { padding: 182px 20px 28px 210px; }
:root[data-storybook-art="riso"] .b2-game > .mg-head:has([data-riso-ready]) { position: absolute; top: 4px; right: 32px; width: 440px; height: auto; min-height: 0; aspect-ratio: 198 / 77; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 22px 34px 46px !important; }
:root[data-storybook-art="riso"] .b2-game .b2-club { display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .025em; }
:root[data-storybook-art="riso"] .b2-game .b2-academy-stamp[data-riso-ready] { display: inline-block; width: 54px; height: auto; object-fit: contain; }
:root[data-storybook-art="riso"] .b2-game .mg-score { justify-content: center; font-size: 16px; }
:root[data-storybook-art="riso"] .b2-game .b2-court { display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-areas: "notes station" "guest station"; gap: 12px 22px; max-width: 1050px; }
:root[data-storybook-art="riso"] .b2-game .b2-notes { grid-area: notes; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-station { grid-area: station; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; isolation: isolate; }
:root[data-storybook-art="riso"] .b2-game .b2-papercol { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
:root[data-storybook-art="riso"] .b2-game .b2-ticket:has(> .b2-paper-art [data-riso-ready]) { grid-column: 1 / -1; width: 224px; height: auto; aspect-ratio: 128 / 174; padding: 18px 18px 24px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
:root[data-storybook-art="riso"] .b2-game .b2-ticket .dk-docket-hd { margin-bottom: 3px; padding-bottom: 3px; }
:root[data-storybook-art="riso"] .b2-game .b2-ticket .b2-row { min-height: 0; padding: 0; line-height: 1.08; }
:root[data-storybook-art="riso"] .b2-game .b2-ticket :is(.b2-py,.b2-lab .b2-en,.b2-role) { font-size: 14px; line-height: 1.15; }
:root[data-storybook-art="riso"] .b2-game .b2-look { align-self: stretch; min-height: 54px; }
:root[data-storybook-art="riso"] .b2-game .b2-orderhelp summary { min-height: 54px; box-sizing: border-box; font-size: 14px; line-height: 1.2; padding: 6px; }
:root[data-storybook-art="riso"] .b2-game .b2-orderhelp[open] { grid-column: 1 / -1; }
:root[data-storybook-art="riso"] .b2-game .b2-padrow { display: grid; grid-template-columns: 1fr 44px; gap: 5px; }
:root[data-storybook-art="riso"] .b2-game .b2-pad { width: 100%; height: auto; aspect-ratio: 170 / 174; padding: 38px 22px 26px; transform: none; display: flex; flex-direction: column; justify-content: center; }
:root[data-storybook-art="riso"] .b2-game .b2-pad[hidden] { display: none; }
:root[data-storybook-art="riso"] .b2-game .b2-padline { font-size: 20px; line-height: 1.2; }
:root[data-storybook-art="riso"] .b2-game .b2-restart { grid-row: 2; font-size: 14px; }
:root[data-storybook-art="riso"] .b2-game .b2-again { grid-row: 2; }
:root[data-storybook-art="riso"] .b2-game .b2-bench { width: 100%; gap: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-step:not(:empty) { width: 290px; max-width: 100%; aspect-ratio: 199 / 75; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 15px 32px; }
:root[data-storybook-art="riso"] .b2-game .b2-benchrow { padding: 0; min-height: 200px; gap: 28px; }
:root[data-storybook-art="riso"] .b2-game .b2-benchrow:has(.b2-mat) { min-height: 120px; padding: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-cue:not(:empty) { width: 100%; aspect-ratio: 199 / 75; padding: 15% 12%; display: flex; flex-direction: column; justify-content: center; }
:root[data-storybook-art="riso"] .b2-game .b2-riso-counter[data-riso-ready] { display: block; position: absolute; width: 100%; height: auto; aspect-ratio: 1600 / 240; object-fit: contain; top: 280px; left: 0; bottom: auto; z-index: -1; }
:root[data-storybook-art="riso"] .b2-game .b2-jarrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
:root[data-storybook-art="riso"] .b2-game .b2-jar { min-width: 0; max-width: 100%; width: 100%; }
:root[data-storybook-art="riso"] .b2-game .b2-jar .b2-srcart { width: 100%; }
:root[data-storybook-art="riso"] .b2-game .dk-legend:has(> .b2-paper-art) { width: min(440px, 100%); aspect-ratio: 185 / 141; margin: 0 auto; padding: 30px 36px 45px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
:root[data-storybook-art="riso"] .b2-game .b2-sticker { width: 100%; aspect-ratio: 170 / 174; padding: 19% 12% 15%; display: flex; flex-direction: column; justify-content: center; }
:root[data-storybook-art="riso"] .b2-game .b2-stickhead { display: flex; flex-direction: column; gap: 4px; }
:root[data-storybook-art="riso"] .b2-game .b2-say .b2-slipbtn .b2-rule { font-weight: 400; }
:root[data-storybook-art="riso"] .b2-game.b2-await .b2-station { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
:root[data-storybook-art="riso"] .b2-game.b2-await .b2-bench { grid-column: 1; grid-row: 1; }
:root[data-storybook-art="riso"] .b2-game.b2-await .b2-say { grid-column: 2; grid-row: 1; }
:root[data-storybook-art="riso"] .b2-game.b2-await .b2-shelf { grid-column: 1 / -1; }
:root[data-storybook-art="riso"] .b2-game .mg-prompt { width: 100%; max-width: 680px; align-self: center; }
:root[data-storybook-art="riso"] .b2-game .mg-reveal { align-items: center; }
:root[data-storybook-art="riso"] .b2-game .b2-fix { width: min(520px, 100%); aspect-ratio: 185 / 141; padding: 12% 9% 14%; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
:root[data-storybook-art="riso"] .b2-game .b2-success { width: min(480px, 100%); aspect-ratio: 199 / 75; padding: 12% 13%; justify-content: center; }
:root[data-storybook-art="riso"] .b2-game .b2-tally { width: min(520px, 100%); aspect-ratio: 185 / 141; padding: 12% 10% 16%; margin: 0 auto; }
:root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready]) { width: min(460px, calc(100vw - 32px)); aspect-ratio: 185 / 141; height: auto; min-height: 0; padding: 10% 8%; display: flex; flex-direction: column; justify-content: center; }
:root[data-storybook-art="riso"] .b2-game .mg-host { width: 190px !important; height: 290px !important; left: 10px !important; bottom: 10px !important; }
:root[data-storybook-art="riso"] .b2-game .mg-hostart .sprite { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
:root[data-storybook-art="riso"] .b2-game #mgBubble { width: 180px; max-width: 180px; left: 0 !important; }
@media (min-width: 721px) {
  :root[data-storybook-art="riso"] .b2-game .b2-cue { display: none !important; }
}

/* Hoops/Tone final guidance pass. These rules sit after the shared phone
   contract on purpose: both notes are siblings of the court, so keeping them
   in document flow makes the painted floor an honest no-fly zone at every
   text size. */
:root[data-storybook-art="riso"] .minigame.hp-game .hp-court-frame :is(.hp-grab, .hp-coach) {
  position: absolute !important;
  inset: auto auto 0 50% !important;
  display: flex;
  width: min(430px, calc(100% - 18px)) !important;
  max-width: calc(100% - 18px) !important;
  margin: 0;
  transform: translateX(-50%) !important;
  animation: none !important;
  color: #4c392c !important;
  background-color: #fff7e8 !important;
  background-image: var(--riso-tooth) !important;
  border: 1px solid var(--riso-edge);
  box-shadow: var(--riso-stamp);
}
:root[data-storybook-art="riso"] .minigame.hp-game .hp-court-frame { padding-bottom: 82px; }
:root[data-storybook-art="riso"] .minigame.hp-game .hp-court-frame :is(.hp-grab, .hp-coach)[hidden] { display: none !important; }
:root[data-storybook-art="riso"] .minigame.hp-game .hp-court-frame :is(.hp-grab, .hp-coach) * { color: #4c392c !important; }
:root[data-storybook-art="riso"] .minigame.hp-game .hp-court-frame :is(.hp-grab-say, .hp-coach) b.han {
  font-size: 18px !important;
  line-height: 1.12;
}
:root[data-storybook-art="riso"] .minigame.hp-game .hp-court-frame :is(.hp-grab-say i, .hp-coach .dk-caption) {
  font-size: 14px !important;
  line-height: 1.18;
}
:root[data-storybook-art="riso"] .hp-game.hp-textzoom .hp-coach { display: flex !important; }
:root[data-storybook-art="riso"] .hp-game.hp-textzoom .hp-coach[hidden] { display: none !important; }
@media (min-width: 721px) {
  :root[data-storybook-art="riso"] .minigame.hp-game .hp-wrap { margin-top: 106px; }
}

/* The curtain is a solid night mat around one bounded certificate. At 200%
   the global type scale must not turn a short result into a second scroll
   document, so this one celebratory card uses measured pixel type and keeps
   its continue action inside the same writing field. */
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) {
  justify-content: center;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
  background: #2b2229;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale > .tg-riso-finale-certificate[data-riso-ready] {
  width: auto;
  height: min(720px, calc(100vh - 24px));
  max-width: calc(100vw - 24px);
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .han {
  font-size: 38px;
  line-height: 1;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .mg-stars { gap: 8px; }
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .mg-finale-en {
  color: #4c392c;
  font-size: 16px;
  line-height: 1.15;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .dk-goal-verdict {
  width: min(470px, calc(100vw - 76px));
  margin: 10px 0 0;
  padding: 12px 18px;
  color: #4c392c;
  background: #fff7e8;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) .dk-goal-verdict-zh {
  font-size: 25px;
  line-height: 1.18;
}
:root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) .dk-goal-verdict-en {
  font-size: 16px;
  line-height: 1.22;
}
:root[data-storybook-art="riso"] .tg-host .tg-finale-action {
  min-width: 132px;
  min-height: 44px;
  margin-top: 8px;
  color: #4c392c;
  background: #fff7e8;
  border-color: var(--riso-edge);
}

@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .tg-host .tg-transcript summary,
  :root[data-storybook-art="riso"] .tg-host.tg-textzoom .tg-transcript summary {
    padding: 7px 12px;
    color: #4c392c !important;
    font-size: 16px !important;
    line-height: 1.2;
  }
  :root[data-storybook-art="riso"] .tg-host .mg-finale > .tg-riso-finale-certificate[data-riso-ready] {
    width: calc(100vw - 24px);
    height: auto;
  }
  :root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .han { font-size: 32px; }
  :root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) > .dk-goal-verdict {
    width: calc(100vw - 82px);
    max-height: none;
    margin-top: 6px;
    padding: 9px 12px;
    overflow: visible;
  }
  :root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) .dk-goal-verdict-zh { font-size: 21px; }
  :root[data-storybook-art="riso"] .tg-host .mg-finale:has(.tg-riso-finale-certificate[data-riso-ready]) .dk-goal-verdict-en { font-size: 14px; }
  :root[data-storybook-art="riso"] .tg-host .tg-finale-action { margin-top: 4px; font-size: 16px; }
}
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .minigame.b2-game { padding: 52px 12px 28px; }
  :root[data-storybook-art="riso"] .b2-game > .mg-head:has([data-riso-ready]) { position: relative; inset: auto; width: 100%; aspect-ratio: 198 / 77; padding: 15px 28px 30px !important; }
  :root[data-storybook-art="riso"] .b2-game .b2-club { font-size: 11px; }
  :root[data-storybook-art="riso"] .b2-game .b2-academy-stamp[data-riso-ready] { width: 40px; }
  :root[data-storybook-art="riso"] .b2-game .mg-score { font-size: 14px; }
  :root[data-storybook-art="riso"] .b2-game .b2-court { display: flex; }
  :root[data-storybook-art="riso"] .b2-game :is(.b2-notes,.b2-station),
  :root[data-storybook-art="riso"] .b2-game.b2-await .b2-station { display: contents; }
  :root[data-storybook-art="riso"] .b2-game .b2-papercol { display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket:has(> .b2-paper-art [data-riso-ready]) { width: 250px; flex: 0 0 250px; aspect-ratio: 128 / 174; padding: 24px; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket .b2-row { flex: none; width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-look { flex: 1 1 45%; }
  :root[data-storybook-art="riso"] .b2-game .b2-orderhelp { flex: 1 1 45%; }
  :root[data-storybook-art="riso"] .b2-game .b2-bench { width: auto; gap: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-step:not(:empty) { width: 290px; padding: 15px 30px; }
  :root[data-storybook-art="riso"] .b2-game .b2-benchrow { min-height: 0; padding: 0; gap: 18px; }
  :root[data-storybook-art="riso"] .b2-game .b2-benchrow:has(.b2-mat) { min-height: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-riso-counter[data-riso-ready] { display: none; }
  :root[data-storybook-art="riso"] .b2-game .b2-jarrow { display: flex; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar { flex: 0 0 112px; min-width: 112px; }
  :root[data-storybook-art="riso"] .b2-game .b2-padrow { width: 290px; align-self: center; }
  :root[data-storybook-art="riso"] .b2-game .b2-pad { padding: 50px 30px 32px; }
  :root[data-storybook-art="riso"] .b2-game .b2-fix { padding: 30px 30px 42px; }
  :root[data-storybook-art="riso"] .b2-game .b2-sticker { max-width: 350px; margin: 0 auto; }
  :root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready]) { padding: 28px 38px 40px; }
}

:root[data-storybook-art="riso"] .b2-game :is(.b2-step,.b2-cue,.b2-ticket,.b2-pad,.dk-legend,.b2-fix,.b2-tally,.b2-sticker,.b2-success,.mg-head) :is(.han,.dk-label,.dk-caption,.b2-rule,.b2-py,.b2-en2,.b2-stepen) { background: transparent; box-shadow: none; }
:root[data-storybook-art="riso"] .b2-game .b2-success { aspect-ratio: 185 / 141; padding: 12% 10% 16%; flex-direction: column; text-align: center; }
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .b2-game > .mg-head:has([data-riso-ready]) { padding: 0 28px 48px !important; }
}
:root[data-storybook-art="riso"] .b2-game > .mg-head:has(> .b2-paper-art [data-riso-ready]) { position: absolute; }
:root[data-storybook-art="riso"] .b2-game.b2-await .b2-say:is(.slip,.call) { position: relative; inset: auto; transform: none; width: 100%; box-shadow: none; }
:root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready]) { padding: 38px 54px 50px; }
@media (min-width: 721px) {
  :root[data-storybook-art="riso"] .b2-game:has(#b2Reveal .b2-next) .mg-prompt { position: fixed; z-index: 70; left: 59%; top: 50%; transform: translate(-50%, -50%); width: min(580px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; }
}
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .b2-game > .mg-head:has(> .b2-paper-art [data-riso-ready]) { position: relative; }
  :root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready]) { padding: 28px 38px 40px; }
}
:root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready]) { height: calc(min(460px, 100vw - 32px) * 141 / 185); padding: 32px 42px; }
:root[data-storybook-art="riso"] .b2-game .mg-finale > .b2-feedback-mark { width: 58px; height: 58px; margin: 0 auto 8px; }
:root[data-storybook-art="riso"] .b2-game .mg-finale h2 { font-size: 42px; line-height: 1.1; margin: 8px 0; }
:root[data-storybook-art="riso"] .b2-game .mg-finale p { font-size: 18px; margin: 8px 0; }
:root[data-storybook-art="riso"] .b2-game .b2-sticker { outline: none; }
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .b2-game > .mg-head:has([data-riso-ready]) { padding: 12px 28px 36px !important; }
}

:root[data-storybook-art="riso"] .b2-game .b2-tally { width: min(350px, 100%); aspect-ratio: 170 / 174; padding: 0; min-height: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-tally:has(> .b2-paper-art [data-riso-ready]) .b2-tallycopy { position: absolute; inset: 18% 12% 13%; overflow-y: auto; }
:root[data-storybook-art="riso"] .b2-game .b2-tallyhd { display: block; }
:root[data-storybook-art="riso"] .b2-game .b2-fix { padding: 0; min-height: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-fix:has(> .b2-paper-art [data-riso-ready]) .b2-fixcopy { position: absolute; inset: 12% 10% 15%; display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto; }
:root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready]) { box-shadow: none; }
:root[data-storybook-art="riso"] .b2-game .mg-finale:has(> .b2-paper-art [data-riso-ready])::before { content: ""; position: absolute; inset: -100vmax; background: rgba(49, 36, 43, .6); z-index: -2; pointer-events: none; }

@media (min-width: 721px) {
  :root[data-storybook-art="riso"] .b2-game .b2-jarrow { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  :root[data-storybook-art="riso"] .b2-game .dk-legend:has(> .b2-paper-art) { width: min(340px, 100%); padding: 26px 30px 36px; }
}
:root[data-storybook-art="riso"] .b2-game .b2-padstamp[data-riso-ready] { position: absolute; right: 26px; bottom: 25px; width: 48px; height: auto; object-fit: contain; }
@media (min-width: 721px) and (max-width: 1099px) {
  :root[data-storybook-art="riso"] .minigame.b2-game { padding-left: 20px; }
  :root[data-storybook-art="riso"] .b2-game .b2-jarrow { display: flex; flex-wrap: nowrap; overflow-x: auto; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar { flex: 0 0 112px; min-width: 112px; }
}
/* Single-source stations use a small tray, with the source large enough to read. */
:root[data-storybook-art="riso"] .b2-game .b2-rail:has(#b2Syrup, #b2IceSrc) { max-width: 450px; margin-inline: auto; }
:root[data-storybook-art="riso"] .b2-game .b2-srcart > [data-riso-asset="syrup-bottle"] { width: 55px; height: 110px; }
:root[data-storybook-art="riso"] .b2-game .b2-srcart > [data-riso-asset="ice-bowl"] { width: 120px; height: 82.5px; }


/* Keep the live header inside the awning's blank cream face. */
:root[data-storybook-art="riso"] .b2-game .b2-headcopy { position: absolute; inset: 12% 14% 42%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy > span:not(.mg-score) { display: none; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy > b { font-size: 20px; line-height: 1.1; white-space: nowrap; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy .b2-club { font-size: 11px; line-height: 1.1; white-space: nowrap; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy .b2-academy-stamp { width: 36px; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy .mg-score { flex-wrap: nowrap; font-size: 14px; line-height: 1.15; gap: 3px; white-space: nowrap; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy .mg-score :is(.han,b,.dk-goal,.dk-counter,.dk-counter-n) { font-size: inherit; line-height: inherit; }
:root[data-storybook-art="riso"] .b2-game.b2-await .b2-station > .dk-legend,
:root[data-storybook-art="riso"] .b2-game.b2-closing .b2-station > .dk-legend { display: none; }
@media (min-width: 1100px) {
  :root[data-storybook-art="riso"] .b2-game .b2-station { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "bench guide" "shelf shelf" "say say"; gap: 8px 14px; align-items: center; }
  :root[data-storybook-art="riso"] .b2-game .b2-station > .b2-bench { grid-area: bench; }
  :root[data-storybook-art="riso"] .b2-game .b2-station > .b2-shelf { grid-area: shelf; }
  :root[data-storybook-art="riso"] .b2-game .b2-station > .dk-legend { grid-area: guide; width: 320px; padding: 24px 28px 28px; align-self: center; }
  :root[data-storybook-art="riso"] .b2-game .b2-station > .dk-legend .han { font-size: 20px; line-height: 1.15; }
  :root[data-storybook-art="riso"] .b2-game .b2-station > .dk-legend .b2-en2 { font-size: 16px; line-height: 1.2; }
  :root[data-storybook-art="riso"] .b2-game .b2-benchrow { gap: 16px; }
  :root[data-storybook-art="riso"] .b2-game .b2-jarrow { gap: 2px; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar { padding-inline: 1px; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar b.han { white-space: nowrap; font-size: 18px; line-height: 22px; padding-inline: 2px; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar small { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; font-size: 14px; line-height: 18px; min-height: 18px; padding-inline: 2px; }
  :root[data-storybook-art="riso"] .b2-game.b2-await .b2-station { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "bench say" "shelf shelf"; }
  :root[data-storybook-art="riso"] .b2-game.b2-await .b2-station > .b2-say { grid-area: say; }
}
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .b2-game .b2-station > .dk-legend { order: 2; flex: none; }
  :root[data-storybook-art="riso"] .b2-game:has(.b2-rail.bins) .b2-benchrow { --b2-cs: calc(var(--b2-cs0) * .78); min-height: 0; }
  :root[data-storybook-art="riso"] .b2-game:has(.b2-rail.bins) .b2-cupwrap { padding-top: 0; }
  :root[data-storybook-art="riso"] .b2-game:has(.b2-rail.bins) .b2-step { width: 250px; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins { padding: 12px 2px 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-railrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; align-items: end; width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-bin { width: 100%; min-width: 0; max-width: none; padding: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-bin b.han { font-size: 18px; line-height: 22px; padding-inline: 1px; }
  :root[data-storybook-art="riso"] .b2-game .b2-bin small { font-size: 13px; line-height: 17px; white-space: nowrap; padding-inline: 1px; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-none { min-width: 0; max-width: none; padding: 4px 1px; align-self: stretch; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-none .b2-srcart > [data-riso-asset="chop"] { width: 54px; height: 34px; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-none b.han { font-size: 18px; margin-top: 3px; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-none :is(.b2-nonen,small) { font-size: 12px; line-height: 1.2; }
}
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-none { width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-none .b2-nonen { min-width: 0; width: 100%; white-space: normal; overflow-wrap: normal; }
}

/* the paper never decides whether the shop has columns, or whether its words
   have a containing block. a failed download still leaves a readable receipt. */
:root[data-storybook-art="riso"] .b2-game .b2-papercopy { display: contents; }
:root[data-storybook-art="riso"] .b2-game :is(.b2-fix, .b2-tally):not(:has(> .b2-paper-art [data-riso-ready])) { position: relative; aspect-ratio: auto; padding: 18px; }
:root[data-storybook-art="riso"] .b2-game .b2-fixcopy > * { flex-shrink: 0; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy .mg-score :is(.dk-goal-en, .dk-counter-unit) { font-size: inherit; line-height: inherit; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy .dk-goal { flex-wrap: nowrap; }
:root[data-storybook-art="riso"] .b2-game .b2-headcopy .dk-goal-count { font-size: 16px; line-height: inherit; }

/* rem here follows the player's root text size. at ordinary phone text the
   layout above stays put; large print gets scrollable sheet interiors instead
   of a second column of ticket words falling off the counter. */
:root[data-storybook-art="riso"] .b2-game { container: boba / inline-size; }
@container boba (max-width: 20rem) {
  :root[data-storybook-art="riso"] .b2-game :is(.b2-ticket, .b2-step, .b2-cue, .dk-legend, .b2-pad, .b2-sticker, .b2-success):has(> .b2-paper-art [data-riso-ready]) { padding: 0; min-height: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-papercopy { display: flex; flex-direction: column; justify-content: safe center; gap: 4px; }
  :root[data-storybook-art="riso"] .b2-game :has(> .b2-paper-art [data-riso-ready]) > .b2-papercopy { position: absolute; inset: var(--b2-copy-inset, 12% 10% 15%); overflow: auto; pointer-events: auto; }
  :root[data-storybook-art="riso"] .b2-game .b2-papercopy > * { flex-shrink: 0; min-width: 0; }
  :root[data-storybook-art="riso"] .b2-game .b2-papercopy:focus-visible { outline: 2px solid var(--riso-ink); outline-offset: 2px; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket { --b2-copy-inset: 8% 10% 10%; flex-wrap: nowrap; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket .b2-row { flex: none; flex-direction: column; align-items: stretch; padding-block: 6px; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket .b2-val { flex: none; }
  :root[data-storybook-art="riso"] .b2-game .b2-ticket .b2-val > .han { margin-left: 0; text-align: left; }
  :root[data-storybook-art="riso"] .b2-game .b2-step { --b2-copy-inset: 15% 13% 22%; }
  :root[data-storybook-art="riso"] .b2-game .b2-stepen { text-align: center; }
  :root[data-storybook-art="riso"] .b2-game .b2-pad, :root[data-storybook-art="riso"] .b2-game .b2-sticker { --b2-copy-inset: 20% 12% 15%; }
  :root[data-storybook-art="riso"] .b2-game .b2-bench { position: relative; top: auto; }
  :root[data-storybook-art="riso"] .b2-game .b2-benchrow { flex-wrap: wrap; padding-top: 2rem; row-gap: 12px; }
  :root[data-storybook-art="riso"] .b2-game .b2-sink { width: max-content; max-width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-sink .b2-en2 { white-space: nowrap; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar { flex: 0 0 7rem; min-width: 7rem; max-width: 100%; }
  :root[data-storybook-art="riso"] .b2-game .b2-jar small { overflow-wrap: anywhere; word-break: normal; }
  :root[data-storybook-art="riso"] .b2-game .b2-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-storybook-art="riso"] .b2-game .b2-rail.bins .b2-railrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :root[data-storybook-art="riso"] .b2-game .b2-fixrow { grid-template-columns: 1fr; }
  :root[data-storybook-art="riso"] .b2-game .b2-tallycopy, :root[data-storybook-art="riso"] .b2-game .b2-fixcopy { overflow-wrap: anywhere; }
}

/* === Clinic painted interaction props ==================================== */
:root[data-storybook-art="riso"] .clinic2 .c2-riso-asset[data-riso-ready] { display:block; pointer-events:none !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-asset[data-riso-ready] + .c2-riso-fallback { display:none; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-cell:has(> .c2-riso-atlas[data-riso-ready]) { display:inline-block; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-cell:has(> .c2-riso-atlas[data-riso-ready]) + .c2-riso-fallback { display:none; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-preload { display:block; }

:root[data-storybook-art="riso"] .clinic2 .c2-slip { position:relative; isolation:isolate; background:transparent; border:0; box-shadow:none; padding-left:110px; padding-right:90px; box-sizing:border-box; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-paper[data-riso-ready] { position:absolute; inset:-8px; width:calc(100% + 16px); height:calc(100% + 16px); object-fit:fill; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-hint { position:relative; isolation:isolate; background:color-mix(in srgb, var(--riso-paper, #f6e9cb) 88%, transparent); border-color:transparent; }
:root[data-storybook-art="riso"] .clinic2 .c2-hint::before { content:""; position:absolute; inset:-8px -18px; z-index:-1; background:url("../art/minigames/riso/clinic/paper-hint-ribbon.png") center/100% 100% no-repeat; pointer-events:none; }

:root[data-storybook-art="riso"] .clinic2 .c2-wall { position:relative; isolation:isolate; background:transparent; border:0; box-shadow:none; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-shelf[data-riso-ready] { position:absolute; inset:-12px -14px; width:calc(100% + 28px); height:calc(100% + 24px); object-fit:fill; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-counterslab { position:relative; isolation:isolate; background:transparent; border:0; box-shadow:none; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-slab[data-riso-ready] { position:absolute; inset:-12px; width:calc(100% + 24px); height:calc(100% + 24px); object-fit:fill; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-jar-art { position:relative; isolation:isolate; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-jar[data-riso-ready] { position:absolute; inset:0; width:48px; height:58px; object-fit:contain; z-index:2; }

:root[data-storybook-art="riso"] .clinic2 .c2-scale { isolation:isolate; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-scale[data-riso-ready] { position:absolute; left:50%; bottom:-7px; width:190px; height:136px; transform:translateX(-50%); object-fit:contain; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-scale:has(> .c2-riso-scale[data-riso-ready]) > :is(.dk-scale-foot,.dk-scale-post) { opacity:0; }
:root[data-storybook-art="riso"] .clinic2 .dk-pan { isolation:isolate; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-pan[data-riso-ready] { position:absolute; left:50%; bottom:-5px; width:88px; height:34px; transform:translateX(-50%); object-fit:contain; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-brass { position:relative; isolation:isolate; }
:root[data-storybook-art="riso"] .clinic2 .c2-brass { min-width:44px; min-height:44px; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-weight[data-riso-ready] { position:absolute; inset:2px; width:calc(100% - 4px); height:calc(100% - 4px); object-fit:contain; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-scoop > .c2-riso-scoop[data-riso-ready],
:root[data-storybook-art="riso"] .clinic2 .c2-dump > .c2-riso-dump[data-riso-ready] { width:38px; height:34px; object-fit:contain; }
:root[data-storybook-art="riso"] .clinic2 .c2-unit > .c2-riso-cell { width:20px; height:18px; vertical-align:middle; }

:root[data-storybook-art="riso"] .clinic2 .c2-st-art { position:relative; isolation:isolate; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-station[data-riso-ready] { position:absolute; inset:-8px; width:calc(100% + 16px); height:calc(100% + 16px); object-fit:contain; z-index:0; }
:root[data-storybook-art="riso"] .clinic2 .c2-st-art:has(> .c2-riso-station[data-riso-ready]) > .c2-riso-fallback { visibility:hidden; }
:root[data-storybook-art="riso"] .clinic2 .c2-station.big .c2-riso-station[data-riso-ready] { inset:-16px; width:calc(100% + 32px); height:calc(100% + 32px); }
:root[data-storybook-art="riso"] .clinic2 .c2-bowl { z-index:3; }
:root[data-storybook-art="riso"] .clinic2 .c2-toolobj { position:relative; isolation:isolate; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-tool[data-riso-ready] { width:62px; height:48px; object-fit:contain; }
:root[data-storybook-art="riso"] .clinic2 .c2-pestle { position:relative; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-grind[data-riso-ready] { position:absolute; inset:-12px; width:calc(100% + 24px); height:calc(100% + 24px); object-fit:contain; }
:root[data-storybook-art="riso"] .clinic2 .c2-pestle:has(> .c2-riso-grind[data-riso-ready]) .c2-pestle-stick { opacity:0; }

:root[data-storybook-art="riso"] .clinic2 .c2-remedy-art { position:relative; width:90px; height:66px; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-remedy[data-riso-ready] { position:absolute; inset:-10px; width:calc(100% + 20px); height:calc(100% + 20px); object-fit:contain; }
:root[data-storybook-art="riso"] .clinic2 .c2-mark .c2-riso-symptom { width:42px; height:42px; }
:root[data-storybook-art="riso"] .clinic2 .c2-bag { position:relative; isolation:isolate; background:transparent; border:0; box-shadow:none; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-bag[data-riso-ready] { position:absolute; inset:-9px; width:calc(100% + 18px); height:calc(100% + 18px); object-fit:fill; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-chop[data-riso-ready] { width:52px; height:60px; object-fit:contain; }
:root[data-storybook-art="riso"] .clinic2 .c2-shelves { position:relative; isolation:isolate; background:transparent; border:0; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-medicine-shelf[data-riso-ready] { position:absolute; inset:-10px; width:calc(100% + 20px); height:calc(100% + 20px); object-fit:fill; z-index:-1; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-feedback { width:48px; height:48px; flex:none; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-finale { width:72px; height:72px; margin:0 auto 6px; }

/* the clinic is a long counter with six real work stations. letting that
   counter scroll is deliberate at enlarged text: centring an over-tall flex
   child hides its first and last controls equally, which is worse than a
   visible document that starts at the top and has an ordinary reading flow. */
:root[data-storybook-art="riso"] .minigame.clinic2 {
  overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable;
  align-content:center; padding-bottom:28px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-riso-preload { inset:0 auto auto 0; contain:strict; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-preload .c2-riso-asset[data-riso-ready] { position:absolute; inset:0; width:1px; height:1px; }
:root[data-storybook-art="riso"] .clinic2 > .mg-head {
  width:min(760px,calc(100% - 24px)); align-self:center; padding:7px 18px !important;
  background:transparent; border:0; box-shadow:none; isolation:isolate;
}
:root[data-storybook-art="riso"] .clinic2 > .mg-head::before {
  content:""; position:absolute; inset:-6px -12px; z-index:-1;
  background:url("../art/minigames/riso/clinic/paper-hint-ribbon.png") center/100% 100% no-repeat;
}
:root[data-storybook-art="riso"] .clinic2 .mg-head > b {
  flex:0 1 auto; padding:0; min-height:0; font-size:clamp(20px,2.4vw,28px);
}
:root[data-storybook-art="riso"] .clinic2 .mg-head > b small { display:inline; margin-left:8px; font-size:.72em; font-weight:500; }
:root[data-storybook-art="riso"] .clinic2 .mg-head .mg-score { width:auto; margin-left:auto; gap:10px; }
:root[data-storybook-art="riso"] .clinic2 .c2-court {
  flex:0 0 auto; width:min(780px,calc(100% - 24px)); min-height:min-content;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bench {
  flex:0 0 auto; min-height:min-content; justify-content:flex-start;
}

/* the prescription is the board's quiet anchor. the art supplies the torn
   paper and desk objects; live type keeps the language crisp and selectable. */
:root[data-storybook-art="riso"] .clinic2 .c2-slipcol { width:min(690px,100%); }
:root[data-storybook-art="riso"] .clinic2 .c2-slip {
  min-height:0; padding:12px 40px 11px 58px; background:transparent !important;
}
:root[data-storybook-art="riso"] .clinic2 .c2-riso-paper[data-riso-ready] { inset:-12px -10px; width:calc(100% + 20px); height:calc(100% + 24px); }
:root[data-storybook-art="riso"] .clinic2 .c2-slip .dk-docket-hd { margin-bottom:4px; padding-bottom:3px; font-size:14px; }
:root[data-storybook-art="riso"] .clinic2 .c2-rows { grid-template-columns:1fr !important; gap:2px; }
:root[data-storybook-art="riso"] .clinic2 .c2-row {
  display:grid !important; grid-template-columns:minmax(150px,auto) 1fr;
  align-items:baseline; gap:8px; padding:3px 7px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-row:not(.now):not([data-k="sym"]) { display:none !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-slip.expanded .c2-row,
:root[data-storybook-art="riso"] .clinic2.c2-tut .c2-row { display:grid !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-row .c2-lab { display:flex; min-width:0; }
:root[data-storybook-art="riso"] .clinic2 .c2-row .c2-val { display:block; min-width:0; min-height:0; }
:root[data-storybook-art="riso"] .clinic2 .c2-row .c2-lab .han,
:root[data-storybook-art="riso"] .clinic2 .c2-row .c2-val .han { font-size:20px; line-height:1.2; }
:root[data-storybook-art="riso"] .clinic2 .c2-row .dk-caption { font-size:13px; }
:root[data-storybook-art="riso"] .clinic2 .c2-row { border-color:rgba(50,65,75,.14); }
:root[data-storybook-art="riso"] .clinic2 .c2-row.now {
  background:rgba(207,225,193,.52); box-shadow:inset 4px 0 0 #6f956d;
}
:root[data-storybook-art="riso"] .clinic2 .c2-row.now .c2-val .han { color:#273b45; font-weight:750; }
:root[data-storybook-art="riso"] .clinic2 .c2-overview,
:root[data-storybook-art="riso"] .clinic2 :is(.c2-turn,.c2-againbtn,.c2-dump,.c2-scoop) {
  background:#f5e7ca; color:#2c4150; border:1px solid rgba(72,78,73,.25);
  border-radius:6px; box-shadow:0 3px 0 rgba(69,50,46,.18); font-weight:650;
}
:root[data-storybook-art="riso"] .clinic2 .c2-hint {
  isolation:isolate; background:transparent; border:0; border-radius:0;
  color:#2c4150; padding:10px 22px; box-shadow:none; height:auto; max-height:none;
  overflow:visible; white-space:normal;
}
:root[data-storybook-art="riso"] .clinic2 .c2-hint::before {
  inset:-5px -14px; background-size:100% 100%; opacity:.96;
}
:root[data-storybook-art="riso"] .clinic2 .c2-hint :is(.han,i) { color:#2c4150; }
:root[data-storybook-art="riso"] .clinic2 .c2-slabtag {
  color:#2c4150; background:#f5e7ca; border-radius:3px; box-shadow:0 2px 0 rgba(44,65,80,.16);
}
:root[data-storybook-art="riso"] .clinic2 .c2-slabtag :is(.han,i) { color:#2c4150; }
:root[data-storybook-art="riso"] .clinic2 .c2-rack,
:root[data-storybook-art="riso"] .clinic2 .c2-tool {
  position:relative; isolation:isolate; color:#2c4150; background:transparent;
  border:0; box-shadow:none; padding:10px 24px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-rack::before,
:root[data-storybook-art="riso"] .clinic2 .c2-tool::before {
  content:""; position:absolute; inset:-6px -12px; z-index:-1;
  background:url("../art/minigames/riso/clinic/paper-hint-ribbon.png") center/100% 100% no-repeat;
}
:root[data-storybook-art="riso"] .clinic2 .c2-rack :is(.han,i),
:root[data-storybook-art="riso"] .clinic2 .c2-tool :is(.han,i) { color:#2c4150; }
:root[data-storybook-art="riso"] .clinic2 .c2-station {
  background:transparent; border:0; border-radius:0; padding:3px 5px 5px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-station > :is(b.han,i) {
  position:relative; z-index:3; width:max-content; max-width:100%; padding:1px 5px;
  color:#2c4150; background:#f5e7ca; border-radius:2px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-station.big > :is(b.han,i) { background:transparent; }
:root[data-storybook-art="riso"] .clinic2 .c2-tray {
  min-width:210px; min-height:72px; background:url("../art/minigames/riso/clinic/remedy-tray.png") center/100% 100% no-repeat;
  border:0; border-radius:0; box-shadow:none;
}
:root[data-storybook-art="riso"] .clinic2 .c2-tray .c2-slabtag { transform:translateY(8px); }

/* labels belong to the jars, never across them. the small cream tabs leave
   the painted silhouettes legible and give long three-character names room. */
:root[data-storybook-art="riso"] .clinic2 .c2-jar { min-width:0; gap:0; padding:2px 2px 5px; }
:root[data-storybook-art="riso"] .clinic2 .c2-jar-label {
  position:relative; z-index:5; width:max-content; max-width:100%; margin-top:-3px;
  padding:2px 5px; background:#f5e7ca; border:0; border-radius:2px;
  box-shadow:0 2px 0 rgba(61,49,45,.2); color:#2d4050; white-space:normal;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bag { padding:48px 22px 14px; justify-content:center; min-height:148px; }
:root[data-storybook-art="riso"] .clinic2 .c2-bag :is(.c2-bagname,.c2-bagline,.c2-marks) { position:relative; z-index:4; }
:root[data-storybook-art="riso"] .clinic2 .c2-bagname { line-height:1.25; background:rgba(245,231,202,.84); border-radius:3px; padding:1px 4px; }
:root[data-storybook-art="riso"] .clinic2 .c2-bagline { background:rgba(245,231,202,.78); border-radius:3px; padding:1px 4px; }
:root[data-storybook-art="riso"] .clinic2 .c2-shelves { padding:10px 14px; }
:root[data-storybook-art="riso"] .clinic2 .c2-shelf {
  background:rgba(245,231,202,.88); border:0; border-radius:5px;
  box-shadow:0 3px 0 rgba(53,66,65,.22); min-height:64px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-shelf :is(b.han,i) { color:#2c4150; }
:root[data-storybook-art="riso"] .clinic2 .c2-chop { background:transparent; border:0; box-shadow:none; }

/* this is an in-world teaching chart rather than the old outlined mannequin.
   the eleven DOM spots remain live above it; only their painted reference
   surface and matching percentage map change in riso mode. */
:root[data-storybook-art="riso"] .clinic2 .c2-body { aspect-ratio:1 / 2; height:clamp(330px,52vh,470px); isolation:isolate; }
:root[data-storybook-art="riso"] .clinic2 .c2-riso-body-chart[data-riso-ready] {
  position:absolute; inset:-3%; width:106%; height:106%; object-fit:fill; z-index:-1;
}
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-body-fallback { visibility:hidden; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="etou"] { left:38% !important; top:14% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="taiyang"] { left:29% !important; top:18% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="lian"] { left:59% !important; top:21% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="zui"],
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="zuijiao"] { top:25% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="houlong"] { top:34% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="xiongkou"] { top:37% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="duzi"] { top:50% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="shoubi"] { top:39% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="shouwan"] { top:54% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-body:has(> .c2-riso-body-chart[data-riso-ready]) .c2-spot[data-spot="xigai"] { top:72% !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-remedy { background:transparent; border:0; box-shadow:none; padding:8px; }
:root[data-storybook-art="riso"] .clinic2 .c2-remedy-art { width:92px; height:58px; background:transparent; border:0; }

/* the final score lives on a certificate already sitting in the medicine
   cabinet; there is no generic cream modal left underneath it. */
:root[data-storybook-art="riso"] .clinic2.c2-over { justify-content:flex-start; padding-top:clamp(24px,8vh,72px); }
:root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale {
  position:relative; isolation:isolate; width:min(680px,calc(100% - 24px));
  min-height:430px; margin:0 auto; padding:105px 118px 82px;
  background:transparent; border:0; box-shadow:none; color:#2c4150;
}
:root[data-storybook-art="riso"] .clinic2 .c2-riso-finale-surface[data-riso-ready] {
  position:absolute; inset:-3%; width:106%; height:106%; object-fit:fill; z-index:-1;
}
:root[data-storybook-art="riso"] .clinic2 .mg-finale:has(> .c2-riso-finale-surface[data-riso-ready]) > .c2-riso-finale { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-over .dk-goal-verdict {
  width:min(560px,calc(100% - 32px)); color:#2c4150; isolation:isolate;
  background:transparent; border:0; box-shadow:none; border-radius:0;
}
:root[data-storybook-art="riso"] .clinic2.c2-over .dk-goal-verdict::before {
  content:""; position:absolute; inset:-12px -22px; z-index:-1;
  background:url("../art/minigames/riso/clinic/paper-hint-ribbon.png") center/100% 100% no-repeat;
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .clinic2 > .mg-head { width:calc(100% - 16px); padding:5px 12px !important; }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head::before { inset:-4px 0; }
  :root[data-storybook-art="riso"] .clinic2 .mg-head > b { flex:1 1 auto; font-size:20px; }
  :root[data-storybook-art="riso"] .clinic2 .mg-head > b small { display:none; }
  :root[data-storybook-art="riso"] .clinic2 .mg-head .mg-score { width:auto; margin-left:0; }
  :root[data-storybook-art="riso"] .clinic2 .c2-court { width:calc(100% - 24px); }
  :root[data-storybook-art="riso"] .clinic2 .c2-slip { padding:10px 20px 9px 28px; min-height:0; }
  :root[data-storybook-art="riso"] .clinic2 .c2-rows { grid-template-columns:1fr !important; }
  :root[data-storybook-art="riso"] .clinic2 .c2-row { grid-template-columns:minmax(105px,auto) 1fr; gap:5px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-row .c2-lab .han,
  :root[data-storybook-art="riso"] .clinic2 .c2-row .c2-val .han { font-size:18px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bench.st-weigh { gap:10px; }
  :root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-weighwrap { align-items:center; flex-wrap:nowrap; }
  :root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-pourjar .c2-jar-art { width:64px; height:78px; }
  :root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-scale { width:min(252px,70vw); }
  :root[data-storybook-art="riso"] .clinic2 .c2-body { height:390px; flex:none; }
  :root[data-storybook-art="riso"] .clinic2 .st-apply { flex-wrap:wrap; }
  :root[data-storybook-art="riso"] .clinic2 .st-apply .c2-handoff { flex:1 1 135px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bagarea { flex-wrap:nowrap; gap:8px; width:100%; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bag { width:160px; min-height:126px; }
  :root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale { min-height:360px; padding:84px 64px 62px; }
}

@media (min-resolution:1dppx) and (max-height:900px) {
  :root[data-storybook-art="riso"] .clinic2 .c2-court { padding-bottom:18px; }
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .clinic2 .c2-slip { padding-left:28px; padding-right:24px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-riso-scale[data-riso-ready] { width:166px; height:120px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-riso-shelf[data-riso-ready] { inset:-8px; width:calc(100% + 16px); height:calc(100% + 16px); }
}
@media (prefers-reduced-motion:reduce) {
  :root[data-storybook-art="riso"] .clinic2 .c2-riso-asset { transition:none !important; animation:none !important; }
}

/* round two is hierarchy, not decoration. the painted pieces stay put while
   live type gets one predictable ladder: chinese, english, then the optional
   reading/helper. every line is allowed to wrap instead of printing through
   its neighbour. */
:root[data-storybook-art="riso"] .clinic2 .c2-slip .dk-docket-hd {
  display:flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; row-gap:1px;
  min-width:0; line-height:1.25;
}
:root[data-storybook-art="riso"] .clinic2 .c2-slip .c2-safety { flex:1 1 100%; min-width:0; }
:root[data-storybook-art="riso"] .clinic2 .c2-row { grid-template-columns:minmax(118px,32%) minmax(0,1fr); }
:root[data-storybook-art="riso"] .clinic2 .c2-row :is(.c2-lab,.c2-val) { min-width:0; overflow-wrap:anywhere; }
:root[data-storybook-art="riso"] .clinic2 .c2-row .c2-lab { flex-wrap:wrap; align-items:baseline; gap:2px 5px; }
:root[data-storybook-art="riso"] .clinic2 .c2-row .c2-val i,
:root[data-storybook-art="riso"] .clinic2 .c2-hint i,
:root[data-storybook-art="riso"] .clinic2 .c2-tool i { display:block; line-height:1.25; }

/* the prep verb is the active instruction. it needs ink contrast even when a
   dark-theme scrim rule arrives later in the cascade. */
:root[data-storybook-art="riso"] .clinic2 .c2-tool {
  background-color:transparent !important;
  background-image:url("../art/minigames/riso/clinic/paper-hint-ribbon.png") !important;
  background-position:center !important; background-repeat:no-repeat !important;
  background-size:100% 100% !important;
  border:0 !important; box-shadow:none !important; color:#243b4a !important;
  text-shadow:none !important;
}
:root[data-storybook-art="riso"] .clinic2 .c2-tool::before { display:none !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-tool :is(b,.han,i,span) { color:#243b4a !important; }
:root[data-storybook-art="riso"] .clinic2 .c2-tool :is(.c2-mortar,.c2-hold,.c2-waitlab) {
  background:transparent !important; border:0 !important; box-shadow:none !important;
  padding:5px 12px;
}

/* the bag bow owns its top third. copy begins below it and stamps stay in a
   separate row, so quantities cannot sit on the illustration. */
:root[data-storybook-art="riso"] .clinic2 .c2-bag {
  display:grid; grid-template-rows:auto auto minmax(32px,auto); align-content:end;
  justify-items:center; gap:2px; padding:66px 18px 12px; min-height:166px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bag .c2-marks {
  display:flex; flex-wrap:wrap; justify-content:center; align-content:center; min-height:32px;
}
:root[data-storybook-art="riso"] .clinic2 .st-orders > .c2-hint {
  width:min(520px,calc(100% - 20px)); max-width:none; white-space:normal;
  overflow:visible; min-height:52px; text-align:center;
}

:root[data-storybook-art="riso"] .clinic2 .c2-dialogue-drawer { display:none; }

/* at enlarged type, character dialogue becomes an ordinary disclosure below
   the work. the current paper and hand target stay neighbours; supporting
   copy no longer occupies a fixed side lane taller than the whole action. */
:root[data-storybook-art="riso"] .clinic2.c2-textzoom {
  align-content:start; padding-top:10px; font-size:1rem;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom :is(#mgBubble,#c2Say) { display:none !important; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head {
  position:relative; inset:auto; width:min(760px,calc(100% - 28px));
  flex-wrap:wrap; gap:3px 10px; padding:5px 18px !important; min-height:0;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head > b,
:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head > span:not(.mg-score) { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .mg-head .mg-score {
  width:100%; justify-content:center; margin:0; font-size:15px; line-height:1.2;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .mg-head .mg-score * { font-size:15px !important; line-height:1.2; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-court {
  width:min(760px,calc(100% - 28px)); gap:8px; min-height:0;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-slipcol { width:100%; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-slip {
  padding:9px 34px 8px 48px; overflow:visible;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-slip .dk-docket-hd {
  display:none; margin:0; padding:0;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-slip .c2-safety { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-row {
  grid-template-columns:minmax(100px,28%) minmax(0,1fr); gap:6px; padding:2px 6px;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-row .c2-lab .han,
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-row .c2-val .han { font-size:20px; line-height:1.2; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-row .dk-caption { font-size:13px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-slipacts { gap:6px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-slipacts button { min-height:40px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-bench { gap:8px; padding-block:4px 8px; }

/* weighing has one sentence beside one scale. rack labels, repeated readings
   and the 两=二 note are secondary once the text size itself supplies emphasis. */
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-weigh .c2-racklab,
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-weigh .c2-racknote,
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-weigh .c2-station > i { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-weigh .c2-rack { padding:5px 18px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-weigh .c2-weighwrap { gap:10px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-weigh .c2-benchrow {
  order:-1; flex-direction:row; flex-wrap:wrap; gap:6px; margin-bottom:2px;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-weigh .c2-hint { order:-1; flex:1 1 320px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-hint { font-size:16px; line-height:1.25; padding:7px 18px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-hint :is(.han,i),
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-tool :is(.han,i) { font-size:18px !important; line-height:1.25; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-dialogue-drawer {
  display:block; flex:0 0 auto; width:min(700px,calc(100% - 32px)); margin:8px auto;
  color:#2c4150; background:#f5e7ca; border:1px solid rgba(72,78,73,.24);
  border-radius:5px; box-shadow:0 3px 0 rgba(69,50,46,.16);
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-dialogue-drawer summary {
  cursor:pointer; padding:7px 12px; font-size:15px; font-weight:700;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-dialogue-drawer summary i { margin-left:6px; font-weight:500; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-dialogue-copy { padding:4px 12px 10px; font-size:17px; line-height:1.35; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-restart {
  position:relative; inset:auto; flex:0 0 auto; margin:8px auto 18px; min-height:44px;
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .clinic2 > .mg-head > b,
  :root[data-storybook-art="riso"] .clinic2 > .mg-head > span:not(.mg-score) { display:none; }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head .mg-score { width:100%; justify-content:center; margin:0; }
  :root[data-storybook-art="riso"] .clinic2 .c2-slip .dk-docket-hd { display:none; }
  :root[data-storybook-art="riso"] .clinic2 .c2-row { grid-template-columns:minmax(88px,30%) minmax(0,1fr); }
  :root[data-storybook-art="riso"] .clinic2 .c2-bag { width:170px; min-height:150px; padding:60px 15px 10px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bagarea { align-items:center; }
  :root[data-storybook-art="riso"] .clinic2 .st-orders > .c2-hint { width:calc(100% - 12px); }
}

/* round three composes the live controls inside the paintings. the earlier
   pass protected DOM bounds, but the words still wandered into the ragged
   paper edge and each station read as a row of unrelated stickers. */
:root[data-storybook-art="riso"] .clinic2 .c2-court { gap:12px; }
:root[data-storybook-art="riso"] .clinic2 .c2-slipcol { width:min(640px,100%); }
:root[data-storybook-art="riso"] .clinic2 .c2-slip {
  padding:24px 70px 20px 102px; min-height:142px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-slip .dk-docket-hd {
  margin:0 0 7px; padding:0 3px 6px; border-bottom:1px dashed rgba(72,78,73,.25);
}
:root[data-storybook-art="riso"] .clinic2 .c2-row {
  grid-template-columns:minmax(124px,30%) minmax(0,1fr);
  gap:12px; padding:5px 3px; border-radius:0; background:transparent !important;
  box-shadow:none !important;
}
:root[data-storybook-art="riso"] .clinic2 .c2-row :is(.c2-lab,.c2-val) {
  overflow-wrap:normal; word-break:normal;
}
:root[data-storybook-art="riso"] .clinic2 .c2-row .c2-lab { padding-left:2px; }
:root[data-storybook-art="riso"] .clinic2 .c2-row.now { border-bottom-color:rgba(111,149,109,.42); }
:root[data-storybook-art="riso"] .clinic2 .c2-fold {
  justify-content:flex-start; width:100%; min-height:34px; margin:0; padding:2px 8px;
  border-radius:0; border-bottom:2px dashed rgba(65,79,77,.35); transform:none;
  background:transparent;
}
:root[data-storybook-art="riso"] .clinic2 .c2-row.down .c2-fold .han {
  color:#2c4150; text-shadow:none;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bench {
  width:min(620px,100%); gap:10px; padding:4px 10px 12px;
}

/* one stage, one sentence, one hand path. these four children stay in this
   order even when the document grows: instruction, choice, object, commit. */
:root[data-storybook-art="riso"] .clinic2 .st-weigh > .c2-benchrow { order:1; margin:0; }
:root[data-storybook-art="riso"] .clinic2 .st-weigh > .c2-rack { order:2; }
:root[data-storybook-art="riso"] .clinic2 .st-weigh > .c2-weighwrap { order:3; }
:root[data-storybook-art="riso"] .clinic2 .st-weigh > .c2-stationrail { order:4; }
:root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-benchrow {
  width:min(520px,100%); flex-wrap:nowrap; gap:8px;
}
:root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-hint { flex:1 1 auto; text-align:center; }
:root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-rack {
  width:min(430px,100%); padding:8px 24px; margin:0;
}
:root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-racklab { display:none; }
:root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-racknote {
  position:absolute; right:10px; bottom:-19px; margin:0; font-size:12px;
}
:root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-weighwrap { gap:18px; }
:root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-tally {
  max-width:280px; padding:7px 12px; background:#f5e7ca; border-radius:6px;
  box-shadow:0 3px 0 rgba(69,50,46,.18);
}

:root[data-storybook-art="riso"] .clinic2 .st-prep { gap:8px; }
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-tool { order:-1; width:min(400px,100%); }
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-preparea {
  display:grid; grid-template-columns:minmax(210px,auto) minmax(112px,150px);
  align-items:center; justify-content:center; gap:20px; width:min(500px,100%);
}
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-stateread {
  position:relative; z-index:5; align-self:center; min-width:112px; margin-left:24px; padding:10px 12px; background:#f5e7ca;
  border:1px solid rgba(72,78,73,.3); box-shadow:0 3px 0 rgba(69,50,46,.18);
}
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-benchrow { gap:10px; }
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-tray { min-width:220px; }
:root[data-storybook-art="riso"] .clinic2 .st-prep #c2Hint2:empty { display:none; }
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-tool {
  display:flex; align-items:center; justify-content:center; min-height:66px; padding:12px 30px;
}
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-tool > * {
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:3px 9px;
  width:100%; padding:0 !important;
}

:root[data-storybook-art="riso"] .clinic2 .st-apply {
  width:min(560px,100%); display:grid; grid-template-columns:minmax(190px,260px) minmax(170px,230px);
  align-items:center; justify-content:center; gap:24px;
}
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-handoff { gap:8px; min-width:0; }
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-hint {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%; min-height:76px; padding:12px 20px; text-align:center;
}
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-spotname {
  min-height:0; background:#f5e7ca; color:#2c4150;
}

/* the bow is illustration, the medicine copy is a label tied below it. that
   keeps long names horizontal and leaves every stamped 次 visible. */
:root[data-storybook-art="riso"] .clinic2 .st-orders { gap:7px; }
:root[data-storybook-art="riso"] .clinic2 .st-orders > .c2-hint {
  order:-2; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center;
  gap:2px 8px; margin:0; min-height:64px; padding:12px 28px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bagarea { order:-1; align-items:center; }
:root[data-storybook-art="riso"] .clinic2 .c2-bagunit {
  display:grid; grid-template-columns:154px minmax(112px,auto); align-items:center; gap:8px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bag {
  width:154px; min-height:142px; padding:78px 14px 10px; display:flex;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bagtag {
  position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center;
  justify-content:center; min-width:112px; max-width:150px; padding:12px 16px;
  color:#2c4150; text-align:center; white-space:nowrap;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bagtag::before {
  content:""; position:absolute; inset:-5px -10px; z-index:-1;
  background:url("../art/minigames/riso/clinic/paper-hint-ribbon.png") center/100% 100% no-repeat;
}
:root[data-storybook-art="riso"] .clinic2 .c2-bagtag :is(.c2-bagname,.c2-bagline) {
  padding:0; background:transparent; white-space:nowrap; color:#2c4150;
}
:root[data-storybook-art="riso"] .clinic2 .c2-order-route {
  display:flex; align-items:center; justify-content:center; gap:12px; color:#f5e7ca;
  font-weight:800; line-height:1;
}
:root[data-storybook-art="riso"] .clinic2 .c2-order-route b { color:#e5aa35; font-size:24px; }
:root[data-storybook-art="riso"] .clinic2 .c2-shelves { padding:9px 16px; }

/* the terminal sentence belongs on the certificate, not on a second ribbon
   above it. the restart is a real choice here and stays inside the first view. */
:root[data-storybook-art="riso"] .clinic2.c2-over { padding-top:clamp(18px,4vh,40px); gap:8px; }
:root[data-storybook-art="riso"] .clinic2.c2-over .dk-goal-verdict {
  order:2; width:min(420px,70%); margin:-168px auto 0; padding:0;
  position:relative; background:transparent; color:#6f6258; z-index:20; pointer-events:auto;
}
:root[data-storybook-art="riso"] .clinic2.c2-over .dk-goal-verdict::before { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-over .dk-goal-verdict .dk-goal-verdict-zh { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-over .dk-goal-verdict .dk-goal-verdict-en {
  display:block; font-size:15px; line-height:1.3; text-align:center;
}
:root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale { order:1; margin:0 auto; }
:root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale > .mg-finale-en { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-over .c2-restart {
  order:3; display:inline-flex; align-items:center; justify-content:center; margin:8px auto 16px;
  position:relative; min-width:148px; color:#2c4150; background:#f5e7ca; z-index:30; pointer-events:auto;
}

@media (min-width:721px) {
  :root[data-storybook-art="riso"] .clinic2 > .mg-head { padding-left:78px !important; padding-right:78px !important; }
  :root[data-storybook-art="riso"] .clinic2 .mg-host,
  :root[data-storybook-art="riso"] .clinic2 .c2-guest { scale:.84; }
  :root[data-storybook-art="riso"] .clinic2 .mg-host { transform-origin:left bottom; }
  :root[data-storybook-art="riso"] .clinic2 .c2-guest { transform-origin:right bottom; }
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .clinic2 { padding-top:48px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-court { width:calc(100% - 16px); gap:9px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-slip { padding:18px 38px 16px 52px; min-height:126px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-row { grid-template-columns:82px minmax(0,1fr); gap:7px; padding:4px 1px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bench { width:100%; padding-inline:4px; }
  :root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-benchrow {
    width:calc(100vw - 32px); max-width:100%; flex-direction:row; flex-wrap:wrap;
  }
  :root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-hint { flex:1 1 100%; order:-1; }
  :root[data-storybook-art="riso"] .clinic2 .st-weigh :is(.c2-scoop,.c2-dump) { flex:0 0 64px; }
  :root[data-storybook-art="riso"] .clinic2 .st-weigh .c2-rack { width:min(344px,100%); }
  :root[data-storybook-art="riso"] .clinic2 .st-prep .c2-preparea { grid-template-columns:180px 120px; gap:22px; }
  :root[data-storybook-art="riso"] .clinic2 .st-prep .c2-stateread { margin-left:12px; }
  :root[data-storybook-art="riso"] .clinic2 .st-apply { grid-template-columns:minmax(170px,220px) minmax(126px,150px); gap:8px; }
  :root[data-storybook-art="riso"] .clinic2 .st-apply .c2-body { height:350px; }
  :root[data-storybook-art="riso"] .clinic2 .st-apply .c2-handoff .c2-hint { padding:8px 12px; }
  :root[data-storybook-art="riso"] .clinic2 .st-apply .c2-handoff .c2-hint :is(.han,i) { font-size:15px; line-height:1.2; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bagarea { flex-wrap:nowrap; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bagunit { grid-template-columns:132px 100px; gap:4px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bag { width:132px; min-height:126px; padding:66px 10px 8px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-bagtag { min-width:96px; max-width:100px; padding:9px 10px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-chop { padding:4px 8px; }
  :root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale { min-height:330px; padding:78px 52px 58px; }
  :root[data-storybook-art="riso"] .clinic2.c2-over .dk-goal-verdict { width:72%; margin-top:-130px; }
  :root[data-storybook-art="riso"] .clinic2.c2-over .c2-dialogue-drawer { display:none !important; }
}

:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-slip {
  padding:18px 70px 16px 104px; min-height:124px;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-row { grid-template-columns:150px minmax(0,1fr); }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-bench { width:min(620px,100%); }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-dialogue-drawer { display:none; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .st-orders .c2-bagtag :is(.c2-bagname,.c2-bagline) { font-size:16px !important; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom.c2-over .dk-goal-verdict { margin-top:-158px; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom.c2-over .c2-restart { margin-top:10px; }

/* round four is the paper-fit pass. copy determines the scrap's height, and
   every control says what it does without asking its tiny icon to carry it. */
:root[data-storybook-art="riso"] .clinic2 .c2-slipacts {
  position:relative; isolation:isolate; width:min(560px,calc(100% - 24px));
  margin:2px auto 0; padding:8px 16px; justify-content:center; gap:8px;
}
:root[data-storybook-art="riso"] .clinic2 .c2-slipacts::before {
  content:""; position:absolute; inset:-4px -10px; z-index:-1;
  background:url("../art/minigames/riso/clinic/paper-hint-ribbon.png") center/100% 100% no-repeat;
}
:root[data-storybook-art="riso"] .clinic2 .c2-slipacts button {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:48px; padding:6px 11px; background:rgba(245,231,202,.72);
  border:1px solid rgba(64,72,70,.24); box-shadow:0 2px 0 rgba(69,50,46,.16);
}
:root[data-storybook-art="riso"] .clinic2 .c2-overview { flex-direction:column; gap:0; line-height:1.05; }
:root[data-storybook-art="riso"] .clinic2 .c2-overview :is(b,i),
:root[data-storybook-art="riso"] .clinic2 .c2-action-label :is(b,i) { display:block; font-style:normal; color:#2c4150; }
:root[data-storybook-art="riso"] .clinic2 .c2-overview b,
:root[data-storybook-art="riso"] .clinic2 .c2-action-label b { font-size:17px; line-height:1.05; }
:root[data-storybook-art="riso"] .clinic2 .c2-overview i,
:root[data-storybook-art="riso"] .clinic2 .c2-action-label i { font-size:12px; line-height:1.1; }
:root[data-storybook-art="riso"] .clinic2 .c2-action-label { display:flex; flex-direction:column; gap:0; }

:root[data-storybook-art="riso"] .clinic2 :is(.st-prep,.st-apply,.st-orders) .c2-hint,
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-tool {
  box-sizing:border-box; width:min(520px,calc(100% - 20px)); height:auto !important;
  min-height:82px; padding:16px 42px; overflow:visible;
}
:root[data-storybook-art="riso"] .clinic2 :is(.st-prep,.st-apply,.st-orders) .c2-hint::before {
  inset:0; background-size:100% 100%;
}
:root[data-storybook-art="riso"] .clinic2 :is(.st-prep,.st-apply,.st-orders) .c2-hint :is(.han,i),
:root[data-storybook-art="riso"] .clinic2 .st-prep .c2-tool :is(.han,i) {
  position:relative; margin:0; max-width:100%; line-height:1.22;
}

/* 用药 is one hand path: painted tray, direction, named body region, then the
   feedback label directly under the teaching chart. */
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-remedy {
  min-width:116px; padding:10px 12px 8px; background:#f5e7ca;
  border:2px solid #6f956d; border-radius:12px; box-shadow:0 4px 0 rgba(50,65,75,.22);
}
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-remedy .han { color:#2c4150; }
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-apply-route {
  display:flex; align-items:center; justify-content:center; gap:7px; color:#f5e7ca;
  font-size:16px; font-weight:800; line-height:1.15; text-align:center; white-space:nowrap;
}
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-apply-route b {
  font-size:16px; line-height:1.15; white-space:nowrap;
}
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-apply-route i {
  color:#e5aa35; font-size:22px; font-style:normal;
}
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-spotname:empty { display:none; }
:root[data-storybook-art="riso"] .clinic2 .st-apply .c2-spotname:not(:empty) {
  display:block; min-width:108px; padding:5px 10px; text-align:center;
}

/* goalVerdict is moved inside the generated certificate. explicit insets are
   the blank writing area; foliage and cabinet hardware stay untouched. */
:root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale > .dk-goal-verdict {
  position:absolute; inset:65% 18% auto; width:auto; max-width:none; margin:0;
  transform:translateY(-50%);
  padding:0; color:#5f534b; z-index:20; pointer-events:auto;
}
:root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale > .dk-goal-verdict .dk-goal-verdict-en {
  color:#5f534b; font-size:15px; font-weight:750; line-height:1.28; text-align:center;
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .clinic2 > .mg-head {
    display:flex; flex-wrap:nowrap; align-items:center; gap:7px; padding:5px 15px 5px 34px !important;
  }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head > b {
    display:flex; flex:0 1 auto; align-items:baseline; gap:4px; min-width:0;
    position:static !important; inset:auto !important; transform:none !important; z-index:2;
    margin-left:34px !important;
    color:#49382f; font-size:17px; line-height:1.1; white-space:nowrap;
  }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head > b small {
    display:inline; margin:0; font-size:11px; overflow:hidden; text-overflow:ellipsis;
  }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head > span:not(.mg-score) { display:none; }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head .mg-score {
    flex:0 0 auto; width:auto; margin-left:auto; gap:5px; font-size:12px; white-space:nowrap;
  }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head .dk-goal-en { display:none !important; }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head .c2-pt { font-size:13px; }
  :root[data-storybook-art="riso"] .clinic2 > .mg-head :is(.dk-goal-zh,.dk-goal-count) { font-size:17px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-slipacts {
    width:calc(100% - 8px); box-sizing:border-box; padding:7px 10px; gap:6px;
  }
  :root[data-storybook-art="riso"] .clinic2 .c2-slipacts button { flex:1 1 0; min-width:0; padding:5px 6px; }
  :root[data-storybook-art="riso"] .clinic2 .c2-slipacts .tool-ic svg { width:22px; height:22px; }
  :root[data-storybook-art="riso"] .clinic2 :is(.st-prep,.st-apply,.st-orders) .c2-hint,
  :root[data-storybook-art="riso"] .clinic2 .st-prep .c2-tool {
    width:calc(100% - 12px); min-height:88px; padding:17px 30px;
  }
  :root[data-storybook-art="riso"] .clinic2 .st-apply {
    grid-template-columns:minmax(174px,184px) minmax(172px,182px); gap:8px;
  }
  :root[data-storybook-art="riso"] .clinic2 .st-apply .c2-remedy { min-width:108px; }
  :root[data-storybook-art="riso"] .clinic2 .st-apply .c2-handoff .c2-hint {
    min-height:124px; padding:18px 18px;
  }
  :root[data-storybook-art="riso"] .clinic2.c2-over .mg-finale > .dk-goal-verdict .dk-goal-verdict-en {
    font-size:14px; line-height:1.22;
  }
}

:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head > b {
  display:flex; flex:0 1 auto; align-items:baseline; gap:5px; color:#49382f;
  position:static !important; inset:auto !important; transform:none !important; z-index:2;
  margin-left:55px !important;
  font-size:20px; line-height:1.1; white-space:nowrap;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head > b small {
  display:inline; margin:0; font-size:12px;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head .mg-score { width:auto; margin-left:auto; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head {
  min-height:44px; padding-block:8px !important;
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom > .mg-head .dk-goal-en { display:none !important; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .mg-host,
:root[data-storybook-art="riso"] .clinic2.c2-textzoom .c2-guest { scale:.72; }
:root[data-storybook-art="riso"] .clinic2.c2-textzoom.c2-over .mg-finale > .dk-goal-verdict {
  inset:64% 20% auto; margin:0; transform:translateY(-50%);
}
:root[data-storybook-art="riso"] .clinic2.c2-textzoom.c2-over .mg-finale > .dk-goal-verdict .dk-goal-verdict-en {
  font-size:20px; line-height:1.25; font-weight:750;
}
:root[data-storybook-art="riso"] .clinic2.c2-over .c2-restart {
  min-width:230px; min-height:56px; padding:11px 42px; border:0; border-radius:0; box-shadow:none;
  background:transparent url("../art/minigames/riso/clinic/paper-hint-ribbon.png") center/100% 100% no-repeat;
  color:#2c4150; font-weight:800;
}
/* === End Clinic painted interaction props ================================ */

/* ==========================================================================
   MARKET RUSH · PAINTED PROP INTEGRATION
   Every rule is gated by the riso root and by that individual image's ready
   marker. Missing art therefore exposes the original SVG/CSS object only.
   ========================================================================== */
:root[data-storybook-art="riso"] .rush2 .rz-riso-asset[data-riso-ready] {
  display: block; pointer-events: none; user-select: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-riso-host { display: block; position: relative; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-host:has(> .rz-riso-art[data-riso-ready]) > .rz-riso-fallback { display: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-preload {
  display: block; position: absolute; width: 0; height: 0; overflow: hidden;
  pointer-events: none; opacity: 0;
}
:root[data-storybook-art="riso"] .rush2 .rz-riso-preload img[data-riso-ready] { width: 1px; height: 1px; }

:root[data-storybook-art="riso"] .rush2 .rz-court { isolation: isolate; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-awning[data-riso-ready] {
  position: absolute; z-index: -1; inset: -8px 0 auto; width: 100%; height: 116px;
  object-fit: fill; opacity: .95;
}
:root[data-storybook-art="riso"] .rush2 :is(.rz-mode,.rz-feedback,.rz-rail,.rz-railkey,.rz-stall,.rz-trayline) { position: relative; z-index: 1; }

:root[data-storybook-art="riso"] .rush2 .rz-railkey { position: relative; isolation: isolate; background: none; border: 0; box-shadow: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-ribbon[data-riso-ready] {
  position: absolute; z-index: -1; inset: -10px -18px; width: calc(100% + 36px); height: calc(100% + 20px); object-fit: fill;
}
:root[data-storybook-art="riso"] .rush2 .rz-rack,
:root[data-storybook-art="riso"] .rush2 .rz-foodline { position: relative; isolation: isolate; }
:root[data-storybook-art="riso"] .rush2 .rz-rack:has(> .rz-riso-rack[data-riso-ready]),
:root[data-storybook-art="riso"] .rush2 .rz-foodline:has(> .rz-riso-foodline[data-riso-ready]) {
  background: none; border-color: transparent; box-shadow: none;
}
:root[data-storybook-art="riso"] .rush2 :is(.rz-riso-rack,.rz-riso-foodline)[data-riso-ready] {
  position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: fill;
}
:root[data-storybook-art="riso"] .rush2 .rz-rack-hd,
:root[data-storybook-art="riso"] .rush2 .rz-hooks,
:root[data-storybook-art="riso"] .rush2 .rz-hoppers { position: relative; z-index: 1; }

:root[data-storybook-art="riso"] .rush2 .rz-riso-vessel { width: 66px; height: 48px; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-vessel > img[data-riso-ready] {
  width: 66px; height: 48px; object-fit: contain;
}
:root[data-storybook-art="riso"] .rush2 .rz-vessel:has(.rz-riso-vessel > img[data-riso-ready]) > .rz-mw { position: relative; z-index: 2; }
:root[data-storybook-art="riso"] .rush2 .rz-hopper-art .rz-riso-hopper { width: 62px; height: 38px; }
:root[data-storybook-art="riso"] .rush2 .rz-hopper-art .rz-riso-hopper > img[data-riso-ready] { width: 62px; height: 38px; object-fit: contain; }

:root[data-storybook-art="riso"] .rush2 .rz-wok { isolation: isolate; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-wok { position: absolute; z-index: 2; inset: 0; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-wok > img[data-riso-ready] { width: 100%; height: 100%; object-fit: contain; }
:root[data-storybook-art="riso"] .rush2 .rz-wok .rz-flame { position: relative; z-index: 1; }
:root[data-storybook-art="riso"] .rush2 .rz-bin { isolation: isolate; background: none; border-color: transparent; box-shadow: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-bin[data-riso-ready] { position: absolute; z-index: -1; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); object-fit: contain; }

:root[data-storybook-art="riso"] .rush2 .rz-tray { isolation: isolate; background: none; border-color: transparent; box-shadow: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-tray[data-riso-ready] { position: absolute; z-index: -1; inset: -18px -12px; width: calc(100% + 24px); height: calc(100% + 36px); object-fit: fill; }
:root[data-storybook-art="riso"] .rush2 .rz-tray-slots,
:root[data-storybook-art="riso"] .rush2 .rz-tray-label { position: relative; z-index: 2; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-unit-vessel { width: 100%; height: 100%; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-unit-vessel > img[data-riso-ready] { width: 100%; height: 100%; object-fit: contain; }

:root[data-storybook-art="riso"] .rush2 .rz-riso-cell:has(> img[data-riso-ready]) {
  display: block; position: relative; overflow: hidden; background-repeat: no-repeat;
}
:root[data-storybook-art="riso"] .rush2 .rz-riso-cell > .rz-riso-atlas-loader { display: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-food-unit:has(> img[data-riso-ready]) {
  width: 100%; height: 100%; background-image: url("../art/minigames/riso/rush/food-unit-atlas.png"); background-size: 300% 200%;
}
:root[data-storybook-art="riso"] .rush2 .rz-riso-food-unit.rz-riso-chuan { background-position: 0 0; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-food-unit.rz-riso-tangyuan { background-position: 50% 0; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-food-unit.rz-riso-baozi { background-position: 100% 0; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-food-unit.rz-riso-naicha { background-position: 0 100%; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-food-unit.rz-riso-yumi { background-position: 50% 100%; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-food-unit.rz-riso-jianbing { background-position: 100% 100%; }
:root[data-storybook-art="riso"] .rush2 .rz-food:has(.rz-riso-unit-food > img[data-riso-ready]) > .rz-food-fallback { display: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-unit-food { position: absolute; inset: -6px; width: calc(100% + 12px) !important; height: calc(100% + 12px) !important; }

:root[data-storybook-art="riso"] .rush2 .dk-docket { isolation: isolate; background: none; border-color: transparent; box-shadow: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-docket[data-riso-ready] { position: absolute; z-index: -1; inset: -10px -8px; width: calc(100% + 16px); height: calc(100% + 20px); object-fit: fill; }
:root[data-storybook-art="riso"] .rush2 .rz-feedback { display: flex; align-items: center; justify-content: center; gap: 8px; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-feedback:has(> img[data-riso-ready]) { width: 38px; height: 38px; flex: none; background-image: url("../art/minigames/riso/rush/feedback-atlas.png"); background-size: 200% 200%; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-feedback.rz-riso-success { background-position: 0 0; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-feedback.rz-riso-wrong-serve { background-position: 100% 0; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-feedback.rz-riso-timeout { background-position: 0 100%; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-feedback.rz-riso-finale { background-position: 100% 100%; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-finale-mark { width: 72px !important; height: 72px !important; margin: 0 auto 4px; }

@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .rush2 .rz-riso-vessel,
  :root[data-storybook-art="riso"] .rush2 .rz-riso-vessel > img[data-riso-ready] { width: 52px; height: 40px; }
  :root[data-storybook-art="riso"] .rush2 .rz-hopper-art .rz-riso-hopper,
  :root[data-storybook-art="riso"] .rush2 .rz-hopper-art .rz-riso-hopper > img[data-riso-ready] { width: 48px; height: 30px; }
  :root[data-storybook-art="riso"] .rush2 .rz-riso-awning[data-riso-ready] { height: 92px; }
}
@media (max-width: 359px) {
  :root[data-storybook-art="riso"] .rush2 .rz-riso-vessel,
  :root[data-storybook-art="riso"] .rush2 .rz-riso-vessel > img[data-riso-ready] { width: 46px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-storybook-art="riso"] .rush2 .rz-riso-asset { transition: none; animation: none; }
}

/* Market Rush keeps one illustrated stall from top to bottom. The first pass
   mounted the paintings, then left the old rectangles sitting on top of them;
   these rules let the awning, rack, food shelf, tray and bin carry the frame. */
:root[data-storybook-art="riso"] .minigame.rush2 {
  gap: 3px;
  padding-top: 5px;
}
:root[data-storybook-art="riso"] .rush2 > .mg-head {
  width: min(760px, calc(100vw - 92px));
  margin: 0 6vw 2px auto;
  padding: 5px 14px 6px;
  background: rgba(255, 247, 232, .94);
  border: 0;
  border-radius: 7px 13px 8px 11px;
  box-shadow: 3px 5px 0 rgba(41, 32, 51, .18);
  transform: rotate(-.25deg);
}
:root[data-storybook-art="riso"] .rush2 .rz-court {
  position: relative;
  width: min(900px, 94vw);
  gap: 3px;
  padding-top: 45px;
}
:root[data-storybook-art="riso"] .rush2 .rz-riso-awning[data-riso-ready] {
  z-index: 0;
  inset: -58px -52px auto;
  width: calc(100% + 104px);
  height: 112px;
  object-fit: fill;
}
:root[data-storybook-art="riso"] .rush2 .rz-mode {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 3%;
  width: auto;
  max-width: 430px;
  gap: 7px;
  padding: 0;
  background: transparent;
  color: #fff4da;
  font-size: var(--dk-caption);
}
:root[data-storybook-art="riso"] .rush2 .rz-mode button {
  min-height: 44px;
  padding: 4px 12px;
  border: 0;
  border-radius: 9px 6px 10px 7px;
  background: #f2e4c2;
  color: #49382f;
  box-shadow: 2px 3px 0 rgba(36, 19, 53, .24);
  transform: rotate(.4deg);
}
:root[data-storybook-art="riso"] .rush2 .rz-mode span { flex: 0 1 auto; }
:root[data-storybook-art="riso"] .rush2 .rz-feedback:not(:empty) {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 0;
  align-self: center;
  width: min(420px, 48%);
  padding: 5px 14px;
  background: url("../art/minigames/riso/rush/paper-ribbon.png") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 12px 7px 11px 8px;
  box-shadow: 3px 4px 0 rgba(36, 19, 53, .18);
  transform: rotate(-.2deg);
}
:root[data-storybook-art="riso"] .rush2.rz-relaxed .rz-mode span { display: none; }
:root[data-storybook-art="riso"] .rush2 .rz-rail {
  min-height: 126px;
  align-items: flex-start;
}
:root[data-storybook-art="riso"] .rush2 .rz-docket { gap: 0; }
:root[data-storybook-art="riso"] .rush2 .rz-docket .dk-docket {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 230px;
  min-height: 104px;
  padding: 9px 18px 14px;
}
:root[data-storybook-art="riso"] .rush2 .rz-docket .dk-docket-hd {
  width: 100%;
  justify-content: center;
}
:root[data-storybook-art="riso"] .rush2 .rz-slot {
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
:root[data-storybook-art="riso"] .rush2 .rz-order {
  width: 100%;
  text-align: center;
  text-wrap: balance;
}
:root[data-storybook-art="riso"] .rush2 .rz-chalk,
:root[data-storybook-art="riso"] .rush2 .rz-earonly { align-items: center; text-align: center; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-docket[data-riso-ready] {
  inset: -8px -10px -10px;
  width: calc(100% + 20px);
  height: calc(100% + 18px);
  object-fit: fill;
}
:root[data-storybook-art="riso"] .rush2 .rz-railkey {
  min-height: 34px;
  margin-top: -8px;
}
:root[data-storybook-art="riso"] .rush2 .rz-hint {
  min-height: 34px;
  padding: 3px 15px 4px;
  background: transparent;
  color: #49382f;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}
:root[data-storybook-art="riso"] .rush2 .rz-stall { gap: 3px; }
:root[data-storybook-art="riso"] .rush2 :is(.rz-rack, .rz-foodline) {
  width: min(760px, 92vw);
  box-sizing: border-box;
  padding: 2px 13px 4px;
}
:root[data-storybook-art="riso"] .rush2 .rz-rack-hd {
  gap: 5px;
  line-height: 1.12;
}
:root[data-storybook-art="riso"] .rush2 .rz-hooks { gap: 7px; flex-wrap: nowrap; }
:root[data-storybook-art="riso"] .rush2 .rz-mw {
  border: 0;
  border-radius: 5px 8px 6px 7px;
  box-shadow: 1px 3px 0 rgba(36, 19, 53, .28);
}
:root[data-storybook-art="riso"] .rush2 .rz-bench {
  width: 100%;
  gap: 7px;
  flex-wrap: nowrap;
}
:root[data-storybook-art="riso"] .rush2 .rz-hoppers { gap: 4px; flex-wrap: nowrap; }
:root[data-storybook-art="riso"] .rush2 .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]) {
  width: 84px;
  min-height: 68px;
  padding: 1px 2px 3px;
  background: transparent;
  color: #fff4da;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]) .dk-caption { color: #f2dfb6; }
:root[data-storybook-art="riso"] .rush2 .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]):hover,
:root[data-storybook-art="riso"] .rush2 .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]):focus-visible {
  background: rgba(255, 247, 232, .13);
  box-shadow: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-wokwrap { gap: 0; }
:root[data-storybook-art="riso"] .rush2 .rz-trayline {
  align-items: center;
  gap: 10px;
  margin-top: -1px;
}
:root[data-storybook-art="riso"] .rush2 .rz-tray {
  width: min(560px, calc(94vw - 110px));
  min-height: 86px;
  padding: 4px 13px 3px;
}
:root[data-storybook-art="riso"] .rush2 .rz-tray:has(> .rz-riso-tray[data-riso-ready]) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-tray:not(.rz-loaded) .rz-tray-slots {
  width: 72%;
  min-height: 38px;
  border-color: rgba(255, 247, 232, .7);
  border-radius: 10px 6px 9px 7px;
}
:root[data-storybook-art="riso"] .rush2 .rz-tray-label {
  max-width: 92%;
  color: #fff4da;
  text-shadow: 0 1px 0 rgba(36, 19, 53, .35);
}
:root[data-storybook-art="riso"] .rush2 .rz-bin {
  width: 94px;
  height: 68px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-bin:hover,
:root[data-storybook-art="riso"] .rush2 .rz-bin.gk-zone-hot { background: rgba(255, 247, 232, .12); }
:root[data-storybook-art="riso"] .rush2 .rz-bin::before { display: none; }
:root[data-storybook-art="riso"] .rush2 .rz-riso-bin[data-riso-ready] { z-index: 0; }
:root[data-storybook-art="riso"] .rush2 .rz-bin > :not(.rz-riso-bin) { z-index: 1; }
:root[data-storybook-art="riso"] .rush2 .rz-endsheet .dk-goal-verdict {
  width: min(650px, 92vw);
  min-height: 92px;
  padding: 18px 46px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("../art/minigames/riso/rush/paper-ribbon.png") center / 100% 138% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-recap {
  position: relative;
  isolation: isolate;
  width: min(520px, 94%);
  padding: 27px 30px 32px;
  background-color: transparent !important;
  background-image: none !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-recap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -24px;
  background: url("../art/minigames/riso/rush/docket-paper.png") center / 145% 116% no-repeat;
  pointer-events: none;
}
:root[data-storybook-art="riso"] .rush2 .rz-end-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  color: #49382f;
  font: 800 var(--dk-label) / 1.1 var(--latin, sans-serif);
}
:root[data-storybook-art="riso"] .rush2 .rz-end-title .han {
  color: #c94f3e;
  font-size: var(--dk-display);
}
:root[data-storybook-art="riso"] .rush2 .rz-end-title > span:not(.han) { color: #f2e4c2; }
:root[data-storybook-art="riso"] .rush2 .rz-endbtn {
  min-width: 154px;
  background: url("../art/minigames/riso/rush/paper-ribbon.png") center / 100% 100% no-repeat;
  color: #49382f;
  border: 0;
  border-radius: 0;
  box-shadow: 2px 4px 0 rgba(14, 6, 24, .24);
}
:root[data-storybook-art="riso"] .rush2 .rz-tour-card {
  color: #49382f;
  background: url("../art/minigames/riso/rush/paper-ribbon.png") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: 3px 5px 0 rgba(36, 19, 53, .22);
}
:root[data-storybook-art="riso"] .rush2 .rz-tour-card .tut-en { color: #49382f; }
:root[data-storybook-art="riso"] .rush2 .rz-tour-card .tut-btns button {
  color: #49382f;
  border-color: #a85b48;
  border-radius: 7px 4px 8px 5px;
}
:root[data-storybook-art="riso"] .rush2 .rz-tour-toggle { display: none; }

@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .minigame.rush2 {
    overflow-y: auto;
    padding: 5px 6px 18px;
  }
  :root[data-storybook-art="riso"] .rush2 > .mg-head {
    width: calc(100% - 64px);
    margin: 0 auto 1px 0;
    padding: 4px 7px 5px;
    transform: rotate(-.35deg);
  }
  :root[data-storybook-art="riso"] .rush2 .mg-head .mg-score { gap: 5px; }
  :root[data-storybook-art="riso"] .rush2 .rz-court {
    width: 100%;
    gap: 2px;
    padding-top: 37px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-riso-awning[data-riso-ready] {
    inset: -50px -16px auto;
    width: calc(100% + 32px);
    height: 84px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-mode {
    top: 1px;
    right: 4px;
    max-width: 64%;
    justify-content: flex-end;
    gap: 4px;
    text-align: right;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-mode button { padding: 3px 8px; }
  :root[data-storybook-art="riso"] .rush2 .rz-mode span { display: none; }
  :root[data-storybook-art="riso"] .rush2 .rz-feedback:not(:empty) {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 18px);
  }
  :root[data-storybook-art="riso"] .rush2 .rz-rail {
    min-height: 116px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-docket {
    flex: 1 1 0;
    min-width: 0;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-cust { width: 27px; height: 31px; }
  :root[data-storybook-art="riso"] .rush2 .rz-docket .dk-docket {
    width: 100%;
    min-height: 82px;
    padding: 5px 10px 10px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-slot { min-height: 44px; }
  :root[data-storybook-art="riso"] .rush2 .rz-railkey {
    min-height: 31px;
    margin-top: -6px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-hint { min-height: 31px; padding: 2px 9px 3px; }
  :root[data-storybook-art="riso"] .rush2 .rz-stall { gap: 2px; }
  :root[data-storybook-art="riso"] .rush2 :is(.rz-rack, .rz-foodline) {
    width: 100%;
    padding: 1px 4px 3px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-hooks { gap: 2px; }
  :root[data-storybook-art="riso"] .rush2 .rz-hook,
  :root[data-storybook-art="riso"] .rush2 .rz-vessel { width: 52px; min-width: 44px; }
  :root[data-storybook-art="riso"] .rush2 .rz-bench { gap: 2px; }
  :root[data-storybook-art="riso"] .rush2 .rz-foodline { flex: 1 1 auto; }
  :root[data-storybook-art="riso"] .rush2 .rz-hoppers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]) {
    flex: 1 1 0;
    min-width: 44px;
    width: auto;
    min-height: 58px;
    padding-inline: 0;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-hopper b { white-space: normal; line-height: 1.02; }
  :root[data-storybook-art="riso"] .rush2 .rz-wokwrap { flex: 0 0 44px; }
  :root[data-storybook-art="riso"] .rush2 .rz-wok { width: 44px; height: 42px; }
  :root[data-storybook-art="riso"] .rush2 .rz-trayline {
    gap: 5px;
    margin-top: 0;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-bin { width: 76px; height: 62px; }
  :root[data-storybook-art="riso"] .rush2 .rz-bin-en { white-space: normal; }
  :root[data-storybook-art="riso"] .rush2 .rz-tray {
    width: calc(100% - 81px);
    min-height: 70px;
    padding: 3px 8px 2px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tray:not(.rz-loaded) .rz-tray-slots { min-height: 30px; }
  :root[data-storybook-art="riso"] .rush2 .rz-tray-label { line-height: 1.05; }
  :root[data-storybook-art="riso"] .rush2 .rz-endsheet .dk-goal-verdict { min-height: 118px; padding: 18px 30px 20px; }
  :root[data-storybook-art="riso"] .rush2 .rz-recap { padding: 20px 18px 26px; }
  :root[data-storybook-art="riso"] .rush2 .rz-endsheet {
    position: fixed;
    inset: 0;
    z-index: 75;
    justify-content: flex-start;
    padding-top: max(62px, calc(env(safe-area-inset-top) + 54px));
    scroll-padding-top: max(62px, calc(env(safe-area-inset-top) + 54px));
    overscroll-behavior: contain;
    background: var(--riso-tooth), rgba(23, 37, 59, .94);
  }
  :root[data-storybook-art="riso"] .rush2 .rz-end-title { order: -3; }
  :root[data-storybook-art="riso"] .rush2 .rz-riso-finale-mark { order: -2; }
  :root[data-storybook-art="riso"] .rush2 .rz-endsheet .dk-goal-verdict { order: -1; }
  :root[data-storybook-art="riso"] .rush2 .rz-endbtn { min-height: 52px; }
  /* A phone has no spare lane for a paragraph beside the live shelves. Fold
     the coach to its three controls above the docket; the paper opens in place
     and scrolls when the player asks for the full note. */
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card:not(.rz-tip-open) .tut-en { display: none; }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card .rz-tour-toggle { display: inline-flex; }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card {
    position: fixed !important;
    top: max(86px, calc(env(safe-area-inset-top) + 80px)) !important;
    left: 50% !important;
    bottom: auto !important;
    width: min(310px, calc(100vw - 16px)) !important;
    height: auto !important;
    min-height: 58px;
    max-height: min(210px, 28vh) !important;
    padding: 7px 10px;
    transform: translateX(-50%);
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card.rz-tip-open .tut-en {
    display: block;
    max-height: min(112px, 15vh);
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card .tut-btns { flex-wrap: nowrap; gap: 6px; }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card .tut-btns button {
    min-height: 44px;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1.1;
  }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-mode { visibility: hidden; }
  :root[data-storybook-art="riso"] .rush2 .rz-railkey {
    z-index: 2;
    margin-bottom: 3px;
    padding-inline: 14px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-court { overflow-x: hidden; }
  /* the stage painting is viewport-tall. Zoom can make the counter taller than
     that painting, so its night-blue floor continues behind the scroll instead
     of falling through to the app's cream page colour. */
  :root[data-storybook-art="riso"] .rush2.rz-large-text { background-color: #17253b; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text > :is(.mg-head, .rz-court, .mg-prompt),
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-court > * { flex-shrink: 0; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-court {
    height: auto;
    min-height: max-content;
    padding-bottom: 132px;
  }
  /* At doubled text the title keeps its Chinese name and the moving goal. The
     redundant Latin expansion and till yield the same top row to the two fixed
     utility coins, so neither coin sits over a playable shelf. */
  :root[data-storybook-art="riso"] .rush2.rz-large-text > .mg-head {
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 104px 4px 8px !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text > .mg-head > b {
    flex: none;
    white-space: nowrap;
    font-size: 28px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-title-lat,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-goal .dk-goal-en,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-till { display: none; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text > .mg-head .mg-score {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-goal .dk-goal-zh { font-size: 28px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-goal .dk-goal-count { font-size: 24px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-mode {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    max-width: 76%;
    margin-top: -34px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-rail {
    min-height: 0;
    flex-wrap: wrap;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-docket { flex-basis: 100%; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-railkey { margin-top: 0; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hint {
    width: calc(100% - 20px);
    max-width: none;
    padding: 6px 10px 7px;
    line-height: 1.25;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hooks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text :is(.rz-hook, .rz-vessel) {
    width: 100%;
    min-width: 0;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hook .dk-caption { white-space: normal; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-bench { align-items: flex-start; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hoppers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]) {
    width: 100%;
    min-height: 92px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hopper b { overflow-wrap: anywhere; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-wokwrap { flex-basis: 54px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-wok { width: 54px; height: 54px; }
  /* The serving bench follows the hand. A classifier or food can now be held
     with its painted destination in the same viewport instead of asking for a
     several-screen drag; the extra court padding keeps the last food row from
     disappearing behind it. */
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-trayline {
    position: fixed;
    z-index: 60;
    left: 6px;
    right: 6px;
    bottom: max(6px, env(safe-area-inset-bottom));
    width: auto;
    min-height: 104px;
    align-items: stretch;
    padding: 5px 7px;
    background: rgba(23, 37, 59, .94);
    border-radius: 11px 6px 13px 8px;
    box-shadow: 0 -4px 18px rgba(14, 6, 24, .32);
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-bin {
    width: 94px;
    height: auto;
    min-height: 78px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray {
    width: calc(100% - 99px);
    min-height: 92px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray-label {
    overflow-wrap: anywhere;
    font-size: 26px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray-label .dk-caption { font-size: 20px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-bin > .han { font-size: 24px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-bin-en { font-size: 16px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card:not(.rz-tip-open) .tut-en { display: none; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card .rz-tour-toggle { display: inline-flex; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card {
    position: fixed !important;
    top: max(64px, calc(env(safe-area-inset-top) + 58px)) !important;
    left: 50% !important;
    bottom: auto !important;
    width: min(310px, calc(100vw - 16px)) !important;
    height: auto !important;
    min-height: 58px;
    max-height: min(210px, 28vh) !important;
    padding: 7px 10px;
    transform: translateX(-50%);
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card.rz-tip-open .tut-en {
    display: block;
    max-height: min(112px, 15vh);
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card .tut-btns {
    flex-wrap: nowrap;
    gap: 6px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card .tut-btns button {
    min-height: 44px;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1.1;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text.rz-tutoring .rz-mode { visibility: hidden; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-endsheet { z-index: 75; justify-content: flex-start; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap {
    width: calc(100% - 24px);
    /* the docket painting has a ragged transparent crown. Start the ink below
       it, or the heading looks detached even though its box is technically in. */
    padding: 64px 16px 24px;
  }
}

@media (max-width: 359px) {
  :root[data-storybook-art="riso"] .rush2 .rz-hook,
  :root[data-storybook-art="riso"] .rush2 .rz-vessel { width: 46px; }
  :root[data-storybook-art="riso"] .rush2 .rz-rack-hd .dk-label { display: none; }
  :root[data-storybook-art="riso"] .rush2 .rz-bin { width: 70px; }
  :root[data-storybook-art="riso"] .rush2 .rz-tray { width: calc(100% - 75px); }
}

/* Round three: enlarged Rush is a sequence of counters, not one tall poster.
   The same live-ring state that already drives the lesson decides which
   counter is in front; controls stay in DOM order and the serving bench stays
   in flow, immediately after the active source. */
@media (max-width: 720px) {
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card:not(.rz-tip-open) {
    width: auto !important;
    min-width: 128px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card:not(.rz-tip-open) :is(.tut-next,.tut-skip) { display: none; }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card.rz-tip-open { width: min(310px, calc(100vw - 16px)) !important; }

  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-court { padding-bottom: 18px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-trayline {
    position: relative;
    z-index: 2;
    inset: auto;
    width: 100%;
    min-height: 92px;
    box-sizing: border-box;
    padding: 3px 6px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring).rz-phase-vessel .rz-bench,
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring).rz-phase-food .rz-rack,
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring).rz-phase-food .rz-wokwrap,
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring).rz-phase-serve .rz-stall { display: none; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring):is(.rz-phase-vessel,.rz-phase-food,.rz-phase-serve) .rz-mode { display: none; }

  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-rack-hd {
    align-self: center;
    flex-wrap: nowrap;
    width: fit-content;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    padding: 5px 16px 7px;
    color: #49382f;
    background: url("../art/minigames/riso/rush/paper-ribbon.png") center / 100% 100% no-repeat;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-rack-hd > b { font-size: 24px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-rack-hd > .dk-label {
    font-size: 16px;
    line-height: 1.15;
    white-space: nowrap;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hook .dk-caption { display: none; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-vessel { min-height: 68px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]) {
    min-height: 72px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hopper b { font-size: 26px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-endsheet .dk-goal-verdict {
    width: calc(100% - 36px);
    min-height: 132px;
    box-sizing: border-box;
    padding: 22px 34px 24px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-endsheet .dk-goal-verdict-en,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-row > * {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-endsheet .dk-goal-verdict-en {
    font-size: 20px;
    line-height: 1.2;
  }
  /* this heading used to perch above the painted sheet at large text. Give it
     its own scrap so the ledger starts as a legible object, not loose ink. */
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-hd {
    width: fit-content;
    max-width: calc(100% - 12px);
    box-sizing: border-box;
    padding: 7px 18px 9px;
    color: #49382f;
    background: url("../art/minigames/riso/rush/paper-ribbon.png") center / 100% 100% no-repeat;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-hd > b {
    font-size: 30px;
    line-height: 1.08;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-hd > .dk-label {
    font-size: 19px;
    line-height: 1.15;
  }
}

@media (min-width: 721px) {
  /* The desktop coach owns a real strip above the game instead of hunting for
     an overlay gap among customers. The paper is fixed in that reserved strip;
     the board begins beneath it and remains untouched. */
  :root[data-storybook-art="riso"] .rush2.rz-tutoring { padding-top: 118px; box-sizing: border-box; overflow-y: auto; }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-tour-card {
    position: fixed !important;
    top: 8px !important;
    left: 50% !important;
    bottom: auto !important;
    width: min(760px, calc(100vw - 210px)) !important;
    height: 100px !important;
    max-height: 100px !important;
    box-sizing: border-box;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
  }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-tour-card .tut-en { flex: 1 1 auto; max-height: 76px; }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-tour-card .tut-btns { margin: 0; flex-wrap: nowrap; }
}

/* Rush round four: the live order and serving route stay together at enlarged
   text, while every label remains ink inside the painted prop that owns it. */
:root[data-storybook-art="riso"] .rush2 > .mg-head {
  background-color:transparent;
  background-image:url("../art/minigames/riso/rush/paper-ribbon.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  border-radius:0;
  box-shadow:3px 5px 0 rgba(41,32,51,.16);
}
:root[data-storybook-art="riso"] .rush2 :is(.rz-mode button,.rz-again,.rz-chalk) {
  background-color:transparent;
  background-image:url("../art/minigames/riso/rush/paper-ribbon.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  border:0;
  border-radius:0;
  box-shadow:2px 3px 0 rgba(36,19,53,.22);
}
:root[data-storybook-art="riso"] .rush2 .rz-tour-card .tut-btns button,
:root[data-storybook-art="riso"] .rush2 .rz-endbtn {
  background-color:transparent;
  background-image:url("../art/minigames/riso/rush/paper-ribbon.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  border:0;
  border-radius:0;
}
:root[data-storybook-art="riso"] .rush2 .rz-tray-label {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  overflow:visible;
  white-space:normal;
}
:root[data-storybook-art="riso"] .rush2:not(.rz-tutoring) .rz-docket .dk-docket::after {
  display:block;
  width:calc(100% - 10px);
  margin:4px auto -3px;
  padding-top:5px;
  border-top:1px dashed rgba(73,56,47,.28);
  color:#49382f;
  font:800 13px/1.15 var(--latin,sans-serif);
  text-align:center;
}
:root[data-storybook-art="riso"] .rush2.rz-phase-vessel:not(.rz-tutoring) .rz-docket .dk-docket::after { content:"量词 · drag vessel to tray"; }
:root[data-storybook-art="riso"] .rush2.rz-phase-food:not(.rz-tutoring) .rz-docket .dk-docket::after { content:"分量 · hold food to count"; }
:root[data-storybook-art="riso"] .rush2.rz-phase-serve:not(.rz-tutoring) .rz-docket .dk-docket::after { content:"端过去 · drag tray to this order"; }
:root[data-storybook-art="riso"] .rush2.rz-phase-wait:not(.rz-tutoring) .rz-docket .dk-docket::after { content:""; display:none; }
:root[data-storybook-art="riso"] .rush2:not(.rz-tutoring) .rz-docket .dk-docket {
  min-height:122px;
}
:root[data-storybook-art="riso"] .rush2 :is(.rz-rack-hd,.rz-hint) {
  background-color:transparent;
  background-image:url("../art/minigames/riso/rush/paper-ribbon.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  color:#49382f;
  text-shadow:none;
}
:root[data-storybook-art="riso"] .rush2 .rz-rack-hd {
  align-self:center;
  width:fit-content;
  max-width:calc(100% - 16px);
  box-sizing:border-box;
  padding:5px 16px 7px;
}
:root[data-storybook-art="riso"] .rush2 .rz-rack-hd :is(b,.dk-label),
:root[data-storybook-art="riso"] .rush2 .rz-hint :is(b,i) { color:#49382f; opacity:1; }

/* The stall is a three-step counter. Once a choice is committed, its shelf
   folds away; the next source and the painted serving tray take the stage. */
:root[data-storybook-art="riso"] .rush2.rz-phase-vessel:not(.rz-tutoring) .rz-bench,
:root[data-storybook-art="riso"] .rush2.rz-phase-food:not(.rz-tutoring) .rz-rack,
:root[data-storybook-art="riso"] .rush2.rz-phase-food:not(.rz-tutoring) .rz-wokwrap,
:root[data-storybook-art="riso"] .rush2.rz-phase-serve:not(.rz-tutoring) .rz-stall { display:none; }
:root[data-storybook-art="riso"] .rush2.rz-phase-serve #rzTray.dk-live {
  outline:0;
  box-shadow:none;
}
:root[data-storybook-art="riso"] .rush2.rz-phase-serve #rzTray.dk-live > .rz-riso-tray[data-riso-ready] {
  filter:drop-shadow(0 0 7px rgba(229,170,53,.88));
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .minigame.rush2 { overflow-x:hidden; }
  /* The collapsed coach gets a reserved paper ledge beneath the header. Its
     disclosure never sits on the exercise tag, customer, docket or replay. */
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-court { padding-top:118px; }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card {
    top:max(84px,calc(env(safe-area-inset-top) + 78px)) !important;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card:not(.rz-tip-open) {
    min-width:120px;
    min-height:50px;
    padding:4px 8px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card:not(.rz-tip-open) .tut-btns { margin:0; }

  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-railkey {
    min-height:42px;
    margin:0 0 3px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hint {
    display:flex;
    align-items:baseline;
    justify-content:center;
    flex-wrap:wrap;
    gap:2px 7px;
    width:min(330px,calc(100% - 18px));
    min-height:42px;
    padding:6px 18px 8px;
    font-size:16px;
    line-height:1.12;
    text-align:center;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hint b.han { font-size:20px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-hint i { font-size:16px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring):is(.rz-phase-food,.rz-phase-serve) .rz-railkey { display:none; }

  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-rack-hd {
    width:calc(100% - 12px);
    max-width:calc(100% - 12px);
    min-height:52px;
    padding:7px 18px 9px;
    flex-wrap:wrap;
    justify-content:center;
    gap:2px 7px;
    line-height:1.12;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring) .rz-docket .dk-docket {
    min-height:150px;
    padding-bottom:12px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring) .rz-docket .dk-docket::after {
    width:calc(100% - 18px);
    margin-top:6px;
    padding-top:6px;
    font-size:16px;
    line-height:1.18;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-rack-hd > .dk-label {
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-wrap:balance;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray {
    min-height:104px;
    padding:8px 14px 7px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray-label {
    display:flex;
    align-items:baseline;
    justify-content:center;
    flex-wrap:wrap;
    gap:3px 7px;
    padding:0 5px;
    font-size:22px;
    line-height:1.08;
    text-align:center;
    overflow-wrap:anywhere;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray-label .dk-caption {
    max-width:100%;
    font-size:16px;
    line-height:1.12;
    white-space:normal;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray-label .rz-carry {
    flex:1 0 100%;
    flex-wrap:wrap;
    gap:2px 6px;
    line-height:1.08;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray-label .rz-carry :is(.han,.dk-label) {
    font-size:16px;
    line-height:1.1;
  }

  /* A receipt is one bounded sheet. The history rows use a narrow grid so
     English wraps below the order instead of pushing ink through the edge. */
  :root[data-storybook-art="riso"] .rush2 .rz-recap,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap {
    box-sizing:border-box;
    width:calc(100% - 20px);
    padding:42px 24px 30px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap::before {
    inset:0;
    background-size:100% 100%;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row {
    display:grid;
    grid-template-columns:auto auto minmax(0,1fr);
    align-items:start;
    gap:3px 8px;
    width:100%;
    box-sizing:border-box;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row > b {
    grid-column:3;
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row > .dk-caption,
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row > :is(.rz-recap-cc,.rz-recap-walk) {
    grid-column:2 / -1;
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-row > :is(.rz-recap-mark,.rz-recap-n) { font-size:18px; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-row > b { font-size:24px; line-height:1.1; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-row > .dk-caption { font-size:17px; line-height:1.15; }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-hd {
    width:100%;
    max-width:100%;
    padding:7px 12px 9px;
    justify-content:center;
    text-align:center;
  }
}

@media (min-width:721px) {
  :root[data-storybook-art="riso"] .rush2.rz-tutoring { padding-top:130px; }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-tour-card {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    column-gap:18px;
    height:106px !important;
    max-height:106px !important;
    padding:13px 22px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-tour-card .tut-en {
    min-width:0;
    max-height:78px;
    padding-right:4px;
  }
}

/* Rush round four containment pass. Active directions live on paper, while
   the painted shelf and tray supply their own silhouettes. */
:root[data-storybook-art="riso"] .rush2:not(.rz-tutoring) .rz-docket .dk-docket::after,
:root[data-storybook-art="riso"] .rush2:not(.rz-tutoring) .rz-railkey {
  display:none;
}
:root[data-storybook-art="riso"] .rush2 .rz-tour-card {
  box-sizing:border-box;
  color:#49382f;
  background:var(--riso-tooth),#f7ecd5;
  clip-path:polygon(1% 8%,4% 1%,95% 3%,99% 10%,98% 91%,94% 99%,5% 97%,1% 89%);
}
:root[data-storybook-art="riso"] .rush2 .rz-tour-card .tut-en {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
:root[data-storybook-art="riso"] .rush2 .tut-ring {
  border:0;
  background:rgba(255,232,155,.055);
  box-shadow:0 0 24px 7px rgba(229,170,53,.34);
}
:root[data-storybook-art="riso"] .rush2 :is(.rz-rack,.rz-foodline).dk-live {
  outline:0;
  box-shadow:none;
}
:root[data-storybook-art="riso"] .rush2 :is(.rz-rack,.rz-foodline).dk-live :is(.rz-riso-rack,.rz-riso-foodline)[data-riso-ready] {
  filter:drop-shadow(0 0 6px rgba(229,170,53,.72));
}
:root[data-storybook-art="riso"] .rush2 .rz-trayline {
  padding-bottom:48px;
}
:root[data-storybook-art="riso"] .rush2 .rz-tray-label {
  position:absolute;
  z-index:5;
  top:calc(100% + 2px);
  left:50%;
  display:flex;
  align-items:baseline;
  justify-content:center;
  flex-wrap:wrap;
  gap:2px 7px;
  width:max-content;
  max-width:min(520px,calc(100vw - 126px));
  min-height:32px;
  padding:5px 17px 7px;
  color:#49382f;
  text-align:center;
  text-shadow:none;
  background-color:#f7ecd5;
  background-image:url("../art/minigames/riso/rush/paper-ribbon.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  clip-path:polygon(2% 8%,8% 1%,91% 4%,99% 12%,97% 91%,89% 99%,7% 96%,1% 84%);
  transform:translateX(-50%);
}
:root[data-storybook-art="riso"] .rush2 .rz-tray-label :is(.dk-caption,.rz-carry,.rz-carry .han,.rz-carry .dk-label) {
  color:#49382f;
  text-shadow:none;
}
:root[data-storybook-art="riso"] .rush2:not(.rz-tutoring) .rz-docket .dk-docket::after {
  box-sizing:border-box;
  white-space:normal;
  overflow-wrap:anywhere;
}

@media (max-width:720px) {
  :root[data-storybook-art="riso"] .rush2 > .mg-head,
  :root[data-storybook-art="riso"] .rush2 > .mg-head :is(.han,.dk-label,button) {
    color:#49382f;
    text-shadow:none;
  }
  :root[data-storybook-art="riso"] .rush2 > .mg-head {
    background-color:#f7ecd5;
    clip-path:polygon(1% 9%,5% 1%,94% 4%,99% 12%,98% 90%,92% 99%,6% 96%,1% 86%);
    transform:none;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-trayline {
    min-height:130px;
    padding:3px 6px 50px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tray-label {
    max-width:calc(100vw - 108px);
    padding:5px 13px 7px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-trayline {
    min-height:160px;
    padding:3px 6px 66px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray {
    min-height:96px;
    padding:8px 14px 7px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tray-label {
    top:calc(100% + 3px);
    width:max-content;
    max-width:calc(100vw - 106px);
    min-height:46px;
    padding:7px 15px 9px;
    font-size:20px;
    line-height:1.08;
  }

  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring) .rz-docket {
    height:auto;
    min-height:0;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring) .rz-docket .dk-docket {
    height:auto;
    min-height:174px;
    padding:13px 20px 23px;
    justify-content:flex-start;
    overflow:visible;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:not(.rz-tutoring) .rz-docket .dk-docket::after {
    display:none;
  }

  :root[data-storybook-art="riso"] .rush2 .rz-endsheet .dk-goal-verdict,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-endsheet .dk-goal-verdict {
    width:calc(100% - 20px);
    height:auto;
    min-height:126px;
    padding:20px 42px 24px;
    box-sizing:border-box;
    overflow:visible;
    background:var(--riso-tooth),#f7ecd5;
    border:1px solid rgba(115,76,48,.24);
    box-shadow:3px 5px 0 rgba(41,32,51,.18);
    clip-path:polygon(1% 7%,5% 1%,94% 3%,99% 8%,98% 92%,93% 99%,6% 97%,1% 91%);
  }
  :root[data-storybook-art="riso"] .rush2 .rz-endsheet .dk-goal-verdict :is(.dk-goal-verdict-zh,.dk-goal-verdict-en) {
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap {
    width:calc(100% - 16px);
    max-width:390px;
    padding:34px 34px 36px;
    box-sizing:border-box;
    background:var(--riso-tooth),#f7ecd5 !important;
    border:1px solid rgba(115,76,48,.24);
    box-shadow:4px 6px 0 rgba(41,32,51,.18);
    clip-path:polygon(1% 2%,6% 0,95% 1%,100% 3%,98% 98%,93% 100%,5% 99%,0 97%);
    overflow:visible;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap::before {
    display:none;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap-hd,
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap-hd {
    width:100%;
    max-width:100%;
    padding:0 0 8px;
    color:#49382f;
    background:none;
    text-align:center;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap {
    padding:24px 26px 30px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-endsheet .dk-goal-verdict {
    min-height:166px;
    padding:24px 40px 30px;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-recap::before {
    display:none;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text.rz-phase-serve .rz-tray-state,
  :root[data-storybook-art="riso"] .rush2.rz-large-text.rz-phase-food .rz-tray-name {
    display:none;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text:is(.rz-phase-food,.rz-phase-serve) .rz-tray-label {
    width:calc(100vw - 112px);
    max-width:calc(100vw - 112px);
  }
}

@media (min-width:721px) {
  :root[data-storybook-art="riso"] .rush2 .rz-hopper > .dk-caption {
    display:none;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap {
    width:min(620px,94%);
    padding:26px 38px 34px;
    box-sizing:border-box;
    background:var(--riso-tooth),#f7ecd5 !important;
    border:1px solid rgba(115,76,48,.24);
    box-shadow:4px 6px 0 rgba(41,32,51,.18);
    clip-path:polygon(1% 2%,6% 0,95% 1%,100% 3%,98% 98%,93% 100%,5% 99%,0 97%);
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap::before {
    display:none;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row {
    display:grid;
    grid-template-columns:auto auto minmax(0,1fr);
    align-items:start;
    gap:3px 8px;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row > b {
    grid-column:3;
    min-width:0;
    overflow-wrap:anywhere;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row > .dk-caption,
  :root[data-storybook-art="riso"] .rush2 .rz-recap-row > :is(.rz-recap-cc,.rz-recap-walk) {
    grid-column:2 / -1;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}

/* Rush final review: place the coach in the layout's reading order and keep
   transient dictionary cards out of completed or newly-entered phases. */
:root[data-storybook-art="riso"] body:has(.rush2 .rz-endsheet) #wordtip {
  display:none !important;
}
:root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-mode {
  display:none;
}
:root[data-storybook-art="riso"] .rush2 .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]):is(:hover,:focus-visible) {
  background:transparent;
  box-shadow:none;
}
:root[data-storybook-art="riso"] .rush2 .rz-hopper:has(.rz-riso-hopper > img[data-riso-ready]):is(:hover,:focus-visible) .rz-riso-hopper {
  filter:drop-shadow(0 0 6px rgba(229,170,53,.72));
}
@media (max-width:720px) {
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-tour-card,
  :root[data-storybook-art="riso"] .rush2.rz-large-text.rz-tutoring .rz-tour-card {
    top:162px !important;
    right:10px !important;
    left:auto !important;
    width:150px !important;
    min-width:150px;
    min-height:56px;
    padding:6px 10px;
    transform:none;
  }
  :root[data-storybook-art="riso"] .rush2 .rz-tour-card:not(.rz-tip-open) .rz-tour-toggle {
    width:128px;
    min-width:128px;
    min-height:46px;
    padding:7px 10px;
    box-sizing:border-box;
    white-space:nowrap;
    overflow:visible;
  }
  :root[data-storybook-art="riso"] .rush2.rz-large-text .rz-tour-card:not(.rz-tip-open) .rz-tour-toggle {
    font-size:16px;
    line-height:1.15;
  }
}
@media (min-width:721px) {
  :root[data-storybook-art="riso"] .rush2.rz-tutoring {
    padding-top:0;
  }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-tour-card {
    top:82px !important;
  }
  :root[data-storybook-art="riso"] .rush2.rz-tutoring .rz-court {
    padding-top:142px;
  }
}
