/* Layout: a broadcast booth. Scoreboard strip across the top, the field under it,
   then the play-call board beside a running play-by-play log. Chalk on turf, scoreboard amber. */
:root {
  --bg: #eef2ec;           /* chalked practice-field paper */
  --surface: #f9fbf7;
  --fg: #142018;
  --muted: #5b6b60;
  --line: #cfd9cf;
  --turf: #2d6a3e;
  --turf-deep: #1e4a2b;
  --chalk: #ffffff;
  --amber: #c98a06;        /* scoreboard bulbs */
  --amber-ink: #2a1d00;
  --score: #1f7a3c;
  --danger: #b3261e;
  --flag: #b98900;

  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1510; --surface: #131e17; --fg: #e5eee6; --muted: #93a598; --line: #25342a;
    --turf: #2c6a3d; --turf-deep: #183a22; --chalk: #f4f7f2; --amber: #f2b632; --amber-ink: #1d1400;
    --score: #58c27a; --danger: #ff7a70; --flag: #f0c84a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1510; --surface: #131e17; --fg: #e5eee6; --muted: #93a598; --line: #25342a;
  --turf: #2c6a3d; --turf-deep: #183a22; --chalk: #f4f7f2; --amber: #f2b632; --amber-ink: #1d1400;
  --score: #58c27a; --danger: #ff7a70; --flag: #f0c84a;
  color-scheme: dark;
}

/* Never wider than the screen: clip (unlike hidden) keeps sticky bars working. */
html, body { background: var(--bg); color: var(--fg); overflow-x: clip; }
body { margin: 0; font: 400 15px/1.45 var(--body); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { box-sizing: border-box; }
button, select, input { font: inherit; color: inherit; }
/* On a phone, iOS zooms in on any dropdown or text box with text under 16px, and stays zoomed: the page then
   slides side to side. 16px keeps it still. */
@media (pointer: coarse) {
  select, input, textarea { font-size: max(16px, 1em) !important; }
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 18px 40px;
  display: grid;
  gap: 16px;
}

/* ---------- masthead ---------- */
.masthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.brand {
  font: 800 2.1rem/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turf);
}
/* "RULE THE" spans exactly the width of "GRIDIRON": its letters spread evenly (less GRIDIRON's trailing letter space). */
.brand-kicker { display: flex; justify-content: space-between; margin: 0 0.13rem 3px 0; font: 700 1.15rem/1 var(--label); color: var(--amber); }
.brand-kicker .gap { width: 0.3em; }
.tagline { color: var(--muted); }

/* ---------- setup ---------- */
.setup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 18px;
  max-width: 760px;
}
.setup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.label, .field-label, h3, .eyebrow, .check {
  font: 600 0.8rem/1.2 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-label { display: grid; gap: 6px; }
select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-transform: none;
  letter-spacing: 0;
  font: 500 1rem var(--body);
  color: var(--fg);
}
.hint { color: var(--muted); font-size: 0.9rem; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { accent-color: var(--turf); }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  cursor: pointer;
  font: 600 0.95rem var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.segmented button.on { background: var(--turf); color: var(--chalk); }
/* Settings: the choices share the row, and wrap inside their buttons before any runs off a narrow screen. */
.settings .segmented { display: flex; max-width: 100%; width: fit-content; }
.settings .segmented button { flex: 1 1 auto; min-width: 0; padding-inline: clamp(6px, 3vw, 16px); }

.matchup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.vs { font: 700 1.1rem var(--display); color: var(--muted); text-transform: uppercase; }
.team-chip { display: inline-flex; align-items: baseline; gap: 8px; }
.team-chip .swatch {
  width: 14px; height: 14px; align-self: center; border-radius: 3px;
  background: linear-gradient(135deg, var(--team) 60%, var(--team-2) 60%);
  box-shadow: 0 0 0 1px var(--line);
}
.team-city { font: 500 1rem var(--body); }
.team-name { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }

button.primary, a.button.primary {
  justify-self: start;
  border: 0;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--amber-ink);
  padding: 11px 26px;
  font: 800 1.15rem var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
button.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.warn { color: var(--danger); margin: 0; }

/* ---------- scoreboard ---------- */
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  background: #0e1511;              /* the board itself is always dark, like the real thing */
  color: #f1f5ef;
  border-radius: var(--radius);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.side { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; padding: 12px 16px 12px 22px; min-width: 0; }
.side.home { padding: 12px 22px 12px 16px; }
.stripe { position: absolute; top: 0; bottom: 0; left: 0; width: 8px; background: var(--team); box-shadow: inset -3px 0 0 var(--team-2); }
.side.home .stripe { left: auto; right: 0; box-shadow: inset 3px 0 0 var(--team-2); }
.side-name { display: grid; min-width: 0; }
.abbr { font: 800 1.6rem/1 var(--display); letter-spacing: 0.04em; }
.nick { font: 600 0.8rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: #a9b9ac; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.points { grid-row: span 2; align-self: center; font: 800 3.2rem/1 var(--display); color: #f2b632; text-shadow: 0 0 12px rgba(242, 182, 50, 0.35); }
.side-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.timeouts { display: inline-flex; gap: 4px; }
.to { width: 14px; height: 4px; border-radius: 2px; background: #33423a; }
.to.left { background: #f2b632; }
.ball-flag { font: 700 0.7rem var(--label); letter-spacing: 0.1em; text-transform: uppercase; background: #f2b632; color: #1d1400; padding: 1px 6px; border-radius: 3px; }
.clock { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 10px 18px; background: #0a100c; border-inline: 1px solid #25342a; }
.period { font: 700 0.85rem var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: #a9b9ac; }
.time { font: 800 2rem/1 var(--display); color: #f2b632; }
.down { font: 600 0.85rem var(--label); letter-spacing: 0.04em; color: #dfe8e0; text-align: center; max-width: 16ch; }

/* ---------- field ---------- */
.field-strip { margin: 0; display: grid; gap: 6px; }
/* Drawn to scale and never stretched: the box keeps the drawing's shape (120 by 22 yards). */
.field-strip svg { width: 100%; height: auto; aspect-ratio: 120 / 22; display: block; border-radius: var(--radius); }
/* The field is a field in either theme: its own greens and paint. */
.field-strip .turf { fill: #2f7d42; }
.field-strip .mow { fill: #ffffff; opacity: 0.06; }
.field-strip .yard { stroke: rgba(255, 255, 255, 0.85); stroke-width: 0.22; }
.field-strip .tick { stroke: rgba(255, 255, 255, 0.7); stroke-width: 0.16; }
.field-strip .sideline { fill: none; stroke: #ffffff; stroke-width: 0.35; }
.field-strip .goal { stroke: #ffffff; stroke-width: 0.5; }
.field-strip .post { stroke: #f2d024; stroke-width: 0.6; stroke-linecap: round; }
.field-strip .numbers { fill: rgba(255, 255, 255, 0.9); font: 700 3.4px var(--display); text-anchor: middle; }
.field-strip .arrow { fill: rgba(255, 255, 255, 0.85); }
.field-strip .endzone { fill: #ffffff; font: 800 3.6px var(--display); letter-spacing: 0.3px; text-anchor: middle; dominant-baseline: middle; opacity: 0.92; }
.field-strip .first-down { stroke: #f2d024; stroke-width: 0.5; }
.field-strip .scrimmage { stroke: #3b8cff; stroke-width: 0.45; }
.field-strip .football { fill: #7a3e1d; stroke: #3a1a08; stroke-width: 0.15; }
.field-strip .laces { stroke: #ffffff; stroke-width: 0.2; stroke-dasharray: 0.15 0.15; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 600 0.85rem var(--label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* ---------- booth: call board + feed (a split Pager: side by side when wide, swipe panels on a phone) ---------- */

.callboard, .feed, .boxscore {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.eyebrow { margin: 0; }
.advice { margin: 0; padding: 8px 10px; border-left: 3px solid var(--amber); background: var(--bg); font-weight: 500; }
.waiting { margin: 0; color: var(--muted); }
h2 { margin: 0; font: 800 1.3rem var(--display); text-transform: uppercase; letter-spacing: 0.05em; }
h3 { margin: 0; }
.question { font: 700 1.4rem var(--display); text-transform: none; letter-spacing: 0.01em; color: var(--fg); }

.call-group { display: grid; gap: 8px; }
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.call {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
.call:hover:not(:disabled) { border-color: var(--turf); background: var(--surface); }
.call:disabled { opacity: 0.45; cursor: not-allowed; }
.call-name { font: 700 1.02rem/1.15 var(--display); letter-spacing: 0.02em; }
.call-note { font-size: 0.78rem; line-height: 1.25; color: var(--muted); }
.call.special .call-name { color: var(--turf); }

.staff { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--line); }
button.quiet { border: 0; background: none; padding: 6px 0; margin-right: 12px; color: var(--turf); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; font: 700 1.1rem var(--display); display: inline-flex; align-items: center; gap: 8px; }
.choice.pick { border-color: var(--amber); }
.badge { font: 700 0.68rem var(--label); letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber); color: var(--amber-ink); padding: 2px 6px; border-radius: 3px; }

.final { display: grid; gap: 8px; }
.final h2 { font-size: 2rem; color: var(--turf); }
.final p { margin: 0; }

/* ---------- your game the staff just simmed (Game Day) ---------- */
.sim-results { display: grid; gap: 4px; margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--amber); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.sim-results .eyebrow { margin: 0; }
.sim-result { margin: 0; font-weight: 600; }
.sim-result .won { color: var(--score); }
.sim-result .lost { color: var(--danger); }

/* ---------- play by play ---------- */
.feed { max-height: 720px; overflow: auto; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; }
.events > li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.event-clock { font: 600 0.8rem var(--label); letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.event-text { overflow-wrap: anywhere; }
.events > li.score .event-text { color: var(--score); font-weight: 700; }
.events > li.turnover .event-text { color: var(--danger); font-weight: 600; }
.events > li.flag .event-text { color: var(--flag); font-weight: 600; }
.events > li.milestone .event-text { font: 700 0.95rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.details { grid-column: 2; list-style: none; margin: 2px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); font: 0.78rem/1.4 var(--mono); color: var(--muted); }

.boxscore pre { margin: 0; overflow-x: auto; font: 0.8rem/1.4 var(--mono); }

/* ---------- menu ---------- */
button.brand { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
/* The RTG mark beside the stacked name; the name keeps its own width so "RULE THE" can match "GRIDIRON". */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-text { display: inline-block; }
.logo-mark { height: 3.3rem; width: auto; flex: none; display: block; }
.masthead .tagline { flex-basis: 100%; }
.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; max-width: 900px; }
.menu-card, .season-head, .season-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.menu-card h2 { font-size: 1.6rem; }
.menu-card p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
button.secondary, a.button.secondary {
  border: 1px solid var(--turf);
  border-radius: var(--radius);
  background: transparent;
  color: var(--turf);
  padding: 10px 22px;
  font: 800 1.1rem var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.game-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }

/* ---------- season hub ---------- */
.season-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; }
@media (max-width: 700px) { .season-head { grid-template-columns: minmax(0, 1fr); } }
.season-team, .season-next { display: grid; gap: 8px; align-content: start; min-width: 0; }
.season-team p, .season-next p { margin: 0; }
.season-next { border-left: 3px solid var(--amber); padding-left: 16px; }
@media (max-width: 700px) { .season-next { border-left: 0; padding-left: 0; border-top: 1px dashed var(--line); padding-top: 12px; } }
.season-record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.season-record .big { font: 800 2.6rem/1 var(--display); color: var(--turf); font-variant-numeric: tabular-nums; }
.champ-note { font: 700 1.2rem var(--display); }
.sim-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 600 0.95rem var(--label); letter-spacing: 0.04em; color: var(--muted); }
.sim-progress::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: pulse 900ms ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }
.tabs { justify-self: start; flex-wrap: wrap; max-width: 100%; }
.season-panel { gap: 14px; }

/* The hub's home page: every section as a tile, all on one screen. */
.tile-group { display: grid; gap: 6px; }
.tile-group .eyebrow { margin: 0; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hub-tile {
  display: grid; gap: 2px; align-content: start; min-width: 0; min-height: 64px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line); border-left: 4px solid var(--turf); border-radius: var(--radius);
  background: var(--surface); color: inherit; cursor: pointer;
}
.hub-tile:hover { border-color: var(--turf); }
.hub-tile:active { background: color-mix(in srgb, var(--turf) 14%, var(--surface)); }
.hub-tile.alert { border-left-color: var(--amber); }
.tile-name { font: 800 1.05rem/1.1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; overflow-wrap: anywhere; }
.tile-note { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-tile.alert .tile-note { color: var(--flag); font-weight: 600; }
/* Game Day leads the tiles: the full width, in scoreboard amber. */
.season-head.solo { grid-template-columns: minmax(0, 1fr); }
.hub-tile.game-day-tile { min-height: 0; padding: 12px 16px; border: 1px solid var(--amber); border-left: 6px solid var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); }
.game-day-tile .eyebrow { color: var(--amber); }
.game-day-tile .tile-name { font-size: 1.6rem; }
.game-day-tile .tile-note { font-size: 0.92rem; color: var(--fg); white-space: normal; }
.game-day-tile:hover { border-color: var(--amber); }
/* An open section: the way back to the main menu, the category's name and the week, then the category's other
   sections as tabs. Pinned while the page scrolls. */
.section-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: grid; background: var(--bg); }
.section-bar { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
/* The way back: a solid turf button, so it reads as the place to tap. */
.section-bar button { min-height: 40px; padding: 6px 16px; margin: 0; border: 1px solid var(--turf); border-radius: 999px; background: var(--turf); color: var(--chalk); text-decoration: none; font: 700 0.85rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.section-bar button:hover, .section-bar button:focus-visible { background: var(--turf-deep); }
.section-name { font: 800 1.1rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.section-sum { margin-left: auto; color: var(--muted); font: 600 0.78rem var(--label); letter-spacing: 0.04em; text-align: right; }
.section-top:not(:has(.cat-tabs)) .section-bar { border-bottom: 1px solid var(--line); }
.cat-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer;
  padding: 8px 12px 6px; font: 700 0.9rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.cat-tabs button.on { color: var(--fg); border-bottom-color: var(--amber); }
.cat-tabs button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
/* Something in there wants the coach: a dot on its tab (and on its category in the bar). */
.tab-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--flag); }
/* Where a newly opened section scrolls to; it takes back the shell's gap so it adds no space. */
.panel-anchor { height: 0; margin-bottom: -16px; outline: none; }

.swatch {
  display: inline-block; flex: none; width: 11px; height: 11px; margin-right: 7px; border-radius: 2px; vertical-align: -1px;
  background: linear-gradient(135deg, var(--team) 60%, var(--team-2) 60%);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- tables ---------- */
/* (Two side by side only where each division table fits whole, its Race column included.) */
.standings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 580px), 1fr)); gap: 18px; }
.table-wrap { overflow-x: auto; min-width: 0; }
table.stats { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
table.stats caption { text-align: left; padding-bottom: 6px; font: 800 1.05rem var(--display); text-transform: uppercase; letter-spacing: 0.05em; }
table.stats th, table.stats td { padding: 5px 7px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.stats thead th { font: 600 0.75rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
table.stats .team-col { text-align: left; font-weight: 600; }
table.stats tr.mine { background: color-mix(in srgb, var(--amber) 16%, transparent); }
table.stats .rank { width: 2em; color: var(--muted); }
table.stats td.result.won { color: var(--score); font-weight: 700; }
table.stats td.result.lost { color: var(--danger); }
table.schedule td:first-child { text-align: left; color: var(--muted); }
.where { display: inline-block; width: 2.4em; color: var(--muted); font-weight: 500; }

/* ---------- scores ---------- */
.week-picker { display: flex; align-items: center; gap: 12px; }
.week-picker h3 { font: 800 1.2rem var(--display); color: var(--fg); min-width: 10ch; text-align: center; }
.week-picker .quiet { margin: 0; }
.week-picker .quiet:disabled { opacity: 0.35; cursor: default; }
.scores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.scores > li { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 3px; background: var(--bg); }
.scores > li.mine { border-color: var(--amber); }
.round { font: 600 0.72rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.score-row { display: flex; align-items: center; gap: 0; min-width: 0; }
.score-team { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-pts { font: 800 1.15rem var(--display); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.score-row.won .score-team { font-weight: 700; }
.score-row:not(.won) .score-pts { color: var(--muted); }
.score-note { font: 600 0.72rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- leaders ---------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.leader-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--bg); display: grid; gap: 6px; min-width: 0; }
.leader-card ol { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 3px; }
.leader-card li { display: flex; justify-content: space-between; gap: 8px; }
.leader-card li.mine { font-weight: 700; }
.leader-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-name .hint { font-size: 0.78rem; }
.leader-value { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- bracket ---------- */
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 4px; align-items: center; }
.bracket-round { display: grid; gap: 10px; align-content: center; }
.bracket-game { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; background: var(--bg); display: grid; gap: 3px; }
.bracket-game.mine { border-color: var(--amber); }
.seed { width: 1.6em; color: var(--muted); font: 600 0.8rem var(--label); }
.champ-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; font: 800 1.1rem var(--display); text-transform: uppercase; }

/* ---------- rosters, history, offseason ---------- */
table.roster tr.starter th, table.roster tr.starter td.ovr { font-weight: 800; }
table.stats td.pos { text-align: left; color: var(--muted); font: 600 0.78rem var(--label); letter-spacing: 0.06em; }
table.stats td.ovr { font-weight: 700; }
.up { color: var(--score); font-weight: 700; }
.down { color: var(--danger); font-weight: 700; }
.offseason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.picks, .plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.picks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 4px 6px; border-radius: 4px; }
.picks li.mine { background: color-mix(in srgb, var(--amber) 16%, transparent); }
.pick-no { min-width: 2.2em; font: 700 0.85rem var(--label); color: var(--muted); font-variant-numeric: tabular-nums; }
.pick-team { font: 700 0.85rem var(--label); letter-spacing: 0.05em; min-width: 3em; }
.plain li { padding: 2px 0; }
.draft-btn {
  border: 1px solid var(--turf); border-radius: var(--radius); background: var(--turf); color: var(--chalk);
  padding: 4px 12px; font: 700 0.85rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.season-panel h3 { margin-top: 6px; }

/* ---------- offseason steps and the cap ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; counter-reset: step; }
.steps li { counter-increment: step; font: 600 0.78rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.steps li::before { content: counter(step) ". "; }
.steps li.now { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
.steps li.done { color: var(--turf); border-color: var(--turf); }
/* On a phone the offseason's header gives its height to the panels below: one row of steps (only the current one
   spelled out), smaller figures and a plainer note. */
@media (max-width: 600px) {
  .offseason-head { padding: 12px 14px; gap: 8px; }
  .offseason-head .season-team, .offseason-head .season-next { gap: 6px; }
  .offseason-head .season-next { padding-top: 8px; }
  .offseason-head .champ-note { font: 600 0.95rem/1.3 var(--body, inherit); font-family: inherit; }
  .offseason-head .steps { flex-wrap: nowrap; gap: 4px; }
  .offseason-head .steps li { white-space: nowrap; }
  .offseason-head .steps li:not(.now) { font-size: 0; padding-inline: 9px; }
  .offseason-head .steps li:not(.now)::before { font-size: 0.78rem; content: counter(step); }
  .offseason-head .cap-figures { font-size: 0.82rem; gap: 2px 10px; }
  .offseason-head button.primary { padding: 8px 18px; font-size: 1rem; }
}
.cap-bar { display: grid; gap: 6px; }
.cap-track { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.cap-used { display: block; height: 100%; background: linear-gradient(90deg, var(--turf), var(--amber)); }
.cap-figures { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.draft-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- trades ---------- */
.trade-top { display: grid; gap: 6px; max-width: 520px; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.trade-side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.trade-side h3 { display: flex; align-items: center; gap: 4px; }
.asset-list { display: grid; gap: 2px; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; background: var(--bg); }
.asset { display: grid; grid-template-columns: auto 3.2em minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 8px; padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.asset:hover { background: var(--surface); }
.asset.on { background: color-mix(in srgb, var(--amber) 18%, transparent); }
.asset input { grid-row: span 2; accent-color: var(--turf); }
.asset .pos { font: 600 0.75rem var(--label); letter-spacing: 0.06em; color: var(--muted); grid-row: span 2; }
.asset-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset .hint { grid-column: 3; font-size: 0.78rem; }
.asset-value { grid-row: 1 / span 2; grid-column: 4; font: 700 1rem var(--display); font-variant-numeric: tabular-nums; color: var(--turf); }
.trade-summary { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.trade-summary p { margin: 0; }
.verdict { font: 700 1.05rem var(--display); letter-spacing: 0.02em; }
.verdict.yes { color: var(--score); }
.verdict.no { color: var(--flag); }
.trade-log li { font-size: 0.9rem; }

/* ---------- contract talks ---------- */
.negotiation { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--amber); border-radius: var(--radius); background: var(--bg); }
.negotiation p { margin: 0; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.offer-grid input[type="number"] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: 600 1rem var(--body); }
.offer-grid input[type="range"] { width: 100%; accent-color: var(--turf); }
.meter { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; }
.meter-fill.good { background: var(--score); }
.meter-fill.close { background: var(--amber); }
.meter-fill.low { background: var(--danger); }
button.quiet.extend { margin: 0 0 0 8px; padding: 0; }

/* ---------- trade offers ---------- */
.offers { display: grid; gap: 10px; }
.offer-card { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--team); border-radius: var(--radius); background: var(--bg); }
.offer-card p { margin: 0; }
.offer-pitch { font: 700 1.05rem var(--display); display: flex; align-items: center; gap: 2px; }
.offer-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px 18px; }
.offers-badge { justify-self: start; border: 0; border-radius: 999px; background: var(--amber); color: var(--amber-ink); padding: 4px 12px; font: 700 0.85rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }

/* ---------- injuries ---------- */
.rs-tag { margin-left: 4px; padding: 0 5px; border: 1px solid var(--muted, currentColor); border-radius: 3px; font: 600 0.7rem var(--label); letter-spacing: 0.04em; opacity: 0.8; }
.rs-toggle { font-size: 0.75rem; }
.show-sm, .show-sm-block { display: none; }
.out-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--danger); color: #fff; font: 700 0.68rem var(--label); letter-spacing: 0.08em; vertical-align: 1px; }
.injury-report { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--danger); border-radius: var(--radius); background: var(--bg); }
.injury-report .out-tag { margin: 0 6px 0 0; }
.depth-warnings { display: grid; gap: 6px; margin-bottom: 12px; padding: 10px 12px; border-left: 3px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.depth-warnings li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.depth-warnings > button { justify-self: start; }
.depth-warnings .eyebrow { margin: 0; color: var(--danger); }
.injury-badge { justify-self: start; border: 1px solid var(--danger); border-radius: 999px; background: transparent; color: var(--danger); padding: 3px 12px; font: 600 0.82rem var(--label); letter-spacing: 0.04em; cursor: pointer; }
.events > li.injury .event-text { color: var(--danger); font-weight: 700; }

/* ---------- roster moves ---------- */
.moves-status { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.move-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.move-row .quiet { margin: 0; padding: 0; }

/* ---------- names and numbers ---------- */
table.stats td.jersey { color: var(--muted); text-align: right; }
.name-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.name-form label { display: grid; gap: 2px; font: 600 0.72rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.name-form input, .name-form select { font: inherit; font-size: 0.95rem; text-transform: none; letter-spacing: 0; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; min-width: 0; max-width: 100%; }
.name-form input.num { width: 4em; }
.name-form button { margin: 0; }

/* ---------- scouting ---------- */
.scout-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.scout-points b { font-variant-numeric: tabular-nums; }
table.stats td.range { white-space: nowrap; }
table.stats td.scout-cell { white-space: nowrap; text-align: left; }
.scout-cell .quiet { margin: 0 0 0 6px; padding: 0; }
.scout-level { font: 600 0.72rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.scout-level.l1 { color: var(--flag); }
.scout-level.l2 { color: var(--score); }

/* ---------- player card ---------- */
button.player-link { all: unset; cursor: pointer; border-bottom: 1px dotted var(--muted); }
button.player-link:hover, button.player-link:focus-visible { color: var(--score); border-bottom-color: currentColor; }
.card-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 0.45); z-index: 40; }
.player-card { position: fixed; z-index: 41; top: max(4vh, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto; display: grid; gap: 14px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.35); }
.player-card:focus { outline: none; }
.player-card h2 { margin: 0; }
.player-card h3 { margin: 0 0 6px; }
.player-card p { margin: 0; }
.card-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding-right: 24px; }
.card-ovr { display: grid; justify-items: center; }
.card-ovr .big { font: 700 2.4rem var(--label); line-height: 1; }
.card-status { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.card-status .mood { font: 600 0.8rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.mood.happy { color: var(--score); } .mood.unhappy { color: var(--flag); } .mood.upset { color: var(--danger); } .mood.content { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card-grid > section { display: grid; gap: 6px; align-content: start; min-width: 0; }
dl.traits { margin: 0; display: grid; gap: 4px; }
.trait { display: grid; grid-template-columns: 9em 1fr; gap: 8px; align-items: center; }
.trait dt { font-size: 0.85rem; color: var(--muted); }
.trait dd { margin: 0; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.trait .bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.trait .bar span { display: block; height: 100%; background: var(--muted); }
.trait .bar span.hi { background: var(--score); }
.trait .bar span.lo { background: var(--flag); }
.trait b { min-width: 2ch; text-align: right; }
ul.honors { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.honors li { font: 600 0.75rem var(--label); letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--flag); color: var(--flag); }

/* ---------- draft history ---------- */
.draft-years { display: flex; flex-wrap: wrap; gap: 4px; }
.verdict { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; font: 600 0.72rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.verdict.v-star, .verdict.v-steal { border-color: var(--score); color: var(--score); }
.verdict.v-starter { color: var(--fg); }
.verdict.v-bust { border-color: var(--danger); color: var(--danger); }

/* ---------- depth chart ---------- */
.depth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.depth-card { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.depth-head { display: flex; justify-content: space-between; align-items: baseline; }
.depth-head h3 { margin: 0; }
.depth-head .quiet { margin: 0; padding: 0; }
ol.depth-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
ol.depth-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name ovr" "meta move"; gap: 0 8px; align-items: center; padding: 4px 0; min-width: 0; border-bottom: 1px solid var(--line); }
ol.depth-list li:last-child { border-bottom: none; }
.depth-ovr { grid-area: ovr; justify-self: end; font-variant-numeric: tabular-nums; }
ol.depth-list li.starter .depth-name { font-weight: 600; }
ol.depth-list li.last-starter { border-bottom: 2px solid var(--score); padding-bottom: 5px; margin-bottom: 3px; }
.depth-name { grid-area: name; min-width: 0; overflow-wrap: anywhere; }
.depth-meta { grid-area: meta; min-width: 0; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.depth-move { grid-area: move; display: flex; gap: 2px; justify-content: flex-end; }
.depth-move .quiet { margin: 0; padding: 2px 6px; text-decoration: none; }
.depth-move .quiet:disabled { opacity: 0.3; }

/* ---------- box score ---------- */
.box-dialog { width: min(760px, calc(100vw - 32px)); }
.box-wrap { overflow-x: auto; min-width: 0; }
pre.box { margin: 0; font-size: 0.82rem; line-height: 1.35; }
.score-note .box-link { margin: 0 0 0 8px; padding: 0; }

/* ---------- post-game ---------- */
.post-game { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--score); border-radius: 6px; margin-bottom: 12px; }
.post-game .eyebrow, .post-game p { margin: 0; }
.post-headline { font: 600 1.05rem var(--label); letter-spacing: 0.01em; }
ul.post-reasons { margin: 0; padding-left: 1.2em; display: grid; gap: 3px; }

/* ---------- scouting report ---------- */
table.matchups td { width: 7em; }
table.matchups td.edge { color: var(--score); font-weight: 700; }
table.matchups .check { display: inline-block; width: 1.2em; margin-left: 4px; color: var(--score); }
table.matchups tr.total th, table.matchups tr.total td { border-top: 2px solid var(--line); font-weight: 700; }
dl.tendencies { margin: 0; display: grid; gap: 4px; }
dl.tendencies div { display: grid; grid-template-columns: 11em 1fr; gap: 8px; }
dl.tendencies dt { color: var(--muted); font-size: 0.88rem; }
dl.tendencies dd { margin: 0; }

/* ---------- awards ---------- */
.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.award-card { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.award-card.big { border-color: var(--flag); }
.award-card.mine { background: var(--surface); box-shadow: inset 3px 0 0 var(--score); }
.award-card .eyebrow { margin: 0; }
.award-name { margin: 0; font: 600 1.1rem var(--label); letter-spacing: 0.02em; }
.award-card .hint { margin: 0; }
ol.race { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
ol.race li.mine b { color: var(--score); }
ul.hall li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.hall-year { display: inline-block; min-width: 3em; font: 600 0.8rem var(--label); color: var(--flag); }

/* ---------- coaches ---------- */
.coach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.coach-card { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.coach-card .eyebrow { margin: 0; }
.coach-name { margin: 0; font: 600 1.15rem var(--label); letter-spacing: 0.02em; }
.coach-name.vacant { color: var(--flag); }
.coach-scheme { margin: 0; }
.coach-ratings { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.coach-ratings div { display: grid; }
.coach-ratings dt { font: 600 0.7rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.coach-ratings dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.coach-ratings dd.good { color: var(--score); }
.coach-ratings dd.poor { color: var(--flag); }
.coach-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.coach-card select { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; max-width: 100%; }
.owner-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.seat { font: 600 0.8rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.seat.secure { color: var(--score); }
.seat.restless { color: var(--flag); }
.seat.hot { color: var(--danger); }
.seat-badge { justify-self: start; border: 1px solid currentColor; background: transparent; border-radius: 999px; padding: 3px 12px; font: 600 0.8rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.seat-badge.restless { color: var(--flag); }
.seat-badge.hot { color: var(--danger); }
table.stats td.left, table.stats th.left { text-align: left; }
.carousel-news li { padding: 3px 0; }
.carousel-news .kind { display: inline-block; min-width: 5.5em; font: 600 0.72rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.carousel-news .kind.fired { color: var(--danger); }
.carousel-news .kind.hired { color: var(--score); }

/* ---------- morale ---------- */
table.stats td.mood { font: 600 0.8rem var(--label); letter-spacing: 0.04em; text-align: left; cursor: help; }
td.mood.happy { color: var(--score); }
td.mood.content { color: var(--muted); }
td.mood.unhappy { color: var(--flag); }
td.mood.upset { color: var(--danger); }

/* ---------- loading (before the app starts) ---------- */
.loading { display: grid; justify-items: start; gap: 8px; padding-block: 40px; }
.loading .bar { width: min(320px, 100%); height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loading .bar span { display: block; height: 100%; width: var(--blazor-load-percentage, 5%); background: var(--turf); transition: width 200ms; }
#blazor-error-ui { display: none; position: fixed; inset: auto 0 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--danger); color: #fff; }
#blazor-error-ui .reload { color: #fff; }

@media (max-width: 560px) {
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .clock { grid-column: 1 / -1; grid-row: 2; border-inline: 0; border-top: 1px solid #25342a; }
  .points { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Toggles and secondary buttons keep their own width inside grid cards. */
.season-panel > .segmented, button.secondary { justify-self: start; }
/* Numeric columns shrink to their content, so every division table lines up the same way. */
table.stats th:not(.team-col), table.stats td { width: 1%; }

/* Game plan */
.plan-line { margin: 4px 0 0; }
.staff-advice { border-left: 3px solid var(--amber); padding: 4px 0 4px 12px; margin: 12px 0; }
.staff-advice ul { margin: 4px 0 8px; padding-left: 18px; }
.plan-options { display: grid; gap: 6px; }
.plan-option { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: inherit; cursor: pointer; }
.plan-option.on { border-color: var(--turf); background: color-mix(in srgb, var(--turf) 25%, transparent); }
.plan-name { font-weight: 600; }
.plan-about { font-size: 0.85em; opacity: 0.8; }

/* News feed */
.news-head { margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.news-week h3 { margin: 16px 0 6px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.news-item { display: grid; grid-template-columns: 9.5em auto 1fr; gap: 8px; align-items: baseline; padding: 6px 8px; border-left: 3px solid transparent; }
.news-item.weight-3 { border-left-color: var(--amber); font-weight: 600; }
.news-item.mine { background: color-mix(in srgb, var(--turf) 18%, transparent); }
.news-kind { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.news-teams { display: inline-flex; gap: 2px; width: 2.4em; }
.news-text { min-width: 0; }
@media (max-width: 560px) { .news-item { grid-template-columns: auto 1fr; } .news-kind { grid-column: 1 / -1; } }
.top-story { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
/* The team card and top story travel together (Home's weekly summary, or above an open section) without a box of their own. */
.hub-summary { display: contents; }
.top-story .news-kind { color: var(--amber); opacity: 1; }

/* Rivalries and trophies */
.rivalry-tag { margin-left: 8px; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber); }
.rivalry-note { margin: 6px 0; }
.trophy-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.trophy-shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr)); gap: 8px; margin: 8px 0 12px; }
.trophy { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.trophy.gold { border-color: var(--amber); }
.trophy-count { font-size: 1.9em; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.trophy.gold .trophy-count { color: var(--amber); }
.trophy-label { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.honor-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rivalry-card { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rivalry-card p { margin: 2px 0; }

/* Record book */
.records-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
table.records tr.runner th, table.records tr.runner td { opacity: 0.8; font-size: 0.92em; }

/* Bowl games */
.bowls-head { margin-top: 20px; }
.bowl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: 10px; }
.bowl-name { margin: 0 0 4px; font-weight: 600; }

/* Coaching staff */
.tag-warn { margin-left: 6px; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber); }
.promote-row { margin: 6px 0 10px; }
.focus-toggle { font-size: 1.1em; padding: 0 6px; }
.focus-toggle.on { color: var(--amber); }
.dev-tag { margin-left: 4px; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }

/* Recruiting */
.recruit-head { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
.recruit-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
td.stars { color: var(--amber); white-space: nowrap; letter-spacing: -1px; }
.interest { display: inline-block; width: 4em; height: 6px; background: var(--line); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.interest span { display: block; height: 100%; background: var(--turf); }
.actions-cell { white-space: nowrap; }
.recruit-msg { color: var(--amber); }
.recruit-sub { margin: 4px 0 6px; font: 600 0.85rem var(--label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.table-wrap + .recruit-sub, .hint + .recruit-sub { margin-top: 18px; }
button.quiet.drop { color: var(--danger); }

/* Franchise history book */
.franchise-book .book-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.franchise-book .book-head h2 { margin: 0 auto 0 0; display: flex; align-items: center; gap: 8px; }
.book-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 12px 0 4px; }
.book-facts div { display: grid; gap: 2px; }
.book-facts dt { font: 600 0.72rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.book-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.book-seasons tr.book-year td, .book-seasons tr.book-year th, .league-years tr:not(.book-notes) td, .league-years tr:not(.book-notes) th { border-bottom: none; padding-bottom: 2px; }
table tr.book-notes td { padding-top: 0; font-size: 0.82rem; white-space: normal; min-width: 16em; }
.book-awards { color: var(--amber); }
.tag-hof { margin-left: 6px; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber); }

/* NIL budget */
.nil-panel { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; }
.nil-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nil-top h3 { margin: 0; }
.nil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.nil-use { display: grid; gap: 3px; align-content: start; min-width: 0; }
.nil-use input { width: 5.5em; }
.nil-what { font-size: 0.8rem; }

/* History: franchise or league */
.history-switch { display: flex; gap: 6px; margin-bottom: 12px; }
.history-switch button { border: 1px solid var(--line); background: transparent; color: inherit; padding: 4px 14px; border-radius: 999px; font: 600 0.82rem var(--label); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }
.history-switch button.on { background: var(--score); border-color: var(--score); color: var(--bg); }
ol.greatest { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 4px; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  /* The season tabs give way to the home tiles (three across) and a pinned way back to them. */
  .tabs { display: none; }
  .hub-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hub-tile { min-height: 58px; padding: 8px 8px 8px 9px; }
  .tile-name { font-size: 0.95rem; }
  .tile-note { font-size: 0.7rem; }
  .cat-tabs button { padding-inline: 10px; font-size: 0.85rem; }

  /* Columns that can go on a phone, and a little less padding everywhere else. */
  table.stats .hide-sm, .hide-sm { display: none; }
  .show-sm { display: inline; }
  table.stats { font-size: 0.82rem; }
  table.stats th, table.stats td { padding: 5px 3px; }
  table.stats:not(.cards-sm) button.quiet { padding: 2px 4px; }
  table.stats .team-col, table.stats .wrap-sm { white-space: normal; }
  table.stats .wrap-sm button { display: block; margin-top: 2px; }

  /* Tables that become cards: each row a small card, each cell labelled; the main cell leads, actions close. */
  table.cards-sm, table.cards-sm tbody { display: block; width: 100%; }
  table.cards-sm thead { display: none; }
  table.cards-sm caption { display: block; }
  table.cards-sm tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
  table.cards-sm td, table.cards-sm th { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: baseline; width: auto !important; padding: 0; border: 0; text-align: left !important; white-space: normal; }
  table.cards-sm [data-label]::before { content: attr(data-label); font: 600 0.68rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  table.cards-sm .c-main { order: -2; flex-basis: 100%; font-size: 1rem; font-weight: 600; }
  table.cards-sm .c-wide { order: 5; flex-basis: 100%; }
  table.cards-sm .c-actions { order: 10; flex-basis: 100%; gap: 6px; }
  table.cards-sm .c-actions button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
  table.cards-sm td:empty, table.cards-sm .hide-sm { display: none; }
  /* A notes row belongs to the row above it: one card, not two. */
  table.cards-sm tr:has(+ tr.book-notes) { border-bottom: 0; padding-bottom: 2px; }
  table.cards-sm tr.book-notes { padding-top: 0; }
  table.cards-sm tr.book-notes td { min-width: 0; }
}

/* ---------- the game on a phone: the call board within reach ---------- */
@media (max-width: 600px) {
  .shell.in-game .masthead { display: none; }
  .game-head { gap: 2px 10px; }
  .game-head .eyebrow { font-size: 0.68rem; }
  /* One compact row, pinned: away | clock | home. */
  .scoreboard { grid-template-columns: 1fr auto 1fr; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
  .clock { grid-column: auto; grid-row: auto; padding: 4px 8px; border-inline: 1px solid #25342a; border-top: 0; }
  .side, .side.home { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; padding: 6px 8px 6px 14px; }
  .side.home { padding: 6px 14px 6px 8px; }
  .stripe { width: 5px; }
  .abbr { font-size: 1.1rem; }
  .nick { display: none; }
  .points { font-size: 1.9rem; }
  .side-meta { gap: 6px; }
  .to { width: 9px; height: 3px; }
  .ball-flag { font-size: 0.58rem; padding: 0 4px; }
  .period { font-size: 0.66rem; }
  .time { font-size: 1.3rem; }
  .down { font-size: 0.7rem; max-width: 12ch; }
  .field-strip figcaption { font-size: 0.7rem; }
  .show-sm-block { display: block; }
  .last-play { margin: 0; padding: 8px 10px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); font-size: 0.88rem; }
  .last-play .event-clock { margin-right: 6px; color: var(--muted); font: 600 0.72rem var(--label); }
}

/* Box score */
.box-view { display: grid; gap: 14px; min-width: 0; }
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px 18px; }
.box-team { margin: 4px 0 0; }
table.box-teams td { min-width: 4.5em; }
table.box-teams, table.box-line { max-width: 560px; }
.box-drives { display: grid; gap: 3px; font-size: 0.88rem; }

/* All-time leaders in a franchise's book */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.leader-card { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; min-width: 0; }
.leader-card .eyebrow { margin: 0 0 4px; }
.leader-card ol { margin: 0; padding-left: 1.3em; display: grid; gap: 3px; font-size: 0.88rem; }
.leader-card li > span:first-child { min-width: 0; }
.leader-card li { display: list-item; }
.leader-card li .leader-value { float: right; font-variant-numeric: tabular-nums; }

/* The call sheet, at every size: one group of plays at a time (tabs), and the group's plays all on the screen. The
   game's panels fill the screen, the call sheet fills its panel, and the plays share whatever height is left: a play
   too short for its note drops it, then its name shrinks. The kinds of play (Quick, Deep...) ride on the first play
   of each kind instead of taking rows of their own. Only on a screen too small for even slim bars does it scroll. */
.callboard { container: callboard / inline-size; }
.pager-panel.callboard.on:has(> .call-sheet) { display: flex; flex-direction: column; gap: 10px; }
.call-sheet { --call-floor: 28px; --call-gap: 8px; flex: 1 1 0; min-height: 11rem; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain;
  display: flex; flex-direction: column; gap: 10px; }
.call-sheet > * { flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.sheet-head > .eyebrow { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.timeout-call { flex: none; border: 1px solid var(--amber); background: none; color: var(--fg); border-radius: 999px; padding: 4px 10px; font: 600 0.78rem var(--label); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; white-space: nowrap; }
.tempo-row > button.timeout-call { margin-left: auto; }
.sheet-head > button.timeout-call, .tempo-row > button.timeout-call { line-height: 1.25; }
button.timeout-call:hover { background: color-mix(in srgb, var(--amber) 15%, transparent); }
.call-sheet .tempo-row { margin-bottom: 0; }
/* The narrowest phones: the staff's tempo goes by its name alone, to leave the Timeout button room. */
@media (max-width: 360px) { .call-sheet .tempo-row:has(> .timeout-call) .staff-read { display: none; } }
/* (The tabs' lettering shrinks with the row, never past it, so all five defense groups fit on a narrow phone or one
   with its text set large.) */
.call-tabs { display: flex; gap: 6px; container-type: inline-size; }
.call-tabs button { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit;
  font: 700 min(0.82rem, 3.8cqi) var(--label); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.call-tabs button.on { background: var(--turf); border-color: var(--turf); color: var(--chalk); }
.call-sheet .staff { padding-top: 0; }

/* The shown group's plays go straight into the sheet's column; the kind headings give way to labels. */
.call-sheet .call-pane, .call-sheet .call-group { display: contents; }
.call-sheet .call-pane.off-sm, .call-sheet .call-group h3, .call-sheet .call-sub { display: none; }
/* How many plays (n), how many to a row (cols), so how many rows: the floor each group shrinks to. */
.call-sheet .calls { --n: 1; --cols: 2; }
.call-sheet .calls:has(> .call:nth-of-type(2)) { --n: 2; }
.call-sheet .calls:has(> .call:nth-of-type(3)) { --n: 3; }
.call-sheet .calls:has(> .call:nth-of-type(4)) { --n: 4; }
.call-sheet .calls:has(> .call:nth-of-type(5)) { --n: 5; }
.call-sheet .calls:has(> .call:nth-of-type(6)) { --n: 6; }
.call-sheet .calls:has(> .call:nth-of-type(7)) { --n: 7; }
.call-sheet .calls:has(> .call:nth-of-type(8)) { --n: 8; }
.call-sheet .calls:has(> .call:nth-of-type(9)) { --n: 9; }
.call-sheet .calls:has(> .call:nth-of-type(10)) { --n: 10; }
.call-sheet .calls:has(> .call:nth-of-type(11)) { --n: 11; }
.call-sheet .calls:has(> .call:nth-of-type(12)) { --n: 12; }
.call-sheet .calls:has(> .call:nth-of-type(13)) { --n: 13; }
.call-sheet .calls:has(> .call:nth-of-type(14)) { --n: 14; }
.call-sheet .calls:has(> .pick-call) { --cols: 2; }
/* (Three to a row only where it saves rows: a group of four or fewer is two rows either way, and keeps its names whole.) */
@container callboard (min-width: 520px) { .call-sheet .calls:has(> .call:nth-of-type(5)), .call-sheet .calls:has(> .pick-call) { --cols: 3; } }
@container callboard (min-width: 500px) { .call-sheet .calls:has(> .call:nth-of-type(10)) { --cols: 4; } }
/* (A big group on a phone, nine plays or more, goes three to a row too: two to a row it's five or six rows, too thin for a name.) */
/* (Narrow sheets only, and no weightier than the rules for wider ones, so the four-to-a-row layouts still win.) */
@container callboard (min-width: 280px) and (max-width: 519.98px) { .call-sheet .calls:has(> .call:nth-of-type(9)):where(:not(:has(> .pick-call))) { --cols: 3; } }
@container callboard (min-width: 760px) { .call-sheet .calls { --cols: 4; } }
.call-sheet .calls { --rows: round(up, calc(var(--n) / var(--cols)), 1);
  display: grid; flex: 0 1 auto; min-height: calc(var(--rows) * var(--call-floor) + (var(--rows) - 1) * var(--call-gap));
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(0, 58px); align-content: start; gap: var(--call-gap) 8px; padding-top: 4px; }
.call-sheet .calls .call { position: relative; min-width: 0; min-height: 0; container: call / size; align-content: center; padding: 4px 10px; }
.call-sheet .call .call-name, .call-sheet .call .call-note { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* (A line tall enough for the letters' tails, so clipping the overflow never takes them.) */
.call-sheet .call .call-name { line-height: 1.3; }
.call-sheet .call[data-kind]::before { content: attr(data-kind); position: absolute; top: 0; left: 8px; transform: translateY(-50%);
  padding: 0 4px; background: var(--surface); color: var(--muted); font: 700 0.56rem/1.1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
/* (The staff's #1 sits on its play's top edge too, so the name keeps the width.) */
.call-sheet .call .badge { position: absolute; top: 0; right: 8px; transform: translateY(-50%); padding: 1px 5px; font-size: 0.56rem; line-height: 1.1; }
@container call (max-height: 36px) { .call-sheet .call .call-note { display: none; } }
@container call (max-height: 19px) { .call-sheet .call .call-name { font-size: 0.86rem; } }
@container call (max-width: 150px) and (min-height: 20px) { .call-sheet .call .call-name { font-size: 0.92rem; } }
@container call (max-width: 120px) { .call-sheet .call .call-name { font-size: 0.82rem; letter-spacing: 0; }
                                      .call-sheet .call .call-name, .call-sheet .call .call-note { margin-inline: -4px; } }
@media (max-height: 700px) { .call-sheet { --call-floor: 26px; --call-gap: 7px; } }
@media (max-height: 600px) { .call-sheet { --call-floor: 24px; --call-gap: 6px; } }

/* The field never takes more than its share of a wide, short screen. */
.shell.in-game .field-strip svg { max-width: min(100%, calc(17vh * 120 / 22)); margin-inline: auto; }
@media (max-height: 820px) and (min-width: 601px) { .shell.in-game .masthead { display: none; } .shell.in-game { padding-block: 10px 12px; gap: 10px; } }

/* On a phone: the score, the field and the last play compact up top, the call sheet tight below. */
@media (max-width: 600px) {
  .shell.in-game { gap: 8px; padding-block: 8px 10px; grid-template-columns: minmax(0, 1fr); }
  .shell.in-game .game-head { flex-wrap: nowrap; align-items: center; }
  .shell.in-game .game-head .eyebrow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .shell.in-game .game-head .quiet { flex: none; margin: 0; padding: 2px 0; }
  .shell.in-game .field-strip { gap: 3px; }
  /* (On a short screen the field's caption goes: the scoreboard has the down and who has the ball, the field the way they're going.) */
  @media (max-height: 700px) { .shell.in-game .field-strip figcaption { display: none; } }
  .last-play.show-sm-block { padding: 5px 10px; font-size: 0.84rem; line-height: 1.3; }
  .last-play-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .shell.in-game .pager { gap: 6px; }
  .pager-panel.callboard:has(> .call-sheet) { display: flex; }
}

/* A phone on its side, an unfolded Fold, a small laptop (any screen a fifth wider than it is tall, and no taller than 700): the
   game in two columns, the score, the field and the last play on the left, the call sheet down the right the full
   height of the screen. */
@media (min-width: 500px) and (max-height: 700px) and (min-aspect-ratio: 6/5) {
  .shell.in-game { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr); grid-template-rows: auto auto auto auto 1fr; align-content: start;
    padding-block: 6px; gap: 8px 14px; }
  .shell.in-game > * { grid-column: 1; }
  .shell.in-game > .pager.booth { grid-column: 2; grid-row: 1 / -1; gap: 4px; }
  .shell.in-game .pager-panel.callboard:has(> .call-sheet) { padding: 8px 10px; gap: 6px; }
  /* (However wide, the call and the play by play are tabs here: the last play is on the left.) */
  .shell.in-game .pager.booth.split { grid-template-rows: auto minmax(0, 1fr); }
  .shell.in-game .pager.booth.split .pager-tabs { display: flex; }
  .shell.in-game .pager.booth.split .pager-head { display: flex; justify-content: normal; border-bottom: 1px solid var(--line); position: static; }
  .shell.in-game .pager.booth.split .pager-track { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .shell.in-game .pager.booth.split .pager-panel:not(.on) { display: none; }
  .shell.in-game .game-head { flex-wrap: nowrap; align-items: center; gap: 10px; }
  .shell.in-game .game-head .eyebrow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.68rem; }
  .shell.in-game .game-head .quiet { flex: none; margin: 0; padding: 2px 0; }
  .shell.in-game .game-head .hide-sm { display: none; }
  .shell.in-game .game-head .show-sm { display: inline; }
  .shell.in-game .scoreboard { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .shell.in-game .side-meta { flex-wrap: wrap; row-gap: 2px; }
  .shell.in-game .side, .shell.in-game .side.home { gap: 2px 6px; padding: 6px 8px 6px 14px; }
  .shell.in-game .side.home { padding: 6px 14px 6px 8px; }
  .shell.in-game .stripe { width: 5px; }
  .shell.in-game .side-meta { gap: 6px; }
  .shell.in-game .to { width: 9px; height: 3px; }
  .shell.in-game .ball-flag { font-size: 0.58rem; padding: 0 4px; }
  .shell.in-game .nick { display: none; }
  .shell.in-game .abbr { font-size: 1.2rem; }
  .shell.in-game .points { font-size: 1.8rem; }
  .shell.in-game .clock { padding: 4px 8px; }
  .shell.in-game .time { font-size: 1.4rem; }
  .shell.in-game .period, .shell.in-game .down { font-size: 0.7rem; }
  /* (The page is exactly the screen's height and the call sheet takes all of the right column's: left to the panels'
     script, the sheet's own height feeds back into the rows and it ends up well short of the screen.) */
  .shell.in-game { height: 100dvh; grid-template-rows: auto auto auto auto minmax(0, 1fr); }
  .shell.in-game > .pager.booth { height: auto; min-height: 0; }
  /* (The shortest phones on their side: the rows above and between the plays slim, so the staff's links stay on screen.) */
  @media (max-height: 340px) {
    .shell.in-game .pager-panel.callboard:has(> .call-sheet) { padding: 5px 10px; gap: 4px; }
    .shell.in-game .call-sheet { gap: 4px; }
    .shell.in-game .call-sheet .calls { gap: 4px; }
    .shell.in-game .call-tabs button { min-height: 26px; }
    .shell.in-game .pager-tabs button { padding-block: 2px 1px; }
  }
  /* (A narrow left column, a phone on its side: each team's name, score and timeouts stack, so a two-digit score has room.) */
  @media (max-width: 830px) {
    .shell.in-game .side, .shell.in-game .side.home { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 1px; align-content: center; }
    .shell.in-game .points { grid-row: auto; align-self: auto; font-size: 1.7rem; }
  }
  .shell.in-game .field-strip figcaption { font-size: 0.7rem; }
  .shell.in-game .last-play-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .shell.in-game .last-play.show-sm-block { display: block;
    margin: 0; padding: 5px 10px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); font-size: 0.84rem; line-height: 1.3; }
  .shell.in-game .last-play .event-clock { margin-right: 6px; color: var(--muted); font: 600 0.72rem var(--label); }
  .shell.in-game .pager-tabs button { padding-block: 4px 3px; }
  /* (The score has the down and distance; the sheet's plays get the room, three to a row, four in a big group.) */
  .call-sheet > .sheet-head:not(:has(> .timeout-call)) { display: none; }
  @container callboard (min-width: 330px) { .call-sheet .calls:has(> .call:nth-of-type(5)) { --cols: 3; } }
  /* (Under 520 the staff's picks stay two to a row: their names are the longest, "Cover 3 (box safety)".) */
  @container callboard (max-width: 519.98px) { .call-sheet .calls:has(> .pick-call):has(> .call) { --cols: 2; } }
  @container callboard (min-width: 400px) { .call-sheet .calls:has(> .call:nth-of-type(10)) { --cols: 4; } }
}

/* The call sheet held tight: on a phone, and on any short screen. */
@media (max-width: 600px), (max-height: 500px) {
  .pager-panel.callboard:has(> .call-sheet) { flex-direction: column; gap: 8px; padding: 10px; }
  .call-sheet { gap: 6px; }
  .call-sheet .advice { padding: 4px 8px; font-size: 0.85rem; }
  .call-sheet .tempo-row > .eyebrow { display: none; }
  .call-sheet .segmented.tempo { display: flex; width: 100%; }
  .call-sheet .segmented.tempo button { flex: 1 1 auto; padding: 5px 4px; font-size: 0.72rem; white-space: nowrap; }
  /* With the Timeout button: the tempo shares the row, and the button drops its count (the scoreboard has it). */
  .call-sheet .tempo-row:has(> .timeout-call) { flex-wrap: nowrap; gap: 6px; }
  .call-sheet .tempo-row:has(> .timeout-call) .segmented.tempo { flex: 1 1 auto; width: auto; min-width: 0; }
  .call-sheet .tempo-row > .timeout-call { align-self: stretch; padding: 0 8px; font-size: 0.72rem; }
  .call-sheet .tempo-row > .timeout-call .to-count { display: none; }
  .call-tabs { gap: 4px; }
  .call-tabs button { min-height: 32px; padding: 0 3px; font-size: min(0.74rem, 3.8cqi); letter-spacing: 0.04em; }
  .call-sheet .staff { flex-wrap: nowrap; justify-content: space-between; gap: 10px; }
  .call-sheet .staff button.quiet { margin: 0; padding: 3px 0; font-size: min(0.8rem, 3.4vw, 4cqi); white-space: nowrap; }
}
/* A very short phone: the sheet's heading goes (the scoreboard has the down and distance), the last play takes one
   line (the play by play has it all), and the rows above the plays slim down. */
@media (max-width: 600px) and (max-height: 600px) {
  .call-sheet > .sheet-head:not(:has(> .timeout-call)) { display: none; }
  .last-play-text { display: block; white-space: nowrap; text-overflow: ellipsis; }
  .call-sheet .segmented.tempo button { padding-block: 3px; }
  .call-tabs button { min-height: 28px; }
  .call-sheet .staff button.quiet { padding-block: 1px; }
}

/* Rivalry week on the hub */
.rivalry-note { margin: 0; padding: 6px 10px; border-left: 3px solid var(--danger); background: color-mix(in srgb, var(--danger) 7%, transparent); font-size: 0.88rem; }

/* Season recap */
.season-recap .recap-headline { margin: 0; font: 700 1.2rem/1.35 var(--body, inherit); text-wrap: balance; }
.recap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 24px; }
.recap-grid h3 { margin: 6px 0 4px; }
.recap-list { display: grid; gap: 4px; font-size: 0.9rem; }

/* Save slots on the menu */
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slot-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.slot-list li.open { border-color: var(--turf); }
.slot-text { display: grid; gap: 2px; min-width: 0; }
.slot-actions { display: flex; gap: 8px; align-items: center; }

/* Hall of Fame induction: bronze plaques, each topped with the team's color. */
:root { --bronze: #8a5a2b; --bronze-bg: #f5ede1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bronze: #d4a06a; --bronze-bg: #211910; } }
:root[data-theme="dark"] { --bronze: #d4a06a; --bronze-bg: #211910; }
.ceremony h2 { text-wrap: balance; }
.plaques { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.plaque {
  min-width: 0; padding: 14px 16px 12px; border: 2px solid var(--bronze); border-top: 6px solid var(--team, var(--bronze));
  border-radius: var(--radius); background: var(--bronze-bg); display: flex; flex-direction: column; gap: 6px;
}
.plaque.mine { box-shadow: 0 0 0 2px var(--flag); }
.plaque p, .plaque h3, .plaque ul { margin: 0; }
.plaque-class { font: 600 0.75rem var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.plaque-name { font: 800 1.6rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--fg); }
.plaque-name .player-link { font: inherit; text-transform: inherit; letter-spacing: inherit; color: var(--fg); }
.plaque-pos { font: 600 0.9rem var(--label); letter-spacing: 0.04em; color: var(--muted); }
.plaque-cite { font-style: italic; line-height: 1.45; }
.plaque ul.honors { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.plaque ul.honors li { border-color: var(--bronze); color: var(--bronze); }
.plaque-ranks { padding: 0; list-style: none; font: 600 0.85rem var(--label); letter-spacing: 0.03em; }
.plaque-ranks li::before { content: "▲ "; color: var(--bronze); }
@media (max-width: 600px) { .plaques { grid-template-columns: 1fr; } }

/* How to Play: one guide per level, in sections that open and close. */
.guide { display: grid; gap: 8px; max-width: 760px; }
.guide-lead { margin: 0 0 6px; font-size: 1.02rem; }
.pager-panel > .guide-lead { margin: 4px 0 2px; }
.guide details { border: 1px solid var(--line); border-left: 4px solid var(--turf); border-radius: var(--radius); background: var(--bg); }
.guide summary { padding: 10px 14px; cursor: pointer; font: 800 1.05rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.guide details[open] summary { border-bottom: 1px dashed var(--line); }
.guide ul, .guide ol { margin: 0; padding: 10px 14px 12px 32px; display: grid; gap: 6px; }

/* The playbook guide: a page for each formation, play, front and call, grouped the way the call sheet groups them. */
.guide-side { flex-wrap: wrap; }
.guide-mine { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 0.9rem; }
.guide-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.guide-top .guide-side, .guide-top .guide-mine { margin: 0; }
.playbook-guide .pager-panel { display: grid; gap: 10px; align-content: start; }
.guide-kind-head { margin: 6px 0 0; font: 700 0.78rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.guide-card { display: grid; gap: 6px; padding: 10px 14px 12px; border: 1px solid var(--line); border-left: 4px solid var(--turf);
  border-radius: var(--radius); background: var(--bg); min-width: 0; }
.guide-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.guide-card h4 { margin: 0; font: 800 1.05rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.guide-card p { margin: 0; max-width: 70ch; }
.guide-kind { font: 600 0.72rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.guide-versions { color: var(--muted); font-size: 0.84rem; }
.guide-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 2px 0 0; }
.guide-facts dt { font: 600 0.74rem var(--label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.guide-facts dd { margin: 0; min-width: 0; font-size: 0.92rem; }
.guide-matchups { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.guide-edge { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.84rem; white-space: nowrap; }
.guide-edge b { font-variant-numeric: tabular-nums; }
.guide-edge.good { border-color: var(--turf); background: color-mix(in srgb, var(--turf) 14%, transparent); }
.guide-edge.bad { border-color: var(--flag); background: color-mix(in srgb, var(--flag) 12%, transparent); }
.guide-deck { display: grid; gap: 10px; min-width: 0; }
.guide-place { display: none; }
/* On a phone the pages are a deck: one to the screen, swiped across (past the last, on to the next group), each
   scrolling on its own if it runs long. Its kind is on the page, so the kind headings go. */
@media (max-width: 600px) {
  /* (The playbook open from the menu takes the screen: the masthead and heading go, the rows above it close up.) */
  .shell:has(.playbook-guide) { padding-block: 8px 10px; gap: 8px; }
  .shell:has(.playbook-guide) > .masthead { display: none; }
  .season-panel:has(> .playbook-guide) { gap: 8px; padding: 10px 12px; }
  .season-panel:has(> .playbook-guide) > h2 { display: none; }
  .guide-top:has(+ .playbook-guide) { margin: 0; }
  .playbook-guide .pager { gap: 6px; }
  .playbook-guide .pager-panel, .playbook-guide .pager-panel:not(.on) { display: flex; flex-direction: column; overflow-y: hidden; }
  .guide-deck { display: flex; flex: 1 1 auto; min-height: 0; gap: 12px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; }
  .guide-deck::-webkit-scrollbar { display: none; }
  .guide-deck > .guide-kind-head { display: none; }
  .guide-deck > .guide-card { display: flex; flex-direction: column; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
    overflow-y: auto; overscroll-behavior-y: contain; }
  .guide-deck > .guide-card > * { flex: none; }
  /* (Set tight so a page fits the screen: each fact's label runs in ahead of it, the matchups flowing on beside it.) */
  .guide-deck > .guide-card { gap: 5px; padding: 8px 12px 6px; }
  .guide-deck .guide-card p { font-size: 0.9rem; line-height: 1.35; }
  .guide-deck .guide-card .guide-versions { font-size: 0.8rem; }
  .guide-deck .guide-facts { display: block; }
  .guide-deck .guide-facts dt { float: left; clear: left; margin-right: 6px; padding-top: 3px; font-size: 0.68rem; line-height: 1.2; }
  .guide-deck .guide-facts dd { margin: 0 0 6px; font-size: 0.88rem; line-height: 1.3; }
  .guide-deck .guide-facts dd::after { content: ""; display: table; clear: both; }
  .guide-deck .guide-matchups { display: block; }
  .guide-deck .guide-edge { display: inline-block; margin: 0 2px 3px 0; padding: 0 6px; font-size: 0.8rem; }
  .guide-deck .guide-place { display: block; margin-top: auto; padding-top: 4px; text-align: center; color: var(--muted);
    font: 600 0.74rem var(--label); letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
  .guide-deck .guide-place::before { content: "‹  "; }
  .guide-deck .guide-place::after { content: "  ›"; }
}
@media (max-width: 420px) {
  .guide-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-facts dd { margin-bottom: 6px; }
}

/* In a game: with the Guide on, the plays are pages to read (a dashed edge), and a tapped one opens over the sheet. */
.call-sheet.reading .calls .call { border-style: dashed; }
#guide-mode[aria-pressed="true"] { color: var(--score); }
.staff.reading { align-items: center; }
.staff .reading-hint { flex: 1 1 auto; min-width: 0; color: var(--score); font: 700 min(0.82rem, 3.6vw) var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.guide-pop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgb(0 0 0 / 0.45); }
.guide-pop-body { display: grid; gap: 12px; width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 14px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.35); }
.guide-pop-body .guide-card { border-left-width: 4px; }

/* Help notes lead their section: the panel's own gap spaces them, so no paragraph margins on top. */
.season-panel > p.hint { margin: 0; }

/* College standings and scores: the all / ranked / conference picker. */
.team-filter { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.team-filter select { width: auto; max-width: 100%; min-width: 0; }
.poll-rank { font: 700 0.75rem var(--label); color: var(--muted); margin-right: 4px; font-variant-numeric: tabular-nums; }
.scores-empty { margin: 12px 0; }

/* Power rankings: rank, the move since last week, the team and its week, the record. */
.standings-mode { justify-self: start; }
/* On a phone the three views share the row evenly, their names wrapping inside their buttons, so none runs off the card. */
@media (max-width: 600px) {
  .standings-mode { display: flex; justify-self: stretch; }
  .standings-mode button { flex: 1 1 0; min-width: 0; padding-inline: 6px; font-size: min(0.95rem, 4.2vw); overflow-wrap: anywhere; }
}
.power-list { list-style: none; margin: 0; padding: 0; display: grid; }
.power-list > li {
  display: grid; grid-template-columns: 2.2em 3em minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px;
  padding: 8px 6px; border-bottom: 1px solid var(--line);
}
.power-list > li.mine { background: color-mix(in srgb, var(--amber) 16%, transparent); }
.power-list > li.power-gap { display: block; padding: 2px 6px; border: 0; color: var(--muted); text-align: center; }
.power-rank { font: 800 1.35rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.rank-move { font: 700 0.85rem var(--label); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The arrows are drawn in CSS, so up and down are the same size in every font. (Not .up/.down: those name the game screen's down-and-distance.) */
.rank-move.rise::before, .rank-move.fall::before { content: ""; display: inline-block; margin-right: 3px; border: 5px solid transparent; vertical-align: 1px; }
.rank-move.rise::before { border-bottom: 7px solid currentColor; border-top-width: 0; }
.rank-move.fall::before { border-top: 7px solid currentColor; border-bottom-width: 0; }
.rank-move.rise { color: var(--score); }
.rank-move.fall { color: var(--danger); }
.power-team { display: grid; gap: 1px; min-width: 0; }
.power-name { font-weight: 600; }
.power-note { font-size: 0.85rem; color: var(--muted); }
.power-record { font-variant-numeric: tabular-nums; font-weight: 600; }

/* The poll's move since last week (same arrows as the power rankings). */
table.stats td.move-col { text-align: left; padding-left: 0; }
.rank-move.new { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--flag); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Title races on the standings: who's clinched, who controls their own path, who needs help, who's out. */
table.stats td.race { text-align: left; }
.race-tag { display: inline-block; padding: 0 6px; border-radius: 999px; font: 600 0.7rem/1.6 var(--label); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.race-tag.clinched { background: var(--score); border-color: var(--score); color: var(--bg); }
.race-tag.control { border-color: var(--score); color: var(--score); }
.race-tag.out { opacity: 0.6; }
.race-legend { line-height: 1.9; }
/* The narrowest phones: standings keep W, L, T, Pct, Div and the race by dropping Diff and some cell padding. */
@media (max-width: 359.98px) {
  table.stats .hide-xs { display: none; }
  .standings-grid table.stats th, .standings-grid table.stats td { padding-inline: 2px; }
}

/* Power rank by week: one team's line, No. 1 at the top. */
.power-chart { margin: 4px 0 14px; display: grid; gap: 4px; }
.power-chart figcaption { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.power-chart svg { width: 100%; height: auto; max-width: 640px; display: block; }
.power-chart .grid { stroke: var(--line); stroke-width: 1; }
.power-chart .tick { fill: var(--muted); font: 600 11px var(--label); }
.power-chart .line { fill: none; stroke: var(--turf); stroke-width: 2.5; stroke-linejoin: round; }
.power-chart .dot { fill: var(--surface); stroke: var(--turf); stroke-width: 2; }
.power-chart .dot.now { fill: var(--amber); stroke: var(--amber); }
button.power-name { all: unset; cursor: pointer; font-weight: 600; }
button.power-name:hover, button.power-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Title race note on Home; poll beside power in college power rankings. */
button.race-note {
  all: unset; box-sizing: border-box; cursor: pointer; justify-self: start; max-width: 100%;
  padding: 6px 10px; border-left: 3px solid var(--turf); border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--turf) 12%, transparent); font-weight: 600; font-size: 0.92rem;
}
button.race-note:hover, button.race-note:focus-visible { background: color-mix(in srgb, var(--turf) 22%, transparent); }
.power-poll { font-size: 0.8rem; color: var(--muted); display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.poll-tag { font: 700 0.68rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; padding: 0 6px; border-radius: 999px; border: 1px solid currentColor; }
.poll-tag.over { color: var(--danger); }
.poll-tag.under { color: var(--score); }
.power-disputes { margin: 0 0 10px; font-size: 0.92rem; }

/* Playoff picture (pro) and bowl projections (college). */
.projection-mine { margin: 0 0 6px; padding: 6px 10px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); font-weight: 600; }
table.picture tr.cut-line td { text-align: left; padding-top: 12px; font: 600 0.72rem var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed var(--line); }
table.picture tr.out th, table.picture tr.out td { color: var(--muted); }
table.picture td.picture-note { width: 38%; text-align: left; font-size: 0.82rem; color: var(--muted); white-space: normal; }
.bowl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }
.bowl-list li { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.bowl-list li.playoff { border-color: var(--amber); border-left-width: 4px; }
.bowl-list li.mine { box-shadow: inset 3px 0 0 var(--score); background: color-mix(in srgb, var(--amber) 10%, var(--bg)); }
.bowl-name { font: 700 0.85rem var(--label); letter-spacing: 0.05em; text-transform: uppercase; }
.bowl-teams { display: grid; gap: 2px; }
.bowl-teams > .hint { font-size: 0.75rem; }
.bowl-team { min-width: 0; overflow-wrap: anywhere; }
.bowl-head { margin: 10px 0 6px; font: 700 0.8rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bowl-head:first-child { margin-top: 0; }
.bowl-head .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Names files: load one on the setup screen, or import / export in a season. */
.names-setup > summary { cursor: pointer; font: 700 0.85rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--turf); }
.names-setup[open] > summary { margin-bottom: 10px; }
.names-file { display: grid; gap: 10px; }
.names-file .hint { margin: 0; }
label.file-pick {
  position: relative; display: inline-block; overflow: hidden; cursor: pointer;
  border: 1px solid var(--turf); border-radius: var(--radius); color: var(--turf); padding: 10px 22px;
  font: 800 1.1rem var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}
label.file-pick:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
label.file-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.names-text { width: 100%; min-width: 0; font: 0.78rem/1.4 var(--mono); padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); resize: vertical; }
.names-loaded { margin: 0; font-weight: 600; }
.import-summary p { margin: 0; }
.import-problems { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }
.import-banner { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border-left: 3px solid var(--turf); border-radius: var(--radius); background: color-mix(in srgb, var(--turf) 12%, var(--surface)); }

/* The full game: where the free season stops, the purchase and Restore. Scoreboard amber, like the app icon. */
.unlock { display: grid; gap: 10px; padding: 14px 16px; border-left: 3px solid var(--amber); border-radius: var(--radius); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.unlock.compact { padding: 10px 14px; }
.unlock h3 { margin: 0; color: var(--fg); font: 800 1.35rem/1.15 var(--display); letter-spacing: 0.02em; text-wrap: balance; }
.unlock-price { display: block; font: 600 0.9rem var(--body); letter-spacing: 0; text-transform: none; }
.unlock .eyebrow, .unlock .hint, .unlock .warn { margin: 0; }
.unlock-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.menu-card .unlock { padding: 0; border: 0; background: none; }
.unlock-offers button { min-width: 12rem; }
.unlock-offers button.secondary { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 55%, transparent); }
/* The tester build says what it is on every screen (Unlocks.Banner). */
.tester-banner { margin: 0; padding: 6px 12px; border-radius: var(--radius); background: var(--danger); color: var(--chalk); font: 700 0.8rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
button.quiet.inline { padding: 0; margin: 0 0 0 6px; }

/* Roster: a position filter and an order, and headings that sort (a second tap reverses). */
.roster-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
button.sort-head { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
button.sort-head:hover, button.sort-head.on { color: var(--turf); text-decoration: underline; text-underline-offset: 3px; }
.pos-tag { font: 700 0.75rem var(--label); letter-spacing: 0.06em; color: var(--muted); margin-right: 2px; }

/* The offense's tempo: the staff's read, or hurry up / normal / milk it for the rest of the game. */
.tempo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.segmented.tempo button { padding: 6px 10px; font-size: 0.8rem; }

/* Settings: one group per topic. */
.settings { display: grid; gap: 16px; }
.settings h2 { margin: 0; }
.settings-group { display: grid; gap: 8px; justify-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.settings-group h3 { margin: 0; color: var(--fg); font: 800 1.1rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.settings-group .hint { margin: 0; }
.owned { margin: 0; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 8px; }
/* The Apps by DG badge (web only): the studio's own colors, a white card in light mode and its dark card in dark mode. */
.apps-by-dg { --adg-card: #ffffff; --adg-ink: #17181c; --adg-by: #5a5c63; --adg-edge: #d8dad3;
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border: 1px solid var(--adg-edge); border-radius: 12px;
  background: var(--adg-card); text-decoration: none; }
.apps-by-dg:hover { border-color: #db3a6f; }
.apps-by-dg:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.adg-mark { display: block; width: 32px; height: 32px; flex: none; }
.adg-name { font: 400 1.15rem/1 Rubik, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.02em; color: var(--adg-ink); white-space: nowrap; }
.adg-name b { font-weight: 700; }
.adg-by { color: var(--adg-by); }
.adg-dg { color: #db3a6f; font-weight: 800; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .apps-by-dg { --adg-card: #17181c; --adg-ink: #ffffff; --adg-by: #b8bac2; --adg-edge: #2c2e34; } }
:root[data-theme="dark"] .apps-by-dg { --adg-card: #17181c; --adg-ink: #ffffff; --adg-by: #b8bac2; --adg-edge: #2c2e34; }
/* A file picker that looks like a link (Restore a league from a backup). */
label.file-link { position: relative; display: inline-block; overflow: hidden; cursor: pointer; color: var(--turf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
label.file-link input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
label.file-link:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.menu-card label.file-link { text-align: center; }

/* Defending a kick: three full-width choices, each with what it does underneath. */
.choices.kick-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
/* A question on a short screen (a phone on its side): the heading and the gaps slim so the choices are on screen. */
@media (max-height: 640px) {
  .callboard > .question { margin: 0; font-size: 1.15rem; }
  .callboard > .hint { margin: 0; }
  .kick-choices .choice { padding: 8px 12px; }
}
.kick-choices .choice { display: grid; gap: 3px; width: 100%; text-align: left; justify-items: start; }
.kick-choices .choice .call-note { font-size: 0.82rem; }

/* The call sheet: a kind of play heads its row of calls (Inside, Outside...; Quick, Deep...); the staff's picks stand out. */
.call-sub { grid-column: 1 / -1; margin: 6px 0 0; font: 700 0.72rem var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.call-sub:first-child { margin-top: 0; }
.call.pick-call { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
/* The playbook for the rest of the game, over the staff's picks: one slim row. */
.playbook-pick { display: flex; flex: none; align-items: center; gap: 8px; margin: 0; }
.playbook-pick .eyebrow { margin: 0; }
.playbook-pick select { flex: 1 1 auto; min-width: 0; max-width: 18rem; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: inherit; font: 600 0.82rem var(--label); }
/* The defense's playbook and the shell it shows, side by side in one slim row. */
.pick-row { display: flex; flex: none; gap: 12px; min-width: 0; }
.pick-row > .playbook-pick { flex: 1 1 auto; min-width: 0; }
.pick-row > .show-pick { flex: 0 1 auto; }
/* (On a phone the labels go and the two menus share the row: their options say what they are, "Jet motion", "Blitz look".) */
@container callboard (max-width: 479.98px) {
  .pick-row { gap: 8px; }
  .pick-row > .playbook-pick > .eyebrow { display: none; }
  .pick-row > .playbook-pick select { max-width: none; }
  .pick-row > .show-pick { flex: none; }
}

/* At the line: the two teams lined up, the look in words, the staff's read, and the choices. */
.line-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.line-step > .eyebrow { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-step .question { margin: 0; }
.look-diagram { margin: 0; }
.look-diagram svg { display: block; width: 100%; max-width: 30rem; max-height: 26vh; margin-inline: auto; border-radius: 6px; }
.look-turf { fill: var(--turf); }
.look-yard { stroke: var(--chalk); stroke-width: 0.12; opacity: 0.35; }
.look-los { stroke: var(--chalk); stroke-width: 0.2; stroke-dasharray: 0.8 0.6; opacity: 0.8; }
.look-o { fill: none; stroke: var(--chalk); stroke-width: 0.3; }
.look-d { fill: none; stroke: var(--amber); stroke-width: 0.4; stroke-linecap: round; }
.look-line { margin: 0; font: 600 0.92rem var(--label); }
.line-choices .choice span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* The options at the line, two to a row so the look and every option fit on one screen (an odd count: the first,
   snap it or keep it, takes the whole top row). The staff's pick badge sits on the corner, as on the call sheet. */
.choices.line-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.line-choices > .choice:first-child:nth-last-child(2n+1) { grid-column: 1 / -1; }
.line-choices .choice { position: relative; padding: 9px 10px 8px; align-content: start; }
.line-choices .choice > span:first-child { font-size: 1rem; line-height: 1.15; }
.line-choices .choice .badge { position: absolute; top: 0; right: 8px; transform: translateY(-50%); padding: 1px 5px; font-size: 0.56rem; line-height: 1.1; }
.line-choices .choice .call-note { font-size: 0.76rem; line-height: 1.25; }
@media (min-height: 701px) { .line-step .look-diagram svg { max-height: 22vh; } }
@media (max-height: 700px) {
  /* (A short phone: the look, the staff's word and up to five options still on one screen.) */
  .line-step .look-diagram svg { max-height: 14vh; }
  .line-step { gap: 6px; }
  .line-step .advice { padding: 5px 10px; font-size: 0.8rem; line-height: 1.3; }
  .line-choices .choice { padding: 7px 8px 6px; }
  .line-choices .choice .call-note { justify-self: stretch; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-height: 600px) { .look-diagram svg { max-height: 20vh; } .line-step { gap: 6px; } .line-choices .choice { padding: 6px 10px; } }

/* ---------- swipe panels (Pager): tabs over panels; on a phone they fill the screen and swipe ---------- */
.pager { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-width: 0; }
.pager-head { display: flex; align-items: center; min-width: 0; border-bottom: 1px solid var(--line); }
.pager-head > .help-tip { margin: 0 2px 0 8px; }
.pager-tabs { position: relative; flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pager-tabs::-webkit-scrollbar { display: none; }
.pager-tabs button { flex: none; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer;
  padding: 8px 12px 6px; font: 700 0.9rem var(--label); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pager-tabs button.on { color: var(--fg); border-bottom-color: var(--amber); }
.pager-tabs button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.pager-track { min-width: 0; }
/* (A panel's rows take their content's height: in a panel shorter than its content, a row holding a scroll box
   such as a .table-wrap would otherwise shrink to nothing and hide its table.) */
.pager-panel { min-width: 0; grid-auto-rows: max-content; }
.pager-panel:not(.on) { display: none; }
@media (max-width: 600px) {
  .pager { height: var(--pager-fit, auto); }
  .pager-track { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none; }
  .pager-track::-webkit-scrollbar { display: none; }
  .pager-panel, .pager-panel:not(.on) { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; flex: 0 0 100%;
    scroll-snap-align: start; scroll-snap-stop: always;
    overflow-y: auto; overscroll-behavior-y: contain; }
  .pager .table-wrap { overscroll-behavior-x: contain; }
  .pager .feed { max-height: none; }
}
@media (min-width: 840px) {
  .pager.split { grid-template-rows: auto; }
  .pager.split .pager-tabs { display: none; }
  .pager.split .pager-head { justify-content: flex-end; border-bottom: 0; }
  .pager.split .pager-head:not(:has(> .help-tip)) { display: none; }
  .pager.split .to-game-day { display: none; }
  .pager.split .pager-track { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .pager.split .pager-panel { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
  .pager.split .pager-panel.span { grid-column: 1 / -1; }
  /* In a game the call sheet needs every line: the "?" sits in the call board's top corner, not on a row of its own. */
  .pager.booth.split { position: relative; }
  .pager.booth.split > .pager-head:has(> .help-tip) { position: absolute; z-index: 1; top: 10px; right: calc((100% - 16px) / 2.35 + 16px + 10px); }
  .pager.booth.split .call-sheet .sheet-head { padding-right: 28px; }
}
/* On a phone an open hub tab gets the screen: the team card and top story belong to Home. */
@media (max-width: 600px) {
  .season-head.on-tab, .top-story.on-tab { display: none; }
}
@media (max-width: 600px) {
  .shell.inner .masthead .tagline { display: none; }
}
/* A pager with a single panel is just a screen-filling scroll area: no tab row. */
.pager-tabs:has(> button:only-child) { display: none; }
.pager-head:has(> .pager-tabs > button:only-child) { justify-content: flex-end; border-bottom: 0; }
.pager-head:has(> .pager-tabs > button:only-child):not(:has(> .help-tip)) { display: none; }
.pager:has(> .pager-head > .pager-tabs > button:only-child):not(:has(> .pager-head > .help-tip)) { grid-template-rows: minmax(0, 1fr); }
/* A pager that fills the screen at every width (Home): the panels take the rest of the screen and scroll on their own. */
.pager.fill { height: var(--pager-fit, auto); }
@media (min-width: 601px) {
  .pager.fill .pager-track { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
  .pager.fill .pager-panel { min-height: 0; overflow-y: auto; }
}
@media (min-width: 840px) {
  .pager.fill.split { grid-template-rows: minmax(0, 1fr); }
  .pager.fill.split .pager-track { align-items: stretch; }
}

/* The main menu fits its panel at any size: the category tiles give up height (down to a slim bar), shedding their
   icons and lists on the way; only past that does the menu scroll. */
#home-menu.pager-panel.on { display: flex; flex-direction: column; align-content: normal; }
@media (max-width: 600px), (min-width: 840px) {
  #home-menu.pager-panel:not(.on) { display: flex; flex-direction: column; align-content: normal; }
}
.home-menu { --menu-gap: clamp(5px, 1.6vh, 14px); display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; overflow-y: auto; gap: var(--menu-gap); }
@media (max-height: 620px) { .home-menu { padding-block: 8px; } }
/* Game Day never gives up its matchup line: it keeps its full height and the tiles below give up theirs. */
.home-menu .game-day-tile { flex: none; min-height: 0; }
/* The four categories two by two (four across where the menu is wide): each tile gives up height as the screen
   shortens, its list of sections then its icon going before its name and status line would. */
.home-menu { container: menu / inline-size; }
.home-menu .cat-tiles { display: grid; flex: 0 1 auto; min-height: calc(2 * 44px + var(--menu-gap)); grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 170px); align-content: start; gap: var(--menu-gap); }
@container menu (min-width: 620px) { .home-menu .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 44px; } }
.home-menu .cat-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 0; overflow: hidden; padding: 12px 14px;
  container: cat / size; }
.cat-icon svg { display: block; width: 28px; height: 28px; fill: none; stroke: var(--score); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-tile.alert .cat-icon svg { stroke: var(--amber); }
/* The text gives way from the middle: when a tile is short of room (large text), the list of sections is what's cut,
   never the name or the status line under it. */
.cat-icon { flex: none; }
.cat-text { display: flex; flex-direction: column; flex: 0 1 auto; gap: 3px; min-width: 0; min-height: 0; }
.cat-text > * { flex: none; }
.cat-text > .cat-list { flex: 0 1 auto; min-height: 0; }
.home-menu .cat-tile .tile-name { font-size: 1.3rem; }
.cat-list { font-size: 0.78rem; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.home-menu .cat-tile .tile-note { font-size: 0.85rem; line-height: 1.25; color: color-mix(in srgb, var(--fg) 80%, var(--muted));
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
@container cat (max-width: 150px) { .home-menu .cat-tile .tile-name { font-size: 1.1rem; } .home-menu .cat-tile .tile-note { font-size: 0.8rem; } }
.home-menu .cat-tile.alert .tile-note { color: var(--flag); }
@container cat (max-height: 128px) { .cat-list { -webkit-line-clamp: 1; line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; } }
@container cat (max-height: 104px) { .cat-icon { display: none; } .cat-text { margin-block: auto; } }
@container cat (max-height: 76px) { .cat-list { display: none; } }
@container cat (max-height: 50px) { .home-menu .cat-tile .tile-name { font-size: 1.05rem; } .home-menu .cat-tile .tile-note { font-size: 0.75rem; } }
.home-menu .cat-tile { padding-block: clamp(4px, 1.4vh, 12px); }
/* A short screen (a small phone, a small laptop, or any phone on its side): Game Day slims, and the logo and the
   page's padding shrink. */
@media (max-height: 620px) {
  .home-menu .game-day-tile { padding-block: 6px; gap: 0; }
  .home-menu .game-day-tile .tile-name { font-size: 1.25rem; }
  .shell.inner .masthead .tagline { display: none; }
  .shell:has(.home-pager) { padding-block: 8px 10px; gap: 10px; }
  .logo-mark { height: 2.6rem; }
}
/* Recruiting on a phone: the week's numbers in a tight two-by-two block, so the boards get the room. */
@media (max-width: 600px) {
  .recruit-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin-bottom: 0; font-size: 0.85rem; line-height: 1.3; }
  .recruit-head .news-kind { margin-right: 2px; }
  .recruit-msg { margin: 4px 0 0; font-size: 0.85rem; }
}
@media (max-width: 600px) {
  /* The filters in one row; each choice names itself ("All positions", "3+ ★", "OVR first"), so the labels can go. */
  .recruit-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; position: relative; }
  .recruit-filters select { width: 100%; }
  .recruit-filters .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .recruit-filters select { min-width: 0; padding: 6px 4px 6px 8px; font-size: 0.82rem; }
}
/* The public web page's way to the apps: links that look like the buy buttons. */
a.button.primary, a.button.secondary { display: inline-block; text-decoration: none; }
.get-app { align-items: center; }

/* ---------- the season's way around: Home and the four categories ----------
   Size classes: compact (a phone, up to 600 wide) gets a bar along the bottom; anything wider (a tablet, an unfolded
   Fold, a phone on its side, a desktop) a rail down the left. Expanded (840 and up) also splits Home in two. */
.hub-nav { --nav-h: 60px; position: fixed; z-index: 20; inset: auto 0 0 0; display: flex; justify-content: space-around;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.hub-nav button { position: relative; flex: 1 1 0; max-width: 110px; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px;
  border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 2px; font: 700 0.72rem/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.hub-nav .nav-icon { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 14px; }
.hub-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hub-nav button.on { color: var(--fg); }
.hub-nav button.on .nav-icon { background: color-mix(in srgb, var(--amber) 26%, transparent); }
.hub-nav button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; border-radius: 8px; }
.hub-nav .tab-dot { position: absolute; top: 5px; left: calc(50% + 10px); box-shadow: 0 0 0 2px var(--surface); }
/* (Room at the bottom of the page for the bar, so the last of it isn't under the bar.) */
.shell.inner:has(> .hub-nav) { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 10px); }
@media (min-width: 601px) {
  .hub-nav { inset: 0 auto 0 0; width: 84px; flex-direction: column; justify-content: flex-start; gap: 6px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 4px calc(14px + env(safe-area-inset-bottom, 0px)) calc(4px + env(safe-area-inset-left, 0px));
    border-top: 0; border-right: 1px solid var(--line); }
  .hub-nav button { flex: none; max-width: none; min-height: 56px; }
  body:has(.hub-nav) { padding-left: calc(84px + env(safe-area-inset-left, 0px)); }
  .shell.inner:has(> .hub-nav) { padding-bottom: 16px; }
}
/* A short rail (a phone on its side): the five a little closer. */
@media (min-width: 601px) and (max-height: 420px) {
  .hub-nav { gap: 0; padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
  .hub-nav button { min-height: 50px; }
}
/* In a season the logo is the way to your leagues; the tagline can go. */
.shell.inner:has(> .hub-nav) .masthead .tagline { display: none; }
/* Settings in a season's Help: no panel inside the panel. */
.settings-pager .settings { gap: 12px; }
.settings-pager .settings > .settings-group:first-child { padding-top: 0; border-top: 0; }

/* The Weekly summary's way to Game Day (phones; side by side the menu's own tile is right there). */
.to-game-day { justify-self: start; margin-top: 4px; }

/* Before an exhibition is thrown away (Leave game, or the phone's Back): the question, floating along the bottom
   (out of the game screen's grid, so no layout moves). */
.leave-ask { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 14px; border: 2px solid var(--amber); border-radius: 10px; background: var(--surface); color: var(--fg);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.35); }
.leave-ask p { margin: 0; min-width: 0; flex: 1 1 220px; }
.leave-ask-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.leave-ask-buttons button { margin: 0; }

/* ---------- help: a "?" beside a heading or label that opens its explanation in a card ---------- */
.help-tip { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0 0 0 6px;
  vertical-align: middle; border: 1.5px solid var(--muted); border-radius: 50%; background: transparent; color: var(--muted);
  font: 700 0.8rem/1 var(--body); letter-spacing: 0; text-transform: none; cursor: pointer; position: relative; }
/* (A bigger target than it looks, for a thumb.) */
.help-tip::after { content: ""; position: absolute; inset: -10px; }
.help-tip:hover, .help-tip:focus-visible { border-color: var(--turf); color: var(--turf); }
.help-tip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.help-pop { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px)); max-height: 80vh; overflow-y: auto; display: grid; gap: 10px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35); text-align: left; }
.help-pop:focus { outline: none; }
.help-title { margin: 0; padding-right: 24px; font: 800 1.1rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.help-text { display: block; color: var(--fg); font: 400 0.95rem/1.5 var(--body); letter-spacing: 0; text-transform: none; }
.help-text p { margin: 0; }
.help-text p + p { margin-top: 8px; }
.help-ok { justify-self: start; }
/* A heading with its help beside it. */
.with-help { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }

/* Where the offense lines up, over a tab of plays: one slim row of buttons, the plays below filtered to it. */
.formation-row { display: flex; flex: none; align-items: center; gap: 8px; min-width: 0; }
.formation-row .eyebrow { margin: 0; }
.segmented.formation { flex: 1 1 auto; min-width: 0; max-width: 26rem; }
.segmented.formation button { flex: 1 1 0; min-width: 0; padding: 4px 6px; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-none { grid-column: 1 / -1; margin: 6px 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 600px), (max-height: 500px) {
  .formation-row .eyebrow { display: none; }
  .segmented.formation { display: flex; max-width: none; }
  .segmented.formation button { padding: 4px 3px; font-size: 0.72rem; }
}
@media (max-width: 600px) and (max-height: 600px) { .segmented.formation button { padding-block: 2px; } }
/* (With the formation row up, the plays' rows may slim a little further, so a full tab still fits on a short screen.) */
.call-sheet:has(> .formation-row) { --call-floor: 24px; --call-gap: 6px; }
@media (max-height: 700px) { .call-sheet:has(> .formation-row) { gap: 6px; } }
@media (max-width: 600px) and (max-height: 700px) { .call-sheet:has(> .formation-row) { --call-floor: 23px; } }
@media (max-height: 600px) { .call-sheet:has(> .formation-row) { --call-floor: 23px; --call-gap: 5px; } }
/* (The defense's personnel row over the Multiple front's eight pressures: the rows of the sheet a little closer on short screens.) */
@media (max-height: 560px) { .call-sheet:has(> .package-row) { gap: 4px; } }
@media (max-height: 560px) { .segmented.formation button { padding-block: 0; line-height: 1.25; } }
