/* Layout: Dooley navy header band with a faint top-down court and an orange pickleball mark;
   below it, one page at a time (This Week, Leaderboard), each read like a courtside scoresheet.
   Palette from the Dooley color palette (PMS 302 navy, 158 orange, 432 charcoal, 7472 teal) and the
   godooley.com web orange; type is Source Sans 3, the Dooley website face. */
:root {
  --bg: #F3F5F6;
  --surface: #FFFFFF;
  --tint: #F7F8F9;
  --ink: #24303A;
  --muted: #5D6973;
  --line: #DCE1E4;
  --chip: #E9EDEF;
  --navy: #003A5D;
  --band-ink: #FFFFFF;
  --orange: #F67400;
  --orange-on: #1F1300;
  --orange-text: #B85600;
  --orange-soft: #FFF1E5;
  --win: #003A5D;
  --win-ink: #FFFFFF;
  --up: #2E7D4F;
  --down: #B3261E;
  --shadow: rgba(0, 40, 70, 0.10);
  --down-ink: #FFFFFF;
  --admin: #333F48;
  --admin-ink: #FFFFFF;

  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1926; --surface: #102536; --tint: #0E2131; --ink: #E7EDF1; --muted: #98A8B4;
    --line: #1F3A50; --chip: #183248; --navy: #003A5D; --band-ink: #FFFFFF;
    --orange: #F67400; --orange-on: #1F1300; --orange-text: #FF9440; --orange-soft: #2A2016;
    --win: #5CB8B2; --win-ink: #0B1926; --up: #6BCB8B; --down: #F2837B; --shadow: rgba(0, 0, 0, 0.35);
    --down-ink: #2A0B08; --admin: #2B3842; --admin-ink: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1926; --surface: #102536; --tint: #0E2131; --ink: #E7EDF1; --muted: #98A8B4;
  --line: #1F3A50; --chip: #183248; --navy: #003A5D; --band-ink: #FFFFFF;
  --orange: #F67400; --orange-on: #1F1300; --orange-text: #FF9440; --orange-soft: #2A2016;
  --win: #5CB8B2; --win-ink: #0B1926; --up: #6BCB8B; --down: #F2837B; --shadow: rgba(0, 0, 0, 0.35);
  --down-ink: #2A0B08; --admin: #2B3842; --admin-ink: #FFFFFF;
  color-scheme: dark;
}

[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header band */
.band {
  background: var(--navy);
  color: var(--band-ink);
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--orange);
}
.band .court {
  position: absolute;
  right: -60px;
  top: 50%;
  width: 560px;
  max-width: none;
  transform: translateY(-50%);
  opacity: 0.13;
  pointer-events: none;
}
.court rect, .court line { fill: none; stroke: var(--band-ink); stroke-width: 3; }
.court .net { stroke-width: 5; stroke-dasharray: 2 6; }
.band .wrap { position: relative; padding-block: 20px 0; }
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-name { display: flex; align-items: center; gap: 14px; }
.mark { width: 48px; height: 48px; flex: none; }
.mark .ball { fill: var(--orange); }
.mark .hole { fill: var(--navy); }
.mark .shine { fill: none; stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; opacity: 0.45; }
.wordmark { margin: 0; line-height: 1; }
.wordmark .crush {
  display: block;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--orange);
}
.wordmark .league {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 4px;
}
.season-name { font-size: 13px; opacity: 0.78; margin-top: 5px; }
.sample {
  color: var(--band-ink);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
  letter-spacing: 0.02em;
}
.band nav {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.band nav a {
  color: var(--band-ink);
  opacity: 0.78;
  padding: 10px 12px 10px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  white-space: nowrap;
}
.band nav a.nav-admin { margin-left: auto; }
.band nav a:hover { opacity: 1; }
.band nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--orange); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px;
}

/* Shared page head */
.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 4px;
}
h1 {
  font-weight: 900;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.head p { color: var(--muted); margin: 8px 0 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin: 0 0 6px;
}
.seg {
  display: inline-flex;
  background: var(--chip);
  border-radius: 10px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px var(--shadow);
}
.btn {
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  background: var(--orange);
  color: var(--orange-on);
}
.btn.quiet { background: var(--chip); color: var(--ink); }
.btn.small { font-size: 14px; padding: 6px 12px; }
.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.sheet h2, .side h2 {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

/* ---------- This Week ---------- */
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--orange);
  color: var(--orange-on);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  vertical-align: middle;
}
.live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-on);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }
.tw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.tw-main, .side { display: grid; gap: 16px; min-width: 0; }

.mine label { display: block; font-weight: 700; margin-bottom: 6px; }
.mine select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.mine-out { margin-top: 12px; display: grid; gap: 8px; }
.mine-out:empty { display: none; }
.mine-line { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.mine-line .k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mine-line .v { font-weight: 700; }
.mine-line .v.big { font-size: 20px; font-weight: 900; }

.rounds-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rounds-head h2 { font-weight: 900; font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.rounds { display: grid; gap: 12px; }
.round {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.round.now { border: 2px solid var(--orange); padding: 13px; }
.round.done { background: var(--tint); }
.round-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.round-top h3 { margin: 0; font-size: 18px; font-weight: 900; }
.status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 9px;
}
.status.final { background: var(--chip); color: var(--muted); }
.status.now { background: var(--orange); color: var(--orange-on); }
.status.next { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange-text); }
.status.later { color: var(--muted); padding-left: 0; }
.sits { margin-left: auto; font-size: 14px; color: var(--muted); }
.sits b { color: var(--ink); font-weight: 700; }
.courts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.match {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.match-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px 0;
}
.edit-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.edited-note { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
}
.team + .team { border-top: 1px dashed var(--line); }
.team .names { min-width: 0; font-weight: 600; }
.team .sc { font-weight: 900; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--muted); }
.team.won .names { font-weight: 700; }
.team.won .sc { color: var(--ink); }
.amp { color: var(--muted); font-weight: 400; margin: 0 2px; }
.subtag {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--chip);
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 3px;
  vertical-align: 1px;
}
.me { color: var(--orange-text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.match-foot { padding: 8px 10px 10px; border-top: 1px solid var(--line); }
.entry { display: grid; gap: 8px; }
.entry-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.entry input {
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  width: 64px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
}
.entry input.pin { width: 84px; letter-spacing: 0.3em; }
.entry .lbl { font-size: 13px; color: var(--muted); }
.entry .err { color: var(--down); font-size: 14px; font-weight: 600; }
.entry .hint { color: var(--muted); font-size: 13px; }
.playing-note { font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.tonight { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.tonight th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted);
  font-weight: 700; text-align: left; padding: 0 4px 6px; border-bottom: 1px solid var(--line);
}
.tonight td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.tonight tr:last-child td { border-bottom: 0; }
.tonight .num { text-align: right; }
.tonight .avg { font-weight: 900; font-size: 17px; }
.tonight .who-sub { display: block; font-size: 12px; color: var(--muted); }
.tonight tr.me-row td { background: var(--orange-soft); }

.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.who-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.who-list .st { font-size: 13px; color: var(--muted); }
.who-list .st.sub { color: var(--ink); font-weight: 600; }
.who-list .st.ff { color: var(--down); font-weight: 600; }
.who-count { color: var(--muted); font-size: 14px; margin: -4px 0 10px; }

.copy-fallback {
  width: 100%;
  min-height: 140px;
  font: inherit;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px var(--shadow);
  z-index: 20;
}

/* ---------- Leaderboard ---------- */
.track { margin-block: 18px 22px; }
.pips { display: flex; gap: 4px; align-items: center; }
.pip { flex: 1 1 0; height: 8px; border-radius: 2px; background: var(--line); }
.pip.done { background: var(--win); }
.pip.next { background: var(--surface); box-shadow: inset 0 0 0 2px var(--orange); }
.pip.champ { background: var(--orange); }
.pip.champ.first { margin-left: 10px; }
.track-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.track-labels strong { color: var(--ink); font-weight: 700; }
.track-labels .champ-label { color: var(--orange-text); font-weight: 600; }
.board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.scroll { overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.board th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
  white-space: nowrap;
}
.board td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board tbody tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; }
.rank { font-weight: 900; font-size: 24px; width: 52px; text-align: center; line-height: 1; }
.rank .r1 {
  display: inline-block;
  min-width: 34px;
  padding: 5px 0 4px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--orange-on);
}
.move { width: 44px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.move-sm { display: none; font-size: 12px; font-weight: 700; margin-top: 3px; }
.up { color: var(--up); }
.down { color: var(--down); }
.same { color: var(--muted); }
.who button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.who button:hover .nm { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.caret { display: inline-block; color: var(--muted); font-size: 11px; margin-left: 4px; transition: transform 0.15s; }
.who button[aria-expanded="true"] .caret { transform: rotate(180deg); }
.tags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 2px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  white-space: nowrap;
}
.tag.ff { background: transparent; color: var(--down); box-shadow: inset 0 0 0 1px var(--down); }
.line-sm { display: none; color: var(--muted); font-size: 14px; margin-top: 2px; }
.pts { font-weight: 900; font-size: 24px; line-height: 1; text-align: right; white-space: nowrap; }
.form { display: flex; gap: 3px; }
.form i {
  width: 19px; height: 19px; border-radius: 4px; font-style: normal;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.form i.W { background: var(--win); color: var(--win-ink); }
.form i.L { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
tr.cut td { padding: 0; border-bottom: 0; }
.cut-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-text);
  background: var(--tint);
}
.cut-line .flag {
  background: var(--orange);
  color: var(--orange-on);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tr.detail td { background: var(--tint); padding: 4px 10px 16px 62px; }
.detail-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.nights { display: flex; flex-wrap: wrap; gap: 6px; }
.night {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 10px 5px;
  min-width: 66px;
}
.night b { display: block; font-weight: 900; font-size: 19px; line-height: 1.1; }
.night small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.night.ff { border-color: var(--down); }
.night.ff b { color: var(--down); }
.night.top { box-shadow: inset 0 0 0 2px var(--orange); border-color: transparent; }
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-block: 24px 12px;
}
.example-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.example-score b { font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1; }
.calc { display: grid; gap: 8px; }
.calc div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.calc .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.calc .eq { color: var(--muted); }
.calc .v { font-weight: 900; font-size: 26px; line-height: 1; }
.calc .v.win { color: var(--orange-text); }
dl.rules { margin: 0; display: grid; gap: 10px; }
dl.rules div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
dl.rules div:first-child { border-top: 0; padding-top: 0; }
dt { font-weight: 700; }
dd { margin: 0; color: var(--muted); }

/* ---------- Schedule ---------- */
.sched-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sum-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  color: var(--muted);
}
.sum-chip b { color: var(--ink); font-weight: 900; }
.sum-chip.hot { background: var(--orange); border-color: var(--orange); color: var(--orange-on); }
.sum-chip.hot b { color: var(--orange-on); }
.month { margin-top: 24px; }
.month h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.dates { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.date-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.date-row:first-child { border-top: 0; }
.cal {
  text-align: center;
  line-height: 1;
  border-radius: 10px;
  padding: 7px 0 6px;
  background: var(--tint);
  border: 1px solid var(--line);
}
.cal .dow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.cal .day { font-size: 26px; font-weight: 900; margin-top: 2px; }
.date-row.tonight { background: var(--orange-soft); }
.date-row.tonight .cal { background: var(--orange); border-color: var(--orange); color: var(--orange-on); }
.date-row.tonight .cal .dow { color: var(--orange-on); }
.date-row.champ .cal { box-shadow: inset 0 0 0 2px var(--orange); border-color: transparent; }
.row-title { font-weight: 700; font-size: 17px; }
.row-meta { font-size: 14px; color: var(--muted); }
.row-meta b { color: var(--ink); font-weight: 700; }
.flag-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
  background: var(--orange-soft);
  color: var(--orange-text);
  box-shadow: inset 0 0 0 1px var(--orange);
  margin-left: 6px;
  vertical-align: 2px;
  white-space: nowrap;
}
.row-side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.linkish {
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-text);
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.results { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.res-chip { border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; background: var(--tint); }
.res-chip b { font-weight: 900; }
.res-chip small { color: var(--muted); display: block; font-size: 12px; }
.season-break {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--tint);
  border-top: 3px solid var(--orange);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-text);
}
.status.champ { background: var(--orange); color: var(--orange-on); }
.status.skip { background: var(--chip); color: var(--ink); }
.status.cancel { box-shadow: inset 0 0 0 1.5px var(--down); color: var(--down); }
.sched-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }

/* ---------- Rules ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fact b { display: block; font-weight: 900; font-size: 18px; line-height: 1.2; }
.fact span { color: var(--muted); font-size: 14px; }
.rules-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.toc { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); display: grid; gap: 2px; }
.toc button {
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  white-space: nowrap;
}
.toc button:hover { color: var(--ink); background: var(--chip); }
.toc button[aria-current="true"] { color: var(--ink); border-left-color: var(--orange); background: var(--surface); }
.rule-secs { display: grid; gap: 14px; min-width: 0; }
.rule-sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  scroll-margin-top: calc(16px + env(safe-area-inset-top, 0px));
}
.rule-sec h2 { font-weight: 900; font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.rule-sec p { margin: 0 0 8px; max-width: 65ch; }
.rule-sec ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; max-width: 65ch; }
.rule-sec li::marker { color: var(--orange); }
.calc-box {
  margin-top: 14px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.calc-box h3 { margin: 0; font-size: 15px; font-weight: 900; }
.calc-in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calc-in label { color: var(--muted); font-size: 14px; }
.calc-in input {
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  width: 64px;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.calc-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.calc-out > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.calc-out .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.calc-out .v { display: block; font-weight: 900; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-out .v.win { color: var(--orange-text); }
.calc-out small { color: var(--muted); font-size: 13px; }
.calc-err { color: var(--down); font-weight: 600; font-size: 14px; }
.ex-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.ex-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted);
  text-align: left; padding: 0 8px 6px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.ex-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.ex-table tr:last-child td { border-bottom: 0; }
.ex-table .num { text-align: right; font-weight: 700; }
.ex-table th.num { text-align: right; }
.pods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.pod-night { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--tint); }
.pod-night h3 { margin: 0 0 2px; font-size: 15px; font-weight: 900; }
.pod-night .when { font-size: 13px; color: var(--muted); }
.pod { border-radius: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.pod.top { box-shadow: inset 0 0 0 2px var(--orange); border-color: transparent; }
.pod b { display: block; font-weight: 700; }
.pod span { font-size: 14px; color: var(--muted); }
.pod-move { font-size: 13px; font-weight: 700; color: var(--orange-text); margin-top: 8px; }

/* ---------- Admin ---------- */
.muted { color: var(--muted); }
.admin-band { background: var(--admin); color: var(--admin-ink); }
.admin-band .wrap { display: flex; align-items: center; gap: 8px 14px; padding-block: 8px; flex-wrap: wrap; }
.scope { display: flex; align-items: center; gap: 8px; min-width: 0; }
.scope.league { border-left: 1px solid rgba(255, 255, 255, 0.28); padding-left: 14px; }
.scope-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.72; white-space: nowrap; }
.season-select {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--admin-ink);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 5px 8px;
  max-width: 220px;
}
.season-select option { color: var(--ink); background: var(--surface); }
.pub-select {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
}
.pub-select option { text-transform: none; color: var(--ink); }
.scope-mini {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.admin-tag {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--orange-on);
  border-radius: 4px;
  padding: 2px 8px;
  flex: none;
}
.admin-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; min-width: 0; }
.admin-tabs button {
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--admin-ink);
  opacity: 0.8;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tabs button[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.admin-tabs button:disabled { opacity: 0.45; cursor: default; }
.admin-out {
  background: none;
  border: 0;
  color: var(--admin-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  flex: none;
  margin-left: auto;
}
.login { max-width: 420px; margin: 32px auto; }
.login label { display: block; font-weight: 700; margin: 14px 0 6px; }
.login input {
  width: 100%;
  font: inherit;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.login .hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.login .err { color: var(--down); font-weight: 600; font-size: 14px; margin-top: 8px; }
.ci-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 20px; }
.roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.roster-row:first-child { border-top: 0; padding-top: 0; }
.roster-name { font-weight: 700; min-width: 0; }
.roster-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.unset { font-weight: 700; color: var(--orange-text); }
.tri { display: inline-flex; background: var(--chip); border-radius: 9px; padding: 3px; }
.tri button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.tri button[aria-pressed="true"][data-st="in"] { background: var(--win); color: var(--win-ink); }
.tri button[aria-pressed="true"][data-st="sub"] { background: var(--orange); color: var(--orange-on); }
.tri button[aria-pressed="true"][data-st="out"] { background: var(--down); color: var(--down-ink); }
.sub-pick {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--orange-soft);
  border-radius: 10px;
  padding: 8px 10px;
}
.sub-pick label { font-size: 14px; font-weight: 700; }
.sub-pick select, .sub-pick input {
  font: inherit;
  font-size: 15px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sum-list li { display: flex; justify-content: space-between; gap: 8px; }
.sum-list b { font-weight: 900; font-variant-numeric: tabular-nums; }
.warn { margin-top: 10px; background: var(--orange-soft); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.pin-big { font-size: 34px; font-weight: 900; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.night-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm { background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; font-size: 14px; }
.confirm .row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { background: var(--down); color: var(--down-ink); }
.btn:disabled { opacity: 0.45; cursor: default; }
.banner {
  margin-top: 16px;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--chip);
  font-weight: 700;
}
.lineup-sec { margin-top: 20px; }
.lineup-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lu-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.lu-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted);
  font-weight: 700; text-align: left; padding: 0 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.lu-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lu-table tr:last-child td { border-bottom: 0; }
.lu-table tr.locked td { color: var(--muted); }
.lu-table .rn { font-weight: 900; white-space: nowrap; }
.lu-table .rn .status { margin-left: 4px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: 14px; }
.checks li::before { content: "✓ "; color: var(--up); font-weight: 900; }
.checks li.warnc::before { content: "! "; color: var(--orange-text); }
.empty { color: var(--muted); margin: 10px 0 0; }
.night-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 16px; padding-bottom: 2px; }
.night-chips button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.night-chips button[aria-pressed="true"] { background: var(--win); border-color: var(--win); color: var(--win-ink); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.log li { border-top: 1px solid var(--line); padding-top: 8px; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log .by { display: block; color: var(--muted); font-size: 12px; }
.impact { margin-top: 14px; border-radius: 12px; background: var(--orange-soft); padding: 12px 14px; font-size: 15px; }
.impact ul { margin: 6px 0 0; padding-left: 18px; }
.impact li::marker { color: var(--orange); }
.entry input.why { width: 100%; max-width: 340px; font-size: 15px; font-weight: 400; text-align: left; }
.sc-night-head { margin: 0; color: var(--muted); }
.pl-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pl-toolbar p { margin: 0; color: var(--muted); }
.pl-add { margin-top: 12px; }
.pl-list { margin-top: 12px; }
.pl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pl-row:first-child { border-top: 0; padding-top: 0; }
.pl-name b { font-size: 17px; font-weight: 700; }
.pl-name small, .pl-stat small { display: block; color: var(--muted); font-size: 13px; }
.pl-contact { font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.pl-contact span { display: block; }
.status.active { box-shadow: inset 0 0 0 1.5px var(--win); color: var(--ink); }
.pl-actions { display: flex; gap: 12px; justify-content: flex-end; }
.pl-edit { grid-column: 1 / -1; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.pl-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.pl-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.pl-form input {
  width: 100%;
  font: inherit;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.pl-preview { font-size: 14px; color: var(--muted); }
.pl-preview b { color: var(--ink); }
.pl-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pl-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
#admin-players .err, #admin-season .err, #admin-subs .err { color: var(--down); font-weight: 600; font-size: 14px; }
.sb-row { grid-template-columns: minmax(0, 1fr) auto; }
.sb-hist { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.sb-hist .res-chip { font-size: 14px; }
.tonight td.at-limit { color: var(--down); font-weight: 700; }
.du-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 150px auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.du-row:first-child { border-top: 0; padding-top: 0; }
.du-row input {
  font: inherit;
  font-size: 15px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.du-money { display: flex; align-items: center; gap: 4px; }
.du-money span { color: var(--muted); font-weight: 700; }
.du-name b { font-weight: 700; }
.du-name small { display: block; font-size: 13px; color: var(--muted); }
.du-note { grid-column: 1 / -1; }
.du-acts { display: flex; gap: 10px; justify-content: flex-end; }
.status.paid { background: var(--win); color: var(--win-ink); }
.status.part { background: var(--orange-soft); color: var(--orange-text); box-shadow: inset 0 0 0 1px var(--orange); }
.status.owed { box-shadow: inset 0 0 0 1.5px var(--down); color: var(--down); }
.du-amount { display: flex; align-items: center; gap: 6px; }
.du-amount input {
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  width: 100px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.du-dollar { font-size: 22px; font-weight: 900; color: var(--muted); }
.du-big { font-size: 30px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.du-meter { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; margin: 10px 0 8px; }
.du-meter span { display: block; height: 100%; background: var(--win); border-radius: 999px; }
.ss-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ss-row:first-child { border-top: 0; padding-top: 0; }
.ss-date { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-what { min-width: 0; }
.ss-what .t { font-weight: 700; }
.ss-what .m { font-size: 14px; color: var(--muted); }
.ss-row.off .t, .ss-row.off .ss-date { color: var(--muted); }
.ss-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.ss-inline {
  grid-column: 1 / -1;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}
.ss-inline input, .ss-addrow input, .ss-addrow select {
  font: inherit;
  font-size: 15px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.ss-inline input { flex: 1 1 220px; }
.ss-add { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ss-addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ss-addrow > label { font-weight: 700; font-size: 14px; width: 100%; }
.ss-addrow input.grow { flex: 1 1 200px; }
.ss-form { display: grid; gap: 10px; }
.ss-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ss-form input, .ss-form select {
  width: 100%;
  font: inherit;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.ss-form .hint { font-size: 13px; color: var(--muted); margin-top: 3px; }
.ss-form .check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; margin: 0; }
.ss-form .check input { width: auto; }
.ss-form .ro { font-size: 15px; }
.ns-box { margin-top: 16px; display: grid; gap: 14px; }
.ns-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.ns-players { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ns-players label { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ns-sum { font-size: 14px; color: var(--muted); margin: 0; }
.ns-sum b { color: var(--ink); }
.ns-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ns-date {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  background: var(--surface);
  cursor: pointer;
}
.ns-date.flagged { box-shadow: inset 0 0 0 1.5px var(--orange); border-color: transparent; }
.ns-date small { display: block; color: var(--orange-text); font-weight: 700; font-size: 12px; }
.ns-date.skipped { opacity: 0.55; }
.ns-date.skipped span:first-of-type { text-decoration: line-through; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 14px;
  padding-block: 20px 32px;
}
footer strong { color: var(--ink); font-weight: 700; }

/* ---------- Home ---------- */
a.brand-name { color: inherit; text-decoration: none; }
a.btn { display: inline-block; text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; margin-top: 20px; padding: 22px; }
.hero h1 { margin-top: 2px; }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; font-size: 17px; }
.hero-status b { font-weight: 900; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-track { margin-block: 22px 0; }
.hero-top { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-top h2 { font-size: 17px; margin-bottom: 0; }
.hero-top .muted { font-size: 13px; margin: 0 0 6px; }
.top3 { list-style: none; margin: 0 0 8px; padding: 0; }
.top3 li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.top3 li:last-child { border-bottom: 0; }
.t3-rank { font-weight: 900; font-size: 19px; text-align: center; line-height: 1; padding: 4px 0 3px; }
.top3 li:first-child .t3-rank { background: var(--orange); color: var(--orange-on); border-radius: 8px; }
.t3-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t3-pts { font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums; }
.sec-head { margin: 36px 0 12px; }
.sec-title { font-weight: 900; font-size: 28px; letter-spacing: -0.01em; margin: 0; line-height: 1.05; }
.sec-head p { margin: 6px 0 0; font-size: 15px; }
.cup { width: 18px; height: 18px; color: var(--orange); fill: currentColor; flex: none; vertical-align: -3px; }
td.titles { white-space: nowrap; }
td.titles .none { color: var(--muted); }
td.titles small { font-weight: 900; font-size: 14px; margin-left: 3px; }
.night b .cup { width: 16px; height: 16px; vertical-align: -2px; margin-right: 2px; }
.at-note { color: var(--muted); font-size: 14px; margin: 10px 2px 0; }
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 40px; }
.scard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; display: grid; gap: 6px; align-content: start;
}
.scard.now { box-shadow: inset 0 0 0 2px var(--orange); border-color: transparent; }
.scard-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.scard .status { white-space: nowrap; }
.scard h3 { font-weight: 900; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.scard p { margin: 0; }
.scard-meta { color: var(--muted); font-size: 14px; }
.scard-champ { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-top: 4px !important; }
.scard-champ .k {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text);
}
.scard-champ b { font-weight: 900; }
.scard-links { display: flex; gap: 16px; margin-top: 4px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-top { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 680px) {
  .hero { padding: 18px; }
  .sec-title { font-size: 24px; }
}

@media (max-width: 820px) {
  .tw-grid { grid-template-columns: minmax(0, 1fr); }
  .ci-grid { grid-template-columns: minmax(0, 1fr); }
  .rules-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .toc button { border-left: 0; border-radius: 999px; background: var(--chip); padding: 6px 12px; }
  .toc button[aria-current="true"] { background: var(--orange); color: var(--orange-on); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hide-sm { display: none; }
  .line-sm, .move-sm { display: block; }
  .board th, .board td { padding: 11px 6px; }
  .rank { width: 40px; font-size: 21px; }
  .pts { font-size: 21px; }
  .who button { font-size: 16px; }
  tr.detail td { padding-left: 46px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  dl.rules div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wordmark .crush { font-size: 27px; }
  .mark { width: 42px; height: 42px; }
  .courts { grid-template-columns: minmax(0, 1fr); }
  .sits { margin-left: 0; width: 100%; }
  .pods { grid-template-columns: minmax(0, 1fr); }
  .pl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-contact, .pl-stat { grid-column: 1 / -1; }
  .pl-actions { grid-column: 2; grid-row: 1; }
  .pl-form { grid-template-columns: minmax(0, 1fr); }
  .ss-row { grid-template-columns: minmax(0, 1fr); }
  .du-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .du-name { grid-column: 1 / -1; }
  .du-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .ss-acts { justify-content: flex-start; }
  .ns-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .date-row { grid-template-columns: 52px minmax(0, 1fr); }
  .row-side { grid-column: 2; justify-content: flex-start; }
  .results { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { transition: none; }
  .live i { animation: none; }
}

/* ---------- Build additions ---------- */
.ci-pick { display: grid; gap: 4px; }
.ci-pick label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ci-pick select, .sub-pick select {
  font: inherit;
  font-size: 15px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  max-width: 260px;
}
#admin-subs .err, #admin-checkin .err { color: var(--down); font-weight: 600; font-size: 14px; }
.champ-banner {
  background: var(--orange);
  color: var(--orange-on);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 18px;
}
.champ-banner .k { font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.champ-banner b { display: block; font-size: 32px; font-weight: 900; line-height: 1.05; margin-top: 2px; }
.champ-banner span { font-size: 15px; font-weight: 600; }
.champ-sheet { margin-top: 18px; }
.champ-sheet h2 { margin: 0 0 4px; }
.pod-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.pod-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; padding: 5px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.pod-list li .r { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pod-list li.out { opacity: 0.6; }
.move-tag { font-size: 11px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.move-tag.upm { background: var(--win); color: var(--win-ink); }
.move-tag.downm { box-shadow: inset 0 0 0 1px var(--muted); color: var(--muted); }
.places { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 4px; font-size: 16px; }
.places li::marker { font-weight: 900; color: var(--orange-text); }
