/* app2/ui/site.css — the site shell beyond the lesson: focus styles, footer, account menu, the
   landing, first run, home, practice, the drill workspace, leaderboard, pricing, teams, account,
   legal and 404 pages, the load-error card and the narrow-screen notice. Loaded after shell.css.
   Look lifted from the old build (index.html landing CSS 1975–2300, drillbar 1485–1500, mode bar
   1308–1370, sheettabs 1412–1440, checklist 824–845; nav.css auth slot 88–115, footer 197–210;
   lb.css boards). Every colour is a theme token so all themes apply unchanged. */

/* ---------- 0. focus, inputs, shared page bits ---------- */
/* the one focus ring (UI-71): every focusable thing, the kit's tokens (tokens.css --focus-*); a control never sets its own colour or offset */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible{
  outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off); border-radius:6px}

button:disabled{opacity:.55; cursor:not-allowed}
.muted{color:var(--muted)}
.page{max-width:1180px; margin:var(--s2) auto var(--s10); font-family:var(--sans); color:var(--text)}
.page-fine{font-family:var(--font); font-size:var(--fs-min); color:var(--ink-2); line-height:var(--lh-body); margin:var(--s3) 0 0; max-width:80ch}
.page-fine a, .page p a{color:var(--accent); text-decoration:none}
.page-fine a:hover, .page p a:hover{text-decoration:underline}
.page h2{font-family:var(--sans); font-size:var(--fs-panel); font-weight:700; letter-spacing:-.3px; margin:0 0 var(--s2)}
.page h3{font-size:var(--fs-3); font-weight:600; margin:var(--s4) 0 var(--s2)}
/* body copy: the lowest specificity there is (0-0-1), so any class on a paragraph (.page-fine, .coming,
   .l-alt, .lb-sub, .form-msg …) sets its own size and margins; a bare <p> gets these */
:where(.page) p{font-size:var(--fs-3); line-height:1.6; color:var(--muted); margin:0 0 var(--s2)}
.page p b{color:var(--text); font-weight:600}
.coming{font-family:var(--mono); font-size:var(--fs-1); color:var(--warn); margin:0}
/* design-guard: keep a bare keycap's own padding: the keycaps stay as they are (CLAUDE.md) */
kbd{font-family:var(--mono); font-size:var(--fs-1); color:var(--text); background:var(--surface2); border:1px solid var(--line); border-bottom-width:2px; border-radius:5px; padding:1px 6px; white-space:nowrap}
/* design-guard: end */


/* ---------- 3. load-error card, narrow-screen notice ---------- */
.err-card, .nf-card, .narrow-msg{background:var(--sheet); border:0; border-radius:0; max-width:calc(var(--side-col) * 2); margin:var(--s12) auto; overflow:hidden; font-family:var(--font)}   /* the one panel (3.0): white on paper, no border */
.err-cap{display:flex; align-items:center; justify-content:space-between; gap:var(--s2); padding:var(--s4) var(--s6) 0; font-family:var(--font); font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.err-body, .nf-body{padding:var(--s4) var(--s6) var(--s6)}
.err-body h1, .nf-body h1, .narrow-msg h1{font-size:var(--fs-head); font-weight:var(--fw-heavy); margin:0 0 var(--s2); font-family:var(--font)}
.err-body p, .nf-body p, .narrow-msg p{font-size:var(--fs-3); color:var(--muted); line-height:1.65; margin:0 0 var(--s4)}
.err-actions, .nf-row, .narrow-actions{display:flex; gap:var(--s2); flex-wrap:wrap}
.nf-ref{font-family:var(--mono); font-size:var(--fs-2); color:var(--muted); margin-bottom:var(--s2)}
.nf-ref b{color:var(--bad)}
.narrow-page{display:none}
.narrow-msg{padding:var(--s6) var(--s6) var(--s6)}
@media (max-width:900px){
  .narrow-page{display:block}
  html:not([data-narrow-ok]) body[data-route="lesson"] .lesson, html:not([data-narrow-ok]) body[data-route="drill"] .drill-page{display:none}   /* Try anyway on the narrow notice keeps them */
  .app{padding:0 var(--s4)}
}

   /* clips the glow, like the old .landing-inner */


.micro{font-family:var(--mono); font-size:var(--fs-1); color:var(--muted); line-height:1.8; margin-top:var(--s5); max-width:60ch}

/* the student price keeps the size it has always shown at (a pricing-page change waits for Wolf's go-ahead) */


/* ---------- 5. first run ---------- */
.fr{font-family:var(--sans)}

.fr h1{font-size:var(--fs-6); letter-spacing:-.4px; margin:0 0 var(--s2); font-family:var(--sans)}
.fr p{font-size:var(--fs-3); color:var(--muted); line-height:1.6; margin:0 0 var(--s4)}

.goal.skipped{color:var(--faint)}

/* ---------- 6. home ---------- */
.home{font-family:var(--sans); max-width:1180px; margin:var(--s2) auto var(--s10)}

.home h1{font-family:var(--mono); font-size:var(--fs-6); font-weight:700; letter-spacing:-.4px; margin:0 0 var(--s2)}
.home h2{font-size:var(--fs-4); font-weight:700; margin:0 0 var(--s2)}
:where(.home) p{font-size:var(--fs-3); color:var(--muted); line-height:1.6; margin:0 0 var(--s3); max-width:70ch}

/* the drill list (Timed runs under it) takes two thirds; the rail stacks the Daily, Keep sharp,
   rapid-fire. Below 1000px one column, the rail first as a 2 × 2 grid. */



/* ---------- 8. drill workspace (index.html 1485–1500, 1308–1370, 1412–1440, 824–845, 760–768) ---------- */
.drill-page{max-width:1380px; margin:0 auto var(--s6); font-family:var(--sans)}




/* the foot's two hints on two lines: each key in the first column, its words beside it (a grid
   makes each run of text between the keys its own cell, so a hint never wraps under a key) */

.drill-page .bar{display:flex; align-items:center; gap:var(--s5); margin-top:var(--s3); flex-wrap:wrap}
.drill-page .stat{font-family:var(--mono); font-size:var(--fs-1); color:var(--muted); line-height:1.5}
.drill-page .stat b{color:var(--text); font-weight:500}
.drill-page .stat b.run{color:var(--accent)}
.drill-page .spacer{flex:1}

/* ---------- 9. leaderboard (lb.css) ---------- */

.boards{display:grid; grid-template-columns:repeat(2,1fr); gap:var(--s5); align-items:start}

   /* the card caption, as .pcard-cap */

@media (max-width:680px){ .boards{grid-template-columns:1fr}   }

/* ---------- 11. teams ---------- */

   /* side by side in a row, the cards' tops line up */

.set{display:flex; flex-direction:column; gap:var(--s2); font-size:var(--fs-3); font-weight:600; color:var(--text)}

/* ---------- 13. about, 404 (the legal pages and not found are on the reading template: templates.css) ---------- */
.placeholder{font-family:var(--mono); font-size:var(--fs-1); color:var(--faint); margin:0 !important}
.nf-card{margin:0 auto; width:100%}

/* ---- account: the sign-in form (phase B) ---- */
.acct-tabs{display:flex; gap:var(--s2); margin:var(--s4) 0 var(--s3); flex-wrap:wrap}

/* ---------- drill workspace, timed play (Phase D) ---------- */

.pace{position:relative; flex:1 1 160px; max-width:280px; height:8px; border:1px solid var(--line); border-radius:5px; background:var(--surface); overflow:hidden; align-self:center}
.pace i{position:absolute; left:0; top:0; bottom:0; width:0; background:var(--accent); opacity:.85; transition:width .12s linear}

.pace s,.pace u{position:absolute; top:0; bottom:0; width:2px; text-decoration:none}
.pace s{background:color-mix(in srgb, var(--ink) 35%, transparent)}
.pace u{background:var(--warn); width:3px}
/* the start card docks at the foot of the sheet with no wash, so the data stays readable during the
   free reading time; the layer still spans the sheet, so nothing is clicked before the clock starts */


.ghost-cursor{position:absolute; z-index:6; border:2px dashed color-mix(in srgb, var(--ghost) 70%, transparent); border-radius:3px; pointer-events:none; opacity:.7; transition:left .1s linear, top .1s linear, width .1s, height .1s}

/* ---------- rapid-fire ---------- */
.rf-keys{display:flex; gap:6px; opacity:.75}
.rf-clock{font-size:var(--fs-6); font-weight:700; color:var(--accent)}
.rf-clock.low{color:var(--warn)}
.rf-combo{color:var(--accent); font-weight:700}

/* ---------- a hidden badge's question mark (ui/badges.js badgeArt) ---------- */
.badge-q{font-size:var(--fs-7); font-weight:800; color:var(--muted); height:34px; display:flex; align-items:center}

/* ---------- fx banners (named moments) ---------- */
.fx-banner{position:fixed; left:24px; bottom:calc(24px + var(--fx-i, 0) * 60px); transform:translateX(-18px); opacity:0; z-index:220; max-width:min(380px, calc(100vw - 48px)); background:var(--surface); border:1px solid var(--accent); border-radius:12px; padding:10px 18px; font-weight:700; box-shadow:0 10px 34px color-mix(in srgb, var(--ink) 16%, transparent); transition:opacity .28s, transform .28s; pointer-events:none; display:flex; flex-wrap:wrap; gap:2px 10px; align-items:baseline}
.fx-banner.in{opacity:1; transform:none}
/* Subtle and reduced motion: a fade in place (effects.js bannerMotion); Off: shown still, no transition */
.fx-banner.fx-fade{transform:none; transition:opacity .25s}
.fx-banner.fx-static{transform:none; transition:none}
@media (prefers-reduced-motion: reduce){ .fx-banner{transform:none; transition:opacity .25s} .fx-banner.fx-static{transition:none} }
.fx-banner.subtle{border-color:var(--line); font-weight:600}
.fx-banner span{color:var(--muted); font-weight:500; font-size:var(--fs-2)}
.fx-banner.r-rare{border-color:var(--rar-rare)}
.fx-banner.r-epic{border-color:var(--rar-epic)}
.fx-banner.r-legendary{border-color:var(--rar-legendary)}

/* a held tier is a pill in the theme's tier colour; none yet is a faint dash, never a box */


