:root {
  color-scheme: dark;
  --black: #000;
  --panel: #0a0a0a;
  --panel-2: #101010;
  --line: #252525;
  --muted: #8b8b8b;
  --white: #fff;
  --orange: #ff5900;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--black); color: var(--white); }
body { font-size: 15px; }
a { color: inherit; }
button, select, input { font: inherit; }

.shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 72px; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 44px; height: 44px; object-fit: contain; }
.brand span { color: var(--orange); font-weight: 950; font-size: 27px; letter-spacing: -.06em; }
.match-label, .eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .17em; }

.scoreboard-hero { min-height: 190px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 42px; }
.team { display: flex; align-items: center; gap: 24px; font-size: clamp(18px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.035em; }
.team-one { justify-content: flex-end; }
.team-two { justify-content: flex-start; }
.team strong { font-size: clamp(42px, 6vw, 78px); line-height: 1; }
.team-one strong { color: var(--orange); }
.versus { min-width: 80px; text-align: center; text-transform: uppercase; }
.versus span { display: block; font-size: 13px; font-weight: 800; }
.versus small { color: var(--muted); font-size: 9px; letter-spacing: .18em; }

.replay-card, .stats-card { background: var(--panel); border: 1px solid var(--line); }
.card-title { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.card-title h1, .card-title h2 { margin: 4px 0 0; font-size: 22px; line-height: 1; text-transform: uppercase; }
.download, .controls button { border: 1px solid var(--orange); background: var(--orange); color: #000; padding: 12px 16px; text-decoration: none; font-size: 11px; font-weight: 900; letter-spacing: .08em; cursor: pointer; }

.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 620px; }
.radar-wrap { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; background: #080808; }
#radar { display: block; width: 100%; height: 100%; min-height: 620px; }
#viewer-status { position: absolute; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.kill-feed { border-left: 1px solid var(--line); padding: 22px; background: #070707; }
#kills { margin-top: 20px; display: grid; gap: 9px; }
.kill { display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; align-items: center; font-size: 11px; }
.kill .attacker { text-align: right; color: var(--white); }
.kill .weapon { color: var(--orange); text-align: center; font-size: 9px; text-transform: uppercase; }
.kill .victim { color: var(--muted); }
.kill.headshot .weapon::after { content: " • HS"; }

.controls { display: grid; grid-template-columns: auto auto minmax(120px, 1fr) 52px auto; gap: 16px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.controls button { min-width: 68px; padding: 10px 13px; }
.controls label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.controls select { margin-left: 7px; border: 1px solid var(--line); background: var(--panel-2); color: var(--white); padding: 8px; }
.controls input { width: 100%; accent-color: var(--orange); }
#clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }

.stats-card { margin-top: 22px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 24px; border-bottom: 1px solid #181818; text-align: right; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
th:first-child, td:first-child { text-align: left; }
.player-name { font-weight: 750; }
.empty-row { color: var(--muted); text-align: center !important; }

@media (max-width: 800px) {
  .shell { width: min(100% - 20px, 1440px); }
  .topbar { height: 72px; }
  .scoreboard-hero { gap: 12px; min-height: 145px; }
  .team { gap: 10px; font-size: 15px; }
  .team-one { flex-direction: column-reverse; align-items: flex-end; }
  .team-two { flex-direction: column; align-items: flex-start; }
  .viewer-layout { grid-template-columns: 1fr; }
  .kill-feed { display: none; }
  .radar-wrap, #radar { min-height: 460px; }
  .controls { grid-template-columns: auto 1fr auto; }
  .controls input { grid-column: 1 / -1; grid-row: 2; }
  .card-title { padding: 18px; }
  .download { padding: 11px; }
}
