/* ═══════════════════════════════════════════════════════════════
   Woolly Mammoth Group — Financial Academy
   Dark academia × institutional finance. Chocolate, cream, brass.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #1A110B;          /* deepest chocolate */
  --choc-900: #21160F;
  --choc-800: #2B1D14;
  --choc-700: #382619;
  --choc-600: #4A3323;
  --choc-500: #6A4A33;
  --choc-400: #8C6A4F;
  --cream-50: #FCF8F0;
  --cream-100: #F5EDDF;
  --cream-200: #EADDC6;
  --cream-300: #D9C7A8;
  --cream-400: #BBA684;
  --brass: #B8925A;
  --brass-hi: #D6B27A;
  --brass-lo: #8E6D3E;
  --oxblood: #8A3A31;
  --oxblood-hi: #B5584C;
  --sage: #6E8A62;
  --sage-hi: #8FAE81;

  --bg: var(--ink);
  --surface: var(--choc-800);
  --surface-2: var(--choc-700);
  --line: rgba(214, 178, 122, 0.16);
  --line-strong: rgba(214, 178, 122, 0.32);
  --text: var(--cream-100);
  --text-dim: #C9B79A;
  --text-faint: #9C8A70;

  --paper: var(--cream-50);
  --paper-2: var(--cream-100);
  --paper-ink: #2A1C12;
  --paper-dim: #6B5440;
  --paper-line: #E2D3B9;

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-serif: 'Source Serif 4', Georgia, serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 40px -18px rgba(0,0,0,0.7);
  --max: 1180px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(184,146,90,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(138,58,49,0.10), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--brass-hi); text-decoration: none; }
a:hover { color: var(--cream-50); }
button { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }
.eyebrow {
  font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brass);
}
.mono { font-family: var(--f-mono); font-feature-settings: 'tnum'; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: transparent; color: var(--cream-100);
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--brass); color: var(--cream-50); background: rgba(184,146,90,0.08); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn.primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { border-color: transparent; }
.btn.paper { color: var(--paper-ink); border-color: var(--paper-line); }
.btn.paper:hover { background: var(--cream-100); border-color: var(--brass-lo); color: var(--paper-ink); }
.btn.paper.primary { background: var(--choc-800); border-color: var(--choc-800); color: var(--cream-100); }
.btn.paper.primary:hover { background: var(--choc-600); }

/* ─────────── Top bar ─────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: rgba(26,17,11,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream-100); }
.brand:hover { color: var(--cream-50); }
.brand .seal { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.brand-sub { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text-dim); font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-sm);
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--cream-50); background: rgba(255,255,255,0.03); }
.nav a.active { color: var(--cream-50); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--choc-600); border: 1px solid var(--brass-lo); color: var(--brass-hi);
  font-family: var(--f-display); font-weight: 700; font-size: 15px;
}

/* Mobile tab bar */
.tabbar { display: none; }
@media (max-width: 860px) {
  .nav, .nav-user .btn { display: none; }
  .nav-user { margin-left: auto; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(26,17,11,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--text-faint); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.active { color: var(--brass-hi); }
  body.authed main { padding-bottom: 90px; }
}

main { min-height: calc(100vh - var(--nav-h)); }

/* ─────────── Cards & panels ─────────── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent), var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.card.pad { padding: 22px; }
.card h3 { font-family: var(--f-display); font-size: 22px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.rule.double { height: 4px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: none; }

.page-head { padding: 36px 0 22px; }
.page-head h1 { font-family: var(--f-display); font-size: clamp(34px, 5vw, 50px); font-weight: 600; line-height: 1.02; margin-top: 8px; }
.page-head p { color: var(--text-dim); max-width: 640px; margin: 10px 0 0; font-size: 15.5px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ─────────── Progress ─────────── */
.bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.lg { height: 10px; }
.bar.paper { background: var(--cream-200); }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--cream-100); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text-dim);
}
.pill.done { color: var(--sage-hi); border-color: rgba(143,174,129,0.4); }
.pill.lock { color: var(--text-faint); }
.pill.brass { color: var(--brass-hi); border-color: var(--brass-lo); }

/* ─────────── Landing ─────────── */
.hero { padding: 70px 0 60px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero h1 { font-family: var(--f-display); font-size: clamp(44px, 7vw, 82px); line-height: 0.98; font-weight: 600; letter-spacing: -0.015em; margin: 18px 0 0; }
.hero h1 em { font-style: italic; color: var(--brass-hi); font-weight: 500; }
.hero p.lede { font-size: 18px; color: var(--text-dim); max-width: 540px; margin: 22px 0 30px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-seal { justify-self: center; width: min(380px, 80vw); opacity: 0.95; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 600; color: var(--cream-50); line-height: 1; }
.hero-stats span { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-seal { width: 200px; grid-row: 1; justify-self: start; } .hero { padding-top: 36px; } }

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-title { font-family: var(--f-display); font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin: 10px 0 8px; }
.section-lede { color: var(--text-dim); max-width: 620px; margin: 0 0 34px; font-size: 16px; }

.track-card { padding: 26px; position: relative; display: flex; flex-direction: column; min-height: 260px; }
.track-num { font-family: var(--f-display); font-size: 54px; color: var(--brass); line-height: 1; font-weight: 500; opacity: .9; }
.track-card h3 { font-size: 27px; margin: 10px 0 8px; }
.track-card p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.track-card ul { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-faint); }
.track-card li { padding: 5px 0; border-top: 1px solid var(--line); }

.path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.path .step { text-align: center; padding: 22px 16px; }
.path .arrow { color: var(--brass); font-size: 22px; }
.path .step b { font-family: var(--f-display); font-size: 22px; display: block; margin: 6px 0 4px; }
.path .step span { font-size: 13.5px; color: var(--text-dim); }
@media (max-width: 760px) { .path { grid-template-columns: 1fr; } .path .arrow { transform: rotate(90deg); justify-self: center; } }

.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--text-faint); font-size: 12.5px; }
.footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.footer p { max-width: 640px; margin: 0; line-height: 1.6; }

/* ─────────── Auth ─────────── */
.auth { display: grid; place-items: center; padding: 50px 20px 80px; }
.auth .card { width: 100%; max-width: 440px; padding: 34px 30px; }
.auth h1 { font-family: var(--f-display); font-size: 36px; text-align: center; margin: 14px 0 4px; }
.auth .sub { text-align: center; color: var(--text-dim); margin: 0 0 26px; font-size: 14px; }
.auth .seal { width: 64px; height: 64px; margin: 0 auto; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 7px; }
.input, select.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm);
  background: rgba(0,0,0,0.25); border: 1px solid var(--line-strong); color: var(--cream-50);
  font: 15px var(--f-ui); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,146,90,0.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); margin: 6px 0 18px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brass); width: 16px; height: 16px; flex: none; }
.error { background: rgba(138,58,49,0.18); border: 1px solid rgba(181,88,76,0.4); color: #F0C4BC; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 14px; }
.success { background: rgba(110,138,98,0.16); border: 1px solid rgba(143,174,129,0.4); color: #CFE3C6; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 14px; }
.auth .alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* ─────────── Dashboard ─────────── */
.dash-hero { padding: 34px 0 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-hero h1 { font-family: var(--f-display); font-size: clamp(34px, 5vw, 48px); font-weight: 600; margin-top: 6px; }
.dash-date { font-family: var(--f-mono); font-size: 12px; color: var(--text-faint); letter-spacing: .05em; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin: 22px 0; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }

.continue { padding: 28px; position: relative; overflow: hidden; }
.continue::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 50%; }
.continue::before { content: ''; position: absolute; right: -20px; top: -20px; width: 140px; height: 140px; border: 1px solid var(--line); border-radius: 50%; }
.continue h2 { font-family: var(--f-display); font-size: 32px; font-weight: 600; margin: 12px 0 6px; line-height: 1.1; max-width: 85%; }
.continue .meta { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.continue .bar { margin: 18px 0 8px; }

.score-card { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.score-big { font-family: var(--f-display); font-size: 72px; line-height: .9; font-weight: 600; color: var(--cream-50); }
.score-big small { font-size: 22px; color: var(--text-faint); font-weight: 500; }
.tier { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--brass-hi); }
.ticker { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 18px; }
.ticker div { padding: 14px 0 0; }
.ticker div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.ticker b { display: block; font-family: var(--f-mono); font-size: 20px; color: var(--cream-50); font-weight: 600; }
.ticker span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

.course-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.course-row:first-of-type { border-top: 0; }
.course-row .info { flex: 1; min-width: 0; }
.course-row .info b { font-family: var(--f-display); font-size: 20px; font-weight: 600; display: block; color: var(--cream-50); }
.course-row .info span { font-size: 12.5px; color: var(--text-faint); }
.roman { font-family: var(--f-display); font-size: 26px; color: var(--brass); width: 36px; text-align: center; flex: none; }

.book-feature { display: flex; gap: 18px; align-items: flex-start; }
.spine {
  width: 64px; height: 92px; flex: none; border-radius: 2px 4px 4px 2px; position: relative;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0 6px, transparent 6px), linear-gradient(160deg, var(--oxblood), #5E241F);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.4);
}
.spine::after { content: ''; position: absolute; left: 14px; right: 8px; top: 14px; height: 1px; background: var(--brass-hi); box-shadow: 0 4px 0 var(--brass-hi), 0 52px 0 var(--brass-hi); opacity: .7; }
.spine.v2 { background: linear-gradient(90deg, rgba(0,0,0,.35) 0 6px, transparent 6px), linear-gradient(160deg, #3F5A45, #263A2C); }
.spine.v3 { background: linear-gradient(90deg, rgba(0,0,0,.35) 0 6px, transparent 6px), linear-gradient(160deg, var(--choc-500), var(--choc-700)); }
.spine.v4 { background: linear-gradient(90deg, rgba(0,0,0,.35) 0 6px, transparent 6px), linear-gradient(160deg, #23324A, #151F30); }

.tool-mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--cream-100); transition: border-color .15s, background .15s; }
.tool-mini:hover { border-color: var(--brass-lo); background: rgba(184,146,90,0.05); color: var(--cream-50); }
.tool-mini svg { width: 20px; height: 20px; color: var(--brass); flex: none; }
.tool-mini span { font-size: 13.5px; font-weight: 500; }

.ledger-entry { padding: 14px 0; border-top: 1px solid var(--line); }
.ledger-entry:first-child { border-top: 0; padding-top: 0; }
.ledger-entry .d { font-family: var(--f-mono); font-size: 11.5px; color: var(--brass); letter-spacing: .06em; }
.ledger-entry b { display: block; font-family: var(--f-display); font-size: 19px; margin: 3px 0; color: var(--cream-50); }
.ledger-entry p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

/* ─────────── Curriculum ─────────── */
.course-block { margin-bottom: 26px; overflow: hidden; }
.course-top { padding: 26px 26px 22px; display: flex; gap: 22px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.course-top .numeral { font-family: var(--f-display); font-size: 64px; line-height: .85; color: var(--brass); font-weight: 500; width: 70px; flex: none; }
.course-top h2 { font-family: var(--f-display); font-size: 32px; font-weight: 600; }
.course-top p { color: var(--text-dim); margin: 6px 0 14px; font-size: 14.5px; max-width: 700px; }
.course-top .stats { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 640px) { .course-top { flex-direction: column; gap: 6px; } .course-top .numeral { font-size: 44px; } }

.module { border-bottom: 1px solid var(--line); }
.module:last-child { border-bottom: 0; }
.module-head { display: flex; align-items: center; gap: 16px; padding: 16px 26px; cursor: pointer; user-select: none; }
.module-head:hover { background: rgba(255,255,255,0.015); }
.module-head .n { font-family: var(--f-mono); font-size: 12px; color: var(--brass); width: 28px; flex: none; }
.module-head .t { flex: 1; min-width: 0; }
.module-head .t b { display: block; font-weight: 600; font-size: 15.5px; color: var(--cream-50); }
.module-head .t span { font-size: 13px; color: var(--text-faint); }
.module-head .chev { color: var(--text-faint); transition: transform .2s; flex: none; }
.module.open .chev { transform: rotate(90deg); }
.module-body { display: none; padding: 0 26px 18px 70px; }
.module.open .module-body { display: block; }
.module.locked .module-head { opacity: .55; }
@media (max-width: 640px) { .module-body { padding-left: 26px; } .module-head { padding: 14px 18px; } }

.lesson-link { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); color: var(--text-dim); font-size: 14px; }
.lesson-link:first-child { border-top: 0; }
.lesson-link:hover { color: var(--cream-50); }
.lesson-link .ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 11px; }
.lesson-link.done .ic { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.lesson-link .min { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--text-faint); }
.lesson-link.quiz .ic { border-color: var(--brass); color: var(--brass); }
.lesson-link.locked { pointer-events: none; opacity: .45; }

.exam-banner { display: flex; align-items: center; gap: 18px; padding: 20px 26px; background: linear-gradient(90deg, rgba(184,146,90,0.10), transparent); border-top: 1px solid var(--line-strong); flex-wrap: wrap; }
.exam-banner .t { flex: 1; min-width: 220px; }
.exam-banner b { font-family: var(--f-display); font-size: 21px; color: var(--cream-50); display: block; }
.exam-banner span { font-size: 13px; color: var(--text-dim); }

/* ─────────── Lesson (paper) ─────────── */
.lesson-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; padding: 26px 0 60px; align-items: start; }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-side { display: none; } }
.lesson-side { position: sticky; top: calc(var(--nav-h) + 20px); padding: 18px; }
.lesson-side h4 { font-family: var(--f-display); font-size: 19px; margin: 6px 0 12px; }
.lesson-side a { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-dim); padding: 8px 0; border-top: 1px solid var(--line); }
.lesson-side a.cur { color: var(--cream-50); font-weight: 600; }
.lesson-side a .ic { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; display: grid; place-items: center; font-size: 9px; }
.lesson-side a.done .ic { background: var(--sage); border-color: var(--sage); color: var(--ink); }

.paper {
  background: var(--paper); color: var(--paper-ink); border-radius: var(--r);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.3);
  position: relative;
  background-image: linear-gradient(180deg, rgba(234,221,198,0.35), transparent 140px);
}
.paper-inner { padding: 46px 56px 40px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .paper-inner { padding: 28px 22px 26px; } }
.paper .crumbs { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); font-weight: 600; }
.paper .crumbs a { color: var(--brass-lo); }
.paper h1 { font-family: var(--f-display); font-size: clamp(32px, 4.5vw, 46px); line-height: 1.05; font-weight: 600; margin: 12px 0 10px; color: var(--ink); }
.paper .lesson-meta { font-family: var(--f-mono); font-size: 12px; color: var(--paper-dim); padding-bottom: 20px; border-bottom: 3px double var(--paper-line); margin-bottom: 26px; }
.prose { font-family: var(--f-serif); font-size: 18px; line-height: 1.72; color: #2E2016; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; margin: 34px 0 12px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose em { color: #4A3424; }
.prose a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }
.prose small { font-size: 13px; color: var(--paper-dim); font-family: var(--f-ui); }
.prose .formula {
  font-family: var(--f-mono); font-size: 15px; background: var(--choc-800); color: var(--cream-100);
  padding: 16px 20px; border-radius: var(--r-sm); margin: 0 0 20px; line-height: 1.6; border-left: 3px solid var(--brass);
}
.prose .formula small { color: var(--cream-400); font-family: var(--f-ui); }
.prose .example { border: 1px solid var(--paper-line); background: #FFFDF8; border-radius: var(--r-sm); padding: 18px 22px 4px; margin: 0 0 22px; font-size: 16.5px; }
.prose .ex-label { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-lo); margin-bottom: 8px; }
.prose .callout { border-left: 3px solid var(--brass); background: rgba(184,146,90,0.10); padding: 14px 18px; margin: 0 0 20px; font-size: 16.5px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose .callout.warn { border-left-color: var(--oxblood); background: rgba(138,58,49,0.07); }
.prose .takeaway {
  margin: 30px 0 4px; padding: 20px 22px 20px 58px; position: relative; font-family: var(--f-display); font-size: 21px; line-height: 1.4;
  font-style: italic; color: var(--ink); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
}
.prose .takeaway::before { content: '§'; position: absolute; left: 14px; top: 12px; font-size: 36px; color: var(--brass); font-style: normal; }
.prose dl.keyterms { margin: 0 0 20px; border-top: 1px solid var(--paper-line); }
.prose dl.keyterms dt { font-family: var(--f-ui); font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--ink); padding-top: 12px; }
.prose dl.keyterms dd { margin: 2px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--paper-line); font-size: 16.5px; }
.prose table.tbl { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-family: var(--f-ui); font-size: 14px; line-height: 1.45; }
.prose .tbl th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); padding: 8px 10px; border-bottom: 2px solid var(--choc-700); }
.prose .tbl td { padding: 10px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.prose .tbl tr:last-child td { border-bottom: 0; }
.prose .table-scroll { overflow-x: auto; margin: 0 -4px 20px; }
.prose .table-scroll table { margin: 0; min-width: 520px; }

.lesson-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 56px 34px; border-top: 1px solid var(--paper-line); flex-wrap: wrap; }
@media (max-width: 640px) { .lesson-foot { padding: 20px 22px 26px; } .lesson-foot .btn { flex: 1; } }

/* ─────────── Games (on paper) ─────────── */
.game { margin: 34px 0 6px; border: 1px solid var(--choc-600); border-radius: var(--r); background: var(--choc-800); color: var(--cream-100); overflow: hidden; font-family: var(--f-ui); font-size: 15px; line-height: 1.5; }
.game-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--choc-900); }
.game-head b { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.game-body { padding: 20px; }
.game .instr { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }
.sort-item { padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--choc-700); font-weight: 600; text-align: center; font-size: 16px; margin-bottom: 14px; min-height: 58px; display: grid; place-items: center; }
.sort-buckets { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.sort-buckets .btn { height: auto; min-height: 48px; padding: 10px 12px; white-space: normal; }
.feedback { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; }
.feedback.ok { background: rgba(110,138,98,.18); color: #D4E8CB; border: 1px solid rgba(143,174,129,.35); }
.feedback.no { background: rgba(138,58,49,.2); color: #F2CBC4; border: 1px solid rgba(181,88,76,.4); }
.game-score { font-family: var(--f-mono); font-size: 13px; color: var(--brass-hi); }
.game-result { text-align: center; padding: 10px 0; }
.game-result .big { font-family: var(--f-display); font-size: 48px; color: var(--cream-50); line-height: 1; }
.order-list { list-style: none; margin: 0 0 14px; padding: 0; }
.order-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--choc-700); font-size: 14.5px; }
.order-list li .num { font-family: var(--f-mono); color: var(--brass); width: 20px; flex: none; }
.order-list li .txt { flex: 1; }
.order-list li .mv { display: flex; gap: 4px; }
.order-list li .mv button { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: transparent; cursor: pointer; color: var(--cream-100); }
.order-list li .mv button:hover { border-color: var(--brass); }
.order-list li.right { border-color: rgba(143,174,129,.6); }
.order-list li.wrong { border-color: rgba(181,88,76,.6); }
.timer-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.timer-bar i { display: block; height: 100%; background: var(--brass); transition: width .1s linear; }
.rapid-q { font-family: var(--f-display); font-size: 26px; text-align: center; margin: 6px 0 18px; line-height: 1.25; color: var(--cream-50); }
.rapid-q small { display: block; font-family: var(--f-ui); font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.slider-row { margin-bottom: 16px; }
.slider-row label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.slider-row label b { font-family: var(--f-mono); color: var(--cream-50); }
input[type=range] { width: 100%; accent-color: var(--brass); height: 28px; }
.sim-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.sim-out div { background: var(--choc-900); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.sim-out span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.sim-out b { font-family: var(--f-mono); font-size: 20px; color: var(--cream-50); }
.sim-out b.bad { color: var(--oxblood-hi); }
.sim-out b.good { color: var(--sage-hi); }

/* ─────────── Quiz / Exam ─────────── */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 30px 0 60px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.quiz-top h1 { font-family: var(--f-display); font-size: 30px; font-weight: 600; }
.q-card { padding: 30px; }
@media (max-width: 640px) { .q-card { padding: 22px 18px; } }
.q-num { font-family: var(--f-mono); font-size: 12px; color: var(--brass); letter-spacing: .08em; }
.q-text { font-family: var(--f-display); font-size: clamp(22px, 3vw, 27px); line-height: 1.25; margin: 10px 0 22px; color: var(--cream-50); font-weight: 600; }
.opt {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: rgba(0,0,0,.18); cursor: pointer; font-size: 15px; line-height: 1.45;
  transition: border-color .12s, background .12s;
}
.opt:hover:not([disabled]) { border-color: var(--brass); background: rgba(184,146,90,.06); }
.opt .k { font-family: var(--f-mono); font-size: 12px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; color: var(--brass-hi); margin-top: -1px; }
.opt.sel { border-color: var(--brass); background: rgba(184,146,90,.12); }
.opt.sel .k { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.opt.right { border-color: var(--sage-hi); background: rgba(110,138,98,.16); }
.opt.right .k { background: var(--sage-hi); color: var(--ink); border-color: var(--sage-hi); }
.opt.wrong { border-color: var(--oxblood-hi); background: rgba(138,58,49,.16); }
.opt.wrong .k { background: var(--oxblood-hi); color: var(--cream-50); border-color: var(--oxblood-hi); }
.opt[disabled] { cursor: default; }
.why { margin-top: 6px; padding: 14px 16px; border-left: 3px solid var(--brass); background: rgba(184,146,90,.07); font-size: 14.5px; color: var(--text-dim); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.why b { color: var(--cream-50); }
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.q-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 18px; }
.q-dots i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); cursor: pointer; }
.q-dots i.ans { background: var(--brass-lo); }
.q-dots i.cur { background: var(--brass-hi); }
.result-hero { text-align: center; padding: 36px 24px; }
.result-hero .big { font-family: var(--f-display); font-size: 96px; line-height: .9; font-weight: 600; color: var(--cream-50); }
.result-hero .verdict { font-family: var(--f-display); font-size: 28px; font-style: italic; margin: 12px 0 6px; }
.result-hero .verdict.pass { color: var(--sage-hi); }
.result-hero .verdict.fail { color: var(--oxblood-hi); }
.review-item { padding: 18px 0; border-top: 1px solid var(--line); }
.review-item .q { font-weight: 600; color: var(--cream-50); margin-bottom: 6px; }
.review-item .a { font-size: 14px; color: var(--text-dim); }
.review-item .a .ok { color: var(--sage-hi); } .review-item .a .bad { color: var(--oxblood-hi); }

.exam-intro { padding: 34px; text-align: center; }
.exam-intro .seal { width: 90px; height: 90px; margin: 0 auto 10px; }
.exam-intro h1 { font-family: var(--f-display); font-size: 38px; font-weight: 600; margin: 10px 0; }
.exam-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exam-facts div { padding: 16px 8px; }
.exam-facts div + div { border-left: 1px solid var(--line); }
.exam-facts b { display: block; font-family: var(--f-mono); font-size: 22px; color: var(--cream-50); }
.exam-facts span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* ─────────── Tools ─────────── */
.tool-cat { margin-bottom: 34px; }
.tool-cat h2 { font-family: var(--f-display); font-size: 26px; font-weight: 600; display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.tool-cat h2 .c { font-family: var(--f-mono); font-size: 12px; color: var(--text-faint); font-weight: 400; }
.tool-card { padding: 20px; display: flex; gap: 14px; color: var(--cream-100); transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--brass-lo); color: var(--cream-50); transform: translateY(-2px); }
.tool-card .ico { width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--brass-hi); flex: none; background: rgba(184,146,90,0.06); }
.tool-card .ico svg { width: 21px; height: 21px; }
.tool-card b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.tool-card span { font-size: 13px; color: var(--text-faint); line-height: 1.45; }

.calc { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; padding-bottom: 50px; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { padding: 22px; }
.calc-inputs h3 { font-family: var(--f-ui); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 18px 0 10px; font-weight: 600; }
.calc-inputs h3:first-child { margin-top: 0; }
.calc-field { margin-bottom: 12px; }
.calc-field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 5px; }
.calc-field .wrapin { position: relative; }
.calc-field .wrapin .pre, .calc-field .wrapin .suf { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-family: var(--f-mono); font-size: 13px; pointer-events: none; }
.calc-field .wrapin .pre { left: 12px; } .calc-field .wrapin .suf { right: 12px; }
.calc-field .input { height: 42px; font-family: var(--f-mono); font-size: 14.5px; }
.calc-field .input.has-pre { padding-left: 26px; } .calc-field .input.has-suf { padding-right: 46px; }
.calc-field .hint { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.calc-out { padding: 22px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 18px; }
.kpi { background: var(--choc-800); padding: 16px 18px; }
.kpi span { display: block; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.kpi b { font-family: var(--f-mono); font-size: 23px; font-weight: 600; color: var(--cream-50); letter-spacing: -0.01em; }
.kpi.hero b { color: var(--brass-hi); font-size: 28px; }
.kpi b.neg { color: var(--oxblood-hi); } .kpi b.pos { color: var(--sage-hi); }
.kpi small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.verdict-box { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid var(--line-strong); }
.verdict-box.good { border-color: rgba(143,174,129,.45); background: rgba(110,138,98,.12); color: #D4E8CB; }
.verdict-box.bad { border-color: rgba(181,88,76,.45); background: rgba(138,58,49,.14); color: #F2CBC4; }
.verdict-box.meh { border-color: var(--brass-lo); background: rgba(184,146,90,.08); color: var(--cream-100); }
.breakdown { width: 100%; border-collapse: collapse; font-size: 14px; }
.breakdown td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-family: var(--f-mono); color: var(--cream-50); }
.breakdown tr.total td { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 700; padding-top: 12px; }
.breakdown tr.sub td:first-child { padding-left: 14px; color: var(--text-dim); }
.chart { width: 100%; height: auto; margin: 6px 0 4px; }
.chart text { font-family: var(--f-mono); font-size: 11px; fill: var(--text-faint); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sched { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 14px; }
.sched table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12.5px; }
.sched th { position: sticky; top: 0; background: var(--choc-900); text-align: right; padding: 8px 10px; font-size: 10.5px; letter-spacing: .1em; color: var(--text-faint); font-family: var(--f-ui); text-transform: uppercase; }
.sched td { text-align: right; padding: 6px 10px; border-top: 1px solid var(--line); color: var(--text-dim); }
.sched th:first-child, .sched td:first-child { text-align: left; }
.comp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 32px; gap: 8px; margin-bottom: 8px; align-items: center; }
.comp-row .input { height: 38px; font-size: 13.5px; padding: 0 10px; }
.comp-row button { height: 38px; border: 1px solid var(--line-strong); background: none; border-radius: var(--r-sm); cursor: pointer; color: var(--text-faint); }
.comp-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr 32px; gap: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.calc-note { font-size: 12.5px; color: var(--text-faint); margin-top: 16px; line-height: 1.5; }

/* ─────────── Library ─────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: none; color: var(--text-dim); cursor: pointer; font-size: 13px; font-weight: 500; }
.chip:hover { color: var(--cream-50); border-color: var(--brass-lo); }
.chip.on { background: var(--brass); color: var(--ink); border-color: var(--brass); font-weight: 600; }
.book { padding: 20px; display: flex; gap: 16px; }
.book .spine { width: 52px; height: 76px; }
.book b { font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1.15; display: block; color: var(--cream-50); }
.book .by { font-size: 13px; color: var(--brass-hi); margin: 3px 0 8px; }
.book p { font-size: 13.5px; color: var(--text-dim); margin: 0 0 10px; }

/* ─────────── Profile & certificates ─────────── */
.cert-tile { padding: 20px; display: flex; gap: 14px; align-items: center; }
.cert-tile .seal { width: 48px; height: 48px; flex: none; }
.cert-tile b { font-family: var(--f-display); font-size: 19px; display: block; color: var(--cream-50); }
.cert-tile span { font-size: 12.5px; color: var(--text-faint); }
.cert-tile.locked { opacity: .45; }

.certificate-page { padding: 30px 0 60px; }
.certificate {
  max-width: 980px; margin: 0 auto; aspect-ratio: 1.414 / 1; background: var(--paper); color: var(--paper-ink);
  position: relative; padding: 6%; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.certificate::before { content: ''; position: absolute; inset: 18px; border: 2px solid var(--choc-700); }
.certificate::after { content: ''; position: absolute; inset: 26px; border: 1px solid var(--brass); }
.certificate > * { position: relative; z-index: 1; }
.certificate .org { font-size: clamp(9px, 1.3vw, 13px); letter-spacing: .32em; text-transform: uppercase; color: var(--brass-lo); font-weight: 600; }
.certificate .ttl { font-family: var(--f-display); font-size: clamp(26px, 5.4vw, 58px); font-weight: 600; color: var(--ink); margin: 1.2% 0; line-height: 1; }
.certificate .pres { font-family: var(--f-display); font-style: italic; font-size: clamp(13px, 2vw, 21px); color: var(--paper-dim); }
.certificate .who { font-family: var(--f-display); font-size: clamp(30px, 6vw, 66px); color: var(--ink); margin: 1% 0 0.5%; font-weight: 600; font-style: italic; border-bottom: 1px solid var(--paper-line); padding: 0 6% 1%; }
.certificate .for { font-size: clamp(11px, 1.6vw, 16px); color: var(--paper-dim); max-width: 640px; line-height: 1.5; margin-top: 1.5%; }
.certificate .for b { color: var(--ink); }
.certificate .sigs { display: flex; justify-content: space-between; align-items: flex-end; width: 84%; margin-top: 4%; }
.certificate .sig { text-align: center; font-size: clamp(9px, 1.2vw, 12px); color: var(--paper-dim); letter-spacing: .1em; text-transform: uppercase; min-width: 26%; }
.certificate .sig div { font-family: var(--f-mono); color: var(--ink); font-size: clamp(10px, 1.4vw, 14px); padding-bottom: 6px; border-bottom: 1px solid var(--paper-dim); margin-bottom: 6px; letter-spacing: 0; text-transform: none; }
.certificate .seal { width: clamp(60px, 11vw, 120px); height: auto; }
.cert-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

@media print {
  @page { size: landscape; margin: 0; }
  body { background: #fff; }
  .topbar, .tabbar, .footer, .cert-actions, .no-print { display: none !important; }
  .certificate-page { padding: 0; }
  .certificate { box-shadow: none; max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; }
}

/* ─────────── Misc ─────────── */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: var(--choc-700); border: 1px solid var(--brass-lo); color: var(--cream-50); padding: 12px 18px; border-radius: var(--r-sm); font-size: 14px; z-index: 100; opacity: 0; transition: all .25s; pointer-events: none; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 861px) { .toast { bottom: 30px; } }
.loading { display: grid; place-items: center; min-height: 60vh; }
.loading .seal { width: 70px; height: 70px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; transform: scale(.96); } }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); margin-top: 22px; }
.back:hover { color: var(--cream-50); }
.empty { text-align: center; color: var(--text-faint); padding: 30px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
