:root {
  --bg: #e9eef3;
  --surface: #ffffff;
  --ink: #0f2236;
  --muted: #5b6b7c;
  --line: #d3dce5;
  --win: #11845b;
  --lose: #c8432f;
  --live: #e6a100;
  --bar-me: #11845b;
  --bar-opp: #c9d3dd;
  --sleeper: #5b4bd6;
  --espn: #c8432f;
  --yahoo: #6a1fb0;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f2236;
    --surface: #17304a;
    --ink: #eef3f8;
    --muted: #9db0c3;
    --line: #26425f;
    --win: #3ad08a;
    --lose: #ff7a66;
    --live: #ffc233;
    --bar-me: #3ad08a;
    --bar-opp: #2c4a68;
    --sleeper: #9d92ff;
    --espn: #ff7a66;
    --yahoo: #c18aff;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 var(--body);
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--live); outline-offset: 2px; border-radius: 6px; }

/* Header: the week is the headline */
.top {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.week { text-align: center; }
.week h1 {
  margin: 0; font: 700 34px/1 var(--display); letter-spacing: 0.01em;
}
.updated { font-size: 13px; color: var(--muted); padding: 2px 8px; }
.week-step {
  width: 44px; height: 44px; border-radius: 50%;
  font: 600 30px/1 var(--display); color: var(--muted);
}
.week-step:disabled { opacity: 0.3; cursor: default; }

main { max-width: 560px; margin: 0 auto; padding: 12px 16px 32px; }

/* Platform problems */
.error {
  margin: 0 0 10px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--lose) 14%, var(--surface));
  border-left: 4px solid var(--lose);
  font-size: 14px;
}

/* Matchup card */
.card {
  display: block; width: 100%; text-align: left;
  margin: 0 0 12px; padding: 12px 14px 14px;
  background: var(--surface); border-radius: 14px;
  border-left: 5px solid var(--plat, var(--line));
}
.card[data-platform="sleeper"] { --plat: var(--sleeper); }
.card[data-platform="espn"] { --plat: var(--espn); }
.card[data-platform="yahoo"] { --plat: var(--yahoo); }
.card.out { opacity: 0.55; }

.card-head {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.league { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat { color: var(--plat); font-weight: 600; flex: none; }
.tag { margin-left: 6px; font-weight: 500; }

.team { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 4px 0; }
.team-name { font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.logo {
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  background: var(--line); color: var(--muted); font: 600 11px/1 var(--body);
}
.logo.sm { width: 20px; height: 20px; font-size: 9px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.rec { font-weight: 600; color: var(--ink); }
.team-score {
  grid-row: span 2; align-self: center;
  font: 700 40px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.team.leading .team-score { color: var(--win); }
.team-meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.playing { color: var(--live); font-weight: 600; }


.verdict { display: flex; justify-content: space-between; font-size: 14px; }
.verdict .delta { font: 600 17px/1.2 var(--display); }
.up { color: var(--win); }
.down { color: var(--lose); }
.live-dot { color: var(--live); font-weight: 600; }

.chopline { font: 600 22px/1.2 var(--display); margin-top: 2px; }

.card-wrap { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; margin: 0 0 12px; }
.card-wrap .card { margin: 0; }
.editing .card { cursor: default; }
.move { display: grid; gap: 8px; }
.move button {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); font: 600 22px/1 var(--display);
}
.move button:disabled { opacity: 0.3; cursor: default; }
.edit-order {
  display: block; margin: 4px auto 0; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px;
}

.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

/* Login */
.login {
  max-width: 340px; margin: 18vh auto 0; padding: 0 16px;
  display: grid; gap: 10px;
}
.login h1 { font: 700 36px/1 var(--display); margin: 0 0 12px; }
.login label { font-weight: 600; }
.login input {
  font: inherit; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.login button { padding: 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.login-error { color: var(--lose); min-height: 1.4em; margin: 0; }

/* Lineup sheet */
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh;
  margin: auto auto 0; padding: 0 0 calc(env(safe-area-inset-bottom) + 12px);
  border: 0; border-radius: 18px 18px 0 0;
  background: var(--surface); color: var(--ink);
}
.sheet::backdrop { background: rgb(5 15 25 / 0.55); }
.sheet-head {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font: 700 22px/1.1 var(--display); }
.sheet-close { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; color: var(--muted); }
.standings { padding: 4px 16px 12px; }
.standings h3 { font: 600 18px/1.2 var(--display); margin: 8px 0 4px; }
.stand { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.stand.me { font-weight: 600; }
.stand.last .stand-score { color: var(--lose); }
.stand-score { font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.game { padding: 8px 0; border-top: 1px solid var(--line); }
.game.mine { box-shadow: inset 3px 0 0 var(--win); padding-left: 10px; }
.g-team { display: grid; grid-template-columns: 1fr auto 72px; gap: 8px; align-items: baseline; padding: 2px 0; }
.g-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.g-score { font: 600 18px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.g-team.lead .g-score { color: var(--win); }
.g-proj { font-size: 12px; color: var(--muted); text-align: right; }
.g-status { font-size: 12px; color: var(--muted); }

.stand.league { grid-template-columns: 24px 1fr auto 56px; }
.stand.me { color: var(--win); }
.stand.opp { font-weight: 600; }
.stand-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.stand-rec, .stand-pf { font-variant-numeric: tabular-nums; text-align: right; }
.stand-pf { color: var(--muted); }

/* Tabs */
.tabs {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  width: 100%; max-width: 528px; margin: 8px auto 0; padding: 4px; border-radius: 12px;
  background: var(--line);
}
.tab { padding: 8px 0; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.top.history-mode .week-step, .top.history-mode .updated { visibility: hidden; }

/* Summary bar */
.summary { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.sum-main { display: flex; gap: 28px; align-items: baseline; }
.sum-num { font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; margin-right: 6px; }
.sum-label { font-size: 13px; color: var(--muted); }
.sum-detail { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.sum-chips { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--line); }
.chip.safe { color: var(--win); }
.chip.danger { color: var(--lose); }
.chip.out { color: var(--muted); }

/* History */
.h-card { cursor: default; }
.h-title { margin: 4px 0 2px; font: 600 15px/1.3 var(--body); color: var(--muted); }
.h-title span { display: block; font: 700 26px/1.1 var(--display); color: var(--ink); }
.h-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); font-weight: 400; }
.h-card details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.h-card summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.h-card summary .h-meta { display: block; }
.h-week { display: grid; grid-template-columns: 44px 58px auto 1fr; gap: 8px; align-items: baseline; padding: 5px 0; font-size: 14px; border-top: 1px solid var(--line); }
.h-wk { color: var(--muted); }
.h-res { font-weight: 700; }
.h-score { font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-opp { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.h-season { display: grid; grid-template-columns: 44px 1fr auto 74px; gap: 8px; align-items: baseline; padding: 5px 0; font-size: 14px; border-top: 1px solid var(--line); }
.h-yr { color: var(--muted); font-variant-numeric: tabular-nums; }
.h-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-rec { font-variant-numeric: tabular-nums; }
.h-fin { text-align: right; color: var(--muted); }
.h-season.champ { font-weight: 700; }
.h-season.champ .h-fin { color: var(--live); }

@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: rise 0.22s ease-out; }
  @keyframes rise { from { transform: translateY(24px); opacity: 0.6; } }
}
@media (max-width: 380px) {
  .team-score { font-size: 34px; }
}
.rival { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: left; }
.rival b { color: var(--ink); }
.rival b.up, .h-rec.up { color: var(--win); }
.rival b.down, .h-rec.down { color: var(--lose); }
.h-rival { display: grid; grid-template-columns: 1fr auto 36px; gap: 2px 8px; align-items: baseline; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--line); }
.h-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-who small { margin-left: 6px; color: var(--muted); }
.h-rival .h-rec { font-weight: 700; }
.h-streak { color: var(--muted); text-align: right; }
.h-last { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

/* Game day */
.gd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 13px; }
.wp { font: 700 16px/1.1 var(--display); }
.plays { display: flex; flex-wrap: wrap; gap: 4px; }
.play { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--line); }
.need { margin-top: 6px; font-size: 13px; color: var(--muted); }
.need b { color: var(--ink); font-weight: 700; }
.need b.down { color: var(--lose); }
@media (prefers-reduced-motion: no-preference) {
  .card.flash { animation: flash 1.2s ease-out; }
  @keyframes flash { 0% { box-shadow: 0 0 0 3px var(--live); } 100% { box-shadow: 0 0 0 0 transparent; } }
}

/* Played / playing / not started */
.dots { display: inline-flex; gap: 3px; align-items: center; flex-basis: 100%; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.post { background: var(--muted); }
.dot.in { background: var(--live); }
.dot.pre { border: 1.5px solid var(--muted); width: 5px; height: 5px; }

/* Playoff odds and next up */
.standings h3 small { font: 500 12px/1 var(--body); color: var(--muted); float: right; margin-top: 6px; }
.standings.with-odds .stand.league { grid-template-columns: 24px 1fr auto 48px 44px; }
.stand-odds { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.h-odds { margin: 8px 0 0; font-size: 15px; }
.h-odds b { font: 700 20px/1 var(--display); }
.h-odds .h-meta { display: block; }
.next-up { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--line) 45%, transparent); }
.next-name { font: 700 18px/1.2 var(--display); }
.next-facts { display: grid; gap: 2px; font-size: 13px; margin-top: 4px; }
.form { font-style: normal; font-weight: 700; margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .dot.in { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.35; } }
}

/* Lineup sheet: tabs */
.sheet-tabs { position: sticky; top: 65px; z-index: 2; display: flex; gap: 4px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-tabs button { flex: 1; padding: 8px 0; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.sheet-tabs button[aria-selected="true"] { background: var(--line); color: var(--ink); }
.sheet-panel { padding: 4px 0 8px; }
.sheet-panel .standings h3 { display: none; }
.sheet-panel .standings.with-odds h3 { display: block; font-size: 14px; color: var(--muted); }

/* Matchup header */
.mu-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; padding: 12px 16px 6px; }
.mu-side { display: grid; min-width: 0; }
.mu-side.right { text-align: right; }
.mu-name { font: 600 15px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-score { font: 700 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.mu-side small { font-size: 12px; color: var(--muted); }
.mu-mid { display: grid; text-align: center; padding-bottom: 14px; color: var(--muted); font-size: 13px; }
.mu-mid b { font: 700 22px/1 var(--display); }
.mu-mid small { font-size: 11px; }
.mu-need, .mu-facts { margin: 0; padding: 2px 16px 4px; font-size: 13px; color: var(--muted); }
.mu-need b { color: var(--ink); }
.mu-need b.down { color: var(--lose); }

/* Position-by-position rows */
.cmp-list { padding: 4px 12px 0; }
.cmp { border-top: 1px solid var(--line); }
.cmp summary { list-style: none; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; min-height: 44px; cursor: pointer; }
.cmp summary::-webkit-details-marker { display: none; }
.cmp-list.solo .cmp summary { grid-template-columns: 1fr 40px 0; }
.cp { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 6px 8px; border-radius: 8px; }
.cp.me { border-left: 4px solid transparent; }
.cp.opp { border-right: 4px solid transparent; }
.cp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cp-pts { font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; flex: none; }
.cp-slot { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.cp.done.me { border-left-color: var(--muted); }
.cp.done.opp { border-right-color: var(--muted); }
.cp.live { background: color-mix(in srgb, var(--live) 12%, transparent); }
.cp.live.me { border-left-color: var(--live); }
.cp.live.opp { border-right-color: var(--live); }
.cp.pre .cp-name, .cp.pre .cp-pts { color: var(--muted); }
.cp.pre.me { border-left: 4px dotted var(--line); }
.cp.pre.opp { border-right: 4px dotted var(--line); }
.cp.bye, .cp.empty { opacity: 0.5; }
.cp.win .cp-pts { color: var(--win); }
.cp.win .cp-name { font-weight: 600; }
.cp-detail { display: grid; gap: 4px; padding: 2px 8px 10px; font-size: 13px; }
.cp-line { display: grid; }
.cp-line small { color: var(--muted); }
.cp-line span { color: var(--muted); }
.cp-line.live span { color: var(--live); font-weight: 600; }
.cmp-key { margin: 8px 16px 0; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.key.in { background: var(--live); }
.key.pre { border: 2px dotted var(--muted); width: 6px; height: 6px; }
.key.post { background: var(--muted); }

/* Bench */
.bench { margin: 8px 12px 0; border-top: 1px solid var(--line); }
.bench summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); padding: 10px 8px; }
.bench summary span { float: right; font-variant-numeric: tabular-nums; }
.bench-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 8px; }
.bench-cols.single { grid-template-columns: 1fr; }
.bn { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; font-size: 13px; border-top: 1px solid var(--line); }
.bn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn small { color: var(--muted); }
.bn.pre b { color: var(--muted); }

/* Player photos */
.cp-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cp.opp .cp-who { justify-content: flex-end; }
.face {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--line); overflow: visible;
}
.face > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.face.team > img:first-child { object-fit: contain; padding: 3px; }
.face-team {
  position: absolute; right: -4px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); padding: 1px; object-fit: contain;
}
.cp.pre .face, .cp.bye .face { opacity: 0.75; }
.bn .cp-who { display: flex; }
.bn .face { width: 24px; height: 24px; }
.bn .face-team { width: 12px; height: 12px; }
@media (max-width: 360px) {
  .cmp .face { width: 24px; height: 24px; }
  .cmp .face-team { display: none; }
}

/* Updated time and pull to refresh */
.updated.stale { color: var(--lose); font-weight: 600; }
.ptr {
  height: 0; overflow: hidden; display: grid; place-items: end center;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.ptr.ready { color: var(--ink); }
html, body { overscroll-behavior-y: contain; }

/* TV mode: phone sideways, a grid of big scores */
@media (orientation: landscape) and (max-height: 540px) {
  .top { grid-template-columns: 44px auto 44px 1fr; column-gap: 8px; padding: calc(env(safe-area-inset-top) + 4px) max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left)); }
  .week { display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .week h1 { font-size: 24px; }
  .week-step { width: 40px; height: 40px; }
  .top .tabs { grid-column: 4; grid-row: 1; justify-self: end; width: 220px; margin: 0; }
  main { max-width: none; padding: 10px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
  #scores-view .summary, #edit-order { display: none; }
  #list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: start; }
  #list .card, #list .card-wrap { margin: 0; }
  #list .card { padding: 10px 14px 12px; }
  #list .team-meta, #list .need, #list .plays, #list .rival { display: none; }
  #list .team-score { font-size: 48px; grid-row: auto; }
  #list .team-name { font-size: 16px; }
  #list .gd { margin-top: 4px; }
  #history-view { max-width: 640px; margin: 0 auto; }
  /* Compact tiles so two rows of games fit on a sideways phone */
  #list .card { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 8px 12px 10px; }
  #list .card > * { flex: 1 0 100%; }
  #list .card-head { margin-bottom: 2px; }
  #list .team { padding: 1px 0; }
  #list .team-score { font-size: 40px; }
  #list .card > .verdict { flex: 1 1 auto; margin-top: 4px; }
  #list .card > .gd { flex: 0 0 auto; order: 9; margin-top: 4px; }
  #list .chopline { font-size: 18px; }
}
/* Room for names next to the photos */
.cmp-list { padding: 4px 8px 0; }
.cmp summary { grid-template-columns: 1fr 30px 1fr; }
.cmp-list.solo .cmp summary { grid-template-columns: 1fr 30px 0; }
.cmp .cp { padding: 5px 6px; gap: 4px; }
.cmp .cp-who { gap: 5px; }
.cmp .face { width: 26px; height: 26px; }
.cmp .face-team { width: 13px; height: 13px; right: -3px; }
.cmp .cp-pts { font-size: 17px; }
.cmp .cp-name { font-size: 13.5px; }

/* Box-score line under each player's name */
.cmp .cp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 1px; }
.cmp .cp.opp { grid-template-columns: auto minmax(0, 1fr); }
.cp-stat {
  grid-column: 1 / -1; font-size: 11px; line-height: 1.2; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cp.opp .cp-stat { text-align: right; }
.cp.me .cp-stat { padding-left: 31px; }
.cp.opp .cp-stat { padding-right: 31px; }
.cp-line em { font-style: normal; color: var(--ink); }

/* Keep the sheet title above scrolling photos */
.sheet-head { z-index: 3; }

/* League tab: tap a game to see its lineups */
.game.open { display: block; width: 100%; text-align: left; cursor: pointer; }
.game.open:active { background: color-mix(in srgb, var(--line) 40%, transparent); }
.g-status { display: flex; justify-content: space-between; }
.g-open { color: var(--ink); font-weight: 600; }
.back { margin: 10px 16px 0; padding: 6px 12px; border-radius: 999px; background: var(--line); font-weight: 600; font-size: 14px; }

/* Record banner: one thin line */
.summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin: 0 0 10px; padding: 7px 12px; border-radius: 10px; font-size: 13px; color: var(--muted);
}
.summary b { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.summary b.up { color: var(--win); }
.summary b.down { color: var(--lose); }
.summary small { font-size: 12px; }
.summary .chip { padding: 2px 8px; }
.summary { flex-wrap: wrap; gap: 4px 12px; }
.summary .chip { font-size: 12px; margin-left: auto; }

/* Red zone */
.rz-tag { display: inline-block; padding: 0 4px; border-radius: 4px; background: var(--lose); color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; }
.cp.rz.me { border-left-color: var(--lose); }
.cp.rz.opp { border-right-color: var(--lose); }
.play.rz { background: color-mix(in srgb, var(--lose) 18%, var(--surface)); color: var(--lose); }
.cp-line .rz-line { color: var(--lose); font-weight: 600; }

/* Win chance today */
.wc-graph { margin: 6px 16px 4px; }
.wc-graph figcaption { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.wc-read { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wc-plot { position: relative; height: 64px; touch-action: pan-y; cursor: crosshair; }
.wc-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wc-mid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.wc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wc-graph.up .wc-line { stroke: var(--win); }
.wc-graph.down .wc-line { stroke: var(--lose); }
.wc-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.wc-graph.up .wc-dot:not(.wc-cursor) { background: var(--win); }
.wc-graph.down .wc-dot:not(.wc-cursor) { background: var(--lose); }
.wc-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.wc-mid { stroke: var(--muted); stroke-opacity: 0.6; }
.wc-wait { margin: 0; padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--line); font-size: 12px; color: var(--muted); }

/* Rows are plain now; each player is a button that opens their card */
.cmp { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; min-height: 44px; }
.cmp-list.solo .cmp { grid-template-columns: 1fr 30px 0; }
button.cp { width: 100%; text-align: left; cursor: pointer; }
button.cp.opp { text-align: right; }
button.cp:active, button.bn:active { background: color-mix(in srgb, var(--line) 50%, transparent); }
button.bn { width: 100%; text-align: left; cursor: pointer; align-items: center; }

/* Player card */
.pcard {
  width: calc(100% - 32px); max-width: 420px; max-height: 85vh; padding: 0 0 14px;
  border: 0; border-radius: 16px; background: var(--surface); color: var(--ink);
}
.pcard::backdrop { background: rgb(5 15 25 / 0.6); }
.pc-head { display: grid; grid-template-columns: 64px 1fr 40px; gap: 12px; align-items: start; padding: 16px 12px 8px 16px; }
.pc-photo { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--line); }
.pc-photo > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.pc-photo.team > img:first-child { object-fit: contain; padding: 6px; }
.pc-photo .face-team { width: 24px; height: 24px; right: -4px; bottom: -2px; }
.pc-who { min-width: 0; }
.pc-who h3 { margin: 0; font: 700 24px/1.1 var(--display); }
.pc-who p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pc-game.live { color: var(--live); font-weight: 600; }
.pc-ball { margin: 0 16px 6px; font-size: 13px; color: var(--muted); }
.pc-pts { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 16px 0; color: var(--muted); font-size: 14px; }
.pc-pts b { font: 700 36px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-line { margin: 6px 16px 0; font-size: 14px; }
.pc-bd { width: calc(100% - 32px); margin: 10px 16px 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pc-bd caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.pc-bd th { text-align: left; font-weight: 500; }
.pc-bd th, .pc-bd td { padding: 5px 0; border-top: 1px solid var(--line); }
.pc-bd td { text-align: right; color: var(--muted); width: 56px; }
.pc-bd td:last-child { color: var(--ink); font-weight: 600; width: 64px; }
.pc-bd td.down { color: var(--lose); }
.pc-total th, .pc-total td { font-weight: 700; }
.pc-note { margin: 10px 16px 0; font-size: 13px; color: var(--muted); }

/* Cards: the win-chance bar is gone; keep a little room above the lead line */
.card .verdict { margin-top: 6px; }

/* Finished games: a settled result */
.card.final.won { background: color-mix(in srgb, var(--win) 9%, var(--surface)); }
.card.final.lost { background: color-mix(in srgb, var(--lose) 8%, var(--surface)); }
.card.final:not(.solo) .team:not(.leading) .team-score { color: var(--muted); }
.card.final .team-meta { min-height: 0; }
.result { display: inline-flex; align-items: center; gap: 6px; font: 700 18px/1.2 var(--display); letter-spacing: 0.02em; }
.result i {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font: 700 12px/1 var(--body); font-style: normal; color: var(--surface);
}
.result.won { color: var(--win); }
.result.won i { background: var(--win); }
.result.lost { color: var(--lose); }
.result.lost i { background: var(--lose); }
.result.tied i { background: var(--muted); }
.final-tag { align-self: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card.final > .team-meta { margin-top: 2px; }
.card.final.lost .team.leading .team-score { color: var(--ink); }

/* Scoring feed */
.feed-empty, .feed-key { margin: 12px 16px 0; font-size: 13px; color: var(--muted); }
.feed-key { font-size: 12px; margin-bottom: 4px; }
.feed { padding: 0 16px 8px; }
.fd-day { margin: 12px 0 2px; font: 600 13px/1.2 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fd {
  display: grid; grid-template-columns: 64px 1fr auto; column-gap: 8px; row-gap: 1px; align-items: baseline;
  padding: 7px 0 7px 8px; border-top: 1px solid var(--line); border-left: 3px solid transparent;
}
.fd.good { border-left-color: var(--win); }
.fd.bad { border-left-color: var(--lose); }
.fd-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fd-who { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-who small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.fd-pts { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.fd.good .fd-pts { color: var(--win); }
.fd.bad .fd-pts { color: var(--lose); }
.fd-what { grid-column: 2; font-size: 12px; color: var(--muted); }
.fd-score { grid-column: 3; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

/* Recent points badge on player rows */
.cp-delta { display: inline-block; padding: 0 4px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 14px; }
.cp-delta.good { background: color-mix(in srgb, var(--win) 22%, transparent); color: var(--win); }
.cp-delta.bad { background: color-mix(in srgb, var(--lose) 22%, transparent); color: var(--lose); }

/* Injury tags and lineup alerts */
.inj { display: inline-block; margin-left: 4px; padding: 0 3px; border-radius: 3px; font: 700 10px/13px var(--body); font-style: normal; vertical-align: 1px; }
.inj.q { background: color-mix(in srgb, var(--live) 25%, transparent); color: var(--live); }
.inj.out { background: color-mix(in srgb, var(--lose) 22%, transparent); color: var(--lose); }
.pc-inj { font-weight: 700; }
.pc-inj.q { color: var(--live) !important; }
.pc-inj.out { color: var(--lose) !important; }
.lineup-alert {
  margin: 0 0 6px; padding: 5px 8px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--lose) 14%, var(--surface)); color: var(--lose);
}

/* Victory card */
.brag-btn {
  display: block; margin: 8px 16px 2px; padding: 10px 14px; width: calc(100% - 32px); border-radius: 12px;
  background: var(--win); color: var(--bg); font: 700 18px/1.1 var(--display); letter-spacing: 0.02em;
}
.brag { padding-bottom: 16px; }
.brag-head { grid-template-columns: 1fr 40px; padding-bottom: 4px; }
.brag-head h3 { margin: 6px 0 0; font: 700 24px/1.1 var(--display); }
.brag-canvas { display: block; width: calc(100% - 32px); height: auto; margin: 4px 16px 0; border-radius: 10px; }
.brag-label { margin: 12px 16px 4px; font-size: 12px; color: var(--muted); }
.brag-taunts { display: grid; gap: 6px; padding: 0 16px; }
.taunt { text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.taunt[aria-pressed="true"] { border-color: var(--win); background: color-mix(in srgb, var(--win) 14%, transparent); font-weight: 600; }
.brag-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 12px 16px 0; }
.brag-go, .brag-copy { padding: 12px; border-radius: 12px; font-weight: 700; }
.brag-go { background: var(--win); color: var(--bg); }
.brag-copy { border: 1px solid var(--line); }
.brag-status { margin: 8px 16px 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }

/* Dynasty tab */
.tabs { grid-template-columns: 1fr 1fr 1fr; }
.dy-leagues, .dy-views, .dy-sort, .dy-years { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.dy-leagues button, .dy-views button, .dy-sort button, .dy-years button {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted);
}
.dy-leagues button[aria-pressed="true"], .dy-views button[aria-pressed="true"], .dy-sort button[aria-pressed="true"], .dy-years button[aria-pressed="true"] {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.dy-views { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dy-notes p, .dy-muted { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.dy-loading { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--live) 14%, var(--surface)); font-size: 13px; }
.dy-team { background: var(--surface); border-radius: 12px; margin: 0 0 8px; }
.dy-team.me { box-shadow: inset 4px 0 0 var(--win); }
.dy-team summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 26px 1fr auto; column-gap: 8px; row-gap: 4px;
  align-items: center; padding: 10px 12px;
}
.dy-team summary::-webkit-details-marker { display: none; }
.dy-rank { font: 700 18px/1 var(--display); color: var(--muted); }
.dy-name { min-width: 0; display: grid; }
.dy-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-name small, .dy-sub { font-size: 12px; color: var(--muted); }
.dy-total { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.dy-bar { grid-column: 2 / -1; display: flex; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dy-bar i { display: block; height: 100%; background: var(--win); }
.dy-bar i.pk { background: var(--sleeper); }
.dy-sub { grid-column: 2 / -1; }
.dy-roster { padding: 0 12px 10px 46px; }
.dy-roster h4 { margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.dy-p { display: grid; grid-template-columns: 1fr auto 56px; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; }
.dy-p small { color: var(--muted); }
.dy-p b { text-align: right; font-variant-numeric: tabular-nums; }
.dy-trend { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dy-trend.up { color: var(--win); }
.dy-trend.down { color: var(--lose); }
.dy-h { margin: 14px 0 6px; font: 700 20px/1.1 var(--display); }
.dy-h small { font: 500 12px var(--body); color: var(--muted); margin-left: 6px; }
.dy-mgrs { background: var(--surface); border-radius: 12px; padding: 4px 12px; margin-bottom: 8px; }
.dy-mg { display: grid; grid-template-columns: 1fr 40px 46px 44px 40px; gap: 6px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.dy-mg:first-child { border-top: 0; }
.dy-mg.head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dy-mg span:not(:first-child), .dy-mg b { text-align: right; }
.dy-mg small { display: block; font-size: 11px; color: var(--muted); }
.dy-mg.me { color: var(--win); font-weight: 600; }
.dy-mine { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 6px; }
.dy-picks { background: var(--surface); border-radius: 12px; padding: 2px 12px; }
.dy-pick { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.dy-pick:first-child { border-top: 0; }
.dy-pick.me { box-shadow: inset 3px 0 0 var(--win); padding-left: 6px; }
.dy-pick.none { opacity: 0.55; }
.dy-slot { font: 700 16px/1 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.dy-who { min-width: 0; }
.dy-who small { color: var(--muted); }
.dy-by { display: block; font-size: 12px; }
.dy-num { text-align: right; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.dy-num small { display: block; font: 500 11px var(--body); color: var(--muted); margin-top: 2px; }
.dy-tag { display: inline-block; padding: 0 5px; border-radius: 4px; font: 700 10px/14px var(--body); font-style: normal; text-transform: uppercase; vertical-align: 1px; }
.dy-tag.steal { background: color-mix(in srgb, var(--win) 22%, transparent); color: var(--win); }
.dy-tag.bust { background: color-mix(in srgb, var(--lose) 22%, transparent); color: var(--lose); }
.dy-tag.hit { background: var(--line); color: var(--ink); }
main:has(#dynasty-view:not([hidden])) { max-width: 640px; }

/* Trades */
.tr { background: var(--surface); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.tr.me { box-shadow: inset 4px 0 0 var(--win); }
.tr-when { margin: 0 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tr-side { padding: 6px 0 4px; border-top: 1px solid var(--line); }
.tr-side.won .tr-who b { color: var(--win); }
.tr-who { margin: 0 0 2px; font-size: 14px; }
.tr-who small { color: var(--muted); }
.tr-a { display: grid; grid-template-columns: 1fr 56px 48px; gap: 6px; align-items: baseline; padding: 3px 0; font-size: 14px; }
.tr-a small { color: var(--muted); font-size: 12px; }
.tr-a > b, .tr-a > small { text-align: right; font-variant-numeric: tabular-nums; }
.tr-a.tot { border-top: 1px dashed var(--line); margin-top: 2px; font-weight: 600; }
.tr-a.tot span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.tr-v { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.tr-v.muted { color: var(--muted); font-weight: 500; }
.dy-mg.tr-rec { grid-template-columns: 1fr 48px 44px 64px; }

/* ===== Sizes: phone (default), tablet 700–999px, desktop 1000px+ ===== */

/* Selected card (desktop panel) */
.card.selected { box-shadow: 0 0 0 2px var(--ink); }

/* Sticky mini score bar in the matchup, once the big scores scroll away */
.mu-mini {
  display: none; position: sticky; top: 112px; z-index: 2; margin: 0 12px; padding: 6px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, var(--ink)); box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
  grid-template-columns: 1fr auto auto auto 1fr; gap: 8px; align-items: center; font-size: 12px;
}
.mu-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mu-mini span:last-child { text-align: right; }
.mu-mini b { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.mu-mini i { font-style: normal; font-weight: 700; color: var(--muted); }
.sheet.scrolled .mu-mini { display: grid; }

/* Phone: tabs at the bottom, under your thumb */
@media (max-width: 699px) {
  .top .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; max-width: none; margin: 0; border-radius: 0;
    padding: 6px 12px calc(env(safe-area-inset-bottom) + 6px); background: var(--surface);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(0 0 0 / 0.2);
  }
  .top .tab { padding: 10px 0; }
  main { padding-bottom: calc(env(safe-area-inset-bottom) + 80px); }
  body { padding-bottom: 0; }
}

/* Tablet and up: the sheet is a centered panel, not a bottom sheet */
@media (min-width: 700px) {
  .sheet { margin: auto; border-radius: 18px; max-height: 90vh; max-width: 620px; }
}

/* Tablet portrait: two columns of cards */
@media (min-width: 700px) and (max-width: 999px) {
  main { max-width: 920px; }
  #list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  #list .card, #list .card-wrap { margin: 0; }
  #list > .empty { grid-column: 1 / -1; }
}

/* Desktop (and tablet landscape): cards on the left, the open matchup in a panel on the right */
@media (min-width: 1000px) {
  .top { padding-left: max(16px, calc((100vw - 1400px) / 2 + 16px)); padding-right: max(16px, calc((100vw - 1400px) / 2 + 16px)); }
  .top .tabs { max-width: 420px; }
  main { max-width: 1400px; }
  #scores-view, #errors { max-width: 460px; }
  body.split .sheet {
    position: fixed; z-index: 1; margin: 0; inset: auto;
    top: var(--top-h, 132px); bottom: 16px;
    left: calc(max(16px, (100vw - 1400px) / 2 + 16px) + 480px);
    right: max(16px, calc((100vw - 1400px) / 2 + 16px));
    width: auto; max-width: none; max-height: none; height: auto; overflow: auto;
    border-radius: 16px; box-shadow: 0 8px 30px rgb(0 0 0 / 0.3);
  }
  body.split .sheet-head { border-radius: 16px 16px 0 0; }
  .card { cursor: pointer; }
  .card:hover { box-shadow: 0 0 0 1px var(--line); }
  .card.selected, .card.selected:hover { box-shadow: 0 0 0 2px var(--ink); }

  /* Dynasty and History get the width */
  main:has(#dynasty-view:not([hidden])) { max-width: 1200px; }
  main:has(#history-view:not([hidden])) { max-width: 760px; }
  .dy-board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
  .dy-board .dy-team { margin: 0; }
  .dy-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
  .dy-split > section:first-child { position: sticky; top: calc(var(--top-h, 132px)); }
}

/* ===== Board view toggle and NFL strip ===== */
.view-bar { display: flex; gap: 10px; align-items: stretch; }
.view-bar .summary { flex: 1; min-width: 0; }
.board-toggle {
  display: none; flex: none; align-self: flex-start; margin: 0 0 10px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink);
}
@media (min-width: 700px) { .board-toggle { display: block; } }
.ticker { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 4px; scrollbar-width: thin; }
.tk { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk.in { box-shadow: inset 0 0 0 1px var(--live); }
.tk.post { color: var(--muted); }
.tk small { color: var(--muted); font-size: 11px; }
.tk.in small { color: var(--live); font-weight: 600; }
.tk .ball { color: var(--ink); }
.tk i { width: 7px; height: 7px; border-radius: 50%; background: var(--win); display: inline-block; }

/* ===== Board view: every matchup as a big tile (tablet on game day) ===== */
body.board main { max-width: 1400px; padding: 12px 18px 28px; }
body.board #scores-view, body.board #errors { max-width: none; }
body.board #list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: stretch; }
body.board #list .card, body.board #list .card-wrap { margin: 0; }
body.board #list .card { padding: 16px 18px 18px; border-radius: 18px; display: flex; flex-direction: column; }
body.board #list .card > .verdict, body.board #list .card > .gd { margin-top: auto; }
body.board #list .card-head { font-size: 14px; margin-bottom: 10px; }
body.board #list .team { padding: 6px 0; }
body.board #list .team-name { font-size: 20px; }
body.board #list .logo { width: 36px; height: 36px; }
body.board #list .team-score { font-size: 56px; }
body.board #list .team-meta { font-size: 14px; }
body.board #list .verdict { font-size: 15px; padding-top: 8px; }
body.board #list .verdict .delta, body.board #list .result { font-size: 20px; }
body.board #list .wp { font-size: 22px; }
body.board #list .play { font-size: 13px; padding: 3px 9px; }
body.board #list .lineup-alert { font-size: 14px; }
body.board .edit-order { display: none; }
body.board #list > .empty { grid-column: 1 / -1; }
/* two by two on a tablet in either orientation */
@media (min-width: 700px) and (max-width: 1199px) { body.board #list { grid-template-columns: 1fr 1fr; } }

/* ===== Desktop: less cramped ===== */
@media (min-width: 1000px) {
  /* one-line header: week on the left, tabs on the right */
  .top { grid-template-columns: 44px auto 44px 1fr; column-gap: 6px; padding-top: calc(env(safe-area-inset-top) + 10px); padding-bottom: 10px; }
  .top .week { display: flex; align-items: baseline; gap: 12px; text-align: left; }
  .top .week h1 { font-size: 30px; }
  .top .tabs { grid-column: 4; grid-row: 1; justify-self: end; width: 380px; margin: 0; }
  /* the open matchup: a comfortable reading width, a bit larger */
  body.split #sheet-body { max-width: 780px; margin: 0 auto; }
  body.split .sheet-head { padding: 16px 24px 12px; }
  body.split .sheet-head h2 { font-size: 26px; }
  body.split .cmp { min-height: 54px; }
  body.split .cmp .cp-name { font-size: 15px; }
  body.split .cmp .cp-pts { font-size: 20px; }
  body.split .cmp .cp-stat { font-size: 12px; }
  body.split .cmp .face { width: 30px; height: 30px; }
  body.split .mu-score { font-size: 38px; }
  body.split .mu-name { font-size: 17px; }
  #list { display: grid; gap: 14px; }
  #list .card, #list .card-wrap { margin: 0; }
}
/* Board tiles: fill the screen, names can wrap, scores sized to the tile */
body.board #list { grid-auto-rows: 1fr; }
body.board #list .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
body.board #list .team-score { font-size: clamp(40px, 5.2vw, 64px); }
body.board #list .team { align-items: center; }
