/* app2/ui/screens.css — the site screens of the interface standard (screenplay 3.0; M92, M95,
   M101, M105, M106): the shared page pieces (titles, panels, tables, buttons, keycaps, the
   segmented control, the switch, the theme tiles, the tick rows), the landing page,
   the first run, the paywall panel, pricing, Reference, Settings, the footer,
   the banner lane and the moments' classes. Tokens only (ui/tokens.css): no hex value, pixel
   size or duration appears here, apart from 0 and the 1px hairline. Loaded last. */

/* ---------- the page: one strong left edge, the paper ground ---------- */
.page{font-family:var(--font); color:var(--ink); max-width:none; margin:0; display:flex; flex-direction:column; gap:var(--s5)}
.h-title{font-size:var(--fs-title); font-weight:var(--fw-heavy); line-height:var(--lh-tight); margin:0; letter-spacing:normal; font-family:var(--font)}
.label{font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.body{font-size:var(--fs-body); line-height:var(--lh-body); margin:0}
.fine{font-size:var(--fs-min); line-height:var(--lh-body); color:var(--ink-2); margin:0}
.ink-2{color:var(--ink-2)}
.mono{font-family:var(--mono)}
.num{font-variant-numeric:tabular-nums; text-align:right}
.panel-mode[data-mode="learn"]{--mode:var(--learn); --mode-ink:var(--learn-ink); --mode-tint:var(--learn-tint); --mode-on:var(--learn-on); --mode-hover:var(--learn-hover); --mode-line:var(--learn-line)}
.cols-2{display:grid; grid-template-columns:minmax(0,1fr) var(--side-col); gap:var(--s5); align-items:stretch}
.col{display:flex; flex-direction:column; gap:var(--s5); min-width:0}
.col > .panel:last-child{flex:1 1 auto}
/* keycaps: mono on a key with a 3px bottom edge */
.keys{display:flex; gap:var(--s2); align-items:center}
/* the segmented control: one of a few, the chosen one in ink */
.seg{display:inline-flex; border:1px solid var(--edge); border-radius:var(--r-btn); overflow:hidden; background:var(--sheet)}
.seg-btn{font-family:var(--font); font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink); background:transparent; border:0; padding:var(--s2) var(--s3); cursor:pointer}
.seg-btn + .seg-btn{border-left:1px solid var(--line)}
@media (hover:hover){ .seg-btn:not(.on):hover{background:var(--chrome)} }
.seg-btn.on{background:var(--ink); color:var(--sheet)}   /* the choice in hand (controls 2d): the ink's ground, the sheet's word, as a filter chip */
.seg-btn:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}   /* the group clips (overflow hidden): the ring sits inside the button */
/* the switch */
.switch{width:var(--s12); height:var(--s6); border-radius:var(--s6); border:1px solid var(--edge); background:var(--chrome); position:relative; cursor:pointer; padding:0}
.switch i{position:absolute; top:var(--s1); left:var(--s1); width:var(--s4); height:var(--s4); border-radius:50%; background:var(--sheet); border:1px solid var(--edge); box-sizing:border-box; transition:left var(--d-key)}
.switch.on{background:var(--mode-line); border-color:var(--mode-line)}
.switch.on i{left:calc(100% - var(--s4) - var(--s1)); border-color:var(--on-fill)}
.switch:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
/* ticked rows, tier marks, the checklist */
.ticks{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.ticks li{display:flex; align-items:flex-start; gap:var(--s3); padding:var(--s2) 0; border-bottom:1px solid var(--line); font-size:var(--fs-small); line-height:var(--lh-body)}
.ticks li:last-child{border-bottom:0}
.plan-tick{flex:none; width:var(--s4); height:var(--s4); margin-top:var(--s1); background:var(--mode-line); border-radius:var(--s1); position:relative}
.plan-tick::after{content:''; position:absolute; left:calc(var(--s1) + 1px); top:var(--cursor-w); width:var(--s1); height:var(--s2); border:solid var(--on-fill); border-width:0 var(--cursor-w) var(--cursor-w) 0; transform:rotate(45deg)}
.checklist{list-style:none; margin:0; padding:0; counter-reset:task}
.checklist li{counter-increment:task; padding:var(--s2) var(--s2) var(--s2) var(--s8); position:relative; border-bottom:1px solid var(--line); font-size:var(--fs-small)}
.checklist li::before{content:counter(task); position:absolute; left:var(--s2); font-variant-numeric:tabular-nums; color:var(--ink-2)}
.checklist li.done{color:var(--ink-2)}
.checklist li.now{background:var(--mode-tint); outline:var(--cursor-w) solid var(--mode-line); outline-offset:calc(-1 * var(--cursor-w))}
.checklist li:last-child{border-bottom:0}


/* the live demo: the Ribbon's tab row, the sheet with the task card over it, the sheet tab */
.dp-live{display:flex; flex-direction:column; overflow:hidden}
.dp-live .ribbon-slot{position:relative; flex:none; height:var(--tabrow-h); z-index:12; background:var(--chrome)}
.dp-live .ribbon-slot > .ribbon{position:absolute; top:0; left:0; right:0}
.dp-live .ribbon.ribbon-full{height:calc(var(--tabrow-h) + var(--ribbon-groups-h)); font-family:var(--font); background:var(--chrome); border:0; border-radius:0; box-shadow:var(--shadow-float)}
.dp-live .ribbon-slot.rib-collapsed .ribbon.ribbon-full{height:var(--tabrow-h); box-shadow:none}
.dp-live .ribbon.ribbon-full.show{background-image:none}
.dp-live .rf-tabs, html[data-density] .dp-live .rf-tabs{height:var(--tabrow-h); box-sizing:border-box; align-items:center; padding:0 var(--s2); gap:var(--bw-2); border-bottom:1px solid var(--line); background:var(--chrome)}
.dp-live .rf-tab, html[data-density] .dp-live .rf-tab{font-family:var(--font); font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2); border-radius:var(--r-btn); padding:var(--s1) var(--s2); margin:0; border:0}
.dp-live .rf-tab.on, html[data-density] .dp-live .rf-tab.on{color:var(--on-fill); background:var(--learn)}
.dp-live .rf-tab.rf-file, html[data-density] .dp-live .rf-tab.rf-file{color:var(--on-fill); background:var(--learn-ink)}
/* the demo is narrower than a workspace: the eight tabs take the row, so the tools at its right end stay off it */
.dp-live .rf-tabs .rf-tools{display:none}
.dp-live .dp-stage{position:relative; flex:1 1 auto; min-height:0; display:flex; flex-direction:column; padding:0}
.dp-live .dp-stage .stage{flex:1 1 auto; min-height:0; border:0; border-radius:0}
.dp-live .dp-stage .stage-row, .dp-live .dp-stage .stage-main{min-height:0; flex:1 1 auto}
.dp-live .sbar, .dp-live .fbar{display:none}
.dp-live .tc{width:var(--lp-card-w); padding:0 var(--s4) var(--s3); gap:var(--s2)}   /* the head band flush at the top, as the kit's own card (workspace.css .tc) */
.dp-live .tc-goal{font-size:var(--fs-small)}
.dp-live .tc-foot{display:none}
.dp-foot{flex:none; display:flex; align-items:stretch; justify-content:space-between; height:var(--sbar-h); background:var(--chrome); border-top:1px solid var(--line); font-size:var(--fs-label)}
.dp-live .dp-sheettab{display:flex; align-items:center; padding:0 var(--s4); margin-left:var(--s6); background:var(--sheet); color:var(--learn-ink); font-weight:var(--fw-semi); box-shadow:inset 0 calc(-1 * var(--cursor-w)) 0 var(--learn)}
.dp-live .dp-count{display:flex; align-items:center; padding:0 var(--s3); font-family:var(--font); font-variant-numeric:tabular-nums; color:var(--ink-2); letter-spacing:normal}
.dp-live .dp-play{font-family:var(--font)}
.dp-live[tabindex]:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}

/* the lesson plate: a corner of the sheet, the target ringed, the real task card floating over its lower rows, pointing up at it */

/* the course: six chapter cards, each its modules of lessons closing in a challenge */

/* the rapid-fire combo segments */
.combo{display:flex; gap:var(--s1)}
.combo i{width:var(--s5); height:var(--s2); background:var(--sheet); display:inline-block}
.combo i.on{background:var(--rapid)}

/* ---------- the first run (3.0, The first run; M92) ---------- */
.fr{font-family:var(--font); display:flex; justify-content:center; padding:var(--s8) 0}


/* ---------- the paywall panel (3.0, Pricing and the paywall; M105) ---------- */
.paywall{max-width:calc(var(--side-col) * 2)}
.paywall-mark{color:var(--learn-ink)}
.page.locked{align-items:flex-start}

/* ---------- pricing ---------- */
.plan{gap:var(--s4)}
.sr-only{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.plan-price{display:flex; align-items:baseline; gap:var(--s3)}
.plan-figure{font-size:var(--fs-time); font-weight:var(--fw-heavy); font-variant-numeric:tabular-nums}
.plan-sub{margin:calc(-1 * var(--s2)) 0 0; font-size:var(--fs-small); line-height:var(--lh-body)}
.plan-trust{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:var(--s1)}

/* ---------- checkout (Phase E): the form or the sign-in at the left, the summary at the right ---------- */
.co-err{margin:0; font-size:var(--fs-small); line-height:var(--lh-body); color:var(--red)}
.co-err:empty{display:none}
.co-form{display:flex; flex-direction:column; align-items:flex-start; gap:var(--s2)}
.co-form .btn-row{margin-top:var(--s2)}
.co-stripe{min-height:calc(var(--side-col) + var(--s12)); display:flex; flex-direction:column}
.co-placeholder{margin:0; flex:1 1 auto; display:flex; align-items:center; justify-content:center; border:1px dashed var(--line); padding:var(--s6); font-size:var(--fs-body)}
.co-done{max-width:calc(var(--side-col) * 2)}
.co-done a:not(.ui-btn){color:var(--ink)}   /* plain links only: a button keeps its own label colour */
.m-unlocked{animation:m-rise var(--d-unlock) ease-out}

/* ---------- Reference (3.0, Reference; M106) ---------- */
.reference .tbl td{padding:var(--s2) var(--s2)}
/* Reference: each group has its colour (the theme's mode colours, so every theme keeps its contrast) */
[data-g="move"]{--g:var(--drills); --g-ink:var(--drills-ink); --g-tint:var(--drills-tint); --g-on:var(--on-fill)}
[data-g="select"]{--g:var(--challenges); --g-ink:var(--challenges-ink); --g-tint:var(--challenges-tint); --g-on:var(--on-fill)}
[data-g="edit"]{--g:var(--rapid); --g-ink:var(--rapid-ink); --g-tint:var(--rapid-tint); --g-on:var(--on-fill)}
[data-g="format"]{--g:var(--daily); --g-ink:var(--daily-ink); --g-tint:var(--daily-tint); --g-on:var(--on-fill)}
[data-g="formulas"]{--g:var(--learn); --g-ink:var(--learn-ink); --g-tint:var(--learn-tint); --g-on:var(--on-fill)}
[data-g="ribbon"]{--g:var(--clock); --g-ink:var(--clock-ink); --g-tint:var(--clock-tint); --g-on:var(--ink)}
[data-g="data"]{--g:var(--ink-2); --g-ink:var(--ink); --g-tint:var(--chrome); --g-on:var(--sheet)}
.reference{display:flex; flex-direction:column; gap:var(--s5)}
/* the board: the keyboard, its legend, and the card for the key in hand */
.kb{display:flex; gap:var(--s4); align-items:flex-start}
.kb-main, .kb-nav{display:flex; flex-direction:column; gap:var(--kb-gap)}
.kb-row{display:flex; gap:var(--kb-gap)}
.kb-row:first-child{margin-bottom:var(--s2)}
.kb-key, .kb-gap{flex:none; width:calc(var(--kb-u) * var(--w, 1) + var(--kb-gap) * (var(--w, 1) - 1)); height:var(--kb-u); box-sizing:border-box}
/* a key of the keyboard map is the keycap kit's cap (components/keyboard.js) at the map's unit, its legend at the lower left */
.kb-key{display:flex; align-items:flex-end; justify-content:flex-start; min-width:0; padding:0 var(--s1) var(--kb-pad); --cap-fs:var(--fs-min); --cap-ink:var(--ink-2); --cap-rim:var(--line); --cap-foot:var(--key-edge); transition:transform var(--d-key), background var(--d-key)}
.kb-key.kb-used{--cap-rim:var(--g); --cap-ink:var(--g-ink); --cap-face:var(--sheet)}
.kb-key.kb-used.kb-on{--cap-face:var(--g-tint); --cap-fw:var(--fw-bold)}
.kb-key.kb-down{--cap-face:var(--g, var(--ink)); --cap-rim:var(--g, var(--ink)); --cap-ink:var(--g-on, var(--sheet)); transform:translateY(var(--bw-2)); --cap-foot:1px}
.kb-key[data-k="Ctrl"].kb-down, .kb-key[data-k="Shift"].kb-down, .kb-key[data-k="Alt"].kb-down{--cap-face:var(--ink); --cap-rim:var(--ink); --cap-ink:var(--sheet)}
/* the demo takes the arrows' room; the main keys stay whole */
/* the groups: two dense columns, each group's colour on its rule and its swatch */
@media (max-width:1100px){   .kb-nav{display:none} }
@media (max-width:900px){  .kb{display:none} }

/* ---------- Settings (3.0, Account; M101): the Theme band, then Game options ---------- */
.settings{display:flex; flex-direction:column; gap:var(--s5)}
.setting{padding:var(--s2) 0; border-bottom:1px solid var(--grid); display:flex; flex-direction:column; gap:var(--s2)}
.setting:last-child{border-bottom:0}
/* the theme cards: each one a corner of a sheet in that theme's own colours */
.tiles{display:grid; grid-template-columns:repeat(auto-fill, minmax(var(--theme-card-w), 1fr)); gap:var(--s4)}
.tile{font-family:var(--font); background:transparent; border:0; padding:0; cursor:pointer; display:flex; flex-direction:column; gap:var(--s1); align-items:stretch; text-align:left; color:var(--ink)}
.tile-sheet{display:flex; height:var(--theme-card-h); background:var(--tile-bg); border:1px solid var(--edge); overflow:hidden}
.tile.on .tile-sheet{outline:var(--cursor-w) solid var(--mode-line); outline-offset:var(--cursor-w)}
.tile:not(.locked):hover .tile-sheet{border-color:var(--ink)}
.tile.locked .tile-sheet{opacity:.6}
.tile.locked{cursor:default}


/* ---------- the banner lane: one at a time at the top right, four seconds or any key ---------- */
/* R10: under the top bar, at the right edge of the page's column */
.fx-banner{left:auto; right:max(var(--s4), calc((100vw - var(--page-w)) / 2)); bottom:auto; top:calc(var(--top-h) + var(--s3)); width:var(--banner-w); max-width:calc(100vw - 2 * var(--s4)); box-sizing:border-box; transform:translateY(calc(-1 * var(--s3))); border:0; border-left:var(--mode-rule) solid var(--mode-line); border-radius:var(--r-card); box-shadow:var(--shadow-float); font-family:var(--font); transition:opacity var(--d-note), transform var(--d-note); pointer-events:auto; align-items:flex-start; flex-wrap:nowrap; gap:var(--s3)}
.fx-banner.in{transform:none}
/* a banner with the cell over its top edge sits that much lower, so the cell never hides behind the top bar; its air is the kit's step */
.fx-banner{padding:var(--s4)}
.fx-banner.fx-cell{top:calc(var(--top-h) + var(--s3) + var(--cell-md) * var(--cell-show))}
.fx-b-art{flex:none; display:grid; place-items:center; width:var(--banner-art); height:var(--banner-art); border-radius:var(--r-card); background:var(--paper)}
.fx-b-art svg{display:block; image-rendering:pixelated}
.fx-b-words{display:flex; flex-direction:column; gap:var(--s1); min-width:0}
.fx-banner .fx-b-words small{font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2)}
.fx-b-words b{font-size:var(--fs-panel); font-weight:var(--fw-heavy); color:var(--ink)}
.fx-banner .fx-b-line{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.fx-b-act{margin-top:var(--s2)}

/* ---------- the moments' classes (ui/effects.js play(name, el)): transform and opacity only ---------- */
.m-goal-done{animation:m-pop var(--d-goal) ease-out}
.m-rapid-hit{animation:m-pop var(--d-hit) ease-out}
.m-combo{animation:m-ring var(--d-combo) ease-out}
.m-wrong{animation:m-shake var(--d-wrong) ease-in-out}
.m-streak-day{animation:m-ring var(--d-streak) ease-out}
.m-quests-done{animation:m-rise var(--d-quests) ease-out}
.m-beat{animation:m-fade var(--d-beat) ease-out}
.m-note{animation:m-rise var(--d-note) ease-out}
.m-open-workbook{animation:m-fade var(--d-open) ease-out}
.m-fade{animation-name:m-fade}
@keyframes m-pop{0%{transform:scale(.92); opacity:.6} 60%{transform:scale(1.04)} 100%{transform:none; opacity:1}}
@keyframes m-ring{0%{box-shadow:0 0 0 0 var(--mode-line)} 100%{box-shadow:0 0 0 var(--s3) transparent}}
@keyframes m-shake{0%,100%{transform:none} 25%{transform:translateX(calc(-1 * var(--s1)))} 75%{transform:translateX(var(--s1))}}
@keyframes m-rise{0%{transform:translateY(var(--s2)); opacity:0} 100%{transform:none; opacity:1}}
@keyframes m-fade{0%{opacity:0} 100%{opacity:1}}
@media (prefers-reduced-motion: reduce){ .switch i, .fx-banner{transition:none} [class*="m-"]{animation-name:m-fade} }

/* ---------- below 900px: the columns stack ---------- */
@media (max-width:900px){
  .cols-2{grid-template-columns:minmax(0,1fr)}
}

/* a pop-out over the page (components/pop.js): the scrim; the card on it is a menu kit dialog card (ui/menu-kit.css .mk-dlg) */
/* a card taller than the window (Graded wrong at 1280 by 720) scrolls inside the scrim from its own top: the auto margins
   centre a card that fits and fall to nothing for one that does not, so its head and its foot are both reachable */
.pop, .pop-out{position:fixed; inset:0; z-index:70; display:flex; align-items:flex-start; justify-content:center; padding:var(--s6); background:var(--scrim); font-family:var(--font); overflow-y:auto; overscroll-behavior:contain}
.rp-facts-h{margin:0; font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2)}
.rp-facts{display:flex; flex-direction:column; margin:0; border-top:1px solid var(--line)}
.rp-fact{display:grid; grid-template-columns:var(--ls-st-w) minmax(0,1fr); gap:var(--s3); padding:var(--s1) 0; border-bottom:1px solid var(--line); font-size:var(--fs-label); line-height:var(--lh-body)}
.rp-fact dt{color:var(--ink-2)}
.rp-fact dd{margin:0; color:var(--ink); overflow-wrap:anywhere}
/* the teams consent line (components/consent.js consentHtml('teams')); the agreement box itself is the menu kit's tick box (.mk-check) */
.consent{display:flex; flex-direction:column; gap:var(--s2); align-self:stretch}
/* the terms gate (app/terms.js) in the pop-out: the box sits left-aligned under the line */
.cel-body{align-self:stretch; display:flex; flex-direction:column; gap:var(--s2)}

/* the achievement banner (6.7): the sprite at 3x, the name, the line, and the rarity as a colored word */
.fx-banner.fx-ach{align-items:center; flex-wrap:nowrap; gap:var(--s3)}
.fx-ach-art{flex:none; image-rendering:pixelated}
.fx-ach-words{display:flex; flex-direction:column; gap:var(--s1)}
.fx-ach-words b{color:var(--ink); font-weight:var(--fw-bold)}
.fx-ach-rar{font-style:normal; font-size:var(--fs-min); font-weight:var(--fw-semi); color:var(--rar-common)}
.fx-ach.r-rare .fx-ach-rar{color:var(--rar-rare)} .fx-ach.r-epic .fx-ach-rar{color:var(--rar-epic)} .fx-ach.r-legendary .fx-ach-rar{color:var(--rar-legendary)}

/* ---------- rapid-fire's stage (3.0, Rapid-fire; M100): its own page on the theme's own ground, no rail and no footer (the palette pass, Round 2:
   the full-window teal wash read baby blue on a light theme and replaced Crimson's, Amber's and Synthwave's ground on a dark one; teal is a
   3px rule under its top bar, beside the words Rapid-fire) ---------- */
body[data-route="rapid"]{background:var(--paper)}
body[data-route="rapid"] #footMount, body[data-route="rapid"] .site-footer{display:none}
body[data-route="rapid"] > .app{padding:0; margin:0; max-width:none}
.rf{max-width:none; margin:0; padding:0; font-family:var(--font); color:var(--ink); display:flex; flex-direction:column; height:100vh; overflow:hidden}
/* the top bar: Practice on Esc, the mode and the length at the left; the hits and the clock at the right. It grows with the
   window (--k-win) as the frame does, its ground the window's width and its content the frame's column, so Back sits over the
   Ribbon's left edge and the clock over its right edge on every screen (the Rapid-fire design, 2026-10-13) */
.rf-top{display:flex; align-items:center; justify-content:center; height:var(--rf-top-h); border-bottom:1px solid var(--line); background:var(--sheet); flex:none; zoom:var(--k-win)}
.rf-top-in{display:flex; align-items:center; gap:var(--s4); height:100%; box-sizing:border-box; width:calc(100% - 2 * var(--s4)); max-width:calc(var(--rf-max) / var(--k-win))}
.rf-back svg{width:var(--s4); height:var(--s4)}
/* a spare Esc's hint (UI-93): the workspace's one hint (workspace.css .wsc-hint), under Arcade, the control it names */
.rf-top-in{position:relative}
.rf-top .rf-exit-hint[data-at="exit"]{top:calc(100% + var(--s1)); left:0}
.rf-mode{display:inline-flex; align-items:center; gap:var(--s2); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink); margin-left:var(--s2)}
.rf-mode i{display:inline-block; width:var(--mode-mark); height:var(--mode-mark); background:var(--rapid)}
.rf-dur{font-size:var(--fs-label); color:var(--ink-2)}
/* the Windows | Mac switch (ui/components/key-switch.js), the workspace title bar's own, beside the round's length */
.rf-top .wsc-keys{flex:none; height:var(--ctl-h-sm); box-sizing:border-box}
.rf-top .wsc-keys .seg-btn{height:100%; padding:0 var(--s3); font-size:var(--fs-label)}
.rf-hits{margin-left:auto; display:inline-flex; align-items:baseline; gap:var(--s2); font-size:var(--fs-label); color:var(--ink-2); padding-right:var(--s4); border-right:1px solid var(--line)}
.rf-hits b{display:inline-block; font-size:var(--fs-item); font-weight:var(--fw-bold); color:var(--ink); font-variant-numeric:tabular-nums}
.rf-hits b.rf-bump{animation:rf-bump var(--d-route) ease-out}
.rf-score{margin-left:0}   /* the round's points beside Hits, the same label and number in the ink: the clock is the bar's one teal thing (RF-9 A, UI-37) */
.rf-clock{font-family:var(--mono); font-size:var(--fs-clock); font-weight:var(--fw-bold); font-variant-numeric:tabular-nums; color:var(--rapid-ink)}
.rf-main{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding:0 var(--content-side); position:relative}
@media (max-width:1300px){ .rf-main{padding-left:var(--s4); padding-right:var(--s4)} }
/* the round on the eye line: the frame (the Ribbon, the strip, the sheet) with its sheet's center at --rf-eye of the window
   (rapid-fire.js stageLayout writes --rf-air), then the meter close under it */
.rf-play{display:flex; flex-direction:column; align-items:center; gap:0; width:100%; margin-top:var(--rf-air, var(--s2))}
/* a big screen: the meter, the note, the start, the result and the loading card grow with the window; the frame grows as one
   below (Wolf, 2026-10-13: "Grow it all"; the stage's alone, a lesson keeps Excel's own Ribbon) */
.rf-meter, .rf-note, .rf-start, .rf-result, .rf-load .ld{zoom:var(--k-win)}
.rf-prompt{margin:0; font-size:var(--fs-prompt); font-weight:var(--fw-heavy); line-height:var(--lh-tight); text-align:center; color:var(--ink)}
/* the frame: the full Ribbon across the top (the workspace's own, .wsc's Excel styles, never folded to a strip), the strip
   in the formula bar's row, then the sheet; drawn at Excel's size and zoomed as one by the window's step */
.rf-frag{position:relative; display:flex; flex-direction:column; width:min(calc(var(--rf-max) / var(--k-win)), 100%); background:var(--sheet); border:1px solid var(--line); box-shadow:var(--lift); overflow:hidden; zoom:var(--k-win)}
.wsc.rf-wsc{height:auto; display:block; background:var(--xl-body)}
/* a box shows its KeyTip whole past its value (ui/stage-keytips.js); the value still clips */
.rf-frag .ribbon .rf-box{overflow:visible}
.rf-frag .ribbon .rf-box .rf-box-v{overflow:hidden}
/* the strip: the Name Box at its left (a fixed width, so the command always starts at one x), the command, its keys right
   after it; the mode's rule at the left edge; the sheet's white between prompts, color only on a hit, a miss or a hot streak.
   Every frame is solid: the strip never fades from one state to the next (RF-9) */
.rf-strip{display:flex; align-items:center; gap:var(--s8); box-sizing:border-box; min-height:var(--rf-strip-h); padding:var(--rf-strip-pad) var(--s4) var(--rf-strip-pad) 0;
  background:var(--sheet); border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-left:var(--mode-rule) solid var(--rapid)}
.rf-namebox{flex:none; align-self:stretch; display:flex; align-items:center; box-sizing:border-box; width:var(--rf-name-w); margin:calc(-1 * var(--rf-strip-pad)) calc(-1 * var(--s4)) calc(-1 * var(--rf-strip-pad)) 0; padding:0 var(--s2) 0 var(--s3);
  font-family:var(--mono); font-size:var(--fs-item); font-weight:var(--fw-semi); color:var(--ink-2); border-right:1px solid var(--line); white-space:nowrap; overflow:hidden; font-variant-numeric:tabular-nums}
.rf-nb-w{flex:none; width:var(--s6); font-family:var(--font); font-size:var(--fs-label); font-weight:var(--fw-semi); color:inherit}
.rf-namebox.on-target{color:var(--rapid-ink); font-weight:var(--fw-bold)}
.rf-strip .rf-prompt{flex:0 1 auto; min-width:0; max-width:calc(var(--s16) * 11); text-align:left; font-size:var(--fs-hero); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rf-sheet{position:relative; width:100%; height:var(--rf-sheet-max); overflow:hidden; background:var(--rf-sheet-ground)}   /* rapid-fire.js holds one height for the round: the header and n whole rows */
.rf-sheet .fbar, .rf-sheet .sbar{display:none}
.rf-sheet .gridwrap{overflow:hidden}
/* the target: dashed in the mode's line (a thin stroke of a bright lane, 3 to 1 on the page); solid in the right answer's green on a hit,
   red on a miss, over the cell cursor with a hair of white inside */
.rf-target{position:absolute; pointer-events:none; border:var(--rf-target-w) dashed var(--rapid-line); z-index:6}
.rf-frag.hit .rf-target{border-style:solid; border-color:var(--right)}
.rf-frag.miss .rf-target{border-style:solid; border-color:var(--red)}
.rf-frag:is(.hit, .miss) .rf-target{box-shadow:inset 0 0 0 1px var(--sheet)}
/* a target whose rows (or columns) are folded away: the same dashes in a band on the seam where they are */
.rf-seam{position:absolute; pointer-events:none; z-index:6; box-sizing:border-box; border:var(--rf-target-w) dashed var(--rapid-line)}
.rf-seam[hidden]{display:none}
.rf-frag.hit .rf-seam{border-style:solid; border-color:var(--right)}
.rf-frag.miss .rf-seam{border-style:solid; border-color:var(--red)}
/* on a miss the fragment is back where the prompt began, and the cursor's own marks step back: the red outline is the one mark */
.rf-frag.miss .rf-sheet td.active{outline-color:transparent}
.rf-frag.miss .rf-sheet td.sel::before, .rf-frag.miss .rf-sheet td.fh::after{display:none}
/* the cell cursor scrolled up under the sticky column header steps back too: its outline would show through the header's lines */
.rf-frag.cursor-under .rf-sheet td.active{outline-color:transparent}
.rf-frag.cursor-under .rf-sheet td.fh::after{display:none}
/* the caps: a lg button tall, right after the command, every one the same width whatever its key (--rf-cap-w), blank, typed,
   shown or the answer: a blank never tells a held Ctrl from a Ribbon letter by its width, and a key filling in never moves
   the caps after it. A long key name (Shift, Enter, Delete) is set smaller in its cap, as a keyboard prints its modifiers. The
   legend is the scale's --fs-item at every window (design kit sprint 1b; a short window's md caps already were) */
.rf-keys{flex:none; display:flex; align-items:center; justify-content:flex-start; gap:var(--s1); min-height:var(--btn-h-lg)}
.rf-keys .rf-cap{flex:none; width:var(--rf-cap-w); height:var(--btn-h-lg); padding:0 var(--s1); --cap-fs:var(--fs-item); --cap-fw:var(--fw-bold); --cap-foot:var(--key-edge); overflow:hidden}
.rf-keys .rf-cap.long{--cap-fs:var(--fs-label)}
.rf-keys .rf-cap.q{--cap-ink:transparent; --cap-face:var(--chrome); --cap-rim:var(--edge)}
.rf-keys .rf-cap.on{--cap-ink:var(--rapid-ink); --cap-face:var(--rapid-tint); --cap-rim:var(--rapid-line)}
.rf-keys .rf-cap.shown{--cap-ink:var(--ink-2); --cap-dash:dashed}
.rf-keys .rf-cap.answer{--cap-ink:var(--red); --cap-rim:var(--red)}
/* every join takes one slot of one width (a neutral dot between blank caps), so a key filling in never moves the caps after it */
.rf-keys > :is(.ui-cap-plus, .ui-cap-or, .chord-seq, .chord-hid){font-size:var(--fs-item)}
.rf-keys > :is(.ui-cap-plus, .chord-seq, .chord-hid){flex:none; box-sizing:border-box; width:var(--rf-join-w); display:inline-flex; justify-content:center; align-items:center}
.rf-keys > .chord-hid::before{content:""; width:var(--bw-3); height:var(--bw-3); border-radius:50%; background:var(--edge)}
/* the first prompt of a learner's first round: what the blank caps are, said where they are */
.rf-hint{flex:1 1 0; min-width:0; margin:0; font-size:var(--fs-body); font-weight:var(--fw-semi); line-height:var(--lh-tight); color:var(--ink-2); overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2}
.rf-hint[hidden]{display:none}
/* a hit reads as right and a miss as wrong in every mode's colors: the strip takes the right answer's tint, the caps fill its green
   (--right, the family green in every theme, at full strength for the whole hold), the Name Box (when it names a target) its ink; a
   miss takes the red; the command itself stays ink (Wolf, 2026-10-12) */
.rf-frag.hit .rf-strip{border-left-color:var(--right); background:var(--right-tint)}
.rf-frag.hit .rf-namebox.on-target{color:var(--right-ink)}
.rf-frag.hit .rf-keys .rf-cap{--cap-ink:var(--right-on); --cap-face:var(--right); --cap-rim:var(--right-ink)}
.rf-frag.miss .rf-strip{border-left-color:var(--red); background:var(--red-tint)}
.rf-frag.miss .rf-namebox.on-target{color:var(--red)}
.rf-frag.miss .rf-keys .rf-cap.answer{--cap-face:var(--sheet)}
/* the hot streak (RF-9 B): from Combo 10 the strip at rest takes Arcade's tint and the multiplier chip fills (the chip kit's mode
   tone on the mode's own fill); a hit and a miss keep their own colours over it, and a miss ends it */
.rf-frag.hot:not(.hit, .miss) .rf-strip{background:var(--rapid-tint)}
.rf-frag.hot ~ .rf-meter{--mode-tint:var(--rapid); --mode-ink:var(--rapid-on)}
/* the verdict right after the keys (RF-9): a hit's tick, its points and the multiplier that earned them ("+20 ×2") in the verdict's
   green ink; a miss's cross in the red. The pieces are there from the round's start and only show with the frame */
.rf-pop{display:none; flex:none; align-items:center; gap:var(--s2); font-size:var(--fs-clock); font-weight:var(--fw-heavy); line-height:var(--lh-tight); font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--right-ink)}   /* the stage's number size (the clock's), so the prompt stays its one large line (layout rule 7; HM-14 five sizes) */
.rf-frag:is(.hit, .miss) .rf-pop{display:inline-flex; animation:rf-bump var(--d-route) ease-out}
.rf-frag.miss .rf-pop{color:var(--red)}
.rf-pop .rf-mark{display:inline-flex}
.rf-pop svg{width:var(--mk-md); height:var(--mk-md)}
.rf-frag.hit .rf-mark-miss, .rf-frag.miss :is(.rf-mark-hit, .rf-pts, .rf-mult), .rf-mult:empty{display:none}
/* the row numbers scroll under the column header, never over it, and the header's top line is opaque: a row scrolled up
   under the sticky header never shows through it (audit 2026-10-13) */
.rf-sheet::after{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--rf-hdr-ground); z-index:9; pointer-events:none}
/* a short window (720 tall): md caps on a slimmer strip, so the sheet keeps five rows */
@media (max-height:770px){ .rf-keys{min-height:var(--btn-h-md)} .rf-keys .rf-cap{width:var(--rf-cap-w-md); height:var(--btn-h-md); --cap-fs:var(--fs-item)} .rf-keys .rf-cap.long{--cap-fs:var(--fs-min)} }
.rf-meter{display:flex; align-items:center; justify-content:center; gap:var(--s4); margin-top:var(--s4)}
.rf-segs{display:flex; gap:var(--s1)}
.rf-segs i{display:block; width:var(--rf-seg-w); height:var(--rf-seg-h); border-radius:var(--bw-2); background:var(--sheet); border:1px solid var(--rapid-line); transition:background var(--d-cursor)}
.rf-segs i.on{background:var(--rapid); animation:rf-seg var(--d-hit) cubic-bezier(.2,.8,.2,1.2) both}
/* a miss drains the meter from its right end, one segment a step apart */
.rf-frag.miss ~ .rf-meter .rf-segs i{transition:background var(--d-strip) ease; transition-delay:calc(var(--i, 0) * var(--d-strip) * 2)}
.rf-combo{min-width:calc(var(--s12) * 2); display:inline-flex; align-items:center; justify-content:flex-end; gap:var(--s2); text-align:right; font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--rapid-ink); font-variant-numeric:tabular-nums}
.rf-mult-chip[hidden]{display:none}
.rf-next{min-width:calc(var(--s12) * 2); font-size:var(--fs-label); color:var(--ink-2)}
.rf-note{margin:var(--s2) 0 0; min-height:var(--s6); font-size:var(--fs-body); font-weight:var(--fw-bold); color:var(--rapid-ink)}
.rf-note.rf-first{color:var(--ink-2); font-weight:var(--fw-semi)}
@keyframes rf-seg{from{transform:scale(1.5)}}
@keyframes rf-bump{40%{transform:scale(1.18)}}
/* the moments step back with the site's Effects setting and the computer's reduced motion: no pop, no bump, no drain, no fade */
html[data-effects="off"] :is(.rf-strip, .rf-namebox, .rf-segs i, .rf-keys .rf-cap), html[data-effects="off"] .rf-frag.miss ~ .rf-meter .rf-segs i{transition:none}
html[data-effects="off"] :is(.rf-segs i.on, .rf-hits b.rf-bump), html[data-effects="reduced"] :is(.rf-segs i.on, .rf-hits b.rf-bump){animation:none}
@media (prefers-reduced-motion: reduce){ :is(.rf-strip, .rf-namebox, .rf-segs i, .rf-keys .rf-cap), .rf-frag.miss ~ .rf-meter .rf-segs i{transition:none} :is(.rf-segs i.on, .rf-hits b.rf-bump){animation:none} }
/* the verdict's pop shows still: the mark, the points and the multiplier without the bump */
html:is([data-effects="off"], [data-effects="reduced"]) .rf-frag .rf-pop{animation:none}
@media (prefers-reduced-motion: reduce){ .rf-frag:is(.hit, .miss) .rf-pop{animation:none} }
.rf-start{display:flex; flex-direction:column; align-items:center; gap:var(--s3); text-align:center; margin-top:calc(max(var(--s6), calc(var(--rf-eye) * 100vh - var(--rf-top-h) * var(--k-win) - var(--fs-prompt) * 1.9)) / var(--k-win))}
.rf-fine{margin:0; font-size:var(--fs-label); line-height:var(--lh-body); color:var(--ink-2)}
/* the loading card is the whole start: the length, ← → to change it, the best round at it. Its center on the eye line, the
   one dial (--rf-eye of the window, past the veil's top padding; the card is zoomed, so the drop is divided back out), where
   the sheet's center then lands */
.ld-veil.rf-load{display:block}
.ld-veil.rf-load .ld{margin:calc((var(--rf-eye) * 100vh - var(--s6)) / var(--k-win)) auto 0; translate:0 -50%}
.rf-load .ld{border:var(--cursor-w) solid var(--rapid-line)}
.rf-ld-len{display:flex; align-items:center; justify-content:center; gap:var(--s2); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink)}
.rf-ld-arrow{font:inherit; background:transparent; border:0; padding:0; cursor:pointer}
.rf-ld-best{margin:0; font-size:var(--fs-label); color:var(--ink-2); text-align:center}
.rf-load.held .ld-bar i{animation:none; width:100%}
/* the round's result: the score as the page's one large line, four figures, the weak spots, Play again on Enter */
.rf-result{display:flex; flex-direction:column; align-items:stretch; gap:var(--s4); width:min(100%, calc(var(--side-col) + var(--panel-w))); margin-top:calc(max(var(--s6), calc(var(--rf-eye) * 100vh - var(--rf-top-h) * var(--k-win) - var(--fs-prompt) * 1.9)) / var(--k-win))}
.rf-res-len{margin:0; font-size:var(--fs-label); color:var(--ink-2)}
/* the Arcade finish as the one finish card (UI-86): the sheet ground, the kit's corner and lift, a rule in the Arcade's colour on
   its top edge, the eyebrow row (the mode's mark, the kind, the length, the save state), and the way out under the buttons */
.rf-result{background:var(--sheet); border:1px solid var(--line); border-top:var(--mode-rule) solid var(--rapid); border-radius:var(--r-card); padding:var(--pop-pad); box-shadow:var(--shadow-card); box-sizing:border-box}
.rf-eyebrow{display:flex; align-items:center; gap:var(--s2); font-size:var(--fs-label); color:var(--ink)}
.rf-mark{flex:none; width:var(--mode-mark); height:var(--mode-mark); background:var(--rapid)}
.rf-save{margin-left:auto; color:var(--ink-2)}
.rf-out{display:flex; justify-content:center; font-size:var(--fs-label)}
.rf-out .ui-btn{color:var(--ink-2)}
.rf-total{margin:0; text-align:center; font-size:var(--fs-hero); font-weight:var(--fw-heavy); line-height:var(--lh-tight)}   /* the kit's hero line, never the prompt's size (design-kit.md, The type scale) */
.rf-total b, .rf-pop b{font-weight:inherit}   /* a <b> inside a heavy line stays at the kit's 800 */
.rf-newbest{margin:0; text-align:center; font-weight:var(--fw-bold); color:var(--learn-ink)}
.rf-stats{display:grid; grid-template-columns:repeat(4, 1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.rf-stats > div{display:flex; flex-direction:column; align-items:center; gap:var(--s1); padding:var(--s3) 0}
.rf-stats > div + div{border-left:1px solid var(--line)}
.rf-stats small{font-size:var(--fs-label); color:var(--ink-2)}
.rf-stats b{font-size:var(--fs-item); font-weight:var(--fw-heavy); font-variant-numeric:tabular-nums}
.rf-unlock{margin:0; padding:var(--s2) var(--s4); background:var(--rapid-tint); color:var(--rapid-ink); font-weight:var(--fw-bold); text-align:center}
.rf-slow-h{margin:0 0 var(--s2); font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.rf-slow-t td[data-col="cmd"]{font-weight:var(--fw-bold)}
.rf-slow-t td[data-col="wrong"]{color:var(--ink-2); font-size:var(--fs-label)}
.rf-slow-t td[data-col="time"]{font-family:var(--mono); width:calc(var(--s12) + var(--s4))}
.rf-xp{display:flex; align-items:center; gap:var(--s4); font-size:var(--fs-label); color:var(--ink-2)}
.rf-bar{flex:1 1 auto; height:var(--s1); background:var(--line)}
.rf-bar i{display:block; height:100%; background:var(--learn)}
.rf-xp b{color:var(--learn-ink); font-weight:var(--fw-bold)}
.rf-acts{display:grid; grid-template-columns:1fr 1fr; gap:var(--s3)}
.rf-acts .ui-btn{justify-content:space-between}
.rf-again{--mode:var(--rapid); --mode-ink:var(--rapid-ink); --mode-on:var(--rapid-on); --mode-hover:var(--rapid-hover); --mode-line:var(--rapid-line)}

/* rapid-fire on the Practice pages: the deck scrolls inside its panel; the Practice side panel's one button sits at its natural width */
/* the bot check's slot (app/captcha.js): the steps redraw inside .sd-inner, which lays out as the card's own children, so
   the check under them is never redrawn; empty (the check off, or nothing to show) it takes no room */
.sd-inner{display:contents}
.cap-slot:empty{display:none}
.cap-slot{align-self:stretch; min-width:0}
/* the check runs unseen and takes no room (no gap under the card) until Cloudflare wants a box ticked: then it shows */
.cap-slot:not(.cap-show){position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}


/* the clock at ten seconds (Round 1): the ink (the dark paper) on solid amber, 8.8 to 1 (the butter plate with dark-gold digits read
   brown and weak on a 27 inch screen). Round 2: the combo strip's empty boxes stay empty (filled in the clock's tint they read as combo
   earned); the one near-field cue is a 2px amber frame round the strip, a shape, never a fill */
.rf-clock.low{color:var(--clock-on); background:var(--clock); border-radius:var(--r-btn); padding:0 var(--s2); animation:fz-plate var(--d-card) ease-out both}
@keyframes fz-plate{from{background:transparent; color:var(--rapid-ink)}}
@media (prefers-reduced-motion: reduce){ .rf-clock.low{animation:none} }
.rf-segs.rf-low{outline:var(--bw-2) solid var(--clock); outline-offset:var(--bw-3); border-radius:var(--bw-2)}
/* Round 2: teal is a 3px rule under Rapid-fire's top bar, beside the words Rapid-fire (the stage's ground is the theme's page) */
.rf-top{box-shadow:inset 0 calc(-1 * var(--mode-rule)) 0 var(--rapid)}
/* Reference's groups: each names its label and its line (the key's edge) */
[data-g="move"]{--g-on:var(--drills-on); --g-line:var(--drills-line)}
[data-g="select"]{--g-on:var(--challenges-on); --g-line:var(--challenges-line)}
[data-g="edit"]{--g-on:var(--rapid-on); --g-line:var(--rapid-line)}
[data-g="formulas"]{--g-on:var(--learn-on); --g-line:var(--learn-line)}
[data-g="ribbon"]{--g-line:var(--clock-ink)}
[data-g="data"]{--g-line:var(--ink-2)}
.kb-key.kb-used{--cap-rim:var(--g-line, var(--g))}
[data-g="format"]{--g-on:var(--daily-on); --g-line:var(--daily-line)}
/* Rapid-fire's verdict (the hit's colours are with the strip above): the caps at full strength for the whole hold (site.css drew the row at
   75 percent, so the green read sage and its label 3.4 to 1) */
.rf-keys.rf-keys{opacity:1}
/* a theme a learner has not earned yet is shown in its full colour, a dashed edge and its unlock line in ink-2 (a faded tile read muddy) */
.tile.locked .tile-sheet{opacity:1; border-style:dashed}

/* ---------- Graded wrong's last keys on the ops page (app/ops-tools.js; the dialogs are menu kit cards, ui/menu-kit.css) ---------- */
.fb-keys{display:flex; flex-wrap:wrap; gap:var(--s1); margin:0}
