/* =====================================================
   WC26 — "Summer Kickoff" design system (light & fun)
   Palette: sunlit paper, pitch green, sky blue,
   sunshine gold, coral red. Confetti energy, soft shadows.
   Type: Anton (display) / Archivo (body) / IBM Plex Mono (clock)
   ===================================================== */

:root {
  --paper: #FFFDF7;
  --bg: #F6F3E8;
  --ink: #1E2A3A;
  --ink-soft: #5B6678;
  --pitch: #168A4E;
  --pitch-soft: #DCF2E5;
  --sky: #2E6FD8;
  --sky-soft: #E2ECFB;
  --gold: #F0A12E;
  --gold-soft: #FCEFD6;
  --coral: #E4573D;
  --coral-soft: #FBE3DD;
  --line: #E4DECB;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(30, 42, 58, 0.10);
  --shadow-lift: 0 10px 26px rgba(30, 42, 58, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Archivo", system-ui, sans-serif;
  background:
    radial-gradient(700px 360px at 85% -5%, rgba(46, 111, 216, 0.14), transparent 60%),
    radial-gradient(620px 320px at 5% -8%, rgba(22, 138, 78, 0.16), transparent 58%),
    radial-gradient(520px 300px at 50% 0%, rgba(240, 161, 46, 0.13), transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.mono { font-family: "IBM Plex Mono", monospace; }

/* ---------- header ---------- */
header { padding: 30px 20px 8px; max-width: 1140px; margin: 0 auto; }
.header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.contact-wrap { position: relative; flex-shrink: 0; }
.contact-btn { background: #0B2265; border: none; color: #fff; font-family: "Anton", sans-serif; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: background 0.15s; display: inline-block; }
.contact-btn:hover { background: #0d2d84; }
.wordmark h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(36px, 6vw, 60px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.015em;
  color: var(--ink);
}
.wordmark h1 .yr {
  color: var(--paper);
  background: linear-gradient(120deg, var(--pitch), var(--sky));
  padding: 0 10px 2px;
  border-radius: 10px;
  display: inline-block;
}
.host-strip { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.host-strip img { width: 22px; border-radius: 3px; box-shadow: 0 1px 3px rgba(30,42,58,0.25); }
.tagline { margin-top: 8px; color: var(--ink-soft); font-size: 14px; max-width: 64ch; }
.tagline .tz { color: var(--pitch); font-weight: 700; }

/* ---------- nav tabs ---------- */
nav {
  position: sticky; top: 0; z-index: 600;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
  margin-top: 16px;
}
.tabs { max-width: 1140px; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; background: none; border: none;
  color: var(--ink-soft); font-family: "Archivo", sans-serif; font-weight: 700; font-size: 14px;
  padding: 14px 15px 11px; cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.tab.active { color: var(--pitch); border-bottom-color: var(--pitch); }

main { max-width: 1140px; margin: 0 auto; padding: 24px 16px 80px; }
.view { display: none; }
.view.active { display: block; animation: rise 0.35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section-note { font-size: 13px; color: var(--ink-soft); margin: 6px 0 16px; max-width: 80ch; line-height: 1.5; }

/* ---------- filter bar (shared) ---------- */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filterbar label { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
select.ctl, input.ctl {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
select.ctl:focus-visible, input.ctl:focus-visible { outline: 2px solid var(--sky); }

.pill {
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.pill:hover { border-color: var(--pitch); color: var(--ink); transform: translateY(-1px); }
.pill:focus-visible { outline: 2px solid var(--sky); }
.pill.active { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.pill.active.alt { background: var(--coral); border-color: var(--coral); }

/* ---------- calendar ---------- */
.cal-toggle-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 4px 0 8px; cursor: pointer;
  font-family: "Anton", sans-serif; font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft);
}
.cal-toggle-btn:hover { color: var(--ink); }
.cal-chevron { font-size: 18px; line-height: 1; transition: transform 0.25s ease; display: inline-block; }
.cal-toggle-btn[aria-expanded="false"] .cal-chevron { transform: rotate(-90deg); }
.calwrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px;
  overflow: hidden; max-height: 1200px; margin-bottom: 8px;
  transition: max-height 0.3s ease, margin-bottom 0.3s ease;
}
.calwrap.cal-collapsed { max-height: 0; margin-bottom: 0; }
.calmonth {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}
.calmonth h4 {
  font-family: "Anton", sans-serif; font-size: 16px; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 10px; color: var(--ink);
}
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calgrid .dowh { font-size: 10px; font-weight: 700; text-align: center; color: var(--ink-soft); text-transform: uppercase; padding-bottom: 4px; }
.calday {
  aspect-ratio: 1;
  border: none; background: none; border-radius: 9px;
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  cursor: default;
}
.calday.hasgames {
  cursor: pointer; color: var(--ink); background: var(--pitch-soft);
  transition: transform 0.12s, background 0.12s;
}
.calday.hasgames:hover { background: var(--gold-soft); transform: scale(1.06); }
.calday.hasgames:focus-visible { outline: 2px solid var(--sky); }
.calday .dots { font-size: 8px; line-height: 1; color: var(--pitch); letter-spacing: 1px; }
.calday.ko-day .dots { color: var(--coral); }
.calday.today { box-shadow: inset 0 0 0 2px var(--sky); }
.calday.selected { background: var(--pitch); color: #fff; }
.calday.selected .dots { color: var(--gold); }

.dayheader {
  font-family: "Anton", sans-serif; font-size: 20px; text-transform: uppercase;
  letter-spacing: 0.03em; margin: 26px 0 12px;
  display: flex; align-items: center; gap: 12px; color: var(--ink);
}
.dayheader::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.dayheader .count { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--pitch); letter-spacing: 0; }

/* ---------- ticket cards (signature element) ---------- */
.matchgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

.ticket {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ticket:hover { transform: translateY(-2px) rotate(-0.3deg); box-shadow: var(--shadow-lift); }
.ticket::before {
  content: "";
  position: absolute; left: 9px; top: 8px; bottom: 8px; width: 0;
  border-left: 2px dotted var(--line);
}
.ticket .stage-tag {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
}
.stage-tag .badge { color: var(--pitch); background: var(--pitch-soft); padding: 2px 8px; border-radius: 6px; }
.stage-tag .badge.ko { color: var(--coral); background: var(--coral-soft); }
.stage-tag .ft { font-family: "IBM Plex Mono", monospace; color: var(--ink); background: var(--gold); padding: 2px 8px; border-radius: 6px; letter-spacing: 0.06em; }
.stage-tag .soon { color: var(--coral); }

.teams { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.teamrow { display: flex; align-items: center; gap: 9px; min-width: 0; }
.teamrow img { width: 30px; height: 21px; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 3px rgba(30,42,58,0.3); flex: 0 0 auto; }
.teamrow .tname { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teamrow .trank { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-soft); flex: 0 0 auto; background: var(--bg); border-radius: 5px; padding: 1px 5px; }
.teamrow .tscore { font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 18px; margin-left: auto; }
.teamrow .tscore.livesc { color: var(--coral); }
.stage-tag .soon { animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.kick .vtime.asof { color: var(--coral); }
.kick .vtime.asof b { color: var(--coral); }
.teamrow.tbd .tname { color: var(--ink-soft); font-weight: 600; font-size: 14px; white-space: normal; }

.kick {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px;
  border-left: 2px dotted var(--line); padding-left: 14px; min-width: 96px;
}
.kick .clock { font-family: "IBM Plex Mono", monospace; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--sky); }
.kick .ampm { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.kick .vtime { font-size: 10px; color: var(--ink-soft); text-align: right; line-height: 1.3; }
.kick .vtime b { color: var(--gold); font-family: "IBM Plex Mono", monospace; font-weight: 600; }

.matchnote {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--sky-soft);
  border-radius: 9px;
  padding: 8px 11px;
  line-height: 1.45;
}
.matchnote b { color: var(--ink); }

.predbar { grid-column: 1 / -1; }
.predbar .bar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: var(--bg); }
.predbar .seg-h { background: var(--pitch); }
.predbar .seg-d { background: #C9C2AC; }
.predbar .seg-a { background: var(--gold); }
.predbar .lbl { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--ink-soft); margin-top: 4px; }

.ticket .placefoot {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--ink-soft);
  border-top: 2px dotted var(--line);
  padding-top: 8px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.placefoot .ven { font-weight: 700; color: var(--ink); }

.empty-day {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 36px 20px; text-align: center; color: var(--ink-soft); background: var(--paper);
}

/* ---------- map ---------- */
#map { height: 540px; border-radius: var(--radius); border: 2px solid var(--line); box-shadow: var(--shadow); z-index: 1; }
.map-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; font-weight: 600; }
.map-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; box-shadow: 0 1px 2px rgba(30,42,58,0.3); }
.leaflet-popup-content-wrapper { background: var(--paper); color: var(--ink); border-radius: 12px; font-family: "Archivo", sans-serif; }
.leaflet-popup-content { margin: 14px 16px; }
.popup-venue { font-family: "Anton", sans-serif; font-size: 16px; text-transform: uppercase; }
.popup-city { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.popup-match { font-size: 12px; padding: 4px 0; border-top: 1px dashed var(--line); }
.popup-match .pm-t { font-family: "IBM Plex Mono", monospace; color: var(--pitch); font-weight: 600; }
.popup-hidden { display: none; }
.popup-more { font-size: 11px; color: var(--pitch); margin-top: 6px; cursor: pointer; text-decoration: underline; }

/* ---------- path ---------- */
.path-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.scenario-toggle { display: flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.scenario-toggle button { background: none; border: none; color: var(--ink-soft); padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.scenario-toggle button.active { background: var(--pitch); color: #fff; }
.scenario-toggle button:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }

.path-rail { position: relative; margin-top: 22px; padding-left: 26px; }
.path-rail::before {
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--pitch), var(--sky), var(--gold));
}
.pathstep { position: relative; margin-bottom: 16px; max-width: 560px; }
.pathstep::before {
  content: ""; position: absolute; left: -24px; top: 18px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--pitch);
}
.pathstep.trophy::before { border-color: var(--gold); background: var(--gold); }
.pathstep .ticket:hover { transform: none; }
.pathstep .steplabel { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pitch); font-weight: 800; margin-bottom: 5px; }
.pathstep.trophy .steplabel { color: var(--gold); }

/* ---------- predictions ---------- */
.groupwin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; margin-bottom: 30px; }
.gwcard { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow); }
.gwcard h4 { font-family: "Anton", sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 9px; color: var(--ink); }
.gwrow { display: flex; align-items: center; gap: 7px; padding: 3.5px 0; font-size: 13px; }
.gwrow img { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 2px rgba(30,42,58,0.25); }
.gwrow .gwname { flex: 0 0 108px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.gwrow .gwbar { flex: 1; height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.gwrow .gwbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pitch), var(--sky)); border-radius: 4px; }
.gwrow .gwpct { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-soft); width: 34px; text-align: right; }
.gwrow.leader .gwname { color: var(--pitch); font-weight: 700; }

.subhead { font-family: "Anton", sans-serif; font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em; margin: 6px 0 10px; color: var(--ink); }

.oddstable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.oddstable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); padding: 11px 12px; border-bottom: 2px solid var(--line); background: var(--bg); }
.oddstable td { padding: 9px 12px; border-bottom: 1px solid #EFEADB; }
.oddstable tr:last-child td { border-bottom: none; }
.oddstable tr:hover td { background: var(--gold-soft); }
.oddstable img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; vertical-align: -3px; margin-right: 9px; box-shadow: 0 1px 2px rgba(30,42,58,0.25); }
.oddstable .odd { font-family: "IBM Plex Mono", monospace; color: var(--coral); font-weight: 600; }
.oddstable .impl { font-family: "IBM Plex Mono", monospace; color: var(--ink-soft); }
.oddstable .implbar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; min-width: 90px; }
.oddstable .implbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pitch), var(--gold)); }

/* ---------- watch ---------- */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.watchcard { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--paper); box-shadow: var(--shadow); }
.watchcard .wc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.watchcard img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 2px rgba(30,42,58,0.25); }
.watchcard .wc-name { font-weight: 700; }
.watchcard ul { list-style: none; }
.watchcard li { font-size: 13px; color: var(--ink-soft); padding: 3px 0 3px 16px; position: relative; }
.watchcard li::before { content: "▸"; position: absolute; left: 0; color: var(--pitch); }
.watchcard li:first-child { color: var(--ink); font-weight: 600; }

/* ---------- teams / rosters ---------- */
.groupnav { display: flex; gap: 6px; flex-wrap: wrap; }
.teamcard { border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.teamcard .tc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.teamcard .tc-head img { width: 40px; height: 28px; object-fit: cover; border-radius: 5px; box-shadow: 0 1px 4px rgba(30,42,58,0.3); }
.tc-head-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.tc-name { font-family: "Anton", sans-serif; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.tc-meta { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-soft); }
.tc-meta b { color: var(--coral); font-weight: 600; }
.squad-link { font-size: 12px; font-weight: 700; color: var(--sky); text-decoration: none; white-space: nowrap; padding: 5px 10px; border: 1.5px solid var(--sky); border-radius: 20px; transition: background 0.15s; }
.squad-link:hover { background: var(--sky); color: #fff; }
.playergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.player { display: flex; gap: 11px; align-items: center; background: var(--bg); border-radius: 12px; padding: 9px 11px; }
.avatar {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Anton", sans-serif; font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pitch), var(--sky));
  box-shadow: 0 1px 4px rgba(30,42,58,0.22);
}
.player .p-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.player .p-sub { font-size: 11.5px; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; margin-top: 2px; }
.player .p-sub .pos { color: var(--pitch); font-weight: 700; }

/* completed games: tinted + color-coded, click for highlights */
.ticket.done {
  cursor: pointer;
  background: linear-gradient(135deg, #FDF6E3, var(--pitch-soft));
  border-color: var(--pitch);
  text-decoration: none;
  color: var(--ink);
}
.ticket.done::before { border-left-color: rgba(22, 138, 78, 0.45); }
.ticket.done .placefoot { border-top-color: rgba(22, 138, 78, 0.35); }
.ticket.done:hover { border-color: var(--coral); }
.hl {
  color: var(--coral); font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.ticket.done:hover .hl { text-decoration: underline; }

/* ---------- filter chips & clear ---------- */
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-soft); color: var(--ink);
  border: 2px solid var(--sky); border-radius: 999px;
  padding: 4px 6px 4px 11px; font-size: 12.5px; font-weight: 700;
}
.chip img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
.chip button {
  border: none; background: var(--sky); color: #fff;
  width: 17px; height: 17px; border-radius: 50%;
  font-size: 11px; line-height: 1; font-weight: 800; cursor: pointer;
}
.chip button:hover { background: var(--coral); }
.chip button:focus-visible { outline: 2px solid var(--ink); }
.clearbtn {
  background: var(--coral); border: 2px solid var(--coral); color: #fff;
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.12s;
}
.clearbtn:hover { transform: translateY(-1px); }
.clearbtn:focus-visible { outline: 2px solid var(--sky); }
.clearbtn[disabled] { opacity: 0.4; cursor: default; transform: none; }

/* numbered venue markers (team filter on map) */
.vnum-marker span {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 13px;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(30,42,58,0.4);
}
.vnum-marker span.multi { font-size: 10px; letter-spacing: -0.5px; }

/* live power-rating deltas */
.delta-up { color: var(--pitch); font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 700; }
.delta-down { color: var(--coral); font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 700; }
.delta-flat { color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; font-size: 12px; }

/* ---------- standings (group filter) ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.standcard { margin: 6px 0 22px; }
.standings {
  width: 100%; min-width: 520px;
  border-collapse: separate; border-spacing: 0; font-size: 14px;
  background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.standings th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); padding: 10px 10px; border-bottom: 2px solid var(--line); background: var(--bg);
}
.standings td { padding: 9px 10px; border-bottom: 1px solid #EFEADB; }
.standings tr:last-child td { border-bottom: none; }
.standings .teamcell { font-weight: 700; white-space: nowrap; }
.standings .teamcell img { width: 24px; height: 17px; object-fit: cover; border-radius: 3px; vertical-align: -3px; margin-right: 8px; box-shadow: 0 1px 2px rgba(30,42,58,0.25); }
.standings .teamcell .trank { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--ink-soft); background: var(--bg); border-radius: 4px; padding: 1px 4px; margin-left: 7px; font-weight: 400; }
.standings .pts { font-weight: 700; color: var(--pitch); }
.standings tr.qual td { background: var(--pitch-soft); }
.standings tr.qual .pos { color: var(--pitch); font-weight: 700; }
.standings tr.maybe td { background: var(--gold-soft); }
.standnote { font-size: 11.5px; color: var(--ink-soft); margin-top: 7px; }

footer { max-width: 1140px; margin: 0 auto; padding: 0 16px 40px; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 560px) {
  header { padding: 20px 14px 6px; }
  main { padding: 18px 12px 60px; }
  .matchgrid { grid-template-columns: 1fr; }
  #map { height: 70vh; min-height: 380px; }
  .kick { min-width: 78px; padding-left: 10px; }
  .kick .clock { font-size: 18px; }
  .ticket { padding: 12px 12px 10px 18px; }
  .teamrow .tname { font-size: 15px; }
  .pill { padding: 6px 11px; font-size: 12px; }
  .filterbar { gap: 7px; }
  select.ctl { max-width: 100%; }
  .calmonth { padding: 10px 8px 8px; }
  .calday { font-size: 12px; }
  .gwrow .gwname { flex-basis: 92px; font-size: 12.5px; }
  .oddstable { min-width: 560px; }
  .tabs { padding: 0 6px; }
  .tab { padding: 12px 11px 10px; font-size: 13px; }
  .wordmark { gap: 10px; }
  .contact-btn { font-size: 16px; padding: 6px 10px; border-radius: 8px; }
  .playergrid { grid-template-columns: 1fr 1fr; }
  .player { padding: 8px 9px; gap: 8px; }
  .avatar { width: 38px; height: 38px; font-size: 13px; }
  .p-name { font-size: 12.5px; }
}
@media (max-width: 400px) {
  .playergrid { grid-template-columns: 1fr; }
  .stage-tag { letter-spacing: 0.08em; }
}
