/* ==========================================================================
   NPFL: "Deep Water Broadcast"
   Abyss-navy water, seafoam signal light, buoy-orange flares.
   Angled jersey-plate buttons, yard-line hash marks, broadcast ticker,
   scoreboard numerals (Big Shoulders) and mono stat labels.
   ========================================================================== */
:root {
  --bg: #04101b;
  --bg-2: #071827;
  --panel: #0a1d2e;
  --panel-2: #0f2739;
  --panel-3: #143149;
  --line: #17384f;
  --line-2: #22506c;
  --text: #e6f3fa;
  --muted: #7f9db3;
  --accent: #3ff0c8;          /* seafoam signal */
  --accent-ink: #022a22;      /* text on seafoam */
  --accent-soft: rgba(63, 240, 200, 0.12);
  --flare: #ff6a3d;           /* buoy orange: live, calls to action */
  --blue: var(--accent);      /* older name, kept for inline styles */
  --blue-2: #1d6fd8;          /* logo blue */
  --win: #3ff0a0;
  --loss: #ff5d5d;
  --gold: #ffd166;
  --radius: 4px;
  --slant: 12px;
  --head: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  /* yard-line hash marks, used as dividers */
  --hash: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 22px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 15% -8%, rgba(63, 240, 200, 0.10), transparent 70%),
    radial-gradient(900px 500px at 100% 10%, rgba(29, 111, 216, 0.14), transparent 70%),
    radial-gradient(rgba(127, 157, 179, 0.10) 1px, transparent 1.4px) 0 0 / 26px 26px,
    linear-gradient(180deg, #04101b 0%, #051726 45%, #062238 80%, #072a44 100%);
  background-attachment: fixed;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; }
.muted { color: var(--muted); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 24px;
  background: rgba(4, 16, 27, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 0.95; }
.brand-text b { font-family: var(--head); font-weight: 900; font-size: 30px; letter-spacing: 0.04em; }
.brand-text small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
  background: var(--accent); transform: skewX(-30deg); box-shadow: 0 0 12px rgba(63, 240, 200, 0.6);
}
.nav .nav-discord { margin-left: 12px; color: #fff; }
.nav .nav-discord::after { display: none; }
.nav-toggle { display: none; margin-left: auto; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; font-size: 18px; cursor: pointer; }

/* ---------- Score ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  display: flex; align-items: stretch; height: 36px;
  background: #020a12; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
}
.ticker[hidden] { display: none; }
.ticker-label {
  flex: none; display: flex; align-items: center; padding: 0 22px 0 16px;
  background: var(--flare); color: #fff; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; animation: ticker var(--tk-time, 40s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk-run { display: flex; align-items: center; }
.tk {
  display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 22px;
  background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; white-space: nowrap; color: var(--text);
}
.tk:hover { background: var(--accent-soft); }
.tk em { font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tk em.tk-live { color: var(--flare); }
.tk em.tk-live::before { content: "● "; }
.tk .tbadge { width: 20px; height: 20px; font-size: 8px; }
.tk span { font-weight: 700; letter-spacing: 0.04em; }
.tk b { font-family: var(--head); font-size: 17px; font-weight: 800; color: var(--accent); min-width: 16px; text-align: right; }
.tk i { font-style: normal; color: var(--muted); padding: 0 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.data-banner {
  background: repeating-linear-gradient(-45deg, rgba(255, 209, 102, 0.10) 0 12px, rgba(255, 209, 102, 0.04) 12px 24px);
  border-bottom: 1px solid rgba(255, 209, 102, 0.3);
  color: var(--gold); font-family: var(--mono); font-size: 12px; font-weight: 500; text-align: center; padding: 8px 16px;
}

/* ---------- Buttons, chips: angled "jersey plate" shapes ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--panel-3); border: 0; cursor: pointer; color: var(--text);
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--line-2); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7ff7dc; }
.nav .btn-primary.nav-discord { background: var(--flare); color: #fff; padding: 9px 22px; }
.nav .btn-primary.nav-discord:hover { background: #ff875f; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  padding: 6px 16px; border: 0; background: var(--panel-2); cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.chip:hover { color: var(--text); background: var(--panel-3); }
.chip.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Sections ---------- */
main { counter-reset: section; }
.section { padding: 44px 0 8px; }
.section-head {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 14px;
}
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--hash); border-bottom: 1px solid var(--line-2); }
.section-head h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 900; line-height: 0.9; }
.section-head h2 { font-size: 40px; font-weight: 900; line-height: 0.95; }
.section-head .eyebrow::before { counter-increment: section; content: counter(section, decimal-leading-zero) " // "; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; min-width: 0; padding: 20px 18px 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 120px);
  border: 1px solid var(--line); border-radius: var(--radius);
}
/* seafoam tab on the top-left edge plus a notch on the top-right corner */
.card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 3px; background: var(--accent); }
.card::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); }
.card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; padding-right: 14px; display: flex; align-items: center; gap: 8px; }
.card-link { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-left: auto; white-space: nowrap; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero: a football field under deep water ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 24px; padding: 56px 52px 64px;
  display: flex; align-items: center; gap: 40px;
  background:
    radial-gradient(700px 380px at 80% 50%, rgba(63, 240, 200, 0.16), transparent 65%),
    linear-gradient(120deg, #0b2a3f 0%, #08202f 55%, #061826 100%);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
/* yard lines every 10% with field numbers along the bottom */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(230, 243, 250, 0.07) 0 2px, transparent 2px 10%),
    repeating-linear-gradient(90deg, rgba(230, 243, 250, 0.05) 0 1px, transparent 1px 2%) 0 0 / 100% 14px no-repeat;
}
.hero-field {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: -1;
  display: grid; grid-template-columns: repeat(9, 1fr); padding: 0 5%;
  font-family: var(--head); font-weight: 900; font-size: 30px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(230, 243, 250, 0.16);
}
.hero-field span { text-align: center; transform: translateX(50%); }
.hero-water {
  position: absolute; right: -2%; top: 50%; z-index: -1; transform: translateY(-50%);
  font-family: var(--head); font-weight: 900; font-size: clamp(160px, 26vw, 340px); line-height: 0.8; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 2px rgba(63, 240, 200, 0.10);
  user-select: none; pointer-events: none;
}
.hero-text { flex: 1; min-width: 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.hero-tags span {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 14px; background: rgba(63, 240, 200, 0.12); color: var(--accent);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.hero-tags span:first-child { background: var(--accent); color: var(--accent-ink); }
.hero h1 { display: flex; flex-direction: column; font-weight: 900; line-height: 0.86; }
.hero h1 .l1 { font-size: clamp(30px, 4vw, 46px); color: var(--muted); }
.hero h1 .l2 {
  font-size: clamp(64px, 10vw, 128px); color: transparent;
  -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 40px rgba(63, 240, 200, 0.25);
}
.hero h1 .l3 { font-size: clamp(48px, 7vw, 88px); }
.hero p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-crest { position: relative; flex: none; width: 280px; max-width: 34%; aspect-ratio: 1; display: grid; place-items: center; }
.hero-logo { position: relative; width: 100%; border-radius: 50%; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(63, 240, 200, 0.25); animation: bob 6s ease-in-out infinite alternate; }
/* sonar pings radiating from the crest */
.ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 4s ease-out infinite; }
.ping.p2 { animation-delay: 2s; }
@keyframes ping { 0% { transform: scale(0.95); opacity: 0.5; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes bob { from { transform: translateY(-4px) rotate(-2deg); } to { transform: translateY(6px) rotate(2deg); } }

/* ---------- KPI scoreboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.kpi { position: relative; padding: 16px 18px 14px 22px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--accent); transform: skewY(-20deg); }
.kpi-label { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.kpi-value { font-family: var(--head); font-size: 40px; font-weight: 900; line-height: 1; margin: 6px 0 4px; text-transform: uppercase; }
.kpi-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Team badge ---------- */
.tbadge {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--c); color: #fff;
  font-family: var(--head); font-weight: 900; font-size: 13px; letter-spacing: 0.03em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
.tbadge.lg { width: 68px; height: 68px; font-size: 24px; border-radius: 12px; }
.tbadge.logo { background: transparent; box-shadow: none; }
.tbadge img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }
.tname { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; vertical-align: middle; }
/* Team schedule: "vs" / "@" centred on the opponent's logo, names lined up in one column */
.opp { display: inline-flex; align-items: center; gap: 8px; }
.opp .ha { width: 22px; text-align: center; font-weight: 600; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tname span.n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clickable { cursor: pointer; }
.clickable:hover .n, a.clickable:hover { color: var(--accent); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card .table-wrap { border: 0; background: none; }
.card table { font-size: 13px; }
.card th, .card td { padding: 8px 6px; }
.card thead th { letter-spacing: 0.04em; font-size: 10px; }
.card:has(.table-wrap) { padding-left: 12px; padding-right: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
thead th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  background: var(--panel-2); border-bottom: 2px solid var(--line-2);
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sorted { color: var(--accent); }
tbody tr { border-bottom: 1px solid rgba(23, 56, 79, 0.7); }
tbody tr:nth-child(even) { background: rgba(15, 39, 57, 0.45); }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: var(--accent-soft); }
td.rank { color: var(--muted); width: 28px; font-family: var(--mono); font-size: 12px; }
td.strong { font-weight: 700; }
.pos { color: var(--win); }
.neg { color: var(--loss); }
.seed-line td { border-top: 2px dashed rgba(63, 240, 200, 0.45); }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 1px 8px; background: var(--accent); color: var(--accent-ink); margin-left: 6px; vertical-align: middle;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.form { display: inline-flex; gap: 3px; }
.form i { width: 7px; height: 12px; background: var(--line-2); display: inline-block; transform: skewX(-14deg); }
.form i.W { background: var(--win); }
.form i.L { background: var(--loss); }
.form i.T { background: var(--muted); }

/* ---------- Games ---------- */
.game {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.game:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); }
.game-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.game-row .score { font-family: var(--head); font-size: 30px; font-weight: 900; line-height: 1; }
.game-row.loser { opacity: 0.5; }
.game-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.status-final { color: var(--muted); }
.status-live { color: var(--flare); }
.status-live::before { content: "● "; }
/* Three columns (away | score or "vs" | home) so the middle lines up on every row. */
.mini-game { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(23, 56, 79, 0.8); cursor: pointer; font-size: 14px; }
.mini-game:last-child { border-bottom: 0; }
.mini-game:hover { color: var(--accent); }
.mini-game > .tname:first-child { justify-self: start; }
.mini-game > .tname:last-child { justify-self: end; }
.mini-game .sc { font-family: var(--head); font-weight: 800; font-size: 20px; min-width: 64px; text-align: center; color: var(--muted); }

/* ---------- Leaders ---------- */
.leader { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(23, 56, 79, 0.8); }
.leader:last-child { border-bottom: 0; }
.leader .num { font-family: var(--head); font-weight: 800; font-size: 22px; margin-left: auto; white-space: nowrap; }
.leader .who { min-width: 0; }
.leader .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader .who small { color: var(--muted); }
.leader .rk { width: 18px; color: var(--muted); font-family: var(--mono); font-weight: 700; font-size: 12px; }
.leader.first .num { color: var(--gold); }
.leader.first .rk { color: var(--gold); }

/* ---------- Teams grid ---------- */
.team-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 22%, var(--panel)) 0%, var(--panel) 55%);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; border-left: 4px solid var(--c);
  transition: transform 0.15s, border-color 0.15s;
}
.team-card:hover { border-color: var(--accent); border-left-color: var(--c); transform: translateX(3px); }
.team-card b { display: block; font-size: 15px; }
.team-card small { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.div-title { font-size: 22px; color: var(--muted); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.div-title::after { content: ""; flex: 1; height: 8px; background: var(--hash); }

/* ---------- Playoffs ---------- */
.bracket { display: grid; grid-template-columns: 1fr 1fr 0.9fr 1fr 1fr; gap: 16px; align-items: center; }
.round { display: flex; flex-direction: column; gap: 16px; justify-content: space-around; height: 100%; }
.round-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; text-align: center; }
.matchup { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); overflow: hidden; }
.matchup .slot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 14px; font-weight: 600; min-height: 46px; }
.matchup .slot + .slot { border-top: 1px dashed var(--line-2); }
.matchup .seed { color: var(--muted); font-family: var(--mono); font-size: 11px; width: 14px; }
.matchup .tbd { color: var(--muted); font-weight: 500; }
.final-box {
  text-align: center; padding: 24px 12px;
  background: radial-gradient(circle at 50% 0%, rgba(63, 240, 200, 0.22), var(--panel) 70%);
  border: 1px solid var(--accent);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
}
.final-box img { width: 130px; margin-bottom: 4px; }
.final-box h3 { font-size: 28px; font-weight: 900; }

/* ---------- Stats page ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.input, select.input { background: var(--panel); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius); padding: 9px 12px; font: inherit; font-size: 14px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.input.search { flex: 1; min-width: 180px; }

/* ---------- Fantasy ---------- */
.score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.score-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel-2); border-left: 2px solid var(--line-2); padding: 8px 12px; font-size: 13px; }
.score-item b { font-family: var(--head); font-size: 18px; font-weight: 800; color: var(--accent); }
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lineup-slot { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; gap: 10px; align-items: center; }
.lineup-slot .p {
  font-family: var(--head); font-weight: 900; font-size: 15px; text-align: center; min-width: 46px; padding: 3px 8px;
  background: var(--accent); color: var(--accent-ink);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.lineup-slot .who { min-width: 0; flex: 1; }
.lineup-slot .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.lineup-slot .who small { color: var(--muted); }
.lineup-slot .pts { font-family: var(--head); font-weight: 900; font-size: 24px; color: var(--gold); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 14, 0.8); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; width: min(920px, 100%); max-height: 90vh; overflow: auto; padding: 26px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); width: 34px; height: 34px; cursor: pointer; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 40px; }
.modal-head h2 { font-size: 38px; font-weight: 900; line-height: 0.95; }
.box-score { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; padding: 18px; background: #020a12; border: 1px solid var(--line); border-radius: var(--radius); }
.box-score .side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 600; flex: 1; min-width: 0; }
.box-score .big { font-family: var(--head); font-size: 64px; font-weight: 900; line-height: 1; color: var(--accent); text-shadow: 0 0 24px rgba(63, 240, 200, 0.35); }
.box-score .dash { color: var(--muted); font-family: var(--mono); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 40px 16px; margin-top: 48px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted);
  background: rgba(2, 10, 18, 0.7);
}
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--hash); border-top: 1px solid var(--line-2); }
.footer img { width: 30px; border-radius: 50%; }
.footer-motto { color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; }

.matchup .slot .tname .n { max-width: 120px; }
.matchup .slot .muted { white-space: nowrap; }

/* ============================================================
   Ocean: three layers of rolling waves along the bottom.
   ============================================================ */
.ocean { position: fixed; inset: auto 0 0 0; height: 46vh; pointer-events: none; z-index: 0; overflow: hidden; }
.wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  background-repeat: repeat-x; background-position: 0 100%;
  animation: wave-drift linear infinite, wave-bob ease-in-out infinite alternate;
}
/* each layer is a seamless wave shape drawn as SVG */
.wave-3 {
  height: 100%; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q180 10 360 60 T720 60 T1080 60 T1440 60 V200 H0 Z' fill='%230a3346'/%3E%3C/svg%3E");
  background-size: 1440px 100%;
  animation-duration: 60s, 9s;
}
.wave-2 {
  height: 72%; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 70 Q180 20 360 70 T720 70 T1080 70 T1440 70 V200 H0 Z' fill='%230c4558'/%3E%3C/svg%3E");
  background-size: 1200px 100%;
  animation-duration: 42s, 7s;
  animation-direction: reverse, alternate;
}
.wave-1 {
  height: 44%; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 80 Q180 35 360 80 T720 80 T1080 80 T1440 80 V200 H0 Z' fill='%23105a6c'/%3E%3Cpath d='M0 80 Q180 35 360 80 T720 80 T1080 80 T1440 80' fill='none' stroke='%233ff0c8' stroke-opacity='0.35' stroke-width='3'/%3E%3C/svg%3E");
  background-size: 960px 100%;
  animation-duration: 28s, 5s;
}
.wave-2 { --drift: 1200px; }
.wave-3 { --drift: 1440px; }
.wave-1 { --drift: 960px; }
@keyframes wave-drift { from { background-position-x: 0; } to { background-position-x: var(--drift); } }
@keyframes wave-bob { from { transform: translateY(0); } to { transform: translateY(10px); } }

/* Page content sits above the ocean. */
.data-banner, main, .footer { position: relative; z-index: 1; }

/* ---------- Sound on/off button ---------- */
.sound-toggle {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.sound-toggle:hover { border-color: var(--accent); }
.sound-toggle[aria-pressed="false"] { opacity: 0.55; }

/* ---------- GAME NOW! banner ---------- */
.live-now { display: grid; gap: 10px; margin-top: 24px; }
.live-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 106, 61, 0.07) 0 10px, transparent 10px 20px),
    linear-gradient(90deg, rgba(255, 106, 61, 0.22), rgba(10, 29, 46, 0.95) 50%);
  border: 1px solid rgba(255, 106, 61, 0.6);
  box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.45);
  animation: live-glow 2s ease-out infinite;
}
.live-card:hover { border-color: var(--flare); }
.live-pill {
  font-family: var(--head); font-weight: 900; font-size: 24px; letter-spacing: 0.04em;
  color: #fff; background: var(--flare); padding: 4px 20px; white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.live-pill::before { content: "● "; animation: live-blink 1s steps(2, start) infinite; }
.live-match { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; font-weight: 600; }
.live-match .tname { min-width: 0; }
.live-score { font-family: var(--head); font-size: 30px; font-weight: 900; white-space: nowrap; }
.live-cta { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--flare); white-space: nowrap; }
a.live-card .live-cta { color: #fff; background: var(--flare); padding: 9px 18px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
@keyframes live-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(255, 106, 61, 0); } }
@keyframes live-blink { to { visibility: hidden; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-2.stack-md { grid-template-columns: minmax(0, 1fr); }
  .bracket { grid-template-columns: 1fr 1fr; }
  .bracket .final-col { grid-column: 1 / -1; order: 10; }
  .bracket > :nth-child(5) { order: 4; }
  .bracket > :nth-child(4) { order: 5; }
  .round { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a.active::after { left: 0; right: auto; width: 24px; }
  .nav .nav-discord { margin: 8px 0 0; justify-content: center; }
  .topbar { padding: 10px 16px; }
  .brand-text small { display: none; }
}
@media (max-width: 720px) {
  .live-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .live-match { flex-direction: column; gap: 4px; }
  .live-match .tname .n { white-space: normal; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero { flex-direction: column-reverse; padding: 32px 20px 56px; text-align: center; gap: 22px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
  .hero h1 { align-items: center; }
  .hero-tags, .hero-actions { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-crest { max-width: 55%; width: 170px; }
  .hero-field { font-size: 18px; }
  .section-head h2 { font-size: 32px; }
  .bracket { grid-template-columns: minmax(0, 1fr); }
  .modal-panel { padding: 18px; }
  .box-score { gap: 12px; padding: 14px 8px; }
  .box-score .big { font-size: 44px; }
  .kpi-value { font-size: 32px; }
  .ticker-label { padding: 0 16px 0 12px; font-size: 0; }
  .ticker-label::before { content: "●"; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wave, .ping, .hero-logo, .live-card, .live-pill::before { animation: none; }
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

/* ---------- Championship banner (Playoffs page) ---------- */
.champ-banner {
  display: flex; align-items: center; gap: 32px; margin-bottom: 28px; padding: 18px 32px 18px 18px;
  background:
    radial-gradient(420px 260px at 18% 50%, rgba(30, 136, 229, 0.28), transparent 70%),
    linear-gradient(120deg, #0b2a3f 0%, #08202f 60%, #061826 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.champ-banner img { flex: none; width: 260px; max-width: 40%; height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5)); }
.champ-text h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 0.95; margin-bottom: 10px; }
.champ-text p { max-width: 520px; margin: 0; }
@media (max-width: 640px) {
  .champ-banner { flex-direction: column; text-align: center; gap: 8px; padding: 18px; }
  .champ-banner img { max-width: 75%; width: 240px; }
}

/* ---------- Admin page (admin.html) ---------- */
.admin-nav { display: flex; gap: 10px; }
.admin-nav .muted { font-family: var(--mono); font-size: 12px; }
.admin-signin form { max-width: 420px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field.grow { flex: 1; min-width: 220px; }
.form-msg { margin: 0; color: var(--loss); font-weight: 600; }
pre.code { background: #020a12; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; color: var(--accent); white-space: pre; }
.admin-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-bottom: 22px; }
.admin-game {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; cursor: pointer; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--radius);
}
.admin-game:hover { border-color: var(--accent); }
.admin-game.active { border-color: var(--accent); background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.ag-teams { display: inline-flex; align-items: center; gap: 7px; }
.ag-teams .tbadge { width: 24px; height: 24px; }
.ag-score { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--muted); min-width: 52px; text-align: center; }
.ag-status { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ag-status.st-in_progress { color: var(--flare); }
.ag-status.st-final { color: var(--accent); }
.admin-score { margin-bottom: 26px; }
.score-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 14px; }
.big-in { width: 120px; font-family: var(--head); font-size: 26px; font-weight: 800; padding: 4px 12px; }
.admin-stats-head { margin-top: 8px; }
.admin-team h3 .tbadge { width: 28px; height: 28px; }
table.stat-entry td.l b { display: block; }
table.stat-entry td.l small { color: var(--muted); font-size: 11px; }
.stat-in {
  width: 62px; padding: 6px 6px; text-align: right; font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px;
}
.stat-in:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.stat-in.changed { border-color: var(--gold); background: rgba(255, 209, 102, 0.1); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 20px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.toast.bad { background: var(--loss); color: #fff; }
.toast[hidden] { display: none; }
@media (max-width: 820px) {
  .admin-nav { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; margin-left: auto; }
  .admin-nav .muted { display: none; }
}
.footer-admin { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-admin:hover { color: var(--accent); }
.btn[hidden] { display: none; }
@media (max-width: 820px) {
  .admin-nav .btn { padding: 8px 14px; font-size: 11px; white-space: nowrap; }
  .admin-nav { gap: 4px; }
}
.admin-nav a.btn-primary, .admin-nav a.btn-primary:hover { color: var(--accent-ink); }

/* ============================================================
   Home: matchday layout
   ============================================================ */
.md-title {
  display: flex; align-items: center; gap: 12px; margin: 26px 0 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.md-title span:first-child { color: var(--accent); }
.md-title i { width: 6px; height: 6px; background: var(--line-2); transform: rotate(45deg); }
.matchday { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; }
.tbadge.xl { width: 96px; height: 96px; font-size: 32px; border-radius: 18px; }

/* featured game: the two team colours meet on a slant */
.md-feature {
  position: relative; overflow: hidden; isolation: isolate; min-height: 380px;
  display: flex; flex-direction: column; padding: 22px 26px 24px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--ca) 55%, #04101b) 0%, color-mix(in srgb, var(--ca) 22%, #04101b) 47%, transparent 47.2%),
    linear-gradient(105deg, transparent 52.8%, color-mix(in srgb, var(--ch) 22%, #04101b) 53%, color-mix(in srgb, var(--ch) 55%, #04101b) 100%),
    #061826;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}
/* the centre stripe between the two colours */
.md-feature::before {
  content: ""; position: absolute; z-index: -1; top: -10%; bottom: -10%; left: 50%; width: 5.5%;
  transform: translateX(-50%) skewX(-15deg); background: #04101b;
  box-shadow: 0 0 0 2px rgba(63, 240, 200, 0.35);
}
.md-field {
  position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background: repeating-linear-gradient(90deg, rgba(230, 243, 250, 0.06) 0 2px, transparent 2px 10%);
}
.md-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.md-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 16px; background: var(--accent); color: var(--accent-ink);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.md-tag.live { background: var(--flare); color: #fff; }
.md-conf { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(230, 243, 250, 0.75); }
.md-teams { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 0; }
.md-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; }
.md-team .tbadge.xl img { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55)); transition: transform 0.2s; }
.md-team:hover .tbadge.xl img { transform: scale(1.06) rotate(-2deg); }
.md-team b { font-family: var(--head); font-weight: 900; font-size: clamp(22px, 2.6vw, 32px); line-height: 1; text-transform: uppercase; }
.md-team small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(230, 243, 250, 0.75); }
.md-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.md-vs {
  font-family: var(--head); font-weight: 900; font-size: 64px; line-height: 1; color: transparent;
  -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 30px rgba(63, 240, 200, 0.35);
}
.md-score { font-family: var(--head); font-weight: 900; font-size: 76px; line-height: 0.9; display: flex; gap: 12px; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.md-score i { font-style: normal; color: var(--muted); }
.md-mid small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(230, 243, 250, 0.7); }
.md-actions { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.md-watch { background: var(--flare); color: #fff; }
.md-watch:hover { background: #ff875f; }
.md-empty { align-items: center; justify-content: center; text-align: center; background: var(--panel); }
.md-slate { display: flex; flex-direction: column; }
.md-slate .mini-game { padding: 9px 0; }

/* power board */
.pb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pb-tile {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 26%, var(--panel)) 0%, var(--panel) 60%);
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.15s, border-color 0.15s;
}
.pb-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.pb-rank {
  flex: none; align-self: stretch; display: grid; place-items: center; width: 46px; margin: -12px 0;
  font-family: var(--head); font-weight: 900; font-size: 24px; color: #fff; background: var(--c);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}
.pb-tile:nth-child(-n + 3) .pb-rank { color: #1b1300; background: var(--gold); }
.pb-name { min-width: 0; flex: 1; }
.pb-name b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.2; }
.pb-name small { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-rec { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--head); font-weight: 900; font-size: 22px; line-height: 1; }
.pb-rec small { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 3px; }

/* leader cards */
.lc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lc-head { padding: 9px 14px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.lc-top {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, var(--panel)) 0%, var(--panel) 70%);
}
.lc-top .tbadge.lg { width: 52px; height: 52px; }
.lc-who { min-width: 0; }
.lc-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-who small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-num { font-family: var(--head); font-weight: 900; font-size: 40px; line-height: 0.9; color: var(--gold); }
.lc-rest { list-style: none; margin: 0; padding: 4px 14px 10px; counter-reset: lc 1; }
.lc-rest li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.lc-rest li::before { counter-increment: lc; content: counter(lc); font-family: var(--mono); font-size: 11px; color: var(--muted); width: 14px; }
.lc-rest .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-rest .v { font-family: var(--head); font-weight: 800; font-size: 17px; }
.lc-none { padding: 18px 14px; margin: 0; }

/* road to the championship */
.road {
  position: relative; display: flex; align-items: center; gap: 36px; margin-top: 48px; padding: 26px 36px 26px 22px;
  background:
    radial-gradient(500px 300px at 16% 50%, rgba(30, 136, 229, 0.3), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(63, 240, 200, 0.03) 0 14px, transparent 14px 28px),
    linear-gradient(120deg, #0b2a3f, #061826);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}
.road-logo { flex: none; width: 250px; max-width: 36%; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5)); }
.road-body { flex: 1; min-width: 0; }
.road-body h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; line-height: 0.95; margin-bottom: 14px; }
.road-bar { height: 12px; background: #020a12; border: 1px solid var(--line-2); overflow: hidden; transform: skewX(-20deg); }
.road-bar span { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, var(--accent), #7cc8ff); box-shadow: 0 0 14px rgba(63, 240, 200, 0.5); }
.road-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.road-seeds { display: grid; gap: 10px; margin-bottom: 18px; }
.road-conf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.road-conf-name { width: 56px; font-family: var(--head); font-weight: 900; font-size: 18px; text-transform: uppercase; }
.road-seed { position: relative; display: inline-flex; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.road-seed i { position: absolute; top: -7px; left: -7px; width: 18px; height: 18px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 700; background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.road-seed:hover { border-color: var(--accent); }

/* discord call to action */
.join {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding: 24px 28px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.28), rgba(10, 29, 46, 0.9) 60%);
  border: 1px solid rgba(88, 101, 242, 0.5); border-radius: var(--radius);
}
.join h2 { font-size: 34px; font-weight: 900; }
.join p { margin: 6px 0 0; }
.join-btn { background: #5865f2; color: #fff; padding: 14px 30px; font-size: 14px; }
.join-btn:hover { background: #6d78ff; }

@media (max-width: 1100px) {
  .matchday { grid-template-columns: minmax(0, 1fr); }
  .pb-grid, .lc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .md-feature { padding: 18px 14px 20px; min-height: 0; }
  .tbadge.xl { width: 72px; height: 72px; }
  .md-vs { font-size: 42px; }
  .md-score { font-size: 48px; gap: 6px; }
  .md-team b { font-size: 18px; }
  .md-team small { font-size: 9.5px; }
  .md-teams { gap: 6px; }
  .pb-grid, .lc-grid { grid-template-columns: minmax(0, 1fr); }
  .road { flex-direction: column; text-align: center; padding: 22px 18px; gap: 10px; }
  .road-logo { max-width: 70%; width: 220px; }
  .road-conf { justify-content: center; }
  .road-conf-name { width: 100%; }
  .join { text-align: center; justify-content: center; }
}

/* ---------- Player faces (Roblox headshots) and player card ---------- */
.pface {
  position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 55%, #0b2233), #04111c 75%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent);
}
.pface img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pface.noimg::after { content: attr(data-i); font-family: var(--head); font-weight: 900; font-size: 12px; color: #fff; }
.pface.sm { width: 22px; height: 22px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); }
.pface.sm.noimg::after { font-size: 9px; }
.pface.lg { width: 68px; height: 68px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 80%, transparent); }
.pface.lg.noimg::after { font-size: 22px; }
.lc-top .pface.lg { width: 52px; height: 52px; }
.lc-rest li.clickable:hover .n, .leader.clickable:hover b, .lineup-slot.clickable:hover b { color: var(--accent); }
.lineup-slot.clickable { cursor: pointer; }

.pc-hero {
  display: flex; align-items: flex-end; gap: 20px; margin: -4px 0 18px; padding: 18px 48px 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 18% 100%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #04111c), #020a12 75%);
}
.pc-portrait { flex: none; width: 190px; height: 190px; display: grid; place-items: end center; }
.pc-avatar { width: 190px; height: 190px; object-fit: contain; display: block; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)); }
.pc-portrait .tbadge.xl { margin-bottom: 40px; }
.pc-id { min-width: 0; padding-bottom: 20px; }
.pc-id h2 { font-size: 46px; font-weight: 900; line-height: 0.95; overflow-wrap: anywhere; }
.pc-roblox { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.pc-team { margin-top: 12px; }
.pc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.pc-cat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pc-cat-head { padding: 7px 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.pc-cat-stats { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 8px 4px; }
.pc-cat-stats > div { flex: 1 0 25%; min-width: 56px; padding: 2px 8px; }
.pc-cat-stats small { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pc-cat-stats b { font-family: var(--head); font-size: 22px; font-weight: 900; }
@media (max-width: 640px) {
  .pc-hero { flex-direction: column; align-items: center; text-align: center; padding: 14px 14px 0; }
  .pc-portrait, .pc-avatar { width: 150px; height: 150px; }
  .pc-id { padding-bottom: 16px; }
  .pc-id h2 { font-size: 34px; }
}
