/* Look inspired by sports-score apps such as Sofascore: cool grey page, white rounded cards,
   one strong blue, Roboto with condensed bold numbers. Conferences keep their own colour. */
:root {
  --paper: #edf1f6;
  --surface: #ffffff;
  --raised: #f5f7fa;
  --ink: #222226;
  --muted: #6c7383;
  --line: #e3e7ee;
  --primary: #374df5;
  --primary-ink: #ffffff;
  --primary-tint: #e9ecfe;
  --link: #2c3ed8;
  --east: #374df5;
  --east-tint: #e9ecfe;
  --west: #e8552e;
  --west-tint: #fdece6;
  --ok: #10935a;
  --ok-tint: #e2f5ec;
  --err: #d92d3b;
  --err-tint: #fde8ea;
  --focus: #374df5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(34, 34, 38, .06);
  --narrow: "Roboto Condensed", "Roboto", "Arial Narrow", "DejaVu Sans Condensed", "Liberation Sans Narrow", sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131418;
    --surface: #1e1f24;
    --raised: #26282e;
    --ink: #eef0f4;
    --muted: #9aa1ae;
    --line: #2f3139;
    --primary: #5b6dff;
    --primary-ink: #ffffff;
    --primary-tint: #23284d;
    --link: #8f9bff;
    --east: #7f8dff;
    --east-tint: #23284d;
    --west: #ff7d55;
    --west-tint: #3a2219;
    --ok: #3ccf87;
    --ok-tint: #14301f;
    --err: #ff6b76;
    --err-tint: #3a1a1d;
    --focus: #8f9bff;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.5 var(--body);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

h1, h2, h3 { font-family: var(--body); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.help { color: var(--muted); font-size: .9rem; margin: .25rem 0 .75rem; max-width: 70ch; }

/* ---- frame */
.devbar { background: repeating-linear-gradient(-45deg, #f6c445 0 12px, #f2b630 12px 24px); color: #2a2100; font-size: .8rem; padding: .2rem 1rem; text-align: center; }
.devbar a { color: inherit; }
.top {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .75rem max(1rem, calc((100% - 1080px) / 2));
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-size: 1.25rem; }
.nav { display: flex; gap: 1rem; align-items: center; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.lang { margin-left: 0; }
.top .nav + .lang { margin-left: 0; }
.top > .lang:nth-child(2) { margin-left: auto; }
main { padding: 1.5rem 1rem 4rem; margin: 0 auto; }
main.wide { max-width: 1112px; }
main.narrow { max-width: 30rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }

/* ---- controls */
.inline { display: inline; margin: 0; }
button, .button, input, select { font: inherit; color: inherit; }
.button {
  display: inline-block; border: 2px solid var(--ink); background: var(--ink); color: var(--surface);
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.15); }
.button.secondary { background: transparent; color: var(--ink); }
.button.danger { background: transparent; color: var(--err); border-color: var(--err); }
.button.small { padding: .3rem .8rem; font-size: .9rem; }
.button.google { width: 100%; text-align: center; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 6px; padding: .1rem .45rem; font-weight: 700; font-size: .8rem; cursor: pointer; }
input:not([type=checkbox]), select {
  width: 100%; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface);
}
input:focus, select:focus { border-color: var(--focus); }
.stack { display: grid; gap: .9rem; margin-bottom: 1rem; }
.stack > .button { justify-self: start; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: .5rem 0; }
.row label { display: grid; gap: .25rem; font-size: .9rem; }
.row input[type=number] { width: 7rem; }
.check { display: flex !important; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .3rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .help { margin-top: .3rem; margin-bottom: 0; }
.field.invalid input { border-color: var(--err); }
.field-error { color: var(--err); font-size: .9rem; margin: .3rem 0 0; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); margin: 1.25rem 0; font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
details > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
details[open] > summary { margin-bottom: .5rem; }

.notice { padding: .7rem .9rem; border-radius: 8px; border-left: 4px solid; margin: 0 0 1rem; }
.notice.ok { background: var(--ok-tint); border-color: var(--ok); }
.notice.error { background: var(--err-tint); border-color: var(--err); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.empty { color: var(--muted); }

/* ---- home */
.league { margin-bottom: 2.5rem; }
.league-head { display: flex; align-items: baseline; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.league-head h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0; }
.season-tag { color: var(--muted); font-family: var(--narrow); font-stretch: condensed; font-size: 1.1rem; margin: 0; }
h1 .season-tag { font-size: 1.2rem; }
.league-head .button { margin-left: auto; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.stage {
  display: grid; gap: .35rem; text-decoration: none; padding: 1rem 1.1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 4px 4px var(--radius) var(--radius);
}
.stage:hover { border-color: var(--ink); }
.stage-title { font-family: var(--narrow); font-stretch: condensed; font-size: 1.4rem; font-weight: 700; }
.status { font-weight: 600; }
.status.todo { color: var(--west); }
.status.done { color: var(--ok); }
.past { margin-top: 1rem; }

/* deadlines */
.dl { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .95rem; }
.dl .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); flex: none; }
.dl.open { color: var(--ink); }
.dl.open .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.dl.voided { color: var(--err); }
time .rel { color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.deadline-banner { margin: 0; }

/* ---- conferences */
.confs { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .confs { grid-template-columns: 1fr 1fr; } }
.conf { --c: var(--east); --c-tint: var(--east-tint); margin-bottom: 2rem; }
.conf-west { --c: var(--west); --c-tint: var(--west-tint); }
.conf > h2 { display: flex; align-items: center; gap: .6rem; }
.conf > h2::before { content: ""; width: .9rem; height: .9rem; border-radius: 3px; background: var(--c); }
.confs .conf { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 4px 4px var(--radius) var(--radius); padding: 1rem 1.1rem; margin: 0; }

/* the ranking slots: big condensed rank numbers are the one loud thing on the page */
.slots, .ranklist, .rank-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.slots li { display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.rank {
  font-family: var(--narrow); font-stretch: condensed; font-weight: 800; font-size: 2rem; line-height: 1;
  color: var(--c, var(--ink)); font-variant-numeric: tabular-nums; text-align: right;
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.saved-at { color: var(--muted); font-size: .9rem; }

/* enhanced picker (app.js) */
.picker .rank-list li {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .4rem .3rem 0; margin-bottom: .35rem; min-height: 3rem;
}
.picker .rank-list li.empty-slot { border-style: dashed; color: var(--muted); background: transparent; }
.picker .rank-list li.flash { animation: flash .6s ease-out; }
@keyframes flash { from { background: var(--c-tint); } to { background: var(--paper); } }
@media (prefers-reduced-motion: reduce) { .picker .rank-list li.flash { animation: none; } }
.picker .tools { display: flex; gap: .25rem; }
.picker .tools button, .pool button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-width: 2.25rem; min-height: 2.25rem; cursor: pointer;
}
.picker .tools button:disabled { opacity: .35; cursor: default; }
.pool { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 1rem; padding: 0; list-style: none; }
.pool button { padding: .3rem .6rem; font-size: .9rem; }
.pool button:hover { border-color: var(--c); background: var(--c-tint); }
.pool-title { font-size: .9rem; color: var(--muted); margin: .5rem 0 .25rem; font-weight: 600; }

.team { display: inline-flex; gap: .5rem; align-items: baseline; }
.team abbr { text-decoration: none; font-weight: 700; font-family: var(--narrow); font-stretch: condensed; font-size: 1.05rem; min-width: 2.6rem; }
.team .tname { color: var(--muted); font-size: .9rem; }

/* who has submitted */
.who { margin-top: 2rem; }
.who-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.who-list li { display: inline-flex; gap: .5rem; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .2rem .35rem .2rem .8rem; }
.badge { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .05rem .55rem; }
.who-list .yes .badge { background: var(--ok-tint); color: var(--ok); }
.who-list .no .badge { background: var(--paper); color: var(--muted); }

/* boards after the deadline */
.board-wrap { overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.board { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.board caption { text-align: left; padding: .6rem .8rem; font-weight: 600; color: var(--muted); font-size: .9rem; }
.board th, .board td { padding: .4rem .7rem; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.board thead th { border-top: 0; border-bottom: 3px solid var(--c); font-weight: 700; }
.board .rk { font-family: var(--narrow); font-stretch: condensed; font-weight: 800; color: var(--c); width: 3rem; text-align: right; font-size: 1.2rem; }
.board td abbr { text-decoration: none; font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-size: 1.05rem; }
.board .me { background: var(--c-tint); }
.board td.changed abbr { box-shadow: inset 0 -3px 0 var(--c); }
.you { font-weight: 400; color: var(--muted); }
.missing { color: var(--muted); }
.change-log { padding-left: 1.2rem; }

/* All-Star */
.as-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .as-grid { grid-template-columns: 1fr 1.3fr 1fr; } }
.as-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.ranklist li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem; align-items: baseline; padding: .15rem 0; }
.ranklist .rank { font-size: 1.35rem; }
.ranklist li.changed { background: var(--c-tint); border-radius: 6px; }
.changes-form { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 4px 4px var(--radius) var(--radius); padding: 1rem; }
.change { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem .8rem; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.change legend { font-weight: 700; padding: 0 .3rem; }
.change label { display: grid; gap: .2rem; font-size: .9rem; }
.change .l-replace { display: none; }
.change[data-kind=replace] .l-replace { display: inline; }
.change[data-kind=replace] .l-swap { display: none; }
.change[data-kind=none] .team-a, .change[data-kind=none] .team-b { opacity: .55; }

/* admin */
.deadlines { display: grid; gap: 1rem; }
@media (min-width: 800px) { .deadlines { grid-template-columns: 1fr 1fr; } }
.deadline-admin { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.deadline-admin input[type=datetime-local] { width: auto; }
.invites { list-style: none; padding: 0; }
.invites li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.invites li.inactive { color: var(--muted); }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: ui-monospace, monospace; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.members { width: 100%; border-collapse: collapse; }
.members th, .members td { text-align: left; padding: .45rem .5rem; border-top: 1px solid var(--line); vertical-align: top; }
.members thead th { border-top: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.members tr.left { color: var(--muted); }
.mail pre { white-space: pre-wrap; font-size: .9rem; }

@media (max-width: 560px) {
  .nav { width: 100%; order: 3; margin-left: 0; gap: 1.1rem; }
  .top > .lang { margin-left: auto; }
  .brand span { font-size: 1.1rem; }
  .league-head .button { margin-left: 0; }
}

/* ---- season tabs */
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin: .25rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; padding: .45rem .8rem; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 600; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- leaderboard */
.leaderboard-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.leaderboard { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.leaderboard th, .leaderboard td { padding: .6rem .8rem; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.leaderboard thead th { border-top: 0; border-bottom: 2px solid var(--ink); font-size: .85rem; color: var(--muted); font-weight: 600; }
.leaderboard tbody th { font-weight: 600; }
.leaderboard td.place { font-family: var(--narrow); font-stretch: condensed; font-weight: 800; font-size: 1.5rem; width: 3.5rem; }
.leaderboard .total { font-family: var(--narrow); font-stretch: condensed; font-weight: 800; font-size: 1.35rem; }
.leaderboard thead .total { font-size: .85rem; font-family: var(--body); }
.leaderboard tr.me { background: var(--east-tint); }
.num { text-align: right !important; white-space: nowrap; }
.muted { color: var(--muted); }
th.conf-east-c { color: var(--east) !important; }
th.conf-west-c { color: var(--west) !important; }
.big-points { color: var(--ink); font-family: var(--narrow); font-stretch: condensed; font-size: 2.6rem; font-weight: 800; }

/* ---- real standings */
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--surface); }
.standings th, .standings td { padding: .4rem .6rem; text-align: left; border-top: 1px solid var(--line); }
.standings thead th { border-top: 0; border-bottom: 3px solid var(--c); font-size: .85rem; color: var(--muted); font-weight: 600; }
.standings tbody th { font-weight: 400; }
.standings td.rk { font-family: var(--narrow); font-stretch: condensed; font-weight: 800; color: var(--c); width: 2.5rem; text-align: right; font-size: 1.15rem; }
.standings tr.cutoff td, .standings tr.cutoff th { border-bottom: 2px dashed var(--c); }
.standings tr.outside { color: var(--muted); }
.standings tr.missed td.num:last-child { color: var(--muted); }
.standings tr.exact td.num:last-child { color: var(--ok); font-weight: 700; }
.confs .conf .table-wrap { margin: 0 -.2rem; }

@media (max-width: 560px) {
  .leaderboard .conf-col { display: none; }
  .leaderboard th, .leaderboard td { padding: .55rem .5rem; }
  .tabs a { padding: .4rem .55rem; }
}

/* ---- team logos */
.team { align-items: center; }
.team .logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.team.compact { gap: .35rem; }
.team.compact .logo { width: 20px; height: 20px; }
.team .logo + .tname { color: var(--ink); font-size: inherit; }
.pool button .team { pointer-events: none; }
@media (prefers-color-scheme: dark) {
  .team .logo { background: #fff; border-radius: 50%; padding: 2px; }
}


/* ================================================================ score-app look
   (later rules win: these restyle the components above) */
main a:not(.button):not(.stage):not(.tabs a) { color: var(--link); }
.top { background: var(--primary); color: var(--primary-ink); border-bottom: 0; }
.top a, .top .link { color: var(--primary-ink); }
.brand { font-family: var(--body); font-stretch: normal; font-size: 1.15rem; letter-spacing: -.01em; }
.chip { border-color: rgba(255, 255, 255, .7); color: var(--primary-ink); border-radius: 8px; }
.nav a, .nav .link { opacity: .92; }
.nav a:hover, .nav .link:hover { opacity: 1; }

.button { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); border-radius: var(--radius-sm); font-weight: 500; }
.button:hover { filter: brightness(1.08); }
.button.secondary { background: var(--primary-tint); border-color: var(--primary-tint); color: var(--link); }
.button.danger { background: transparent; border-color: var(--err); color: var(--err); }
input:not([type=checkbox]), select { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); }
input:focus, select:focus { border-color: var(--primary); background: var(--surface); }

/* cards: white, rounded, no heavy borders */
.panel, .stage, .confs .conf, .board-wrap, .as-col, .changes-form, .leaderboard-wrap, .who-list li {
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
}
.stage { border-top: 0; padding: 1rem 1.15rem; gap: .3rem; }
.stage:hover { border: 0; box-shadow: 0 0 0 2px var(--primary-tint), var(--shadow); }
.stage-title { font-family: var(--body); font-stretch: normal; font-size: 1.05rem; font-weight: 700; }
.confs .conf, .changes-form { border-top: 0; }
.confs .conf > h2, .changes-form legend { font-size: 1.05rem; }
.change, .deadline-admin { border-color: var(--line); border-radius: var(--radius-sm); background: var(--raised); }
.notice { border-left-width: 0; border-radius: var(--radius-sm); }
.league-head h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
.season-tag { font-family: var(--body); font-stretch: normal; font-size: .95rem; }

/* tabs as pills */
.tabs { border-bottom: 0; gap: .4rem; margin-bottom: 1.25rem; }
.tabs a { border: 0; margin: 0; padding: .4rem .9rem; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 500; box-shadow: var(--shadow); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current=page] { background: var(--primary); color: var(--primary-ink); }

/* tables: quiet headers, tinted rows for "you" */
.board thead th, .standings thead th, .leaderboard thead th { border-bottom-width: 2px; }
.leaderboard thead th { border-bottom-color: var(--line); }
.leaderboard tr.me, .board .me { background: var(--primary-tint); }
.board caption { font-size: .85rem; }
.picker .rank-list li { background: var(--raised); border-color: transparent; border-radius: var(--radius-sm); }
.picker .rank-list li.empty-slot { border-color: var(--line); }
.picker .tools button, .pool button { border-radius: 8px; background: var(--raised); border-color: var(--line); }
.pool button:hover { background: var(--c-tint); }
.status.todo { color: var(--err); }

/* ---- home */
.hello { margin: .25rem 0 1rem; }
.home-todo { margin-bottom: 1.75rem; }
.home-todo > h2 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.todo a { display: grid; gap: .1rem; padding: .8rem 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink) !important; border-left: 4px solid var(--line); }
.todo li.required a { border-left-color: var(--err); }
.todo a:hover { box-shadow: 0 0 0 2px var(--primary-tint), var(--shadow); }
.todo-title { font-weight: 600; }
.todo-meta { color: var(--muted); font-size: .9rem; }
.all-set { background: var(--surface); border-radius: var(--radius); padding: .8rem 1rem; color: var(--muted); box-shadow: var(--shadow); }
.league-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .league-grid { grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); } }
.league-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem 1rem; margin: 0; }
.lc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.lc-head h2 { margin: 0; font-size: 1.3rem; }
.lc-head .season-tag { margin: .1rem 0 0; }
.lc-body { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 560px) { .lc-body:not(.solo) { grid-template-columns: 1fr 1.2fr; } }
.lc-place { margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.lc-place .big { font-family: var(--narrow); font-stretch: condensed; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--primary); }
.lc-place .of { color: var(--muted); }
.lc-points { margin: .2rem 0 .5rem; font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-size: 1.25rem; }
.lc-summary { font-weight: 600; margin: 0 0 .5rem; }
.lc-next { color: var(--muted); font-size: .9rem; margin: 0; }
.mini-board { list-style: none; margin: 0; padding: 0; background: var(--raised); border-radius: var(--radius-sm); }
.mini-board li { display: grid; grid-template-columns: 2rem 1fr auto; gap: .5rem; padding: .45rem .75rem; align-items: baseline; }
.mini-board li + li { border-top: 1px solid var(--line); }
.mini-board li.me { background: var(--primary-tint); }
.mini-board li.gap { display: block; text-align: center; color: var(--muted); padding: 0; line-height: 1; }
.mb-place { font-family: var(--narrow); font-stretch: condensed; font-weight: 800; }
.mb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-pts { font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-variant-numeric: tabular-nums; }
.lc-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.lc-links a { text-decoration: none; padding: .35rem .8rem; border-radius: 999px; background: var(--raised); color: var(--ink) !important; font-size: .9rem; font-weight: 500; }
.lc-links a:hover { background: var(--primary-tint); }
.league-card .past { margin-top: .75rem; }

/* ---------- home extras: insights, feed; movement arrows; head to head ---------- */
.insights { list-style: none; margin: .1rem 0 .6rem; padding: 0; display: grid; gap: .25rem; font-size: .9rem; }
.insights li { line-height: 1.5; }
.insights .team { display: inline-flex; vertical-align: middle; }
.insights .muted { font-size: .85rem; }
.insights .team { font-weight: 600; }
.move { font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.move.up { color: var(--ok, #0a8a3a); }
.move.down { color: var(--err); }
.home-feed { margin-top: 1.5rem; }
.feed { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.feed li { display: grid; gap: .1rem; padding: .65rem 1rem; }
.feed li + li { border-top: 1px solid var(--line); }
.feed-meta { color: var(--muted); font-size: .85rem; }
.feed .feed-revealed .feed-text::before { content: "🔓 "; }
.feed .feed-joined .feed-text::before { content: "👋 "; }
.feed .feed-voided .feed-text::before { content: "⚠️ "; }
.feed .feed-savedRanking .feed-text::before, .feed .feed-savedChanges .feed-text::before { content: "✓ "; color: var(--primary); }
td.links { white-space: nowrap; }
.versus-score { display: flex; align-items: center; justify-content: center; gap: 1.25rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin: .5rem 0 1rem; }
.versus-score > div { display: grid; justify-items: center; gap: .1rem; min-width: 6rem; }
.vs-name { font-weight: 600; }
.vs-pts { font-family: var(--narrow); font-stretch: condensed; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--muted); }
.versus-score .lead .vs-pts { color: var(--primary); }
.vs-place { color: var(--muted); font-size: .85rem; }
.vs-sep { font-size: 1.5rem; color: var(--muted); }
table.versus td.win { font-weight: 700; color: var(--primary); }
table.versus tfoot th, table.versus tfoot td { border-top: 2px solid var(--line); font-weight: 700; }

/* ---------- logo on sign-in and invitation pages ---------- */
.brand-logo { display: block; margin: .5rem auto 1rem; width: 168px; height: auto; }
@media (max-width: 420px) { .brand-logo { width: 132px; } }

/* league name links to the season overview */
.lc-title { color: var(--ink) !important; text-decoration: none; display: inline-flex; align-items: baseline; gap: .35rem; }
.lc-title .chev { color: var(--primary); font-weight: 700; transition: transform .15s; }
.lc-title:hover { color: var(--primary) !important; }
.lc-title:hover .chev { transform: translateX(2px); }

/* Season tabs: one swipeable row on phones instead of wrapping onto several lines */
@media (max-width: 640px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -1rem; margin-right: -1rem; padding: .25rem 1rem .4rem; scroll-padding-inline: 1rem; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; }
}

/* ---- play-in and playoffs (step 4) */
.round { margin-bottom: 2rem; }
.round > h2 { font-family: var(--narrow); font-stretch: condensed; font-size: 1.5rem; }
.mult { display: inline-block; font-family: var(--narrow); font-stretch: condensed; font-size: .85rem; font-weight: 700; color: var(--primary); background: var(--primary-tint); border-radius: 6px; padding: 0 .4rem; vertical-align: middle; }
.matches { display: grid; gap: .9rem; }
@media (min-width: 640px) { .round > .matches { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); } }
.match { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; display: grid; gap: .45rem; }
.confs .match { background: var(--raised); }
.match > * { margin: 0; }
.match.pending { color: var(--muted); border-style: dashed; background: transparent; }
.match-title { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: none; }
.matchup { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; font-size: 1.05rem; }
.matchup .at, .matchup .vs { color: var(--muted); font-size: .85rem; }
.seeded { display: inline-flex; align-items: center; gap: .35rem; }
.seed { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-size: .8rem; color: var(--muted); }
.series-score { font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-size: 1.05rem; }
.series-score.done { color: var(--ok); }
.result strong { font-weight: 700; }
.pick-form { display: grid; gap: .6rem; }
.choice, .games-choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.games-choice legend { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; width: 100%; }
.team-choice, .games-choice label { position: relative; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: .45rem .7rem; min-height: 2.75rem; }
.team-choice { flex: 1 1 10rem; }
.games-choice label { min-width: 2.9rem; justify-content: center; font-family: var(--narrow); font-stretch: condensed; font-weight: 700; font-size: 1.1rem; }
.team-choice input, .games-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.team-choice:has(input:checked), .games-choice label:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); box-shadow: inset 0 0 0 1px var(--primary); }
.team-choice:has(input:focus-visible), .games-choice label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.who-picked summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.who-picked .who-list { margin: .5rem 0 0; }
.picks { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.picks th, .picks td { padding: .3rem .4rem; border-top: 1px solid var(--line); text-align: left; }
.picks th { font-weight: 600; }
.picks tr.me { background: var(--primary-tint); }
.picks tr.right td:first-of-type::after, .post-lines tr.right td:nth-of-type(1)::after { content: " ✓"; color: var(--ok); font-weight: 700; }
.picks tr.wrong td:first-of-type::after, .post-lines tr.wrong td:nth-of-type(1)::after { content: " ✗"; color: var(--err); font-weight: 700; }
.picks td.num, .post-lines td.num { text-align: right; font-weight: 700; }
.post-detail { --c: var(--primary); margin-bottom: 1.5rem; }
.post-detail h3 { margin-top: 1rem; }
.leaderboard .post-col { color: var(--muted); }
.leaderboard .ahead { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.post-deadlines { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.post-deadline { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; background: var(--raised); }
.post-deadline > p { margin: 0 0 .35rem; }
.replay-status { font-weight: 700; font-size: 1.05rem; }
.replay-next { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.replay-next li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.speed-choice { border: 0; padding: 0; margin: 0 0 .75rem; display: grid; gap: .4rem; }

/* ---- champion's ring (season over) */
.ring { display: inline-flex; vertical-align: -.35em; width: 1.6em; height: 1.6em; margin-right: .35em; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-band { fill: none; stroke: #c9971c; stroke-width: 2.6; }
.ring-stone { fill: #f2c94c; stroke: #a87b10; stroke-width: 1; stroke-linejoin: round; }
.ring-shine { stroke: #fff6d6; stroke-width: 1; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .ring-band { stroke: #e3b341; } .ring-stone { stroke: #c9971c; } }
.lc-place .ring { width: 2em; height: 2em; }
.badge.corrected { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--west); background: var(--west-tint); border-radius: 6px; padding: 0 .35rem; vertical-align: middle; }

/* ---- step 5: reminders, devices, group-chat message */
.rem-grid { border-collapse: collapse; }
.rem-grid th, .rem-grid td { padding: .35rem .6rem; text-align: left; border-top: 1px solid var(--line); }
.rem-grid thead th { border-top: 0; font-size: .85rem; color: var(--muted); }
.rem-grid td { text-align: center; }
.rem-grid input { width: 1.2rem; height: 1.2rem; }
.devices { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .35rem; }
.devices li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.share { margin-top: 1.25rem; }
.share .copy-row { display: grid; gap: .5rem; }
.share textarea { width: 100%; font: inherit; font-size: .92rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem; background: var(--raised); color: var(--ink); resize: vertical; }
.share .button { justify-self: start; }
