/* frap.css — Frappuccino's one stylesheet for the shell: tokens, the material, the components,
   the screens. The drill has its own sheet (frap-drill.css) on these tokens.

   THE MATERIAL IS GLASS WITH A LIGHT ON IT (PLAN.md, 4). Five layers, on .glass:
     frost     backdrop-filter over the moving field, and a thin warm fill
     edge      ::before, a 1px gradient border, bright at the top-left, gone at the bottom-right
     specular  ::after, a spot that follows the finger or the pointer (--px, --py, set by
               frap-glass.js), and on [data-live] a slow band that drifts at rest
     depth     an inner shade at the bottom, a soft cast below
     (no grain: «Graininess is undesirable», 2026-10-02, and again 2026-11-18, «modern, stylish frosted glass rather
      than a variety of weird looking backgrounds»: --grain and --key-grain are never set, and read as none)
   ::before and ::after of a .glass element belong to the material: draw nothing else with them.

   TWO REGISTERS, ONE SET OF TOKENS. The dark's tokens are :root's. «Milk» is the light one, and the
   default (html[data-look="milk"], set by frap-app.js from the learner's choice: Light, Dark or Auto):
   it redefines the tokens and nothing else, so a rule written on the tokens is written twice.
     --tint   a wash: lighter than the surface on the dark, darker on Milk  rgba(var(--tint), a)
     --shade  what a shadow is made of, and --sk how strong it is            rgba(var(--shade), calc(a * var(--sk)))
   A literal white is a LIGHT (an edge, a sheen, a highlight) and is white in both.

   CONTRAST-CONTRACT (scripts/verify_contrast.py reads these lines and the tokens they name, and
   holds every line in BOTH registers). What a surface is, for the gate:
     field          the field at its worst for the ink: under the dark its brightest colour
                    (--field-max), under Milk its darkest (--field-min). Neither is taken on
                    trust: the shader in frap-glass.js limits its own picture (Ymax, Ymilk), the
                    gate reads those numbers and holds each token to its own.
     glass          --glass-fill over the field: a glass at its worst
     glass-top      glass under --glass-top, the light at a glass's top edge
     glass-strong   --glass-strong-fill over the field
     glass-spot     glass under --spot, the specular at its peak (under the finger, or the pointer)
   Text straight on the field is --ink or --ink-2 only; --ink-3 is for glass.
     --ink       on field          >= 7
     --ink-2     on field          >= 4.5
     --acc-ink   on field          >= 4.5
     --ink       on glass          >= 7
     --ink-2     on glass          >= 7
     --ink-3     on glass          >= 4.5
     --ink-3     on glass-top      >= 4.5
     --ink       on glass-spot     >= 4.5
     --ink-2     on glass-spot     >= 4.5
     --ink       on glass-strong   >= 7
     --ink-3     on glass-strong   >= 4.5
     --acc-ink   on glass          >= 4.5
     --acc-ink   on glass-top      >= 4.5
     --acc-ink   on glass-strong   >= 4.5
     --wrong-ink on glass          >= 4.5
     --wrong-ink on glass-top      >= 4.5
     --on-acc    on --acc-1        >= 4.5
     --on-acc    on --acc-2        >= 7
     --on-acc    on --acc-3        >= 4.5
     --on-acc    on --acc-4        >= 4.5
     --on-rwd    on --rwd-1        >= 4.5
     --on-rwd    on --rwd-2        >= 4.5
     --on-rwd    on --rwd-3        >= 4.5
     --on-rwd    on --rwd-4        >= 4.5
     --on-btn    on --btn-1        >= 4.5
     --on-btn    on --btn-2        >= 4.5
     --gauge-ink on field          >= 3
   And on a fill, the cascade (verify_contrast.py, ON FILL): a text laid on the fill keeps its ink.
     ON-FILL: --acc : --on-acc
     ON-FILL: --btn-fill : --on-btn
*/

/* ── tokens ─────────────────────────────────────────────────────────────────────────── */
/* THREE PALETTES × TWO REGISTERS, ONE SET OF SEMANTIC TOKENS (ROUND3.md, 2.1). Opal is the
   default (:root, and Milk's block); Rose gold and Graphite redefine the same tokens in their own
   blocks. No rule below the tokens names a palette's colour: it names what the colour is FOR.
     accent   state and progress: rings, the progress bar, a switch on, a chosen disc or row,
              the next stop, the badges          --acc-1…4, --acc (the gradient), --acc-ink (its
              text on glass), --on-acc (ink on its fill), --acc-rgb (a wash), --sel-wash, --glow
     reward   success only: a right answer, a clean round        --rwd-1…4, --rwd, --on-rwd, --rwd-glow
     button   the primary capsule (white on the dark and black on Milk, in Opal and Graphite;
              the rose gold in Rose gold)                         --btn-1, --btn-2, --btn-fill, --on-btn
     seg      the segmented control's thumb                       --seg-fill, --on-seg
   «--accent» and «--on-accent» are the engine base's own names (frap-drill.css maps them onto
   these), so the palette's are --acc and --on-acc. */
:root {
  color-scheme: dark;
  /* ground and ink: Opal is a cool near-black */
  --ground: #060708;
  --ground-rgb: 6, 7, 8;
  --field-max: #405068;
  --ink: #f4f6f7;
  --ink-2: #d3d9dd;
  --ink-3: #aeb6bc;
  --line: rgba(var(--tint), .10);
  /* the accent: mint, sky, lilac */
  --acc-1: #c9fbea;
  --acc-2: #93ebd3;
  --acc-3: #92b8ff;
  --acc-4: #c6a6ff;
  --acc: linear-gradient(135deg, var(--acc-1) 0%, var(--acc-2) 34%, var(--acc-3) 66%, var(--acc-4) 100%);
  --acc-ink: #9debd5;
  --on-acc: #07130f;
  --acc-rgb: 147, 235, 211;
  --acc-deep: rgba(30, 70, 90, .35);
  --sel-wash: color-mix(in srgb, var(--acc-2) 12%, transparent);
  --glow: rgba(147, 235, 211, .42);
  --ring-1: var(--acc-1);
  --ring-2: var(--acc-2);
  --ring-3: var(--acc-3);
  --ring-4: var(--acc-4);
  --gauge-num: linear-gradient(135deg, var(--acc-1), var(--acc-2) 40%, var(--acc-3));
  --gauge-ink: #92b8ff;
  /* the reward: the accent's iridescence, with a blush of rose */
  --rwd-1: #cffbea;
  --rwd-2: #9edcff;
  --rwd-3: #c9b2ff;
  --rwd-4: #f6c3b5;
  --rwd: linear-gradient(135deg, var(--rwd-1) 0%, var(--rwd-2) 34%, var(--rwd-3) 66%, var(--rwd-4) 100%);
  --on-rwd: #0b0e12;
  --rwd-glow: rgba(158, 220, 255, .5);
  /* the primary button: a white capsule */
  --btn-1: #ffffff;
  --btn-2: #e6ebee;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #0b0e12;
  --btn-rim: rgba(255, 255, 255, .9);
  --btn-deep: rgba(60, 80, 96, .22);
  --btn-sheen: rgba(255, 255, 255, .55);
  /* the segmented control's thumb: a bright neutral */
  --seg-fill: rgba(255, 255, 255, .9);
  --on-seg: #0b0e12;
  --seg-glow: rgba(0, 0, 0, .35);
  /* a settings row's icon: neutral */
  --ic-ink: var(--ink-2);
  --ic-rgb: var(--tint);
  --wrong-ink: #ff9d8f;
  --wrong: #e5604e;
  /* the glass: cooler, and barely there */
  --glass-fill: rgba(20, 22, 25, .50);
  --glass-top: rgba(255, 255, 255, .085);
  --glass-strong-fill: rgba(14, 16, 18, .76);
  --glass-blur: 28px;
  --glass-sat: 170%;
  --rim: rgba(255, 255, 255, .50);
  --rim-soft: rgba(255, 255, 255, .09);
  --glass-thin-fill: rgba(24, 27, 30, .40);
  --glass-ghost: rgba(20, 22, 25, .22);
  --hi: rgba(255, 255, 255, .16);
  --rim-far: rgba(255, 255, 255, .14);
  --cast: 0 18px 44px -14px rgba(0, 0, 0, .62), 0 2px 6px rgba(0, 0, 0, .28);
  --cast-answer: 0 12px 28px -14px rgba(0, 0, 0, .6);
  --cast-sheet: 0 22px 50px -16px rgba(0, 0, 0, .75);
  --spot: rgba(255, 255, 255, .14);
  --sheen: rgba(255, 255, 255, .075);
  --scrim: rgba(2, 3, 4, .5);
  --thumb: rgba(255, 255, 255, .13);
  --thumb-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .05);
  /* a wash (lighter on the dark, darker on Milk) and a shade, each register's own */
  --tint: 255, 255, 255;
  --shade: 0, 0, 0;
  --sk: 1;
  /* where the browser cannot frost: what a glass is made of instead */
  --frost-off: #14171a;
  --frost-off-strong: #0f1113;
  --frost-off-thin: #191c1f;
  /* Settings' pictures of each register, in this palette (they show THEIR register, whatever the page wears) */
  --pv-d1: #1d5a4e; --pv-d2: #2b3a7a; --pv-dg: #060708; --pv-db: #ffffff;
  --pv-l1: #c8efe3; --pv-l2: #ddd5fb; --pv-lg: #f2f5f6; --pv-lb: #111418;
  /* where there is no WebGL, or the field is still: the same lights, standing, in CSS (html.no-field) */
  --fld-1: rgba(60, 180, 150, .30); --fld-2: rgba(80, 130, 255, .18); --fld-3: rgba(130, 90, 230, .18); --fld-4: rgba(10, 80, 80, .32);
  /* shape */
  --r-sheet: 34px;
  --r-card: 28px;
  --r-tile: 22px;
  --r-answer: 20px;
  --r-row: 18px;
  --gutter: 20px;
  /* type: the platform's face for the chrome */
  --face: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Inter", sans-serif;
  /* type: the card's «Default» (TYPE.md call T2), the face that holds a stress accent over its vowel in this engine:
     Inter (already loaded as the skins' text face) where the platform face is unmeasured or sets it beside; the
     platform face in WebKit (html.wk, frap-app.js), where it holds */
  --card-face: "Inter DEF", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  /* motion: a spring, where the browser can say one; an overshooting curve where it cannot */
  --spring: cubic-bezier(.2, .9, .25, 1.18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t: .36s;
  --t-slow: .62s;
  /* safe areas */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --tabbar-h: 62px;
}
html.wk { --card-face: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
/* THE STRESS THE SHELL MARKS (frap-stress.js, STRESS.md): a stressed vowel is a span. The face sets the U+0301 it keeps
   over it (.stress--n); where the face's own accent moves the pen (PT Serif, PT Sans) or stands beside (a platform face
   outside WebKit), the mark is drawn over it instead: the engine's .vk-acc, the same rule and the same marks */
.stress { position: relative; }
.stress::after { content: "\02CA"; content: "\02CA" / ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); pointer-events: none; }
.stress--up::after { top: -.2em; }
.stress--n::after { content: none; }
/* EMBER (THUD DEF, 2026-10-03): grace under fire. A blue-black ground; Ukraine's blue as cold light
   for state and progress (the accent), its yellow as molten gold for a right answer and for the one
   primary (the reward, the button). The field burns low and warm under it (frap-glass.js). Tokens
   only; the brighter P3 gold and blue are LIGHTS in thud-def.css (sparks, glows, strokes), never a
   ground for text. */
html[data-palette="ember"] {
  --ground: #05070d;
  --ground-rgb: 5, 7, 13;
  --field-max: #5d4c35;
  --ink: #f3f5f8;
  --ink-2: #d7dce4;
  --ink-3: #b6bec9;
  --acc-1: #d6e4ff;
  --acc-2: #a3c0ff;
  --acc-3: #6f9bff;
  --acc-4: #4a7ff2;
  --acc-ink: #a9c5ff;
  --on-acc: #040a1c;
  --acc-rgb: 120, 160, 255;
  --acc-deep: rgba(20, 50, 140, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(111, 155, 255, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f3f5f8;
  --rwd-1: #fff1c4;
  --rwd-2: #ffd66e;
  --rwd-3: #f5b13a;
  --rwd-4: #e08f23;
  --on-rwd: #1a1003;
  --rwd-glow: rgba(255, 190, 70, .6);
  --btn-1: #ffe39a;
  --btn-2: #f0a93a;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1a1003;
  --btn-rim: rgba(255, 245, 210, .85);
  --btn-deep: rgba(140, 80, 10, .55);
  --btn-sheen: rgba(255, 255, 255, .55);
  --seg-fill: var(--acc);
  --on-seg: #040a1c;
  --seg-glow: rgba(111, 155, 255, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 120, 160, 255;
  --glass-fill: rgba(9, 13, 24, .52);
  --glass-strong-fill: rgba(7, 10, 19, .78);
  --glass-thin-fill: rgba(12, 17, 30, .42);
  --glass-ghost: rgba(9, 13, 24, .24);
  --scrim: rgba(1, 2, 6, .6);
  --frost-off: #0c111d;
  --frost-off-strong: #090d17;
  --frost-off-thin: #101624;
  --pv-d1: #1f3f9a; --pv-d2: #e08f23; --pv-dg: #05070d; --pv-db: linear-gradient(135deg, #ffe39a, #f0a93a);
  --pv-l1: #d3ddf3; --pv-l2: #f5d68e; --pv-lg: #eef1f5; --pv-lb: linear-gradient(135deg, #ffd979, #f0a93a);
  --fld-1: rgba(30, 70, 190, .26); --fld-2: rgba(240, 150, 40, .16); --fld-3: rgba(20, 40, 110, .32); --fld-4: rgba(240, 190, 80, .10);
}
/* THUD CORE's two skins beside Ember (Dieselpunk), ported from Matcha Edition's Steampunk and Cyberpunk
   (app/tokens.css there, from its Figma file) onto THUD's roles: the accent is state and progress, the reward a
   right answer and the one primary. Ukraine's blue and yellow stay LIGHT in both: Steampunk's accent is blued
   steel (a watch hand's tempered blue) and its reward brass; Cyberpunk's accent is cyan neon and its reward
   sodium-yellow neon, its magenta only a lit edge (punk-cyber.css). Tokens only; the material is in punk-*.css. */
/* STEAMPUNK by night: lamplight on brass, walnut and leather in the shadows. */
html[data-palette="steam"] {
  --ground: #0d0907;
  --ground-rgb: 13, 9, 7;
  --field-max: #604a33;
  --ink: #f8f1e2;
  --ink-2: #dccdb1;
  --ink-3: #bfae8f;
  --acc-1: #dce8fb;
  --acc-2: #a9c4ee;
  --acc-3: #7ea4de;
  --acc-4: #5c86cc;
  --acc-ink: #a6c2ec;
  --on-acc: #08111f;
  --acc-rgb: 126, 164, 222;
  --acc-deep: rgba(30, 55, 110, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(126, 164, 222, .42);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f8f1e2;
  --rwd-1: #fff0c9;
  --rwd-2: #f2d07c;
  --rwd-3: #ddb158;
  --rwd-4: #c4943c;
  --on-rwd: #1b1106;
  --rwd-glow: rgba(240, 190, 90, .55);
  --btn-1: #f4d98f;
  --btn-2: #c99a45;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1b1106;
  --btn-rim: rgba(255, 240, 200, .8);
  --btn-deep: rgba(110, 70, 20, .55);
  --btn-sheen: rgba(255, 250, 230, .5);
  --seg-fill: var(--acc);
  --on-seg: #08111f;
  --seg-glow: rgba(126, 164, 222, .45);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 126, 164, 222;
  --glass-fill: rgba(28, 20, 13, .55);
  --glass-strong-fill: rgba(22, 16, 10, .80);
  --glass-thin-fill: rgba(32, 23, 15, .45);
  --glass-ghost: rgba(28, 20, 13, .24);
  --scrim: rgba(6, 4, 2, .6);
  --frost-off: #1a130d;
  --frost-off-strong: #140f0a;
  --frost-off-thin: #1f1710;
  --pv-d1: #5c86cc; --pv-d2: #c4943c; --pv-dg: #0d0907; --pv-db: linear-gradient(135deg, #f4d98f, #c99a45);
  --pv-l1: #c2d4f0; --pv-l2: #f2d58a; --pv-lg: #f3ead8; --pv-lb: linear-gradient(135deg, #f2d58a, #c99a45);
  --fld-1: rgba(225, 150, 60, .22); --fld-2: rgba(150, 85, 40, .18); --fld-3: rgba(40, 65, 115, .26); --fld-4: rgba(240, 200, 120, .10);
}
/* CYBERPUNK by night: smoked glass over a neon city in the rain. */
html[data-palette="cyber"] {
  --ground: #04060c;
  --ground-rgb: 4, 6, 12;
  --field-max: #404d72;
  --ink: #eef2fa;
  --ink-2: #c3cbdd;
  --ink-3: #a3adc4;
  --acc-1: #d2f7ff;
  --acc-2: #8deeff;
  --acc-3: #45e3ff;
  --acc-4: #14bde6;
  --acc-ink: #7ee9ff;
  --on-acc: #01131a;
  --acc-rgb: 69, 227, 255;
  --acc-deep: rgba(0, 110, 150, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(69, 227, 255, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #eef2fa;
  --rwd-1: #fffbd0;
  --rwd-2: #fff27e;
  --rwd-3: #ffe24d;
  --rwd-4: #f2c200;
  --on-rwd: #151100;
  --rwd-glow: rgba(255, 226, 77, .55);
  --btn-1: #fff27e;
  --btn-2: #ffc928;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #151100;
  --btn-rim: rgba(255, 255, 220, .85);
  --btn-deep: rgba(140, 100, 0, .5);
  --btn-sheen: rgba(255, 255, 255, .5);
  --seg-fill: var(--acc);
  --on-seg: #01131a;
  --seg-glow: rgba(69, 227, 255, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 69, 227, 255;
  --glass-fill: rgba(8, 11, 22, .55);
  --glass-strong-fill: rgba(6, 8, 17, .80);
  --glass-thin-fill: rgba(10, 14, 27, .45);
  --glass-ghost: rgba(8, 11, 22, .24);
  --scrim: rgba(1, 2, 6, .62);
  --frost-off: #0b0f1c;
  --frost-off-strong: #080b15;
  --frost-off-thin: #0e1322;
  --pv-d1: #14bde6; --pv-d2: #ff5ad9; --pv-dg: #04060c; --pv-db: linear-gradient(135deg, #fff27e, #ffc928);
  --pv-l1: #a8ecfa; --pv-l2: #ffd6f4; --pv-lg: #e8ecf4; --pv-lb: linear-gradient(135deg, #ffe866, #f5c518);
  --fld-1: rgba(30, 200, 255, .20); --fld-2: rgba(255, 60, 200, .16); --fld-3: rgba(30, 40, 150, .30); --fld-4: rgba(255, 220, 60, .07);
}
/* RAYPUNK by night (run 2, 2026-10-15): the atomic age's starfield from a chrome cockpit. Its accent atomic teal (state and
   progress), its reward an amber dial-light (a right answer, the one primary): Ukraine's blue and yellow kept LIGHT, as in
   the other skins. Cherry red is enamel trim only (punk-ray.css), never a state: red stays the wrong answer's. */
html[data-palette="ray"] {
  --ground: #050a0e;
  --ground-rgb: 5, 10, 14;
  --field-max: #375454;
  --ink: #f7f1e3;
  --ink-2: #d9d3c4;
  --ink-3: #bab4a4;
  --acc-1: #d2fbf3;
  --acc-2: #96f0e0;
  --acc-3: #52dcc6;
  --acc-4: #23bfa9;
  --acc-ink: #86ecda;
  --on-acc: #02150f;
  --acc-rgb: 82, 220, 198;
  --acc-deep: rgba(0, 110, 96, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(82, 220, 198, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f7f1e3;
  --rwd-1: #fff1cc;
  --rwd-2: #ffd27c;
  --rwd-3: #ffb14a;
  --rwd-4: #f28f2c;
  --on-rwd: #1c0f02;
  --rwd-glow: rgba(255, 176, 74, .55);
  --btn-1: #ffe6ad;
  --btn-2: #f6a845;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1c0f02;
  --btn-rim: rgba(255, 248, 225, .85);
  --btn-deep: rgba(150, 80, 10, .5);
  --btn-sheen: rgba(255, 255, 255, .55);
  --seg-fill: var(--acc);
  --on-seg: #02150f;
  --seg-glow: rgba(82, 220, 198, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 82, 220, 198;
  --glass-fill: rgba(8, 16, 20, .55);
  --glass-strong-fill: rgba(6, 12, 16, .80);
  --glass-thin-fill: rgba(10, 19, 24, .45);
  --glass-ghost: rgba(8, 16, 20, .24);
  --scrim: rgba(1, 4, 6, .6);
  --frost-off: #0c171c;
  --frost-off-strong: #09131a;
  --frost-off-thin: #101c22;
  --pv-d1: #23bfa9; --pv-d2: #f28f2c; --pv-dg: #050a0e; --pv-db: linear-gradient(135deg, #ffe6ad, #f6a845);
  --pv-l1: #b5ece2; --pv-l2: #ffd9a0; --pv-lg: #f4eee0; --pv-lb: linear-gradient(135deg, #ffd78a, #f0a040);
  --fld-1: rgba(40, 200, 180, .20); --fld-2: rgba(230, 60, 70, .12); --fld-3: rgba(20, 50, 80, .30); --fld-4: rgba(255, 180, 80, .08);
}
/* WEIRD WEST by night (run 4, 2026-10-19; the owner: «one with steampunk and wild west»): brass on the frontier under the
   Milky Way. Its accent desert turquoise (state and progress), its reward lamplit brass (a right answer, the one primary):
   Ukraine's blue and yellow kept LIGHT, as in the other skins. Copper and red rock are trim only (punk-west.css), never a
   state: red stays the wrong answer's. */
html[data-palette="west"] {
  --ground: #0b0806;
  --ground-rgb: 11, 8, 6;
  --field-max: #5c4c3e;
  --ink: #fdf6ea;
  --ink-2: #e2d6c3;
  --ink-3: #bfae97;
  --acc-1: #d4f7f0;
  --acc-2: #9ee6d8;
  --acc-3: #4fcab6;
  --acc-4: #23a892;
  --acc-ink: #8ee3d3;
  --on-acc: #02140f;
  --acc-rgb: 79, 202, 182;
  --acc-deep: rgba(0, 105, 90, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(79, 202, 182, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #fdf6ea;
  --rwd-1: #fff0c8;
  --rwd-2: #f6cf7c;
  --rwd-3: #e6a948;
  --rwd-4: #c9822c;
  --on-rwd: #1d1003;
  --rwd-glow: rgba(230, 169, 72, .55);
  --btn-1: #ffe3a6;
  --btn-2: #e9a24a;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1d1003;
  --btn-rim: rgba(255, 246, 222, .85);
  --btn-deep: rgba(140, 70, 15, .5);
  --btn-sheen: rgba(255, 255, 255, .5);
  --seg-fill: var(--acc);
  --on-seg: #02140f;
  --seg-glow: rgba(79, 202, 182, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 79, 202, 182;
  --glass-fill: rgba(22, 14, 9, .55);
  --glass-strong-fill: rgba(16, 10, 7, .80);
  --glass-thin-fill: rgba(26, 17, 11, .45);
  --glass-ghost: rgba(22, 14, 9, .24);
  --scrim: rgba(5, 3, 2, .6);
  --frost-off: #1a120c;
  --frost-off-strong: #140e09;
  --frost-off-thin: #20160f;
  --pv-d1: #23a892; --pv-d2: #c9822c; --pv-dg: #0b0806; --pv-db: linear-gradient(135deg, #ffe3a6, #e9a24a);
  --pv-l1: #b8ebe2; --pv-l2: #f7d3a0; --pv-lg: #f4e8d6; --pv-lb: linear-gradient(135deg, #ffd88f, #e6983e);
  --fld-1: rgba(60, 190, 170, .18); --fld-2: rgba(210, 110, 50, .16); --fld-3: rgba(45, 26, 16, .32); --fld-4: rgba(255, 190, 90, .08);
}
/* SILKPUNK by night (run 4, 2026-10-19; the owner: «and one with silkpunk»): bamboo, silk and bronze among karst peaks
   under the moon. Its accent jade (state and progress), its reward gold leaf (a right answer, the one primary): Ukraine's
   blue and yellow kept LIGHT. Vermilion lacquer and lapis are trim only (punk-silk.css), never a state. */
html[data-palette="silk"] {
  --ground: #07080b;
  --ground-rgb: 7, 8, 11;
  --field-max: #3c535d;
  --ink: #fcf8ee;
  --ink-2: #e3dccc;
  --ink-3: #bfb6a2;
  --acc-1: #d6f6e6;
  --acc-2: #9fe6c4;
  --acc-3: #55c99a;
  --acc-4: #2ea67a;
  --acc-ink: #8fe0bb;
  --on-acc: #02140c;
  --acc-rgb: 85, 201, 154;
  --acc-deep: rgba(0, 100, 70, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(85, 201, 154, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #fcf8ee;
  --rwd-1: #fff2c6;
  --rwd-2: #f7d77e;
  --rwd-3: #e9b64a;
  --rwd-4: #cf9530;
  --on-rwd: #1c1203;
  --rwd-glow: rgba(233, 182, 74, .55);
  --btn-1: #ffe9b0;
  --btn-2: #e8b24c;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1c1203;
  --btn-rim: rgba(255, 248, 226, .85);
  --btn-deep: rgba(140, 90, 15, .5);
  --btn-sheen: rgba(255, 255, 255, .5);
  --seg-fill: var(--acc);
  --on-seg: #02140c;
  --seg-glow: rgba(85, 201, 154, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 85, 201, 154;
  --glass-fill: rgba(10, 13, 19, .55);
  --glass-strong-fill: rgba(8, 10, 15, .80);
  --glass-thin-fill: rgba(12, 15, 22, .45);
  --glass-ghost: rgba(10, 13, 19, .24);
  --scrim: rgba(2, 3, 5, .6);
  --frost-off: #10141c;
  --frost-off-strong: #0c1017;
  --frost-off-thin: #141a23;
  --pv-d1: #2ea67a; --pv-d2: #cf9530; --pv-dg: #07080b; --pv-db: linear-gradient(135deg, #ffe9b0, #e8b24c);
  --pv-l1: #bfeedb; --pv-l2: #f8dc9c; --pv-lg: #f5efe1; --pv-lb: linear-gradient(135deg, #ffe08f, #e3a83c);
  --fld-1: rgba(70, 200, 150, .18); --fld-2: rgba(220, 70, 40, .12); --fld-3: rgba(30, 48, 110, .30); --fld-4: rgba(255, 200, 90, .08);
}
/* PETRYKIVKA by night (PETRYK.md, 2026-11-05; the owner: «This one must be excellent and the default»): the painted
   village under the moon, limewash and indigo, moonlight the only light. Its accent cornflower (state and progress), its
   reward wheat gold (a right answer): Ukraine's blue and gold are the point here. The primary key cobalt lacquer, its
   label limewash. Kalyna red and the leaf's green are trim only (punk-petryk.css), never a state: red is the wrong
   answer's. Never a black ground (PETRYK.md §1: Petrykivka on black is Zhostovo's tray, Russia's own). */
html[data-palette="petryk"] {
  --ground: #0f1528;
  --ground-rgb: 15, 21, 40;
  --field-max: #3b4c81;
  --ink: #f3eee3;
  --ink-2: #dcd8cf;
  --ink-3: #b9b8c4;
  --acc-1: #e3ebff;
  --acc-2: #bccfff;
  --acc-3: #93b2ff;
  --acc-4: #7397f2;
  --acc-ink: #a9c3ff;
  --on-acc: #081230;
  --acc-rgb: 147, 178, 255;
  --acc-deep: rgba(25, 50, 140, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(147, 178, 255, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f3eee3;
  --rwd-1: #fff1c8;
  --rwd-2: #f4da92;
  --rwd-3: #e6c15c;
  --rwd-4: #cfa23c;
  --on-rwd: #1c1405;
  --rwd-glow: rgba(230, 193, 92, .55);
  --btn-1: #4468d8;
  --btn-2: #2546a6;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #fbf8f0;
  --btn-rim: rgba(214, 226, 255, .6);
  --btn-deep: rgba(8, 18, 70, .55);
  --btn-sheen: rgba(255, 255, 255, .35);
  --seg-fill: var(--acc);
  --on-seg: #081230;
  --seg-glow: rgba(147, 178, 255, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 147, 178, 255;
  --glass-fill: rgba(26, 35, 66, .58);
  --glass-strong-fill: rgba(22, 30, 58, .84);
  --glass-thin-fill: rgba(26, 35, 66, .46);
  --glass-ghost: rgba(26, 35, 66, .24);
  --scrim: rgba(5, 8, 20, .6);
  --frost-off: #1a2342;
  --frost-off-strong: #151d38;
  --frost-off-thin: #1f2a4c;
  --pv-d1: #7397f2; --pv-d2: #cfa23c; --pv-dg: #0f1528; --pv-db: linear-gradient(135deg, #4468d8, #2546a6);
  --pv-l1: #c9d7ff; --pv-l2: #f4da92; --pv-lg: #f5f0e5; --pv-lb: linear-gradient(135deg, #3556c0, #1f3c94);
  --fld-1: rgba(110, 140, 230, .18); --fld-2: rgba(230, 193, 92, .10); --fld-3: rgba(20, 30, 80, .32); --fld-4: rgba(245, 240, 229, .06);
}
/* MATCHA (THUD CUP, CALM.md §4; the owner, 2026-10-27): Chasen's room, by the clock. The evening is the night register,
   the lamp lit and the curtain drawn (Chasen's evening paper and inks); the morning and the afternoon are Milk (below).
   Paper, not glass (CALM.md call 16): the cards are nearly opaque, the room's own paper. One accent, matcha's green, never
   red (call 10); the lamp's gold is the reward's. No sparks in the field (frap-glass.js PALETTES matcha: e 0). */
html[data-palette="matcha"] {
  --ground: #0b1230;
  --ground-rgb: 11, 18, 48;
  --field-max: #3e4e7c;
  --ink: #f5f1e6;
  --ink-2: #d2d3df;
  --ink-3: #a9aec3;
  --acc-1: #e4f2d6;
  --acc-2: #c3e2a8;
  --acc-3: #9cc97c;
  --acc-4: #79ad58;
  --acc-ink: #b6db9b;
  --on-acc: #0b1a08;
  --acc-rgb: 156, 201, 124;
  --acc-deep: rgba(40, 80, 30, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(156, 201, 124, .40);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f5f1e6;
  --rwd-1: #fff0cc;
  --rwd-2: #f6d58f;
  --rwd-3: #e8b25a;
  --rwd-4: #d49a3e;
  --on-rwd: #1c1203;
  --rwd-glow: rgba(232, 178, 90, .50);
  --btn-1: #d4eabf;
  --btn-2: #9cc97c;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #0b1a08;
  --btn-rim: rgba(241, 250, 232, .80);
  --btn-deep: rgba(40, 80, 30, .50);
  --btn-sheen: rgba(255, 255, 255, .45);
  --seg-fill: var(--acc);
  --on-seg: #0b1a08;
  --seg-glow: rgba(156, 201, 124, .45);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 156, 201, 124;
  --glass-fill: rgba(20, 29, 66, .84);
  --glass-strong-fill: rgba(17, 26, 58, .90);
  --glass-thin-fill: rgba(26, 36, 78, .80);
  --glass-ghost: rgba(20, 29, 66, .40);
  --scrim: rgba(4, 7, 20, .62);
  --frost-off: #141d42;
  --frost-off-strong: #111a3a;
  --frost-off-thin: #1a244e;
  --pv-d1: #79ad58; --pv-d2: #d49a3e; --pv-dg: #0b1230; --pv-db: linear-gradient(135deg, #d4eabf, #9cc97c);
  --pv-l1: #d9ecc8; --pv-l2: #f6e3b8; --pv-lg: #f4f0e7; --pv-lb: linear-gradient(135deg, #4d7d35, #3b6627);
  --fld-1: rgba(120, 170, 90, .14); --fld-2: rgba(232, 178, 90, .10); --fld-3: rgba(30, 44, 100, .32); --fld-4: rgba(255, 220, 160, .06);
}
/* COFFEE (THUD CUP's past, CALM.md §4, calls 10 and 16): a Lviv coffee house of about 1900 at its lace-curtained window.
   The evening is the night register: the walnut room lamp-lit, the square in blue dusk beyond the glass; the paper a dark
   walnut plate, the inks the lace's cream. One accent, the cup's gilt (call 10); the reward is the crema's warmer amber.
   No sparks in the field (frap-glass.js PALETTES coffee: e 0). Its morning and afternoon are Milk (below). */
html[data-palette="coffee"] {
  --ground: #120c08;
  --ground-rgb: 18, 12, 8;
  --field-max: #644b36;
  --ink: #f8f1e4;
  --ink-2: #d9ccb6;
  --ink-3: #b2a48e;
  --acc-1: #f8e8bc;
  --acc-2: #eed08a;
  --acc-3: #ddb561;
  --acc-4: #c49b47;
  --acc-ink: #e9ca7e;
  --on-acc: #1b1306;
  --acc-rgb: 221, 181, 97;
  --acc-deep: rgba(90, 62, 20, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(221, 181, 97, .38);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f8f1e4;
  --rwd-1: #fde4c4;
  --rwd-2: #f4c590;
  --rwd-3: #e7a967;
  --rwd-4: #d08c49;
  --on-rwd: #1d1005;
  --rwd-glow: rgba(231, 169, 103, .48);
  --btn-1: #f1d692;
  --btn-2: #ddb561;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1b1306;
  --btn-rim: rgba(252, 242, 214, .80);
  --btn-deep: rgba(90, 62, 20, .50);
  --btn-sheen: rgba(255, 255, 255, .45);
  --seg-fill: var(--acc);
  --on-seg: #1b1306;
  --seg-glow: rgba(221, 181, 97, .45);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 221, 181, 97;
  --glass-fill: rgba(33, 23, 15, .84);
  --glass-strong-fill: rgba(28, 19, 13, .90);
  --glass-thin-fill: rgba(41, 29, 20, .80);
  --glass-ghost: rgba(33, 23, 16, .40);
  --scrim: rgba(10, 6, 3, .62);
  --frost-off: #21170f;
  --frost-off-strong: #1c130d;
  --frost-off-thin: #291d14;
  --pv-d1: #c49b47; --pv-d2: #d08c49; --pv-dg: #120c08; --pv-db: linear-gradient(135deg, #f1d692, #ddb561);
  --pv-l1: #f0e1bb; --pv-l2: #f6dcc0; --pv-lg: #f6f0e6; --pv-lb: linear-gradient(135deg, #8a6a22, #6e5212);
  --fld-1: rgba(221, 181, 97, .12); --fld-2: rgba(231, 150, 80, .10); --fld-3: rgba(28, 40, 86, .30); --fld-4: rgba(255, 222, 170, .06);
}
/* TEA (THUD CUP's future, CALM.md §4, calls 10 and 16): a whitewashed country house in summer, its window open on a cherry
   orchard. The evening is the night register: the orchard under the moon, deep blue; the paper the night's linen. One
   accent, summer's blue (the painted window frames of a Ukrainian house, call 10); the reward is linden honey. No sparks
   (frap-glass.js PALETTES tea: e 0). Its morning and afternoon are Milk (below). */
html[data-palette="tea"] {
  --ground: #0a1320;
  --ground-rgb: 10, 19, 32;
  --field-max: #34507a;
  --ink: #f2f4f7;
  --ink-2: #cdd5e0;
  --ink-3: #a4b0c1;
  --acc-1: #dce9fb;
  --acc-2: #b6d2f5;
  --acc-3: #8eb8ec;
  --acc-4: #6c9edf;
  --acc-ink: #aaccf4;
  --on-acc: #06142a;
  --acc-rgb: 142, 184, 236;
  --acc-deep: rgba(24, 52, 96, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(142, 184, 236, .38);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f2f4f7;
  --rwd-1: #fbefc6;
  --rwd-2: #f2d683;
  --rwd-3: #e3b84b;
  --rwd-4: #ca9a31;
  --on-rwd: #1c1403;
  --rwd-glow: rgba(227, 184, 75, .48);
  --btn-1: #d0e3fa;
  --btn-2: #8eb8ec;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #06142a;
  --btn-rim: rgba(236, 244, 254, .80);
  --btn-deep: rgba(24, 52, 96, .50);
  --btn-sheen: rgba(255, 255, 255, .45);
  --seg-fill: var(--acc);
  --on-seg: #06142a;
  --seg-glow: rgba(142, 184, 236, .45);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 142, 184, 236;
  --glass-fill: rgba(17, 29, 47, .84);
  --glass-strong-fill: rgba(14, 24, 40, .90);
  --glass-thin-fill: rgba(22, 36, 57, .80);
  --glass-ghost: rgba(17, 29, 47, .40);
  --scrim: rgba(3, 7, 14, .62);
  --frost-off: #111d2f;
  --frost-off-strong: #0e1828;
  --frost-off-thin: #162439;
  --pv-d1: #6c9edf; --pv-d2: #ca9a31; --pv-dg: #0a1320; --pv-db: linear-gradient(135deg, #d0e3fa, #8eb8ec);
  --pv-l1: #d6e5f7; --pv-l2: #f7e7b4; --pv-lg: #f5f6f3; --pv-lb: linear-gradient(135deg, #2f65ad, #23508f);
  --fld-1: rgba(142, 184, 236, .12); --fld-2: rgba(227, 184, 75, .08); --fld-3: rgba(20, 44, 90, .34); --fld-4: rgba(230, 240, 255, .06);
}
/* MILK: the light register. The same shapes, the same light; a cool white for the ground in Opal
   (cream in Rose gold), near-black ink, and the accent a shade deeper so it holds its edge on a
   pale field. */
html[data-look="milk"] {
  color-scheme: light;
  --ground: #f2f5f6;
  --ground-rgb: 242, 245, 246;
  --field-min: #bac4c9;
  --ink: #11161a;
  --ink-2: #2e373d;
  --ink-3: #4c565e;
  --acc-1: #7fe0c6;
  --acc-2: #6fa8f5;
  --acc-3: #a58cf0;
  --acc-4: #c6a6ff;
  --acc-ink: #065444;
  --gauge-num: linear-gradient(var(--acc-ink), var(--acc-ink));
  --gauge-ink: #065444;
  --on-acc: #03140f;
  --acc-rgb: 30, 150, 125;
  --acc-deep: rgba(40, 70, 120, .25);
  --sel-wash: color-mix(in srgb, var(--acc-2) 14%, transparent);
  --glow: rgba(63, 140, 232, .28);
  --rwd-glow: rgba(111, 168, 245, .42);
  --btn-1: #1a1e22;
  --btn-2: #050607;
  --on-btn: #ffffff;
  --btn-rim: rgba(255, 255, 255, .22);
  --btn-deep: rgba(0, 0, 0, .4);
  --btn-sheen: rgba(255, 255, 255, .2);
  --seg-fill: #ffffff;
  --on-seg: #11161a;
  --seg-glow: rgba(40, 56, 70, .22);
  --wrong-ink: #a52c1c;
  --wrong: #c8452f;
  --glass-fill: rgba(252, 253, 254, .80);
  --glass-top: rgba(255, 255, 255, 0);
  --glass-strong-fill: rgba(252, 253, 254, .92);
  --glass-thin-fill: rgba(252, 253, 254, .66);
  --glass-ghost: rgba(250, 252, 253, .22);
  --glass-sat: 150%;
  --rim: rgba(255, 255, 255, .75);
  --rim-soft: rgba(255, 255, 255, .25);
  --rim-far: rgba(70, 90, 110, .12);
  --hi: rgba(255, 255, 255, .7);
  --cast: 0 10px 30px -18px rgba(40, 56, 70, .22), 0 1px 2px rgba(40, 56, 70, .06);
  --cast-answer: 0 8px 20px -14px rgba(40, 56, 70, .20);
  --cast-sheet: 0 18px 44px -20px rgba(40, 56, 70, .30);
  --spot: rgba(255, 255, 255, .35);
  --sheen: rgba(255, 255, 255, .30);
  --scrim: rgba(24, 32, 40, .28);
  --thumb: rgba(255, 255, 255, .82);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(40, 56, 70, .16);
  --tint: 30, 44, 56;
  --shade: 40, 56, 70;
  --sk: .24;   /* matte: the shades under and inside a surface, quieter (round four) */
  --frost-off: #f5f7f8;
  --frost-off-strong: #fbfcfc;
  --frost-off-thin: #eef1f3;
  --fld-1: rgba(200, 240, 228, .85); --fld-2: rgba(214, 228, 252, .70); --fld-3: rgba(228, 220, 252, .80); --fld-4: rgba(250, 232, 230, .80);
}
/* EMBER UNDER MILK: Dawn. A cool steel-white ground, near-black ink; the accent's blues lifted so
   their dark ink holds on every stop; the gold primary as it is in the dark. */
html[data-look="milk"][data-palette="ember"] {
  --ground: #eef1f5;
  --ground-rgb: 238, 241, 245;
  --field-min: #b9c3d3;
  --ink: #0b1220;
  --ink-2: #263046;
  --ink-3: #414c63;
  --acc-1: #b9cfff;
  --acc-2: #8aa9f8;
  --acc-3: #6e93f0;
  --acc-4: #5a82ea;
  --acc-ink: #163c9e;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #0b1220;
  --on-acc: #04102e;
  --acc-rgb: 61, 107, 224;
  --acc-deep: rgba(20, 50, 140, .35);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(61, 107, 224, .40);
  --ring-1: #6e93f0;
  --ring-2: #5a82ea;
  --ring-3: #3d6be0;
  --ring-4: #2350c2;
  --rwd-1: #ffe7a6;
  --rwd-2: #ffd06a;
  --rwd-3: #f4b544;
  --rwd-4: #e39e2c;
  --on-rwd: #1a1003;
  --rwd-glow: rgba(240, 160, 40, .5);
  --btn-1: #ffd979;
  --btn-2: #f0a93a;
  --on-btn: #1a1003;
  --btn-rim: rgba(255, 255, 255, .85);
  --btn-deep: rgba(140, 80, 10, .45);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #04102e;
  --seg-glow: rgba(61, 107, 224, .45);
  --glass-fill: rgba(255, 255, 255, .80);
  --glass-strong-fill: rgba(255, 255, 255, .92);
  --glass-thin-fill: rgba(255, 255, 255, .66);
  --glass-ghost: rgba(255, 255, 255, .22);
  --rim-far: rgba(20, 32, 64, .12);
  --cast: 0 10px 30px -18px rgba(20, 32, 64, .26), 0 1px 2px rgba(20, 32, 64, .06);
  --cast-answer: 0 8px 20px -14px rgba(20, 32, 64, .22);
  --cast-sheet: 0 18px 44px -20px rgba(20, 32, 64, .32);
  --scrim: rgba(10, 16, 32, .32);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(20, 32, 64, .16);
  --tint: 20, 32, 64;
  --shade: 20, 32, 64;
  --frost-off: #f4f6f9;
  --frost-off-strong: #fafbfd;
  --frost-off-thin: #e8ecf2;
  --fld-1: rgba(200, 214, 240, .85); --fld-2: rgba(245, 214, 142, .50); --fld-3: rgba(186, 202, 232, .80); --fld-4: rgba(250, 236, 205, .80);
}
/* Steampunk by day: the workshop in morning sun, parchment and walnut ink, blued steel a shade deeper. */
html[data-look="milk"][data-palette="steam"] {
  --ground: #f3ead8;
  --ground-rgb: 243, 234, 216;
  --field-min: #c8b693;
  --ink: #23180f;
  --ink-2: #47372a;
  --ink-3: #5e4b39;
  --acc-1: #c2d4f0;
  --acc-2: #93b2e3;
  --acc-3: #6f95d6;
  --acc-4: #5781c9;
  --acc-ink: #24467f;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #23180f;
  --on-acc: #08111f;
  --acc-rgb: 60, 100, 170;
  --acc-deep: rgba(30, 55, 110, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(60, 100, 170, .35);
  --ring-1: #6f95d6;
  --ring-2: #5781c9;
  --ring-3: #3f6bb7;
  --ring-4: #2b549c;
  --rwd-1: #ffe8b0;
  --rwd-2: #f3cd78;
  --rwd-3: #ddae55;
  --rwd-4: #c4943c;
  --on-rwd: #1b1106;
  --rwd-glow: rgba(200, 140, 40, .45);
  --btn-1: #f2d58a;
  --btn-2: #c99a45;
  --on-btn: #1b1106;
  --btn-rim: rgba(255, 250, 235, .85);
  --btn-deep: rgba(110, 70, 20, .45);
  --btn-sheen: rgba(255, 255, 255, .55);
  --seg-fill: var(--acc);
  --on-seg: #08111f;
  --seg-glow: rgba(60, 100, 170, .40);
  --glass-fill: rgba(253, 248, 238, .80);
  --glass-strong-fill: rgba(253, 248, 238, .93);
  --glass-thin-fill: rgba(253, 248, 238, .66);
  --glass-ghost: rgba(253, 248, 238, .22);
  --rim-far: rgba(70, 45, 20, .14);
  --cast: 0 10px 30px -18px rgba(60, 38, 16, .30), 0 1px 2px rgba(60, 38, 16, .08);
  --cast-answer: 0 8px 20px -14px rgba(60, 38, 16, .24);
  --cast-sheet: 0 18px 44px -20px rgba(60, 38, 16, .34);
  --scrim: rgba(40, 26, 12, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(60, 38, 16, .18);
  --tint: 60, 38, 16;
  --shade: 60, 38, 16;
  --frost-off: #f8f1e3;
  --frost-off-strong: #fcf8ef;
  --frost-off-thin: #f1e8d6;
  --fld-1: rgba(250, 225, 170, .85); --fld-2: rgba(235, 215, 185, .70); --fld-3: rgba(205, 220, 240, .70); --fld-4: rgba(245, 230, 205, .80);
}
/* Cyberpunk by day: the same city on an overcast morning, frosted glass, the neon a shade deeper. */
html[data-look="milk"][data-palette="cyber"] {
  --ground: #e8ecf4;
  --ground-rgb: 232, 236, 244;
  --field-min: #b6bfd0;
  --ink: #0b0f1c;
  --ink-2: #283048;
  --ink-3: #414a64;
  --acc-1: #a8ecfa;
  --acc-2: #62d6f0;
  --acc-3: #1fb7da;
  --acc-4: #0e9cc0;
  --acc-ink: #00495a;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #0b0f1c;
  --on-acc: #01131a;
  --acc-rgb: 0, 140, 175;
  --acc-deep: rgba(0, 90, 120, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 150, 190, .35);
  --ring-1: #1fb7da;
  --ring-2: #0e9cc0;
  --ring-3: #007f9f;
  --ring-4: #006580;
  --rwd-1: #fff3a8;
  --rwd-2: #ffe066;
  --rwd-3: #f5c518;
  --rwd-4: #e0aa00;
  --on-rwd: #151100;
  --rwd-glow: rgba(230, 180, 0, .45);
  --btn-1: #ffe866;
  --btn-2: #f5c518;
  --on-btn: #151100;
  --btn-rim: rgba(255, 255, 240, .85);
  --btn-deep: rgba(140, 100, 0, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #01131a;
  --seg-glow: rgba(0, 150, 190, .40);
  --glass-fill: rgba(250, 252, 255, .80);
  --glass-strong-fill: rgba(250, 252, 255, .92);
  --glass-thin-fill: rgba(250, 252, 255, .66);
  --glass-ghost: rgba(250, 252, 255, .22);
  --rim-far: rgba(14, 20, 40, .12);
  --cast: 0 10px 30px -18px rgba(14, 20, 40, .26), 0 1px 2px rgba(14, 20, 40, .06);
  --cast-answer: 0 8px 20px -14px rgba(14, 20, 40, .22);
  --cast-sheet: 0 18px 44px -20px rgba(14, 20, 40, .32);
  --scrim: rgba(8, 12, 26, .32);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(14, 20, 40, .16);
  --tint: 14, 20, 40;
  --shade: 14, 20, 40;
  --frost-off: #f3f5fa;
  --frost-off-strong: #fafbfd;
  --frost-off-thin: #e6eaf2;
  --fld-1: rgba(190, 236, 248, .85); --fld-2: rgba(250, 214, 242, .55); --fld-3: rgba(200, 210, 240, .80); --fld-4: rgba(250, 244, 205, .70);
}
/* Raypunk by day: the World's Fair in sunshine, cream enamel and a sky of pale teal, the teal a shade deeper. */
html[data-look="milk"][data-palette="ray"] {
  --ground: #f4eee0;
  --ground-rgb: 244, 238, 224;
  --field-min: #c0bca8;
  --ink: #13191c;
  --ink-2: #2f3a3e;
  --ink-3: #46535a;
  --acc-1: #b5ece2;
  --acc-2: #74d8c8;
  --acc-3: #2fbca8;
  --acc-4: #1ba08e;
  --acc-ink: #005248;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #13191c;
  --on-acc: #02150f;
  --acc-rgb: 0, 140, 124;
  --acc-deep: rgba(0, 95, 85, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 150, 132, .35);
  --ring-1: #2fbca8;
  --ring-2: #1ba08e;
  --ring-3: #068573;
  --ring-4: #006a5c;
  --rwd-1: #ffe9b8;
  --rwd-2: #ffcf7a;
  --rwd-3: #f6ab45;
  --rwd-4: #e48a22;
  --on-rwd: #1c0f02;
  --rwd-glow: rgba(220, 130, 30, .45);
  --btn-1: #ffd78a;
  --btn-2: #f0a040;
  --on-btn: #1c0f02;
  --btn-rim: rgba(255, 252, 240, .85);
  --btn-deep: rgba(150, 80, 10, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #02150f;
  --seg-glow: rgba(0, 150, 132, .40);
  --glass-fill: rgba(255, 252, 244, .80);
  --glass-strong-fill: rgba(255, 252, 244, .93);
  --glass-thin-fill: rgba(255, 252, 244, .66);
  --glass-ghost: rgba(255, 252, 244, .22);
  --rim-far: rgba(20, 40, 44, .12);
  --cast: 0 10px 30px -18px rgba(16, 36, 40, .28), 0 1px 2px rgba(16, 36, 40, .07);
  --cast-answer: 0 8px 20px -14px rgba(16, 36, 40, .22);
  --cast-sheet: 0 18px 44px -20px rgba(16, 36, 40, .32);
  --scrim: rgba(10, 24, 28, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(16, 36, 40, .16);
  --tint: 16, 36, 40;
  --shade: 16, 36, 40;
  --frost-off: #f8f3e8;
  --frost-off-strong: #fcf9f2;
  --frost-off-thin: #efe8d8;
  --fld-1: rgba(190, 240, 230, .85); --fld-2: rgba(250, 205, 200, .45); --fld-3: rgba(205, 225, 230, .80); --fld-4: rgba(255, 232, 196, .80);
}
/* Weird West by day: a golden morning in the canyon, sand and adobe, the turquoise a shade deeper. */
html[data-look="milk"][data-palette="west"] {
  --ground: #f6ecdc;
  --ground-rgb: 246, 236, 220;
  --field-min: #c8b9a0;
  --ink: #1c140d;
  --ink-2: #3a2c20;
  --ink-3: #54432f;
  --acc-1: #bfeee5;
  --acc-2: #7dd9c8;
  --acc-3: #2fb4a0;
  --acc-4: #179683;
  --acc-ink: #004c42;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #1c140d;
  --on-acc: #02140f;
  --acc-rgb: 0, 138, 120;
  --acc-deep: rgba(0, 95, 82, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 146, 128, .35);
  --ring-1: #2fb4a0;
  --ring-2: #179683;
  --ring-3: #077e6c;
  --ring-4: #00675a;
  --rwd-1: #ffe9b8;
  --rwd-2: #f8cc7a;
  --rwd-3: #eaa645;
  --rwd-4: #d28426;
  --on-rwd: #1d1003;
  --rwd-glow: rgba(210, 130, 40, .45);
  --btn-1: #ffd68a;
  --btn-2: #ea9c40;
  --on-btn: #1d1003;
  --btn-rim: rgba(255, 251, 238, .85);
  --btn-deep: rgba(150, 75, 10, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #02140f;
  --seg-glow: rgba(0, 146, 128, .40);
  --glass-fill: rgba(255, 250, 241, .80);
  --glass-strong-fill: rgba(255, 250, 241, .93);
  --glass-thin-fill: rgba(255, 250, 241, .66);
  --glass-ghost: rgba(255, 250, 241, .22);
  --rim-far: rgba(48, 30, 16, .12);
  --cast: 0 10px 30px -18px rgba(48, 30, 16, .28), 0 1px 2px rgba(48, 30, 16, .07);
  --cast-answer: 0 8px 20px -14px rgba(48, 30, 16, .22);
  --cast-sheet: 0 18px 44px -20px rgba(48, 30, 16, .32);
  --scrim: rgba(30, 18, 8, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(48, 30, 16, .16);
  --tint: 48, 30, 16;
  --shade: 48, 30, 16;
  --frost-off: #f9f1e5;
  --frost-off-strong: #fcf8f1;
  --frost-off-thin: #f0e5d3;
  --fld-1: rgba(190, 238, 228, .85); --fld-2: rgba(248, 210, 180, .50); --fld-3: rgba(230, 215, 195, .80); --fld-4: rgba(255, 230, 190, .80);
}
/* Silkpunk by day: a misty morning among the peaks, silk cream and celadon, the jade a shade deeper. */
html[data-look="milk"][data-palette="silk"] {
  --ground: #f5efe1;
  --ground-rgb: 245, 239, 225;
  --field-min: #bdbcae;
  --ink: #16161a;
  --ink-2: #2f3036;
  --ink-3: #474a52;
  --acc-1: #bfeedb;
  --acc-2: #7fd8b2;
  --acc-3: #34b585;
  --acc-4: #1e9668;
  --acc-ink: #004c32;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #16161a;
  --on-acc: #02140c;
  --acc-rgb: 0, 140, 96;
  --acc-deep: rgba(0, 95, 66, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 150, 104, .35);
  --ring-1: #34b585;
  --ring-2: #1e9668;
  --ring-3: #0a7e54;
  --ring-4: #006843;
  --rwd-1: #ffeebb;
  --rwd-2: #f8d47e;
  --rwd-3: #ebb447;
  --rwd-4: #d4932a;
  --on-rwd: #1c1203;
  --rwd-glow: rgba(212, 147, 42, .45);
  --btn-1: #ffdf92;
  --btn-2: #e8aa42;
  --on-btn: #1c1203;
  --btn-rim: rgba(255, 252, 240, .85);
  --btn-deep: rgba(150, 95, 10, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #02140c;
  --seg-glow: rgba(0, 150, 104, .40);
  --glass-fill: rgba(255, 252, 245, .80);
  --glass-strong-fill: rgba(255, 252, 245, .93);
  --glass-thin-fill: rgba(255, 252, 245, .66);
  --glass-ghost: rgba(255, 252, 245, .22);
  --rim-far: rgba(20, 26, 40, .12);
  --cast: 0 10px 30px -18px rgba(20, 26, 40, .28), 0 1px 2px rgba(20, 26, 40, .07);
  --cast-answer: 0 8px 20px -14px rgba(20, 26, 40, .22);
  --cast-sheet: 0 18px 44px -20px rgba(20, 26, 40, .32);
  --scrim: rgba(10, 14, 26, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(20, 26, 40, .16);
  --tint: 20, 26, 40;
  --shade: 20, 26, 40;
  --frost-off: #f8f4ea;
  --frost-off-strong: #fcfaf4;
  --frost-off-thin: #eee8d9;
  --fld-1: rgba(190, 236, 214, .85); --fld-2: rgba(248, 200, 190, .45); --fld-3: rgba(200, 212, 236, .80); --fld-4: rgba(255, 236, 196, .80);
}
/* Petrykivka by day: the white wall in the morning sun, limewash and indigo ink, the state cobalt, the reward ochre. */
html[data-look="milk"][data-palette="petryk"] {
  --ground: #f5f0e5;
  --ground-rgb: 245, 240, 229;
  --field-min: #cbc6b9;
  --ink: #1c2242;
  --ink-2: #2f3554;
  --ink-3: #474c66;
  --acc-1: #d3dfff;
  --acc-2: #a6bdf7;
  --acc-3: #7a9bec;
  --acc-4: #5d82e2;
  --acc-ink: #2546a6;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #1c2242;
  --on-acc: #0b1433;
  --acc-rgb: 37, 70, 166;
  --acc-deep: rgba(25, 50, 140, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(37, 70, 166, .30);
  --ring-1: #5d82e2;
  --ring-2: #3f63cf;
  --ring-3: #2c4fb6;
  --ring-4: #2546a6;
  --rwd-1: #ffefc2;
  --rwd-2: #f6d88a;
  --rwd-3: #e9bb52;
  --rwd-4: #d29a2c;
  --on-rwd: #1c1405;
  --rwd-glow: rgba(150, 102, 15, .40);
  --btn-1: #3556c0;
  --btn-2: #1f3c94;
  --on-btn: #fbf8f0;
  --btn-rim: rgba(255, 255, 255, .7);
  --btn-deep: rgba(20, 40, 110, .35);
  --btn-sheen: rgba(255, 255, 255, .45);
  --seg-fill: var(--acc);
  --on-seg: #0b1433;
  --seg-glow: rgba(37, 70, 166, .35);
  --glass-fill: rgba(249, 246, 238, .84);
  --glass-strong-fill: rgba(252, 250, 245, .90);
  --glass-thin-fill: rgba(239, 233, 220, .80);
  --glass-ghost: rgba(251, 248, 240, .22);
  --rim-far: rgba(28, 34, 66, .12);
  --cast: 0 10px 30px -18px rgba(28, 34, 66, .28), 0 1px 2px rgba(28, 34, 66, .07);
  --cast-answer: 0 8px 20px -14px rgba(28, 34, 66, .22);
  --cast-sheet: 0 18px 44px -20px rgba(28, 34, 66, .32);
  --scrim: rgba(12, 16, 36, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(28, 34, 66, .16);
  --tint: 28, 34, 66;
  --shade: 28, 34, 66;
  --frost-off: #f9f6ee;
  --frost-off-strong: #fcfaf5;
  --frost-off-thin: #efe9dc;
  --fld-1: rgba(200, 214, 250, .85); --fld-2: rgba(246, 220, 160, .50); --fld-3: rgba(214, 222, 240, .80); --fld-4: rgba(255, 244, 222, .80);
}
/* MATCHA BY DAY: the morning (Chasen's morning paper, its cool ink, matcha's deep green), and the afternoon's own paper
   (html[data-part="afternoon"], frap-app.js: «Own afternoon paper», Chasen's, 2026-10-08), warm plaster and honey light. */
html[data-look="milk"][data-palette="matcha"] {
  --ground: #f4f0e7;
  --ground-rgb: 244, 240, 231;
  --field-min: #c4beae;
  --ink: #1f2a36;
  --ink-2: #3d4854;
  --ink-3: #525c68;
  --acc-1: #d9ecc8;
  --acc-2: #b5d89a;
  --acc-3: #8dbf6c;
  --acc-4: #6fa64f;
  --acc-ink: #2c4f1c;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #1f2a36;
  --on-acc: #0f2108;
  --acc-rgb: 59, 102, 39;
  --acc-deep: rgba(40, 80, 30, .28);
  --sel-wash: color-mix(in srgb, var(--acc-3) 16%, transparent);
  --glow: rgba(96, 142, 62, .30);
  --ring-1: #8dbf6c;
  --ring-2: #6fa64f;
  --ring-3: #4d7d35;
  --ring-4: #3b6627;
  --rwd-1: #ffeebb;
  --rwd-2: #f8d47e;
  --rwd-3: #ebb447;
  --rwd-4: #d4932a;
  --on-rwd: #1c1203;
  --rwd-glow: rgba(212, 147, 42, .40);
  --btn-1: #4d7d35;
  --btn-2: #3b6627;
  --on-btn: #fffdf8;
  --btn-rim: rgba(255, 253, 248, .55);
  --btn-deep: rgba(30, 60, 20, .40);
  --btn-sheen: rgba(255, 255, 255, .35);
  --seg-fill: var(--acc);
  --on-seg: #0f2108;
  --seg-glow: rgba(96, 142, 62, .35);
  --glass-fill: rgba(255, 253, 248, .84);
  --glass-strong-fill: rgba(255, 255, 255, .90);
  --glass-thin-fill: rgba(247, 243, 234, .80);
  --glass-ghost: rgba(255, 253, 248, .40);
  --rim-far: rgba(31, 42, 54, .12);
  --cast: 0 10px 30px -18px rgba(31, 42, 54, .26), 0 1px 2px rgba(31, 42, 54, .07);
  --cast-answer: 0 8px 20px -14px rgba(31, 42, 54, .20);
  --cast-sheet: 0 18px 44px -20px rgba(31, 42, 54, .30);
  --scrim: rgba(31, 42, 54, .42);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(31, 42, 54, .16);
  --tint: 31, 42, 54;
  --shade: 31, 42, 54;
  --frost-off: #fffdf8;
  --frost-off-strong: #ffffff;
  --frost-off-thin: #f7f3ea;
  --fld-1: rgba(214, 232, 196, .80); --fld-2: rgba(246, 226, 184, .50); --fld-3: rgba(205, 214, 225, .70); --fld-4: rgba(255, 246, 224, .80);
}
html[data-look="milk"][data-palette="matcha"][data-part="afternoon"] {
  --ground: #f7eedc;
  --ground-rgb: 247, 238, 220;
  --field-min: #c8b99c;
  --ink: #2b2116;
  --ink-2: #45372a;
  --ink-3: #5c4b37;
  --acc-ink: #34471a;
  --gauge-ink: #2b2116;
  --btn-1: #55702b;
  --btn-2: #46601f;
  --on-btn: #fffaf0;
  --glass-fill: rgba(255, 250, 240, .84);
  --glass-strong-fill: rgba(255, 255, 255, .90);
  --glass-thin-fill: rgba(249, 241, 224, .80);
  --glass-ghost: rgba(255, 250, 240, .40);
  --rim-far: rgba(43, 33, 22, .12);
  --cast: 0 10px 30px -18px rgba(43, 33, 22, .26), 0 1px 2px rgba(43, 33, 22, .07);
  --cast-answer: 0 8px 20px -14px rgba(43, 33, 22, .20);
  --cast-sheet: 0 18px 44px -20px rgba(43, 33, 22, .30);
  --scrim: rgba(43, 33, 22, .42);
  --tint: 43, 33, 22;
  --shade: 43, 33, 22;
  --frost-off: #fffaf0;
  --frost-off-thin: #f9f1e0;
  --fld-1: rgba(226, 222, 178, .70); --fld-2: rgba(240, 208, 150, .55); --fld-3: rgba(228, 211, 178, .70); --fld-4: rgba(255, 240, 210, .80);
}
/* COFFEE BY DAY: the morning (the lace's light on the marble: cream paper, espresso ink, the gilt deepened to old gold for
   words and buttons), and the afternoon's own warmer paper (html[data-part="afternoon"]), honey on the marble. */
html[data-look="milk"][data-palette="coffee"] {
  --ground: #f6f0e6;
  --ground-rgb: 246, 240, 230;
  --field-min: #c8bba6;
  --ink: #2a1d13;
  --ink-2: #4a3a2c;
  --ink-3: #5f4f41;
  --acc-1: #f3e3b8;
  --acc-2: #e4c680;
  --acc-3: #c9a34b;
  --acc-4: #a8842f;
  --acc-ink: #5a420c;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #2a1d13;
  --on-acc: #1f1606;
  --acc-rgb: 138, 104, 34;
  --acc-deep: rgba(90, 64, 20, .28);
  --sel-wash: color-mix(in srgb, var(--acc-3) 16%, transparent);
  --glow: rgba(168, 132, 47, .30);
  --ring-1: #c9a34b;
  --ring-2: #a8842f;
  --ring-3: #8a6a22;
  --ring-4: #6c5112;
  --rwd-1: #ffe7c6;
  --rwd-2: #f6c991;
  --rwd-3: #e7aa61;
  --rwd-4: #cf8b47;
  --on-rwd: #1d1005;
  --rwd-glow: rgba(207, 139, 71, .40);
  --btn-1: #8a6a22;
  --btn-2: #6c5112;
  --on-btn: #fffaf0;
  --btn-rim: rgba(255, 250, 240, .55);
  --btn-deep: rgba(70, 50, 14, .40);
  --btn-sheen: rgba(255, 255, 255, .35);
  --seg-fill: var(--acc);
  --on-seg: #1f1606;
  --seg-glow: rgba(168, 132, 47, .35);
  --glass-fill: rgba(255, 252, 246, .84);
  --glass-strong-fill: rgba(255, 255, 255, .90);
  --glass-thin-fill: rgba(248, 242, 232, .80);
  --glass-ghost: rgba(255, 252, 246, .40);
  --rim-far: rgba(42, 29, 19, .12);
  --cast: 0 10px 30px -18px rgba(42, 29, 19, .26), 0 1px 2px rgba(42, 29, 19, .07);
  --cast-answer: 0 8px 20px -14px rgba(42, 29, 19, .20);
  --cast-sheet: 0 18px 44px -20px rgba(42, 29, 19, .30);
  --scrim: rgba(42, 29, 19, .42);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(42, 29, 19, .16);
  --tint: 42, 29, 19;
  --shade: 42, 29, 19;
  --frost-off: #fffcf6;
  --frost-off-strong: #ffffff;
  --frost-off-thin: #f8f2e8;
  --fld-1: rgba(240, 224, 186, .80); --fld-2: rgba(246, 214, 184, .50); --fld-3: rgba(214, 214, 222, .70); --fld-4: rgba(255, 246, 226, .80);
}
html[data-look="milk"][data-palette="coffee"][data-part="afternoon"] {
  --ground: #f7ead5;
  --ground-rgb: 247, 234, 213;
  --field-min: #cbb594;
  --ink: #2c1c0e;
  --ink-2: #4a3421;
  --ink-3: #5f4631;
  --acc-ink: #563d0b;
  --gauge-ink: #2c1c0e;
  --btn-1: #82621b;
  --btn-2: #684c10;
  --on-btn: #fff8ea;
  --glass-fill: rgba(255, 248, 236, .84);
  --glass-strong-fill: rgba(255, 255, 255, .90);
  --glass-thin-fill: rgba(249, 238, 220, .80);
  --glass-ghost: rgba(255, 248, 236, .40);
  --rim-far: rgba(44, 28, 14, .12);
  --cast: 0 10px 30px -18px rgba(44, 28, 14, .26), 0 1px 2px rgba(44, 28, 14, .07);
  --cast-answer: 0 8px 20px -14px rgba(44, 28, 14, .20);
  --cast-sheet: 0 18px 44px -20px rgba(44, 28, 14, .30);
  --scrim: rgba(44, 28, 14, .42);
  --tint: 44, 28, 14;
  --shade: 44, 28, 14;
  --frost-off: #fff8ec;
  --frost-off-thin: #f9eedc;
  --fld-1: rgba(238, 216, 170, .70); --fld-2: rgba(242, 200, 150, .55); --fld-3: rgba(230, 210, 176, .70); --fld-4: rgba(255, 238, 206, .80);
}
/* TEA BY DAY: the morning (whitewash and linen, cool clean ink, the window frames' blue for words and buttons), and the
   afternoon's own paper (html[data-part="afternoon"]): the orchard's honey light on the white wall. */
html[data-look="milk"][data-palette="tea"] {
  --ground: #f5f6f3;
  --ground-rgb: 245, 246, 243;
  --field-min: #c2c7c4;
  --ink: #1c2633;
  --ink-2: #3a4553;
  --ink-3: #4f5a69;
  --acc-1: #d7e6f8;
  --acc-2: #aac9ef;
  --acc-3: #7eaae3;
  --acc-4: #5a8fd3;
  --acc-ink: #23508f;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #1c2633;
  --on-acc: #071a33;
  --acc-rgb: 47, 95, 158;
  --acc-deep: rgba(24, 52, 96, .28);
  --sel-wash: color-mix(in srgb, var(--acc-3) 16%, transparent);
  --glow: rgba(75, 128, 198, .30);
  --ring-1: #709fde;
  --ring-2: #4b80c6;
  --ring-3: #2f65ad;
  --ring-4: #23508f;
  --rwd-1: #fff0c4;
  --rwd-2: #f7da89;
  --rwd-3: #e9be53;
  --rwd-4: #d19f32;
  --on-rwd: #1c1403;
  --rwd-glow: rgba(209, 159, 50, .40);
  --btn-1: #2f65ad;
  --btn-2: #23508f;
  --on-btn: #ffffff;
  --btn-rim: rgba(255, 255, 255, .55);
  --btn-deep: rgba(20, 44, 86, .40);
  --btn-sheen: rgba(255, 255, 255, .35);
  --seg-fill: var(--acc);
  --on-seg: #071a33;
  --seg-glow: rgba(75, 128, 198, .35);
  --glass-fill: rgba(255, 255, 253, .84);
  --glass-strong-fill: rgba(255, 255, 255, .90);
  --glass-thin-fill: rgba(246, 247, 244, .80);
  --glass-ghost: rgba(255, 255, 253, .40);
  --rim-far: rgba(28, 38, 51, .12);
  --cast: 0 10px 30px -18px rgba(28, 38, 51, .26), 0 1px 2px rgba(28, 38, 51, .07);
  --cast-answer: 0 8px 20px -14px rgba(28, 38, 51, .20);
  --cast-sheet: 0 18px 44px -20px rgba(28, 38, 51, .30);
  --scrim: rgba(28, 38, 51, .42);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(28, 38, 51, .16);
  --tint: 28, 38, 51;
  --shade: 28, 38, 51;
  --frost-off: #fffffd;
  --frost-off-strong: #ffffff;
  --frost-off-thin: #f6f7f4;
  --fld-1: rgba(214, 228, 246, .80); --fld-2: rgba(246, 234, 196, .50); --fld-3: rgba(206, 220, 214, .70); --fld-4: rgba(255, 252, 236, .80);
}
html[data-look="milk"][data-palette="tea"][data-part="afternoon"] {
  --ground: #f8f1e1;
  --ground-rgb: 248, 241, 225;
  --field-min: #cdbf9f;
  --ink: #2a2318;
  --ink-2: #463c2e;
  --ink-3: #5c5040;
  --acc-ink: #1f4679;
  --gauge-ink: #2a2318;
  --btn-1: #2c5f9f;
  --btn-2: #224f88;
  --on-btn: #fffdf6;
  --glass-fill: rgba(255, 251, 242, .84);
  --glass-strong-fill: rgba(255, 255, 255, .90);
  --glass-thin-fill: rgba(249, 242, 227, .80);
  --glass-ghost: rgba(255, 251, 242, .40);
  --rim-far: rgba(42, 35, 24, .12);
  --cast: 0 10px 30px -18px rgba(42, 35, 24, .26), 0 1px 2px rgba(42, 35, 24, .07);
  --cast-answer: 0 8px 20px -14px rgba(42, 35, 24, .20);
  --cast-sheet: 0 18px 44px -20px rgba(42, 35, 24, .30);
  --scrim: rgba(42, 35, 24, .42);
  --tint: 42, 35, 24;
  --shade: 42, 35, 24;
  --frost-off: #fffbf2;
  --frost-off-thin: #f9f2e3;
  --fld-1: rgba(232, 226, 186, .70); --fld-2: rgba(244, 214, 156, .55); --fld-3: rgba(222, 222, 200, .70); --fld-4: rgba(255, 242, 212, .80);
}
/* BLACKOUT (THUD CUP's Field mode, CALM.md call 4): true black and Chasen's warm gold, a light the learner holds
   (frap-app.js LIGHTS, Settings › The look, the header's chip). thud.js puts html[data-watch="on"] on it, so every guard
   Field mode keeps is kept; black needs no red veil (cup.css hides it), and no picture is drawn. verify_contrast.py
   prices it as a look of its own: each calm skin's night, Field mode's inks, then these, on black, with no veil. */
html[data-calm][data-watch="on"] {
  --ground: #000000; --ground-rgb: 0, 0, 0; --field-max: #000000;
  --ink: #ece7dc; --ink-2: #d5cfc1; --ink-3: #a09a8b; --gauge-ink: #ece7dc; --wrong-ink: #f0b4a0;
  --acc-1: #f3dcb6; --acc-2: #e9c48c; --acc-3: #dcac69; --acc-4: #c9954f; --acc-ink: #e9c48c; --on-acc: #000000;
  --acc-rgb: 220, 172, 105; --acc-deep: rgba(0, 0, 0, .5); --glow: rgba(220, 172, 105, .18);
  --rwd-1: #f3dcb6; --rwd-2: #e9c48c; --rwd-3: #dcac69; --rwd-4: #c9954f; --on-rwd: #000000; --rwd-glow: rgba(220, 172, 105, .22);
  --btn-1: #e9c48c; --btn-2: #dcac69; --on-btn: #000000; --btn-rim: rgba(243, 220, 182, .45); --btn-deep: rgba(0, 0, 0, .5); --btn-sheen: rgba(255, 255, 255, .16);
  --on-seg: #000000; --seg-glow: rgba(220, 172, 105, .22); --ic-rgb: 220, 172, 105;
  --glass-fill: #141412; --glass-strong-fill: #0e0e0c; --glass-thin-fill: #141412; --glass-ghost: rgba(20, 20, 18, .6);
  --frost-off: #141412; --frost-off-strong: #0e0e0c; --frost-off-thin: #141412; --scrim: rgba(0, 0, 0, .7);
  --fld-1: transparent; --fld-2: transparent; --fld-3: transparent; --fld-4: transparent;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

/* ── the page ───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 10px; }
/* a heading that takes focus so a screen reader starts there is not a control: no ring */
[data-focus]:focus-visible, #h1:focus-visible, #view:focus-visible { outline: none; }

/* THE FIELD: a canvas frap-glass.js paints (WebGL), behind everything. Without WebGL, or with
   background motion off, the same lights stand still, in CSS, on <html>. */
#field {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
#field.on { opacity: 1; }
html.no-field {
  background:
    radial-gradient(90% 60% at 12% 0%, var(--fld-1), transparent 62%),
    radial-gradient(80% 55% at 100% 22%, var(--fld-2), transparent 60%),
    radial-gradient(90% 60% at 80% 100%, var(--fld-3), transparent 62%),
    radial-gradient(70% 50% at 0% 100%, var(--fld-4), transparent 60%),
    var(--ground);
  background-attachment: fixed;
}
/* THE LIGHT AT THE TOP (Opal, RESEARCH.md round three): a faint wash of the accent's light over
   the top of every page, above the field and under everything on it */
body::after {
  content: ""; position: fixed; z-index: -1; left: 0; right: 0; top: 0; height: 70vh; pointer-events: none;
  background: radial-gradient(80% 60% at 50% -12%, var(--glow), transparent 72%); opacity: .42;
}

/* ── type ───────────────────────────────────────────────────────────────────────────── */
.t-large { font-size: 34px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; }
.t-title { font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -.024em; }
.t-head { font-size: 20px; line-height: 1.22; font-weight: 600; letter-spacing: -.016em; }
.t-body { font-size: 17px; line-height: 1.4; }
.t-call { font-size: 15px; line-height: 1.35; }
.t-foot { font-size: 13px; line-height: 1.35; }
.t-cap { font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.accent-ink { color: var(--acc-ink); }
/* a label above a title: small capitals, tracked (Farm Minerals, Taste Labs: RESEARCH.md «Round four») */
.eyebrow { font-size: 11.5px; line-height: 1.2; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--acc-ink); }

/* ── the material ───────────────────────────────────────────────────────────────────── */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--r, var(--r-tile));
  background-color: var(--glass-fill);
  background-image:
    var(--grain, none),
    linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .025) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: var(--grain-size, 160px 160px), 100% 100%;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 var(--hi),
    inset 0 -14px 22px -18px rgba(var(--shade), calc(.55 * var(--sk))),
    var(--cast);
}
/* the edge: a gradient border, masked to a 1px ring */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--rim) 0%, var(--rim-soft) 28%, rgba(255, 255, 255, 0) 58%, var(--rim-far) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* the specular: a spot under the finger or the pointer; a band that drifts on [data-live] */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--px, 50%) var(--py, 0%), var(--spot), rgba(255, 255, 255, 0) 62%);
  opacity: 0; transition: opacity .5s ease;
  mix-blend-mode: screen;
}
.glass.is-lit::after { opacity: 1; transition-duration: .15s; }
.glass[data-live]::after {
  opacity: 1;
  background:
    radial-gradient(220px circle at var(--px, 50%) var(--py, -40%), var(--spot), rgba(255, 255, 255, 0) 62%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 42%, var(--sheen) 50%, rgba(255, 255, 255, 0) 58%);
  background-size: 100% 100%, 320% 100%;
  background-position: 0 0, 130% 0;
  animation: sheen-drift 9s ease-in-out infinite;
}
@keyframes sheen-drift {
  0%, 12% { background-position: 0 0, 130% 0; }
  62%, 100% { background-position: 0 0, -40% 0; }
}
.glass > * { position: relative; z-index: 2; }
.glass--strong { background-color: var(--glass-strong-fill); --glass-blur: 36px; }
.glass--thin { background-color: var(--glass-thin-fill); --glass-blur: 22px; }
/* BRUSHED STEEL (the owner, 2026-11-18: «Or brushed steel under text surfaces. Perhaps as an option. Cyberpunk's looks
   good»): Settings › The look › Surfaces (frap-app.js setSurface). Cyberpunk's smoked steel with its fine brushed hairlines
   (Firefly Image 4, cut 2026-11-12 as that skin's buttons' plate; art/steel/) laid as the grain of every card, button
   and answer in any skin: its light alone by night, its shade alone by day, so an ink is priced on each of its colours
   (verify_contrast.py STEEL). Never in Field mode or under Low power. Frosted glass, the default, lays nothing. */
html[data-surface="steel"]:not([data-watch="on"]):not([data-low="on"]) { --grain: url("art/steel/night.webp"); --grain-size: 256px 256px; }
html[data-surface="steel"]:not([data-watch="on"]):not([data-low="on"])[data-look="milk"] { --grain: url("art/steel/day.webp"); }
/* NO FROST (html.no-frost, set by frap-app.js where the browser has no backdrop-filter): an
   opaque warm fill, the same edge and light. Nothing behind a glass shows through, so nothing
   behind it may be needed to read it. */
html.no-frost .glass, html.no-frost .opt-btn, html.no-frost #card .prompt-box { background-color: var(--frost-off) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.no-frost .glass--strong, html.no-frost #grammar-note.revealed { background-color: var(--frost-off-strong) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.no-frost .glass--thin { background-color: var(--frost-off-thin) !important; }


/* THE PAINTED ICONS SIT UNDER GLASS: a bezel with the material's edge, and a sheen that crosses
   once as the icon comes on screen (.in is added when it does). */
.art {
  position: relative; flex: none; display: block; overflow: hidden;
  width: var(--s, 88px); height: var(--s, 88px);
  border-radius: 23.5%;
  box-shadow: 0 10px 24px -8px rgba(var(--shade), calc(.65 * var(--sk))), 0 0 0 1px rgba(var(--tint), .08);
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .08) 34%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.art::after {
  content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 56%);
  transform: translateX(-70%);
}
.art.in::after { animation: art-sheen 1.15s var(--ease-out) .12s both; }
@keyframes art-sheen { from { transform: translateX(-70%); } to { transform: translateX(70%); } }

/* ── icons: one language, a 24-box, a 1.7 stroke ───────────────────────────────────── */
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i--s { width: 18px; height: 18px; }

/* ── the button set ─────────────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform var(--t-slow) var(--spring), filter var(--t) ease, opacity var(--t) ease;
}
.btn:active { transform: scale(.965); transition-duration: .09s; transition-timing-function: ease-out; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.btn--block { display: flex; width: 100%; }
/* PRIMARY: the palette's capsule (Opal and Graphite: white on the dark, black on Milk; Rose gold:
   the rose gold), its own ink, a specular top rim, a halo of the accent's light. One per screen. */
.btn--primary {
  min-height: 56px; color: var(--on-btn);
  background: var(--btn-fill);
  box-shadow:
    inset 0 1px 0 var(--btn-rim),
    inset 0 -10px 16px -10px var(--btn-deep),
    0 14px 30px -12px var(--glow),
    0 2px 5px rgba(var(--shade), calc(.3 * var(--sk)));
  overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0 -60%; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 44%, var(--btn-sheen) 50%, rgba(255, 255, 255, 0) 56%);
  transform: translateX(-75%); animation: btn-sheen 5.2s var(--ease-out) 1.2s infinite;
}
@keyframes btn-sheen { 0% { transform: translateX(-75%); } 26%, 100% { transform: translateX(75%); } }
.btn--primary > * { position: relative; z-index: 1; }
/* GLASS: secondary */
.btn--glass { color: var(--ink); --r: 999px; }
/* QUIET: text only, a 44px target */
.btn--quiet { min-height: 44px; padding: 0 14px; font-weight: 600; color: var(--ink-2); background: none; }
/* ROUND: a 44px glass circle, one icon */
.btn--round { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; --r: 50%; color: var(--ink); }
.btn--s { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) {
  .btn--primary:hover { filter: brightness(1.06) saturate(1.05); }
  .btn--quiet:hover { color: var(--ink); }
}

/* ── segmented control ──────────────────────────────────────────────────────────────── */
.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
  padding: 3px; border-radius: 999px; --r: 999px;
}
.seg__opt {
  position: relative; z-index: 3; min-height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: none;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: color var(--t) ease;
}
.seg__opt[aria-checked="true"], .seg__opt[aria-pressed="true"] { color: var(--on-seg); }
.seg__thumb {
  position: absolute !important; z-index: 2 !important; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2));
  border-radius: 999px; background: var(--seg-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 12px -4px var(--seg-glow);
  transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform var(--t-slow) var(--spring);
}

/* ── switch ─────────────────────────────────────────────────────────────────────────── */
.switch {
  position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(var(--tint), .16);
  box-shadow: inset 0 1px 2px rgba(var(--shade), calc(.45 * var(--sk))), inset 0 0 0 1px rgba(var(--tint), .08);
  transition: background var(--t) ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #e9e1db);
  box-shadow: 0 2px 6px rgba(var(--shade), calc(.45 * var(--sk))), inset 0 1px 0 #fff;
  transition: transform var(--t-slow) var(--spring), width var(--t-fast) ease;
}
.switch:active::after { width: 31px; }
/* targets of 44px where the drawing is smaller (a switch, a segment, the level chip): the hit area
   reaches past the shape, the shape stays as drawn */
.switch::before { content: ""; position: absolute; inset: -6px -4px; }
.seg__opt::before { content: ""; position: absolute; inset: -4px 0; }
.top .chip { min-height: 44px; padding: 0 15px; font-size: 14px; }
.switch[aria-checked="true"] { background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -6px 10px -6px var(--acc-deep); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch[aria-checked="true"]:active::after { transform: translateX(15px); }

/* ── slider ─────────────────────────────────────────────────────────────────────────── */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: none; cursor: pointer; }
.slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc-2) 0, var(--acc-3) var(--fill, 50%), rgba(255, 255, 255, .16) var(--fill, 50%));
  box-shadow: inset 0 1px 2px rgba(var(--shade), calc(.4 * var(--sk)));
}
.slider::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(var(--tint), .16); }
.slider::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--acc-3); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #fff, #e9e1db); box-shadow: 0 3px 8px rgba(var(--shade), calc(.5 * var(--sk))), inset 0 1px 0 #fff;
}
.slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #fff, #e9e1db); box-shadow: 0 3px 8px rgba(var(--shade), calc(.5 * var(--sk))); }

/* ── the ring ───────────────────────────────────────────────────────────────────────── */
.ring { position: relative; flex: none; display: grid; place-items: center; width: var(--s, 44px); height: var(--s, 44px); }
.ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: rgba(var(--tint), .13); }
.ring__bar { fill: none; stroke: url(#acc-stroke); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease-out); }
.ring__in { position: relative; z-index: 1; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring--done .ring__track { stroke: rgba(var(--acc-rgb), .28); }
/* the ring's gradient is the sprite's #acc-stroke (frap-app.js); its stops are painted here, on the tokens */
#acc-stroke .s1 { stop-color: var(--ring-1); } #acc-stroke .s2 { stop-color: var(--ring-2); } #acc-stroke .s3 { stop-color: var(--ring-3); } #acc-stroke .s4 { stop-color: var(--ring-4); }
#rwd-stroke .s1 { stop-color: var(--rwd-1); } #rwd-stroke .s2 { stop-color: var(--rwd-2); } #rwd-stroke .s3 { stop-color: var(--rwd-3); } #rwd-stroke .s4 { stop-color: var(--rwd-4); }
/* a ring completed is the reward's (a section met, a perfect round) */
.ring--done .ring__bar { stroke: url(#rwd-stroke); }
/* A GAUGE (Opal): the open arc of a score (frap-drill.css, .fr-arc) or a count (.rv) glows in the
   accent's light, and its number is the accent's gradient where the dark lets it read
   (--gauge-num; its darkest stop is --gauge-ink, which the contract prices on the field), a
   solid ink on Milk and in Rose gold */
.ring--now { animation: ring-breathe 2.4s ease-in-out 1; }
@keyframes ring-breathe { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.09); } }
/* an open arc, for a score (270 degrees, the gap at the bottom) */
.ring--arc > svg { transform: rotate(135deg); }

/* ── chips, rows, groups ────────────────────────────────────────────────────────────── */
/* AN OUTLINED PILL (Opal): glass inside, its edge a 1px line in the accent's gradient. The edge is
   the material's own ::before, recoloured. */
.glass.chip--line::before { background: var(--acc); opacity: .9; }
.chip--line .i { color: var(--acc-ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; --r: 999px;
  font-size: 13px; font-weight: 650; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.group { --r: var(--r-tile); overflow: hidden; }
.row {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px;
  border: 0; background: none; text-align: left; text-decoration: none; color: inherit; cursor: pointer;
}
.row + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-size: 17px; font-weight: 550; letter-spacing: -.01em; }
.row__sub { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-3); }
.row__said { display: block; margin-top: 4px; }   /* Settings › Words a day: the offer answered, one quiet line */
.row__val { flex: none; font-size: 15px; color: var(--ink-3); }
.row .i--chev { width: 16px; height: 16px; color: var(--ink-3); }
@media (hover: hover) { .row:hover { background: rgba(var(--tint), .04); } }
.row:active { background: rgba(var(--tint), .07); }

/* ── sheets ─────────────────────────────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: var(--scrim);
  opacity: 0; transition: opacity var(--t) ease; pointer-events: none;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0 auto; max-width: 560px;
  max-height: calc(100dvh - var(--sat) - 28px); display: flex; flex-direction: column;
  --r: var(--r-sheet); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding-bottom: var(--sab);
  transform: translateY(105%); transition: transform var(--t-slow) var(--spring);
  will-change: transform;
}
.sheet.on { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet__grab { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.sheet__grab::after { content: ""; width: 38px; height: 5px; border-radius: 999px; background: rgba(var(--tint), .28); }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px var(--gutter) 18px; }
.sheet__foot { flex: none; padding: 12px var(--gutter) 14px; }
/* a group of rows inside a sheet (both documents' sheets: the round's options, Find, Restore) */
.group--in { margin-top: 16px; border-radius: var(--r-row); background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); overflow: hidden; }
.group--in + .group--in { margin-top: 12px; }

/* ── the tab bar ────────────────────────────────────────────────────────────────────── */
.tabbar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(max(var(--sab), 10px) + 6px);
  transform: translateX(-50%);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: min(380px, calc(100% - 32px)); height: var(--tabbar-h);
  padding: 5px; --r: 999px; border-radius: 999px;
  transition: transform var(--t-slow) var(--spring), opacity var(--t) ease;
}
.tabbar.away { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
/* the bar floats over text that scrolls under it: strong glass, so a row's words never read through */
.tabbar.glass { background-color: var(--glass-strong-fill); --glass-blur: 36px; }
.tab {
  position: relative; z-index: 3; display: grid; place-items: center; align-content: center; gap: 2px;
  border: 0; border-radius: 999px; background: none; color: var(--ink-3); text-decoration: none; cursor: pointer;
  font-size: 10.5px; font-weight: 650; letter-spacing: .01em;
  transition: color var(--t) ease, transform var(--t-slow) var(--spring);
}
.tab:active { transform: scale(.93); }
.tab[aria-current="page"] { color: var(--ink); }
.tab .i { width: 23px; height: 23px; }
.tab__badge {
  position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--on-acc); background: var(--acc);
  box-shadow: 0 2px 6px rgba(var(--shade), calc(.4 * var(--sk))), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.tabbar__thumb {
  position: absolute !important; z-index: 2 !important; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n, 4));
  border-radius: 999px; background: var(--thumb);
  box-shadow: var(--thumb-shadow);
  transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform var(--t-slow) var(--spring);
}
/* the selection slides, and stretches as it goes */
.tabbar__thumb.go { animation: thumb-stretch .52s var(--ease-out); }
@keyframes thumb-stretch { 32% { scale: 1.24 .86; } 70% { scale: .97 1.03; } }

/* ── arrivals: children come in one after another ──────────────────────────────────── */
.rise > * { animation: rise .7s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 14) * 50ms + 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ══ THE SHELL'S SCREENS ══════════════════════════════════════════════════════════════════ */
#view {
  max-width: 560px; margin: 0 auto; min-height: 100dvh;
  padding: calc(var(--sat) + 14px) calc(var(--gutter) + var(--sar)) calc(var(--tabbar-h) + max(var(--sab), 10px) + 44px) calc(var(--gutter) + var(--sal));
}
#view:focus { outline: none; }

/* the top line: the painted mark and the name, and what is on the right */
.top { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 18px; }
.top__name { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.top__back { margin-left: -6px; }
.top__title { flex: 1; min-width: 0; text-align: center; font-size: 17px; font-weight: 650; opacity: 0; transform: translateY(6px); transition: opacity var(--t) ease, transform var(--t) var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top--stuck .top__title { opacity: 1; transform: none; }
.top--bar { position: sticky; top: 0; z-index: 20; margin: calc(-1 * (var(--sat) + 14px)) calc(-1 * var(--gutter)) 6px; padding: calc(var(--sat) + 10px) var(--gutter) 10px; }
/* THE BAR IS THE GROUND ITSELF once the title has gone under it: a solid colour on the bar (which
   Safari carries on up under the clock) and a short fade below it. No blur: a blur behind a
   mask is not drawn in Safari, and what scrolled under the clock stayed readable there. */
.top--bar { background-color: rgba(var(--ground-rgb), 0); transition: background-color var(--t) ease; }
.top--stuck.top--bar { background-color: var(--ground); }
.top--bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none; opacity: 0; transition: opacity var(--t) ease;
  background: linear-gradient(180deg, rgba(var(--ground-rgb), 1), rgba(var(--ground-rgb), 0));
}
.top--stuck.top--bar::before { opacity: 1; }
.top__spacer { width: 44px; flex: none; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 2px 12px; }
.sec-head .t-foot { color: var(--ink-2); }

/* ── Learn: the hero ─────────────────────────────────────────────────────────────────── */
.hero {
  --r: var(--r-card); display: block; padding: 18px; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform var(--t-slow) var(--spring);
}
.hero:active { transform: scale(.985); transition-duration: .1s; transition-timing-function: ease-out; }
.hero__meta { margin-top: 5px; font-size: 14px; line-height: 1.3; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .btn { margin-top: 16px; }
.hero .ring__in { display: block; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.hero .ring__in small { font-size: 10px; margin-left: 1px; }


@media (hover: hover) { .hero:hover { transform: translateY(-2px); } }

/* ── Find (frap.js): a capsule on Learn, and a sheet of a fixed height that does not jump as
   the results change. The field is the sheet's own; 17px, so a phone does not zoom into it. ── */
.find-cap {
  --r: 999px; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 14px; padding: 0 18px;
  border: 0; border-radius: 999px; text-align: left; font: inherit; font-size: 16px; color: var(--ink-3); cursor: pointer;
  transition: transform var(--t-slow) var(--spring);
}
.find-cap .i { width: 19px; height: 19px; color: var(--ink-2); }
.find-cap:active { transform: scale(.985); transition-duration: .1s; }
.sheet--find { height: min(86dvh, 720px); }
.find { padding-top: 4px; }
.find__field {
  --r: 999px; position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 16px;
  border-radius: 999px; margin-bottom: 4px;
  /* inside the sheet's own glass: a wash, as the sheet's groups are (a frost in a frost does not see through) */
  background: rgba(var(--tint), .08); box-shadow: inset 0 0 0 1px rgba(var(--tint), .1);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.find__field > .i { flex: none; width: 19px; height: 19px; color: var(--ink-2); }
.find__field input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 17px;
  -webkit-appearance: none; appearance: none;
}
.find__field input::placeholder { color: var(--ink-3); }
.find__field input::-webkit-search-cancel-button, .find__field input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.find__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--acc-3), var(--cast); }
.find__clear { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(var(--tint), .1); color: var(--ink-2); cursor: pointer; }
.find__clear .i { width: 15px; height: 15px; }
.find__clear[hidden] { display: none; }
.find__hint { margin: 18px 4px 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.find__hint b { color: var(--ink); font-weight: 650; }
.find__group .row { min-height: 60px; }
.find__rh { display: flex; align-items: center; justify-content: space-between; }
.find__clr { min-height: 32px; padding: 0 4px; font-size: 13px; font-weight: 650; color: var(--acc-ink); }
.find__rrow { position: relative; display: flex; align-items: center; }
.find__rrow + .find__rrow::before { content: ""; position: absolute; left: 46px; right: 0; top: 0; height: 1px; background: var(--line); }
.find__rrow .row { min-height: 48px; padding-right: 4px; }
.find__rrow .row .i { color: var(--ink-3); }
.find__rrow .row__title { font-size: 16px; }
.find__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-3); }
.find__x .i { width: 15px; height: 15px; }
.find__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.find__chips .chip { min-height: 38px; padding: 0 14px; color: var(--ink); font-size: 14px; }
@media (hover: hover) { .find__chips .chip:hover, .find__x:hover { filter: brightness(1.15); } }
.find__row .art { flex: none; }
.find__row .row__title b { font-weight: 750; color: var(--acc-ink); }
.find__row .row__sub .accent-ink { color: var(--acc-ink); }

/* ── THE DICTIONARY (2026-10-06, frap-dict.js): a word in Find. Its rows stand in the sheet's own
   glass, as Find's do: --ink for the word, --ink-2 for what it means, --ink-3 nowhere a learner
   must read. The level is a tag, not a light: a wash and the second ink. ───────────────────── */
.find__word .row__title { font-size: 18px; font-weight: 650; }
.find__word .row__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.32; color: var(--ink-2); }
.find__lv { flex: none; min-width: 34px; padding: 4px 9px; border-radius: 999px; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .03em; text-align: center; color: var(--ink-2); background: rgba(var(--tint), .09); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
.find__lv--in { font-weight: 650; letter-spacing: 0; }
.find__all { display: block; min-height: 44px; margin-top: 2px; padding: 0 6px; font-size: 14px; font-weight: 650; color: var(--acc-ink); }
.find__all[hidden] { display: none; }
.find__wait { margin: 12px 4px 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.word { padding-top: 8px; }
.word__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -4px; padding: 0 12px 0 2px; font-size: 15px; font-weight: 650; color: var(--acc-ink); }
.word__back .i { width: 18px; height: 18px; }
.word__head { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.word__uk { flex: 1; min-width: 0; font-size: 34px; line-height: 1.14; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; outline: 0; }
.word__en { margin-top: 8px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.word__meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.word__card { margin-top: 16px; padding: 14px 16px 16px; border-radius: var(--r-row); background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
/* no capitals here: a topic's name may hold a Ukrainian word («I · я · 1–40»), and «я» is not «Я» */
.word__at { font-size: 13px; line-height: 1.3; font-weight: 650; color: var(--ink-2); }
.word__own { margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.word__lemma { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.word__col { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.word__col span { padding: 4px 10px; border-radius: 999px; font-size: 14px; color: var(--ink); background: rgba(var(--tint), .07); }
.word__ex { margin-top: 12px; font-size: 18px; line-height: 1.4; font-weight: 550; color: var(--ink); }
.word__exen { margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.word__note { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.word__note em { font-style: normal; font-weight: 650; color: var(--ink); }
.word__lv { margin-top: 12px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--ink-2); }
.word__wait { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.word__card > :first-child { margin-top: 0; }
.word__go { margin-top: 16px; }
.word__places .topic { min-height: 58px; }
.word__places .topic[hidden] { display: none; }
.word__places .topic + .topic::before { left: 56px; }
/* the speaker, where the shell says a word aloud (Your words, the dictionary, the Record's words that fight back:
   there it stood bare, a 24 px target, until 2026-11-14): the drill's own button */
.wrow .fr-q__say, .word .fr-q__say, .fight .fr-q__say { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--acc-ink); background: rgba(var(--tint), .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform var(--t-slow) var(--spring); }
.wrow .fr-q__say:active, .word .fr-q__say:active, .fight .fr-q__say:active { transform: scale(.88); }
.wrow .fr-q__say .i, .word .fr-q__say .i, .fight .fr-q__say .i { width: 18px; height: 18px; }

/* ── install (frap-screens.js installSheet): a Home Screen, the painted icon on it, three steps ── */
.inst__pic { display: grid; place-items: center; margin: 8px 0 0; }
.inst__grid {
  display: grid; grid-template-columns: repeat(4, 54px); gap: 14px 16px; padding: 18px 20px 16px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(var(--acc-rgb), .28), rgba(var(--tint), .05) 60%), rgba(var(--tint), .06);
  box-shadow: inset 0 0 0 1px rgba(var(--tint), .1);
}
.inst__grid i { width: 54px; height: 54px; border-radius: 13px; background: rgba(var(--tint), .12); }
.inst__app { display: grid; justify-items: center; gap: 4px; margin-bottom: -16px; animation: inst-pop 1s var(--spring) .3s both; }
.inst__app img { width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 6px 16px -6px rgba(var(--shade), calc(.6 * var(--sk))); }
.inst__app span { font-size: 10px; font-weight: 600; color: var(--ink-2); }
@keyframes inst-pop { from { transform: scale(.4); opacity: 0; } }
.inst__steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: inst; display: grid; gap: 10px; }
.inst__steps li { counter-increment: inst; display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.inst__steps li b { color: var(--ink); font-weight: 650; }
.inst__steps li::before {
  content: counter(inst); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 700; color: var(--ink); background: rgba(var(--tint), .1); box-shadow: inset 0 0 0 1px rgba(var(--tint), .12);
}
.inst__glyph { display: inline-grid; vertical-align: -4px; }
.inst__glyph .i { width: 18px; height: 18px; color: var(--acc-ink); }

/* ── the keys sheet (frap-app.js keysSheet) ── */
.keyrow { min-height: 48px; cursor: default; }
.keyrow .row__title { font-size: 15px; }
.keyrow__k { flex: none; display: flex; align-items: center; gap: 6px; }
.keyrow__or { font-size: 12px; color: var(--ink-3); }
.key {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap;
  background: rgba(var(--tint), .09); box-shadow: inset 0 -1.5px 0 rgba(var(--shade), calc(.35 * var(--sk))), inset 0 0 0 1px rgba(var(--tint), .12);
}

/* ── the level picker (the briefing and the level sheet) ─────────────────────────────────────────────────────────────────────── */
.levels { display: grid; gap: 10px; margin-top: 22px; }
.lv__same { margin-top: 8px; }                                   /* the strategies the level never touches (LEVELS.md box 6) */
.lv {
  --r: var(--r-row); display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 16px; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  transition: transform var(--t-slow) var(--spring);
}
.lv:active { transform: scale(.98); transition-duration: .1s; }
.lv__bars { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.lv__bars i { width: 4px; border-radius: 2px; background: rgba(var(--tint), .2); }
.lv__bars i.on { background: var(--acc-2); }
.lv__main { flex: 1; min-width: 0; }
.lv b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.lv span.h { display: block; font-size: 13px; color: var(--ink-3); }
.lv__code { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-3); }
/* the level chosen reads at a glance (2026-10-02; Vibecode's and Nibble's onboarding, RESEARCH.md):
   the accent's wash and edge, and the same disc the section sheet's topics fill with a check */
.lv[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--acc-3), inset 0 0 0 999px var(--sel-wash), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); }
.lv[aria-checked="true"] .lv__code { color: var(--acc-ink); }
.lv .topic__pick { margin-left: -4px; }

/* ── a strategy's page ───────────────────────────────────────────────────────────────── */
.phead { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.phead .art { --s: 92px; }
.phead__main { flex: 1; min-width: 0; }
.phead h1 { font-size: 30px; line-height: 1.08; font-weight: 700; letter-spacing: -.022em; overflow-wrap: anywhere; }
.phead__prog { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lede { font-size: 15px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.lede.open { -webkit-line-clamp: unset; }
.lede--why { margin-top: 8px; font-size: 14px; }
.lvnote { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.lvnote button { min-height: 44px; padding: 0 6px; border: 0; background: none; font-weight: 650; color: var(--acc-ink); cursor: pointer; }
.jump { display: flex; gap: 8px; margin: 16px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump::-webkit-scrollbar { display: none; }
.jump .chip { min-height: 38px; padding: 0 15px; flex: none; border: 0; cursor: pointer; color: var(--ink); }
.gh { margin: 28px 2px 12px; font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; scroll-margin-top: calc(var(--sat) + 72px); }

/* a route: a rail of ringed stops, a glass card beside each */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.stop__rail { position: relative; display: grid; justify-items: center; align-content: center; }
.stop__rail::before { content: ""; position: absolute; left: 50%; top: -10px; bottom: 0; width: 2px; margin-left: -1px; background: rgba(var(--tint), .12); z-index: 0; }
.stop:first-child .stop__rail::before { top: 50%; }
.stop:last-child .stop__rail::before { bottom: 50%; }
.stop--done .stop__rail::before, .stop--going .stop__rail::before { background: linear-gradient(180deg, var(--acc-3), var(--acc-4)); }
.stop--going .stop__rail::before { background: linear-gradient(180deg, var(--acc-3) 0, var(--acc-3) 50%, rgba(var(--tint), .12) 50%); }
.stop .ring { z-index: 1; background: var(--ground); border-radius: 50%; }
.stop .ring__in { font-size: 15px; color: var(--ink-2); }
.stop--next .ring__in, .stop--going .ring__in { color: var(--ink); }
.stop--done .ring__in { color: var(--acc-ink); }
.stop__card {
  --r: var(--r-row); display: flex; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 12px 14px; border: 0; text-align: left; color: inherit; cursor: pointer;
  transition: transform var(--t-slow) var(--spring);
}
.stop__card:active { transform: scale(.98); transition-duration: .1s; }
.stop__main { flex: 1; min-width: 0; }
.stop__title { display: block; font-size: 16px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.stop__blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.stop__st { flex: none; font-size: 13px; font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.stop__st--n { font-weight: 550; font-variant-numeric: tabular-nums; }
.stop--next .stop__card { box-shadow: inset 0 0 0 1.5px var(--acc-3), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); }
.stop--going .stop__st { color: var(--acc-ink); }
/* after --going: the stop in hand can be both (the next stop, started), and its pill keeps the ink
   the accent is priced for; rose ink on rose was unreadable (seen 2026-10-02 after a first round) */
.stop--next .stop__st { color: var(--on-acc); background: var(--acc); padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.stop--above .stop__card { background-color: var(--glass-ghost); box-shadow: inset 0 0 0 1px rgba(var(--tint), .08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.stop--above .stop__card::before { background: none; border: 1px dashed rgba(var(--tint), .22); padding: 0; -webkit-mask: none; mask: none; }
.stop--above .stop__title { color: var(--ink-2); }
.stop__up { display: block; margin-top: 4px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
/* a grid: lists to pick from in any order; rows in a glass group, a ring before each */
.pick .row { min-height: 64px; padding: 10px 14px; }
.pick .row__title { font-size: 16px; font-weight: 650; }
.pick .row__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.pick .ring .i { width: 14px; height: 14px; stroke-width: 2.4; color: var(--acc-ink); }
.pick .row--above .row__title { color: var(--ink-2); }

/* ── the section sheet ───────────────────────────────────────────────────────────────── */
.ss__head { margin-bottom: 14px; }
.ss__head h2 { margin: 4px 0 6px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.ss__note { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; color: var(--ink-2); background: rgba(var(--tint), .06); }
.ss__label { margin: 18px 2px 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.topics { --r: var(--r-row); border-radius: var(--r-row); overflow: hidden; background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
.topic { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.topic + .topic::before { content: ""; position: absolute; left: 58px; right: 0; top: 0; height: 1px; background: var(--line); }
.topic__main { flex: 1; min-width: 0; }
.topic__label { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.topic__n { display: block; font-size: 13px; color: var(--ink-3); }
.topic__pick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(var(--tint), .28); color: transparent; transition: background var(--t) ease, color var(--t) ease, box-shadow var(--t) ease, transform var(--t-slow) var(--spring); }
.topic__pick .i { width: 14px; height: 14px; stroke-width: 2.6; }
.topic[aria-checked="true"] .topic__pick, .lv[aria-checked="true"] .topic__pick { background: var(--acc); color: var(--on-acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); transform: scale(1.06); }
.topic .ring .i { width: 12px; height: 12px; stroke-width: 2.6; color: var(--acc-ink); }
.topic:active { background: rgba(var(--tint), .06); }
.seg--5 .seg__opt { font-size: 12.5px; letter-spacing: -.015em; padding: 0 1px; }
.seg--in { background: rgba(var(--tint), .07); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07), inset 0 1px 2px rgba(var(--shade), calc(.3 * var(--sk))); }
.ss__mode { margin-top: 6px; font-size: 13px; color: var(--ink-3); min-height: 18px; }

/* ── placeholders and empty states ───────────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; gap: 10px; padding: 46px 18px; text-align: center; --r: var(--r-card); }
.empty .t-head { margin-top: 4px; }

/* ── Review, Record, Settings (frap-screens.js) ──────────────────────────────────────── */
/* Review's hero: the count in a ring, one button */
.rv { display: grid; place-items: center; margin: 4px 0 2px; }
.hero .rv { margin: 6px 0 12px; }
.rv .ring__in { display: grid; justify-items: center; gap: 0; }
.rv__n { font-size: 40px; line-height: 1; font-weight: 750; letter-spacing: -.03em; color: var(--ink); }
.rv__c { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rv__say { display: grid; gap: 2px; }
.rv__min { color: var(--ink); font-weight: 650; }
.rv .ring .i { width: 34px; height: 34px; color: var(--acc-ink); }
.rv .ring--arc .ring__bar { stroke: url(#acc-stroke); filter: drop-shadow(0 0 7px var(--glow)); }
.rv .rv__n { background: var(--gauge-num); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* a week of bars: Review's days to come, Record's days gone */
.bars { --r: var(--r-tile); display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 12px 12px; }
.bar { display: grid; grid-template-rows: 16px 84px auto; justify-items: center; gap: 5px; min-width: 0; }
.bar__n { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bar__col { position: relative; width: min(100%, 26px); height: 84px; border-radius: 9px; background: rgba(var(--tint), .07); box-shadow: inset 0 1px 2px rgba(var(--shade), calc(.3 * var(--sk))); }
.bar__col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 9px; background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -6px var(--glow); transform-origin: 50% 100%; animation: bar-up .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes bar-up { from { transform: scaleY(0); } }
.bar:nth-child(2) { --i: 1; } .bar:nth-child(3) { --i: 2; } .bar:nth-child(4) { --i: 3; }
.bar:nth-child(5) { --i: 4; } .bar:nth-child(6) { --i: 5; } .bar:nth-child(7) { --i: 6; }
.bar__d { font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.bar--now .bar__d { color: var(--acc-ink); }
/* Record's four numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { --r: var(--r-row); display: grid; justify-items: center; gap: 2px; padding: 14px 4px 12px; text-align: center; min-width: 0; }
.stat b { font-size: 22px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: 12px; font-weight: 650; margin-left: 1px; color: var(--ink-2); }
.stat > span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.row .ring .ring__track { stroke: rgba(var(--tint), .16); }
.row b.ink { color: var(--ink); font-weight: 650; }
/* Record: «Your words», the learner's words on the engine's ladder, drawn as a stair (frap-figure.js stand()) */
.words-st { --r: var(--r-row); padding: 14px 16px 12px; }
.words-st .ofig { max-width: 400px; margin: 0 auto 2px; }
.words-st .rec-say { margin: 2px 0 0; text-align: center; }
/* Your words (#/words) */
.sec-link { color: var(--acc-ink); font-weight: 650; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.words__q { position: static; margin-bottom: 10px; }
.words__chips { margin-top: 0; margin-bottom: 12px; }
.words__chips .chip[aria-checked="true"] { color: var(--on-seg); background: var(--seg-fill); }
.words__n { font-weight: 550; opacity: .7; font-variant-numeric: tabular-nums; }
.wrow { cursor: default; min-height: 60px; gap: 12px; }
.wrow .row__title { font-size: 18px; font-weight: 650; }
.wrow__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--tint), .25); }
.wrow__dot--1 { background: var(--acc-3); }
.wrow__dot--2 { background: var(--acc); box-shadow: 0 0 8px -1px var(--glow); }
.wrow__st { flex: none; display: grid; justify-items: end; gap: 1px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.wrow__st b { font-weight: 650; color: var(--ink-2); }
.wrow__st .is-due { color: var(--wrong-ink); font-weight: 650; }
/* Record: a month of study days */
.cal__head { align-items: center; }
.cal__nav { display: flex; align-items: center; gap: 2px; }
.cal__nav .t-foot { margin-right: 6px; color: var(--ink-2); }
.cal__b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); }
.cal__b .i { width: 18px; height: 18px; }
.cal__b[disabled] { opacity: .3; cursor: default; }
.cal { --r: var(--r-tile); padding: 12px 12px 14px; }
.cal__w, .cal__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal__w span { font-size: 11px; font-weight: 650; color: var(--ink-3); padding-bottom: 6px; }
.cal__d { display: grid; place-items: center; aspect-ratio: 1; max-width: 40px; width: 100%; margin: 0 auto; border-radius: 50%; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.cal__d.is-now { outline: 2px solid var(--ink-2); outline-offset: 1px; color: var(--ink); }
/* after .is-now: today, studied, keeps the ink its fill is priced for */
.cal__d.is-on { color: var(--on-acc); background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 10px -3px var(--glow); }
/* Settings */
.set-h { margin: 26px 4px 8px; font-size: 13px; font-weight: 650; letter-spacing: .01em; color: var(--ink-2); }
.set-foot { margin: 10px 6px 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.row__ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ic-ink); background: rgba(var(--ic-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--ic-rgb), .16); }
.row__ic .i { width: 18px; height: 18px; }
.row .slider { display: block; margin-top: 4px; }
.seg--row { flex: none; min-width: 190px; }
.seg--row .seg__opt { min-height: 32px; font-size: 13px; padding: 0 10px; }
/* Appearance: each register as a small picture of itself; Auto is both, split corner to corner.
   A picture shows ITS register whatever the page wears, so its colours are its own, not tokens. */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 12px 14px; }
.look { display: grid; justify-items: center; gap: 9px; padding: 4px 0; border-radius: 18px; }
.look__pv {
  position: relative; display: block; width: 68px; height: 102px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(var(--tint), .2), 0 10px 20px -10px rgba(var(--shade), calc(.7 * var(--sk)));
  transition: box-shadow var(--t) ease, transform var(--t-slow) var(--spring);
}
.look__pv--dark, .look__pv--auto, .look__pv--evening, .look__pv--clock { background: radial-gradient(90% 60% at 8% 0%, var(--pv-d1), transparent 72%), radial-gradient(90% 60% at 100% 100%, var(--pv-d2), transparent 72%), var(--pv-dg); }
.look__pv--light, .look__pv--auto::after, .look__pv--morning, .look__pv--afternoon, .look__pv--clock::after { background: radial-gradient(90% 60% at 8% 0%, var(--pv-l1), transparent 72%), radial-gradient(90% 60% at 100% 100%, var(--pv-l2), transparent 72%), var(--pv-lg); }
.look__pv--auto::after, .look__pv--clock::after { content: ""; position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.look__pv i { position: absolute; z-index: 1; left: 8px; right: 8px; height: 23px; border-radius: 7px; background: rgba(255, 255, 255, .15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.look__pv i:nth-child(1) { top: 12px; }
.look__pv i:nth-child(2) { top: 41px; }
.look__pv--light i, .look__pv--morning i, .look__pv--afternoon i { background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(112, 68, 48, .16); }
.look__pv--auto i, .look__pv--clock i { background: rgba(255, 255, 255, .34); }
.look__pv b { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 10px; height: 13px; border-radius: 999px; background: var(--pv-db); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.look__pv--light b, .look__pv--morning b, .look__pv--afternoon b { background: var(--pv-lb); }
/* THUD CUP's Blackout: black, its glass and its gold (frap.css html[data-calm][data-watch="on"]) */
.look__pv--blackout { background: #000; box-shadow: 0 0 0 1px rgba(236, 231, 220, .22), 0 10px 20px -10px rgba(var(--shade), calc(.7 * var(--sk))); }
.look__pv--blackout i { background: #141412; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.look__pv--blackout b { background: #dcac69; box-shadow: none; }
.look__name { font-size: 13px; font-weight: 650; color: var(--ink-2); transition: color var(--t) ease; }
.look[aria-checked="true"] .look__pv { transform: scale(1.05); box-shadow: 0 0 0 2.5px var(--acc-3), 0 0 0 5px rgba(var(--acc-rgb), .22), 0 12px 22px -10px rgba(var(--shade), calc(.7 * var(--sk))); }
.look[aria-checked="true"] .look__name { color: var(--ink); }
.look:active .look__pv { transform: scale(.96); transition-duration: .1s; }
.looks + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }

/* the type specimen: one card's own word, in the learner's face and size */
.spec { --r: var(--r-card); display: grid; justify-items: center; gap: 4px; padding: 20px 16px 22px; text-align: center; min-height: 148px; align-content: center; }
.spec__say { font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--acc-ink); }
.spec__uk { line-height: 1.12; font-weight: 600; letter-spacing: -.01em; color: var(--ink); transition: font-size var(--t-slow) var(--spring); }
.spec__en { line-height: 1.3; color: var(--ink-2); transition: font-size var(--t-slow) var(--spring); }
.faces { margin-top: 6px; }
.faces .ss__label { margin-top: 16px; }
.topic--card { border-radius: 14px; margin-bottom: 4px; background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
.topic--card + .topic--card::before { display: none; }
.topic--card .topic__label { font-size: 19px; font-weight: 500; }
/* a sheet of reading: the voice help, About */
.prose p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.prose p b { color: var(--ink); font-weight: 650; }
.prose .ss__note { margin: 4px 0 12px; }

/* ── screens change: the old one leaves, the new one arrives (View Transitions) ─────── */
#field { view-transition-name: field; }
.tabbar { view-transition-name: tabbar; }
::view-transition-group(field), ::view-transition-group(tabbar) { animation: none; }
::view-transition-old(field) { display: none; }
::view-transition-new(field) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .44s; animation-timing-function: var(--ease-out); }
html[data-nav="push"]::view-transition-old(root) { animation-name: vt-out-back; }
html[data-nav="push"]::view-transition-new(root) { animation-name: vt-in-fwd; }
html[data-nav="pop"]::view-transition-old(root) { animation-name: vt-out-fwd; }
html[data-nav="pop"]::view-transition-new(root) { animation-name: vt-in-back; }
html[data-nav="tab"]::view-transition-old(root) { animation-name: vt-fade-out; animation-duration: .2s; }
html[data-nav="tab"]::view-transition-new(root) { animation-name: vt-fade-up; animation-duration: .4s; }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(-14%) scale(.96); } }
@keyframes vt-in-fwd { from { opacity: 0; transform: translateX(22%) scale(.98); } }
@keyframes vt-out-fwd { to { opacity: 0; transform: translateX(22%) scale(.98); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-14%) scale(.96); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-up { from { opacity: 0; transform: translateY(14px); } }
html[data-nav="look"]::view-transition-old(root), html[data-nav="look"]::view-transition-new(root) { animation-duration: .5s; animation-timing-function: ease; }
html[data-nav="look"]::view-transition-old(field) { display: block; }
::view-transition-group(art) { animation-duration: .5s; animation-timing-function: var(--spring); }
/* one document to the other. Arriving here from the drill, the round is put away: it sinks
   and the shell comes forward. (The rules are the arriving page's; the drill has its own.) */
@view-transition { navigation: auto; }
html.arriving::view-transition-old(root) { animation: vt-put-away .34s var(--ease-out) both; }
html.arriving::view-transition-new(root) { animation: vt-come-forward .5s var(--ease-out) both; }
@keyframes vt-put-away { to { opacity: 0; transform: translateY(6%) scale(.985); } }
@keyframes vt-come-forward { from { opacity: 0; transform: scale(.955); } }

/* ══ MOTION THAT FOLLOWS THE PAGE ══════════════════════════════════════════════════════════
   A tab's large title goes up into a bar as the page scrolls; the hero's painting drifts
   against its card. Both are tied to the scroll itself where the browser can (scroll-driven
   animations); elsewhere the title simply scrolls away and the bar's name comes in. */
.stickybar {
  /* (In Safari on an iPhone the page is drawn on up under the clock, above anything a page can
     fix in place: tried on 2026-10-02 with a solid bar and with one reaching 120px above the
     window, and neither covers it. That strip is Safari's own. Installed, or in the native
     shell, the window is the whole screen and this bar covers the clock's row: --sat.) */
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(var(--sat) + 48px); margin: 0; pointer-events: none;
  background-color: rgba(var(--ground-rgb), 0); transition: background-color var(--t) ease;
}
.stickybar.top--stuck { background-color: var(--ground); }
.stickybar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; opacity: 0; transition: opacity var(--t) ease;
  background: linear-gradient(180deg, rgba(var(--ground-rgb), 1), rgba(var(--ground-rgb), 0));
}
.stickybar .top__title { position: absolute; left: 60px; right: 60px; top: calc(var(--sat) + 12px); line-height: 24px; }
.stickybar.top--stuck::before { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .top > #h1, .phead h1 { transform-origin: 0 70%; animation: title-away linear both; animation-timeline: scroll(root block); animation-range: 10px 92px; }
  @keyframes title-away { to { opacity: 0; transform: scale(.86) translateY(-8px); } }
}

/* ══ HALF A MACBOOK'S SCREEN (720 × 810, docked; ROUND3.md 2.4): the phone's layout, made for the
   width. A wider column, centred. ═══════════════════════════════ */
@media (min-width: 600px) and (max-width: 959px) {
  #view { max-width: 640px; }
}

/* ══ A DESK: from 960px the tab bar is a slim rail at the left, the page a centred column,
   and a sheet is a dialog in the middle of the screen ══════════════════════════════════════ */
@media (min-width: 960px) {
  #view { max-width: 760px; padding: calc(var(--sat) + 40px) 40px 72px; }
  .tabbar {
    left: max(var(--sal), 22px); top: 50%; bottom: auto; transform: translateY(-50%);
    grid-auto-flow: row; grid-auto-rows: 70px; grid-auto-columns: unset; width: 84px; height: auto; padding: 6px; --r: 30px; border-radius: 30px;
  }
  .tabbar.away { transform: translate(-160%, -50%); }
  .tabbar__thumb { top: 6px; left: 6px; right: 6px; bottom: auto; width: auto; height: 70px; border-radius: 24px; transform: translateY(calc(var(--at, 0) * 100%)); }
  @keyframes thumb-stretch { 32% { scale: .88 1.2; } 70% { scale: 1.02 .98; } }
  .tab { border-radius: 24px; font-size: 11px; gap: 4px; }
  .tab .i { width: 24px; height: 24px; }
  .tab__badge { top: 8px; left: calc(50% + 7px); }
  .hero { padding: 22px; }
  .stats { gap: 12px; }
  .stat b { font-size: 28px; }
  /* a sheet is a dialog */
  .sheet {
    top: 50%; bottom: auto; max-height: min(780px, calc(100dvh - 72px)); border-radius: var(--r-sheet); padding-bottom: 0;
    transform: translateY(-46%) scale(.955); opacity: 0;
    transition: transform var(--t-slow) var(--spring), opacity var(--t-fast) ease;
  }
  .sheet.on { transform: translateY(-50%) scale(1); opacity: 1; }
  .sheet__grab { height: 18px; cursor: default; pointer-events: none; }
  .sheet__grab::after { display: none; }
  .sheet__foot { padding-bottom: 20px; }
}
@media (min-width: 1240px) {
  #view { max-width: 820px; }
}

/* ══ THE MACBOOK (ROUND3.md 2.3): from 1100px the rail is a labeled sidebar, 248px of glass on the
   field, inset 16px, full height (Linear, MasterClass, Coinbase Learn: RESEARCH.md round three);
   the page is a column of at most 1080px, centred in what is left. 960–1099 keeps the rail. ═══ */
.side { display: none; }
@media (min-width: 1100px) {
  .tabbar {
    left: calc(16px + var(--sal)); top: 16px; bottom: 16px; transform: none; width: 248px; height: auto;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 12px 12px; --r: 28px; border-radius: 28px;
  }
  /* a sheet is a dialog here, over a scrim: the sidebar stays; only the first visit has none */
  .tabbar.away { transform: none; opacity: 1; pointer-events: auto; }
  .tabbar.away.off { transform: translateX(-120%); opacity: 0; pointer-events: none; }
  .tabbar__thumb { display: none; }
  .side { display: flex; }
  .side__brand { align-items: center; gap: 10px; padding: 2px 8px 14px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
  .side__find {
    align-items: center; gap: 10px; min-height: 44px; margin: 0 0 12px; padding: 0 10px 0 12px; border-radius: 14px; text-align: left;
    background: rgba(var(--tint), .07); box-shadow: inset 0 0 0 1px rgba(var(--tint), .08); color: var(--ink-3); font-size: 15px;
    transition: background var(--t) ease;
  }
  .side__find .i { width: 18px; height: 18px; color: var(--ink-2); }
  .side__find kbd { margin-left: auto; padding: 2px 7px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3); background: rgba(var(--tint), .08); }
  .side__find:hover { background: rgba(var(--tint), .1); }
  .tab {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 14px;
    font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--ink-2);
  }
  .tab .i { width: 20px; height: 20px; }
  .tab[aria-current="page"] { color: var(--ink); background: var(--thumb); box-shadow: var(--thumb-shadow); }
  .tab:hover:not([aria-current]) { background: rgba(var(--tint), .05); color: var(--ink); }
  .tab:active { transform: scale(.98); }
  .tab__badge { position: static; margin-left: auto; min-width: 22px; height: 22px; font-size: 12px; }
  .side__foot { margin-top: auto; padding: 10px 2px 0; }
  .side__foot .chip { min-height: 36px; padding: 0 14px; }
  #view {
    max-width: none; margin: 0 0 0 calc(280px + var(--sal));
    padding: calc(var(--sat) + 36px) max(40px, calc((100vw - 280px - 1080px) / 2)) 72px;
  }
  .stickybar { left: calc(280px + var(--sal)); }
  /* scrollbars that belong to the glass (Chrome draws grey ones on a Mac with a mouse) */
  html { scrollbar-color: rgba(var(--tint), .22) transparent; }
  .strat__panel *, .sheet * { scrollbar-width: thin; scrollbar-color: rgba(var(--tint), .22) transparent; }
  /* Learn: the sidebar carries the name, the level and Find; the page has no visible title (owner,
     2026-10-02: the word «Learn» above Continue «serves no purpose»; the h1 stays for a screen reader) */
  .top--learn, .find-cap { display: none; }
}
/* A STRATEGY ON A DESK: two panes; the route or the lists, and the section in hand in a sticky
   panel at the right (frap.js fillPanel), its body the section sheet's own */
.strat__panel { display: none; }
@media (min-width: 1100px) {
  .strat { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .strat__main { min-width: 0; }
  .strat__panel {
    display: flex; flex-direction: column; position: sticky; top: calc(var(--sat) + 24px); max-height: calc(100dvh - 48px);
    --r: var(--r-card); border-radius: var(--r-card); margin-top: 6px;
  }
  .strat__panel.in > * { animation: rise .5s var(--ease-out) both; }
  .strat__panel .sheet__body { padding: 22px 20px 14px; }
  .strat__panel .sheet__foot { padding: 10px 20px 20px; }
  .strat__panel .ss__head h2 { font-size: 26px; }
  .stop__card.is-sel { box-shadow: inset 0 0 0 2px rgba(var(--tint), .55), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); background-color: var(--glass-strong-fill); }
  .stop--next .stop__card.is-sel { box-shadow: inset 0 0 0 2px var(--acc-3), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); }
  .pick .row.is-sel { background: rgba(var(--tint), .08); }
  .pick .row.is-sel .row__title { color: var(--ink); }
  @media (hover: hover) { .stop__card:hover:not(.is-sel) { background-color: var(--glass-strong-fill); } }
}
/* REVIEW AND RECORD ON A DESK: side by side (Review: the count and what comes; Record: the week
   and the record grouped, beside the latest rounds) */
@media (min-width: 1100px) {
  .rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .rv-grid > .glass.empty, .rv-grid > .hero { margin: 0; }
  .rv-more > .sec-head:first-child, .rec-a > .sec-head:first-child, .rec-b > .sec-head:first-child { margin-top: 0; }
  .rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 30px; }
}
@media (min-width: 1280px) {
  /* Settings in two columns of groups: the level, the card and a round; sound, the look, your data */
  .set-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .set-col:last-child > .set-h:first-child { margin-top: 0; }
}
