/* The question page (PLAN-html-web §4 W1): the look of GameScreen's Read question, from the tables the app's widgets take their numbers from.
   Three blocks are the generated ones of landing/css/pages.css (the tokens of both themes, the button roles, the surfaces, tags, marks and
   tracks): webapp/assemble.mjs puts them in front of this file, and `flutter test test/web_home/sync_test.dart` keeps them equal to Dart.
   Every rule below copies a widget (named at its rule), in the widget's own pixels: the text scale is --fs, which prefs() sets. */
/* pages-tokens:start */
    :root {
      color-scheme: light;
      --surface: #f4efe4;
      --on-surface: #1e1e1c;
      --on-surface-variant: #625f5a;
      --surface-container-lowest: #fffdf8;
      --surface-container-low: #fffdf8;
      --surface-container-high: #fffdf8;
      --primary: #1b2e5a;
      --on-primary: #fffdf8;
      --primary-container: #1b2e5a;
      --on-primary-container: #fffdf8;
      --secondary-container: #1b2e5a;
      --on-secondary-container: #fffdf8;
      --tertiary: #3b5a8c;
      --tertiary-container: #1b2e5a;
      --on-tertiary-container: #fffdf8;
      --outline: #1b2e5a73;
      --outline-variant: #1b2e5a2e;
      --error: #a8243a;
      --on-error: #fffdf8;
      --error-container: #f5e3e1;
      --on-error-container: #a8243a;
      --game-correct: #2f6b4f;
      --game-wrong: #a8243a;
      --game-amber: #9c5a12;
      --shop-ground: #f4efe4;
      --shop-card: #fffdf8;
      --shop-ink: #1e1e1c;
      --shop-muted: #625f5a;
      --shop-ai: #1b2e5a;
      --shop-line: #1b2e5a;
      --shop-noren: #1b2e5a;
      --shop-on-noren: #fffdf8;
      --shop-fill: #1b2e5a;
      --shop-rod: #1e1e1c;
      --shop-hanada: #3b5a8c;
      --shop-track: #1b2e5a1f;
      --shop-tint: #1b2e5a1a;
      --shop-on-ai: #fffdf8;
      --shop-shu: #b5402a;
      --shop-shu-fill: #b5402a;
      --shop-on-shu: #fffdf8;
      --shop-right: #2f6b4f;
      --shop-wrong: #a8243a;
      --shop-between: #9c5a12;
    }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        color-scheme: dark;
        --surface: #12161f;
        --on-surface: #e9e5dc;
        --on-surface-variant: #a2a6b0;
        --surface-container-lowest: #1b2130;
        --surface-container-low: #1b2130;
        --surface-container-high: #1b2130;
        --primary: #a9bbe3;
        --on-primary: #12161f;
        --primary-container: #2c4a88;
        --on-primary-container: #f4efe4;
        --secondary-container: #2c4a88;
        --on-secondary-container: #f4efe4;
        --tertiary: #8faae0;
        --tertiary-container: #2c4a88;
        --on-tertiary-container: #f4efe4;
        --outline: #a9bbe373;
        --outline-variant: #a9bbe32e;
        --error: #f07a8a;
        --on-error: #12161f;
        --error-container: #4a3544;
        --on-error-container: #f07a8a;
        --game-correct: #6cc49a;
        --game-wrong: #f07a8a;
        --game-amber: #f0a85a;
        --shop-ground: #12161f;
        --shop-card: #1b2130;
        --shop-ink: #e9e5dc;
        --shop-muted: #a2a6b0;
        --shop-ai: #a9bbe3;
        --shop-line: #a9bbe3;
        --shop-noren: #2c4a88;
        --shop-on-noren: #f4efe4;
        --shop-fill: #7c96d0;
        --shop-rod: #596070;
        --shop-hanada: #8faae0;
        --shop-track: #a9bbe32e;
        --shop-tint: #a9bbe31a;
        --shop-on-ai: #12161f;
        --shop-shu: #e8765a;
        --shop-shu-fill: #b5402a;
        --shop-on-shu: #fff8ee;
        --shop-right: #6cc49a;
        --shop-wrong: #f07a8a;
        --shop-between: #f0a85a;
      }
    }
    :root[data-theme="dark"] {
      color-scheme: dark;
      --surface: #12161f;
      --on-surface: #e9e5dc;
      --on-surface-variant: #a2a6b0;
      --surface-container-lowest: #1b2130;
      --surface-container-low: #1b2130;
      --surface-container-high: #1b2130;
      --primary: #a9bbe3;
      --on-primary: #12161f;
      --primary-container: #2c4a88;
      --on-primary-container: #f4efe4;
      --secondary-container: #2c4a88;
      --on-secondary-container: #f4efe4;
      --tertiary: #8faae0;
      --tertiary-container: #2c4a88;
      --on-tertiary-container: #f4efe4;
      --outline: #a9bbe373;
      --outline-variant: #a9bbe32e;
      --error: #f07a8a;
      --on-error: #12161f;
      --error-container: #4a3544;
      --on-error-container: #f07a8a;
      --game-correct: #6cc49a;
      --game-wrong: #f07a8a;
      --game-amber: #f0a85a;
      --shop-ground: #12161f;
      --shop-card: #1b2130;
      --shop-ink: #e9e5dc;
      --shop-muted: #a2a6b0;
      --shop-ai: #a9bbe3;
      --shop-line: #a9bbe3;
      --shop-noren: #2c4a88;
      --shop-on-noren: #f4efe4;
      --shop-fill: #7c96d0;
      --shop-rod: #596070;
      --shop-hanada: #8faae0;
      --shop-track: #a9bbe32e;
      --shop-tint: #a9bbe31a;
      --shop-on-ai: #12161f;
      --shop-shu: #e8765a;
      --shop-shu-fill: #b5402a;
      --shop-on-shu: #fff8ee;
      --shop-right: #6cc49a;
      --shop-wrong: #f07a8a;
      --shop-between: #f0a85a;
    }
/* pages-tokens:end */
/* button-roles:begin */
:is([data-role], [data-icon-role], [data-link]) { position: relative; box-sizing: border-box; border-radius: 4px; cursor: pointer; text-decoration: none; }
[data-role] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; line-height: 1.3; border: 0 solid transparent; background: transparent; }
[data-role][data-placement=bar] { min-height: 52px; padding: 0 12px; font-size: calc(15px * var(--fs)); font-weight: 800; }
[data-role][data-placement=inline] { min-height: 44px; padding: 0 14px; font-size: calc(14px * var(--fs)); font-weight: 700; }
:is([data-role=text], [data-role=destructive])[data-placement] { display: inline-flex; flex-direction: row; padding: 0 12px; font-size: calc(15px * var(--fs)); font-weight: 700; }
[data-role=main] { background: var(--shop-noren); color: var(--shop-on-noren); }
[data-role=step] { background: var(--shop-shu-fill); color: var(--shop-on-shu); }
[data-role=suggest] { background: var(--shop-noren); color: var(--shop-on-noren); }
[data-role=offer] { background: var(--shop-card); color: var(--shop-ai); border: 1px solid color-mix(in srgb, var(--shop-line) 55%, transparent); }
[data-role=outline] { color: var(--shop-ai); border: 1px solid color-mix(in srgb, var(--shop-line) 55%, transparent); }
[data-role=text] { color: var(--shop-hanada); }
[data-role=destructive] { color: var(--error); }
[data-role=destructiveConfirm] { background: var(--error); color: var(--on-error); }
[data-role] small { font-size: calc(12px * var(--fs)); font-weight: 500; opacity: 0.8; }
[data-role]:disabled { color: color-mix(in srgb, var(--shop-ink) 38%, transparent); pointer-events: none; }
[data-role=main]:disabled { background: color-mix(in srgb, var(--shop-ink) 12%, transparent); }
[data-role=step]:disabled { background: color-mix(in srgb, var(--shop-ink) 12%, transparent); }
[data-role=suggest]:disabled { background: color-mix(in srgb, var(--shop-ink) 12%, transparent); }
[data-role=offer]:disabled { background: color-mix(in srgb, var(--shop-ink) 12%, transparent); border-color: color-mix(in srgb, var(--shop-line) 20%, transparent); }
[data-role=outline]:disabled { border-color: color-mix(in srgb, var(--shop-line) 20%, transparent); }
[data-role=destructiveConfirm]:disabled { background: color-mix(in srgb, var(--shop-ink) 12%, transparent); }
[data-icon-role] { display: inline-grid; place-items: center; flex: none; border: 0 solid transparent; background: transparent; }
[data-icon-role][data-placement=bar] { width: 52px; height: 52px; }
[data-icon-role][data-placement=inline] { width: 44px; height: 44px; }
[data-icon-role=plain] { color: var(--shop-muted); }
[data-icon-role=plain][data-selected] { color: var(--shop-ai); }
[data-icon-role=tool] { color: var(--shop-ai); border: 1px solid color-mix(in srgb, var(--shop-line) 55%, transparent); }
[data-icon-role=offer] { color: var(--shop-ai); background: var(--shop-card); border: 1px solid color-mix(in srgb, var(--shop-line) 55%, transparent); }
[data-link] { display: inline-flex; align-items: center; min-height: 44px; color: var(--shop-hanada); font-weight: 700; }
:is([data-role], [data-icon-role], [data-link]).pending::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px; background: currentColor; opacity: 0.5; }
/* button-roles:end */
/* surfaces:begin */
[data-surface] { box-sizing: border-box; border-radius: 4px; }
[data-surface=card] { background: var(--shop-card); border: 1px solid color-mix(in srgb, var(--shop-line) 30%, transparent); }
[data-surface=inset] { background: var(--shop-ground); border: 1px solid color-mix(in srgb, var(--shop-line) 30%, transparent); }
[data-surface=chosen] { background: var(--shop-card); border: 1.5px solid var(--shop-ai); }
[data-surface=ringed] { background: transparent; border: 1px solid color-mix(in srgb, var(--shop-line) 45%, transparent); }
[data-surface=field] { background: var(--shop-card); border: 1px solid color-mix(in srgb, var(--shop-line) 45%, transparent); }
[data-surface=field][aria-expanded=true] { border: 1.5px solid var(--shop-ai); }
[data-surface=pending] { background: transparent; border: 1px dashed color-mix(in srgb, var(--shop-line) 45%, transparent); }
[data-surface=bar] { background: var(--shop-ground); border: 0 solid transparent; border-radius: 0; box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.14); }
[data-surface=placeholder] { background: var(--shop-track); border: 0 solid transparent; }
[data-surface=plain] { background: transparent; border: 0 solid transparent; }
[data-surface=alert] { background: var(--error-container); border: 0 solid transparent; }
[data-surface=right] { background: var(--shop-card); border: 1.5px solid var(--shop-right); }
[data-surface=segment] { background: var(--shop-noren); border: 0 solid transparent; color: var(--shop-on-noren); }
[data-surface=attention] { background: var(--shop-card); border: 1.5px solid var(--shop-shu); }
[data-surface=solid] { background: var(--shop-ai); border: 0 solid transparent; color: var(--shop-on-ai); }
[data-tag] { display: inline-flex; align-items: center; box-sizing: border-box; border-radius: 4px; border: 0 solid transparent; }
[data-tag=ai] { color: var(--shop-ai); background: transparent; border: 1px solid color-mix(in srgb, var(--shop-line) 45%, transparent); }
[data-tag=muted] { color: var(--shop-muted); background: transparent; border: 1px solid color-mix(in srgb, var(--shop-line) 30%, transparent); }
[data-tag=shu] { color: var(--shop-shu); background: transparent; border: 1px solid color-mix(in srgb, var(--shop-shu) 45%, transparent); }
[data-tag=filled] { color: var(--shop-on-ai); background: var(--shop-ai); border: 0 solid transparent; }
[data-tag][data-place=inline] { font-size: calc(10px * var(--fs)); font-weight: 800; letter-spacing: 0.8px; padding: 1px 8px; }
[data-tag][data-place=row] { font-size: calc(12px * var(--fs)); font-weight: 600; padding: 2px 9px; }
[data-tag][data-place=head] { font-size: calc(11px * var(--fs)); font-weight: 800; letter-spacing: 0.6px; padding: 4px 10px; }
[data-mark] { display: inline-grid; place-items: center; flex: none; box-sizing: border-box; border-radius: 4px; border: 0 solid transparent; }
[data-mark][data-shape=circle] { border-radius: 50%; }
[data-mark][data-size=day] { width: 8px; height: 8px; }
[data-mark][data-size=legend] { width: 11px; height: 11px; }
[data-mark][data-size=status] { width: 18px; height: 18px; }
[data-mark][data-size=statusLarge] { width: 26px; height: 26px; }
[data-mark][data-size=number] { width: 24px; height: 24px; }
[data-mark][data-size=step] { width: 28px; height: 28px; }
[data-mark][data-size=face] { width: 30px; height: 30px; }
[data-mark][data-size=tile] { width: 32px; height: 32px; }
[data-mark][data-size=lead] { width: 40px; height: 40px; }
[data-mark][data-size=key] { width: 26px; height: 18px; }
[data-mark=ring][data-tone=ai] { color: var(--shop-ai); border: 1px solid color-mix(in srgb, var(--shop-line) 45%, transparent); }
[data-mark=ring][data-tone=shu] { color: var(--shop-shu); border: 1px solid color-mix(in srgb, var(--shop-shu) 45%, transparent); }
[data-mark=ring][data-tone=muted] { color: var(--shop-muted); border: 1px solid color-mix(in srgb, var(--shop-line) 30%, transparent); }
[data-mark=filled] { background: var(--shop-ai); color: var(--shop-on-ai); }
[data-mark=chosen] { background: var(--shop-noren); color: var(--shop-on-noren); }
[data-mark=toLearn] { background: var(--shop-shu); color: var(--shop-on-shu); }
[data-mark=right] { background: var(--shop-right); }
[data-mark=wrong] { background: var(--shop-wrong); }
[data-mark=hanada] { background: var(--shop-hanada); }
[data-mark=played] { background: var(--shop-shu); }
[data-mark=dashed] { color: var(--shop-muted); border: 1px dashed color-mix(in srgb, var(--shop-line) 45%, transparent); }
[data-track] { box-sizing: border-box; overflow: hidden; background: var(--shop-track); }
[data-track=slim] { height: 4px; border-radius: 2px; }
[data-track=regular] { height: 6px; border-radius: 3px; }
[data-track=bar] { height: 10px; border-radius: 4px; }
[data-track=wide] { height: 14px; border-radius: 4px; }
[data-track] > [data-track-fill] { height: 100%; background: var(--shop-fill); }
[data-track-part=known] { background: var(--shop-ai); }
[data-track-part=likelyKnown] { background: color-mix(in srgb, var(--shop-ai) 60%, transparent); }
[data-track-part=toLearn] { background: var(--shop-shu); }
[data-track-part=fill] { background: var(--shop-fill); }
[data-track-part=rest] { background: var(--shop-track); }
[data-track-part=met] { background: color-mix(in srgb, var(--shop-line) 45%, transparent); }
[data-track-part=none] { background: color-mix(in srgb, var(--shop-line) 18%, transparent); }
[data-track-part=pick] { background: color-mix(in srgb, var(--shop-shu) 45%, transparent); }
[data-track-part=mixListenWrite] { background: color-mix(in srgb, var(--shop-ai) 62%, transparent); }
[data-track-part=mixListen] { background: color-mix(in srgb, var(--shop-ai) 45%, transparent); }
[data-track-part=mixWrite] { background: var(--shop-hanada); }
[data-track-part=mixRecall] { background: color-mix(in srgb, var(--shop-ai) 26%, transparent); }
#home .rows .mk { font-size: calc(19px * var(--fs)); min-width: calc(max(40px, var(--mk-n, 2) * 19px) * var(--fs)); color: var(--shop-ai); }
/* surfaces:end */
/* shop-faces:start */
/* The shop's display Mincho and the noren's brush (its nine characters; blocks), the Home's own files, so one cached copy serves every page
   (PLAN-shop-facelift S4). The Mincho swaps in where it lands late: the seal, the headings and the marks are the phone's only in it, and with
   `optional` a slow first load kept the system's Mincho for the visit. The Home keeps its own `optional` declaration, so its first paint never shifts. */
@font-face { font-family: ShopMincho; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/f/ShopMincho-display.5ca74dbecdce.woff2) format("woff2"); }
@font-face { font-family: NorenBrush; font-style: normal; font-weight: 400; font-display: block; src: url(/static/f/NorenBrush-noren.5e0685275464.woff2) format("woff2"); }
:root {
  --mincho: ShopMincho, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --brush: NorenBrush, "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
/* shop-faces:end */
/* stamps:start */
/* StampMark (shop/signboard.dart): a 済 in the Mincho at 46 % of the stamp, tilted; a 2 px 朱 ring where Quick earned the day's point, filled
   朱 where Full did. --stamp is its size (24 px unless the place says), --tilt its turn. */
.stampmark { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: var(--stamp, 24px); height: var(--stamp, 24px);
  border: 2px solid var(--shop-shu); border-radius: 50%; color: var(--shop-shu); font: 600 calc(var(--stamp, 24px) * .46) / 1 var(--mincho); transform: rotate(var(--tilt, -8deg)); }
.stampmark[data-filled] { border: 0; background: var(--shop-shu-fill); color: var(--shop-on-shu); }
/* WeekStamps (shop/week_stamps.dart): seven 44 px squares 6 px apart on the card's paper, a 1 px hairline at 25 %, today framed in 2 px 藍; a
   30 px stamp on a day with a point, the day's letter (12 px, muted; today 藍 and semibold) where there is none. Monday first, each stamp at its
   day's tilt. */
.wstamps { display: flex; gap: 6px; }
.wstamps > * { flex: 1 1 0; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: var(--shop-card); border: 1px solid color-mix(in srgb, var(--shop-line) 25%, transparent); font-size: calc(12px * var(--fs)); color: var(--shop-muted); --stamp: 30px; }
.wstamps > [data-today] { border: 2px solid var(--shop-ai); color: var(--shop-ai); font-weight: 600; }
.wstamps > :nth-child(1) { --tilt: -8deg; } .wstamps > :nth-child(2) { --tilt: 5deg; } .wstamps > :nth-child(3) { --tilt: -3deg; }
.wstamps > :nth-child(4) { --tilt: 9deg; } .wstamps > :nth-child(5) { --tilt: -6deg; } .wstamps > :nth-child(6) { --tilt: 4deg; } .wstamps > :nth-child(7) { --tilt: -5deg; }
/* stamps:end */
/* figures:start */
/* ShopFigure (shop/figure.dart): a figure from the animal scroll at its one size, its PNG a mask in the light theme's 藍, inset 4 px; in the dark
   theme on a slip of the light theme's paper (radius 3). Decoration only: the element is aria-hidden. */
:root { --fig-ink: #1b2e5a; --fig-paper: #f4efe4; }
.shopfig { display: block; flex: none; box-sizing: border-box; padding: 4px; pointer-events: none; }
.shopfig > i { display: block; width: 100%; height: 100%; background: var(--fig-ink); -webkit-mask: var(--fig) center / contain no-repeat; mask: var(--fig) center / contain no-repeat; }
.shopfig[data-fig=welcome] { width: 42px; height: 68px; --fig: url(/static/f/welcome.7db56940b10a.png); }
.shopfig[data-fig=celebrate] { width: 50px; height: 68px; --fig: url(/static/f/celebrate.34987dce002a.png); }
.shopfig[data-fig=stumble] { width: 73px; height: 64px; --fig: url(/static/f/stumble.062fe4cd5581.png); }
.shopfig[data-fig=rest] { width: 48px; height: 60px; --fig: url(/static/f/rest.51b86435732b.png); }
:root[data-theme=dark] .shopfig { background: var(--fig-paper); border-radius: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .shopfig { background: var(--fig-paper); border-radius: 3px; } }
/* figures:end */
/* icons:start */
/* Material's glyphs as masks in the text colour, one name each (a page's own sheet may draw a name its own way after this block). The skills'
   icons are status_squares.dart's skillIcon: Read a book, Listen headphones, Recall a keyboard, Write a pen. */
.ic::before { content: ""; display: block; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.ic { display: inline-flex; flex: none; }
.ic-back { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E"); }
.ic-next { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E"); }
.ic-more { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E"); }
.ic-vol { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E"); }
.ic-headphones { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c-4.97 0-9 4.03-9 9v7c0 1.1.9 2 2 2h4v-8H5v-1c0-3.87 3.13-7 7-7s7 3.13 7 7v1h-4v8h4c1.1 0 2-.9 2-2v-7c0-4.97-4.03-9-9-9z'/%3E%3C/svg%3E"); }
.ic-mute { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E"); }
.ic-circle { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E"); }
.ic-x { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E"); }
.ic-check { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"); }
.ic-eye { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E"); }
.ic-translate { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E"); }
.ic-replay { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z'/%3E%3C/svg%3E"); }
.ic-keyboard { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z'/%3E%3C/svg%3E"); }
.ic-trend { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E"); }
.ic-info { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E"); }
.ic-touch { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.19 12.42 14.95 10.83C16.22 9.8 17.06 8.25 17.06 6.52 17.06 3.47 14.58.98 11.58.98 8.53.98 6.05 3.47 6.05 6.52 6.05 8.62 7.31 10.5 9.05 11.39V14.67C6.94 14.2 7.03 14.2 6.8 14.2 6.28 14.2 5.77 14.44 5.39 14.81L3.98 16.22 9.09 21.33C9.52 21.75 10.12 21.98 10.73 21.98H17.06C18 21.98 18.84 21.28 19.03 20.34L19.83 15.61C20.02 14.3 19.36 13.03 18.19 12.42ZM17.86 15.28 17.06 20.02H10.73C10.64 20.02 10.55 19.97 10.5 19.92L6.8 16.22 11.06 17.11V6.52C11.06 6.23 11.3 6 11.58 6 11.86 6 12.05 6.23 12.05 6.52V12.52H13.83L17.3 14.25C17.67 14.44 17.91 14.86 17.86 15.28ZM8.06 6.52C8.06 4.55 9.66 3 11.58 3 13.5 3 15.05 4.55 15.05 6.52 15.05 7.45 14.67 8.3 14.06 8.95V6.52C14.06 5.11 12.94 3.98 11.58 3.98 10.17 3.98 9.05 5.11 9.05 6.52V8.95C8.44 8.3 8.06 7.45 8.06 6.52Z'/%3E%3C/svg%3E"); }
.ic-star { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E"); }
.ic-subject { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z'/%3E%3C/svg%3E"); }
.ic-text { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z'/%3E%3C/svg%3E"); }
.ic-open { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.6l-9.8 9.8 1.4 1.4L19 6.4V10h2V3z'/%3E%3C/svg%3E"); }
.ic-person { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.ic-book { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z'/%3E%3C/svg%3E"); }
.ic-edit { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E"); }
/* arrow_forward_rounded: Write's build steps between two squares, and Settings' rows. */
.ic-arrow { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.02 12.98H16.17L11.3 17.86C10.92 18.28 10.92 18.89 11.3 19.31C11.67 19.69 12.33 19.69 12.7 19.31L19.31 12.7C19.69 12.33 19.69 11.67 19.31 11.3L12.7 4.69C12.33 4.31 11.67 4.31 11.3 4.69C10.92 5.11 10.92 5.72 11.3 6.09L16.17 11.02H5.02C4.45 11.02 3.98 11.44 3.98 12C3.98 12.56 4.45 12.98 5.02 12.98Z'/%3E%3C/svg%3E"); }
/* icons:end */
/* lines:start */
/* The hairline at the weights the widgets draw it (shop.line at 18, 25, 30, 45 %), for every page's own rules. */
:root {
  --line18: color-mix(in srgb, var(--shop-line) 18%, transparent);
  --line25: color-mix(in srgb, var(--shop-line) 25%, transparent);
  --line30: color-mix(in srgb, var(--shop-line) 30%, transparent);
  --line45: color-mix(in srgb, var(--shop-line) 45%, transparent);
}
/* lines:end */
/* mark-content:start */
/* What AppMark (surfaces.dart) puts inside a mark of the generated [data-mark] rules: an icon at 78 % of the mark's shorter side (markIconFraction),
   or text at 50 % (markTextFraction), weight 800, in the mark's ink. */
[data-mark][data-size=day] { --m: 8px; } [data-mark][data-size=legend] { --m: 11px; } [data-mark][data-size=status] { --m: 18px; }
[data-mark][data-size=statusLarge] { --m: 26px; } [data-mark][data-size=number] { --m: 24px; } [data-mark][data-size=step] { --m: 28px; }
[data-mark][data-size=face] { --m: 30px; } [data-mark][data-size=tile] { --m: 32px; } [data-mark][data-size=lead] { --m: 40px; } [data-mark][data-size=key] { --m: 18px; }
[data-mark] > .ic::before { width: calc(var(--m, 24px) * .78); height: calc(var(--m, 24px) * .78); }
[data-mark] > b { font-size: calc(var(--m, 24px) * .5); font-weight: 800; line-height: 1; }
/* mark-content:end */
/* squares:start */
/* StatusSquares (status_squares.dart): a word's four skills in the order Read, Listen, Recall, Write, each a mark with the skill's icon (filled 藍
   where learned, a 朱 ring where it is to learn, a muted ring where it is not met, dashed where it cannot be asked), size/6 apart. Markup:
   <span class="squares4" role="img" aria-label="…"><i data-mark=… data-tone=… data-size=status><span class="ic ic-book"></span></i>…</span>;
   squares4Mark(state) in a page's script gives the mark's attributes. The legend's squares are the same marks at data-size=legend, no icon. */
.squares4 { display: inline-flex; flex: none; align-items: center; gap: calc(var(--m, 18px) / 6); --m: 18px; }
.squares4[data-size=legend] { --m: 11px; }
/* squares:end */
/* build-square:start */
/* BuildSquare (ya_ui build_answer.dart), drawn by webapp/js/page-build-square.js: the Write board's square (176 px at most, 120 px at least) with its
   boxes, dashed until one is picked, the active one in 藍, a wrong pick in the miss colour; and BuildStepsPicture (build_steps_picture.dart), Write's
   introduction: its squares at 80 px with the part (16 px) over an 18 px arrow, 2 px each side, in the primary between two, the row scaled down to
   fit its box as a FittedBox (scaleDown): every length is a number of --u, at most 1 px, the box's width over the row's full width (--n). */
.bsq { --side: min(176px, max(120px, calc(100vw - 120px))); position: relative; align-self: center; width: var(--side); height: var(--side); background: var(--shop-card); border: 1px solid var(--line30); border-radius: 4px; }
.bsq > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bsq .hit { position: absolute; display: block; min-width: 0; padding: 0; border-radius: 3px; }
.bsq button.hit:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.bsq .bx > rect { fill: none; stroke: color-mix(in srgb, var(--shop-ai) 50%, transparent); stroke-width: .9; stroke-dasharray: 2.6 1.95; }
.bsq .bx[data-frame] > rect { fill: var(--shop-card); }
.bsq .bx[data-active] > rect { fill: color-mix(in srgb, var(--shop-ai) 5%, transparent); stroke: var(--shop-ai); stroke-width: 1.3; stroke-dasharray: none; }
.bsq .bx[data-state=right] > rect { stroke-dasharray: none; }
.bsq .bx[data-state=wrong] > rect { fill: color-mix(in srgb, var(--game-wrong) 8%, transparent); stroke: var(--game-wrong); stroke-dasharray: none; }
.bsq .st { fill: none; stroke: var(--shop-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
/* The wrong part drawn in its box is a nested svg of the part's own viewBox: --k (page-build-square.js) is the square's units per unit of the part, so its stroke is the right boxes' 3.2. */
.bsq .miss { overflow: visible; }
.bsq .miss .st { stroke: var(--game-wrong); stroke-width: calc(3.2px / var(--k, 1)); }
.bsteps { container-type: inline-size; align-self: stretch; width: 100%; margin-top: 4px; --u: min(1px, 100cqw / var(--n, 1)); }
.bsteps .brow { display: flex; align-items: center; justify-content: center; }
.bsteps .bsq { flex: none; align-self: center; }
.bstep { display: flex; flex: none; flex-direction: column; align-items: center; padding: 0 calc(2 * var(--u)); color: var(--primary); }
.bstep .bpart { font-size: calc(16 * var(--u)); font-weight: 400; line-height: 1.1; }
.bstep .ic::before { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
/* build-square:end */

/* The faces the HTML Home loads (PLAN-html-web §2.11, D5): the learner's words in the Noto subset, or the Mincho when the Japanese type says
   so; the shop's display Mincho for the marks. The files are Flutter's, named from the root: a stylesheet's relative URLs resolve against the stylesheet, not the page's <base>. */
/* page-faces:start */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Me4GZLCzYlKw.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans JP"; font-weight: 400; font-display: swap; src: url(/static/f/NotoSansJP-Regular-subset.14c7f2811a16.ttf); }
@font-face { font-family: "Noto Sans JP"; font-weight: 700; font-display: swap; src: url(/static/f/NotoSansJP-Bold-subset.a41ac6094236.ttf); }
/* page-faces:end */
@font-face { font-family: CardMincho; font-weight: 400; font-display: swap; src: url(/static/f/CardMincho-Regular-subset.c9437d85c41d.ttf); }
@font-face { font-family: CardMincho; font-weight: 700; font-display: swap; src: url(/static/f/CardMincho-Bold-subset.f5cb55f3d55a.ttf); }

/* page-root:start */
:root {
  --fs: 1; --colw: 620px;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  --jf: "Noto Sans JP";
  color-scheme: light dark;
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }
/* page-root:end */
:root[data-jtype=mincho] { --jf: CardMincho; }

/* page-base:start */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--shop-ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--shop-ground); color: var(--on-surface);
  font: calc(15px * var(--fs)) / 1.45 Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
:where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
:where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button[disabled], [aria-disabled=true] { cursor: default; }
[hidden] { display: none !important; }
[lang=ja] { font-family: var(--jf), var(--ja); }
:focus-visible { outline: 2px solid var(--shop-ai); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mj { font-family: var(--mincho); font-weight: 600; }
.eyebrow { font-size: calc(11px * var(--fs)); letter-spacing: 1.3px; line-height: 1.3; color: var(--shop-hanada); }
.muted { color: var(--shop-muted); }
/* page-base:end */


/* page-frame:start */
/* NorenRod (shop/noren.dart): the rod across the width, 3 px, 4 on the wide layout. */
#rod { height: 3px; background: var(--shop-rod); }
#app { display: flex; flex-direction: column; min-height: calc(100vh - 3px); min-height: calc(100dvh - 3px); }
#page { flex: 1 1 auto; width: 100%; max-width: var(--colw); margin: 0 auto; padding: 0 16px 18px; }
@media (min-width: 600px) { #rod { height: 4px; } }
/* page-frame:end */

/* question-bar:start */
/* _QuestionBar (game_screen.dart): 52 px, 56 wide; the way home, the count in what is left, the speaker with its speed, the ⋯. */
#bar { display: flex; align-items: center; height: 52px; }
@media (min-width: 600px) { #bar { height: 56px; } }
#bar .home { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 4px; color: var(--shop-hanada); }
#bar .home .wide { display: none; }
@media (min-width: 600px) {
  #bar .home { padding: 0 12px; gap: 6px; font-size: calc(15px * var(--fs)); font-weight: 700; }
  #bar .home .wide { display: inline; }
  #bar .home .ic::before { width: 20px; height: 20px; }
}
#bar .count { flex: 1 1 auto; min-width: 0; padding: 0 8px; display: flex; flex-direction: column; justify-content: center; }
#bar .count-lines { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 100%; }
#bar .count-lines.btn { min-height: 44px; justify-content: center; border-radius: 4px; width: 100%; }
#bar .cl { font-size: calc(11px * min(var(--fs), 1.3)); line-height: 1.27; letter-spacing: .44px; color: var(--shop-muted); white-space: nowrap; }
#bar .cn { font-size: calc(16px * min(var(--fs), 1.3)); line-height: 1.25; font-weight: 600; color: var(--shop-ai); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
#bar .cn .ic::before { width: 12px; height: 12px; color: var(--shop-muted); }
#bar .seg { display: flex; gap: 3px; height: 4px; margin-top: 4px; }
#bar .seg > i { display: block; flex-grow: var(--w); flex-basis: 0; background: var(--shop-track); border-radius: 2px; overflow: hidden; }
#bar .seg > i > b { display: block; height: 100%; width: calc(var(--f) / var(--w) * 100%); background: var(--shop-fill); }
#bar .tip { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); margin-top: 6px; max-width: min(320px, 90vw); padding: 8px 12px; border-radius: 4px; background: var(--shop-ink); color: var(--shop-ground); font-size: calc(13px * var(--fs)); line-height: 1.35; text-align: left; }
#bar .count { position: relative; }
/* SpeedSwitch (speed_switch.dart): one outlined strip, 36 px, the speaker then 1× and 0.7×, the chosen one filled. */
#bar .speed { flex: none; display: flex; align-items: stretch; height: 36px; margin: 0 4px; border: 1px solid var(--line45); border-radius: 4px; background: var(--shop-card); overflow: hidden; }
#bar .speed > button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 0 9px; color: var(--primary); font-size: 14px; font-weight: 700; }
#bar .speed > button + button { border-left: 1px solid var(--line45); }
#bar .speed > button[aria-pressed=true] { background: var(--primary); color: var(--on-primary); }
#bar .speed .ic::before { width: 20px; height: 20px; }
#bar .more { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; color: var(--shop-ai); }
#bar .soundmenu { position: absolute; z-index: 6; right: 0; top: 100%; width: 284px; max-width: 100%; padding: 10px 16px 12px; border: 1px solid var(--line45); border-radius: 4px; background: var(--shop-card); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
#bar .soundmenu .eb { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--primary); margin-bottom: 8px; }
#bar .soundmenu .row { display: flex; align-items: center; gap: 12px; }
#bar .soundmenu .row > div { flex: 1; }
#bar .soundmenu b { display: block; font-size: 15px; font-weight: 700; }
#bar .soundmenu small { display: block; font-size: 12px; line-height: 1.45; color: var(--shop-muted); }
#bar .soundmenu [role=switch] { flex: none; position: relative; width: 52px; height: 32px; border-radius: 16px; border: 2px solid var(--line45); background: transparent; }
#bar .soundmenu [role=switch]::after { content: ""; position: absolute; top: 5px; left: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--line45); }
#bar .soundmenu [role=switch][aria-checked=true] { background: var(--primary); border-color: var(--primary); }
#bar .soundmenu [role=switch][aria-checked=true]::after { left: 25px; background: var(--on-primary); }
#bar .tools { position: relative; display: flex; align-items: center; }
/* question-bar:end */

/* noren-header:start */
/* NorenHeader (shop/noren.dart) on a page with no question bar: under the rod a 46 px row (60 from 600 px), 12 px in at the left and 4 at the right;
   the three panels (48x34, the brush at 18, 5 px apart; 64x44 at 24, 6 apart, wide) take half the room the actions leave, never less than their
   own; the panels and the actions hang from the top of the band they make. */
#bar:has(> .noren) { height: 46px; padding: 0 4px 0 12px; margin: 0 -16px; align-items: flex-start; justify-content: space-between; }
#bar > .noren { flex: 0 0 max(154px, calc((100% - 88px) / 2)); display: flex; gap: 5px; margin-top: 1px; }
#bar > .noren > i { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 34px; font-style: normal; background: var(--shop-noren); color: var(--shop-on-noren);
  font-family: var(--brush); font-size: 18px; line-height: 1; box-shadow: 0 2px 0 color-mix(in srgb, var(--shop-noren) 25%, transparent); }
#bar > .ntools { display: flex; align-items: center; }
#bar > .ntools .ic::before { width: 22px; height: 22px; }
@media (min-width: 600px) {
  #bar:has(> .noren) { height: 60px; padding: 0 16px; }
  #bar > .noren { flex-basis: max(204px, calc((100% - 88px) / 2)); gap: 6px; margin-top: 8px; }
  #bar > .noren > i { height: 44px; font-size: 24px; }
  #bar > .ntools { margin-top: 8px; }
}
/* noren-header:end */

/* page-body:start */
#body { padding-top: 8px; outline: none; }
/* Before the first view (the open waits for the content's rest when a question is stored): the content wait's spinner and words. */
#loading { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 10px 16px; }
#app[data-state=loading] { display: none; }
/* page-body:end */

/* tag-card:start */
/* Tag (shop/slip.dart): a 236 px tanzaku on a 1 px thread, a small hole, the word in the learner's face at 62 px shrunk to fit, the kind at its foot. */
.tagwrap { display: flex; flex-direction: column; align-items: center; }
.tagwrap .thread { width: 1px; height: 22px; background: var(--shop-rod); }
.tagbox { width: 236px; max-width: 100%; padding: 10px 16px 14px; background: var(--shop-card); border: 1px solid var(--line30); box-shadow: 0 1px 0 color-mix(in srgb, var(--shop-line) 25%, transparent); display: flex; flex-direction: column; align-items: center; }
.tagbox .hole { width: 9px; height: 9px; border-radius: 50%; background: var(--shop-ground); border: 1.5px solid var(--shop-ai); margin-bottom: 14px; }
.tagbox .tw { padding-top: 4px; max-width: 100%; font-size: min(62px, calc(204px / var(--n, 1))); line-height: 1; font-weight: 700; color: var(--shop-ink); white-space: nowrap; }
.tagbox .kind { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; max-width: 100%; }
.tagbox .kind > span { font-size: calc(12px * var(--fs)); letter-spacing: 1.4px; color: var(--shop-hanada); }
.tagbox .note { margin-top: 6px; font-size: calc(12.5px * var(--fs)); font-weight: 600; color: var(--on-surface-variant); text-align: center; }
.fellback { margin-top: 8px; font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); text-align: center; }
.hintslot { margin-top: 9px; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.hintslot .reading { font-size: calc(18px * var(--fs)); font-weight: 600; color: var(--on-surface-variant); }
.missnote { margin-top: 6px; font-size: calc(11px * var(--fs)); line-height: 1.3; color: var(--on-surface-variant); text-align: center; }
.missnote[data-room] { visibility: hidden; }
.qface { padding-bottom: 4px; }
/* tag-card:end */

/* two-faces:start */
/* TwoFaces (two_faces.dart): both laid out in one cell, the card as tall as the taller; the one not shown keeps its size. */
.faces { display: grid; }
.faces > * { grid-area: 1 / 1; transition: opacity .2s ease-out; }
.faces > [data-off] { visibility: hidden; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .faces > * { transition: none; } }
/* two-faces:end */

/* seal-and-tags:start */
.seal { position: absolute; top: -14px; right: 4px; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 3px; transform: rotate(-8deg); pointer-events: none; }
.seal > b { width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; padding: 2px; border: 3px solid var(--tone); border-radius: 4px; background: color-mix(in srgb, var(--shop-card) 90%, transparent); color: var(--tone); font-family: var(--mincho); font-weight: 700; font-size: 26px; line-height: 1; white-space: nowrap; }
.seal > b[data-long] { font-size: 18px; }
.seal > i { font-style: normal; font-size: 11px; letter-spacing: 1.1px; font-weight: 600; color: var(--tone); white-space: nowrap; }
.seal[data-tone=right] { --tone: var(--shop-right); } .seal[data-tone=wrong] { --tone: var(--shop-wrong); } .seal[data-tone=between] { --tone: var(--shop-between); }

[data-tag] .ic::before { width: 12px; height: 12px; }
button[data-tag] { gap: 4px; }
/* seal-and-tags:end */

/* answer-card:start */
/* SentenceFace and WordFace (sentence_face.dart). */
/* The answer face is plain flow, not a flex box: a flex box would step its whole width around the seal's float (.seal-gap), and the hairline
   and the foot would stop short of the slip's right edge. In flow only the lines beside the seal wrap short, as SealZone does in Flutter. */
.af > .pitch { display: flex; }
.askline { margin-top: 10px; font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
.eng { margin-top: 2px; font-size: calc(14px * var(--fs)); line-height: 1.35; color: var(--on-surface-variant); }
.eng.mean { font-style: italic; }
.eng + .eng { margin-top: 0; }
/* answer-card:end */
/* OtherReadCard (other_read_card.dart): the eyebrow at 13 muted, 10 px over the sentence at 24/1.6; the instruction 8 px under it; turned, the English
   at 15, 12 px, the word on one line: the surface at 17 w800, its reading muted, the gloss, at 14. */
.af.other .oeb { font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); margin-bottom: 10px; }
.af.other .sent { line-height: 1.6; }
.af.other .oline { margin: 8px 0 4px; font-size: calc(13px * var(--fs)); line-height: 1.35; color: var(--on-surface-variant); }
.af.other .oeng { margin-top: 6px; font-size: calc(15px * var(--fs)); line-height: 1.35; }
.af.other .oword { margin-top: 12px; font-size: calc(14px * var(--fs)); }
.af.other .oword b { font-size: calc(17px * var(--fs)); font-weight: 800; }
.af.other .oword .ord { font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
/* answer-card-more:start */
.showeng { margin-top: 2px; margin-left: -12px; display: inline-flex; vertical-align: top; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font-size: calc(15px * var(--fs)); font-weight: 700; color: var(--shop-hanada); border-radius: 4px; }
.showeng .ic::before { width: 18px; height: 18px; }
/* AnswerMeaning's row: Word meaning and Sentence meaning side by side, their words 16 px apart (each link's 12 px padding, less the next one's
   -12 px margin, plus this gap), wrapping on a narrow card. */
.showrow { display: flex; flex-wrap: wrap; column-gap: 4px; }
.forms { margin-top: 6px; font-size: calc(13px * var(--fs)); line-height: 1.35; color: var(--on-surface-variant); }
.wf-word { font-size: min(40px, calc((min(100vw, var(--colw)) - 150px) / var(--n, 1))); line-height: 1.15; font-weight: 700; color: var(--on-surface); white-space: nowrap; }
.wf-reading { font-size: 20px; line-height: 1.3; font-weight: 700; padding: .175em 0; color: var(--on-surface); }
.wf-gloss { margin-top: 4px; font-size: calc(15px * var(--fs)); line-height: 1.35; font-weight: 600; }
.foot { margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--line18); display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; }
.foot button { font-size: 11px; color: var(--on-surface-variant); min-height: 24px; }
.foot .credit { text-decoration: underline; text-decoration-color: var(--line30); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-align: left; }
.foot .wp { color: var(--shop-hanada); font-weight: 600; white-space: nowrap; margin-left: auto; }
.stylenote { padding: 8px 0; }
.stylenote .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stylenote .pill { display: inline-flex; padding: 2px 9px; border: 1px solid var(--line30); border-radius: 4px; font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--shop-muted); }
.stylenote .line { margin-top: 6px; font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); }
.stylenote .line button { font-weight: 800; color: var(--primary); }
.stylenote .alt { margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--shop-hanada); }
/* answer-card-more:end */

/* kanji-tiles:start */
/* KanjiTiles (kanji_tiles.dart): each kanji at 30 px over its meaning, a button to its page; every tile of a row one width, 104 px where a kanji
   was checked. The answered slip's figure (.shopfig, PLAN-figures §3.4) stands at the row's right end, centred on the row, only where the tiles
   form one row and leave its box and ShopFigure.air (16 px) beside them: the room is the row's own width (a container), never the figure's. */
.ktiles { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; container: ktiles / inline-size; }
.ktile { position: relative; display: flex; flex-direction: column; align-items: stretch; width: 96px; }
.ktile[data-checked], .ktiles[data-checked] > .ktile { width: 104px; }
.ktiles > .shopfig { display: none; margin-left: auto; align-self: center; }
@container ktiles (min-width: 185px) { .ktiles[data-n="1"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 162px) { .ktiles[data-n="1"] > .shopfig[data-fig=celebrate] { display: block; } }
@container ktiles (min-width: 289px) { .ktiles[data-n="2"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 266px) { .ktiles[data-n="2"] > .shopfig[data-fig=celebrate] { display: block; } }
@container ktiles (min-width: 393px) { .ktiles[data-n="3"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 370px) { .ktiles[data-n="3"] > .shopfig[data-fig=celebrate] { display: block; } }
@container ktiles (min-width: 497px) { .ktiles[data-n="4"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 474px) { .ktiles[data-n="4"] > .shopfig[data-fig=celebrate] { display: block; } }
@container ktiles (min-width: 193px) { .ktiles[data-checked][data-n="1"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 170px) { .ktiles[data-checked][data-n="1"] > .shopfig[data-fig=celebrate] { display: block; } }
@container ktiles (min-width: 305px) { .ktiles[data-checked][data-n="2"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 282px) { .ktiles[data-checked][data-n="2"] > .shopfig[data-fig=celebrate] { display: block; } }
@container ktiles (min-width: 417px) { .ktiles[data-checked][data-n="3"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 394px) { .ktiles[data-checked][data-n="3"] > .shopfig[data-fig=celebrate] { display: block; } }
@container ktiles (min-width: 529px) { .ktiles[data-checked][data-n="4"] > .shopfig[data-fig=stumble] { display: block; } }
@container ktiles (min-width: 506px) { .ktiles[data-checked][data-n="4"] > .shopfig[data-fig=celebrate] { display: block; } }
/* Every tile of a row is as tall as the tallest (KanjiTiles, D2): the box itself
   grows, lines from the top. The mark is `data-kmark`, not the shared `data-mark`
   role, whose fill would show under a shorter box. */
.ktile > button, .ktile > .kt { flex: 1 1 auto; min-height: 72px; padding: 6px; display: flex; flex-direction: column; align-items: center; background: var(--shop-card); border: 1px solid var(--line30); border-radius: 4px; text-align: center; }
.ktile[data-kmark=right] > button, .ktile[data-kmark=right] > .kt { border: 1.5px solid var(--shop-right); }
.ktile .g { font-size: calc(30px * var(--fs)); line-height: 1.2; font-weight: 500; }
.ktile .g[data-role=meaning], .ktile .m[data-role=meaning] { color: var(--shop-hanada); }
.ktile .g[data-role=sound], .ktile .m[data-role=sound] { color: var(--shop-shu); }
.ktile .m { margin-top: 2px; font-size: calc(12px * var(--fs)); line-height: 1.25; color: var(--on-surface-variant); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ktile .m[data-sound] { font-style: italic; }
.ktile .rd { margin-top: 2px; font-size: calc(11px * var(--fs)); line-height: 1.25; color: var(--on-surface-variant); }
.ktile .mk { position: absolute; top: 3px; right: 3px; pointer-events: none; }
.ktile .mk .ic::before { width: 16px; height: 16px; }
.ktile[data-kmark=right] .mk { color: var(--game-correct); } .ktile[data-kmark=wrong] .mk { color: var(--game-wrong); }
.ktile .pick { margin-top: 3px; font-size: calc(11px * var(--fs)); line-height: 1.25; color: var(--on-surface-variant); text-align: center; }
/* kanji-tiles:end */

/* pitch-accent:start */
/* PitchAccent (pitch_accent.dart), as pages.css draws it. */
.pitch { display: inline-flex; align-items: stretch; font-size: 20px; font-weight: 700; line-height: 1.3; --s: .1em; --c: var(--primary); color: var(--on-surface); }
.pitch.big { font-size: 40px; }
.pitch.compact { line-height: 1; --s: .0625em; font-size: 20px; }
.pitch .hi, .pitch .lo, .pitch .tail { padding: .175em 0; }
.pitch .hi { box-shadow: inset 0 var(--s) 0 var(--c); }
.pitch .lo { box-shadow: inset 0 calc(-1 * var(--s)) 0 var(--c); }
.pitch .hi.turn { box-shadow: inset 0 var(--s) 0 var(--c), inset var(--s) 0 0 var(--c); }
.pitch .lo.turn { box-shadow: inset 0 calc(-1 * var(--s)) 0 var(--c), inset var(--s) 0 0 var(--c); }
.pitch .tail { width: .45em; box-shadow: inset var(--s) 0 0 var(--c), inset 0 calc(-1 * var(--s)) 0 var(--c); }
.pitch .pn { align-self: flex-end; margin-left: 8px; padding-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--on-surface-variant); }
/* pitch-accent:end */

/* options:start */
/* Fuda and MenuBoard (shop/slip.dart, option_button.dart, option_visuals.dart): the options, by their state. */
.menu { margin-top: 16px; background: var(--shop-card); border: 1.5px solid var(--shop-ai); border-radius: 4px; }
.menu > * + * { border-top: 1px solid var(--line18); }
.fuda { position: relative; display: flex; align-items: center; width: 100%; gap: 14px; min-height: 52px; padding: 4px 14px; background: transparent; color: var(--on-surface); text-align: left; }
.fuda .num { flex: none; min-width: 1ch; font-size: calc(12px * var(--fs)); color: var(--shop-muted); }
@media (min-width: 720px) {
  .fuda .num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid color-mix(in srgb, var(--shop-line) 40%, transparent); border-radius: 4px; font-size: 11px; }
}
.fuda .num[data-n]::before, .fuda .num .n0::before, .fuda .num .nq::before { content: attr(data-n); }
.fuda .num .n0 { display: none; }
@media (min-width: 720px) { .fuda .num .n0 { display: inline; } .fuda .num .nq { display: none; } }
.fuda .lab { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fuda .tx { font-size: calc(17px * var(--fs)); line-height: 1.25; font-weight: 500; }
.fuda .nt { margin-top: 1px; font-size: calc(12px * var(--fs)); line-height: 1.3; font-weight: 500; color: var(--on-surface-variant); }
.fuda .slot { flex: none; width: 32px; display: flex; flex-direction: column; align-items: flex-end; }
.fuda .slot .ic::before { width: 26px; height: 26px; }
.fuda .slot .tg::before { content: attr(data-n); }
.fuda .slot .tg { margin-top: 0; font-size: 9.5px; line-height: 1; font-weight: 700; letter-spacing: .6px; color: var(--on-surface-variant); }
.fuda[data-state=rightNotPicked] .slot .tg { letter-spacing: 0; white-space: nowrap; }
.fuda[data-state=correct]::after, .fuda[data-state=lockedPick]::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1.5px solid var(--shop-right); }
.fuda[data-state=lockedPick]::after { border-color: var(--primary); }
.fuda[data-state=correct] .slot, .fuda[data-state=rightNotPicked] .slot { color: var(--game-correct); }
.fuda[data-state=wrongPick] { background: var(--surface); color: var(--on-surface-variant); }
.fuda[data-state=wrongPick] .slot { color: var(--game-wrong); }
.fuda[data-state=quiet], .fuda[data-state=lockedOther] { color: var(--on-surface-variant); }
.fuda[data-state=lockedOther] { opacity: .8; }
.fuda[data-state=lockedPick] { color: var(--shop-ai); }
.fuda[data-state=rightNotPicked] { color: var(--on-surface); }
.fuda[data-tap=none] { cursor: default; }
.fuda[data-row=dk] .tx { font-style: italic; color: var(--shop-muted); }
.fuda[data-row=dk] .num { color: var(--shop-muted); }
/* options:end */
/* reading-options:start */
/* ReadingOptions (reading_options.dart): two-up tiles of their own, 1 px frames. */
.rgrid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 319px) { .rgrid { grid-template-columns: 1fr; } }
.rgrid .fuda { min-height: 58px; padding: 0 14px; gap: 12px; background: var(--shop-card); border: 1px solid var(--primary); border-radius: 4px; }
.rgrid .fuda .tx { font-size: calc(22px * var(--fs)); line-height: 1.2; font-weight: 700; }
.rgrid .fuda .slot { width: auto; padding-left: 6px; }
.rgrid .fuda .slot .ic::before { width: 22px; height: 22px; }
.rgrid .fuda[data-state=correct]::after, .rgrid .fuda[data-state=lockedPick]::after { display: none; }
.rgrid .fuda[data-state=correct], .rgrid .fuda[data-state=lockedPick] { border-width: 1.5px; border-color: var(--shop-right); }
.rgrid .fuda[data-state=lockedPick] { border-color: var(--primary); }
.rgrid .fuda[data-state=quiet], .rgrid .fuda[data-state=rightNotPicked] { border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.rgrid .fuda[data-state=lockedOther] { border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.rgrid .fuda[data-state=wrongPick] { border-color: color-mix(in srgb, var(--on-surface) 35%, transparent); background: var(--surface); }
.rgrid .fuda .nt { font-size: calc(12px * var(--fs)); }
.below { text-align: center; }
.placement { margin-top: 12px; font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); text-align: center; }
.kfree { display: flex; justify-content: center; margin-top: 2px; }
.keyhint { display: none; margin-top: 16px; text-align: center; font-size: 12px; color: var(--shop-muted); }
@media (min-width: 720px) { .keyhint { display: block; } }
/* reading-options:end */

/* kanji-check:start */
/* KanjiCheckBoard (kanji_check_board.dart). */
.kword { display: flex; justify-content: center; align-items: center; font-size: min(62px, calc(260px / var(--n, 1))); line-height: 1; font-weight: 700; color: var(--shop-ink); white-space: nowrap; }
.kword .bx { padding: 5px 5px; margin: 0 1px; border: 1.5px solid var(--shop-ai); border-radius: 4px; background: var(--shop-card); }
.kword .pl { padding: 5px 1px; }
.kask { margin-top: 14px; text-align: center; font-size: calc(13px * var(--fs)); font-weight: 600; letter-spacing: 1.3px; color: var(--shop-hanada); }
/* kanji-check:end */

/* next-bar:start */
/* The Next bar (next_bar.dart): the surface's own bar, at most 620 px, the lines above its row. */
#nextbar { position: sticky; bottom: 0; z-index: 3; }
#nextbar .in { width: 100%; max-width: var(--colw); margin: 0 auto; padding: 9px 20px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
#nextbar .line { margin-bottom: 8px; font-size: calc(13px * var(--fs)); line-height: 1.35; font-weight: 500; color: var(--on-surface-variant); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#nextbar .line.strong { font-weight: 700; color: var(--on-surface); }
#nextbar .line.ask { color: var(--on-surface); font-weight: 400; display: block; }
#nextbar .line.ask b { font-weight: 700; }
#nextbar .line.ask .kbd { vertical-align: middle; margin: 0 2px; }
#nextbar .nudge { display: flex; align-items: center; color: var(--on-surface); }
#nextbar .nudge > span { flex: 1; }
#nextbar .nudge button.lk { font-weight: 700; color: var(--shop-hanada); }
#nextbar .nudge button.nn { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--shop-ai); }
#nextbar .setdone { display: flex; align-items: center; gap: 8px; color: var(--on-surface); }
#nextbar .setdone b { font-weight: 700; }
#nextbar .setdone span { color: var(--on-surface-variant); }
#nextbar .row { display: flex; align-items: stretch; gap: 10px; }
#nextbar .row > [data-role=main] { flex: 1 1 auto; flex-direction: row; gap: 8px; }
#nextbar .row > [data-role=offer] { flex: none; flex-direction: row; gap: 6px; }
#nextbar .row[data-fit=icon] > [data-role=offer] { width: 52px; padding: 0; }
#nextbar .row[data-fit=icon] > [data-role=offer] .ol { display: none; }
#nextbar .row[data-fit=above] { flex-wrap: wrap; }
#nextbar .row[data-fit=above] > [data-role=offer] { order: -1; flex: 1 0 100%; }
#nextbar .hear { flex: none; width: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--shop-ai); border: 1px solid var(--line45); background: var(--shop-card); }
#nextbar .hear[data-failed] { color: var(--shop-muted); }
/* next-bar:end */
/* LevelFoundBanner (level_found.dart): a card, clipped, the confetti strip filling it, the 40 px seal 12 px before the headline. */
#nextbar .level { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; margin-bottom: 8px; }
#nextbar .level > :not(.confetti) { position: relative; }
#nextbar .level > .confetti { inset: 0; }
#nextbar .level b { display: block; font-size: calc(16px * var(--fs)); font-weight: 800; color: var(--on-surface); }
#nextbar .level span { display: block; font-size: calc(13.5px * var(--fs)); color: var(--on-surface); }

/* A found level's art (level_found_art.dart), one drawing for the banner, Level found and the starting point. LevelSeal: a disc --s wide, its
   gradient from the primary lifted 20 % toward the card (top left) to the primary, a shadow of the primary at 30 % (blur --s/4, down --s/16), the
   auto_awesome sparkle in onPrimary at half the disc. Confetti: the pieces (a 10x4 strip, radius 1.5; a 5.2 px dot; a 7 px triangle) in 朱, the data
   indigo, the indigo and the 縹, each bursting from the origin (--ox, --oy) for 1 s on an ease-out cubic, fading in over its first third, then
   resting; under reduce motion they are drawn at rest at once. */
.lseal { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--s); height: var(--s); border-radius: 50%; color: var(--on-primary);
  background: linear-gradient(to bottom right, color-mix(in srgb, var(--primary) 80%, var(--shop-card)), var(--primary));
  box-shadow: 0 calc(var(--s) / 16) calc(var(--s) / 4) color-mix(in srgb, var(--primary) 30%, transparent); }
.lseal > .ic::before { width: calc(var(--s) / 2); height: calc(var(--s) / 2); }
.confetti { position: absolute; display: block; pointer-events: none; }
.confetti > i { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 4px; border-radius: 1.5px; opacity: var(--o); transform: translate(-50%, -50%) rotate(var(--r));
  animation: cfly 1s cubic-bezier(.215, .61, .355, 1) both, cfade .126s linear both; }
.confetti > i[data-p="1"] { width: 5.2px; height: 5.2px; border-radius: 50%; }
.confetti > i[data-p="2"] { width: 7px; height: 7px; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.confetti > i[data-c="0"] { background: var(--shop-shu); } .confetti > i[data-c="1"] { background: var(--shop-fill); }
.confetti > i[data-c="2"] { background: var(--primary); } .confetti > i[data-c="3"] { background: var(--shop-hanada); }
@keyframes cfly { from { left: var(--ox); top: var(--oy); transform: translate(-50%, -50%) rotate(calc(var(--r) + 360deg)); } }
@keyframes cfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti > i { animation: none; } }

/* waits:start */
/* The waits and the stalls (game_screen.dart's page without a bar). */
.mid { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px 0 18px; }
.mid p { max-width: 36em; }
.mid .err { font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--primary) 25%, transparent); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
#cover { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--shop-ground); text-align: center; }
#cover .in { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 28em; }
/* waits:end */


/* notice:start */
#notice { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 30; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 4px; background: var(--shop-ink); color: var(--shop-ground); font-size: calc(14px * var(--fs)); }
/* notice:end */

/* W2 */

/* RecallBoard (recall_board.dart): the sentence at 22 px, two aids that keep their room under a cover, the field on its underline, I don't know beside Check. */
.rb .sent.ask { font-size: calc(22px * var(--fs)); line-height: 1.6; }
.rb .gchip { margin-bottom: 8px; }
.mmlink { display: grid; justify-items: start; }
.mmlink > * { grid-area: 1 / 1; }
.mmlink [data-off] { visibility: hidden; }
.mmlink [data-link] { min-height: 36px; font-size: calc(13px * var(--fs)); }
.rfield { margin-top: 16px; }
.rfield.shake { animation: shake .36s linear; }
@keyframes shake { 0%, 100% { transform: none; } 8.3% { transform: translateX(7.3px); } 25% { transform: translateX(-6px); } 41.7% { transform: translateX(4.7px); } 58.3% { transform: translateX(-3.3px); } 75% { transform: translateX(2px); } 91.7% { transform: translateX(-.7px); } }
.rerr { margin-top: 6px; font-size: calc(12px * var(--fs)); line-height: 1.3; color: var(--shop-wrong); }
.rbtns { display: flex; align-items: stretch; gap: 10px; margin-top: 12px; }
.rbtns [data-role=main] { flex: 1 1 auto; min-width: 104px; }
.dkbtn { flex: 0 1 auto; min-height: 52px; padding: 0 14px; color: var(--shop-muted); font-size: calc(15px * var(--fs)); font-style: italic; text-align: center; }
.rrows { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rres { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--on-surface) 35%, transparent); border-radius: 4px; color: var(--on-surface-variant); }
.rres[data-correct] { background: var(--shop-card); border: 1.5px solid var(--shop-right); color: var(--on-surface); }
.rmark { flex: none; color: var(--game-wrong); }
.rres[data-correct] .rmark { color: var(--game-correct); }
.rmark .ic::before { width: 22px; height: 22px; }
.rbody { min-width: 0; }
.rl { font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.rres[data-correct] .rl { color: var(--game-correct); }
.rline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; }
.rv { font-size: calc(18px * var(--fs)); line-height: 1.25; font-weight: 700; }
.rr { font-size: calc(15px * var(--fs)); line-height: 1.25; font-weight: 600; color: var(--on-surface-variant); }
.rm { margin-top: 2px; font-size: calc(13px * var(--fs)); line-height: 1.35; color: var(--on-surface-variant); }
.rn { font-size: calc(12px * var(--fs)); line-height: 1.3; font-weight: 500; color: var(--on-surface-variant); }
.rres .pitch { font-size: 16px; --c: currentColor; color: inherit; }
.joffer { margin-top: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.jnote { text-align: center; font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); }
.jnote.err { color: var(--shop-wrong); }
.jcard { margin-top: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.jcard > div { display: flex; flex-direction: column; min-width: 0; }
.jcard > div > b { font-size: calc(14.5px * var(--fs)); font-weight: 700; }
.jcard > div > span { font-size: calc(12.5px * var(--fs)); color: var(--on-surface-variant); }
.jcard > .jbody { display: block; width: 100%; }
.jl { margin-bottom: 6px; font-size: 10px; font-weight: 800; letter-spacing: 1.05px; color: var(--primary); }
.jt { display: flex; align-items: flex-start; gap: 8px; font-size: calc(15.5px * var(--fs)); font-weight: 800; }
.jt[data-yes] { color: var(--game-correct); }
.jt .ic::before { width: 20px; height: 20px; }
.jr { margin-top: 8px; font-size: calc(14px * var(--fs)); line-height: 1.55; }
.jn { margin-top: 8px; font-size: calc(13px * var(--fs)); line-height: 1.55; }
.jc { margin-top: 2px; font-size: calc(13px * var(--fs)); line-height: 1.55; }
.jby { margin-top: 8px; font-size: 11px; color: var(--on-surface-variant); }
dialog#sheet .mmrows { margin-top: 12px; display: flex; flex-direction: column; }
dialog#sheet .mmrow { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line18); }
dialog#sheet .mmck { flex: none; width: 24px; color: var(--primary); }
dialog#sheet .mmt { display: flex; flex-direction: column; }
dialog#sheet .mmt b { font-size: calc(15px * var(--fs)); font-weight: 700; }
dialog#sheet .mmt small { font-size: calc(13px * var(--fs)); line-height: 1.4; color: var(--on-surface-variant); }

/* ListenBoard (listen_board.dart): the card holds the kana, the sound cue or the replay buttons; the four meanings are tiles of their own, 8 px apart. */
.lkana { margin-top: 4px; text-align: center; font-size: min(calc(44px * var(--fs)), calc((min(100vw, var(--colw)) - 70px) / var(--n, 1))); line-height: 1.2; font-weight: 700; white-space: nowrap; }
.lline { text-align: center; font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); }
.lcue + .lline { margin-top: 8px; }
.lline + .lbtns { margin-top: 10px; }
.lcenter { display: flex; justify-content: center; }
.lbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lbtns:first-child { margin-top: 0; }
.lcue { width: 100%; }
/* icon-buttons:start */
/* A button with an icon is one row, as AppButton's (buttons.dart): the icon at the placement's size (button_roles.dart: 18 px inline, 20 px in a bar), 8 px from its label. */
[data-role]:has(> .ic) { flex-direction: row; gap: 8px; }
.qface [data-role][data-placement=inline] > .ic::before { width: 18px; height: 18px; }
.qface [data-role][data-placement=bar] > .ic::before { width: 20px; height: 20px; }
/* icon-buttons:end */
.lsent { padding-bottom: 4px; font-size: calc(22px * var(--fs)); line-height: 1.6; color: var(--on-surface); }
.lsent b { font-weight: 700; color: var(--primary); }
.lhead { margin: 16px 0 10px; font-size: 10px; font-weight: 800; letter-spacing: 1.05px; color: var(--primary); }
.lmenu { display: flex; flex-direction: column; gap: 8px; }
.lmenu .fuda { background: var(--shop-card); border: 1px solid var(--primary); border-radius: 4px; }
.lmenu .fuda[data-state=correct]::after { display: none; }
.lmenu .fuda[data-state=correct] { border-width: 1.5px; border-color: var(--shop-right); }
.lmenu .fuda[data-state=quiet], .lmenu .fuda[data-state=rightNotPicked] { border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.lmenu .fuda[data-state=wrongPick] { border-color: color-mix(in srgb, var(--on-surface) 35%, transparent); background: var(--surface); }
.lmenu .fuda[data-row=dk] { border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
/* option-pitch:start */
.fuda .nt .pitch { font-size: 16px; }
/* option-pitch:end */

/* W3 */
/* write-board:start */
/* The Write board (play-write.js): the heading, the word with its blank, the square of boxes, the part tiles, the built answer's rows. */
.wacts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.replay[data-failed] { color: var(--shop-muted); }
.replay .ic::before { width: 18px; height: 18px; }
/* BoardHeading (board_parts.dart), as Listen's .lhead: 10 px w800, 1.05 apart, in the primary, 10 px over what it heads. */
.bhead { margin: 16px 0 10px; font-size: 10px; font-weight: 800; letter-spacing: 1.05px; color: var(--primary); }
/* WriteBoard's sentence (write_board.dart): 22/1.6, as Recall's. */
.wq .sent.ask { font-size: calc(22px * var(--fs)); }
.build { display: flex; flex-direction: column; align-items: stretch; }
.gapword { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 12px; font-size: 40px; font-weight: 700; line-height: 1.25; }
.gapword .gap { display: inline-block; width: 46px; height: 50px; margin: 0 2px; border: 2px solid var(--primary); border-radius: 4px; }
/* The build square (.bsq) is the shop block build-square (webapp/css/blocks/shop.css), which Settings › Questions draws Write's build steps with too. */
.part .st { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ogrid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 299px) { .ogrid { grid-template-columns: 1fr; } }
.ogrid .otile { height: 84px; justify-content: center; background: var(--shop-card); border: 1px solid var(--primary); border-radius: 4px; padding: 0 8px; }
.ogrid .otile .num { position: absolute; left: 8px; top: 8px; }
/* A part's strokes are 3.4 px wide on every tile, as the phone's painter draws them: --k (play-write.js partSvg) is the px per unit of the part's own viewBox, and the
   width is in those units. The strokes' round caps spill over the tile's edge as they do on the phone, which does not clip. */
.ogrid .part { width: 58px; height: 58px; overflow: visible; }
.ogrid .part .st { stroke: var(--shop-ink); stroke-width: calc(3.4px / var(--k, 1)); }
/* I don't know under the part tiles (DontKnowChoice, not a menu row): a 札 of its own like the tiles above it, 58 px, at their 8 px gap. */
.bhead ~ .fuda[data-row=dk], .namehead ~ .fuda[data-row=dk] { margin-top: 8px; min-height: 58px; padding: 0 14px; gap: 12px; background: var(--shop-card); border: 1px solid var(--primary); border-radius: 4px; }
/* ResultRow (result_row.dart, OptionVisuals), Recall's .rres too: 14/10 in; a wrong row greyed on the page ground in a 1 px frame of the text at 35 %,
   a right one on the card in 1.5 px of the shop's right, a row not asked (the meaning's plain row) on the card in the primary at 30 %. */
.rrow { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--on-surface) 35%, transparent); border-radius: 4px; color: var(--on-surface-variant); }
.rrow[data-correct] { background: var(--shop-card); border: 1.5px solid var(--shop-right); color: var(--on-surface); }
.rrow.plain { background: var(--shop-card); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--on-surface); }
.rrow .rbody { flex: 1 1 auto; min-width: 0; }
.rrow .rv { font-size: calc(18px * var(--fs)); line-height: 1.25; font-weight: 700; }
.rrow .rv .mark { color: var(--shop-ai); }
.rrow .rr { font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
.rrow .rnote p { margin-top: 4px; font-size: calc(13px * var(--fs)); line-height: 1.35; color: var(--on-surface-variant); }
.rrow .built { flex: none; }
.rrow .built .bsq { --side: 96px; }
.parts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: calc(13px * var(--fs)); color: var(--shop-hanada); }
.parts .part[data-red] { color: var(--shop-shu); }
.parts .pg { font-size: calc(16px * var(--fs)); font-weight: 600; }
/* The kanji's name (play-write.js nameBand, PLAN-write-name-help §3.4, PLAN-hint-band; KanjiNameBand, kanji_name_band.dart). It takes the heading's place without moving what is under
   it: the heading stays laid out, unseen, and the band stands on its foot, a little taller than the heading into the gap above (the gap above it stays at least 4 px at the default size). A hairline
   frame, a "HINT" tag, the word with its kana over it (a ruby), its meaning on the same row, and the chevron tile. */
.namehead { position: relative; display: flow-root; }
.namehead .bhead { visibility: hidden; }
.nameband { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; min-height: 32px; background: var(--shop-card); border: 1px solid var(--line30); border-radius: 4px; }
.namehead[data-open] .nameband { border-radius: 4px 4px 0 0; }
.nstatus { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 1.5px 8px 1.5px 10px; }
.nvis { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; }
.nlab { flex: none; font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: 1px; color: var(--primary); white-space: nowrap; padding: 3px 6px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 14%, transparent); }
.nlh { font-size: 10.5px; font-weight: 700; letter-spacing: 1.3px; color: var(--primary); white-space: nowrap; }
.nword { display: contents; }
.nrowin { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.nword .nw, .nword .nkonly { flex: none; max-width: 100%; font-size: calc(20px * var(--fs)); font-weight: 500; line-height: 1.05; }
.nword .nw { ruby-position: over; }
.nword .nbox { width: 17px; height: 17px; vertical-align: -3px; }
.nword .nw rt { font-size: calc(9.5px * var(--fs)); font-weight: 400; line-height: 1; color: var(--shop-muted); text-align: center; }
/* The meaning keeps at least 60 px beside the tag and the word, or it goes under them (the row wraps, and the meaning then takes the whole line); it ends in an ellipsis rather than a second line. */
.nword .ng { flex: 1 1 60px; min-width: 0; font-size: calc(13px * var(--fs)); color: var(--shop-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk b { font-weight: 700; color: var(--primary); }
.nbox { display: inline-block; width: 14px; height: 14px; box-sizing: border-box; margin: 0 1px; vertical-align: -2px; border: 1.5px solid var(--primary); border-radius: 2px; background: var(--shop-ground); }
.nchev { flex: none; width: 38px; display: flex; align-items: center; justify-content: center; padding: 0; background: none; border: 0; border-left: 1px solid color-mix(in srgb, var(--shop-line) 45%, transparent); color: var(--primary); cursor: pointer; }
.nchev .ic::before { width: 20px; height: 20px; }
.namehead[data-open] .nchev .ic { transform: rotate(180deg); }
.nchev:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
/* The list opens under the band, over the board (it does not push it down), and scrolls inside itself; a tap outside, on the barrier, closes it. */
.nbarrier { position: fixed; inset: 0; z-index: 4; padding: 0; background: transparent; border: 0; }
.nlist { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; max-height: calc(100vh - 160px); overflow-y: auto; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 9px; background: var(--shop-card); border: 1px solid var(--primary); border-top-color: color-mix(in srgb, var(--shop-line) 45%, transparent); box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 18%, transparent); }
.nlist .nlh { margin: 0; }
.nrowin .nw { font-size: calc(19px * var(--fs)); font-weight: 500; }
.nrowin .nk { font-size: calc(12.5px * var(--fs)); color: var(--on-surface-variant); }
.nrowin .ng { font-size: calc(12.5px * var(--fs)); color: var(--shop-muted); }
.nlist[hidden], .nbarrier[hidden] { display: none; }
/* write-board:end */
/* The kanji pad and its figures (PLAN-web-draw, webapp/js/page-draw-pad.js): the Write board's and Listen's step two's drawing. */
/* draw-pad:start */
:root { --draw-gray: #8c8a84; }
:root[data-theme=dark] { --draw-gray: #8e8c86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --draw-gray: #8e8c86; } }

.dpad { display: flex; flex-direction: column; align-items: stretch; }
/* The square: the phone's rule max(240, min(width - 94, 320)) (drawPadSide). The 47 px each side keeps a stroke clear of the iOS edge swipe. A finger on it never scrolls the page,
   selects text or opens the callout; the browser's own context menu is stopped by the script. */
.dsq { position: relative; box-sizing: border-box; align-self: center; width: max(240px, min(100% - 94px, 320px)); aspect-ratio: 1; background: var(--shop-card); border-radius: 6px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shop-line) 30%, transparent); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: crosshair; }
.dsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.dsvg path, .dsvg polyline, .dsvg line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.dsvg .dcross { stroke: color-mix(in srgb, var(--shop-line) 21%, transparent); stroke-width: 1px; stroke-dasharray: 6 5; stroke-linecap: butt; }
/* Hold to see is up: every stroke thick and faint (alpha .14), under the ink. */
.dshown path { stroke: var(--shop-ink); stroke-opacity: .14; stroke-width: 3.6; vector-effect: none; }
.dink path { stroke: var(--shop-ink); stroke-width: 3.2px; }
.dink path[data-gray] { stroke: var(--draw-gray); }
/* The stroke guide (PLAN-kanji-strokes-redo §4.1; DrawPad's help, draw_pad.dart): the stroke dashed (6 on, 5 off, 3.4 px, alpha .75), a dot where it starts with its number in white, an arrowhead where it ends,
   all in 花田; the dot and the arrowhead are in the box's units, so they follow the pad's size as the stroke does. */
.dhint .dghost { stroke: var(--shop-hanada); stroke-opacity: .75; stroke-width: 3.4px; stroke-dasharray: 6 5; }
.dhint .ddot, .dhint .darrow, .dthumb .ddot, .dthumb .darrow { fill: var(--shop-hanada); stroke: none; }
.dhint .dgnum, .dthumb .dgnum { fill: #fff; stroke: none; font-weight: 800; text-anchor: middle; pointer-events: none; }
.dmiss polyline { stroke: var(--game-wrong); stroke-width: 3.2px; }
.dlive { stroke: var(--shop-ink); stroke-width: 3.2px; }
/* What the last stroke did, in the one line under the square (a live region: it exists empty before it has anything to say). */
.dline { margin: 8px 0 0; text-align: center; font-size: calc(13px * var(--fs)); line-height: 1.35; color: var(--shop-muted); }
.dline:empty { margin: 0; }
.dline[data-miss] { color: var(--game-wrong); }
.dforgive { align-self: center; margin-top: 2px; }
/* Hold to see: the bar button (touch-action none: a finger held on it and drifting must not pan the page, which would cancel the pointer: the phone's is a Listener), filled while it is held, with its H cap where key caps show (the phone's wide web, 720 px). */
.dhold { margin-top: 6px; width: 100%; flex-direction: row; gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dhold > .ic::before { width: 20px; height: 20px; }
.dkey { display: none; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); align-items: center; justify-content: center; width: 20px; height: 20px; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--shop-line) 40%, transparent); border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--shop-muted); pointer-events: none; }
.dkey::before { content: attr(data-n); }
@media (min-width: 720px) { .dkey { display: inline-flex; } }
.dstart { align-self: center; margin-top: 6px; }
.dlater { align-self: center; margin-top: 6px; }
.dstart[aria-disabled=true] { color: color-mix(in srgb, var(--shop-ink) 38%, transparent); pointer-events: none; }
.dresult { margin: 10px 0 0; text-align: center; white-space: pre-line; font-size: calc(14px * var(--fs)); line-height: 1.4; font-weight: 700; color: var(--game-wrong); }
.dresult[data-right] { color: var(--shop-right); }
/* A kanji from its strokes (KanjiThumb): the stroke is size / 30 px wide, at least 1.2 px (--w, in the figure's own units); a part's role, a refused stroke, a stroke drawn for
   the learner and the strip's earlier strokes each take their color; a refused stroke's number sits at its start. */
.dthumb { flex: none; display: block; }
.dthumb path { fill: none; stroke: var(--shop-ink); stroke-width: var(--w, 3.2); stroke-linecap: round; stroke-linejoin: round; }
.dthumb path[data-tone=meaning] { stroke: var(--shop-hanada); }
.dthumb path[data-tone=sound] { stroke: var(--shop-shu); }
.dthumb path[data-tone=red] { stroke: var(--game-wrong); }
.dthumb path[data-tone=gray] { stroke: var(--draw-gray); }
.dthumb path[data-tone=faint] { stroke-opacity: .3; }
.dthumb path[data-tone=guide] { stroke: var(--shop-hanada); }
.dthumb .dnum { fill: var(--game-wrong); stroke: none; font-weight: 800; text-anchor: middle; }
.dstrip { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.dpractice { margin-top: 10px; display: flex; }
.dpractice [data-role] > .ic::before { width: 18px; height: 18px; }
/* A kanji played (Kanjiya's Meet, meet_screen.dart): each stroke is a dash the whole of its length (pathLength 1) that draws itself in --ms, one after another (--i is its place); the guide's dot of the stroke
   being drawn shows while it is. With less motion asked for a stroke shows whole when its turn comes, with no drawing. */
@keyframes dplay { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
/* The stroke being drawn is in the guide color, as on the phone; once drawn it goes back to its own (the animation has no fill after its end). */
@keyframes dtone { from, to { stroke: var(--shop-hanada); } }
@keyframes dstep { from { opacity: 0; } to { opacity: 1; } }
@keyframes dpg { 0% { opacity: 0; } 1%, 99% { opacity: 1; } 100% { opacity: 0; } }
.dthumb[data-play] path { stroke-dasharray: 1; animation: dplay var(--ms, 650ms) linear calc(var(--lead, 0ms) + var(--i) * var(--ms, 650ms)) both, dtone var(--ms, 650ms) linear calc(var(--lead, 0ms) + var(--i) * var(--ms, 650ms)) backwards; }
.dthumb[data-play] .dpg { animation: dpg var(--ms, 650ms) linear calc(var(--lead, 0ms) + var(--i) * var(--ms, 650ms)) both; }
@media (prefers-reduced-motion: reduce) {
  .dthumb[data-play] path { stroke-dasharray: none; animation: dstep var(--ms, 650ms) steps(1, start) calc(var(--lead, 0ms) + var(--i) * var(--ms, 650ms)) both; }
  .dthumb[data-play] .dpg { display: none; }
}
/* draw-pad:end */
/* The set-end pages (play-end.js). */
.endpage { padding: 0 0 24px; }
/* NorenDrop (shop/noren.dart): a 4 px rod, 4 px under it three panels 8 px apart and 8 px in from the column's edges, each the noren's
   cloth with one 64 px brush character, coming down from the header panels' 34 px to --len in 300 ms (none with reduce motion). On the
   question page the panels hang from the page's own rod, so the empty bar and the drop's rod give way; over the game (the sheet) the drop
   brings its rod to the sheet's top. */
.endpage .noren { display: block; margin: 0 -16px; }
.endpage .noren .nrod { display: none; height: 4px; background: var(--shop-rod); }
.endpage .noren .npanels { display: flex; gap: 8px; padding: 4px 8px 0; }
.endpage .noren .npanels span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: var(--len); overflow: hidden;
  background: var(--shop-noren); color: var(--shop-on-noren); box-shadow: 0 2px 0 color-mix(in srgb, var(--shop-noren) 25%, transparent);
  font-family: var(--brush); font-size: calc(64px * var(--fs)); line-height: 1;
  animation: norendrop 300ms ease-out; }
@keyframes norendrop { from { height: 34px; } }
@media (prefers-reduced-motion: reduce) { .endpage .noren .npanels span { animation: none; } }
#page:has(> #body .endpage > .noren) > #bar:empty { display: none; }
dialog#sheet[data-page] .endpage > .noren { margin: -18px -20px 0; }
dialog#sheet[data-page] .endpage > .noren .nrod { display: block; }
/* Over the game the sheet's own heading rule (sheet.css) gives way to the page's. */
dialog#sheet[data-page] .endpage .headrow .head { margin-top: 0; font-size: calc(28px * var(--fs)); font-weight: 600; line-height: 1.2; }
.endpage .head { margin-top: 14px; font-size: calc(28px * var(--fs)); line-height: 1.2; color: var(--shop-ink); }
.endpage .eline { margin-top: 4px; font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
/* Quick done and Full done (quick_done_page.dart, set_complete_screen.dart): the body 20 px in from the edges, 28 px under the noren; the heading in
   the Mincho at 28 px (Quick's with the set's counts beside it at 14 px, on the line's foot; Full's with the sitting rabbit standing at its right
   end, rising above it, drawn only where the line leaves it room), the line under it, 18 px, the week (Full's on a card, 12 px in), 18 px, the
   set's words, 24 px, the buttons 8 px apart. */
#body .endpage:is([data-page=quickDone], [data-page=fullDone]) { padding: 0 4px 24px; }
.endpage:is([data-page=quickDone], [data-page=fullDone]) > .noren { margin: 0 -20px; }
.endpage .headrow { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; margin-top: 28px; }
.endpage .headrow .head { margin-top: 0; }
.endpage .headrow .hcounts { padding-bottom: 4px; font-size: calc(14px * var(--fs)); color: var(--on-surface-variant); }
.endpage .headrow .shopfig { position: absolute; right: 0; bottom: 0; }
@container endpage (max-width: 299px) { .endpage .headrow .shopfig { display: none; } }
.endpage:is([data-page=quickDone], [data-page=fullDone]) { container: endpage / inline-size; }
.endpage .qline { margin-top: 6px; font-size: calc(14px * var(--fs)); }
.endpage .fline { margin-top: 4px; }
.endpage > .wstamps, .endpage > .eweek { margin-top: 18px; }
.endpage .eweek { padding: 12px; }
/* SetWordTiles (set_word_tiles.dart): each group a fold row at least 48 px tall (8 px above and below: the eyebrow, 11 px, 1.3 px apart, in 花田,
   with a 22 px triangle; the parts at 13 px under it), the tiles in up to three equal columns (a column at least 96 px at the text size, 8 px
   apart, every tile one width), 8 px after the group. A tile is a card (dashed where the word slipped), 8 px in: the word at 19 px bold in the
   learner's face, the reading at 11 px muted, 2 px, then the word's mark (an 11 px circle) 4 px before its label (11 px bold; muted where it slipped). */
.endpage > .wstamps + .swords, .endpage > .eweek + .swords { margin-top: 18px; }
.swords { margin-bottom: 8px; }
.swords > summary { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 8px 0; box-sizing: border-box; cursor: pointer; list-style: none; }
.swords > summary::-webkit-details-marker { display: none; }
.swords .sh { display: inline-flex; align-items: center; font-size: calc(11px * var(--fs)); line-height: 1.3; letter-spacing: 1.3px; color: var(--shop-hanada); }
.swords .sh b { font-weight: 400; }
.swords .tri { width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--tri) center / 22px no-repeat; mask: var(--tri) center / 22px no-repeat;
  --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5v10z'/%3E%3C/svg%3E"); }
.swords[open] .tri { --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); }
.swords .sp { font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
.wtiles { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(max(calc(96px * var(--fs)), calc((100% - 16px) / 3)), 1fr)); }
.wtile { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 48px; padding: 8px; text-align: center; }
.wtile .sf { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--jf), var(--ja); font-size: calc(19px * var(--fs)); font-weight: 700; color: var(--shop-ink); }
.wtile .rd { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: calc(11px * var(--fs)); color: var(--shop-muted); }
.wtile .tg { margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: calc(11px * var(--fs)); font-weight: 700; color: var(--shop-ink); }
.wtile[data-slipped] .tg { color: var(--shop-muted); }
.eacts { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.eacts [data-role] { width: 100%; }
/* Level found and the starting point (level_found_screen.dart, starting_point_screen.dart, level_found.dart): 20 px in from the edges, 18 from the top. */
#body .endpage[data-page=startingPoint] { padding: 18px 4px 24px; }
/* The starting point is a page of its own on the phone (no header): the empty question bar gives way. */
#page:has(> #body .endpage[data-page=startingPoint]) > #bar:empty { display: none; }
.endpage .eyebrow { font-weight: 800; letter-spacing: 1.2px; color: var(--primary); }
/* The pill row: SetDonePill (a head tag, ticked) and its line, 10 px apart; 18 px over the hero. */
.endpage .pillrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 18px; }
.endpage .donepill { gap: 4px; }
.endpage .donepill .ic::before { width: 13px; height: 13px; }
/* LevelFoundHero: the confetti 62 px tall across the column and 20 px past it, then 66 px down the 64 px seal, 16 px, the eyebrow and the kind at
   24/1.2 w800 (its Japanese in the primary), 10 px under it. */
.endpage .hero { position: relative; padding: 66px 0 10px; }
.endpage .hero > .confetti { top: 0; left: -20px; right: -20px; height: 62px; }
.endpage .hero .hrow { display: flex; align-items: center; gap: 16px; }
.endpage .hero .hrow > div { min-width: 0; }
.endpage .hero .hk { margin-top: 2px; font-size: calc(24px * var(--fs)); font-weight: 800; line-height: 1.2; }
.endpage .hero .hk span { color: var(--primary); }
.endpage .under { margin-top: 4px; }
.endpage[data-page=levelFound] .under { margin-top: 6px; }
.endpage .under b { display: block; font-size: calc(18px * var(--fs)); font-weight: 800; }
.endpage .under .big { font-size: calc(56px * var(--fs)); line-height: 1.1; font-weight: 800; color: var(--primary); }
.endpage .sentence { font-size: calc(15px * var(--fs)); line-height: 1.45; }
/* AlmostThere: the headline at 26/1.2 w800 in the body face, 12 px, the twelve dots, 12 px, the sentence. TwelveDots: twelve slim tracks 3 px apart. */
.endpage .almost { margin-top: 4px; }
.endpage .almost .ah { font-size: calc(26px * var(--fs)); line-height: 1.2; font-weight: 800; }
.endpage .almost .twelve { margin: 12px 0; }
.twelve { display: flex; gap: 3px; }
.twelve > [data-track] { flex: 1 1 0; }
/* RaiseLine: a card 16/14 in, the 藍 trending-up icon, 12 px, the line at 15/1.35 w800. */
.endpage .raise { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.endpage .raise .ic { color: var(--shop-ai); }
.endpage .raise p { flex: 1; min-width: 0; font-size: calc(15px * var(--fs)); line-height: 1.35; font-weight: 800; }
/* StartingKindsCard and Level found's card: 16/14/16/12 in, the eyebrow, 6 px, the kinds; the line under them at 13.5/1.4, muted. */
.endpage .kcard { margin-top: 14px; padding: 14px 16px 12px; }
.endpage[data-page=levelFound] .kcard { margin-top: 18px; }
.endpage .kcard > .eyebrow { margin-top: 0; }
.endpage .kcard .kline { margin-top: 6px; font-size: calc(13.5px * var(--fs)); line-height: 1.4; color: var(--on-surface-variant); }
.endpage .kcard .allm { margin-top: 4px; font-size: calc(14px * var(--fs)); line-height: 1.4; }
/* BandKindsList: each kind 5 px above and below, the 20 px circle (check_circle in the primary, an empty ring in the edge's line), 12 px, the label
   at 15 (w800 on the fresh kind, w600 else), its NEW tag 8 px before the value, the value at 14 (w800 on the surface when measured, muted else). */
.endpage .kinds { list-style: none; margin-top: 6px; display: flex; flex-direction: column; }
.endpage .kinds li { display: flex; align-items: center; padding: 5px 0; }
.endpage .kinds li > .ic { color: var(--line45); margin-right: 12px; }
.endpage .kinds li[data-done] > .ic { color: var(--primary); }
.endpage .kinds li > .ic::before { width: 20px; height: 20px; }
.endpage .kinds .kl { flex: 1 1 auto; min-width: 0; font-size: calc(15px * var(--fs)); font-weight: 600; }
.endpage .kinds li[data-fresh] .kl { font-weight: 800; }
.endpage .kinds [data-tag] { margin-right: 8px; }
.endpage .kinds .kv { font-size: calc(14px * var(--fs)); color: var(--on-surface-variant); }
.endpage .kinds li[data-done] .kv { font-weight: 800; color: var(--on-surface); }
.ic-checkcircle { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E"); }
/* WordTypeChart with its title (14 w700), the radar page-chart.js draws, as the Numbers room's (controls.css' chart frame, numbers.css' axes); 8 px
   above and below, then the joined line at 13 w700 in the primary, 6 px over the kinds. */
.endpage .ctitle { margin-top: 8px; font-size: calc(14px * var(--fs)); font-weight: 700; }
.endpage .chartbox { width: 100%; }
.endpage .chartbox svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; }
.chartbox .lbl { font-size: 11px; fill: var(--on-surface-variant); }
.chartbox .ring, .chartbox .spoke { stroke: var(--line30); stroke-width: 1; }
.chartbox .radar .area, .chartbox svg.radar .area { fill: var(--shop-ai); opacity: .18; }
.chartbox .edge { stroke: var(--shop-ai); stroke-width: 2; }
.chartbox .dot { fill: var(--shop-ai); }
.chartbox .dot.hollow { fill: var(--shop-card); stroke: var(--shop-ai); stroke-width: 2; }
.chartbox .axis.low .lbl.sub { fill: var(--shop-shu); font-weight: 700; }
.chartbox .axis.selected .lbl { font-weight: 800; }
.chartbox .lbl.sub { fill: var(--on-surface-variant); }
.endpage .joined { margin: 8px 0 6px; text-align: center; font-size: calc(13px * var(--fs)); font-weight: 700; color: var(--primary); }
/* SkillCell: a card 14/12 in, the name at 14 w800 (a "?" at its end while provisional), 6, the share at 26/1.1 w800 in the data fill (muted where
   the skill is off), 6, its bar (regular; the twelve dots while provisional), 6, the line at 12, muted. Two to a row where the column has 300 px,
   10 px apart, 16 px under what is above. */
.endpage .cells { margin-top: 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(max(calc(145px * var(--fs)), calc(50% - 5px)), 1fr)); }
.endpage .cell { min-width: 0; padding: 12px 14px; }
.endpage .cell .cn { display: flex; align-items: baseline; gap: 4px; }
.endpage .cell .cn b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--fs)); font-weight: 800; }
.endpage .cell .cn .sfx { font-weight: 400; color: var(--on-surface-variant); }
.endpage .cell .cq { font-weight: 800; color: var(--on-surface-variant); }
.endpage .cell .ch { margin-top: 6px; font-size: calc(26px * var(--fs)); line-height: 1.1; font-weight: 800; color: var(--shop-fill); font-variant-numeric: tabular-nums; white-space: nowrap; }
.endpage .cell[data-grey] .ch { color: var(--shop-muted); }
.endpage .cell > [data-track], .endpage .cell > .twelve { margin-top: 6px; }
.endpage .cell [data-track] > [data-track-part=met] { background: var(--line45); }
.endpage .cell .cl { margin-top: 6px; font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.endpage .cell .cl + .cl { margin-top: 0; }
/* _Count: two matched cards 10 px apart, 14 px in, the number at 26 w800, 4 px, the label at 13.5/1.35. */
.endpage .counts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.endpage .counts > div { padding: 14px; min-width: 0; }
.endpage .counts b { display: block; font-size: calc(26px * var(--fs)); font-weight: 800; }
.endpage .counts span { display: block; margin-top: 4px; font-size: calc(13.5px * var(--fs)); line-height: 1.35; }
.endpage[data-page=startingPoint] .eacts { gap: 10px; }
.endpage .tomorrow { margin-top: 10px; text-align: center; font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
/* "That's today": titleLarge (22/28, the body face). */
.mid .tlarge { font-size: calc(22px * var(--fs)); line-height: 1.27; font-weight: 400; }
/* Extra's chooser and Find your level's (practice_screen.dart): the app bar (56 px: the back arrow, the title at 20 w600 in 藍), then the column 16 px
   in, the intro at 15/1.45 muted, 18 px, the eyebrow, 8 px, the questions as one segmented strip, 18 px, the eyebrow, 8 px, the kind tiles (three to a
   row from 520 px, two from 250, one under it; 8 px apart, each row as tall as its tallest), 8 px, the regular tile; Start pinned in the bar under it. */
dialog#sheet[data-page] .endpage.chooser { padding: 0 0 max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; min-height: 100%; }
dialog#sheet .chooser .appbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; height: 56px; padding: 0 4px; background: var(--shop-ground); color: var(--shop-ai); }
dialog#sheet .chooser .appbar button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; }
dialog#sheet .chooser .appbar h2 { margin: 0 0 0 20px; font-size: calc(20px * var(--fs)); font-weight: 600; line-height: 1.2; color: var(--shop-ai); }
dialog#sheet .chooser .cbody { flex: 1 1 auto; padding: 4px 16px 24px; }
dialog#sheet .chooser .cbody > .eyebrow { margin-top: 18px; margin-bottom: 8px; }
dialog#sheet .chooser .intro { font-size: calc(15px * var(--fs)); line-height: 1.45; color: var(--on-surface-variant); }
dialog#sheet .chooser .qpick { display: flex; border: 1px solid var(--line45); border-radius: 4px; overflow: hidden; }
dialog#sheet .chooser .qpick button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-size: calc(14px * var(--fs)); font-weight: 500; color: var(--shop-ai); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog#sheet .chooser .qpick button + button { border-left: 1px solid var(--line45); }
dialog#sheet .chooser .qpick button[aria-pressed=true] { background: var(--shop-noren); color: var(--shop-on-noren); }
dialog#sheet .chooser .qpick button[aria-disabled=true] { color: color-mix(in srgb, var(--on-surface) 38%, transparent); }
dialog#sheet .chooser .kchoices { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 282px) { dialog#sheet .chooser .kchoices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 552px) { dialog#sheet .chooser .kchoices { grid-template-columns: 1fr 1fr 1fr; } }
dialog#sheet .chooser .kchoice { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 48px; padding: 12px 12px 12px 14px; text-align: left; }
dialog#sheet .chooser .kchoice > b { font-size: calc(22px * var(--fs)); font-weight: 800; line-height: 1.35; }
dialog#sheet .chooser .kchoice .kn { font-size: calc(13.5px * var(--fs)); font-weight: 700; }
dialog#sheet .chooser .kchoice .kline { font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
dialog#sheet .chooser .kreg { margin-top: 8px; width: 100%; font-size: calc(15px * var(--fs)); font-weight: 700; }
dialog#sheet .chooser .kreg b { font-size: inherit; font-weight: 800; }
dialog#sheet .chooser .startbar { position: sticky; bottom: 0; padding: 8px 16px 12px; background: var(--shop-ground); }
dialog#sheet .chooser .startbar [data-role] { width: 100%; }
/* A page over the game (Quick done, Level found, the choosers) is a Scaffold on the page's ground, as the phone's full-screen routes are, not
   the sheet's card. */
dialog#sheet[data-page] { max-width: none; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; background: var(--shop-ground); }
dialog#sheet[data-page] .endpage { max-width: var(--colw); margin: 0 auto; padding: 18px 20px max(24px, env(safe-area-inset-bottom)); }

/* W4 */

/* W5 range 5 (PLAN-html-web-w5-w7 §2.2, D10): the other-sentences session's reading card and its end. The card is a slip like the Read card's, with a header of its own
   (the way back and the ⋯); the end is the checkpoint's page with a list of the missed words, each a row that opens its word's page. */
.endpage .missedlist { margin: 6px 0 4px; padding: 0; list-style: none; background: var(--shop-card); border: 1px solid var(--line30); border-radius: 4px; }
.endpage .missedlist li + li { border-top: 1px solid var(--line30); }
.endpage .missed { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 14px; text-align: left; }
.endpage .missed .sf { font-size: calc(18px * var(--fs)); font-weight: 800; }
.endpage .missed .gl { font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
.endpage .missed .ja { font-size: calc(14px * var(--fs)); }
.endpage .missed .ln { font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); }
.endpage[data-page=otherDone] .eyebrow { margin-top: 18px; font-size: calc(11px * var(--fs)); font-weight: 800; letter-spacing: 1.3px; color: var(--primary); }

/* W5 range 5 (PLAN-html-web-w5-w7 §2.2): Practice it over the question, the dialog page-practise.js builds (`dialog.sheet#practise`), as the shell's and the lookup pages' stylesheets
   draw it on the search and word pages, scoped to the dialog because this page does not load them. */
dialog#practise { width: 100%; max-width: 620px; max-height: 90vh; max-height: 90dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 12px 12px 0 0; background: var(--shop-card); color: var(--on-surface); overflow: auto; }
dialog#practise::backdrop { background: rgba(0, 0, 0, .5); }
dialog#practise .in { display: flex; flex-direction: column; gap: 4px; padding: 0 22px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
dialog#practise .grab { width: 32px; height: 4px; margin: 10px auto 14px; border-radius: 2px; background: var(--line30); }
dialog#practise .word .surface { font-size: calc(22px * var(--fs)); font-weight: 800; }
dialog#practise .word .gloss { font-size: calc(14px * var(--fs)); color: var(--on-surface-variant); }
dialog#practise h2 { margin-top: 6px; font-size: calc(20px * var(--fs)); line-height: 1.3; font-weight: 700; outline: none; }
dialog#practise .segments { display: flex; margin-top: 8px; border: 1px solid var(--line45); border-radius: 4px; overflow: hidden; }
dialog#practise .segments [role=radio] { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; color: var(--shop-ai); background: var(--shop-card); }
dialog#practise .segments [role=radio] + [role=radio] { border-left: 1px solid var(--line45); }
dialog#practise .segments [role=radio][aria-checked=true] { background: var(--shop-noren); color: var(--shop-on-noren); }
dialog#practise .segments [role=radio][aria-disabled=true] { opacity: .5; cursor: default; }
dialog#practise .start { margin-top: 8px; font-size: calc(14px * var(--fs)); font-weight: 700; }
dialog#practise .help { margin-top: 4px; font-size: calc(13px * var(--fs)); line-height: 1.4; color: var(--on-surface-variant); }
dialog#practise .err:empty { display: none; }
dialog#practise .acts { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }

/* W3b begin (PLAN-html-web-w3b §1): the framed page and start mode. The panel is the framed page's failure and "can't go there" surface (its title, Open Tangoya, the trouble line and Reload);
   the status line says "Starting…" while a tap waits for the core; the open-in-new glyph is Open Tangoya's. */
a[data-role] { gap: 8px; flex-direction: row; }
#panel { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--shop-ground); color: var(--shop-ink); }
#panel b { font-size: calc(22px * var(--fs)); }
#panel p { margin: 0; font-weight: 700; }
#startnote { margin: 8px 16px 0; text-align: center; font-size: calc(13px * var(--fs)); color: var(--shop-muted); }
#startnote:empty { display: none; }
:root[data-embed] #startnote { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* sr-corner:start */
/* The live region for the verdict is out of the flow and was left at its static position, 1 px below the page: the document always scrolled by one pixel, which a frame that fits the page shows as a scrollbar. */
.sr { top: 0; left: 0; }
/* sr-corner:end */
/* W3b end */
