/* Base: reset, body, text treatments, focus, helpers. Needs tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bfc-night);
  color: var(--bfc-ink);
  font: 600 var(--bfc-fs-m)/var(--bfc-lh) var(--bfc-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* screen-reader only */
.bfc-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.bfc-skip {
  position: fixed; left: 8px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--bfc-navy-1); color: #fff; font-weight: 800; transform: translateY(-200%);
  box-shadow: var(--bfc-focus);
}
.bfc-skip:focus { transform: none; }

/* keyboard focus: always visible, never on mouse click.
   Two layers: the black + gold box-shadow ring, and a gold outline drawn on the same band (3-5 px out). Components
   paint their own box-shadows (rows, chips, filters, sort tabs) and win over this rule; the outline survives them. */
:focus { outline: none; }
:focus-visible { outline: 2px solid #ffe066; outline-offset: 3px; box-shadow: var(--bfc-focus); border-radius: 10px; }
[tabindex="-1"]:focus-visible { box-shadow: none; outline: none; }

/* text treatments: white or gold lettering with the game's black outline */
.bfc-lbl { font-weight: 800; color: var(--bfc-ink); text-shadow: var(--bfc-outline); letter-spacing: .01em; }
.bfc-lbl-gold { font-weight: 800; color: var(--bfc-ink-gold); text-shadow: var(--bfc-outline); }
.bfc-game { font-family: var(--bfc-font-game); font-weight: 800; }
.bfc-small { font-size: var(--bfc-fs-s); }
.bfc-muted { color: var(--bfc-ink-dim); }
.bfc-good { color: var(--bfc-ink-good); }
.bfc-bad { color: var(--bfc-ink-bad); }
.bfc-prose { color: var(--bfc-ink-soft); font-size: var(--bfc-fs-s); line-height: 1.5; }
.bfc-prose b { color: #fff; }

.bfc-stack { display: grid; gap: var(--bfc-sp-2); }
.bfc-stack-3 { display: grid; gap: var(--bfc-sp-3); }
.bfc-cluster { display: flex; flex-wrap: wrap; gap: var(--bfc-sp-2); align-items: center; }
.bfc-pad { padding: var(--bfc-sp-3) var(--bfc-gutter) var(--bfc-sp-5); }

::selection { background: rgba(255, 220, 120, .45); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--bfc-gold-3) transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
/* index.html <noscript> line (a class, not a style attribute: the CSP allows no inline styles). */
.bfc-noscript { padding: 24px; color: #fff; }
