/* Uzani leaderboard – shared styles. Colours and type from designs/tokens.css */
/* Fonts are served from this site (SIL Open Font License), so screens don't depend on Google at the venue */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(/live/fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/live/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/live/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(/live/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/live/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/live/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/live/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/live/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url(/live/fonts/inter-latin-800-normal.woff2) format('woff2'); }

:root {
  --bg: #0A0A0A; --surface: #121212; --raised: #1A1A1A; --band: #141414; --tint: #17170A;
  --line: #222222; --line-2: #2A2A2A; --border: #262626; --border-strong: #3A3A3A;
  --text: #FFFFFF; --text-2: #D4D4D4; --muted: #A3A3A3; --dim: #6B6B6B;
  --accent: #FEEC00; --on-accent: #0A0A0A;
  --miss: #FF6B6B; --miss-border: #5A1F1F;
  --live: #FF4D4D; --live-text: #FF8A8A; --success: #86EFAC;
  --red: #BB0000; --green: #006600;
  --theme: #FEEC00;  /* event theme colour, set per event */
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.d { font-family: var(--display); }
.up { text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* red / white / green stripe from the team shirts */
.stripe { display: flex; height: 6px; flex-shrink: 0; }
.stripe::before { content: ""; flex: 1; background: var(--red); }
.stripe i { width: 6px; background: #fff; }
.stripe::after { content: ""; flex: 1; background: var(--green); }

/* slanted yellow tag for the one main label on a screen */
.tag { display: inline-block; align-self: flex-start; padding: 4px 18px 4px 10px; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }

.live-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--live-text); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--live); animation: pulse 2s ease-in-out infinite; }
.live-dot.final { color: var(--muted); } .live-dot.final::before { background: var(--muted); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* attempt chips */
.chips { display: flex; gap: 6px; }
.chip { display: flex; align-items: center; justify-content: center; width: 54px; height: 40px; border-radius: 6px;
  font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.chip.good { background: #fff; color: #0A0A0A; }
.chip.no { background: var(--bg); color: var(--miss); border: 2px solid var(--miss-border); text-decoration: line-through; text-decoration-thickness: 2px; }
.chip.bar { background: var(--accent); color: #0A0A0A; font-weight: 800; }
.chip.next { color: var(--accent); border: 2px solid var(--accent); }
.chip.none { color: var(--dim); border: 2px dashed var(--border-strong); }

/* photo or yellow initials */
.ph { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--band);
  border: 2px solid var(--line-2); overflow: hidden; }
.ph span { font-family: var(--display); font-weight: 800; line-height: 1; color: var(--accent); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.clock { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.clock.warn { color: var(--accent); }
.clock.crit { color: var(--live); }
.clock.idle { color: var(--muted); }

/* table column headings: the only place for small spaced capitals */
.th { font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; font-weight: 700; font-size: 15px; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.danger { color: var(--miss); border-color: var(--miss-border); }
.btn:disabled { opacity: .4; cursor: default; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.pill[aria-pressed="true"], .pill.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
