:root {
  color-scheme: dark;
  /* black and white; team colors are the only hues. --edge is for control borders (3:1), --rule for dividers. */
  --paper: #0b0b0c;
  --surface: #151517;
  --lift: #1f1f22;
  --ink: #fafafa;
  --muted: #a1a1a9;
  --rule: #2e2e33;
  --edge: #77777f;
  --north: oklch(0.68 0.13 240);
  --south: oklch(0.68 0.16 35);
  --team-2: oklch(0.7 0.14 150);
  --team-3: oklch(0.68 0.15 300);
  --team-4: oklch(0.74 0.13 80);
  --up: oklch(0.74 0.15 150);
  --display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; } /* the browser's dark-mode default is 4.0:1 */
p { margin: 0; }
abbr { text-decoration: none; }

/* ---------- top bar + menu ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 10px max(16px, (100% - 1148px) / 2);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.who { min-width: 0; }
.menu-btn { flex: none; }
@media (max-width: 420px) { .who a { font-size: 14px; } }
.who a {
  display: block; max-width: 56vw; padding: 8px 4px; font: 600 15px/1.2 var(--ui); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.who a:hover { text-decoration: underline; }
.menu-btn {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: none; border: 1px solid var(--edge); border-radius: 6px; cursor: pointer;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); }
.menu-btn:hover { background: var(--lift); border-color: var(--ink); }

#menu {
  margin: 0 0 0 auto; inset: 0 0 0 auto; height: 100dvh; width: min(320px, 86vw);
  padding: 20px 24px; border: 0; border-left: 1px solid var(--rule); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  flex-direction: column; gap: 4px;
  transition: translate 240ms var(--ease), display 240ms allow-discrete, overlay 240ms allow-discrete;
  translate: 100% 0;
}
#menu:popover-open { display: flex; translate: 0 0; }
@starting-style { #menu:popover-open { translate: 100% 0; } }
#menu::backdrop { background: oklch(0 0 0 / 0.6); }
#menu :is(a, summary) {
  display: block; font: 600 28px/1.15 var(--display); letter-spacing: -0.02em; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
#menu :is(a, summary):hover { text-decoration: underline; text-underline-offset: 4px; }
#menu summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
#menu summary::-webkit-details-marker { display: none; }
#menu summary::after { content: '+'; font-weight: 400; }
#menu details[open] > summary::after { content: '\2013'; }
#menu details a { padding: 9px 0 9px 16px; font-size: 18px; font-weight: 400; color: var(--muted); }
#menu details a:hover { color: var(--ink); }
.menu-close {
  align-self: flex-end; margin-bottom: 16px; padding: 8px 12px; min-height: 40px;
  font: 600 14px var(--ui); background: none; border: 1px solid var(--edge); border-radius: 6px; cursor: pointer; color: var(--ink);
}

/* ---------- page ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 0 16px 56px; }
.page > section { min-width: 0; padding-top: 28px; }
@media (min-width: 980px) { .page > section { padding-top: 44px; } }

.section-title {
  margin: 0 0 16px; font: 700 44px/1 var(--display); letter-spacing: -0.035em;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.section-head .section-title { margin-bottom: 8px; }
.section-note { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.sub-title {
  margin: 28px 0 8px; font: 700 13px/1.2 var(--ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}

/* ---------- now serving ---------- */
.now { display: flex; gap: 20px; align-items: flex-start; padding-top: 28px; }
.ticket {
  flex: none; width: 108px; padding: 14px 8px 12px; text-align: center;
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  /* deli take-a-number notches */
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  rotate: -3deg;
}
.ticket-label { display: block; font: 700 12px/1 var(--ui); text-transform: uppercase; letter-spacing: 0.1em; }
.ticket-num { display: block; font: 700 72px/0.9 var(--display); margin: 4px 0 2px; }
.kicker { font: 600 13px/1.3 var(--ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.now h1 { margin: 6px 0 12px; font: 700 clamp(40px, 8vw, 76px)/0.95 var(--display); letter-spacing: -0.04em; }
.now-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 17px; }
.now-lines a { font-weight: 600; text-decoration-color: var(--edge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 980px) {
  .now { gap: 40px; align-items: center; padding-top: 48px; }
  .ticket { width: 150px; padding: 18px 10px 16px; }
  .ticket-num { font-size: 104px; }
  .now-lines { grid-template-columns: repeat(2, auto); column-gap: 32px; justify-content: start; }
}

/* ---------- team tags ---------- */
.team {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 3px;
  font: 700 12px/1 var(--ui); color: var(--paper); vertical-align: 2px;
}
.team-0 { background: var(--north); } .team-1 { background: var(--south); } .team-2 { background: var(--team-2); }
.team-3 { background: var(--team-3); } .team-4 { background: var(--team-4); }
.t-0 { color: var(--north); font-weight: 600; } .t-1 { color: var(--south); font-weight: 600; }

/* ---------- rivalry ---------- */
.rivalry-head { display: flex; align-items: center; gap: 10px; font: 700 28px/1.1 var(--display); letter-spacing: -0.03em; }
.rivalry-head .team { width: 28px; height: 28px; font-size: 15px; }
.rivalry-sub { margin: 6px 0 18px; color: var(--muted); }
.gap-chart { display: grid; gap: 6px; }
.gap-axis { display: flex; justify-content: space-between; margin-left: 48px; margin-right: 84px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.gap-row { display: grid; grid-template-columns: 40px 1fr 76px; gap: 8px; align-items: center; font-size: 14px; }
.gap-wk { color: var(--muted); }
.gap-track { position: relative; height: 18px; background: linear-gradient(var(--edge), var(--edge)) center / 1px 100% no-repeat; }
.gap-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }
.gap-0 { right: 50%; background: var(--north); }
.gap-1 { left: 50%; background: var(--south); }
.gap-val { text-align: right; font-weight: 600; }
.gap-live .gap-val { color: var(--muted); font-weight: 500; }
.gap-live .gap-track { background-image: repeating-linear-gradient(90deg, var(--edge) 0 6px, transparent 6px 10px); background-size: 100% 1px; background-position: center; }

/* ---------- standings ---------- */
.standings, .team-table, .donut-table { width: 100%; border-collapse: collapse; font-size: 16px; }
:is(.standings, .team-table, .donut-table) :is(th, td) { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--rule); }
:is(.standings, .team-table, .donut-table) thead th { font: 600 12px var(--ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom-color: var(--edge); }
:is(.standings, .team-table, .donut-table) tbody th { font-weight: 600; white-space: nowrap; }
:is(.standings, .team-table) tbody tr:first-child, .donut-table .is-shipley { background: var(--lift); }
.rank { width: 28px; color: var(--muted); }
.num { text-align: right !important; font-weight: 600; }
.crown { width: 16px; height: 11px; color: var(--ink); vertical-align: 0; margin-left: 2px; }
.col-weeks { width: 84px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.spark i { flex: 1; background: var(--edge); border-radius: 1px; min-height: 2px; }
.spark i.is-king { background: var(--ink); }

/* ---------- the book ---------- */
.offer { border: 1px solid var(--edge); border-radius: 8px; background: var(--surface); }
.offer summary {
  list-style: none; cursor: pointer; padding: 14px 16px; min-height: 48px;
  font: 600 20px/1.1 var(--display); letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center;
}
.offer summary::-webkit-details-marker { display: none; }
.offer summary::after { content: '+'; font: 400 28px/1 var(--display); }
.offer[open] summary::after { content: '–'; }
.offer form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.offer label { display: grid; gap: 4px; font: 600 13px var(--ui); color: var(--muted); }
.offer select, .offer input {
  font: 16px var(--ui); color: var(--ink); padding: 10px; min-height: 44px; width: 100%;
  border: 1px solid var(--edge); border-radius: 6px; background: var(--paper);
}
.money { position: relative; display: block; }
.money::before { content: '$'; position: absolute; left: 10px; top: 50%; translate: 0 -50%; color: var(--muted); }
.money input { padding-left: 22px; }
.offer button[type=submit] { grid-column: 1 / -1; }
.offer .f-wide { grid-column: 1 / -1; }
.offer .f-check { display: flex; align-items: center; gap: 10px; font: 500 15px/1.35 var(--ui); color: var(--ink); cursor: pointer; }
.offer .f-check input { width: 20px; min-height: 20px; flex: none; accent-color: var(--ink); }
.offer input:disabled { opacity: 0.55; }


.btn {
  font: 600 15px/1 var(--ui); padding: 11px 14px; min-height: 44px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--ink); white-space: nowrap; transition: background-color 150ms var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: oklch(0.85 0 0); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-quiet[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.bets { list-style: none; margin: 0; padding: 0; }
.bet {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.bet:first-child { border-top: 1px solid var(--rule); }
.bet-terms { font-weight: 600; }
.bet-week { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 4px; }
.bet-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.bet-meta strong { color: var(--ink); }
.bet-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.stake { font: 700 26px/1 var(--display); letter-spacing: -0.02em; }
.bet-actions { display: flex; gap: 6px; }
.chip {
  font: 600 12px/1 var(--ui); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 8px; border-radius: 3px; background: var(--paper); border: 1px solid var(--edge); color: var(--muted);
}
.chip-locked { border-color: var(--ink); color: var(--ink); }
.chip-disputed { border-color: var(--south); color: var(--south); }
.more summary {
  cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--rule); list-style-position: inside;
}
.more .bet:first-child { border-top: 0; }
.empty { padding: 12px 0; color: var(--muted); font-style: italic; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 520px) {
  .bet:has(.bet-actions) { flex-wrap: wrap; }
  .bet:has(.bet-actions) .bet-main { flex: 1 1 calc(100% - 60px); }
  .bet:has(.bet-actions) .bet-side { flex-direction: row-reverse; justify-content: space-between; align-items: center; width: 100%; }
}

.ledger { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.ledger li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.ledger .up { color: var(--up); font-weight: 600; }
.ledger .down { color: var(--south); font-weight: 600; }
.shame ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shame li {
  padding: 10px 12px; background: var(--lift); border: 1px dashed var(--edge); border-radius: 4px;
  font-size: 15px;
}
.shame li span { display: block; color: var(--muted); font-size: 13px; }
.shame li.clean { background: none; border-color: var(--rule); color: var(--muted); }

/* ---------- trophies ---------- */
.trophy-list { margin: 0; }
.trophy { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.trophy dt { font: 600 20px/1.1 var(--display); letter-spacing: -0.02em; }
.trophy dt span { display: block; margin-top: 4px; font: 400 14px/1.3 var(--ui); letter-spacing: 0; color: var(--muted); }
.trophy > * { flex: 1 1 0; }
.trophy dd { margin: 0; text-align: right; }
.trophy dd strong { display: block; font-size: 17px; }
.trophy dd span { font-size: 13px; color: var(--muted); }
.trophy.is-open dd { color: var(--muted); font-style: italic; }

/* ---------- announcements ---------- */
.post { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.post + .post { margin-top: 16px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-head div { display: grid; line-height: 1.25; }
.post-head span:not(.avatar) { font-size: 13px; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--edge); display: grid; place-items: center; }
.avatar svg { width: 16px; height: 24px; color: var(--ink); }
.post img { border-radius: 4px; margin: 0 -16px; max-width: calc(100% + 32px); width: calc(100% + 32px); border-radius: 0; }
.post-body { white-space: pre-line; }
.post-tag { font-weight: 600; color: var(--ink); }

/* ---------- events ---------- */
.card-list-1 { grid-template-columns: 1fr !important; }
.facts { margin: 0 0 8px; display: grid; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; }
.facts dd { margin: 0; }
.event-grid { display: grid; gap: 8px 48px; }
@media (min-width: 980px) {
  .event-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: 'facts rsvp' 'posts rsvp'; align-items: start; }
  .facts { grid-area: facts; } .rsvp { grid-area: rsvp; } .event-posts { grid-area: posts; }
}
.rsvp .btn { width: 100%; margin-bottom: 12px; }
.rsvp-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.rsvp-list li { padding: 6px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-weight: 600; }

/* ---------- footer ---------- */
.site-foot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 32px 16px 48px; border-top: 1px solid var(--rule); text-align: left;
}
.foot-mark { width: 30px; height: 46px; color: var(--ink); }
.site-foot strong { font: 600 20px/1 var(--display); letter-spacing: -0.02em; }

/* ---------- shell additions ---------- */
.link-btn { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.notice-slot { position: fixed; top: 76px; left: 50%; translate: -50% 0; z-index: 20; width: min(520px, calc(100% - 32px)); }
.notice { padding: 10px 14px; border-radius: 6px; font-weight: 600; font-size: 15px; box-shadow: 0 6px 18px oklch(0 0 0 / 0.5); }
.notice-error { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.notice-ok { background: var(--lift); border: 1px solid var(--edge); }
.menu-signout { margin-top: 8px; padding: 10px 0; text-align: left; background: none; border: 0; font: 600 16px var(--ui); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.placeholder p { color: var(--muted); }

/* ---------- opening screen ---------- */
.home { display: grid; justify-items: center; text-align: center; }
.home-word { margin: 0; font: 700 clamp(40px, 8vw, 96px)/0.95 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.home-mark { --h: clamp(190px, 42vh, 460px); width: calc(var(--h) * 454 / 700); height: var(--h); margin: 22px 0 6px; color: var(--ink); }
.home-links { width: 100%; max-width: 1000px; margin-top: 24px; display: grid; border-top: 1px solid var(--rule); text-align: left; }
.home-links a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.home-links a::after { content: '\2192'; grid-row: 1 / span 2; grid-column: 2; font-size: 24px; transition: translate 150ms var(--ease); }
.home-links a:hover::after { translate: 4px 0; }
.home-links strong { font: 600 26px/1.1 var(--display); letter-spacing: -0.025em; }
.home-links span { color: var(--muted); font-size: 15px; }
@media (min-width: 760px) {
  .home-links { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
  .home-links a { padding: 18px 20px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .home-links a:last-child { border-right: 0; }
  .home-links strong { font-size: 30px; }
}

/* ---------- about ---------- */
.about-text { max-width: 60ch; font-size: 19px; line-height: 1.6; }
.about-text + .about-text { margin-top: 16px; }

/* ---------- shared screen bits ---------- */
.split { display: grid; gap: 8px 48px; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.callout { margin-bottom: 12px; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 6px; }
.callout a { font-weight: 600; }

/* ---------- leagues ---------- */
.block-title {
  margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
  font: 600 24px/1.1 var(--display); letter-spacing: -0.03em;
}
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .card-list { grid-template-columns: repeat(2, 1fr); } }
.card { padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.card-link { font: 600 26px/1.1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.card-link:hover { text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-meta { margin-top: 6px; color: var(--muted); }
.card-past { margin-top: 8px; font-size: 15px; }
.card-past a { margin-right: 6px; font-weight: 600; }

.league .now { padding-top: 0; }
.seasons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 24px; font-size: 14px; }
.seasons a { padding: 4px 12px; border: 1px solid var(--edge); border-radius: 999px; font-weight: 600; text-decoration: none; }
.seasons a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seasons span { color: var(--muted); }
.league-grid { display: grid; column-gap: 48px; }
.shipley { margin-bottom: 12px; }
.pot-total { font: 700 clamp(28px, 7vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 24px 0 6px; }
.pot-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pot-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 980px) { .league-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

/* ---------- admin ---------- */
.admin-grid { display: grid; gap: 16px 40px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.admin-nav a { padding: 5px 12px; border: 1px solid var(--edge); border-radius: 999px; font-weight: 600; text-decoration: none; }
.admin-nav a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (min-width: 980px) {
  .admin-grid { grid-template-columns: 210px minmax(0, 1fr); align-items: start; }
  .admin-nav { flex-direction: column; flex-wrap: nowrap; gap: 0; position: sticky; top: 90px; }
  .admin-nav a { padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; color: var(--muted); }
  .admin-nav a[aria-current] { background: none; color: var(--ink); }
}
.admin-body { min-width: 0; }
.admin-body > .block-title:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; position: relative; } /* relative: keeps .sr-only cells inside the scroll box */
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table :is(th, td) { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--rule); }
.admin-table thead th { font: 600 12px var(--ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom-color: var(--edge); }
.admin-table tbody th { font-weight: 600; white-space: nowrap; }
.row-actions { white-space: nowrap; text-align: right !important; }
.cell-sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.admin-form { display: grid; gap: 12px; max-width: 520px; margin-top: 8px; }
:is(.admin-form, .pick-row, .field-grid) label { display: grid; gap: 4px; font: 600 13px var(--ui); color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; font: 500 15px var(--ui); color: var(--ink); cursor: pointer; }
label.check input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pick-row label { flex: 1 1 120px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin-top: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.inline-form .field { flex: 1 1 180px; width: auto; }
textarea.field { min-height: 110px; resize: vertical; font: inherit; }
.callout p + .form-actions { margin-top: 10px; }
.muted { color: var(--muted); }
.file-btn { position: relative; display: inline-flex; align-items: center; justify-self: start; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.file-btn:has(input:disabled), .link-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.file-btn input:disabled { cursor: not-allowed; }
.import-sources { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 12px; }
.paste { margin-bottom: 8px; }
.import-preview { margin-top: 16px; }
.import-summary { margin-bottom: 12px; font-size: 17px; }
.problems { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.import-go { margin: 16px 0 4px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.trophy-admin, .post-admin { list-style: none; margin: 0 0 8px; padding: 0; }
:is(.trophy-row, .post-admin li) { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
:is(.trophy-row, .post-admin li) > div { flex: 1; min-width: 0; display: grid; }
.trophy-row span:not(.row-actions, .sr-only) { font-size: 14px; color: var(--muted); }
.trophy-row.is-off strong { color: var(--muted); }
.switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 1px solid var(--edge); border-radius: 13px; background: var(--lift); cursor: pointer; }
.switch::before { content: ''; position: absolute; inset: -10px -4px; } /* 44px tap target */
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: translate 150ms var(--ease); }
.switch[aria-checked=true] { background: var(--ink); border-color: var(--ink); }
.switch[aria-checked=true]::after { background: var(--paper); }
.switch[aria-checked=true]::after { translate: 20px 0; }
.admin-bets .bet-actions { flex-wrap: wrap; margin-top: 8px; }
.post-admin p { margin-top: 2px; }
.photo-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.photo-pick legend { padding: 0; margin-bottom: 4px; font: 600 13px var(--ui); color: var(--muted); }
.photo-opt { position: relative; display: grid; gap: 4px; width: 120px; }
.photo-opt img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- sign in ---------- */
.signin { max-width: 640px; }
.signin:has(.splash) { margin-inline: auto; text-align: center; }
.signin:has(.splash) .section-title { border-bottom: 0; padding-bottom: 0; margin-top: 8px; }
.splash { display: grid; justify-items: center; }
.splash .home-word { font-size: clamp(40px, 8vw, 72px); }
.splash .home-mark { --h: clamp(150px, 26vh, 300px); margin-top: 18px; }
.field { font: 16px var(--ui); color: var(--ink); padding: 10px; min-height: 44px; width: 100%; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); }
.signin-note, .signin-current { margin: 8px 0 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
