/* Inter (SIL OFL 1.1), bundled so the scoreboard keeps working offline. */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
}
/* Barlow Condensed (SIL OFL 1.1): numerals and the arena team name on the TV. */
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-latin-600.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-latin-700.woff2") format("woff2"); font-weight: 700; font-display: block; }

:root {
  --ground: #000;
  --surface: #111;
  --raised: #2a2a2a;
  --rule: #1f1f1f;
  --control: #5c5c5c;   /* field and outline borders: 3.1:1 on black (WCAG non-text) */
  --text: #fff;
  --muted: #b4b4b4;
  --faint: #949494;
  --dim: #5e5e5e;
  /* the one data hue: the blue of the official CBR logo */
  --accent: #00adee;
  --negative: #e5484d;
  --pill-negative-bg: #2c1a20; --pill-negative-ink: #f07a8e;
  --pill-positive-bg: #0b2a38; --pill-positive-ink: #6fd0f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
[hidden] { display: none !important; }
body {
  font-family: "Inter", system-ui, "Segoe UI", Roboto, "DejaVu Sans", Arial, sans-serif;
  background: var(--ground);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Team badge: logo image, or initials on a pale tint of the team's own hue (set inline from JS). */
.logo {
  border-radius: 50%; object-fit: cover; flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: -.01em; background: var(--raised); color: var(--text);
}

.mark { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.mark svg { flex: none; }
