/* ═══════════════════════════════════════════════════════════════════
   🧈 FLUTTER BUTTER — COMPONENT LIBRARY  (Butter DS v1)
   Requires tokens.css. Build pages from these; never re-invent.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Win/loss color — THE canonical way to color a P&L figure ───────
   Audit (18/08) found .pos/.neg, .win/.loss, .green/.red all doing this
   same job across pages, some with hardcoded hex instead of tokens.
   New markup should reach for these; existing page-local variants stay
   as-is where already correctly wired to --win/--loss (low value,
   real risk to mass-rename across live markup) — the actual bug fixed
   was hardcoded hex bypassing the tokens entirely (bet-entry.html). */
.val-pos { color: var(--win); }
.val-neg { color: var(--loss); }

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--forest); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-s);
}

a { color: var(--gold-pale); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Layout ───────────────────────────────────────────────────────── */
.container { width: min(1320px, 100% - 3rem); margin-inline: auto; }
.section   { padding-block: var(--s9); }
.section-tight { padding-block: var(--s7); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--turf);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
/* Centered variant — .eyebrow is inline-flex by default (sits inline with
   surrounding text elsewhere); this swaps to flex + centers without an
   inline style override, which would otherwise silently change display
   behavior wherever it's copy-pasted next to other inline content. */
.eyebrow--center { display: flex; justify-content: center; }

.display-xl {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-hero);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.display-lg {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 1.08;
  text-transform: uppercase;
}
.display-md { font-family: var(--display); font-weight: 700; font-size: var(--fs-title); line-height: 1.15; }
.lede { font-size: var(--fs-lede); color: var(--text-soft); max-width: 58ch; }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold); }

.divider { border: 0; height: 1px; background: var(--hairline); margin-block: var(--s6); }

/* Visually hidden but still announced by screen readers — for aria-live
   status regions and similar AT-only content. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.fb-nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(9, 24, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.fb-nav .nav-links { display: flex; gap: var(--s5); align-items: center; }
.fb-nav .nav-link {
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--text-soft);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-s);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.fb-nav .nav-link:hover { color: var(--gold-pale); background: var(--surface-2); }
.fb-nav .nav-link.active { color: var(--gold); position: relative; }
.fb-nav .nav-link.active::after {
  content: ''; position: absolute; left: var(--s3); right: var(--s3); bottom: 2px;
  height: 1px; background: var(--gold);
}

/* ── Nav — mobile burger + dropdown ──────────────────────────────────
   Below 900px the inline links (.hide-m) disappear per the existing
   breakpoint rule further down; without a way to reach them, mobile
   visitors could only ever get to the Bunker link. This adds a burger
   toggle that reveals every link (including the hide-m ones) in a
   full-width dropdown panel. Auto-wired by js/ui.js — just add
   <button class="nav-burger" aria-label="Menu" aria-expanded="false">
     <span></span>
   </button>
   as the last child of .nav-links in any page's nav markup. */
.nav-burger {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-s);
  cursor: pointer; position: relative;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--text-soft);
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.nav-burger span { position: relative; }
.nav-burger span::before { position: absolute; top: -6px; left: 0; }
.nav-burger span::after { position: absolute; top: 6px; left: 0; }
.fb-nav.nav-open .nav-burger span { background: transparent; }
.fb-nav.nav-open .nav-burger span::before { top: 0; transform: rotate(45deg); background: var(--gold); }
.fb-nav.nav-open .nav-burger span::after { top: 0; transform: rotate(-45deg); background: var(--gold); }

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .fb-nav .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 24, 11, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height var(--t-med) var(--ease-out), opacity var(--t-fast) var(--ease-out);
  }
  .fb-nav.nav-open .nav-links { max-height: 70vh; opacity: 1; pointer-events: auto; overflow-y: auto; }
  .fb-nav .nav-links .nav-link,
  .fb-nav .nav-links .nav-link.hide-m {
    display: block; width: 100%; text-align: left;
    padding: 1rem var(--s5); border-radius: 0; border-bottom: 1px solid var(--hairline);
    font-size: 1rem;
  }
  .fb-nav .nav-links .nav-stats { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-m);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--gold-pale); color: var(--forest); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.btn-ghost { background: transparent; color: var(--gold); border-color: var(--hairline-hi); }
.btn-ghost:hover { color: var(--gold-pale); border-color: var(--gold); background: var(--surface-1); }

.btn-danger { background: transparent; color: var(--loss); border-color: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.10); border-color: var(--loss); }

.btn-sm { font-size: 0.9rem; padding: 0.45rem 1rem; border-radius: var(--r-s); }
.btn-lg { font-size: 1.25rem; padding: 0.9rem 2.2rem; border-radius: var(--r-l); }

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-l);
  padding: var(--s5);
  box-shadow: var(--shadow-1);
}
.card-hover { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out); }
.card-hover:hover { transform: translateY(-3px); border-color: var(--hairline-hi); box-shadow: var(--shadow-2); }

.glass {
  background: rgba(15, 30, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-l);
}

/* ── Stat card — the numbers ARE the product ─────────────────────── */
.stat-card { display: grid; gap: var(--s1); }
.stat-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--turf);
}
.stat-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat-value.gold { color: var(--gold); }
.stat-delta { font-family: var(--mono); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.stat-delta.up   { color: var(--win); }
.stat-delta.down { color: var(--loss); }

/* ── Result pills / odds chips / tier badges ─────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.pill-w    { color: var(--win);     background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .3); }
.pill-l    { color: var(--loss);    background: rgba(248, 113, 113, .10); border-color: rgba(248, 113, 113, .3); }
.pill-p    { color: var(--push);    background: rgba(251, 224, 122, .10); border-color: rgba(245, 197, 24, .3); }
.pill-void { color: var(--void);    background: rgba(156, 163, 175, .10); border-color: rgba(156, 163, 175, .3); }
.pill-live { color: var(--pending); background: rgba(96, 165, 250, .10);  border-color: rgba(96, 165, 250, .3); }

.odds-chip {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-small);
  color: var(--gold);
  background: var(--surface-2);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--r-s);
  padding: 0.15rem 0.5rem;
}

.tier-badge {
  font-family: var(--mono); font-size: var(--fs-micro);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.6rem; border-radius: var(--r-pill);
}
.tier-badge.free  { color: var(--turf);   border: 1px solid var(--turf-dim); }
.tier-badge.vip   { color: var(--forest); background: var(--gold); font-weight: 700; }
.tier-badge.admin { color: var(--gold);   border: 1px solid var(--gold); }

/* ── Tables — ledger-grade ────────────────────────────────────────── */
.fb-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-l); }
.fb-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.fb-table thead th {
  position: sticky; top: 0;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--turf);
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline-hi);
  white-space: nowrap;
}
.fb-table tbody td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--hairline); }
.fb-table tbody tr:nth-child(even) { background: rgba(23, 43, 26, 0.35); }
.fb-table tbody tr:hover { background: var(--surface-2); }
.fb-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── Forms ────────────────────────────────────────────────────────── */
.field { display: grid; gap: var(--s2); }
.field > label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--turf);
}
.input, select.input, textarea.input {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  padding: 0.65rem 0.9rem;
  font-family: var(--sans);
  font-size: var(--fs-body);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.input::placeholder { color: var(--text-dim); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.input.error { border-color: var(--loss); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }
.field-msg { font-size: var(--fs-micro); color: var(--turf); }
.field-msg.error { color: var(--loss); }
.input-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.radio-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips label {
  font-family: var(--mono); font-size: var(--fs-small);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.radio-chips input:checked + label { background: var(--gold); color: var(--forest); border-color: var(--gold); font-weight: 600; }
.radio-chips input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

.toggle { position: relative; display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track {
  width: 44px; height: 24px;
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  transition: background var(--t-med) var(--ease-out);
  flex: none;
}
.toggle .track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--off-white);
  margin: 2px;
  transition: transform var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out);
}
.toggle input:checked + .track { background: var(--gold); }
.toggle input:checked + .track::after { transform: translateX(20px); background: var(--forest); }
.toggle input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Toasts ───────────────────────────────────────────────────────── */
.toast-host {
  position: fixed;
  bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast);
  display: grid; gap: var(--s2);
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s3);
  background: var(--surface-2);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--r-m);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-small);
  box-shadow: var(--shadow-2);
  animation: toast-in var(--t-med) var(--ease-out);
}
.toast.success { border-color: rgba(74, 222, 128, .4); }
.toast.error   { border-color: rgba(248, 113, 113, .4); }
.toast.out     { opacity: 0; transform: translateY(8px); transition: all var(--t-med) var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ── Skeletons ────────────────────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-s);
  color: transparent !important;
  user-select: none;
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Inline numeric stat placeholders (hero/dashboard stat cells before live
   data resolves) — reuses .skeleton's token/shimmer, just sized to sit
   inline next to a label instead of filling a block container. First-paint
   only: JS strips the .skeleton class the instant real data lands. */
.hlb .v.skeleton,
.stat-value.skeleton,
.record-cta-stat-val.skeleton,
.nav-stat strong.skeleton {
  display: inline-block;
  min-width: 3em;
  height: 1em;
  vertical-align: middle;
}

/* ── Modal ────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: var(--s4);
  animation: fade-in var(--t-med) var(--ease-out);
}
.modal {
  width: min(560px, 100%);
  max-height: min(84vh, 720px);
  overflow: auto;
  background: var(--surface-1);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--r-xl);
  padding: var(--s6);
  box-shadow: var(--shadow-3);
  animation: modal-in var(--t-med) var(--ease-out);
}
@keyframes fade-in  { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* ── Drop card — a Telegram drop, rendered in-brand ──────────────── */
.drop-card { overflow: hidden; border-radius: var(--r-l); border: 1px solid var(--hairline-hi); background: var(--surface-1); }
.drop-card .drop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: var(--fs-micro);
  letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--turf);
}
.drop-card .drop-leg { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--hairline); }
.drop-card .drop-leg:last-of-type { border-bottom: 0; }
.drop-card .drop-foot { padding: var(--s3) var(--s4); background: rgba(245, 197, 24, 0.05); font-family: var(--mono); font-size: var(--fs-small); color: var(--gold-pale); }

/* ── Reveal on scroll (ui.js drives; CSS states) ─────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Page chrome — brand nav + footer (every page) ────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--forest);
  padding: var(--s2) var(--s4); z-index: 999; border-radius: 0 0 var(--r-m) 0;
  font-family: var(--mono); font-size: var(--fs-small);
}
.skip-link:focus { left: 0; }

.nav-logo { display: flex; align-items: center; gap: var(--s2); }
.nav-logo-text { display: inline-flex; align-items: center; gap: var(--s2); }
.wm-words { display: flex; gap: 0.35rem; font-family: var(--display); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.03em; align-items: baseline; }
.wm-flutter { color: transparent; -webkit-text-stroke: 1px rgba(245, 197, 24, 0.65); }
.wm-butter  { color: var(--gold); }

/* Official logo mark (site/icons/logo-mark.png) — replaces the old
   placeholder diamond+FB SVG in the nav. Single image, brand name
   already baked into the artwork, so it stands alone (no wm-words
   alongside it). */
.nav-logo-img { height: 40px; width: auto; display: block; }

.nav-live { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: var(--fs-micro); color: var(--green-hi); letter-spacing: 0.1em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-hi); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 55% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }

@media (max-width: 900px) {
  .nav-live, .nav-link.hide-m { display: none; }
  .wm-words { font-size: 1.15rem; }
  .nav-logo-img { height: 32px; }
  .fb-nav { padding: 0.8rem 1.1rem; }
}

.fb-footer { border-top: 1px solid var(--hairline); padding: var(--s7) var(--s5); text-align: center; display: grid; gap: var(--s4); justify-items: center; }
.footer-logo { font-family: var(--display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(245,197,24,.5); }
.footer-logo span { color: var(--gold); -webkit-text-stroke: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: center; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; }
.footer-links a { color: var(--turf); }
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer { max-width: 62ch; font-size: var(--fs-micro); color: var(--text-dim); }
.footer-copy { font-family: var(--mono); font-size: var(--fs-micro); color: var(--text-dim); }

.section-head { text-align: center; display: grid; gap: var(--s3); justify-items: center; margin-bottom: var(--s7); }
.section-head h2 em { font-style: normal; color: var(--gold); }

/* ── FAQ accordion — shared by index.html and faq.html ──────────────── */
.faq-list { max-width: 720px; margin-inline: auto; display: grid; gap: var(--s3); }
.faq-item { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--r-l); overflow: hidden; transition: border-color var(--t-fast) var(--ease-out); }
.faq-item[open] { border-color: var(--hairline-hi); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); cursor: pointer; list-style: none; padding: var(--s4) var(--s5); font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--mono); color: var(--gold); font-size: 1.2rem; transition: transform var(--t-med) var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 var(--s5) var(--s5); color: var(--text-soft); font-size: var(--fs-small); }
.faq-item .faq-body a { color: var(--gold-pale); }
.faq-item .faq-body p + p { margin-top: var(--s3); }
.faq-group-label { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--turf); max-width: 720px; margin: var(--s7) auto var(--s3); padding-inline: var(--s2); }
.faq-group-label:first-child { margin-top: 0; }

/* ── Odds & ends ──────────────────────────────────────────────────── */
.kbd {
  font-family: var(--mono); font-size: var(--fs-micro);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: var(--r-s);
  padding: 0.05rem 0.4rem;
}
.scroll-thin { scrollbar-width: thin; scrollbar-color: var(--turf-dim) transparent; }
.scroll-thin::-webkit-scrollbar { height: 8px; width: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--turf-dim); border-radius: var(--r-pill); }

/* ── Onboarding tour (js/tour.js — window.FBTour) ────────────────────
   Spotlight = one element positioned via getBoundingClientRect(), dim
   layer is a single box-shadow spread (no separate scrim div), plus a
   gold border. Same technique driver.js/Shepherd use. A transparent
   full-screen blocker sits below it and swallows every click on the
   rest of the page — the spotlighted element is never interactive
   during the tour, deliberately, given real money moves on this site. */
.tour-blocker {
  position: fixed; inset: 0; z-index: var(--z-tour);
  background: transparent; cursor: default;
}
.tour-highlight {
  position: fixed; z-index: calc(var(--z-tour) + 1);
  border-radius: var(--r-l);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 9999px var(--scrim), 0 0 32px rgba(245,197,24,0.35);
  pointer-events: none;
  transition: top var(--t-med) var(--ease-out), left var(--t-med) var(--ease-out),
              width var(--t-med) var(--ease-out), height var(--t-med) var(--ease-out);
}
.tour-card {
  position: fixed; z-index: calc(var(--z-tour) + 2);
  width: min(360px, calc(100vw - 2rem));
  background: var(--surface-1);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--r-l);
  padding: var(--s5);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  font-family: var(--mono);
}
.tour-step {
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--turf); margin-bottom: var(--s2);
}
.tour-title {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  color: var(--gold); text-transform: uppercase; margin-bottom: var(--s3); line-height: 1.15;
}
.tour-body { color: var(--text-soft); font-size: var(--fs-small); line-height: 1.5; margin-bottom: var(--s4); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.tour-nav { display: flex; gap: var(--s2); }
.tour-btn {
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 0.5rem 0.9rem; border-radius: var(--r-m);
  cursor: pointer; border: 1px solid var(--hairline-hi); background: transparent; color: var(--text-soft);
}
.tour-btn.primary { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.tour-btn:focus-visible, .tour-skip:focus-visible, .tour-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tour-skip { background: none; border: none; color: var(--turf-dim); font-size: var(--fs-micro); text-decoration: underline; cursor: pointer; }
.tour-close {
  position: absolute; top: 0.6rem; right: 0.7rem; background: none; border: none;
  color: var(--turf-dim); font-size: 1rem; cursor: pointer; padding: 0.3rem; line-height: 1;
}
.tour-finish-row { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); font-size: var(--fs-small); color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) {
  .tour-highlight { transition: none; }
}
