/* Gridiron Sim: a field under lights.
   Dark: a very dark green-black, chalk white, gold. Light: chalk paper, the dark green as ink,
   gold kept for fills. Every colour is a token, and each token has one job:
     --accent       the brand: main buttons, the active tab, what you should look at first
     --accent-text  the brand as text (gold on dark; bronze on light, where gold can't be read)
     --spark        charisma, and only charisma
     --good / --orange / --bad   healthy / questionable or healing / out, and nothing else
     --blue         a rating
   Type has two jobs: --font-num (condensed, loud) for headings and numbers, --font for the rest. */
:root {
  --bg: #07120d;
  --bg-deep: #050d09;
  --panel: #0b1711;
  --card: #0f1d16;
  --card-2: #16281f;
  --line: #29402f;
  --line-soft: rgba(41, 64, 47, .7);
  --text: #f1efe4;
  --text-2: #b7c6bb;
  --text-3: #dfe6dc;
  --muted: #86998c;
  --accent: #f2c230;
  --accent-ink: #1c1503;
  --accent-text: #f2c230;
  --spark: #37d3b6;
  --pink: #f0506e;
  --blue: #7cc4ff;
  --orange: #f0a53a;
  --purple: #b99cf0;
  --good: #35c46a;
  --bad: #f0506e;
  --chalk: #f1efe4;
  --field-a: .13;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 28px rgba(0, 0, 0, .35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --frame: 0px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eceee2; --bg-deep: #e2e6d6; --panel: #f4f5ec; --card: #fbfbf4; --card-2: #eef0e3;
  --line: #cdd4c0; --line-soft: rgba(187, 197, 174, .75); --text: #0d2017; --text-2: #3c5145;
  --text-3: #1d3327; --muted: #66776b; --accent-text: #8a6100; --spark: #0e8f7b;
  --pink: #cf3355; --bad: #cf3355; --blue: #2f7fd0; --orange: #c97a10; --purple: #7a55c7; --good: #1f9d4f;
  --chalk: #1d5b3b; --field-a: .16; color-scheme: light;
  --shadow: 0 6px 18px rgba(20, 50, 30, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 15px; } h4 { font-size: 13px; }
p { margin: 0 0 .8em; color: var(--text-2); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); } .dim { color: var(--text-2); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.num { font-family: var(--font-num); font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.caps { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; }
.good { color: var(--good); } .bad { color: var(--bad); } .teal { color: var(--accent-text); }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 2 * var(--frame)); }
.side { background: var(--bg-deep); border-right: 1px solid var(--line-soft); padding: 18px 12px; position: sticky; top: var(--frame); height: calc(100vh - 2 * var(--frame)); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--blue)); display: grid; place-items: center; color: var(--accent-ink); font-weight: 800; }
.side-label { color: var(--muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--card); color: var(--text); }
.nav a.on { background: var(--card); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav .ico { width: 20px; text-align: center; opacity: .9; }
.league-pill { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card); margin: 0 0 6px; }
.league-pill .avatar { width: 32px; height: 32px; font-size: 12px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(8px); position: sticky; top: var(--frame); z-index: 20; }
.topbar .title { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.topbar .spacer { flex: 1; }
.content { padding: 24px 28px 90px; max-width: 1320px; }
.bottom-tabs { display: none; }
.show-sm { display: none; }

/* ---- primitives ---- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); overflow-x: auto; }   /* a card never widens the page */
.acts { flex-wrap: wrap; }
.card.flat { box-shadow: none; }
.card-2 { background: var(--card-2); border-radius: var(--radius-sm); padding: 12px; }
.card h2, .card h3 { margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.btn { appearance: none; border: 0; cursor: pointer; font: 600 13px var(--font-display); letter-spacing: .3px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn.pink { background: var(--pink); color: #fff; }
.btn.sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--text-2); font-weight: 600; font-size: 12px; border: 1px solid transparent; cursor: pointer; }
.chip.on, .chip:hover { color: var(--text); border-color: var(--accent); }
.pos { display: inline-grid; place-items: center; min-width: 34px; height: 20px; padding: 0 6px; border-radius: 6px; font: 700 10.5px var(--font-display); letter-spacing: .4px; color: #0b1220; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-display); color: #0b1220; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 84px; height: 84px; font-size: 26px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--card-2); color: var(--text-2); }
.badge.teal { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-text); }
.badge.pink { background: color-mix(in srgb, var(--pink) 15%, transparent); color: var(--pink); }
.badge.blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.badge.orange { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
/* injury Health bar: the tick marks 80%, where a player is cleared to play */
.healthbar { position: relative; display: block; width: 84px; height: 7px; margin: 5px 0 3px; border-radius: 4px; background: var(--bg-deep); }
.healthbar i { display: block; height: 100%; border-radius: 3px; }
.healthbar b { position: absolute; top: -2px; width: 2px; height: 9px; background: var(--text-2); opacity: .7; }
.healthbar.wide { width: 100%; height: 10px; margin: 8px 0 4px; }
.healthbar.wide b { top: -3px; height: 16px; }
.divider { height: 1px; background: var(--line-soft); margin: 14px 0; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select, textarea { background: var(--bg-deep); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 14px var(--font); width: 100%; }
input[type=range] { width: 100%; accent-color: var(--accent); }
select.compact { max-width: 130px; }       /* collapsed it shows only its label; the open list shows each option in full */
label.field { display: block; }
label.field > span { display: block; margin-bottom: 6px; color: var(--text-2); font-weight: 600; font-size: 12px; }

/* ---- tables ---- */
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; color: var(--muted); font: 700 10.5px var(--font-display); text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.t .r { text-align: right; } .t .c { text-align: center; }
.t tr.me td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.scroll-x { overflow-x: auto; }

/* ---- player cell ---- */
.pcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* a player's name is one line, everywhere: it is cut with an ellipsis before it is ever stacked.
   The tags beside it (injury, bye, Inspired) keep their place */
.nm { font-weight: 600; white-space: nowrap; min-width: 0; }
.pcell .nm, .vs-side .nm { display: flex; align-items: center; gap: 5px; }
.nm-text, .vs-side .nm > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nm .badge { flex: none; }
.vs-side.right .nm { flex-direction: row-reverse; }
.pcell > span:last-child { flex: 1; }
/* in a table the name's column takes the room that is left and gives way (with an ellipsis) when there is none */
.t td:has(> .pcell) { width: 100%; max-width: 0; min-width: 132px; }
.badge.inspired { background: color-mix(in srgb, var(--spark) 16%, transparent); color: var(--spark); }
/* the team page's listings: overall rating and Health as small bars under the name */
.vbar { position: relative; display: block; width: 46px; height: 6px; border-radius: 3px; background: var(--bg, #111827); overflow: hidden; }
.vbar i { display: block; height: 100%; border-radius: 3px; }
.vbar u { position: absolute; top: 0; width: 1.5px; height: 100%; background: var(--text-2); opacity: .7; }
.pcell .sub { color: var(--muted); font-size: 11.5px; }
.headshot { width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font: 700 11px var(--font-display); color: var(--text-2); border: 2px solid var(--line); flex: none; }

/* ---- rating bars ---- */
.rbar { position: relative; height: 8px; background: var(--bg-deep); border-radius: 99px; overflow: hidden; }
/* a rating bar: teal for what he is now, yellow for his potential beyond it, dark blue for a
   rating his position doesn't lean on */
.rbar .pot { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 99px; }
.rbar .cur { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--blue); }
.rbar .cur.other { background: color-mix(in srgb, var(--blue) 42%, var(--card-2)); }
.key-now { color: var(--blue); }
.key-pot { color: var(--accent-text); }
.rbar-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text-2); opacity: .7; }
/* the player card's own bars: two side by side */
.pbars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 14px; }
.pbars .rbar { margin-top: 5px; height: 10px; }
.pbars > div { min-width: 0; }                 /* nothing in a bar's cell may push the card wider than the screen */
.pbars .row { flex-wrap: nowrap; white-space: nowrap; gap: 6px; min-width: 0; }
.pbars .row > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pbars form { white-space: normal; }
.pbars select { width: 100%; margin-top: 5px; }
.pbars .heal-btn { color: var(--good); border-color: var(--good); }
.rcell { display: inline-block; min-width: 28px; text-align: center; border-radius: 6px; padding: 2px 4px; font: 700 12px var(--font-num); color: #0b1220; }

/* ---- matchup ---- */
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.vs-team { display: flex; align-items: center; gap: 12px; }
.vs-team.right { flex-direction: row-reverse; text-align: right; }
.big-score { font: 700 38px var(--font-num); line-height: 1; }
.big-score.win { color: var(--accent-text); }
.vs-rows { display: grid; grid-template-columns: 1fr 64px 1fr; }
.vs-rows > div { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.vs-slot { display: grid; place-items: center; }
.vs-side { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vs-side.right { flex-direction: row-reverse; text-align: right; }
.pts { font: 700 17px var(--font-num); }
.bench-label { grid-column: 1 / -1; padding: 16px 8px 6px !important; color: var(--muted); border: 0 !important; }

/* ---- draft room ---- */
/* the draft room, as Sleeper lays it out: a small board across the top (it scrolls both ways), the players under it */
.draft-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.draft-side { min-width: 0; }
.clock { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--blue) 8%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.clock.user { background: linear-gradient(90deg, color-mix(in srgb, var(--pink) 22%, transparent), color-mix(in srgb, var(--orange) 10%, transparent)); border-color: color-mix(in srgb, var(--pink) 50%, transparent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 12%, transparent); } }
.board { overflow: auto; max-height: 68vh; border-radius: var(--radius); background: var(--card); }
.board table { border-collapse: separate; border-spacing: 4px; }
.board th { position: sticky; top: 0; background: var(--card); z-index: 2; font: 600 11px var(--font-display); color: var(--text-2); padding: 6px 4px; min-width: 96px; max-width: 110px; }
.board th.me { color: var(--accent-text); }
.board td.rnd { position: sticky; left: 0; background: var(--card); z-index: 1; color: var(--muted); font: 700 11px var(--font-display); padding: 0 6px; }
.cell { height: 50px; border-radius: 8px; background: var(--card-2); padding: 5px 7px; font-size: 11.5px; line-height: 1.25; min-width: 96px; }
.cell .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.cell .m { opacity: .8; font-size: 10.5px; }
.cell.filled { color: #0b1220; }
.cell.now { outline: 2px solid var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cell.flash { animation: flash .8s ease-out; }
@keyframes flash { from { transform: scale(1.12); } to { transform: scale(1); } }
.board.compact th, .board.compact .cell { min-width: 64px; max-width: 70px; }
.board.compact .cell .n { max-width: 62px; }
.avail { max-height: 68vh; overflow-y: auto; }
.avail .row-p { display: grid; grid-template-columns: 26px 30px 1fr 54px 34px 64px; gap: 8px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line-soft);
  content-visibility: auto; contain-intrinsic-size: auto 56px; }   /* rows off screen aren't drawn (or animated) */
.avail .row-p:hover { background: rgba(255, 255, 255, .03); }

/* ---- game center ---- */
.scorebug { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.team-block { display: flex; align-items: center; gap: 14px; }
.team-block.right { flex-direction: row-reverse; text-align: right; }
.team-logo { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font: 800 15px var(--font-display); color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25); }
.field { position: relative; border-radius: 12px; overflow: hidden; }
.field svg { display: block; width: 100%; height: auto; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--text-2); font: 600 13px var(--font-display); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--accent); }
.tab { display: none; } .tab.on { display: block; }
.pbp-drive { margin-bottom: 14px; }
.drive-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card-2); border-radius: 10px; margin-bottom: 4px; }
.play { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); align-items: start; }
.play.scoring { background: rgba(32, 206, 115, .07); }
.play.turnover { background: color-mix(in srgb, var(--pink) 7%, transparent); }
.play.key { box-shadow: inset 3px 0 0 var(--orange); }
.play .sit { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.play .desc { font-weight: 500; }
.play .radio { color: var(--text-2); font-style: italic; font-size: 12.5px; margin-top: 2px; }
.play .fx { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.fpts { font: 700 11px var(--font-display); padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.fpts.neg { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.fpts.mine { outline: 1px solid var(--accent); }
.why-btn { background: none; border: 1px solid var(--line); color: var(--text-2); border-radius: 7px; font: 600 11px var(--font-display); padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.why-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.why { display: none; grid-column: 1 / -1; background: var(--bg-deep); border-radius: 10px; padding: 12px; margin-top: 4px; }
.why.on { display: block; }
.roll { margin-bottom: 10px; }
.roll-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.roll-bar { position: relative; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--pink) 25%, transparent); margin: 5px 0 3px; overflow: visible; }
.roll-bar .p { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 99px 0 0 99px; }
.roll-bar .mark { position: absolute; top: -4px; width: 3px; height: 20px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.roll-bar.pick { background: var(--card-2); display: flex; overflow: hidden; border-radius: 99px; }
.roll-bar.pick span { height: 100%; border-right: 1px solid var(--bg-deep); }
.factors { display: flex; flex-wrap: wrap; gap: 6px; }
.factor { font-size: 11px; background: var(--card); border-radius: 6px; padding: 2px 7px; color: var(--text-2); }
.factor b { color: var(--text); font-weight: 600; }
.wp-wrap svg { width: 100%; height: 190px; display: block; }
.ticker { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mini-game { min-width: 168px; background: var(--card); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.mini-game .ln { display: flex; justify-content: space-between; }
.mini-game .ln.w { font-weight: 700; }
.feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.feed-item:last-child { border: 0; }
.feed-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); flex: none; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.statbox { background: var(--card-2); border-radius: 10px; padding: 10px 12px; }
.statbox .v { font: 700 22px var(--font-num); }
.statbox .l { color: var(--muted); font: 700 10px var(--font-display); text-transform: uppercase; letter-spacing: .5px; }
.hbar { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 6px; align-items: center; font-size: 12px; margin-bottom: 6px; }
.hbar .b { height: 14px; border-radius: 4px; }
/* ---- a week in real time ---- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-right: 4px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.live-games .mini-game { min-width: 0; background: var(--card-2); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.toast { background: var(--bg-deep); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); }
.toast.theirs { border-left-color: var(--pink); }
/* ---- the matchup page: the weeks are swiped through ---- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.week-nav b { font: 700 13px var(--font-display); letter-spacing: .4px; }
.week-nav .btn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.pts.proj { color: var(--text-2); font-weight: 600; }

/* ---- patch notes: a dated timeline ---- */
.patches { margin-top: 20px; display: grid; gap: 22px; }
.patch { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; position: relative; }
.patch-when { position: sticky; top: 76px; align-self: start; display: grid; gap: 8px; justify-items: start; padding-top: 18px; }
.patch-when time { font: 700 13px var(--font-display); letter-spacing: .4px; color: var(--text); }
.patch-body { border-left: 3px solid var(--accent); }
.patch + .patch .patch-body { border-left-color: var(--line); }
.patch-notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.patch-notes li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: start; }
.patch-kind { font: 700 10px var(--font-display); letter-spacing: .8px; text-transform: uppercase; text-align: center; padding: 4px 0; border-radius: 6px; margin-top: 2px; }
.patch-kind.new { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.patch-kind.improved { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.patch-kind.fixed { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
@media (max-width: 860px) {
  .patch { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .patch-when { position: static; padding-top: 0; display: flex; align-items: center; }
  .patch-notes li { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
}

/* ---- the team page: every player is his own card (templates/team.html `listing`) ---- */
.team-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.team-id { min-width: 0; }
.team-pick { width: auto; }
.stats { gap: 6px 16px; }
.stat { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.stat b { color: var(--text); font-size: 15px; margin-left: 2px; }
.stat.teal, .stat.teal b { color: var(--spark); }   /* (the charisma count) */
.team-acts { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); gap: 10px; align-items: center; }
.pl-sect { margin: 18px 0 8px; font: 700 11px var(--font-display); letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); }
.pl-sect.bench { color: var(--muted); margin-top: 22px; }
.plist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }   /* (never wider than its card, whatever is inside) */
.pl { background: var(--card-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
/* every slot is its own card: a full edge, a shadow, and room between it and the next */
.pl { background: var(--card-2); border: 1.5px solid color-mix(in srgb, var(--chalk) 24%, var(--line)); box-shadow: 0 8px 20px rgba(0, 0, 0, .34); }
.plist { gap: 22px; }
.pl.starter .pl-slot .pos { box-shadow: 0 0 0 2px var(--accent); }
.pl.benched { background: var(--card); border-style: solid; }
.pl.empty { border-style: dashed; background: transparent; }
.pl-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-slot { flex: none; width: 46px; }
.pl-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pl-who .headshot { width: 44px; height: 44px; }
.pl-id { display: grid; gap: 2px; min-width: 0; }
.pl-id .nm { display: flex; align-items: center; gap: 5px; font-size: 15.5px; }
.pl-id .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the week's projection: the number a lineup is set by, so it is the loudest thing on the card */
.pl-proj { flex: none; display: grid; justify-items: center; gap: 1px; padding: 5px 10px; border-radius: 10px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.pl-proj .lbl { font: 700 9.5px var(--font-display); letter-spacing: .6px; text-transform: uppercase; color: var(--accent-text); }
.pl-proj b { font-size: 20px; line-height: 1; color: var(--text); }
.benched .pl-proj { background: transparent; border-color: var(--line-soft); }
.benched .pl-proj .lbl { color: var(--muted); }
.stat.swag, .stat.swag b, .swag-n { color: var(--orange); }
input.bid { width: 64px; padding: 2px 6px; }
/* the player card's headline numbers: where he ranks at his position, what he has scored */
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.pstat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line-soft); min-width: 0; }
.pstat span { font: 700 10px var(--font-display); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.pstat b { font-size: 26px; line-height: 1.1; color: var(--text); }
.pstat i { font-style: normal; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstat.hi { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pstat.hi b { color: var(--accent-text); }
.danger-zone { border: 1px solid color-mix(in srgb, var(--pink) 40%, transparent); }
.danger-zone summary { cursor: pointer; color: var(--pink); font-weight: 600; }
.danger-zone[open] summary { margin-bottom: 10px; }
.pl-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.pl-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.pl-bar .lbl { color: var(--muted); }
.pl-bar .vbar { width: auto; height: 9px; border-radius: 5px; }
.pl-bar .vbar i { border-radius: 5px; }
.pl-bar b { font-size: 13px; min-width: 34px; text-align: right; }
.pl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.pl-acts:not(:has(select, button, .badge, .tiny)) { display: none; }
.pl-acts select.compact { max-width: 100% !important; width: auto; min-width: 0; }   /* a long option must not widen the page */
.pl-acts form { min-width: 0; max-width: 100%; }
.badge.boost { background: color-mix(in srgb, var(--spark) 16%, transparent); color: var(--spark); }
.release-btn { color: var(--pink); border-color: var(--pink); }
.card.pick.lit { border: 1px solid var(--orange); }
.chat-remove { background: none; border: 0; padding: 0; color: var(--pink); font: inherit; cursor: pointer; }
.chat-msg .bubble.gone { font-style: italic; color: var(--muted); background: transparent; border: 1px dashed var(--line); }
/* private messages: the managers on one side, the conversation on the other */
.msg-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.msg-person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.msg-person.on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.msg-thread { max-width: none; }
@media (max-width: 860px) { .msg-wrap { grid-template-columns: minmax(0, 1fr); } }
.clock-left { font: 700 15px var(--font-display); padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .28); white-space: nowrap; }
.clock-left.low { background: var(--pink); color: #fff; }
/* a trade offer: its own card, the two sides as listings, and your answer */
.btn.alert { background: var(--orange); color: #1b1300; border-color: var(--orange); animation: alert-pulse 1.6s ease-in-out infinite; }
.btn .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: rgba(0, 0, 0, .25); font-size: 11px; }
@keyframes alert-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 55%, transparent); } 50% { box-shadow: 0 0 0 7px rgba(255, 174, 88, 0); } }
@media (prefers-reduced-motion: reduce) { .btn.alert { animation: none; } }
.offer { border-left: 3px solid var(--orange); }
.offer-sides { margin-top: 14px; align-items: start; }
.offer-side h3 { margin: 0 0 8px; }
.offer-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.btn.deny { color: var(--pink); border-color: var(--pink); }
.pl.pick .nm { white-space: normal; }
.t tr.starter .sub { color: var(--text-2); }

/* ---- player portraits (app/portraits.py): a face in lists, the whole player on his card ---- */
.headshot { overflow: hidden; }
.pt { display: block; }
.pt-face { width: 100%; height: 100%; border-radius: 50%; }
.portrait-full { flex: none; width: 170px; }
.pt-full { width: 100%; height: auto; overflow: visible; }
.pt-eyes, .pt-head, .pt-body, .pt-arm-l, .pt-arm-r { transform-box: fill-box; }
.pt-eyes { transform-origin: 50% 50%; animation: pt-blink 5s infinite; }
.pt-head { transform-origin: 50% 90%; animation: pt-tilt 7s ease-in-out infinite; }
.pt-face .pt-head { animation-name: pt-nod; }
.pt-body { transform-origin: 50% 100%; animation: pt-breathe 4.2s ease-in-out infinite; }
.pt-arm-l { transform-origin: 50% 8%; animation: pt-sway 6.5s ease-in-out infinite; }
.pt-arm-r { transform-origin: 50% 8%; animation: pt-sway 6.5s ease-in-out infinite reverse; }
@keyframes pt-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes pt-tilt { 0%, 100% { rotate: 0deg; } 22% { rotate: -2.4deg; } 48% { rotate: 1.2deg; } 74% { rotate: 2.6deg; } }
@keyframes pt-nod { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: .6px .5px; rotate: -2deg; } 68% { translate: -.6px 0; rotate: 2deg; } }
@keyframes pt-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018, 1.012); } }
@keyframes pt-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 3deg; } }
@media (prefers-reduced-motion: reduce) { .pt * { animation: none !important; } }

/* ---- the player card is swiped away: the hint shows on touch screens only ---- */
.swipe-hint { display: none; text-align: center; margin: -6px 0 8px; letter-spacing: .3px; }
@media (hover: none) and (pointer: coarse) { .swipe-hint { display: block; } }

/* ---- choices: the home page's and the create step's cards ---- */
.pick { display: block; border: 1px solid transparent; }
a.pick:hover { border-color: var(--accent); color: inherit; }
.pick.off { opacity: .7; }
.rating-line:hover { color: var(--accent-text); }

/* ---- send feedback ---- */
.fb { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(460px, calc(100vw - 32px)); }
.fb::backdrop { background: rgba(0, 0, 0, .55); }
.fb textarea { resize: vertical; }

/* ---- how it works ---- */
.help { max-width: 760px; display: grid; gap: 16px; }
.help .card { scroll-margin-top: 76px; }
.help ul, .help ol { margin: 0 0 .6em; padding-left: 20px; color: var(--text-2); }
.help li { margin-bottom: 7px; }
.help li b, .help p b { color: var(--text); }

/* ---- league chat ---- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 130px); min-height: 360px; max-width: 820px; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 12px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.chat-msg .avatar { width: 32px; height: 32px; font-size: 11px; }
.chat-msg .bubble { background: var(--card-2); border-radius: 4px 14px 14px 14px; padding: 8px 12px; margin-top: 3px; overflow-wrap: anywhere; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; text-align: right; }
.chat-msg.mine .bubble { background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 14px 4px 14px 14px; text-align: left; }
.chat-event { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 0 4px; }
.chat-form { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.hero { padding: 34px; border-radius: 20px; background: radial-gradient(1000px 400px at 10% -20%, color-mix(in srgb, var(--accent) 25%, transparent), transparent), radial-gradient(800px 300px at 100% 0%, color-mix(in srgb, var(--blue) 18%, transparent), transparent), var(--card); }

/* ---- tour ---- */
.tour { display: grid; grid-template-columns: 380px 1fr; gap: 20px; height: calc(100vh - 150px); min-height: 560px; }
.tour-text { overflow-y: auto; }
.tour-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); position: relative; }
.tour-frame iframe { width: 100%; height: 100%; border: 0; }
.tour-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.tour-dots button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); font: 700 11px var(--font-display); cursor: pointer; }
.tour-dots button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tour-step { display: none; } .tour-step.on { display: block; }
.tour-step li { margin-bottom: 6px; color: var(--text-2); }
.tour-step li b { color: var(--text); }
.callout { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); padding: 10px 14px; border-radius: 0 10px 10px 0; color: var(--text-3); font-size: 13px; }
.callout.orange { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, transparent); }

@media (max-width: 1100px) {
  .draft-wrap { grid-template-columns: 1fr; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: 1fr; height: auto; }
  .tour-frame { height: 70vh; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .content { padding: 16px 16px 90px; }
  .topbar { padding: 12px 16px; }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .play { grid-template-columns: 1fr auto; }
  .play .sit { grid-column: 1 / -1; }
  .big-score { font-size: 28px; }
  .bottom-tabs { display: flex; position: fixed; bottom: var(--frame); left: var(--frame); right: var(--frame); padding-bottom: env(safe-area-inset-bottom); background: var(--bg-deep); border-top: 1px solid var(--line-soft); z-index: 30; }
  .bottom-tabs a { flex: 1; text-align: center; padding: 9px 0 11px; font: 600 10.5px var(--font-display); color: var(--text-2); }
  .bottom-tabs a.on { color: var(--accent-text); }
  .bottom-tabs .ico { display: block; font-size: 17px; }
  .toasts { bottom: 70px; }
  .hero { padding: 18px; }
  .hero h1 { font-size: 22px !important; }
  .chat { height: calc(100vh - 170px); }
  /* More: the sidebar becomes a full-screen menu above the tab bar */
  body.menu-open .side { display: block; position: fixed; inset: var(--frame) var(--frame) calc(52px + var(--frame)) var(--frame); height: auto; z-index: 29; border-right: 0; }
  body.menu-open { overflow: hidden; }
  /* nothing wider than the screen: hide the columns a phone can do without, scroll what's left inside its card */
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .card { padding: 14px; }
  .t th, .t td { padding: 8px 6px; }
  .avatar.xl { width: 56px; height: 56px; font-size: 18px; }
  .portrait-full { width: 124px; align-self: flex-start; }
  .card-head { flex-wrap: nowrap; align-items: flex-start; gap: 12px !important; }
  .card-head > div { min-width: 0; flex: 1; }
  /* the team page's listings on a phone: the player (name, bars) and his projection on one line,
     what you can do with him (swap, boost, release) on the next, so the name has the width it needs */
  .t.stack, .t.stack tbody { display: block; }
  .t.stack thead { display: none; }
  .t.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line-soft); }
  .t.stack.c3 tr { grid-template-columns: minmax(0, 1fr) auto auto; }
  .t.stack.c3 td.act { padding-left: 54px; }
  .t.stack td { border: 0; width: auto; max-width: none; min-width: 0; }
  .t.stack td.hide-sm { display: none; }
  .t.stack td.act { grid-column: 1 / -1; padding-top: 0; text-align: left; }
  .t.stack td.act:not(:has(*)) { display: none; }
  .t.stack td.act .row { justify-content: flex-start !important; flex-wrap: wrap; }
  .t.stack tr.sect { display: block; border: 0; }
  .t.stack tr.sect td { display: block; }
  .card-head h1 { font-size: clamp(15px, 5.4vw, 22px); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vbar { width: 38px; }
  /* the team page on a phone: the team switcher under the name; in a listing the slot and the
     projection share a line and the player gets the full width under them */
  .team-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .team-pick { grid-column: 1 / -1; width: 100%; }
  .pl { padding: 11px 12px; }
  .pl-top { flex-wrap: wrap; row-gap: 8px; }
  .pl-proj { margin-left: auto; order: 2; }
  .pl-slot { order: 1; width: auto; }
  .pl-who { order: 3; flex: 1 1 100%; }
  .pl-top:not(:has(.pl-slot)) .pl-who { order: 1; flex: 1 1 0; }
  .pl-top:not(:has(.pl-slot)) .pl-proj { order: 2; }
  .headshot { width: 28px; height: 28px; border-width: 1.5px; }
  select.compact { max-width: 84px !important; padding: 6px 4px; font-size: 12px; }
  .t .avatar { display: none; }
  .btn { padding: 10px 14px; }
  .btn.sm { padding: 7px 10px; }
  /* scoreboards: the names and scores fit when the logos step aside */
  .vs-head, .scorebug { gap: 6px; }
  .vs-head .avatar, .scorebug .team-logo { display: none; }
  .vs-team, .team-block { min-width: 0; }
  .scorebug { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scorebug > .row { grid-column: 1 / -1; order: 1; justify-content: center; flex-wrap: wrap; text-align: center; }
  .vs-team h2, .team-block h2 { font-size: 14px; }
  .vs-head .row, .scorebug .row { gap: 8px !important; }
  .big-score { font-size: 24px; }
  .statgrid { gap: 8px; }
  /* matchup rows: name and points on one line, the stat line cut to fit */
  .vs-rows { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
  .vs-rows > div { padding: 8px 2px; }
  .vs-side .pcell { flex: 1; }
  .vs-side .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pts { font-size: 15px; }
  /* draft room: the players you pick from come first, the board below it */
  .board, .avail { max-height: 55vh; }
  .avail .row-p { grid-template-columns: 16px 28px minmax(0, 1fr) 42px 28px 50px; gap: 5px; padding: 8px 0; }
  .avail .row-p .nm { font-size: 13.5px; }
  .avail .row-p .btn.sm { padding: 7px 6px; }
  .clock { flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; }
}
@media (max-width: 600px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .topbar { flex-wrap: wrap; }
}
.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.invite-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* everything charisma buys for a player, one long button on his listing: meant to be seen */
select.charisma-menu { flex: 1 1 100%; width: 100%; padding: 9px 12px; font-weight: 700; font-size: 14px; color: var(--spark);
  background-color: color-mix(in srgb, var(--accent) 14%, transparent); border: 1.5px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
select.charisma-menu option { color: var(--text); background: var(--card); font-weight: 500; }
/* a player's card in a draft: flashing arrows to the card before and after his in the list */
.card-nav { position: fixed; top: 42%; z-index: 40; width: 58px; height: 76px; display: grid; place-items: center; border-radius: 14px;
  font: 700 40px/1 var(--font-display); color: #06242a; background: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  text-decoration: none; animation: card-nav-flash 1.1s ease-in-out infinite; }
.card-nav[hidden] { display: none; }
.card-nav.prev { left: 244px; }
.card-nav.next { right: 8px; }
@keyframes card-nav-flash { 50% { opacity: .4; transform: scale(.92); } }
@media (max-width: 900px) { .card-nav.prev { left: 10px; } .card-nav.next { right: 10px; } .card-nav { width: 50px; height: 68px; font-size: 36px; } }
@keyframes card-nav-fade { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .card-nav { animation-name: card-nav-fade; } }   /* still flashes, without moving */

/* ---- the small cards a button opens over the page: Charisma (teal) and Swap out player (orange) ---- */
.sheet-btn { font-family: inherit; font-weight: 700; font-size: 14.5px; padding: 9px 14px; border-radius: 10px; cursor: pointer; text-align: left; }
.charisma-btn { flex: 1 1 100%; width: 100%; color: var(--spark); background: color-mix(in srgb, var(--spark) 14%, transparent); border: 1.5px solid var(--spark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.swap-btn { color: var(--text); background: var(--card-2); border: 1.5px solid var(--line); }
dialog.sheet { width: min(430px, calc(100vw - 24px)); max-height: 86vh; overflow-y: auto; padding: 16px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
dialog.sheet::backdrop { background: rgba(5, 9, 16, .72); }
.sheet-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.sheet-head .headshot { width: 48px; height: 48px; flex: none; }
.sheet-id { display: grid; gap: 2px; min-width: 0; flex: 1; font-size: 16px; }
.sheet-id .sub { font-size: 12px; color: var(--muted); }
.sheet-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-soft); background: transparent; color: var(--text-2); cursor: pointer; font-size: 15px; }
.sheet-note { margin: 10px 0 4px; font-size: 13px; color: var(--text-2); }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; width: 100%; margin-top: 8px; padding: 11px 13px;
  text-align: left; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--card-2); color: var(--text); cursor: pointer; font: inherit; }
.opt:hover:not(:disabled), .opt:focus-visible { border-color: var(--accent); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt.on { cursor: default; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.opt-t { font-weight: 700; font-size: 15px; }
.opt-c { font: 700 15px var(--font-display); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 8px; padding: 2px 9px; }
.opt-d { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.opt.who { grid-template-columns: auto minmax(0, 1fr) auto; }
.opt.who .headshot { width: 38px; height: 38px; grid-row: 1 / 3; }
.opt.who .opt-d { grid-column: 2 / -1; }
.opt.who .opt-c { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.opt .bad { color: var(--pink); } .opt .warn { color: var(--orange); }
/* the listing's overall rating: light blue, apart from the health bar's colours */
.vbar i.ovr { background: var(--blue); }
@media (max-width: 860px) { .pl-bars { grid-template-columns: minmax(0, 1fr); } }   /* the longer label needs the line to itself */

/* ================================================================================================
   The field under lights (2026-10-07): what the tokens alone can't say. The component kit:
     .btn            the main action (gold)      .btn.ghost   a second action      .btn.quiet  a third
     .card           one surface, one border      dialog.sheet the one pop-up card
   ================================================================================================ */
/* the field itself: drawn by base.html into #turf, behind every page, drifting a fifth as fast
   as the page scrolls */
#turf { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--field-a);
  background-repeat: repeat-y; background-size: min(100vw, 900px) auto; background-position: center calc(var(--py, 0) * 1px); }
.shell, .bottom-tabs, .toasts { position: relative; z-index: 1; }
.bottom-tabs { position: fixed; }
.side { background: color-mix(in srgb, var(--bg-deep) 95%, transparent); }

/* type: the loud condensed face for headings and numbers, the plain one for everything else */
h1, h2 { font-family: var(--font-num); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: 32px; } h2 { font-size: 23px; }
h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.topbar .title { font-family: var(--font-num); font-weight: 800; font-size: 23px; text-transform: uppercase; letter-spacing: .03em; }
.brand { font-family: var(--font-num); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.brand-mark { background: var(--accent); color: var(--accent-ink); border-radius: 9px; transform: rotate(-5deg); font-family: var(--font-num); font-size: 20px; }
.num { font-weight: 700; letter-spacing: .02em; }
.caps { letter-spacing: .1em; }

/* icons: one line set (app/icons.py), the size and colour of the words beside them */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.2em; flex: none; }
.nav .ico { display: grid; place-items: center; }
.nav .ico .ic { width: 19px; height: 19px; }
.bottom-tabs .ico { display: grid; place-items: center; height: 22px; }
.bottom-tabs .ico .ic { width: 21px; height: 21px; }
.feed-ico .ic { width: 18px; height: 18px; color: var(--text-2); }
.rank-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 14px var(--font-num);
  background: var(--accent); color: var(--accent-ink); }

/* surfaces: one card, edged, so it stands off the field without a heavy shadow */
.card { border: 1px solid var(--line-soft); }
.card-2 { border: 1px solid var(--line-soft); }
.topbar { backdrop-filter: blur(10px); }
.nav a.on { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.nav a.on .ico { color: var(--accent-text); }
.bottom-tabs { background: color-mix(in srgb, var(--bg-deep) 92%, transparent); backdrop-filter: blur(12px); }
.bottom-tabs a.on { color: var(--accent-text); }
.league-pill { border: 1px solid var(--line-soft); }

/* buttons: three weights, and they give under a finger */
.btn { font-family: var(--font); font-weight: 700; letter-spacing: 0; transition: transform .12s ease, filter .12s ease, border-color .12s ease; }
.btn:active:not(:disabled), .sheet-btn:active, .opt:active:not(:disabled), .chip:active { transform: scale(.97); }
.btn.ghost { background: var(--card-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text); }
.btn.quiet { background: transparent; border: 1px solid transparent; color: var(--text-2); }
.btn:focus-visible, .sheet-btn:focus-visible, .chip:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sheet-btn { transition: transform .12s ease; }
a:hover { color: var(--accent-text); }

/* the number a lineup is set by: gold, in the scoreboard face */
.pl-proj { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pl-proj .lbl { color: var(--accent-text); font-family: var(--font); letter-spacing: .1em; }
.pl-proj b { font: 800 24px/1 var(--font-num); color: var(--accent-text); }
.benched .pl-proj b { color: var(--text-2); }
.pstat b { font-family: var(--font-num); font-weight: 800; font-size: 30px; }
.pstat.hi { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.pstat.hi b { color: var(--accent-text); }
.pstat span, .pl-sect { font-family: var(--font); letter-spacing: .12em; }
.pl-sect { color: var(--accent-text); }
.big-score { font-family: var(--font-num); font-weight: 800; }
.big-score.win { color: var(--accent-text); }
/* who is ahead, at a glance: each side's share of the points */
.vs-meter { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--card-2); margin-top: 14px; gap: 2px; }
.vs-meter i { display: block; height: 100%; background: var(--line); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.vs-meter i.lead { background: var(--accent); }

/* the one pop-up card: it slides up, and the page dims behind it */
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open], dialog.fb[open] { animation: sheet-up .24s cubic-bezier(.2, .8, .2, 1); }
  dialog.sheet[open]::backdrop, dialog.fb[open]::backdrop { animation: sheet-dim .24s ease; }
  @keyframes sheet-up { from { transform: translateY(26px); opacity: 0; } }
  @keyframes sheet-dim { from { opacity: 0; } }
  .content > .card, .content > .grid > .card, .plist > .pl { animation: rise .4s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { transform: translateY(8px); opacity: 0; } }
}
@media (max-width: 860px) {
  h1 { font-size: 28px; } h2 { font-size: 21px; }
  .topbar .title { font-size: 21px; }
}
.vs-head > .vs-meter { grid-column: 1 / -1; margin-top: 4px; }
/* anything tinted sits on a solid surface: the field must never show through words */
.callout { background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.callout.orange { background: color-mix(in srgb, var(--orange) 11%, var(--card)); }
.clock { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card)); border-color: var(--line); }
.clock.user { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 34%, var(--card)), color-mix(in srgb, var(--accent) 12%, var(--card))); border-color: var(--accent); }
.hero { background-color: var(--card); border: 1px solid var(--line-soft); }
.t tr.me td { background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
/* a card that only groups other cards steps aside, and the field shows between them */
.card.bare { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.card.bare > .row.between, .card.bare > h2, .card.bare > p, .card.bare > form, .card.bare > .pl-sect { padding-inline: 4px; }
.card.bare > p, .card.bare > form { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; }
.stat.swag, .swag-n { color: var(--text-2); }
.stat.swag b { color: var(--text); }
.pl.empty { background: var(--card); }

/* ---- 2026-10-08: the matchup as cards, the bracket, the league's action row, and what sparkles ---- */
/* the matchup: a row a slot, as Sleeper lays it out: your player, the slot, their player. Each
   player is a small card: picture at the outer edge, points at the inner edge beside the slot */
.mu-grid { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 7px 5px; align-items: stretch; }
.mu-who { font: 800 16px var(--font-num); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-who:nth-child(3) { text-align: right; }
.mu-sect { grid-column: 1 / -1; margin-top: 8px; font: 700 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.mu-pos { display: grid; place-items: center; }
.mu-pos .pos { min-width: 34px; }
.mu-card { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 7px 9px 8px; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "face pts" "nm nm" "sub sub" "st st"; gap: 2px 8px; align-content: start; }
.mu-card.right { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pts face" "nm nm" "sub sub" "st st"; text-align: right; }
.mu-card.bench { background: var(--card-2); opacity: .88; }
.mu-card.empty { border-style: dashed; grid-template-areas: "face pts"; align-items: center; }
.mu-card .headshot { grid-area: face; width: 36px; height: 36px; }
.mu-none { grid-area: face; color: var(--muted); font-size: 12.5px; }
.mu-pts { grid-area: pts; display: grid; justify-items: end; align-content: center; line-height: 1; }
.mu-card.right .mu-pts { justify-items: start; }
.mu-pts b { font: 800 21px/1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--text); }
.mu-pts b.hot { color: var(--accent-text); }
.mu-pts b.proj { color: var(--text-2); }
.mu-pts span { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.mu-card .nm { grid-area: nm; display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; min-width: 0; margin-top: 3px; }
.mu-card.right .nm { flex-direction: row-reverse; }
.mu-sub { grid-area: sub; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-stats { grid-area: st; font-size: 11px; line-height: 1.3; color: var(--text-2); margin-top: 3px; padding-top: 4px; border-top: 1px solid var(--line-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mu-stats a { color: var(--text-2); }
.mu-stats a:hover { color: var(--accent-text); }

/* the bracket: a column a round, each game joined to the next by a line */
.bracket { display: grid; grid-template-columns: repeat(var(--rounds), minmax(190px, 1fr)) minmax(150px, .8fr); gap: 0 26px; overflow-x: auto; margin-top: 14px; padding-bottom: 6px; }
.bk-round { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.bk-title { font: 800 16px var(--font-num); text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); }
.bk-title span { display: block; font: 600 11px var(--font); letter-spacing: .08em; color: var(--muted); }
.bk-games { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bk-game { position: relative; display: grid; background: var(--card-2); border: 1.5px solid var(--line); border-radius: 12px; color: inherit; }
.bk-game::after { content: ""; position: absolute; left: 100%; top: 50%; width: 26px; border-top: 2px solid var(--line); }
.bk-champ .bk-game::after { display: none; }
a.bk-game:hover { border-color: var(--accent); color: inherit; }
.bk-line { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; font-size: 13.5px; }
.bk-line + .bk-line { border-top: 1px solid var(--line-soft); }
.bk-seed { color: var(--muted); font-size: 14px; text-align: center; }
.bk-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-line.wait .bk-name { font-weight: 500; color: var(--muted); font-style: italic; }
.bk-line.won .bk-name, .bk-line.won .bk-pts { color: var(--accent-text); }
.bk-line.lost { opacity: .5; }
.bk-line.me { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.bk-game.crown { grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 12px; border-color: var(--accent); color: var(--accent-text); }
.bk-game.crown .ic { width: 26px; height: 26px; }
.bk-game.crown b { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t tr.cut td { padding: 5px 10px; font: 700 10.5px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text);
  border-top: 2px dashed var(--accent); border-bottom: 0; background: transparent; }

/* the league page's actions: Playoffs, then Midweek and Sim, the same size, on one row */
.league-acts { display: flex; gap: 8px; align-items: stretch; }
.league-acts .btn, .league-acts form { white-space: nowrap; }
.league-acts .act-wide { flex: 1 1 0; min-width: 150px; justify-content: center; display: inline-flex; }
.league-acts form.act-wide > .btn { width: 100%; justify-content: center; }
.league-acts .done { opacity: .75; cursor: default; }
.caret { font-size: 11px; opacity: .8; }
.sheet form { margin: 0; }

/* what sparkles. A light running round an edge: the midweek button until it has been pressed */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.sparkle-edge { position: relative; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sparkle-edge::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 62%, var(--accent) 76%, #fff 82%, var(--accent) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* a glint crossing a badge now and then: Inspired */
.glint { background-image: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .7) 50%, transparent 58%); background-size: 260% 100%;
  background-position: 130% 0; background-repeat: no-repeat; }
/* a name lit up: gold lettering with a flash of light running through it (the highlights) */
.lit-name { font-weight: 700; color: var(--accent-text);
  background: linear-gradient(100deg, var(--accent-text) 0 46%, #fff 50%, var(--accent-text) 54% 100%) 100% 0 / 300% 100%;   /* (always wider than the name: no letter is ever left unpainted) */
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 28%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .sparkle-edge::before { animation: edge-spin 2.6s linear infinite; }
  @keyframes edge-spin { to { --spin: 360deg; } }
  .glint { animation: glint 5.5s ease-in-out infinite; }
  @keyframes glint { 0%, 78% { background-position: 130% 0; } 92%, 100% { background-position: -40% 0; } }
  .lit-name { animation: lit 4.2s ease-in-out infinite; }
  @keyframes lit { 0%, 62% { background-position: 100% 0; } 88%, 100% { background-position: 0% 0; } }
}
:root[data-theme="light"] .lit-name { background-image: linear-gradient(100deg, var(--accent-text) 0 44%, var(--accent) 50%, var(--accent-text) 56% 100%); text-shadow: none; }
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; }
  .league-acts { flex: 1 1 100%; }
  .league-acts .act-wide { min-width: 0; }
  .league-acts .btn { padding-inline: 10px; }
  .mu-grid { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 6px 4px; }
  .mu-pos .pos { min-width: 30px; padding: 0 3px; font-size: 9.5px; }
}
.pl.empty { background: var(--card); border: 1.5px dashed color-mix(in srgb, var(--chalk) 24%, var(--line)); box-shadow: none; }
.pl.benched { border-color: var(--line); box-shadow: none; }

/* ---- 2026-10-08, later: the name, the fade behind cards, the replay full screen ---- */
/* the fade the home page's first card has, on every card of the home page and the team page, on
   a player's listing, and behind the menu: gold light from the top corner into the card's own dark */
.glow, .pl, .side {
  background-image: radial-gradient(130% 150% at 6% -35%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
                    radial-gradient(90% 120% at 104% -10%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 60%); }
.pl.benched, .pl.empty { background-image: none; }
.side { background-color: var(--bg-deep); }

/* the name. The wordmark is set in a varsity block face; nothing else uses it */
.brand { font-family: "Graduate", var(--font-num); font-weight: 400; font-size: 17px; letter-spacing: .04em; }
#splash { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(70% 55% at 50% 46%, color-mix(in srgb, var(--accent) 18%, var(--bg)), var(--bg) 72%); transition: opacity .45s ease; }
#splash.out { opacity: 0; pointer-events: none; }
.splash-word { position: relative; display: grid; justify-items: center; text-align: center; text-transform: uppercase;
  font-family: "Graduate", var(--font-num), serif; line-height: .98; padding: 0 16px; }
.splash-word span { font-size: clamp(34px, 12vw, 92px); color: var(--text); letter-spacing: .08em; }
.splash-word b { font-size: clamp(44px, 15.5vw, 124px); font-weight: 400; color: var(--accent); letter-spacing: .05em;
  text-shadow: 0 0 36px color-mix(in srgb, var(--accent) 45%, transparent); }
:root[data-theme="light"] .splash-word b { -webkit-text-stroke: 1.5px var(--text); text-shadow: 3px 3px 0 var(--text); }
.splash-word i { font: 700 11.5px var(--font); font-style: normal; letter-spacing: .2em; color: var(--muted); margin-top: 16px; }
.splash-stars i { position: absolute; background: currentColor; opacity: .55;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@media (prefers-reduced-motion: no-preference) {
  .splash-stars i { opacity: 0; animation: twinkle 1.5s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }
  .splash-word { animation: word-in .7s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes word-in { from { transform: scale(.86); opacity: 0; letter-spacing: .2em; } }
}

/* the replay, full screen and on its side: the field is the whole screen, the score sits at the
   top middle and the last play's result at the bottom middle, a few controls in the corners */
.rp-board { display: none; }
#rp-card.rp-fullscreen { position: fixed; inset: 0; z-index: 70; margin: 0; padding: 0; border: 0; border-radius: 0; background: #06100b; animation: none; overflow: hidden; }
#rp-card.rp-fullscreen.rp-rotate { inset: auto; top: 0; left: 100vw; width: 100vh; height: 100vw; width: 100dvh; height: 100dvw; transform-origin: top left; transform: rotate(90deg); }
#rp-card.rp-fullscreen > .row.between { position: absolute; top: 8px; right: 8px; z-index: 4; }
#rp-card.rp-fullscreen > .row.between h3, .rp-fullscreen .rp-hint, .rp-fullscreen #rp-sit, .rp-fullscreen #rp-radio, .rp-fullscreen .rp-bug { display: none; }
#rp-card.rp-fullscreen .field { position: absolute; inset: 0; margin: 0 !important; border-radius: 0; }
#rp-card.rp-fullscreen .field svg { width: 100%; height: 100%; }
#rp-card.rp-fullscreen .rp-board { display: grid; grid-template-columns: auto auto auto; gap: 0 14px; align-items: center; justify-items: center;
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 6px 16px 5px; border-radius: 12px;
  background: rgba(0, 0, 0, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
.rp-board b { font: 800 22px/1 var(--font-num); letter-spacing: .04em; }
.rp-board b span { color: var(--accent); margin: 0 4px; }
.rp-board i { font: 700 12px var(--font); font-style: normal; letter-spacing: .08em; color: #d7dcd4; }
.rp-board small { grid-column: 1 / -1; font-size: 11px; color: #c3cbc0; margin-top: 2px; }
#rp-card.rp-fullscreen #rp-desc { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; margin: 0 !important; max-width: 62%;
  padding: 7px 14px; border-radius: 12px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 14px; text-align: center; }
#rp-card.rp-fullscreen .rp-controls { position: absolute; left: 8px; bottom: 8px; z-index: 4; margin: 0 !important; gap: 6px; flex-wrap: nowrap; }
#rp-card.rp-fullscreen .rp-controls > :not(#rp-prev):not(#rp-play):not(#rp-next) { display: none; }
#rp-card.rp-fullscreen .btn { background: rgba(0, 0, 0, .6); color: #fff; border-color: rgba(255, 255, 255, .28); }
body.rp-open { overflow: hidden; }
body.rp-open .bottom-tabs, body.rp-open .topbar { display: none; }
#splash[hidden] { display: none; }
.splash-stars { position: absolute; inset: 0; }
.claim-btn { width: 100%; text-align: center; color: var(--accent-ink); background: var(--accent); border: 1.5px solid var(--accent); }

/* ---- 2026-10-08, the accounts list, the draft room's fixes, card choices, position tabs ---- */
.note-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.note-card > div { min-width: 0; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
/* the compact board: a small cell, the player's name only */
.board.compact .cell { height: 30px; padding: 4px 6px; font-size: 10.5px; min-width: 58px; max-width: 64px; }
.board.compact .cell .m { display: none; }
.board.compact th { min-width: 58px; max-width: 64px; font-size: 10px; padding: 4px 2px; }
.board.compact table { border-spacing: 2px; }
.board-sheet-body > h2, .board-sheet-body > .row.between { display: none; }       /* (the card's own heading says it) */
.mini-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 12px); z-index: 80; padding: 9px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.mini-toast.on { opacity: 1; transform: translate(-50%, 0); }
/* a choice on the create-a-league form: the button that opens its card */
.pick-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg-deep); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 600 14px var(--font); }
.pick-btn:hover, .pick-btn:focus-visible { border-color: var(--accent); }
/* a team's projected total, under its score */
.score-col { display: grid; justify-items: center; gap: 2px; }
.score-col small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* the team page's position tabs: with one chosen, the slots that are empty and the section labels step aside */
.team-tabs { gap: 6px; margin: 12px 0 2px; }
.pl-role { display: none; justify-self: start; font: 700 10px var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px;
  color: var(--accent-ink); background: var(--accent); }
.pl-role.benched { color: var(--text-2); background: var(--card-2); border: 1px solid var(--line); }
.one-pos .pl-role { display: inline-block; }
.one-pos .pl.empty, .one-pos .pl-sect { display: none; }
.one-pos .plist ~ .plist { margin-top: 22px; }
.pl[hidden] { display: none; }

/* the head start: 5 points on the board before a snap. Gold, because it is points, not a rating */
.badge.boost.head { color: var(--accent-ink); background: var(--accent); }
.mu-head { display: block; font: 700 9.5px var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; margin-top: 2px; }

/* ---- 2026-10-08, later still: the draft board on top, the Players bar, flags, quick swap ---- */
.draft-wrap .board { max-height: 216px; }
.draft-wrap .board td.rnd { background: var(--card); }
.draft-side { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.draft-side.stack > * + * { margin-top: 0; }
@media (max-width: 860px) { .draft-side { grid-template-columns: minmax(0, 1fr); } .draft-wrap .board { max-height: 178px; } }
/* the Players tab's bar: positions, then search and the four views on one row */
.players-bar { display: grid; gap: 10px; margin-bottom: 14px; }
.players-tools { gap: 8px; }
.players-search { flex: 1 1 180px; min-width: 0; }
/* a flag on a menu entry: something there is waiting for you */
.flag { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-deep); margin-left: 4px; vertical-align: top; }
.ico { position: relative; }
.ico .flag { position: absolute; top: -2px; right: -5px; margin: 0; }
a.card .flag { margin-left: 8px; }
/* pull to refresh */
.pull-tip { position: fixed; top: 10px; left: 50%; transform: translate(-50%, -60px); z-index: 90; padding: 7px 14px; border-radius: 999px; font: 700 12.5px var(--font);
  background: var(--accent); color: var(--accent-ink); transition: transform .18s ease; pointer-events: none; }
.pull-tip.on { transform: translate(-50%, 0); }
/* the matchup's score, staying in view as the cards scroll under it */
.mu-strip { position: sticky; top: var(--topbar-h, 58px); z-index: 15; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); gap: 10px; align-items: center;
  margin-top: 14px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--bg-deep) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line-soft); }
.mu-strip b { font: 800 14px var(--font-num); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-strip b:last-child { text-align: right; }
.mu-strip .num { font-size: 20px; color: var(--text); }
.mu-strip .num.lead { color: var(--accent-text); }
.mu-strip i { font: 700 9.5px var(--font); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* quick swap on the team page: a slot label is something you tap */
.quick-hint { margin: 10px 0 0; }
.pl .pl-slot { cursor: pointer; }
.pl.picked { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl.picked .pl-slot .pos { box-shadow: 0 0 0 3px var(--accent); }
input[type=search] { background: var(--bg-deep); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 14px var(--font); -webkit-appearance: none; appearance: none; }
.bottom-tabs .ico .flag { right: calc(50% - 17px); top: -1px; }

/* an unused injured-reserve spot: a thin row */
.pl.empty.slim { padding-block: 6px; min-height: 0; }
.pl.empty.slim .pl-top { min-height: 0; font-size: 13px; }

/* Trials: the line on every page of a run, and your own row on a board */
.trial-line { display: block; margin-bottom: 14px; }
tr.me td { background: color-mix(in srgb, var(--accent) 9%, transparent); }

/* the Lobby and the multi-player card: a link or a listing drawn as an option row, an invitation's block */
a.opt { text-decoration: none; color: inherit; }
.invite-card { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.invite-card:first-of-type { border-top: 0; padding-top: 0; }
