/* ==========================================================================
   Styled after nfl.com: light ground, navy chrome, and matchups rendered as
   split team-colour bars. The tier letter lives in the centre badge where
   nfl.com puts its play button.
   ========================================================================== */

:root {
  --navy: #013369;
  --navy-deep: #012348;
  --red: #d50a0a;

  --page: #eef1f5;
  --card: #ffffff;
  --ink: #14171f;
  --ink-2: #545c6b;
  --ink-3: #8d95a4;
  --line: #dfe4ec;

  /* Tier-list palette, tuned for black lettering on a light page. */
  --s: #e8474c;
  --a: #f5883c;
  --b: #f6c945;
  --c: #5cc98a;
  --d: #64a6e0;

  /* The same hues, darkened until a thin bar clears 3:1 on the guide panel
   * (#fafbfd). The tier chips are large blocks carrying black text and are
   * tuned for that; at bar width the lighter steps drop to 1.6:1 and vanish. */
  --s-mark: #e8474c;
  --a-mark: #d07433;
  --b-mark: #a7892f;
  --c-mark: #489d6c;
  --d-mark: #5790c3;

  --radius: 12px;
  --gutter: 16px;

  /* Heavy italic is what makes a scoreboard read as a scoreboard. */
  --sport: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
           'Arial Black', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
/* Any explicit display beats the browser's [hidden] rule, so el.hidden silently
   stops working. This restores it for everything. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
}

/* ---------- beta bar ----------
   Slim and above the sticky header, so it scrolls away and never costs a
   phone any of the list. Wraps rather than overflowing on a narrow screen. */
.betabar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  padding: calc(env(safe-area-inset-top) + 5px) var(--gutter) 5px;
  background: var(--navy-deep); font-size: 12.5px; line-height: 1.3;
}
.betabar a { color: #dbe6f5; font-weight: 600; text-decoration: none; }
.betabar a:hover { color: #fff; text-decoration: underline; }
/* With the bar above it, the header no longer touches the notch. */
.betabar:not([hidden]) + .topbar { padding-top: 12px; }

/* ---------- header ---------- */
.topbar {
  display: flex; flex-direction: column; align-items: stretch;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: inset 0 -3px 0 var(--red);
  position: sticky; top: 0; z-index: 10;
}
.topbar-row { display: flex; align-items: center; gap: 9px; padding-bottom: 7px; }
/* The mark is an emoji until a designed one exists: no file to ship, nothing
   to fall back from, and it is nobody's trademark. */
.mark { flex: 0 0 auto; font-size: 30px; line-height: 1; }
.topbar-main { flex: 1; min-width: 0; }
.topbar h1 {
  /* Sized to stay on one line beside the mark and the buttons. */
  margin: 0; flex: 1; min-width: 0; color: #fff; font-family: var(--sport);
  font-size: 21px; font-style: italic; font-weight: 900;
  letter-spacing: -.02em; text-transform: uppercase; line-height: 1.05;
}
/* Full width of its own, so the descriptor fits on one line. */
.sub { margin: 0 0 11px; color: #a9c0de; font-size: 12.5px; }
.icon-btn {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2); cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .22); }
.icon-btn.spin svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- week picker ---------- */
.weekbar { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; }
.step {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 19px; line-height: 1; cursor: pointer; font-family: inherit;
}
.step:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.step:disabled { opacity: .3; cursor: default; }
.weekpick {
  flex: 1; min-width: 0; height: 36px; padding: 0 10px;
  border-radius: 9px; font-family: inherit; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-appearance: none; appearance: none; text-align: center;
}
.weekpick option { background: #fff; color: var(--ink); }

main { padding: var(--gutter); max-width: 720px; margin: 0 auto; }

/* ---------- matchup bar ----------
   Away on the left in its colour, home on the right in its, tier letter in a
   badge straddling the seam. Text colour is chosen per team from luminance,
   because a few primaries (New Orleans gold) are far too light for white. */
.match {
  display: flex; position: relative; cursor: pointer;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 30, 50, .16), 0 6px 14px -8px rgba(20, 30, 50, .3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.match:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(20,30,50,.2), 0 10px 20px -8px rgba(20,30,50,.34); }
.side {
  flex: 1 1 50%; min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; background: var(--team); color: var(--ink-on);
}
.side.right { justify-content: flex-end; }
.abbr {
  font-family: var(--sport); font-size: 23px; font-weight: 900; font-style: italic;
  letter-spacing: -.015em; line-height: 1; white-space: nowrap;
}
/* A light disc behind every mark. Sitting logos straight on the team colour
   looks right until a mark shares that colour — the Rams' navy on navy and the
   Giants' blue on blue both disappeared outright. A disc costs a little of the
   league site's flatness and is legible for all 32. */
.mlogo {
  width: 32px; height: 32px; flex: 0 0 auto;
  background: #f4f7fb; border-radius: 50%; padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
/* Every logo box, whatever the source file's size or aspect: a fixed square
   the image is fitted inside, so a wide mark and a tall one sit identically.
   The abbreviation chip stands in for a missing or switched-off logo in the
   same box. */
.mlogo, .tlogo {
  display: block; aspect-ratio: 1; object-fit: contain; object-position: center;
}
.logo-abbr {
  display: grid; place-items: center; overflow: hidden; color: var(--ink);
  font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 11px; letter-spacing: -.02em;
}
/* A separator, not a third badge. It used to match the logos for weight, which
 * made the seam read as the most important thing in the row. */
.badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 999px; z-index: 2;
  background: #fff; color: var(--ink-2);
  display: grid; place-items: center;
  /* Not the display face. "@" in a heavy italic is a wrong-looking glyph: the
   * tail is sheared and the bowl never closes under the a. The UI sans draws
   * it the way everyone has read it a million times in an email address. */
  font-family: inherit; font-style: normal; font-weight: 600;
  font-size: 13px; line-height: 1; padding-bottom: 1px;
  box-shadow: 0 0 0 2px var(--page), 0 1px 3px rgba(0, 0, 0, .25);
}
.kick {
  padding: 7px 14px 9px; font-size: 12px; color: var(--ink-3);
  display: flex; align-items: baseline; gap: 10px;
}
/* Only the metadata flexes. This used to read `span:not(.gotw)`, which also
 * matched the score and let it stretch — so the kickoff time sat further right
 * on every row without a "game of the week" label to absorb the slack. */
.kickmeta { flex: 1; min-width: 0; }
/* A fixed column so three-digit scores do not shunt the time along either. */
.rowscore { flex: 0 0 52px; }
/* The score sits ahead of the kickoff time so a tier's ordering is legible. */
/* "/100" is muted and small; the number carries the weight. */
.rowscore { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.rowscore b {
  font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.gotw {
  font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--red); white-space: nowrap;
}
.gamewrap { background: var(--card); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.gamewrap.dim { opacity: .68; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--red); margin-right: 6px; vertical-align: 1px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- tier blocks ---------- */
.section { margin-bottom: 26px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px;
}
.section-head h2 {
  margin: 0; font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2);
}
.section-head .count { font-size: 12px; color: var(--ink-3); }
.tier { display: flex; gap: 9px; margin-bottom: 9px; align-items: stretch; }
.tier-label {
  flex: 0 0 46px; border-radius: 10px; background: var(--grade);
  display: grid; place-items: center; color: #10131a;
  font-family: var(--sport); font-size: 26px; font-weight: 900; font-style: italic;
}
.tier-games { flex: 1; min-width: 0; display: grid; gap: 8px; }
.tier-games .gamewrap { margin-bottom: 0; }
/* What the tier means, said once above its games rather than implied by a
 * letter on a coloured rail. */
.tier-head { font-size: 12px; color: var(--ink-2); padding: 1px 2px 0; }
.tier-head b {
  font-family: var(--sport); font-style: italic; font-weight: 900;
  color: var(--ink); letter-spacing: .01em;
}
/* An empty tier is a result. A missing row just looks like a bug. */
.tier-empty .tier-label { opacity: .34; }
.tier-none {
  background: var(--card); border-radius: 10px; padding: 13px 14px;
  font-size: 12.5px; color: var(--ink-3); font-style: italic;
}
.empty { color: var(--ink-3); font-size: 14px; padding: 8px 2px; }

/* ---------- viewing guide ---------- */
.guide { padding: 16px; border-top: 1px solid var(--line); background: #fafbfd; }
.guide-warn { color: var(--ink-2); font-size: 13px; }
.guide-warn b { color: var(--ink); font-weight: 650; }
.btn {
  display: block; margin-left: auto; margin-right: auto;
  margin-top: 12px; padding: 9px 15px; border-radius: 9px;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; font-family: inherit;
}
.btn:hover { background: #024a94; }
.guide-score {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.guide-score .n {
  font-family: var(--sport); font-style: italic; font-size: 28px; font-weight: 900;
  color: var(--grade, var(--navy)); letter-spacing: -.02em;
}
.guide-score .of { font-size: 12.5px; color: var(--ink-3); }
.guide-facts { display: grid; gap: 13px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact-label {
  flex: 0 0 92px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 3px; font-weight: 700;
}
.fact-value { flex: 1; font-size: 15px; font-weight: 600; }
.fact-note { font-size: 12.5px; color: var(--ink-2); font-weight: 400; margin-top: 1px; }
/* Excitement over the game. One series, so one colour, and a neutral one: the
 * lettered axis carries which band a stretch is in, and a second encoding of
 * the same thing fights it rather than reinforcing it. */
.spark-wrap { display: flex; gap: 7px; margin-top: 4px; }
/* Ticks are positioned, not spaced evenly: the middle one marks the even
 * share, which is the only height on this chart worth naming. An arbitrary
 * 50% tick collided with it whenever a game's peak was twice its average. */
.spark-y {
  position: relative; width: 14px; height: 96px;
  font-size: 9.5px; color: var(--ink-3);
  text-align: right; font-variant-numeric: tabular-nums;
}
.spark-y span {
  position: absolute; right: 0; line-height: 1; transform: translateY(50%);
  font-family: var(--sport); font-style: italic; font-weight: 900; font-size: 10px;
}
.spark-plot { flex: 1; min-width: 0; }
.spark {
  position: relative; display: flex; align-items: flex-end; gap: 2px;
  height: 96px; border-bottom: 1px solid var(--line);
}
/* Recessive gridlines, behind the bars. */
/* The ceiling. Solid like the band rules — a dashed line on a chart that also
 * carries real thresholds reads as one more threshold. */
.spark::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  border-top: 1px solid var(--line); pointer-events: none;
}
.spark i {
  position: relative; flex: 1; min-height: 2px;
  background: var(--navy); opacity: .78; border-radius: 4px 4px 0 0;
}
/* Tier boundaries. Solid hairlines: these are real thresholds, and a dashed
 * rule on a chart that also has thresholds is unreadable. */
.spark-band {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 1px solid var(--line); pointer-events: none;
}
.spark-axis {
  display: flex; gap: 2px; font-size: 10px; color: var(--ink-3);
  margin-top: 5px; letter-spacing: .04em;
}
.spark-axis span { flex: 1; }
.spark-note { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- full spoiler ---------- */
.spoil-toggle { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.spoil-toggle .btn { background: var(--red); }
.spoil-toggle .btn:hover { background: #b00808; }
.spoil { margin-top: 14px; font-size: 13.5px; }
.spoil h4 {
  margin: 16px 0 7px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
.spoil h4:first-child { margin-top: 0; }
.h4note { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .85; }
.finalscore {
  font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 22px; letter-spacing: -.02em;
}
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; padding: 4px 9px; border-radius: 999px;
  background: #eef2f8; border: 1px solid var(--line); color: var(--ink);
}
.tag.bad { color: var(--ink-2); }
.spoil table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spoil td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spoil td.when { color: var(--ink-3); white-space: nowrap; width: 62px; font-variant-numeric: tabular-nums; }
.spoil td.sc { white-space: nowrap; width: 54px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.spoil .scroll { max-height: 260px; overflow-y: auto; border-radius: 8px; }
.evtag {
  display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  background: #e7eefa; color: var(--navy); margin-right: 4px; white-space: nowrap;
}
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric { background: #f3f6fa; border-radius: 8px; padding: 9px 11px; }
.metric b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.metric span { font-size: 11px; color: var(--ink-3); }

/* ---------- misc ---------- */
.error {
  background: #fdecec; border: 1px solid #f5c2c2; color: #8c1010;
  padding: 14px; border-radius: 10px; font-size: 14px;
}
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px var(--gutter) 28px; max-width: 720px; margin: 0 auto;
  color: var(--ink-3); font-size: 12px; border-top: 1px solid var(--line);
}
.skeleton { display: grid; gap: 8px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, #e7ebf1, #f4f6fa, #e7ebf1); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-row { height: 58px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- about ---------- */
.prose { padding: 22px var(--gutter) 8px; max-width: 640px; margin: 0 auto; }
.prose h2 {
  font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 19px; letter-spacing: -.01em; margin: 30px 0 10px; color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 13px; font-size: 15.5px; line-height: 1.55; color: #2b3240; }
.prose p b { color: var(--ink); font-weight: 680; }
.prose .lede {
  font-size: 17.5px; line-height: 1.45; font-weight: 600; color: var(--ink);
  border-left: 3px solid var(--red); padding-left: 14px; margin: 18px 0;
}
.prose .grades { list-style: none; margin: 0 0 14px; padding: 0; }
.prose .grades li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; font-size: 15px; color: #2b3240;
}
.prose .grades .g {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; color: #10131a;
  font-family: var(--sport); font-size: 18px; font-weight: 900; font-style: italic;
}
/* Its own full-width row under the footer's links. */
.foot-legal { flex: 1 0 100%; }
.foot-legal p { margin: 0 0 4px; }
.foot a { color: var(--navy); font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- week line ---------- */
.weekline {
  font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 2px 12px;
}

/* ---------- season team ranking ---------- */
.trow {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 11px;
  padding: 11px 14px; margin-bottom: 7px;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .1);
  border-left: 4px solid var(--team);
}
.trank {
  flex: 0 0 22px; text-align: center; color: var(--ink-3);
  font-family: var(--sport); font-style: italic; font-weight: 900; font-size: 15px;
}
.tlogo {
  flex: 0 0 auto; width: 34px; height: 34px;
  background: #f2f5fa; border-radius: 50%; padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.tmain { flex: 1; min-width: 0; }
.tname { font-size: 15px; font-weight: 640; letter-spacing: -.01em; }
.tmeta {
  font-size: 12px; color: var(--ink-3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Proportional strip of where a team's games landed. */
.tgrades { display: flex; gap: 2px; height: 5px; margin-top: 6px; border-radius: 3px; overflow: hidden; }
.tgrades i { display: block; border-radius: 1px; }
.tavg {
  flex: 0 0 auto; font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums;
}
.trow { cursor: pointer; }
.trow.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.trank { display: grid; gap: 2px; justify-items: center; }

/* Places gained or lost since last week. Arrow and sign both, so the
 * direction does not rest on colour alone. */
.tmove { font-family: inherit; font-style: normal; font-weight: 700; font-size: 9.5px; }
.tmove.up { color: #1c8a4d; }
.tmove.down { color: #c62828; }
.tmove.flat, .tmove.new { color: var(--ink-3); font-weight: 600; }

/* A team's season, one line per week. Text only: by week twelve a row of
 * cards for every game is a page of its own. */
.tweeks {
  background: var(--card); border-radius: 0 0 11px 11px;
  border-left: 4px solid var(--team); margin: 0 0 7px;
  padding: 2px 14px 10px 62px;
}
.tweek {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; color: var(--ink-2);
  padding: 4px 0; border-top: 1px solid var(--line);
}
.tw-wk { flex: 0 0 42px; color: var(--ink-3); }
.tw-opp { flex: 1; min-width: 0; }
.tw-grade {
  flex: 0 0 18px; text-align: center; border-radius: 4px; color: #10131a;
  font-family: var(--sport); font-style: italic; font-weight: 900; font-size: 11px;
}
.tw-grade[data-g="S"] { background: var(--s); }
.tw-grade[data-g="A"] { background: var(--a); }
.tw-grade[data-g="B"] { background: var(--b); }
.tw-grade[data-g="C"] { background: var(--c); }
.tw-grade[data-g="D"] { background: var(--d); }
.tw-score {
  flex: 0 0 26px; text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--ink);
}

/* ---------- fan mode ---------- */
/* The star marks a score computed for you, never the standard one. */
.rowscore.mine { flex-basis: 64px; }
.rowscore.mine .star { color: var(--a-mark); font-size: 12px; margin-right: 2px; }
.fanbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin: 0 2px 12px; font-size: 12.5px; color: var(--ink-2);
}
.fanbar .star { color: var(--a-mark); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button {
  border: 0; background: var(--card); color: var(--ink-2); cursor: pointer;
  font: 600 12px/1 inherit; font-family: inherit; padding: 7px 12px;
}
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.fan-invite {
  background: var(--card); border-radius: 10px; padding: 13px 14px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .1);
}
.fan-invite p { margin: 0; flex: 1 1 220px; color: var(--ink-2); }
.fan-invite p b { color: var(--ink); }
.fan-invite .btn { margin: 0; }
.linkbtn {
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  color: var(--navy); font: 600 13px/1.2 inherit; font-family: inherit;
}
.linkbtn:hover { text-decoration: underline; }
.picker {
  width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 40px);
  border: 0; border-radius: 14px; padding: 18px 18px 0; color: var(--ink); overflow-y: auto;
  box-shadow: 0 20px 60px rgba(10, 20, 40, .35);
}
.picker::backdrop { background: rgba(8, 16, 30, .55); }
.picker h2 {
  margin: 0 0 6px; font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 19px; color: var(--navy);
}
.picker-copy { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.team-pick {
  display: flex; align-items: center; gap: 7px; padding: 7px 9px; cursor: pointer;
  border-radius: 9px; border: 2px solid transparent; background: #f1f4f8;
  font-family: var(--sport); font-style: italic; font-weight: 900; font-size: 15px;
  color: var(--ink);
}
.team-pick .mlogo { width: 26px; height: 26px; }
.team-pick[aria-pressed="true"] { background: var(--team); color: var(--ink-on); border-color: var(--a-mark); }
.picker-actions {
  /* Pinned to the bottom so Done stays reachable while the grid scrolls. */
  position: sticky; bottom: 0; background: #fff;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 0 16px; border-top: 1px solid var(--line);
}
.picker-actions .btn { margin: 0 0 0 auto; }
.prose a { color: var(--navy); font-weight: 600; }

/* "Unspoiled: Football". On a phone the sport drops to its own line rather
   than squeezing the buttons; from tablet width up it sits inline. */
.h1-sport { display: block; font-size: 15px; color: #c9d8ec; letter-spacing: .01em; }
@media (min-width: 560px) { .h1-sport { display: inline; font-size: inherit; color: inherit; } }

/* ---------- S-list sign-up ---------- */
.slist {
  background: var(--card); border-radius: 12px; padding: 16px; margin: 4px 0 26px;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .1); border-top: 3px solid var(--s);
}
.slist h3 {
  margin: 0 0 4px; font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 17px; color: var(--navy);
}
.slist p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.slist form { display: flex; gap: 8px; flex-wrap: wrap; }
.slist input {
  flex: 1 1 200px; min-width: 0; height: 40px; padding: 0 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; color: var(--ink);
}
.slist input:focus { outline: 2px solid var(--navy); outline-offset: 1px; background: #fff; }
.slist .btn { margin: 0; height: 40px; }
.slist-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.slist-foot small { color: var(--ink-3); font-size: 11.5px; }
.slist-msg { font-size: 13px; margin-top: 8px; color: var(--ink-2); }
.slist-msg.err { color: #b3261e; }

/* Fan score label and its one-line explanation. */
.fantag {
  border: 0; background: #fdf1e3; color: #8a4a12; cursor: pointer;
  font: 700 10.5px/1 inherit; font-family: inherit; letter-spacing: .02em;
  padding: 3px 7px; border-radius: 999px; margin-right: 7px; vertical-align: 1px;
}
.ourtag {
  display: inline-block; background: #eef2f8; color: var(--navy);
  font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px;
  margin-right: 7px; vertical-align: 1px;
}
.fannote {
  margin: -2px 14px 10px; padding: 9px 11px; border-radius: 8px;
  background: #fdf6ee; color: var(--ink-2); font-size: 12.5px; line-height: 1.45;
}
.rankmode { border: 0; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.rankmode legend {
  font-family: var(--sport); font-style: italic; font-weight: 900;
  font-size: 15px; color: var(--navy); margin-bottom: 8px; padding: 0;
}
.rankmode label {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; background: #f4f6fa;
  font-size: 13px; line-height: 1.45; color: var(--ink-2);
  border: 2px solid transparent;
}
.rankmode label:has(input:checked) { border-color: var(--navy); background: #fff; }
.rankmode input { margin-top: 3px; accent-color: var(--navy); }
.rankmode b { color: var(--ink); }
