/* ==========================================================================
   OBJECTIVE - CDL hub design system
   Direction: a broadcast truck at night. Quiet ink chrome, one amber accent,
   colour lives in the scoreboards (team colours) and nowhere else.
   Signature: the objective diamond, used only for map numbers and held objectives.
   Spacing on a 4px grid, weights 400-600, sentence case, one easing curve.
   Design pass follows "unslop" by Damir Sokolovsky (@heydamir), CC BY 4.0.
   ========================================================================== */
:root {
  /* Ink ramp, dark */
  --bg-0: #07080d;
  --bg: #0b0d14;
  --bg-2: #090b11;
  --surface: #11141c;
  --surface-2: #151924;
  --surface-3: #1a1e28;
  --line: rgba(238, 240, 245, 0.08);
  --line-2: rgba(238, 240, 245, 0.14);
  --text: #eef0f5;
  --muted: #a3a9b8;
  --dim: #7a8296;
  /* one accent */
  --accent: #ffb81c;
  --accent-text: #ffc247;
  --accent-ink: #1a1203;
  --accent-soft: rgba(255, 184, 28, 0.1);
  /* semantic, toned down */
  --live: #f0435a;
  --live-ink: #ff7a8c;
  --live-soft: rgba(240, 67, 90, 0.12);
  --good: #4cc38a;
  --warn: #e8a33a;
  --warn-ink: #f2c26b;
  --bad: #e5484d;
  --bad-ink: #ff8589;
  --info: #7aa7e8;
  --info-ink: #a9c5ef;
  /* depth + misc */
  --radius: 12px;
  --cut: 16px;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  --inset: rgba(0, 0, 0, 0.24);
  --ph-bg: #151924;
  --logo-tile: #1a1e28;
  --topbar: rgba(9, 11, 17, 0.86);
  --grid-glow: transparent;
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1440px;
  color-scheme: dark;
}
/* Ink ramp, light */
:root[data-theme="light"] {
  --bg-0: #ffffff;
  --bg: #f5f7fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eceff4;
  --line: rgba(17, 24, 39, 0.08);
  --line-2: rgba(17, 24, 39, 0.14);
  --text: #111827;
  --muted: #4b5565;
  --dim: #6b7487;
  --accent: #f5a800;
  --accent-text: #8f5600;
  --accent-ink: #1a1203;
  --accent-soft: rgba(245, 168, 0, 0.12);
  --live: #d61f3a;
  --live-ink: #b8152f;
  --live-soft: rgba(214, 31, 58, 0.08);
  --good: #16a34a;
  --warn: #b46a00;
  --warn-ink: #8a5300;
  --bad: #dc2626;
  --bad-ink: #b91c1c;
  --info: #2563c9;
  --info-ink: #1e4f9f;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --inset: #f5f7fa;
  --ph-bg: #e6e9ef;
  --logo-tile: #1a1e28;
  --topbar: rgba(255, 255, 255, 0.9);
  --hi: 0 1px 2px rgba(17, 24, 39, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
main { padding: 32px 0 80px; min-height: 70vh; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 32px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 40px; }
.stack.tight > * + *, aside.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap-ok { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--topbar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 22px/1 var(--font-display); letter-spacing: 0.02em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small { font: 500 12px/1 var(--font-body); color: var(--dim); margin-left: 4px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .15s var(--ease), background .15s var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-3); }
.nav .live-dot { margin-left: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.btn.menu-btn { display: none; }
@media (max-width: 1020px) {
  .topbar .wrap { gap: 12px; }
  .btn.menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 2px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; transform: translateY(-120%); transition: transform .24s var(--ease); z-index: 40; }
  .nav.open { transform: none; }
  .nav a { height: 44px; padding: 0 12px; font-size: 16px; }
}

/* ---------- Score ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ticker .wrap { display: flex; align-items: stretch; height: 76px; }
.ticker-label { display: flex; align-items: center; padding-right: 16px; border-right: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.ticker-label .live-dot { display: none; }
.ticker-track { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; }
.ticker-track::-webkit-scrollbar { display: none; }
.tick-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-content: center; padding: 0 16px; border-right: 1px solid var(--line); min-width: 156px; font-size: 13px; transition: background .15s var(--ease); }
.tick-item:hover { background: var(--surface); }
.tick-item .t { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tick-item .s { font: 600 16px/1.25 var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.tick-item .s.win { color: var(--text); } .tick-item .s.lose { color: var(--dim); }
.tick-item .meta { grid-column: 1 / -1; margin-top: 4px; font: 500 11px/1.3 var(--font-body); font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; }
.tick-item.is-live .meta { color: var(--live-ink); }

/* ---------- Type ---------- */
.eyebrow { display: inline-block; font: 500 13px/1.4 var(--font-body); color: var(--muted); }
.h1 { font: 600 clamp(36px, 5vw, 56px)/1.02 var(--font-display); letter-spacing: -0.01em; margin: 8px 0 12px; }
.h2 { font: 600 28px/1.1 var(--font-display); margin: 0; }
.h3 { font: 600 16px/1.3 var(--font-body); margin: 0; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 60ch; margin: 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 16px; }
.section-head .link { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: color .15s var(--ease); }
.section-head .link:hover { color: var(--text); }
.section-head .link svg { width: 14px; height: 14px; }
.page-head { padding: 16px 0 32px; }

/* ---------- Surfaces ---------- */
.card { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--hi); }
.card.cut { border-radius: 16px; }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.card-head .h3 { font-size: 15px; }
.card-head a.small { transition: color .15s var(--ease); }
.card-head a.small:hover { color: var(--text); }
a.card { transition: border-color .15s var(--ease), background .15s var(--ease); }
a.card:hover { border-color: var(--line-2); }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-3); font-weight: 500; font-size: 14px;
  cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); white-space: nowrap; box-shadow: var(--hi);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; stroke-width: 1.75; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip.accent { color: var(--accent-text); background: var(--accent-soft); }
.chip.good, .chip.warn, .chip.info, .chip.bad { color: var(--muted); }
.chip.good::before, .chip.warn::before, .chip.info::before, .chip.bad::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 2px; background: var(--dim); }
.chip.good::before { background: var(--good); } .chip.warn::before { background: var(--warn); }
.chip.info::before { background: var(--info); } .chip.bad::before { background: var(--bad); }
.chip.live { color: #fff; background: var(--live); }
.tabs { display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font-weight: 500; font-size: 13px; color: var(--muted); border: 0; background: none; cursor: pointer; white-space: nowrap; transition: color .15s var(--ease), background .15s var(--ease); }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.active, .tabs button.active { background: var(--surface-3); color: var(--text); box-shadow: var(--hi); }
.select, .input { height: 36px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; min-width: 0; transition: border-color .15s var(--ease); }
.select:focus, .input:focus { border-color: var(--accent); outline: none; }

/* live indicator: a steady dot that breathes, no glow */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; animation: breathe 2s var(--ease) infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.badge-live, .badge-paused { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 12px/1 var(--font-body); }
.badge-live { background: var(--live-soft); color: var(--live-ink); }
.badge-paused { background: var(--accent-soft); color: var(--warn-ink); }
.badge-final { font: 500 12px/1 var(--font-body); color: var(--dim); }

/* signature: the objective diamond */
.dia { display: inline-block; width: 7px; height: 7px; border-radius: 1.5px; background: currentColor; transform: rotate(45deg); flex: none; }

/* ---------- Team badge ---------- */
.tb { --c: #777; --c2: #111; position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--c); color: color-mix(in srgb, var(--c2) 90%, #000); font: 600 11px/1 var(--font-display); overflow: hidden; }
.tb.light-ink { color: #fff; }
.tb.has-logo { background: var(--logo-tile); }
.tb img { width: 76%; height: 76%; object-fit: contain; }
.tb.sm { width: 20px; height: 20px; border-radius: 4px; font-size: 8px; }
.tb.md { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
.tb.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 22px; }
.tb.xl { width: 112px; height: 112px; border-radius: 24px; font-size: 34px; }
.tb.tbd { background: var(--surface-3); color: var(--dim); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 48px 0 16px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding-top: 32px; } }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy .h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.02em; margin: 12px 0 20px; }
.hero-copy .lede { font-size: 18px; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats b { display: block; font: 600 28px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hero-stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Feature scoreboard (home + lists): the moment. Team colours live here. */
.board { --c1: #888; --c2: #888; position: relative; overflow: hidden; }
.board::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50% 100%); }
.board-top { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); min-width: 0; }
.board-top > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.board-top > span:last-child { white-space: nowrap; }
.board-body { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 32px 24px 24px; }
.board-team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.board-team .name { font: 600 22px/1.1 var(--font-display); letter-spacing: .01em; }
.board-team .sub { font-size: 12px; color: var(--dim); margin-top: -8px; }
.board-score { display: flex; align-items: center; gap: 16px; font: 600 80px/0.9 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.board-score .sep { color: var(--dim); font-size: 36px; font-weight: 500; }
.board-score .lose { color: var(--dim); }
.board-map { position: relative; margin: 0 20px 20px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.board-map .ms { font: 600 36px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.board-map .ms.r { text-align: right; }
.board-map .mid { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.4; }
.board-map .mid b { display: block; color: var(--text); font: 600 14px/1.3 var(--font-body); }
.hill { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--accent-text); }
.hill i { width: 7px; height: 7px; border-radius: 1.5px; background: currentColor; transform: rotate(45deg); animation: breathe 2s var(--ease) infinite; }
.progress { position: relative; height: 4px; background: var(--surface-3); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress span { position: absolute; top: 0; bottom: 0; transition: width .6s linear; }
.progress .p1 { left: 0; background: var(--c1); }
.progress .p2 { right: 0; background: var(--c2); }
.pause-banner { position: relative; margin: 0 20px 20px; display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--warn-ink); font-size: 14px; font-weight: 500; }
.pause-banner svg { flex: none; width: 16px; height: 16px; }
[data-tick] { display: inline-block; }
.score-bump { animation: roll .36s var(--ease); }
@keyframes roll { from { transform: translateY(-0.18em); opacity: .25; color: var(--accent-text); } }
@media (max-width: 560px) {
  .board-body { gap: 8px; padding: 24px 12px 20px; }
  .board-score { font-size: 56px; gap: 8px; }
  .board-team .name { font-size: 17px; }
  .board-map .ms { font-size: 28px; }
}

/* Countdown */
.countdown { display: flex; gap: 8px; }
.countdown div { min-width: 60px; padding: 8px 4px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.countdown b { display: block; font: 600 28px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 4px; font-size: 11px; color: var(--dim); }

/* ---------- Match rows ---------- */
.match-list { display: flex; flex-direction: column; }
.day-head { display: flex; align-items: center; gap: 12px; margin: 24px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.day-head:first-child { margin-top: 0; }
.day-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mrow { --c1: #777; --c2: #777; position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) 96px minmax(0, 1fr) 152px; align-items: center; gap: 16px; min-height: 68px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; transition: border-color .15s var(--ease), background .15s var(--ease); }
.mrow:hover { border-color: var(--line-2); background: var(--surface-2); }
.mrow .time { font-size: 12px; color: var(--dim); line-height: 1.3; }
.mrow .time b { display: block; color: var(--text); font: 600 18px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.mrow .team { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 500; }
.mrow .team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .team.r { flex-direction: row-reverse; text-align: right; }
.mrow .team.lose { color: var(--dim); }
.mrow .score { display: flex; justify-content: center; align-items: center; gap: 8px; font: 600 28px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mrow .score .lose { color: var(--dim); }
.mrow .score .vs { font: 500 12px/1 var(--font-body); color: var(--dim); }
.mrow .info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: 12px; color: var(--dim); line-height: 1.35; min-width: 0; }
.mrow .info > div { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .info .live-map { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.mrow.is-live { border-color: color-mix(in srgb, var(--live) 40%, transparent); }
@media (max-width: 760px) {
  .mrow { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); grid-template-areas: 'time time time' 'a s b' 'info info info'; gap: 8px 12px; }
  .mrow .time { grid-area: time; display: flex; gap: 8px; align-items: baseline; }
  .mrow .time b { display: inline; font-size: 13px; }
  .mrow .team:first-of-type { grid-area: a; } .mrow .score { grid-area: s; font-size: 24px; } .mrow .team.r { grid-area: b; }
  .mrow .info { grid-area: info; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; }
  .mrow .team { font-size: 14px; gap: 8px; }
}

/* compact match card (home grid) */
.mcard { --c1: #777; --c2: #777; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.mcard .line { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.mcard .line .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .line .sc { font: 600 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mcard .line.lose { color: var(--dim); }
.mcard .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 500 12px/1 var(--font-body); color: var(--dim); height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s var(--ease); }
table.t tbody tr:hover { background: var(--surface-2); }
table.t .n { text-align: right; font-variant-numeric: tabular-nums; }
table.t .rank { width: 48px; font: 600 17px/1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
table.t .team-cell { display: flex; align-items: center; gap: 12px; font-weight: 500; }
table.t .pts { font: 600 18px/1 var(--font-display); color: var(--text); }
.form { display: inline-flex; gap: 4px; }
.form i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; font: 500 10px/1 var(--font-body); font-style: normal; background: var(--surface-3); }
.form i.W { color: var(--good); } .form i.L { color: var(--bad-ink); }
table.t.compact td { height: 44px; padding: 0 12px; }
table.t.compact th { height: 36px; padding: 0 12px; }

/* ---------- Team cards ---------- */
.team-card { --c: #777; padding: 0; display: flex; flex-direction: column; min-height: 220px; }
.team-card .wash { display: none; }
.team-card .stripe { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.team-card .top { position: relative; display: flex; align-items: center; gap: 16px; padding: 24px 20px 16px; }
.team-card .name { font: 600 24px/1.05 var(--font-display); }
.team-card .city { font-size: 13px; color: var(--muted); margin-top: 4px; }
.team-card .roster { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 0 20px 20px; }
.team-card .roster span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; font-size: 13px; }
.team-card .roster span.unc { border-style: dashed; color: var(--muted); }
.team-card .foot { position: relative; margin-top: auto; display: flex; gap: 8px; align-items: center; height: 48px; padding: 0 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.team-hero { --c: #777; position: relative; padding: 40px 0 32px; overflow: hidden; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.team-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.team-hero .wrap { position: relative; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.team-hero .h1 { margin: 4px 0 8px; }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 96px; }
.stat b { display: block; font: 600 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.player-card { --c: #777; position: relative; padding: 0; display: flex; flex-direction: column; gap: 0; min-height: 160px; }
.player-card .tag { font: 600 26px/1 var(--font-display); }
.player-card .real { font-size: 13px; color: var(--muted); margin-top: 4px; }
.player-card .avatar { width: 56px; height: 56px; border-radius: 12px; background: var(--ph-bg); display: grid; place-items: center; font: 600 22px/1 var(--font-display); color: var(--dim); overflow: hidden; }
.player-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); z-index: 2; }

/* ---------- Transfers ---------- */
.tr-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 60px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tr-row:last-child { border-bottom: 0; }
.tr-row .date { font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--dim); }
.tr-row .who { font-weight: 600; }
.tr-move { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.tr-move svg { width: 14px; height: 14px; color: var(--dim); }
@media (max-width: 560px) { .tr-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Meta / loadouts ---------- */
.loadout { --c: var(--accent); padding: 0; }
.loadout .lh { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; }
.loadout .weapon { font: 600 26px/1 var(--font-display); }
.loadout .by { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.tier { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font: 600 18px/1 var(--font-display); background: var(--accent-soft); color: var(--accent-text); flex: none; }
.tier.A { background: var(--surface-3); color: var(--text); }
.tier.B { background: var(--surface-2); color: var(--dim); }
.att { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 0; }
.att li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.att li span { font-size: 12px; color: var(--dim); }
.att li b { font-weight: 500; }
.loadout .lf { display: flex; gap: 8px; align-items: center; height: 44px; padding: 0 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* ---------- Media ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed .poster { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background-size: cover; background-position: center; }
.embed .poster::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); transition: background .2s var(--ease); }
.embed .poster:hover::after { background: rgba(0, 0, 0, .12); }
.play { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .24); display: grid; place-items: center; color: #fff; }
.play svg { width: 20px; height: 20px; margin-left: 2px; }
.clip-card .cap { padding: 12px 16px; display: flex; gap: 8px; align-items: center; }
.clip-card .cap b { font-weight: 500; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.stream-row:last-child { border-bottom: 0; }
.plat { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.plat svg { width: 16px; height: 16px; }
.plat.twitch { color: #a970ff; } .plat.youtube { color: #ff4e45; } .plat.kick { color: #3fcf12; } .plat.x { color: var(--text); }

/* event timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 16px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .ts { color: var(--dim); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.timeline .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--dim); }
.timeline .dot.restart, .timeline .dot.pause, .timeline .dot.remake { background: var(--warn); }
.timeline .dot.map_end, .timeline .dot.match_status { background: var(--good); }
.timeline .dot.map_start, .timeline .dot.resume { background: var(--info); }
.timeline .sc { font: 600 15px/1.3 var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); }

/* maps list */
.maps { display: grid; gap: 8px; }
.map-row { --c1: #777; --c2: #777; display: grid; grid-template-columns: 32px minmax(0, 1fr) 64px 20px 64px; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.map-row .no { font: 600 18px/1 var(--font-display); color: var(--dim); }
.map-row .mn b { display: block; font-weight: 500; font-size: 14px; }
.map-row .mn span { font-size: 12px; color: var(--muted); }
.map-row .s { font: 600 22px/1 var(--font-display); text-align: center; font-variant-numeric: tabular-nums; }
.map-row .s.lose { color: var(--dim); }
.map-row .s.w1, .map-row .s.w2 { color: var(--text); }
.map-row .x { text-align: center; color: var(--dim); font-size: 12px; }
.map-row.live { border-color: color-mix(in srgb, var(--live) 40%, transparent); }
.map-row.paused { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.map-row.upcoming { opacity: .6; }

/* vote */
.vote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote button { --c: #777; position: relative; overflow: hidden; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .15s var(--ease); }
.vote button:hover { border-color: var(--c); }
.vote button[disabled] { cursor: default; }
.vote-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; margin-top: 12px; background: var(--surface-3); }
.vote-bar span { transition: width .5s var(--ease); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: 13px; }
.footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer p { line-height: 1.6; }
.footer a { transition: color .15s var(--ease); }
.footer a:hover { color: var(--text); }
.footer .cols { display: flex; gap: 48px; margin-left: auto; flex-wrap: wrap; }
.footer .cols div { display: flex; flex-direction: column; gap: 8px; }
.footer .cols b { color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 4px; }

/* code (api docs) */
pre.code { margin: 0; padding: 16px 20px; background: #07080d; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; font: 13px/1.6 var(--font-mono); color: #c9d1e3; }
code.k { font: 12px var(--font-mono); padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--text); }
.endpoint { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.endpoint:last-child { border-bottom: 0; }
.method { font: 500 11px/1 var(--font-mono); padding: 4px 0; text-align: center; border-radius: 4px; background: var(--surface-3); color: var(--good); }
.method.post { color: var(--info); }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan .price { font: 600 40px/1 var(--font-display); }
.plan ul { margin: 4px 0 0; padding: 0 0 0 16px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* skeleton, toast, notices */
.skel { background: var(--surface); border-radius: 12px; animation: skel 1.4s var(--ease) infinite; }
@keyframes skel { 50% { opacity: .55; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 500; font-size: 14px; animation: rise .3s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.notice { display: flex; gap: 12px; padding: 12px 16px; border-radius: 10px; font-size: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.notice svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--warn); }
.notice.info svg { color: var(--info); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Player headshots ---------- */
.ph { position: relative; height: 212px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--ph-bg)); border-bottom: 1px solid var(--line); }
.ph img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.ph-init { align-self: center; font: 600 56px/1 var(--font-display); color: var(--dim); opacity: .5; }
.ph-note { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--muted); }
.pc-body { padding: 16px 20px; }
.ph-hero { width: 152px; height: 152px; border-radius: 24px; border: 1px solid var(--line-2); }
.ph-hero .ph-init { font-size: 48px; }
.ph-hero .ph-note { left: 8px; top: 8px; }

/* ---------- Transfers (detail) ---------- */
.tr-face { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--ph-bg); font: 600 13px/1 var(--font-display); color: var(--dim); }
.tr-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tr-row[hidden] { display: none; }
.fa-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; font-size: 13px; }
.fa-chip img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; object-position: top; }
.fa-chip:not(:has(img)) { padding-left: 12px; }
.io-card { border-top: 3px solid var(--c); }
.io-card .h3 { font-size: 16px; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.io > div { padding: 12px 16px; }
.io > div + div { border-left: 1px solid var(--line); }
.io h4 { margin: 0 0 8px; font: 500 12px/1 var(--font-body); }
.io-in { color: var(--good); } .io-out { color: var(--bad-ink); }
.io ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.io li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.io li .dim { font-size: 12px; }
.io .fa { color: var(--warn-ink); font-size: 12px; font-weight: 500; }
.io-stay { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Ads ---------- */
.ad-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 auto; max-width: 100%; }
.ad-slot:empty { display: none; }
.ad-slot img { border-radius: 8px; display: block; }
.ad-leaderboard, .ad-infeed { margin: 8px auto 24px; }
.ad-footer { margin: 12px auto 32px; }
.ad-label { align-self: flex-end; font-size: 11px; color: var(--dim); }
.ad-house { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 16px 20px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; transition: border-color .15s var(--ease); }
.ad-house:hover { border-color: var(--dim); }
.ad-house .ad-label { width: 100%; align-self: auto; }
.ad-house b { color: var(--text); font-weight: 600; font-size: 15px; }
.ad-house .link { margin-left: auto; color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.ad-house .link svg { width: 14px; height: 14px; }
.ad-sidebar .ad-house { flex-direction: column; align-items: flex-start; min-height: 200px; justify-content: center; }
.ad-sidebar .ad-house .link { margin-left: 0; margin-top: 8px; }
.ad-text { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ad-text img { width: 56px; height: 56px; object-fit: contain; }
.ad-text > span:not(.btn) { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.ad-text b { color: var(--text); font-size: 15px; }
.fld { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fld .input, .fld .select { width: 100%; font-weight: 400; color: var(--text); font-size: 15px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* transfer rows inside narrow sidebars: stack instead of three columns */
aside .tr-row { grid-template-columns: 1fr auto; grid-template-areas: 'main badge' 'date date'; gap: 4px 12px; padding: 12px 20px; }
aside .tr-row > .date { grid-area: date; padding-left: 52px; }
aside .tr-row > .row:first-of-type { grid-area: main; }
aside .tr-row > .row:last-child { grid-area: badge; align-self: start; }
aside .tr-row .tr-move { font-size: 12px; }

/* theme toggle */
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

/* ===================== Match centre ===================== */
.mhero { --c1: #777; --c2: #777; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mh-bg { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50% 100%); }
.mh-inner { position: relative; padding-top: 32px; padding-bottom: 32px; }
.mh-event { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; margin-bottom: 8px; }
.mh-event img { width: 48px; height: 48px; object-fit: contain; }
.mh-event b { display: block; font: 600 15px/1.3 var(--font-body); }
.mh-event span { font-size: 13px; color: var(--muted); }
.mh-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 16px 0 24px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; transition: opacity .2s var(--ease); }
.mh-team.lose { opacity: .55; }
.mh-name { font: 600 clamp(20px, 2.8vw, 32px)/1.05 var(--font-display); }
.mh-sub { font-size: 13px; color: var(--dim); margin-top: -4px; }
.mh-center { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 180px; }
.mh-score { display: flex; align-items: center; gap: 16px; font: 600 clamp(64px, 9vw, 112px)/.85 var(--font-display); letter-spacing: -0.02em; }
.mh-score i { font-style: normal; color: var(--dim); font-size: .45em; font-weight: 500; }
.mh-score .lose { color: var(--dim); }
.mh-when { font: 600 22px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown.sm div { min-width: 48px; padding: 8px 4px; }
.countdown.sm b { font-size: 22px; }
.mh-live { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--hi); }
.mh-live .ms { font: 600 clamp(36px, 5vw, 56px)/1 var(--font-display); }
.mh-live .ms.r { text-align: right; }
.mh-live .mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13px; color: var(--muted); min-width: 0; }
.mh-live .mid b { color: var(--text); font: 600 15px/1.3 var(--font-body); }
.mh-live .progress { width: min(320px, 50vw); }
.mode-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--muted); }
.mode-ic svg { width: 16px; height: 16px; }
.mc-wrap { padding-top: 24px; }
.mc-sec { margin-bottom: 24px; }
.mapcards { --c1: #777; --c2: #777; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.mapcard { position: relative; scroll-snap-align: start; min-height: 172px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; overflow: hidden; color: var(--text); background-size: cover; background-position: center; }
.mapcard > * { position: relative; z-index: 1; }
.mapcard.has-img { color: #fff; border-color: transparent; }
.mapcard.upcoming { border-style: dashed; border-color: var(--line-2); background: transparent; }
.mapcard.upcoming.has-img { opacity: .7; }
.mapcard.live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live); }
.mapcard.paused { border-color: var(--warn); }
.mc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.mc-top .dia { color: var(--accent); }
.mapcard.has-img .mc-top { color: rgba(255, 255, 255, .8); }
.mc-top .mode-ic { color: inherit; width: 16px; height: 16px; }
.mc-top .mode-ic svg { width: 14px; height: 14px; }
.mc-name { font: 600 24px/1.1 var(--font-display); margin-top: 4px; }
.mc-score { display: flex; align-items: center; gap: 8px; font: 600 36px/1 var(--font-display); font-variant-numeric: tabular-nums; margin-top: auto; }
.mc-score i { font-style: normal; color: var(--dim); font-size: 22px; }
.mc-score .lose { color: var(--dim); }
.mapcard.has-img .mc-score i, .mapcard.has-img .mc-score .lose, .mapcard.has-img .mc-score .dim { color: rgba(255, 255, 255, .5); }
.mc-score .w1, .mc-score .w2 { color: inherit; }
.mc-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.mapcard.has-img .mc-foot { color: rgba(255, 255, 255, .85); }
.mc-foot .dim { color: var(--dim); }
.mapcard.has-img .mc-foot .dim { color: rgba(255, 255, 255, .6); }
.mc-foot .chip { margin-left: auto; height: 20px; }
.mapcard.has-img .mc-foot .chip { background: rgba(0, 0, 0, .45); color: #fff; }
.mapcard.has-img .badge-live { background: var(--live); color: #fff; }
.mapcard.has-img .badge-live .live-dot { background: #fff; }
.sb-tabs { margin-bottom: 12px; }
table.sb td.n, table.sb th.n { text-align: right; }
table.sb .sb-team td { background: var(--surface-2); font-weight: 600; font-size: 13px; height: 40px; }
.sb-player { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.sb-player .tr-face { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.lineups > div { padding: 16px 20px; }
.lineups > div + div { border-left: 1px solid var(--line); }
.lu-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lu { --c: #777; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 72px; font-size: 13px; }
.lu-ph { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font: 600 18px/1 var(--font-display); color: var(--dim); background: var(--ph-bg); box-shadow: inset 0 -2px 0 var(--c); }
.lu-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 720px) {
  .mh-inner { padding-top: 24px; padding-bottom: 24px; }
  .mh-grid { gap: 8px; }
  .mh-center { min-width: 0; }
  .mh-team .tb.xl { width: 64px; height: 64px; border-radius: 16px; }
  .mh-name { font-size: 17px; }
  .mh-sub { display: none; }
  .mh-score { gap: 8px; font-size: 56px; }
  .mh-event img { width: 40px; height: 40px; }
  .mh-live { padding: 12px; gap: 8px; }
  .mh-live .ms { font-size: 30px; }
  .mh-live .mid b { font-size: 13px; }
  .countdown.sm div { min-width: 40px; }
  .countdown.sm b { font-size: 18px; }
  .mapcards { grid-auto-columns: 76%; }
  .lineups { grid-template-columns: 1fr; }
  .lineups > div + div { border-left: 0; border-top: 1px solid var(--line); }
  table.sb th, table.sb td { padding: 0 8px; }
}
.lead-card { --c: #777; display: flex; align-items: center; gap: 16px; padding: 16px; }
.lead-card .eyebrow { font-size: 12px; }
.lead-card b { display: block; font: 600 24px/1.1 var(--font-display); margin-top: 4px; }
.lead-v { font: 600 20px/1 var(--font-display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.lead-ph { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: var(--ph-bg); box-shadow: inset 0 -2px 0 var(--c); }
.lead-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
th.sortable { cursor: pointer; user-select: none; transition: color .15s var(--ease); }
th.sortable:hover, th.sortable.active { color: var(--text); }
td.sorted { color: var(--text); font-weight: 600; }
table.lb td { white-space: nowrap; }

/* never let wide tables or strips push the page wider than the screen */
.split > *, .stack > *, .grid > * { min-width: 0; }
html, body { max-width: 100%; }

/* ---------- Points race ---------- */
table.points-t tr.cutline td { border-bottom: 1px dashed var(--accent); }
.race-chart { width: 100%; height: auto; color: var(--dim); }
.race-line polyline { transition: opacity .15s var(--ease); }
.race-chart:hover .race-line { opacity: .25; }
.race-chart .race-line:hover { opacity: 1; }

/* ---------- Season timeline ---------- */
.season-stage { margin-bottom: 32px; }
.season-stage .h2 { margin-bottom: 12px; font-size: 22px; color: var(--muted); }
.season-list { display: grid; gap: 8px; }
.season-ev { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.season-ev.big { border-color: var(--line-2); }
.season-ev.done { opacity: .6; }
.season-ev.is-next { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.se-date { width: 56px; flex: none; text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.se-date b { display: block; font: 600 28px/1 var(--font-display); }
.se-date span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.se-logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.se-body { flex: 1; min-width: 0; }
.se-name { font: 600 20px/1.15 var(--font-display); margin: 4px 0 2px; }
.season-ev.big .se-name { font-size: 24px; }
.se-arrow { color: var(--dim); }
.se-arrow svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .se-logo, .se-arrow { display: none; } .season-ev { padding: 12px 16px; gap: 12px; } }

/* ---------- Event page ---------- */
.ev-hero { position: relative; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ev-hero-in { display: flex; align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.ev-logo { width: 112px; height: 112px; object-fit: contain; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0 16px; font-size: 14px; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; }
.guide p, .guide li { color: var(--muted); font-size: 15px; line-height: 1.6; }
.guide h4 { margin: 20px 0 8px; font: 600 15px/1.3 var(--font-body); }
.guide ul { padding-left: 20px; }

/* ---------- Veto & map pool ---------- */
.veto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.veto-label { font: 500 12px/1 var(--font-body); color: var(--dim); margin-right: 4px; }
.vchip { --tc: var(--dim); display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.vchip b { font-size: 11px; font-weight: 500; color: var(--dim); }
.vchip.ban { opacity: .7; } .vchip.ban span:last-child { text-decoration: line-through; text-decoration-color: var(--bad-ink); }
.vchip.pick { border-color: color-mix(in srgb, var(--tc) 55%, transparent); }
.vchip .mode-ic { width: 16px; height: 16px; } .vchip .mode-ic svg { width: 13px; height: 13px; }
.vdec { padding-left: 8px; font-size: 12px; color: var(--accent-text); font-weight: 500; }
.pool-card { padding: 0; }
.pool-art { min-height: 136px; border-radius: 0; border: 0; justify-content: flex-end; }
.wr { display: inline-block; min-width: 56px; padding: 2px 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--good) 22%, transparent) var(--w), transparent var(--w)); }

/* ---------- Brackets ---------- */
.bk-section { margin-bottom: 32px; }
.bk-section .h3 { margin-bottom: 12px; }
.bk-scroll { overflow-x: auto; padding-bottom: 8px; }
.bk-rounds { display: flex; gap: 24px; min-width: max-content; }
.bk-round { display: flex; flex-direction: column; width: 232px; }
.bk-rname { font: 500 12px/1 var(--font-body); color: var(--dim); margin-bottom: 12px; min-height: 12px; }
.bk-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; flex: 1; }
.bk-match { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s var(--ease); }
.bk-match:hover { border-color: var(--line-2); }
.bk-match.live { border-color: color-mix(in srgb, var(--live) 55%, transparent); }
.bk-round:not(:last-child) .bk-match::after { content: ''; position: absolute; right: -25px; top: 50%; width: 24px; height: 1px; background: var(--line-2); }
.bk-meta { display: flex; justify-content: space-between; padding: 4px 12px; font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; color: var(--dim); border-bottom: 1px solid var(--line); }
.bk-team { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; font-weight: 500; font-size: 13px; }
.bk-team + .bk-team { border-top: 1px solid var(--line); }
.bk-team .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-team .seed { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.bk-team b { font: 600 17px/1 var(--font-display); min-width: 16px; text-align: right; }
.bk-team.win b { color: var(--accent-text); }
.bk-team.lose { color: var(--dim); }
.bk-note { padding: 4px 12px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Accounts / Pick'em ---------- */
.wrap.narrow { max-width: 980px; }
#acct-btn svg { width: 16px; height: 16px; }
@media (max-width: 640px) { #acct-name { display: none; } }
.err { color: var(--bad-ink); min-height: 1em; margin: 8px 0 0; }
.al-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 8px; margin: 8px 0; }
.al-team { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; }
.al-team input { accent-color: var(--accent); }
.pick-card { padding: 0; }
.pk-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pk-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px; }
.pk-vs { color: var(--dim); font: 500 12px/1 var(--font-body); }
.pk-team { --c: #777; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font: 600 17px/1 var(--font-display); color: var(--text); transition: border-color .15s var(--ease), background .15s var(--ease); }
.pk-team:hover:not([disabled]) { border-color: var(--c); }
.pk-team.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: var(--surface-3); }
.pk-team[disabled] { cursor: default; opacity: .8; }
.pk-score { display: flex; align-items: center; gap: 12px; padding: 0 16px 16px; }
.pk-score .select { height: 32px; }
tr.me td { background: var(--accent-soft); }

/* ---------- Live kill feed ---------- */
.kf-list { list-style: none; margin: 0; padding: 4px 0; max-height: 304px; overflow: hidden; }
.kf-list li { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 20px; font-size: 14px; animation: kfin .4s var(--ease); }
.kf-list li + li { border-top: 1px solid var(--line); }
.kf-x { display: inline-grid; color: var(--dim); }
.kf-x svg { width: 12px; height: 12px; }
@keyframes kfin { from { opacity: 0; transform: translateY(-6px); } }
.kf-kd { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; }
.kf-p { --c: #888; font-size: 12px; height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 2px 0 0 var(--c); }
.kf-p b { font-variant-numeric: tabular-nums; font-weight: 600; }

.share-bar { display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 12px; }
.mhero + .wrap .share-bar { margin-top: 16px; }
table.heatmap td.n { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Map schematics (hardpoint rotation + bombsites) ---------- */
.schem { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.schem-card { padding: 0; }
.schem-body { padding: 16px 20px 20px; }
.schem-panel { padding: 16px 20px 0; }
.schem-panel .schem-tabs { margin-bottom: 12px; }
.pool-card .card-head { border-bottom: 0; }

/* ---------- Audit fixes ---------- */
.stream-poster { background-color: #0b0d14; background-size: cover; background-position: center; }
.stream-poster .play { transition: transform .15s var(--ease); }
.stream-poster:hover .play { transform: scale(1.06); }
.poster-cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
.poster-cap b { font-weight: 600; font-size: 14px; }
.poster-cap > span:last-child:not(.badge-live) { margin-left: auto; color: rgba(255, 255, 255, .8); }
.stream-poster .badge-live { background: var(--live); color: #fff; }
.stream-poster .badge-live .live-dot { background: #fff; }
[data-embed]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* comfortable tap targets on touch screens */
@media (pointer: coarse), (max-width: 640px) {
  a.who, table.t td a, .tr-move a { display: inline-flex; align-items: center; min-height: 32px; min-width: 32px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
}
small { font-size: 12px; }

/* Header + ticker on phones: tighter, evenly spaced, nothing wasted */
.topbar-actions .btn.sm { width: 40px; height: 40px; padding: 0; }
#acct-btn { width: auto !important; padding: 0 12px !important; }
@media (max-width: 640px) {
  .topbar .wrap { height: 56px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav { inset: 56px 0 auto 0; }
  #acct-btn { width: 40px !important; padding: 0 !important; }
  .ticker .wrap { height: 76px; padding-right: 0; }
  .ticker-label { display: none; }
  .tick-item { min-width: 136px; padding: 0 12px; }
  .tick-item:first-child { padding-left: 0; }
  .tick-item .t { gap: 8px; font-size: 13px; }
  .tick-item .t .tb { width: 18px; height: 18px; border-radius: 4px; }
}
/* hover styles only where there is a real pointer (no stuck grey buttons after a tap) */
@media (hover: none) {
  .btn.ghost:hover, .nav a:hover, .tick-item:hover { background: transparent; }
  .btn.ghost:hover { color: var(--muted); }
}
/* chips rendered as buttons (admin pickers): no browser default border */
button.chip { border: 1px solid var(--line-2); font-family: inherit; cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
button.chip:hover { border-color: var(--dim); color: var(--text); }

/* ===================== Motion layer ===================== */
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Live backlight: team colours glow behind each side while a match is live */
.board.is-live::after, .mhero.is-live .mh-glow {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 70% at 18% 55%, color-mix(in srgb, var(--c1) 34%, transparent), transparent 70%),
    radial-gradient(42% 70% at 82% 55%, color-mix(in srgb, var(--c2) 34%, transparent), transparent 70%);
  animation: backlight 4.5s var(--ease) infinite alternate;
}
.mhero .mh-glow { position: absolute; inset: 0; }
.board > *:not(.beam), .mhero .mh-inner { position: relative; z-index: 1; }
:root[data-theme="light"] .board.is-live::after, :root[data-theme="light"] .mhero.is-live .mh-glow { opacity: .55; animation-name: backlight-light; }
@keyframes backlight { from { opacity: .55; } to { opacity: 1; } }
@keyframes backlight-light { from { opacity: .3; } to { opacity: .6; } }

/* Border beam: a short light travelling round the live scoreboard */
.board .beam { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--beam), transparent 0 78%, color-mix(in srgb, var(--c1) 80%, #fff) 86%, var(--accent) 92%, color-mix(in srgb, var(--c2) 80%, #fff) 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 5s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }

/* Scroll reveal (only applied by JS, so content never hides without it) */
.rv { opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.rv.in { opacity: 1; transform: none; filter: none; }

/* Spotlight: cards brighten under the pointer */
@media (hover: hover) and (pointer: fine) {
  a.card, .team-card, .mrow, .bk-match { background-image: radial-gradient(260px circle at var(--mx, -500px) var(--my, -500px), color-mix(in srgb, var(--text) 6%, transparent), transparent 70%); }
  .team-card:hover .tb { box-shadow: 0 0 0 1px var(--line-2), 0 8px 32px -6px color-mix(in srgb, var(--c) 70%, transparent); }
  .team-card .tb { transition: box-shadow .3s var(--ease); }
}

/* Primary button sheen */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
@media (hover: hover) { .btn.primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); } }

/* Hero grid */
.hero { overflow: hidden; }
.hero-grid-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: radial-gradient(70% 80% at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 30% 40%, #000, transparent 75%); }
.hero > .wrap { position: relative; }

/* Live ticker items: a thin live bar */
.tick-item.is-live { box-shadow: inset 0 2px 0 var(--live); }

/* Map cards lift slightly when live */
.mapcard.live { animation: none; }
.mapcard { transition: transform .25s var(--ease), border-color .25s var(--ease); }
@media (hover: hover) { .mapcard:hover { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
  .board .beam { display: none; }
}

/* ---------- Install as an app ---------- */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); animation: rise .4s var(--ease); }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex: none; }
.install-bar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.35; }
.install-bar b { color: var(--text); font-size: 14px; font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.install-sheet { width: min(420px, calc(100% - 32px)); margin: auto auto 16px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--text); padding: 24px; }
.install-sheet::backdrop { background: rgba(7, 8, 13, .6); }
.install-sheet ol { margin: 16px 0 20px; padding-left: 20px; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.install-sheet ol b { color: var(--text); }
.install-sheet svg { vertical-align: -3px; color: var(--info); }
#install-btn svg { width: 18px; height: 18px; }

/* ---------- Win probability ---------- */
.winbar { margin-top: 12px; }
.board-wp { padding: 0 20px 20px; }
.board-wp .winbar { margin-top: 0; }
.wb-row { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.wb-row b { color: var(--text); font: 600 16px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.wb-mid { flex: 1; text-align: center; color: var(--dim); }
.wb-track { display: flex; height: 6px; margin-top: 6px; border-radius: 6px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.wb-track span { transition: width .8s var(--ease); }
.wb-series { margin-top: 6px; font-size: 11px; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.mclock { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

/* ---------- Momentum chart ---------- */
.mo-tabs { margin-bottom: 12px; }
.momentum { width: 100%; height: auto; display: block; }
.momentum .mo-zero { stroke: var(--line-2); stroke-width: 1; }
.momentum .mo-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.momentum .mo-lbl { fill: var(--dim); font: 500 11px var(--font-body); }
.momentum .mo-team { fill: var(--muted); font: 600 12px var(--font-body); }

/* ---------- Compare players ---------- */
.cmp-picks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 16px; }
.cmp-picks .select { width: 100%; height: 44px; }
.cmp-vs { font: 600 18px var(--font-display); color: var(--dim); }
.cmp-heads { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.cmp-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; text-align: center; }
.cmp-head + .cmp-head { border-left: 1px solid var(--line); }
.cmp-head b { font: 600 26px/1 var(--font-display); }
.cmp-head .lu-ph { width: 88px; height: 88px; box-shadow: inset 0 -3px 0 var(--c); }
.cmp-row { display: grid; grid-template-columns: 88px 1fr 88px; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.cmp-row:last-of-type { border-bottom: 0; }
.cmp-v { font: 600 22px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); }
.cmp-v.r { text-align: right; }
.cmp-v.win { color: var(--text); }
.cmp-label { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cmp-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface-3); }
.cmp-bar span { transition: width .6s var(--ease); }
@media (max-width: 560px) { .cmp-row { grid-template-columns: 64px 1fr 64px; gap: 8px; padding: 12px; } .cmp-v { font-size: 18px; } .cmp-picks { grid-template-columns: 1fr; } .cmp-vs { text-align: center; } }
/* Pick'em prize + leagues */
.prize { display: flex; flex-direction: column; gap: 4px; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prize b { font: 600 20px/1.2 var(--font-display); }
.lg-forms { display: grid; gap: 8px; border-top: 1px solid var(--line); }
.lg-forms .input { height: 32px; }

/* ---------- Match page: maps header + phone carousel ---------- */
.section-head .share-bar { margin: 0 0 0 auto; }
@media (max-width: 720px) {
  .mapcards { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; grid-auto-columns: 78%; scrollbar-width: none; }
  .mapcards::-webkit-scrollbar { display: none; }
  .mc-wrap { padding-top: 20px; }
  .section-head .share-bar .btn.ghost { display: none; }
}

/* =====================================================================
   Friendlier layer: bolder colour, chunky tactile buttons, playful motion
   ===================================================================== */
:root { --teal: #2dd4bf; --violet: #8b7cf6; --amber-deep: #b97d00; --r-card: 18px; }
:root[data-theme="light"] { --teal: #0d9488; --violet: #6d5ce0; --amber-deep: #a86e00; }

/* Page transition on every route change */
#app > * { animation: page-in .38s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* Chunky, tactile buttons */
.btn { border-radius: 12px; font-weight: 600; }
.btn.primary { box-shadow: 0 3px 0 var(--amber-deep), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .15s var(--ease); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--amber-deep), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 999px; }
.btn.lg.primary { padding: 0 28px; }

/* Rounder, liftier cards */
.card { border-radius: var(--r-card); }
@media (hover: hover) and (pointer: fine) {
  a.card, .mrow, .team-card, .hiw-card { transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease); }
  a.card:hover, .mrow:hover, .team-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); }
}
/* touch: a quick squash on press */
@media (hover: none) { a.card:active, .mrow:active, .pk-team:active, .tick-item:active, .hiw-card:active { transform: scale(.98); transition: transform .1s var(--ease); } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent);
  background: radial-gradient(40% 55% at 78% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(35% 50% at 12% 20%, color-mix(in srgb, var(--violet) 20%, transparent), transparent 70%),
              radial-gradient(30% 40% at 50% 100%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%); }
:root[data-theme="light"] .hero::before { opacity: .7; }
.hero-copy .h1 { font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -0.02em; }
.hero-copy .h1 .hl { color: var(--accent-text); position: relative; white-space: nowrap; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-pills span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; }
.pill-dot.live { background: var(--live); animation: breathe 2s var(--ease) infinite; } .pill-dot.amber { background: var(--accent); } .pill-dot.teal { background: var(--teal); }
.hero-visual { position: relative; }
.hero-visual > .board, .hero-visual > a.board { animation: float-in .7s .1s var(--ease) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(24px) rotate(-1deg); } }
.fbadge { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55); font-size: 12px; color: var(--muted); white-space: nowrap; animation: bob 5s var(--ease) infinite alternate, float-in .7s var(--ease) both; }
.fbadge b { color: var(--text); font: 700 20px/1 var(--font-display); }
.fbadge svg { color: var(--live); }
.fbadge.b1 { top: -18px; left: 24px; animation-delay: 0s, .35s; }
.fbadge.b2 { bottom: -22px; right: 20px; animation-delay: 1.2s, .5s; }
.fbadge.b2 b { color: var(--accent-text); }
.fbadge.b3 { top: 44%; left: -28px; animation-delay: .6s, .65s; color: var(--text); font-weight: 600; }
.fbadge.b3 .dia { color: var(--accent); }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@media (max-width: 980px) { .fbadge.b3 { display: none; } .fbadge.b1 { left: 12px; } .fbadge.b2 { right: 12px; } .hero { padding-top: 40px; } }

/* ---------- How it works ---------- */
.hiw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.hiw-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 24px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); }
.hiw-card::before { content: ''; position: absolute; inset: 0; z-index: 0; opacity: .9; pointer-events: none; }
.hiw-card > * { position: relative; z-index: 1; }
.hiw-card.c-live::before { background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--live) 22%, transparent), transparent 70%); }
.hiw-card.c-pick::before { background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.hiw-card.c-app::before { background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--teal) 24%, transparent), transparent 70%); }
.hiw-art { width: 100%; max-width: 260px; height: auto; align-self: center; margin-bottom: 8px; transition: transform .4s var(--ease); }
.hiw-card:hover .hiw-art { transform: translateY(-4px) scale(1.03); }
.hiw-num { font: 700 34px var(--font-display); fill: #fff; } .hiw-num.dim { fill: #7a8296; }
.hiw-live { font: 700 10px var(--font-body); fill: #fff; letter-spacing: .04em; }
.hiw-pts { font: 700 11px var(--font-body); fill: #2ee67a; }
.hiw-card b { font: 700 24px/1.1 var(--font-display); }
.hiw-card > span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.hiw-card em { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; color: var(--text); }
.hiw-card em svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hiw-card:hover em svg { transform: translateX(4px); }
@media (max-width: 900px) { .hiw { grid-template-columns: 1fr; } .hiw-card { flex-direction: column; } }

/* ---------- Pick'em: friendlier pick cards ---------- */
.pick-card { border-radius: 20px; }
.pk-team { border-radius: 14px; height: 60px; transition: transform .15s var(--ease), border-color .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.pk-team.on { animation: pop .35s var(--ease); box-shadow: inset 0 0 0 1px var(--c), 0 10px 26px -12px var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface-2)); }
@keyframes pop { 40% { transform: scale(1.04); } }

/* ---------- Sticky promo bar (signed-out, phones) ---------- */
.promo-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-radius: 18px;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ff7a1a)); color: var(--accent-ink); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); animation: rise .45s var(--ease); }
.promo-bar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.promo-bar span { font-size: 11px; font-weight: 600; opacity: .8; }
.promo-bar b { font: 700 19px/1.15 var(--font-display); }
.promo-bar small { font-size: 11px; opacity: .8; line-height: 1.35; }
.promo-bar .btn.primary { background: var(--accent-ink); color: #fff; box-shadow: 0 3px 0 #000; flex: none; }
.promo-bar .btn.ghost { color: var(--accent-ink); }

/* confetti layer */
.confetti-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 200; }

/* the install bar a touch friendlier too */
.install-bar { border-radius: 18px; }

@media (prefers-reduced-motion: reduce) { .fbadge, .hero-visual > .board { animation: none !important; } }


/* =====================================================================
   Colour system for watching + reading stats
   navy base (calm, long viewing) · amber = tap · red = live · cyan = data/selection
   green/coral = good/bad numbers · gold = winners and #1
   ===================================================================== */
:root {
  --bg-0: #060a14; --bg: #0a0f1c; --bg-2: #080c17;
  --surface: #111827; --surface-2: #162033; --surface-3: #1c2740;
  --line: rgba(148, 163, 196, 0.12); --line-2: rgba(148, 163, 196, 0.2);
  --text: #f1f5fb; --muted: #a2b1c9; --dim: #73839e;
  --ph-bg: #162033; --logo-tile: #1c2740; --topbar: rgba(8, 12, 23, 0.86);
  --data: #38bdf8; --data-soft: rgba(56, 189, 248, 0.14); --data-ink: #7dd3fc;
  --good: #22d38a; --bad-ink: #ff7a85; --gold: #ffd166; --silver: #c9d3e3; --bronze: #e0a372;
}
:root[data-theme="light"] {
  --bg-0: #ffffff; --bg: #f3f6fb; --bg-2: #ffffff;
  --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #e9eef6;
  --line: rgba(15, 23, 42, 0.08); --line-2: rgba(15, 23, 42, 0.14);
  --text: #0b1324; --muted: #44506a; --dim: #66728c; --ph-bg: #e4eaf3;
  --data: #0284c7; --data-soft: rgba(2, 132, 199, 0.1); --data-ink: #0369a1;
  --good: #15a364; --bad-ink: #d6334a; --gold: #c58a00; --silver: #7d8aa0; --bronze: #b06a35;
}
body { background: var(--bg); }

/* hero: complementary blue + amber light, no decorations on the type */
.hero::before {
  background: radial-gradient(45% 60% at 80% 42%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
              radial-gradient(45% 60% at 8% 25%, rgba(59, 130, 246, .22), transparent 70%) !important; }
:root[data-theme="light"] .hero::before { opacity: .55; }
.hero-copy .h1 .hl { color: var(--accent-text); }
.pill-dot.teal { background: var(--data); }
.hiw-card.c-app::before { background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--data) 22%, transparent), transparent 70%); }

/* selection = data cyan */
.tabs a.active, .tabs button.active { background: var(--data-soft); color: var(--data-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--data) 35%, transparent); }
.nav a.active { color: var(--text); background: var(--surface-3); }
th.sortable.active { color: var(--data-ink); }
td.sorted { color: var(--data-ink); font-weight: 600; }
:focus-visible { outline-color: var(--data); }

/* good/bad numbers */
.kd { font-weight: 600; font-variant-numeric: tabular-nums; }
.kd.up { color: var(--good); } .kd.down { color: var(--bad-ink); }

/* winners and podiums */
table.t tbody tr:nth-child(1) .rank { color: var(--gold); }
table.t tbody tr:nth-child(2) .rank { color: var(--silver); }
table.t tbody tr:nth-child(3) .rank { color: var(--bronze); }
table.t tbody tr:nth-child(1) .rank::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 1.5px; transform: rotate(45deg) translateY(-2px); background: var(--gold); }
.bk-team.win b, .lead-v, .mc-score .w1, .mc-score .w2 { color: var(--gold); }
.cmp-v.win { color: var(--good); }
.wb-row b { color: var(--text); }
.chip.accent { color: var(--accent-text); }
/* phones: no floating badges over content; leave room for the bottom bars */
@media (max-width: 980px) { .fbadge { display: none; } }
body:has(.promo-bar), body:has(.install-bar:not([hidden])) { padding-bottom: 110px; }

/* =====================================================================
   Direction A · Stadium Night: near-black + electric green actions
   green = every action · red = live · blue = data/selection · gold = winners
   ===================================================================== */
:root {
  --bg-0: #060609; --bg: #0b0b10; --bg-2: #08080c;
  --surface: #15151c; --surface-2: #1b1b24; --surface-3: #23232e;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7; --muted: #a0a0ad; --dim: #75757f;
  --ph-bg: #1b1b24; --logo-tile: #1d1d26; --topbar: rgba(11, 11, 16, 0.88);
  --accent: #2ee67a; --accent-text: #4ff08f; --accent-ink: #04210f; --accent-soft: rgba(46, 230, 122, 0.12);
  --live: #ff3b5c; --live-ink: #ff6b83; --live-soft: rgba(255, 59, 92, 0.14);
  --data: #5aa9ff; --data-soft: rgba(90, 169, 255, 0.14); --data-ink: #8cc2ff;
  --good: #3ddc84; --bad-ink: #ff7a85; --gold: #ffcf4a; --silver: #c9ccd6; --bronze: #e0a372;
  --teal: #5aa9ff; --violet: #5aa9ff;
}
:root[data-theme="light"] {
  --bg-0: #ffffff; --bg: #f5f6f8; --bg-2: #ffffff;
  --surface: #ffffff; --surface-2: #f8f9fa; --surface-3: #eceef2;
  --line: rgba(13, 13, 18, 0.08); --line-2: rgba(13, 13, 18, 0.14);
  --text: #0d0d12; --muted: #4a4d57; --dim: #6b6e78;
  --ph-bg: #e9ebef; --logo-tile: #1d1d26; --topbar: rgba(255, 255, 255, 0.9);
  --accent: #22d36b; --accent-text: #0f8a45; --accent-ink: #03200e; --accent-soft: rgba(34, 211, 107, 0.14);
  --live: #e3173f; --live-ink: #c40f33; --live-soft: rgba(227, 23, 63, 0.08);
  --data: #1d6fe0; --data-soft: rgba(29, 111, 224, 0.1); --data-ink: #1a5fc2;
  --good: #12a150; --bad-ink: #d6334a; --gold: #b88200; --silver: #7c8190; --bronze: #ad6a36;
}

/* Flat pill buttons: one bright action colour, quiet secondaries, instant press feedback */
.btn { border-radius: 999px; border: 0; background: var(--surface-3); box-shadow: none; font-weight: 600; }
.btn:hover { background: color-mix(in srgb, var(--surface-3) 80%, var(--text)); }
.btn.primary, .btn.primary:active { background: var(--accent); color: var(--accent-ink); box-shadow: none; font-weight: 700; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn:active, .btn.primary:active { transform: scale(.97); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { height: 52px; padding: 0 24px; }
.btn.primary::after { display: none; }

/* hero: quiet light, no decoration on type */
.hero::before { background: radial-gradient(45% 60% at 80% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
  radial-gradient(40% 55% at 10% 20%, color-mix(in srgb, var(--data) 12%, transparent), transparent 70%) !important; }
.hero-copy .h1 .hl { color: var(--accent-text); }
.hero-pills span { background: var(--surface); }

/* promo bar in the action colour */
.promo-bar { background: var(--accent); color: var(--accent-ink); }
.promo-bar .btn.primary { background: var(--accent-ink); color: #fff; }
.promo-bar .btn.primary:hover { background: #000; }

/* cards a touch rounder, borders quieter */
.card, .hiw-card { border-radius: 20px; }

/* ---------- Phones: scores first ---------- */
.upnext { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.upnext .un-t { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext .un-t small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.upnext .btn { height: 36px; padding: 0 16px; flex: none; }
@media (max-width: 980px) {
  .hero { padding: 20px 0 24px; }
  .hero-visual { order: -1; }
  .hero-copy .h1 { font-size: 36px; margin: 8px 0 12px; }
  .hero-copy .eyebrow, .hero-pills, .hero-stats { display: none; }
  .hero-copy .lede { font-size: 15px; }
  .hero-actions { margin-top: 20px; display: grid; grid-template-columns: 1.3fr 1fr; }
  .hero-actions .btn { width: 100%; padding: 0 12px; }
}
.hero-visual:has(.upnext) .fbadge.b2 { bottom: 100px; }

/* =====================================================================
   v3 · Gaming app shell (sidebar · content · rail), banners, pick buttons
   ===================================================================== */
:root {
  --bg: #0e0f13; --bg-2: #0b0c10; --surface: #17181f; --surface-2: #1d1f27; --surface-3: #262833;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.12);
  --text: #f6f7f9; --muted: #a4a7b3; --dim: #767a87;
  --accent: #2ee67a; --accent-text: #52f095; --accent-ink: #032a12; --accent-soft: rgba(46, 230, 122, 0.12);
  --violet: #7c5cff; --topbar: rgba(14, 15, 19, 0.92);
  --shadow-1: none; --r: 16px;
}
:root[data-theme="light"] {
  --bg: #eef0f4; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f6f7f9; --surface-3: #eceef2;
  --line: rgba(14, 16, 24, 0.07); --line-2: rgba(14, 16, 24, 0.13);
  --text: #0e1018; --muted: #4c5160; --dim: #6c7180;
  --accent: #1fd16b; --accent-text: #0b7a3a; --accent-ink: #032a12; --accent-soft: rgba(31, 209, 107, 0.14);
  --topbar: rgba(255, 255, 255, 0.94);
  --shadow-1: 0 1px 2px rgba(14, 16, 24, .05), 0 6px 18px -10px rgba(14, 16, 24, .18);
}
.card, .mrow, .fcard, .upnext, .qchip { box-shadow: var(--shadow-1); }
:root[data-theme="light"] .card, :root[data-theme="light"] .mrow, :root[data-theme="light"] .fcard { border-color: transparent; }

/* ---- top bar ---- */
.topbar .wrap { max-width: none; height: 60px; padding: 0 20px; }
.topbar .nav { display: none; }
.topbar-actions { gap: 8px; }
#acct-btn { height: 36px; padding: 0 14px !important; width: auto !important; }
.join-btn { height: 36px; padding: 0 16px; }
.join-btn[hidden] { display: none; }

/* ---- shell ---- */
.shell { display: block; }
.sidenav { display: none; }
@media (min-width: 1100px) {
  .shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .sidenav { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding: 16px 12px 20px; border-right: 1px solid var(--line); background: var(--bg-2); scrollbar-width: thin; }
  .btn.menu-btn { display: none !important; }
}
.sidenav .nav { position: static; transform: none; display: flex; flex-direction: column; gap: 2px; padding: 0; background: none; border: 0; overflow: visible; }
.sidenav .nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--muted); box-shadow: none; }
.sidenav .nav a svg { width: 18px; height: 18px; flex: none; }
.sidenav .nav a:hover { background: var(--surface-2); color: var(--text); }
.sidenav .nav a.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.sidenav .nav a.active svg { color: var(--accent); }
.sidenav .nav .live-dot { margin-left: auto; }
.nav-new { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-ink); }
.nav-group { padding: 16px 12px 6px; font-size: 12px; font-weight: 600; color: var(--dim); }
.side-promo { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #6d28ff, #c026d3 60%, #ff4d8d); }
.side-promo b { font: 700 20px/1.1 var(--font-display); }
.side-promo span { font-size: 12px; opacity: .85; }
.side-promo em { margin-top: 8px; align-self: flex-start; font-style: normal; font-weight: 700; font-size: 13px; height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; background: #fff; color: #2a0b52; }
/* phones/tablets: the sidebar becomes a drawer */
@media (max-width: 1099px) {
  .sidenav:has(.nav.open) { display: flex; flex-direction: column; gap: 12px; position: fixed; inset: 60px 0 0 0; z-index: 70; padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; animation: page-in .25s var(--ease); }
  .sidenav .nav.open { display: flex; }
  .side-promo { margin-top: 8px; }
}
.shell-main { min-width: 0; }
.shell-main .wrap { max-width: 1320px; padding: 0 24px; }
@media (max-width: 640px) { .shell-main .wrap { padding: 0 16px; } }
main { padding-top: 24px; }

/* bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--topbar); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--dim); background: none; border: 0; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active svg { color: var(--accent); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .install-bar, .promo-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  #acct-btn, .theme-btn { display: none; }
  .ticker { display: none !important; }
}

/* ---- home layout ---- */
.home { padding-bottom: 40px; }
.home-grid { display: grid; gap: 24px; }
@media (min-width: 1200px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .rail { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
}
.home-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .home-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.home .section-head { margin-bottom: 12px; }
.home .h2 { font-size: 24px; }

/* banners */
.banners { position: relative; }
.bn-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.bn-track::-webkit-scrollbar { display: none; }
.bn { scroll-snap-align: start; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; min-height: 260px; padding: 32px 36px; color: #fff; isolation: isolate; }
.bn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 85% 50%, rgba(255, 255, 255, .22), transparent 70%); }
.bn-match { background: linear-gradient(115deg, color-mix(in srgb, var(--c1) 85%, #000) 0%, color-mix(in srgb, var(--c1) 40%, #0e0f13) 45%, color-mix(in srgb, var(--c2) 45%, #0e0f13) 60%, color-mix(in srgb, var(--c2) 80%, #000) 100%); }
.bn-pick { background: linear-gradient(120deg, #4c1d95 0%, #7c3aed 40%, #c026d3 75%, #ff4d8d 100%); }
.bn-app { background: linear-gradient(120deg, #0b3b8f 0%, #2563eb 45%, #06b6d4 100%); }
.bn-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: relative; z-index: 1; }
.bn-kicker { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.bn-kicker .live-dot { background: #ff4d6a; }
.bn-title { font: 700 clamp(30px, 4vw, 48px)/1 var(--font-display); letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.bn-title i { font-style: normal; opacity: .7; font-size: .7em; margin: 0 4px; }
.bn-sub { max-width: 44ch; font-size: 15px; line-height: 1.45; opacity: .9; }
.bn-cta { margin-top: 8px; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0e1018; font-weight: 700; font-size: 15px; transition: transform .15s var(--ease); }
.bn:hover .bn-cta { transform: translateY(-1px); }
.bn-art { position: relative; height: 200px; }
.bn-logo { position: absolute; width: 132px; height: 132px; border-radius: 30px; background: rgba(14, 15, 19, .55); backdrop-filter: blur(8px); display: grid; place-items: center; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .55); animation: bob 5s var(--ease) infinite alternate; }
.bn-logo img { width: 72%; height: 72%; object-fit: contain; }
.bn-logo.l1 { left: 8%; top: 12px; transform: rotate(-6deg); }
.bn-logo.l2 { right: 6%; bottom: 0; animation-delay: 1.4s; }
.bn-sticker { position: absolute; right: 18%; top: 10px; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: #ffe14d; color: #3b0764; font: 700 56px/1 var(--font-display); transform: rotate(-10deg); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); animation: bob 4s var(--ease) infinite alternate; }
.bn-sticker.s2 { right: 52%; top: 104px; width: 84px; height: 84px; font-size: 36px; background: var(--accent); color: var(--accent-ink); transform: rotate(8deg); animation-delay: 1s; }
.bn-phone { position: absolute; right: 20%; top: 0; width: 120px; height: 210px; border-radius: 26px; border: 3px solid rgba(255, 255, 255, .55); background: rgba(8, 12, 30, .45); display: flex; flex-direction: column; gap: 10px; padding: 34px 12px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5); }
.bn-phone i { height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .9); animation: notif 3.6s var(--ease) infinite; }
.bn-phone i:nth-child(1) { background: var(--accent); }
.bn-phone i:nth-child(2) { opacity: .75; animation-delay: .4s; } .bn-phone i:nth-child(3) { opacity: .5; animation-delay: .8s; }
@keyframes notif { 0%, 20% { transform: translateX(16px); opacity: 0; } 35%, 100% { transform: none; } }
.bn-dots { position: absolute; left: 36px; bottom: 16px; display: flex; gap: 6px; }
.bn-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s var(--ease), background .3s var(--ease); }
.bn-dots button.on { width: 24px; background: #fff; }
@media (max-width: 700px) {
  .bn { grid-template-columns: 1fr; min-height: 230px; padding: 22px 20px 40px; }
  .bn-art { position: absolute; right: -24px; top: 18px; width: 52%; height: 160px; opacity: .55; z-index: 0; }
  .bn-logo { width: 84px; height: 84px; border-radius: 20px; }
  .bn-sticker { width: 88px; height: 88px; font-size: 38px; right: 10%; } .bn-sticker.s2 { display: none; }
  .bn-phone { right: 14%; width: 84px; height: 150px; padding: 24px 8px; } .bn-phone i { height: 24px; }
  .bn-title { font-size: 32px; }
  .bn-dots { left: 20px; bottom: 14px; }
  .banners { margin: 0 -4px; }
}

/* quick chips */
.chiprow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: -12px; }
.chiprow::-webkit-scrollbar { display: none; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); transition: background .15s var(--ease), border-color .15s var(--ease); }
.qchip:hover { border-color: var(--line-2); background: var(--surface-2); }
.qchip.live { color: var(--live-ink); }

/* featured match cards with pick buttons */
.fscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.fscroll::-webkit-scrollbar { display: none; }
.fcard { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.fcard.is-live { border-color: color-mix(in srgb, var(--live) 45%, transparent); }
@media (hover: hover) { .fcard:hover { transform: translateY(-3px); border-color: var(--line-2); } }
.fc-main { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; }
.fc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.fc-ev { margin-left: auto; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.fc-team { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.fc-team span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-team b { font: 700 22px/1 var(--font-display); }
.fc-team.lose { color: var(--dim); }
.fc-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; }
.fc-label { grid-column: 1 / -1; font-size: 11px; color: var(--dim); padding: 0 4px; }
.fc-btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 46px; padding: 0 12px; border-radius: 12px; background: var(--surface-3); border: 1px solid transparent; overflow: hidden; transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease); }
.fc-btn::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c); }
.fc-btn span { font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.fc-btn b { font: 700 18px/1 var(--font-display); color: var(--text); }
.fc-btn:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-3)); }
.fc-btn:active { transform: scale(.97); }

/* pick of the day strip */
.pstrip { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 18px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #1e1b4b 0%, #4c1d95 45%, #7c3aed 80%, #c026d3 100%); position: relative; overflow: hidden; }
.pstrip::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 70%); }
.ps-tag { flex: none; font: 700 13px/1 var(--font-body); padding: 8px 12px; border-radius: 999px; background: #ffe14d; color: #3b0764; transform: rotate(-3deg); }
.ps-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ps-body b { font: 700 20px/1.15 var(--font-display); }
.ps-body small { font-size: 13px; opacity: .85; }
.pstrip .btn { flex: none; position: relative; z-index: 1; }
@media (max-width: 560px) { .pstrip { flex-wrap: wrap; } .pstrip .btn { width: 100%; } }

/* pick slip */
.slip .card-head { border-bottom: 0; }
.slip-body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 20px 20px; text-align: center; }
.slip-body > b { font: 700 20px/1.2 var(--font-display); }
.slip-body > span { font-size: 13px; color: var(--muted); max-width: 30ch; }
.slip-body .btn { width: 100%; margin-top: 4px; }
.slip-art { position: relative; width: 120px; height: 72px; margin: 4px 0 8px; }
.slip-art i { position: absolute; left: 50%; width: 88px; height: 52px; margin-left: -44px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); }
.slip-art i:nth-child(1) { top: 16px; transform: rotate(-10deg) translateX(-14px); }
.slip-art i:nth-child(2) { top: 12px; transform: rotate(8deg) translateX(14px); }
.slip-art i:nth-child(3) { top: 6px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #06b6d4)); border: 0; }

/* other pages: sidebars stay in view so there is no dead space beside long columns */
@media (min-width: 1100px) {
  .split > aside { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; }
  .split > aside::-webkit-scrollbar { display: none; }
}

/* light mode polish */
:root[data-theme="light"] .sidenav { background: #fff; }
:root[data-theme="light"] .tick-item:hover, :root[data-theme="light"] .ticker { background: #fff; }
:root[data-theme="light"] .qchip { border-color: transparent; }
:root[data-theme="light"] .fc-btn { background: var(--surface-2); border-color: var(--line); }
:root[data-theme="light"] .slip-art i { background: var(--surface-3); }
:root[data-theme="light"] .bn-logo { background: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: reduce) { .bn-logo, .bn-sticker, .bn-phone i { animation: none !important; } }
.topbar-actions .join-btn { width: auto !important; padding: 0 16px !important; }
.fc-team span { flex: initial; }
.fc-team > span:not(.tb) { flex: 1; }
.rail > *, .home-main > * { flex: none; }

/* ===================== Engagement UI ===================== */
/* For you */
.foryou { display: flex; flex-direction: column; gap: 12px; }
.fy-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fy-head > div:first-child { display: flex; flex-direction: column; }
.fy-head > div b { font: 700 26px/1.1 var(--font-display); }
.fy-stat { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fy-stat b { font: 700 22px/1 var(--font-display); }
.fy-stat small { font-size: 11px; color: var(--muted); }
.fy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .fy-grid { grid-template-columns: 1fr; } }
.fy-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; }
.fy-card > b { font: 700 20px/1.15 var(--font-display); }
.fy-card small { font-size: 12px; color: var(--muted); }
.fy-k { font-size: 12px; font-weight: 600; color: var(--dim); }
.fy-card.due { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.fy-match { display: flex; align-items: center; gap: 10px; }
.fy-match b { flex: 1; text-align: center; font: 700 20px var(--font-display); }
.fy-recent { display: flex; gap: 6px; }
.fy-recent i, .res-dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.fy-recent i.ok, .res-dot.ok { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.fy-recent i.no, .res-dot.no { background: color-mix(in srgb, var(--bad-ink) 16%, transparent); color: var(--bad-ink); }
.streak-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-3); font-size: 13px; font-weight: 700; }
.streak-chip svg { width: 14px; height: 14px; color: var(--dim); }
.streak-chip.hot { background: linear-gradient(120deg, #ff7a1a, #ff3b5c); color: #fff; }
.streak-chip.hot svg { color: #ffe14d; animation: breathe 1.2s var(--ease) infinite; }

/* Pick 3 */
.p3 { border-radius: 22px; padding: 16px; background: linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #7c3aed); color: #fff; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.p3::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none; }
.p3-head { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.p3-head > div { flex: 1; display: flex; flex-direction: column; }
.p3-head b { font: 700 22px/1.1 var(--font-display); }
.p3-head small { font-size: 12px; opacity: .8; }
.p3-head .btn { background: #fff; color: #1e1b4b; }
.p3-tag { flex: none; font: 700 14px/1 var(--font-body); padding: 10px 12px; border-radius: 12px; background: #ffe14d; color: #3b0764; transform: rotate(-4deg); }
.p3-row { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, .22); position: relative; z-index: 1; }
.p3-when { font-size: 11px; opacity: .75; padding-left: 4px; }
.p3-btns { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.p3-btns > i { font-style: normal; font-size: 12px; opacity: .6; }
.p3-btn { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); min-width: 0; }
.p3-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p3-btn:hover { background: rgba(255, 255, 255, .18); }
.p3-btn:active { transform: scale(.97); }
.p3-btn.on { background: var(--accent); color: var(--accent-ink); border-color: #fff; animation: pop .35s var(--ease); }

/* Props */
.props { display: grid; gap: 10px; }
.prop { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.card .prop { background: var(--surface-2); box-shadow: none; }
.prop-ph { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none; background: var(--ph-bg); box-shadow: inset 0 -3px 0 var(--c); display: grid; place-items: center; font: 700 16px var(--font-display); color: var(--dim); }
.prop-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.prop-q { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.prop-q b { font-size: 15px; color: var(--text); } .prop-q b small { color: var(--dim); font-weight: 500; }
.prop-q strong { color: var(--text); font: 700 16px var(--font-display); }
.prop-q em { font-style: normal; font-size: 12px; color: var(--dim); } .prop-q em.good { color: var(--good); } .prop-q em.bad { color: var(--bad-ink); }
.prop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: none; }
.prop-btns button { height: 42px; min-width: 70px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s var(--ease), transform .12s var(--ease); }
.prop-btns button:hover:not([disabled]) { border-color: var(--accent); }
.prop-btns button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.prop-btns button[disabled] { opacity: .5; cursor: default; }
@media (max-width: 520px) { .prop { flex-wrap: wrap; } .prop-btns { width: 100%; } }

/* Reactions + crowd meter */
.reactbar { position: relative; margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 16px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.reactbar.hot { border-color: color-mix(in srgb, var(--live) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 14%, transparent); }
.rb-cheer { display: flex; gap: 8px; }
.rb-cheer button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.rb-meter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rb-label, .rb-val { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rb-val { min-width: 78px; }
.rb-track { flex: 1; height: 10px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.rb-fill { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--accent), #ffe14d, #ff3b5c); transition: width .8s var(--ease); }
.rb-split { grid-column: 1 / -1; order: 3; display: flex; height: 4px; border-radius: 4px; overflow: hidden; gap: 2px; }
.rb-split i { transition: width .8s var(--ease); }
.rb-emoji { display: flex; gap: 6px; }
.rb-emoji button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 20px; cursor: pointer; }
[data-react].pop { animation: pop .35s var(--ease); }
.rx-float { position: absolute; bottom: 100%; font-size: 26px; pointer-events: none; animation: rx-up 1.6s var(--ease) forwards; z-index: 3; }
@keyframes rx-up { from { transform: translateY(10px) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translateY(-10px) scale(1.1); } to { transform: translateY(-120px) scale(.9); opacity: 0; } }
@media (max-width: 760px) { .reactbar { grid-template-columns: 1fr; } .rb-cheer button { flex: 1; justify-content: center; } .rb-emoji { justify-content: space-between; } .rb-emoji button { flex: 1; } }

/* Fan profile + badges */
.fan-hero { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, var(--surface)), var(--surface) 70%); border: 1px solid var(--line); flex-wrap: wrap; }
.fan-hero .h1 { margin: 0 0 6px; }
.fan-av { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 34px var(--font-display); box-shadow: 0 16px 32px -14px var(--c); }
.fan-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.fan-stats div { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fan-stats b { display: block; font: 700 28px/1 var(--font-display); }
.fan-stats span { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .fan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.badge b { font-size: 14px; } .badge small { font-size: 11px; color: var(--dim); line-height: 1.35; }
.bd-medal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: var(--surface-3); color: var(--dim); }
.bd-medal svg { width: 26px; height: 26px; }
.badge:not(.on) { opacity: .75; }
.badge.on .bd-medal { color: #fff; background: linear-gradient(135deg, #ffcf4a, #ff7a1a); box-shadow: 0 10px 22px -10px #ff7a1a; }
.badge.on.b-perfect .bd-medal, .badge.on.b-unstoppable .bd-medal { background: linear-gradient(135deg, #7c3aed, #c026d3); box-shadow: 0 10px 22px -10px #c026d3; }
.badge.on.b-called .bd-medal, .badge.on.b-sniper .bd-medal { background: linear-gradient(135deg, var(--accent), #06b6d4); color: var(--accent-ink); }
.badge.on.b-squad .bd-medal, .badge.on.b-crowd .bd-medal { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.bd-prog { width: 80%; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.bd-prog i { display: block; height: 100%; background: var(--accent); }
.bn-dots button { position: relative; }
.bn-dots button::before { content: ''; position: absolute; inset: -14px -6px; }

/* =====================================================================
   Type: Teko (display, scores) + Inter (UI text), self-hosted
   ===================================================================== */
:root { --font-display: 'Teko', 'Arial Narrow', system-ui, sans-serif; --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.h1, .h2, .hero-copy .h1, .bn-title, .fy-head > div b, .p3-head b, .ps-body b, .hiw-card b, .slip-body > b, .fan-hero .h1 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.h1 { font-size: clamp(38px, 5vw, 60px); line-height: .9; }
.h2, .home .h2 { font-size: 26px; line-height: 1; }
.section-head .h2 { font-size: 26px; }
.board-score, .mh-score, .ms, .mc-score, .sc, .fc-team b, .fc-btn b, .cmp-v, .fan-stats b, .fy-stat b, .stat b, .hero-stats b, .countdown b, table.t .pts, table.t .rank, .tick-item .s, .mrow .score { font-family: var(--font-display); font-weight: 600; }
.board-team .name, .mh-name, .mc-name, .team-card .name, .loadout .weapon, .player-card .tag, .se-name, .tn { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.brand { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; font-size: 26px; }
.card-head .h3 { font-family: var(--font-body); font-weight: 600; text-transform: none; }

/* =====================================================================
   Banners v2: player cut-outs over team-colour panels, broadcast type
   ===================================================================== */
.bn { display: block; min-height: 300px; padding: 0; color: #fff; background: #08080c; }
.bn::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 100% at 50% -25%, rgba(255, 255, 255, .2), transparent 60%), #08080c; }
.bn::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .3; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.bn-match { container-type: inline-size; background: #06070a; }
/* stage: team-colour light pools behind each side, thin broadcast slashes, split team bar along the bottom */
.bn-match::before { background:
    linear-gradient(90deg, var(--g1) 0 50%, var(--g2) 50% 100%) bottom / 100% 3px no-repeat,
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7) 100%),
    linear-gradient(108deg, transparent 25.6%, color-mix(in srgb, var(--g1) 85%, transparent) 25.6% 25.9%, transparent 25.9% 27.2%, color-mix(in srgb, var(--g1) 35%, transparent) 27.2% 29.4%, transparent 29.4%),
    linear-gradient(108deg, transparent 70.6%, color-mix(in srgb, var(--g2) 35%, transparent) 70.6% 72.8%, transparent 72.8% 74.1%, color-mix(in srgb, var(--g2) 85%, transparent) 74.1% 74.4%, transparent 74.4%),
    radial-gradient(26% 60% at 15% 40%, color-mix(in srgb, var(--g1) 75%, transparent), transparent 75%),
    radial-gradient(26% 60% at 85% 40%, color-mix(in srgb, var(--g2) 75%, transparent), transparent 75%),
    radial-gradient(48% 110% at 10% 75%, color-mix(in srgb, var(--g1) 55%, transparent), transparent 72%),
    radial-gradient(48% 110% at 90% 75%, color-mix(in srgb, var(--g2) 55%, transparent), transparent 72%),
    radial-gradient(50% 80% at 50% -10%, rgba(255, 255, 255, .1), transparent 70%),
    #06070a; }
.bn-match::after { opacity: .18; }
.bn-pl { position: absolute; bottom: 0; height: 96%; width: auto; z-index: 0; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); pointer-events: none; }
.bn-pl.a1 { left: -1%; } .bn-pl.a2 { left: 14%; height: 82%; filter: brightness(.65) drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); z-index: -1; }
.bn-wm { position: absolute; top: 46%; width: min(17cqw, 190px); aspect-ratio: 1; object-fit: contain; z-index: 0; pointer-events: none; transform: translateY(-50%); }
.bn-wm.a { left: 5cqw; filter: drop-shadow(0 0 36px var(--g1)) drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.bn-wm.b { right: 5cqw; filter: drop-shadow(0 0 36px var(--g2)) drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.bn-pl.b1 { right: -1%; } .bn-pl.b2 { right: 14%; height: 82%; filter: brightness(.65) drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); z-index: -1; }
.bn-mid { position: relative; z-index: 2; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 24px 40px; text-align: center; }
.bn-kicker { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16); font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.bn-kicker .dia { color: var(--accent); width: 7px; height: 7px; }
.bn-logos { display: flex; align-items: center; gap: 16px; }
.bn-logos img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.bn-logos span { font: 600 26px/1 var(--font-display); color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.bn-title { font: 600 clamp(40px, 5.4vw, 72px)/.85 var(--font-display); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.bn-title i { font-style: normal; color: rgba(255, 255, 255, .5); font-size: .6em; margin: 0 .15em; }
.bn-match .bn-title { font-size: min(72px, calc(54cqw / (var(--n, 16) * .47))); white-space: nowrap; }
.bn-sub { font: 500 14px/1.45 var(--font-body); color: rgba(255, 255, 255, .86); max-width: 46ch; }
.bn-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.bn-ctas .btn { height: 46px; padding: 0 22px; font-size: 15px; }
.bn .btn.bn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.bn .btn.bn-ghost:hover { background: rgba(255, 255, 255, .2); }
/* Pick'em + alerts slides: copy left, product visual right */
.bn-pick, .bn-app { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 36px 40px 44px; }
.bn-pick::before { background: radial-gradient(70% 120% at 85% 40%, rgba(192, 38, 211, .55), transparent 65%), linear-gradient(120deg, #1a0b3d 0%, #3b1488 55%, #6d28d9 100%); }
.bn-app::before { background: radial-gradient(70% 120% at 85% 40%, rgba(6, 182, 212, .45), transparent 65%), linear-gradient(120deg, #07152e 0%, #0b2f73 55%, #1d4ed8 100%); }
.bn-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bn-copy .bn-ctas { justify-content: flex-start; }
.bn-copy .bn-title { font-size: clamp(38px, 4.6vw, 60px); }
.bn-mock { justify-self: center; width: min(320px, 100%); padding: 16px; border-radius: 20px; background: rgba(10, 8, 25, .72); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); transform: rotate(-3deg); animation: bob 5s var(--ease) infinite alternate; }
.bm-k { font: 600 11px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.bm-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 10px 0; }
.bm-row > i { font-style: normal; font: 600 18px var(--font-display); color: rgba(255, 255, 255, .45); }
.bm-t { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 2px solid transparent; }
.bm-t.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.bm-t img { width: 40px; height: 40px; object-fit: contain; } .bm-t b { font: 600 20px/1 var(--font-display); }
.bm-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.bm-foot b { font: 600 20px/1 var(--font-display); color: #fff; } .bm-foot em { margin-left: auto; font-style: normal; font-weight: 700; color: #ffe14d; }
.bn-notifs { justify-self: center; width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; }
.bnf { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(8, 14, 32, .72); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .7); animation: notif 4.5s var(--ease) infinite; }
.bnf:nth-child(2) { animation-delay: .5s; margin-left: 18px; } .bnf:nth-child(3) { animation-delay: 1s; margin-left: 36px; }
.bnf-i { width: 34px; height: 34px; flex: none; border-radius: 10px; background: #1d1d26; display: grid; place-items: center; }
.bnf-i img { width: 24px; height: 24px; object-fit: contain; } .bnf-i.dot { background: var(--accent); }
.bnf b { display: block; font-size: 13px; } .bnf small { font-size: 12px; color: rgba(255, 255, 255, .7); }
.bn-dots { left: 50%; transform: translateX(-50%); bottom: 14px; }
@media (max-width: 760px) {
  .bn, .bn-mid { min-height: 340px; }
  .bn-pl { height: 70%; opacity: .55; } .bn-pl.a2, .bn-pl.b2 { display: none; }
  /* phone match banner: players (or team logos) fill the two top corners, text sits underneath on dark */
  .bn-match, .bn-match .bn-mid { min-height: 0; }
  .bn-match .bn-pl { top: 0; bottom: auto; height: min(200px, 50cqw); opacity: 1; filter: none; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 92%); mask-image: linear-gradient(180deg, #000 50%, transparent 92%); }
  .bn-match .bn-pl.a1 { left: -4cqw; } .bn-match .bn-pl.b1 { right: -4cqw; }
  .bn-match .bn-wm { top: 28px; width: min(112px, 28cqw); transform: none; }
  .bn-match .bn-wm.a { left: 9cqw; } .bn-match .bn-wm.b { right: 9cqw; }
  .bn-match .bn-mid { justify-content: flex-start; padding: min(150px, 38cqw) 16px 40px; gap: 10px; }
  .bn-match .bn-logos { display: none; }
  .bn-mid { justify-content: flex-end; padding: 24px 16px 40px; }
  .bn-match .bn-title { font-size: min(44px, calc((100cqw - 48px) / (var(--n, 16) * .47))); } .bn-copy .bn-title { white-space: normal; }
  .bn-logos img { width: 40px; height: 40px; }
  .bn-pick, .bn-app { grid-template-columns: 1fr; padding: 24px 20px 40px; }
  .bn-mock, .bn-notifs { display: none; }
}
:root[data-theme="light"] .bn-logo { background: none; }
@media (prefers-reduced-motion: reduce) { .bn-mock, .bnf { animation: none !important; } }

/* Latest result + season leaders */
.latest { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.latest::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50%); }
.lr-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.lr-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lr-team b { font: 600 24px/1 var(--font-display); text-transform: uppercase; }
.lr-team.lose { opacity: .55; }
.lr-num { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px; font: 600 64px/1 var(--font-display); color: var(--dim); }
.lr-num .win { color: var(--text); } .lr-num i { font-style: normal; font-size: 40px; }
.lr-num small { flex-basis: 100%; text-align: center; font: 500 12px var(--font-body); color: var(--muted); }
.lr-maps { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lr-maps span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); box-shadow: inset 3px 0 0 var(--c1); }
.lr-maps span.w2 { box-shadow: inset 3px 0 0 var(--c2); } .lr-maps em { font-style: normal; font-weight: 700; color: var(--dim); } .lr-maps b { color: var(--text); }
.lr-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .lr-top { grid-template-columns: 1fr; } }
.lr-p { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.lr-p:first-child { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, var(--surface-2)), var(--surface-2) 70%); }
.lr-ph { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: var(--ph-bg); box-shadow: inset 0 -3px 0 var(--c); display: grid; place-items: center; font: 600 16px var(--font-display); color: var(--dim); }
.lr-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lr-p small { display: block; font-size: 11px; font-weight: 600; color: var(--dim); } .lr-p:first-child small { color: var(--gold); }
.lr-p b { display: block; font: 600 22px/1 var(--font-display); text-transform: uppercase; } .lr-p span { font-size: 12px; color: var(--muted); }
.lr-wait { text-align: center; }
.leaders .ld-k { padding: 12px 20px 4px; font-size: 12px; font-weight: 600; color: var(--dim); }
.ld-row { display: grid; grid-template-columns: 24px 32px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 20px; }
.ld-row:hover { background: var(--surface-2); }
.ld-row .rank { font: 600 18px var(--font-display); color: var(--muted); }
.ld-ph { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; background: var(--ph-bg); } .ld-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ld-row small { font-size: 11px; color: var(--dim); } .ld-row em { font-style: normal; font: 600 18px var(--font-display); min-width: 44px; text-align: right; }

/* slim Pick'em nudge on phones: one row above the tab bar, never covers more than a strip */
.promo-bar { left: 12px; right: 12px; gap: 8px; padding: 8px 6px 8px 14px; border-radius: 14px; min-height: 52px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.promo-bar b { font: 600 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-bar small { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-bar .btn.primary { height: 36px; padding: 0 16px; box-shadow: none; }
.promo-bar .btn.ghost { width: 36px; height: 36px; padding: 0; }
/* small phones (320-380px): keep banner text, buttons and section heads on one line each */
.bn-kicker { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) {
  .bn-kicker { font-size: 11px; letter-spacing: .04em; padding: 0 10px; }
  .bn-ctas { flex-wrap: nowrap; gap: 8px; } .bn-ctas .btn { height: 42px; padding: 0 14px; font-size: 14px; }
  .topbar-actions .join-btn { padding: 0 14px !important; font-size: 14px; }
  .topbar .brand { font-size: 22px; } .topbar .brand-mark { width: 24px; height: 24px; }
}
.section-head .link { white-space: nowrap; flex: none; }
.section-head .h2 { min-width: 0; }
@media (max-width: 380px) { .section-head .h2 { font-size: 28px; } }
/* match hero: flush under the top bar, with breathing room above the event line */
main:has(> .mhero:first-child) { padding-top: 0; }
.mhero .mh-inner { padding-top: 28px; padding-bottom: 28px; }
@media (max-width: 760px) { .mhero .mh-inner { padding-top: 20px; padding-bottom: 20px; } }

/* Pick'em props grouped by match */
.prop-group { display: grid; gap: 8px; }
.prop-group + .prop-group { margin-top: 12px; }
.pg-head { display: flex; align-items: baseline; gap: 10px; padding: 0 4px; }
.pg-head b { font: 600 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.pg-head span { font-size: 12px; color: var(--dim); }
.pg-head a { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); }
.pg-head a:hover { color: var(--text); }
