:root {
  --bg: #f5f4fa; --card: #fff; --ink: #17142b; --muted: #6b6880; --line: #e6e3f0;
  --brand: #14112b; --accent: #ffcf4a; --live: #e5243b; --final: #2a2740; --up: #3a6df0;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,17,43,.06), 0 4px 16px rgba(20,17,43,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0c1c; --card: #1a1730; --ink: #f1effa; --muted: #a29fb8; --line: #2c2847; --final: #cfcbe6; --shadow: none; }
}
@font-face {
  font-family: Anton;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-regular.woff2") format("woff2");
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--up); }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 14px; }
main.wrap { flex: 1; padding-top: 10px; padding-bottom: 30px; }
.muted { color: var(--muted); }

.site-header { background: var(--brand); color: #fff; padding: 14px 0 12px; padding-top: max(14px, env(safe-area-inset-top)); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 220px; }
.site-header h1 { margin: 0; font-size: 1.12rem; line-height: 1.25; font-weight: 700; letter-spacing: .01em; min-width: 0; }
.site-header .brand { color: var(--accent); }
.site-header .dash { opacity: .6; }
.title-home { color: inherit; text-decoration: none; }
.title-home:hover, .title-home:focus-visible { text-decoration: none; }
.title-home:hover .brand, .title-home:focus-visible .brand { color: #ffe389; }
.title-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.home-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 75%, #fff);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
}
.home-btn:hover, .home-btn:focus-visible {
  background: var(--accent);
  color: #14112b;
  border-color: var(--accent);
}
.home-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.home-icon { display: block; flex-shrink: 0; }
.header-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px 10px; flex-wrap: wrap; margin-left: auto; }
.handle { color: #cfcaf5; text-decoration: none; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.handle:hover { color: #fff; text-decoration: underline; }
@media (max-width: 430px) {
  .site-header { padding: 10px 0 10px; padding-top: max(10px, env(safe-area-inset-top)); }
  .site-header h1 { font-size: 1rem; }
  .home-btn { height: 28px; padding: 0 9px 0 7px; font-size: .72rem; }
  .handle { font-size: .75rem; }
}
.visit-count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #14112b;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.datebar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.datebar .wrap { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.nav-btn, .today-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; height: 40px; min-width: 40px; font-size: 1.3rem; cursor: pointer; }
.today-btn { font-size: .85rem; font-weight: 600; padding: 0 12px; }
.date-label {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  text-align: center;
  font: inherit;
  font-weight: 800;
  font-size: .92rem;
  color: var(--brand);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--line));
  cursor: pointer;
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.date-cal-icon { flex: 0 0 auto; color: var(--brand); }
.date-find { white-space: nowrap; font-weight: 800; line-height: 1.1; }
.date-find::after { content: " ▾"; color: var(--muted); font-size: .8em; font-weight: 700; }
.date-text {
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.date-label:hover, .date-label:focus-visible { background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.date-label:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.date-label[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--card)); border-color: var(--accent); }
@media (max-width: 620px) {
  .date-text { display: none; }
  .date-label { font-size: .86rem; padding: 0 8px; gap: 5px; }
  .datebar .wrap { gap: 6px; }
  .nav-btn, .today-btn { height: 38px; min-width: 36px; }
  .today-btn { padding: 0 9px; font-size: .8rem; }
}

.cal-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 8;
  padding-bottom: 10px;
}
.cal-pop .wrap {
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 12.5rem);
  overflow: hidden;
  background: #14112b;
  color: #f8f4ff;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #14112b);
  border-radius: 16px;
  padding: 12px 10px 10px;
  margin-top: 6px;
  box-shadow: 0 14px 36px rgba(20, 17, 43, .32);
}
.cal-lead {
  margin: 0 0 8px;
  flex: 0 0 auto;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex: 0 0 auto;
}
.cal-month {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--accent);
}
.cal-nav {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, #14112b);
  background: transparent;
  color: var(--accent);
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
}
.cal-nav:hover, .cal-nav:focus-visible { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.cal-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-grid { display: grid; gap: 2px; flex: 0 0 auto; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wday {
  text-align: center;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cfcaf5;
  padding: 4px 0 6px;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 4px 0 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #f8f4ff;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  line-height: 1.1;
}
.cal-day:hover, .cal-day:focus-visible { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.cal-day.is-outside { color: #8b86a8; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 80%, #fff); }
.cal-day.is-selected {
  background: var(--accent);
  color: #14112b;
  border-color: var(--accent);
}
.cal-day.is-selected:hover, .cal-day.is-selected:focus-visible { background: #ffe389; }
.cal-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 12px;
  margin-top: 1px;
}
.cal-mark-none { visibility: hidden; }
.cal-mark-upcoming::before,
.cal-mark-final::before,
.cal-mark-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cal-mark-upcoming::before { background: var(--accent); }
.cal-mark-final::before { background: #cfcaf5; }
.cal-mark-live::before { background: var(--live); box-shadow: 0 0 0 2px color-mix(in srgb, var(--live) 35%, transparent); }
.cal-count {
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.cal-mark-final .cal-count { color: #cfcaf5; }
.cal-mark-live .cal-count { color: var(--live); }
.cal-day.is-selected .cal-mark-upcoming::before,
.cal-day.is-selected .cal-mark-final::before { background: #14112b; }
.cal-day.is-selected .cal-mark-live::before { background: var(--live); }
.cal-day.is-selected .cal-count,
.cal-day.is-selected .cal-mark-final .cal-count { color: #14112b; }
.cal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 10px;
  flex: 0 0 auto;
}
.cal-today, .cal-hint {
  border: 1px solid color-mix(in srgb, var(--accent) 50%, #14112b);
  background: var(--accent);
  color: #14112b;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}
.cal-hint {
  background: transparent;
  color: var(--accent);
  flex: 1 1 auto;
  text-align: center;
}
.cal-today:hover, .cal-today:focus-visible, .cal-hint:hover, .cal-hint:focus-visible { filter: brightness(1.06); }
.cal-today:focus-visible, .cal-hint:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cfcaf5;
}
.cal-legend li { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-legend .is-final::before { background: #cfcaf5; }
.cal-legend .is-live::before { background: var(--live); }
.cal-day-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 28%, #14112b);
}
.cal-day-heading {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--accent);
}
.cal-day-empty {
  margin: 0 0 8px;
  font-size: .88rem;
  color: #cfcaf5;
}
.cal-meet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cal-meet {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title status"
    "meta meta";
  gap: 2px 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #14112b);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, #1c1735);
  color: #f8f4ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cal-meet:hover, .cal-meet:focus-visible {
  background: color-mix(in srgb, var(--accent) 18%, #1c1735);
  border-color: var(--accent);
}
.cal-meet:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-meet-title {
  grid-area: title;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.25;
  min-width: 0;
}
.cal-meet-status {
  grid-area: status;
  align-self: start;
  justify-self: end;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}
.cal-meet-status.is-upcoming { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.cal-meet-status.is-live { background: var(--live); color: #fff; }
.cal-meet-status.is-final { background: color-mix(in srgb, #cfcaf5 22%, transparent); color: #cfcaf5; }
.cal-meet-meta {
  grid-area: meta;
  font-size: .75rem;
  line-height: 1.35;
  color: #d9d5ee;
}
.cal-meet-scores { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-view-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, #14112b);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.cal-view-day:hover, .cal-view-day:focus-visible { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cal-view-day:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 430px) {
  .cal-day { min-height: 42px; font-size: .85rem; }
  .cal-pop .wrap { padding: 10px 8px 10px; }
  .cal-meet-list { max-height: none; }
  .cal-lead { font-size: .78rem; margin-bottom: 6px; }
}

.banner { background: #fff6d6; color: #4a3b00; border: 1px solid #f0dc8c; border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; font-size: .9rem; line-height: 1.5; }
.banner a { color: #6b4e00; font-weight: 600; }
.status-line { font-size: .85rem; color: var(--muted); margin: 6px 2px 10px; min-height: 1.2em; }
.livecount { color: var(--live); }

.meets { display: grid; gap: 12px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.card.live { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.card-head { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 12px 14px 10px; cursor: pointer; text-decoration: none; box-sizing: border-box; }
a.card-head:hover .open-meet-cta, a.card-head:focus-visible .open-meet-cta { color: var(--brand); }
.meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); padding-right: 64px; flex-wrap: wrap; }
.mtitle { font-size: 1rem; margin: 6px 0 8px; line-height: 1.3; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; }
.badge.live { background: var(--live); color: #fff; }
.badge.final { background: var(--final); color: var(--card); }
.badge.upcoming { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.badge.past { background: var(--line); color: var(--muted); }
.badge .rot { background: rgba(255,255,255,.25); border-radius: 6px; padding: 0 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.teams { list-style: none; margin: 0; padding: 0; }
.team-row { display: grid; grid-template-columns: 18px 6px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: 0; }
.place { font-size: .8rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 6px; height: 18px; border-radius: 3px; background: var(--line); vertical-align: middle; }
.tname { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.home { font-style: normal; font-size: .7rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.tscore { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.chev { display: block; margin-top: 6px; font-size: .78rem; color: var(--up); font-weight: 600; }
.share { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.share:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--card)); }

.detail { border-top: 1px solid var(--line); padding: 10px 14px 14px; }
.detail h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0; }
.loc { margin: 0 0 4px; font-size: .85rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rot-table { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
.rot-table th, .rot-table td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.rot-table th[scope=row] { text-align: left; font-weight: 700; }
.rot-table th[scope=row] .swatch { margin-right: 6px; height: 14px; }
.rot-table thead th { font-size: .72rem; color: var(--muted); font-weight: 700; }
.rot-table td .ev { display: block; font-size: .66rem; color: var(--muted); font-weight: 700; }
.rot-table td.inprog { background: color-mix(in srgb, var(--live) 9%, transparent); }
.rot-table td.bye { color: var(--muted); font-size: .75rem; }
.rot-table .tot { font-weight: 800; }

.tabs { display: flex; gap: 6px; margin: 14px 0 8px; overflow-x: auto; }
.tab { flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 6px; font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .tab.on { background: var(--accent); color: #14112b; border-color: var(--accent); } }
.tab .tl { display: none; font-weight: 500; }
@media (min-width: 600px) { .tab .tl { display: inline; } }

.lineups { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lineups { grid-template-columns: 1fr 1fr; } }
.lineup { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.lineup-head { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 4px; }
.lineup-head .muted { font-size: .75rem; }
.lscore { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.glist, .lb { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.glist li, .lb li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; padding: 4px 0; border-top: 1px solid var(--line); align-items: baseline; }
.glist li:first-child, .lb li:first-child { border-top: 0; }
.ord { color: var(--muted); font-size: .75rem; text-align: right; font-variant-numeric: tabular-nums; }
.gscore { font-weight: 700; font-variant-numeric: tabular-nums; }
.glist li.dropped .gscore { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.glist li.exh { color: var(--muted); }
.glist em { font-style: normal; font-size: .66rem; font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 0 3px; }
.leaders { margin-top: 12px; }
.leaders h4 { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lb .muted { font-size: .78rem; }
.legend { font-size: .75rem; margin: 10px 0 4px; }
.links { font-size: .85rem; margin: 6px 0 0; }

.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.empty h2 { font-size: 1.05rem; margin: 0 0 8px; }
.empty p { margin: 8px 0; line-height: 1.5; }
.jump { font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); padding: 14px 0 max(18px, env(safe-area-inset-bottom)); }
.site-footer p { margin: 4px 0; line-height: 1.5; }
.site-footer a { color: inherit; font-weight: 600; }
.card { scroll-margin-top: 64px; }
@media (max-width: 420px) {
  .rot-table { font-size: .8rem; }
  .rot-table th, .rot-table td { padding: 5px 3px; }
}

.card.flash { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .4s; }

.team-bar { border-bottom: 1px solid var(--line); background: var(--bg); padding: 8px 0; }
.team-picker { position: relative; }
.tp-label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.tp-row { display: flex; gap: 8px; align-items: stretch; }
#team-search { flex: 1; width: 100%; height: 42px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 1rem; }
#team-search:focus, #fav-picker-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.team-list { position: absolute; z-index: 8; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px 0; max-height: min(60vh, 360px); overflow: auto; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.team-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.team-list li[role="option"]:hover, .team-list li[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 28%, var(--card)); }
.opt-name { font-weight: 600; flex: 1; }
.opt-con { font-size: .75rem; }
.team-link { color: inherit; text-decoration: none; font-weight: 700; }
.team-link:hover { color: var(--up); text-decoration: underline; }
button.card-head .team-link,
a.card-head .team-link { pointer-events: auto; }
.open-meet-cta { color: var(--up); text-decoration: none; }
a.open-meet-cta:hover, a.open-meet-cta:focus-visible { color: var(--brand); text-decoration: underline; }

.crest { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; font-weight: 800; font-size: .9rem; letter-spacing: .02em; flex-shrink: 0; text-align: center; line-height: 1.05; padding: 0 4px; }
.crest.tiny { width: 32px; height: 32px; border-radius: 8px; font-size: .58rem; }

.profile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 18px; }
.profile-back { margin: 0 0 10px; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-id h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.profile-id p { margin: 4px 0 0; }
.season-tag { font-weight: 700; }
.season-switch { font-size: .88rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 4px; padding: 10px 12px; background: color-mix(in srgb, var(--accent) 18%, var(--card)); border-radius: 12px; font-size: .92rem; }
.profile-section { margin-top: 18px; }
.profile-section h3 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.profile-meets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-row { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pm-row.next-up { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.pm-main { display: block; padding: 10px 12px; color: inherit; text-decoration: none; cursor: pointer; }
.pm-title .team-link { display: inline; }
.pm-when { display: block; font-size: .8rem; color: var(--muted); }
.pm-title { display: block; margin: 2px 0 2px; font-size: .98rem; line-height: 1.3; }
.pm-meta { font-size: .8rem; }
.pm-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 6px; font-weight: 600; }
.pm-score { font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 800; }
.pm-others { font-size: .8rem; margin-top: 2px; }
.wl { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: .72rem; font-weight: 800; }
.wl.win { background: #1d8a4b; color: #fff; }
.wl.loss { background: var(--line); color: var(--muted); }

.pulse { display: grid; gap: 10px; margin: 4px 0 10px; }
.pulse:empty, .pulse[hidden] { display: none; }
.pulse-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px 10px; }
.pulse-card h2 { margin: 0 4px 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; display: inline; }
.pulse-kicker { margin: 0 0 8px; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.pulse-preview { margin: 0 0 8px; font-size: .8rem; }
.rank-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 0 6px 4px 0; }
.rank-table th.num, .rank-table td.num { text-align: right; }
.rank-table td { padding: 4px 6px 4px 0; border-top: 1px solid var(--line); font-size: .92rem; vertical-align: baseline; }
.rank-table td.rk { width: 2.2em; font-weight: 800; color: var(--muted); }
.rank-table tr:nth-child(-n+3) td.rk { color: var(--ink); }
.rank-move { font-size: .78rem; font-weight: 800; margin-left: 4px; white-space: nowrap; }
.rank-move.up { color: #1d8a4b; }
.rank-move.down { color: var(--live); }
.rank-move.same { color: var(--muted); font-weight: 600; }
.pulse-card details { margin-top: 6px; }
.pulse-card summary { cursor: pointer; color: var(--up); font-weight: 600; font-size: .85rem; list-style: none; }
.pulse-card summary::-webkit-details-marker { display: none; }
.pulse-empty { margin: 2px 0 0; font-size: .92rem; }
.p10-count { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.p10-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.p10-list li, .aa-high { font-size: .9rem; line-height: 1.35; }
.p10-list a, .aa-high a { font-weight: 600; }
.aa-score { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.aa-who { margin: 2px 0 0; font-size: .95rem; }
.profile-rank { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 8px 0 0; }
.profile-rank .rk-num { font-size: 1.15rem; font-weight: 800; }
.profile-rank .rk-src { font-size: .8rem; color: var(--muted); }

@media (min-width: 640px) {
  .pulse { grid-template-columns: 1.3fr .9fr; align-items: start; }
  .pulse-side { display: grid; gap: 10px; }
}

/* Season highlights hero — Perfect 10s + highest AA, above rankings */
.hero { margin: 8px 0 12px; }
.hero:empty, .hero[hidden] { display: none; }
.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #1c1735 0%, #14112b 58%, #2c2154 100%);
  color: #f8f4ff;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, #14112b);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 18px 16px 16px;
}
.hero-banner::before {
  content: "";
  position: absolute; left: 8%; right: 8%; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 0 0 3px 3px;
}
.hero-grid { display: grid; gap: 18px; position: relative; z-index: 1; }
@media (min-width: 640px) {
  .hero-grid { grid-template-columns: 1.15fr 0.9fr; gap: 22px; align-items: start; }
}
.hero-kicker {
  margin: 0 0 6px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, #fff);
}
.hero-10-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ten-mark {
  margin: 0;
  font-size: clamp(2.8rem, 12vw, 3.6rem);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.05em;
  color: var(--accent);
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 50%, transparent);
  font-variant-numeric: tabular-nums;
}
.ten-count-wrap { padding-bottom: 2px; }
.ten-count {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.ten-count strong { color: var(--accent); }
.ten-sub { margin: 2px 0 0; font-size: .85rem; color: #cfcaf5; }
.hero-empty { margin: 8px 0 0; font-size: .95rem; color: #cfcaf5; line-height: 1.45; }
.hero-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.hero-list li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: color-mix(in srgb, #14112b 55%, #3a3360);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.hero-list li.is-new {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  animation: hero-new-pulse 1.6s ease-out 2;
}
.hero-list .who { font-weight: 700; }
.hero-list .meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .8rem; color: #cfcaf5; }
.hero-list a { color: var(--accent); font-weight: 600; }
.hero-banner summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .88rem; list-style: none; margin-top: 10px; }
.hero-banner summary::-webkit-details-marker { display: none; }
.hero-new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #14112b;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  vertical-align: middle;
}
.hero-aa { position: relative; }
.aa-crown {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  margin-right: 6px;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 55%, transparent));
}
.hero-aa .aa-score {
  margin: 4px 0 8px;
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent);
  line-height: 1;
}
.hero-aa .aa-who { margin: 6px 0 0; font-size: .95rem; color: #f8f4ff; }
.hero-aa .aa-who a { color: var(--accent); }
.hero-aa .tie-note { margin: 8px 0 0; font-size: .8rem; color: #cfcaf5; }
.hero-preview { margin: 0 0 8px; font-size: .8rem; color: var(--muted); }

.sparkle, .sparkle-burst span {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: .0;
  z-index: 0;
  box-shadow: 0 0 8px var(--accent);
}
.sparkle:nth-child(1) { top: 10px; left: 12px; animation: sparkle 3.2s ease-in-out 0s infinite; }
.sparkle:nth-child(2) { top: 14px; right: 16px; width: 4px; height: 4px; animation: sparkle 2.6s ease-in-out .4s infinite; }
.sparkle:nth-child(3) { top: 44px; left: 28px; width: 5px; height: 5px; animation: sparkle 3.8s ease-in-out .8s infinite; }
.sparkle:nth-child(4) { top: 36px; right: 36px; animation: sparkle 2.9s ease-in-out 1.1s infinite; }
.sparkle:nth-child(5) { top: 18px; left: 46%; width: 3px; height: 3px; animation: sparkle 2.4s ease-in-out .6s infinite; }
.sparkle:nth-child(6) { top: 8px; right: 30%; width: 4px; height: 4px; animation: sparkle 3.5s ease-in-out 1.4s infinite; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  40% { opacity: .9; transform: scale(1) rotate(45deg); }
  70% { opacity: .2; transform: scale(.6) rotate(90deg); }
}
@keyframes hero-new-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 80%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
.hero-banner.has-new .ten-mark { animation: ten-pop .7s ease-out; }
@keyframes ten-pop {
  0% { transform: scale(.86); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle, .hero-list li.is-new, .hero-banner.has-new .ten-mark { animation: none; }
}

.rank-note { margin: 6px 0 0; font-size: .75rem; color: var(--muted); line-height: 1.4; }
.rank-stage { font-size: .72rem; color: var(--muted); font-weight: 600; margin-left: 4px; }

/* Filter bar, favorites, TV badges, weekend watch, share modal, PWA-friendly extras */
.filters { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 0 10px; margin: 0 0 4px; }
.filters::-webkit-scrollbar { display: none; }
.filters[hidden] { display: none; }
.pill { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .pill.on { background: var(--accent); color: #14112b; border-color: var(--accent); } }
.pill.has-live { border-color: color-mix(in srgb, var(--live) 50%, var(--line)); }
.pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2em; height: 1.2em; padding: 0 5px; border-radius: 999px; background: var(--live); color: #fff; font-size: .68rem; font-weight: 800; }
.pill.on .pill-count, .fav-picker-btn.has-favs .pill-count { background: color-mix(in srgb, #fff 20%, transparent); color: inherit; }
@media (prefers-color-scheme: dark) { .pill.on .pill-count { background: #14112b; color: var(--accent); } }

.star-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; background: transparent; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: 1.05rem; line-height: 1; flex-shrink: 0; padding: 0; font-family: inherit; }
.star-btn.compact { width: 28px; height: 28px; font-size: 1rem; }
.star-btn:hover, .star-btn:focus-visible { color: var(--accent); outline: none; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.star-btn:active { transform: scale(.94); background: color-mix(in srgb, var(--accent) 28%, transparent); }
.star-btn.on { color: var(--accent); text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent); }
.card.is-fav { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.fav-flag { color: #14112b; background: var(--accent); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.team-row.is-fav .tname { color: inherit; }
.live-ago { font-variant-numeric: tabular-nums; }

.tv-badge { display: inline-flex; align-items: center; background: color-mix(in srgb, var(--brand) 8%, var(--card)); color: var(--ink); border: 1px solid var(--line); font-size: .65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; text-decoration: none; }
a.tv-badge:hover { border-color: var(--up); color: var(--up); }

.fav-picker-btn { flex: 0 0 auto; height: 42px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 0 10px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.fav-picker-btn.has-favs, .fav-picker-btn[aria-expanded="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.fav-picker { position: absolute; z-index: 9; left: 0; right: 0; top: 100%; margin: 4px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 10px 8px; }
.fav-picker[hidden] { display: none; }
#fav-picker-search { width: 100%; height: 36px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 0 10px; font: inherit; margin: 4px 0 8px; }
.fav-picker-list { list-style: none; margin: 0; padding: 0; max-height: min(50vh, 360px); overflow: auto; }
.fav-group-label { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.fav-group-label:first-child { padding-top: 2px; }
.fav-empty { padding: 8px 12px; }
.fav-pick-item { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.fav-pick-item.is-fav { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.fav-star { width: 44px; height: 44px; flex: 0 0 44px; font-size: 1.25rem; }
.fav-pick-main { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 6px 10px 6px 4px; border-radius: 8px; color: inherit; text-decoration: none; cursor: pointer; }
.fav-pick-main:hover, .fav-pick-main:focus-visible { background: color-mix(in srgb, var(--accent) 22%, var(--card)); outline: none; }
.fav-pick-main:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.team-opt { display: flex; align-items: center; gap: 4px; }
.team-opt-main { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.team-list li.team-opt .star-btn { margin-right: 6px; }

.weekend-watch {
  margin: 10px 0 0;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}
.weekend-watch h2 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.ww-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ww-when { margin: 0; font-size: .8rem; font-weight: 700; color: var(--ink); }
.ww-empty { margin: 8px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.ww-count { margin: 8px 0 6px; font-size: .9rem; }
.ww-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.ww-197 { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.ww-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); text-decoration: none; color: inherit; font-weight: 600; }
a.ww-row:hover { background: color-mix(in srgb, var(--accent) 22%, var(--card)); }
.ww-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.ww-more { margin: 0 0 10px; font-size: .8rem; }
.ww-events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 520px) { .ww-events { grid-template-columns: repeat(2, 1fr); } }
.ww-ev { display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; min-width: 0; }
a.ww-ev:hover { border-color: var(--accent); }
.ww-abbr { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ww-ev-score { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.ww-ev-who, .ww-tie, .ww-ev-empty { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-list li { grid-template-columns: 1fr auto; align-items: start; }
.hero-list .who, .hero-list .meta { grid-column: 1; }
.share-mini { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: transparent; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 8px; cursor: pointer; }
.share-mini:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }

.fan-polls {
  margin: 10px 0 0;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}
.fp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.fan-polls h2 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.fp-lead { margin: 0; font-size: .85rem; font-weight: 700; color: var(--ink); }
.fp-list { display: grid; gap: 8px; margin-top: 10px; }
.fp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.fp-row:hover, .fp-row:focus-visible {
  background: color-mix(in srgb, var(--accent) 24%, var(--card));
  border-color: var(--accent);
  outline: none;
}
.fp-row:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.fp-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fp-title { font-weight: 800; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.fp-blurb { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.fp-vote {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #14112b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* Guess the 10s Giveaway — dark/gold promo card near Fan Polls */
.giveaway-card {
  margin: 10px 0 0;
  background: linear-gradient(165deg, #1c1735 0%, #14112b 58%, #2c2154 100%);
  color: #f8f4ff;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, #14112b);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 14px 14px 12px;
}
.giveaway-title {
  margin: 0;
  font-family: Anton, "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 6.4vw, 2.05rem);
  line-height: .95;
  letter-spacing: .03em;
  color: var(--accent);
}
.giveaway-sub {
  margin: 8px 0 0;
  font-size: .82rem;
  line-height: 1.4;
  color: #d9d5ee;
}
.giveaway-sub a { color: var(--accent); font-weight: 700; text-decoration: none; }
.giveaway-sub a:hover, .giveaway-sub a:focus-visible { text-decoration: underline; }
.giveaway-q {
  margin: 12px 0 0;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}
.giveaway-rules {
  margin: 8px 0 0;
  font-size: .8rem;
  color: #d9d5ee;
}
.giveaway-rules summary {
  cursor: pointer;
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  list-style: none;
}
.giveaway-rules summary::-webkit-details-marker { display: none; }
.giveaway-rules summary::after { content: " ▾"; font-size: .85em; }
.giveaway-rules[open] summary::after { content: " ▴"; }
.giveaway-rules summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.giveaway-rules ol { margin: 8px 0 0; padding-left: 1.25rem; }
.giveaway-rules li { margin: 0 0 5px; line-height: 1.4; }
.giveaway-draw { margin: 8px 0 0; line-height: 1.4; }
.giveaway-tally {
  margin: 10px 0 0;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  color: color-mix(in srgb, var(--accent) 85%, #fff);
  font-variant-numeric: tabular-nums;
}
.giveaway-tally:empty { display: none; }
.giveaway-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #14112b;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.giveaway-cta:hover { filter: brightness(1.05); }
.giveaway-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.giveaway-closed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #14112b);
  background: transparent;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
}
@media (max-width: 430px) {
  .giveaway-card { padding: 12px; }
  .giveaway-cta, .giveaway-closed { width: 100%; }
}

.share-modal { position: fixed; inset: 0; z-index: 20; background: rgba(10, 8, 22, .62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-modal[hidden] { display: none; }
.share-dialog { position: relative; width: min(420px, 100%); max-height: min(92vh, 820px); overflow: auto; background: #14112b; color: #f8f4ff; border: 1px solid color-mix(in srgb, var(--accent) 55%, #14112b); border-radius: 18px; padding: 16px 16px 18px; box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.share-dialog h2 { margin: 0 36px 10px 0; font-size: 1rem; }
.share-close { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: #cfcaf5; font-size: 1.4rem; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.share-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.share-preview { background: #0e0c1c; border-radius: 12px; overflow: hidden; }
.share-preview canvas { display: block; width: 100%; height: auto; }
.share-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
@media (min-width: 400px) { .share-actions { grid-template-columns: 1fr 1fr 1fr; } }
.share-act { border: 1px solid color-mix(in srgb, var(--accent) 50%, #14112b); background: var(--accent); color: #14112b; font-weight: 800; font-size: .85rem; border-radius: 10px; padding: 10px 8px; cursor: pointer; }
.share-act[data-share-copy], .share-act[data-share-sys] { background: transparent; color: var(--accent); }
.share-act:hover { filter: brightness(1.05); }
.profile-id h2 { display: flex; align-items: center; gap: 8px; }

.fp-status { margin: 10px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.fp-retry, .poll-all {
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.fp-retry:hover, .poll-all:hover { background: color-mix(in srgb, var(--accent) 20%, var(--card)); }
.fp-row { cursor: pointer; }
button.fp-vote { border: 0; font: inherit; }
.poll-modal { position: fixed; inset: 0; z-index: 22; background: rgba(10, 8, 22, .62); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow: auto; }
.poll-modal[hidden] { display: none; }
body.poll-open { overflow: hidden; }
.poll-dialog {
  position: relative;
  width: min(640px, 100%);
  margin: 24px auto 32px;
  max-height: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.poll-close { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.poll-close:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); }
#poll-title { margin: 0 40px 6px 0; font-size: 1.15rem; }
.poll-sub { margin: 0 40px 8px 0; font-size: .9rem; color: var(--muted); }
.poll-note, .poll-tally { margin: 0 0 12px; font-size: .88rem; }
.poll-tally strong { font-variant-numeric: tabular-nums; }
.poll-search-label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.poll-search { display: block; width: 100%; margin-top: 6px; height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 1rem; }
.poll-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.poll-options { display: grid; gap: 6px; max-height: min(52vh, 480px); overflow: auto; margin: 0 0 12px; padding: 2px; }
.poll-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); }
.poll-opt input { margin: 0; accent-color: #14112b; flex: 0 0 auto; }
.poll-opt-copy { display: flex; flex-direction: column; min-width: 0; }
.poll-opt-name { font-weight: 800; }
.poll-opt-sub { font-size: .8rem; color: var(--muted); }
.poll-opt.is-on, .poll-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.poll-empty, .poll-error { margin: 0 0 10px; font-size: .88rem; }
.poll-error { color: var(--live); }
.poll-lock {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #14112b;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.poll-lock:hover { filter: brightness(1.05); }
.poll-lock:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.poll-results { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.poll-result { padding: 8px 2px 4px; }
.poll-result-top { display: grid; grid-template-columns: 2rem 1fr auto; gap: 8px; align-items: baseline; }
.poll-rank { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.poll-result-who { min-width: 0; }
.poll-result-who strong { display: inline; }
.poll-result-sub { display: block; font-size: .75rem; color: var(--muted); }
.poll-result-n { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.poll-pct { margin-left: 8px; font-weight: 700; color: var(--muted); }
.poll-yours { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #14112b; border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.poll-bar { display: block; height: 8px; margin: 6px 0 0 2rem; background: color-mix(in srgb, var(--ink) 10%, var(--card)); border-radius: 999px; overflow: hidden; }
.poll-bar-fill { display: block; height: 100%; background: #14112b; border-radius: 999px; }
.poll-bar-fill.is-mine, .poll-result.is-mine .poll-bar-fill { background: var(--accent); }
@media (prefers-color-scheme: dark) {
  .poll-bar-fill { background: #cfcaf5; }
  .poll-bar-fill.is-mine, .poll-result.is-mine .poll-bar-fill { background: var(--accent); }
}
.poll-all { display: block; margin: 0 auto; }
@media (max-width: 430px) {
  .poll-dialog { padding: 16px 12px 16px; margin: 8px auto 24px; }
  .fp-row { gap: 8px; }
}

/* Team profile — coaching staff + roster/season highs */
.staff-card, .roster-card {
  background: color-mix(in srgb, var(--accent) 7%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 14px;
  padding: 12px 12px 14px;
}
.staff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.staff-card h3, .roster-card h3 { margin: 0; }
.staff-src { font-size: .75rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.staff-src:hover { color: var(--up); text-decoration: underline; }
.staff-list { display: grid; gap: 10px; }
.coach {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.coach.is-head {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}
.coach-id { margin: 0 0 4px; }
.coach-id h4 { margin: 0; font-size: 1rem; line-height: 1.25; }
.coach-title {
  margin: 2px 0 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.coach.is-head .coach-title { color: #14112b; }
@media (prefers-color-scheme: dark) {
  .coach.is-head .coach-title { color: var(--accent); }
}
.coach-bio { margin: 6px 0 0; font-size: .88rem; line-height: 1.45; }
.staff-toggle {
  display: block;
  margin: 10px auto 0;
  background: none;
  border: 0;
  color: var(--up);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}
.staff-toggle:hover, .staff-toggle:focus-visible { text-decoration: underline; }
.roster-note { margin: 0 0 8px; font-size: .8rem; line-height: 1.4; }
.roster-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.roster-table { width: 100%; min-width: 540px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.roster-table th, .roster-table td { padding: 6px 8px; border-top: 1px solid var(--line); font-size: .88rem; vertical-align: baseline; }
.roster-table thead th { border-top: 0; padding-bottom: 6px; }
.roster-table th.ath, .roster-table td.ath, .roster-table tbody th.ath {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
  min-width: 8.5rem;
  box-shadow: 8px 0 8px -8px rgba(20,17,43,.18);
}
.roster-card .roster-table thead th.ath { z-index: 2; }
.roster-table th.yr, .roster-table td.yr { text-align: center; width: 3rem; }
.roster-table th.num, .roster-table td.num { text-align: right; width: 4.2rem; }
.roster-sort {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.roster-sort.is-on { color: var(--ink); }
.roster-sort:hover, .roster-sort:focus-visible { color: var(--ink); }
.roster-table .na { color: var(--muted); font-variant-numeric: normal; font-size: .8rem; }
.roster-table .is-ten {
  display: inline-block;
  background: var(--accent);
  color: #14112b;
  font-weight: 800;
  border-radius: 6px;
  padding: 0 5px;
  line-height: 1.4;
}
@media (max-width: 430px) {
  .staff-card, .roster-card { padding: 10px 8px 12px; }
  .roster-table { min-width: 500px; }
  .roster-table th, .roster-table td { padding: 6px 6px; font-size: .82rem; }
}

/* Favorite athletes: roster stars, row highlight, search/menu rows */
.roster-table tbody th.ath {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 2px;
  padding-right: 8px;
}
.roster-table .ath-star {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 1.15rem;
  margin: -6px 0;
}
.roster-table .ath-name { min-width: 0; font-weight: 650; }
.roster-table tbody tr.is-focus-athlete th,
.roster-table tbody tr.is-focus-athlete td {
  background: color-mix(in srgb, var(--accent) 42%, var(--card));
}
.roster-table tbody tr.is-focus-athlete th.ath {
  background: color-mix(in srgb, var(--accent) 42%, var(--card));
  box-shadow: 8px 0 8px -8px color-mix(in srgb, var(--accent) 55%, rgba(20,17,43,.18));
}
.roster-table tbody tr[data-athlete] { scroll-margin-top: 72px; }
.roster-table tbody tr.is-focus-athlete {
  box-shadow: inset 3px 0 0 var(--accent);
}
.roster-table tbody tr.is-focus-athlete td.num,
.roster-table tbody tr.is-focus-athlete td.yr {
  font-weight: 750;
}
.team-list .search-group-label {
  cursor: default;
  padding: 10px 12px 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-list .search-group-label:hover,
.team-list li.search-group-label[aria-disabled="true"] { background: transparent; cursor: default; }
.team-list li.athlete-opt .opt-name { flex: 0 1 auto; }
.team-list li.athlete-opt .opt-con { margin-left: auto; }
.fav-pick-item .opt-name { min-width: 0; }
.fav-pick-item.is-athlete .opt-con { margin-left: 0; }

/* How Scoring Works */
/* The Pick'em Challenge entry bar (pickem.html): same full-width bar layout as
   the scoring guide entry below it, but on the brand navy with a gold CTA so it
   is the most noticeable thing above the hero. The whole bar is one link. */
.pickem-entry {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 10px;
  padding: 10px 12px 10px 12px;
  background: linear-gradient(120deg, #241c52 0%, var(--brand) 62%);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-decoration: none;
  line-height: 1.3;
}
.pickem-entry:hover, .pickem-entry:focus-visible { background: linear-gradient(120deg, #2e2468 0%, #1d1840 62%); text-decoration: none; }
.pickem-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pickem-entry-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #14112b;
}
.pickem-entry-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pickem-entry-title { color: var(--accent); font-weight: 800; font-size: .98rem; letter-spacing: .01em; }
.pickem-entry-sub { color: #d9d5ee; font-size: .82rem; }
.pickem-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #14112b;
  font-weight: 800;
  font-size: .85rem;
  white-space: nowrap;
}
.pickem-entry:hover .pickem-cta, .pickem-entry:focus-visible .pickem-cta { background: #ffe389; }
@media (prefers-color-scheme: dark) {
  .pickem-entry { background: linear-gradient(120deg, #3a2f7a 0%, #221c4a 70%); border-color: var(--accent); }
  .pickem-entry:hover, .pickem-entry:focus-visible { background: linear-gradient(120deg, #463990 0%, #2a2358 70%); }
}
@media (max-width: 560px) {
  .pickem-entry { flex-wrap: wrap; padding: 10px; }
  .pickem-entry-text { flex-basis: calc(100% - 46px); }
  .pickem-cta { flex: 1 1 100%; }
}
body.view-scoring .pickem-entry,
body.view-meet .pickem-entry,
body.view-day .pickem-entry,
.pickem-entry[hidden] { display: none !important; }

/* Camps & tickets promo card on the home page: navy/gold, links to tickets-camps.html. */
.camps-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  color: #fff;
  border-radius: 14px;
  border: 2px solid transparent;
  background:
    linear-gradient(#14112b, #1c1838) padding-box,
    linear-gradient(135deg, #ffcf4a 0%, #ffe389 40%, #c9a227 70%, #ffcf4a 100%) border-box;
  box-shadow: var(--shadow), 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
  text-decoration: none;
  line-height: 1.35;
}
.camps-entry-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.camps-entry-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand);
}
.camps-entry-text { flex: 1 1 200px; min-width: 0; }
.camps-entry-title {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
}
.camps-entry-sub {
  margin: 0;
  color: #e4dff6;
  font-size: .88rem;
}
.camps-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand);
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
}
.camps-cta:hover, .camps-cta:focus-visible { background: #ffe389; }
.camps-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.camps-entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.camps-entry-programs {
  margin: 0;
  flex: 1 1 200px;
  color: #cfcaf5;
  font-size: .78rem;
  font-weight: 600;
}
.camps-share {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #fff);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}
.camps-share:hover, .camps-share:focus-visible { background: var(--accent); color: var(--brand); }
.camps-share:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
  .camps-entry { padding: 12px 12px 10px; }
  .camps-entry-title { font-size: 1.02rem; }
  .camps-entry-sub { font-size: .84rem; }
  .camps-cta { flex: 1 1 100%; }
}
body.view-scoring .camps-entry,
body.view-meet .camps-entry,
body.view-day .camps-entry,
.camps-entry[hidden] { display: none !important; }

.scoring-entry {
  display: flex;
  align-items: stretch;
  margin: 10px 0 0;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line));
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scoring-entry[hidden] { display: none !important; }
.hero > .scoring-entry { margin: 10px 0 0; }
.scoring-banner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 11px;
  color: inherit;
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.3;
}
.scoring-banner:hover, .scoring-banner:focus-visible {
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
}
.scoring-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.scoring-banner-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #14112b;
  font-weight: 800;
  font-size: .8rem;
  line-height: 1;
}
.scoring-banner-text { min-width: 0; }
.scoring-banner-arrow { font-weight: 800; }
@media (max-width: 420px) {
  .scoring-banner { font-size: .82rem; padding: 8px 10px; gap: 7px; }
}

body.view-scoring .datebar,
body.view-scoring .team-bar,
body.view-scoring .hero,
body.view-scoring .pulse,
body.view-scoring .status-line,
body.view-scoring .filters,
body.view-scoring .scoring-entry,
body.view-scoring #banner,
body.view-scoring .newsletter-band,
body.view-meet .datebar,
body.view-meet .team-bar,
body.view-meet .hero,
body.view-meet .pulse,
body.view-meet .status-line,
body.view-meet .filters,
body.view-meet .scoring-entry,
body.view-meet #banner,
body.view-meet .newsletter-band,
body.view-day .datebar,
body.view-day .team-bar,
body.view-day .hero,
body.view-day .pulse,
body.view-day .status-line,
body.view-day .filters,
body.view-day .scoring-entry,
body.view-day #banner,
body.view-day .newsletter-band { display: none !important; }

.scoring-guide { margin: 0 0 24px; }
.scoring-guide[hidden] { display: none !important; }
.sg-intro {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
  margin: 0 0 12px;
}
.sg-kicker {
  margin: 0 0 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sg-intro h2 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.25; }
.sg-intro p { margin: 0; color: var(--ink); line-height: 1.5; font-size: .95rem; }
.sg-lead { color: var(--muted) !important; }

.sg-example {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 0 0 12px;
}
.sg-example h3 { margin: 0 0 8px; font-size: 1.02rem; }
.sg-example p { margin: 0 0 8px; line-height: 1.5; font-size: .92rem; }
.sg-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.sg-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  padding: 6px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  font-weight: 800;
  font-size: .9rem;
}
.sg-score.is-drop {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
}
.sg-math { margin: 0; font-size: .92rem; line-height: 1.5; }
.sg-math strong { font-variant-numeric: tabular-nums; }

.sg-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 16px 12px;
  margin: 0 0 10px;
}
.sg-section > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -16px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: .98rem;
  border-radius: var(--radius);
}
.sg-section > summary::-webkit-details-marker { display: none; }
.sg-section > summary::after {
  content: '▾';
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
}
.sg-section[open] > summary::after { content: '▴'; }
.sg-section > summary:hover { color: color-mix(in srgb, var(--ink) 80%, var(--brand)); }
.sg-section > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sg-section p, .sg-section li { line-height: 1.55; font-size: .92rem; }
.sg-section p { margin: 0 0 8px; }
.sg-section ul { margin: 0 0 8px; padding-left: 1.15rem; }
.sg-section li { margin: 0 0 6px; }
.sg-section li:last-child { margin-bottom: 0; }
.sg-note { color: var(--muted); font-size: .88rem !important; }

.sg-cmp { margin: 8px 0 4px; display: grid; gap: 8px; }
.sg-cmp-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.sg-cmp-label {
  margin: 0;
  padding: 6px 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--brand) 6%, var(--card));
  border-bottom: 1px solid var(--line);
}
.sg-cmp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.sg-cmp-pair > div { padding: 8px 10px; min-width: 0; }
.sg-cmp-pair > div:first-child { border-right: 1px solid var(--line); }
.sg-cmp-pair h4 {
  margin: 0 0 4px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .sg-cmp-pair h4 { color: var(--accent); }
}
.sg-cmp-pair p { margin: 0; font-size: .85rem; line-height: 1.45; }
@media (max-width: 520px) {
  .sg-cmp-pair { grid-template-columns: 1fr; }
  .sg-cmp-pair > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
}

.sg-dl { margin: 0; }
.sg-dl div { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sg-dl div:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.sg-dl dt { font-weight: 800; font-size: .9rem; }
.sg-dl dd { margin: 2px 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink); }

.sg-sources {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.55;
}
.sg-sources h3 { margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sg-sources ul { margin: 0; padding-left: 1.1rem; }
.sg-sources li { margin: 0 0 4px; }
.sg-sources a { font-weight: 600; }

@media (max-width: 420px) {
  .sg-intro h2 { font-size: 1.2rem; }
  .sg-scores { gap: 5px; }
  .sg-score { min-width: 4.1rem; font-size: .82rem; padding: 5px 6px; }
}

/* Conference standings */
.conf-standings { margin-top: 10px; padding-top: 4px; }
.conf-standings > summary { font-weight: 800; }
.conf-standings .rank-note { margin: 6px 0 8px; }
.conf-panel {
  margin: 6px 0;
  padding: 0 10px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
}
.conf-panel > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 800;
  font-size: .9rem;
}
.conf-panel > summary::-webkit-details-marker { display: none; }
.conf-count { color: var(--muted); font-weight: 600; font-size: .72rem; text-align: right; }
.conf-table td.nat, .conf-table th:nth-child(3) { width: 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85em; }
.conf-table tr.is-also td, .conf-table tr.is-nr td { color: var(--muted); }
.rank-also { list-style: none; margin: 4px 0 0; padding: 0; }
.rank-also li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); font-size: .9rem; font-variant-numeric: tabular-nums; }
.profile-rank .rk-conf {
  font-size: .8rem;
  font-weight: 700;
  color: var(--up);
  text-decoration: none;
}
.profile-rank .rk-conf:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .rank-table th.extra, .rank-table td.extra { display: none; }
  .conf-panel { padding: 0 8px 6px; }
  .conf-table td, .conf-table th { padding-right: 4px; }
}

/* ---- The Five That Score Weekly newsletter signup band, directly under the Top 25 card (self-contained; see newsletter.js) ---- */
.newsletter-band {
  background: var(--brand);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 2px solid var(--accent);
  padding: 8px 14px 9px;
  margin: 0 0 12px;
  border-radius: var(--radius);
}
.newsletter-band[hidden] { display: none !important; }
.newsletter-band .nl-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.nl-title { margin: 0; flex: 0 1 auto; min-width: 0; font-size: .85rem; line-height: 1.3; font-weight: 700; color: #cfcaf5; }
.nl-brand { color: var(--accent); }
.nl-form { flex: 1 1 300px; max-width: 400px; display: flex; gap: 6px; min-width: 0; position: relative; }
.nl-email { flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: #fff; color: #17142b; font: inherit; font-size: 16px; }
.nl-email:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nl-btn { flex: 0 0 auto; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent); color: #14112b; font: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.nl-btn:hover, .nl-btn:focus-visible { background: #ffe389; }
.nl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nl-btn:disabled { opacity: .65; cursor: default; }
.nl-sr, .nl-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }
.nl-msg { flex: 1 1 100%; margin: 0; font-size: .8rem; text-align: right; }
.nl-msg:empty { display: none; }
.nl-msg.ok { color: var(--accent); font-weight: 700; }
.nl-msg.err { color: #ffb4a8; }
@media (max-width: 640px) {
  .newsletter-band .nl-inner { gap: 5px; }
  .nl-title { flex: 1 1 100%; font-size: .78rem; }
  .nl-form { flex: 1 1 100%; max-width: none; }
  .nl-msg { text-align: left; }
}

/* ---- Social handles + visit counter, moved from the header into the footer ---- */
.site-footer .footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 2px 0 10px; padding: 9px 14px; background: var(--brand); border-radius: var(--radius); border-bottom: 2px solid var(--accent); }
.site-footer .footer-meta .handle { color: #cfcaf5; font-weight: 600; font-size: .82rem; text-decoration: none; }
.site-footer .footer-meta .handle:hover, .site-footer .footer-meta .handle:focus-visible { color: var(--accent); text-decoration: underline; }
@media (max-width: 430px) {
  .site-footer .footer-meta { gap: 6px 12px; padding: 8px 10px; }
  .site-footer .footer-meta .handle { font-size: .78rem; }
}

/* ---- Dedicated meet scoring page (?meet=&date=) ---- */
.meet-page { margin: 0 0 24px; }
.meet-page[hidden] { display: none !important; }
.meet-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 12px;
  padding: 8px 2px;
  background: none;
  border: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
}
.meet-back:hover, .meet-back:focus-visible { color: var(--up); text-decoration: underline; }
.meet-page-card { overflow: hidden; }
.meet-page-head {
  background: var(--brand);
  color: #fff;
  padding: 14px 16px 16px;
  border-bottom: 3px solid var(--accent);
}
.meet-page-head .meta { color: rgba(255,255,255,.78); padding-right: 72px; }
.meet-page-head .mtitle { color: #fff; font-size: 1.28rem; margin: 8px 0 6px; }
.meet-page-head .meet-venue { margin: 0 0 10px; color: var(--accent); font-size: .88rem; font-weight: 600; }
.meet-page-head .teams { color: #fff; }
.meet-page-head .team-row { border-top-color: rgba(255,255,255,.14); }
.meet-page-head .place,
.meet-page-head .home { color: rgba(255,255,255,.65); }
.meet-page-head .tname,
.meet-page-head .tscore { color: #fff; }
.meet-page-head .team-link { color: #fff; }
.meet-page-head .team-link:hover { color: var(--accent); }
.meet-page-head .share,
.meet-page-card > .share {
  border-color: var(--accent);
  background: var(--brand);
  color: var(--accent);
}
.meet-page-head .share:hover,
.meet-page-card > .share:hover {
  background: var(--accent);
  color: var(--brand);
}
.meet-page-missing {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 20px;
}
.meet-page-missing h1 { margin: 0 0 8px; font-size: 1.25rem; }
.meet-page-missing p { margin: 0; color: var(--muted); }
@media (max-width: 430px) {
  .meet-page-head .mtitle { font-size: 1.12rem; }
}

/* ---- Dedicated day page (?day=YYYY-MM-DD) ---- */
.day-page { margin: 0 0 24px; }
.day-page[hidden] { display: none !important; }
.day-page-head {
  background: var(--brand);
  color: #fff;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--accent);
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}
.day-page-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.day-page-nav h1 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  text-align: center;
  color: #fff;
}
.day-page-shift {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,207,74,.55);
  background: transparent;
  color: var(--accent);
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
}
.day-page-shift:hover, .day-page-shift:focus-visible {
  background: var(--accent);
  color: var(--brand);
}
.day-page-sub {
  margin: 8px 0 0;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: .88rem;
}
.day-page-sub .livecount { color: #ff8a97; font-weight: 800; }
.day-page-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.day-page-copy {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.day-page-copy:hover, .day-page-copy:focus-visible {
  background: var(--accent);
  color: var(--brand);
}
.day-page-list { display: grid; gap: 12px; }
.day-page-empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
@media (max-width: 430px) {
  .day-page-nav h1 { font-size: 1.02rem; }
}
