
/* Layout idea: a Sunday-night stadium. A floodlit, mowed-stripe field holds the game of the week;
   every game gets a 270-degree Thrill gauge; games are grouped by verdict so the eye lands on
   "Must watch" first. One column on phones, two on desktop. */
:root {
  --bg: #f1f3f6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --ink: #0d1626;
  --muted: #5a6678;
  --line: #dde2ea;
  --accent: #b98208;
  --accent-ink: #1b1300;
  --must: #e5461f;
  --worth: #138654;
  --fans: #3466d4;
  --skip: #7b8596;
  --shadow: 0 1px 2px rgba(13, 22, 38, .05), 0 8px 24px rgba(13, 22, 38, .07);
  --shadow-lift: 0 2px 4px rgba(13, 22, 38, .06), 0 16px 36px rgba(13, 22, 38, .12);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090f1b; --surface: #111a2b; --surface-2: #0d1524; --ink: #edf1f7; --muted: #8e9bb0; --line: #1f2b42;
    --accent: #f5bd3a; --must: #ff6a3d; --worth: #35c486; --fans: #6f9bff; --skip: #8994a8;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3); --shadow-lift: 0 2px 6px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090f1b; --surface: #111a2b; --surface-2: #0d1524; --ink: #edf1f7; --muted: #8e9bb0; --line: #1f2b42;
  --accent: #f5bd3a; --must: #ff6a3d; --worth: #35c486; --fans: #6f9bff; --skip: #8994a8;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3); --shadow-lift: 0 2px 6px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.must { --c: var(--must); } .worth { --c: var(--worth); } .fans { --c: var(--fans); } .skip { --c: var(--skip); }

/* Header */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark { width: 30px; height: 30px; flex: none; }
.wordmark { font: 900 28px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-right: 6px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.iconbtn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; height: 38px; padding: 0 14px; font-size: 14px; font-weight: 700; }
.iconbtn:hover { border-color: var(--muted); }
.iconbtn svg { width: 16px; height: 16px; }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: end; padding: 34px 0 10px; }
.kicker { font: 800 13px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.punch-line { margin: 6px 0 10px; font: 900 clamp(48px, 8.2vw, 96px)/.86 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.punch-line em { font-style: normal; color: var(--accent); }
.punch-sub { margin: 0; color: var(--muted); font-size: 17px; max-width: 46ch; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.stat b { display: block; font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.key { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.key h2 { margin: 0; font: 800 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.key-row { display: grid; grid-template-columns: 112px 1fr 46px; gap: 12px; align-items: center; font-size: 14px; }
.key-row strong { font-weight: 700; color: var(--c); }
.key-bar { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.key-bar i { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.key-row em { font-style: normal; font: 700 15px var(--display); text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Controls */
.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0 8px; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.controls select { font: 700 14px var(--body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; height: 38px; padding: 0 10px; }
.weeks { display: flex; gap: 4px; overflow-x: auto; flex: 1 1 300px; min-width: 0; scrollbar-width: none; }
.weeks::-webkit-scrollbar { display: none; }
.wk { flex: none; border: 0; background: transparent; border-radius: 10px; min-width: 42px; height: 38px; padding: 0 10px;
  font: 800 16px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wk:hover { background: var(--surface-2); color: var(--ink); }
.wk[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 7px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* League tabs */
.leagues { display: inline-flex; gap: 6px; margin: 26px 0 0; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.leagues button { border: 0; background: none; height: 40px; min-width: 92px; padding: 0 18px; border-radius: 10px; font: 900 20px var(--display); letter-spacing: .06em; color: var(--muted); }
.leagues button:hover { color: var(--ink); }
.leagues button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.controls { margin-top: 10px !important; }
.kick .lg { font-weight: 800; color: var(--ink); letter-spacing: .1em; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 10.5px; }
.weeks.nba .wk { font-size: 14px; min-width: 64px; }
/* Hardwood variant for NBA */
.feature.nba { background:
    radial-gradient(60% 80% at 50% -30%, rgba(255, 236, 200, .42), transparent 60%),
    repeating-linear-gradient(90deg, #8a5a2b 0 3.2%, #93622f 3.2% 6.4%, #855528 6.4% 9.6%),
    #8a5a2b; }
.feature.nba::after { background: linear-gradient(180deg, rgba(30,15,5,.15) 10%, rgba(30,15,5,.7)); }
.feature.nba p { color: #f5e6d6; }

/* Watched, votes, team and best pages, docs */
a.team { text-decoration: none; color: inherit; }
a.team:hover b { color: var(--accent); }
.btn.on { border-color: var(--worth); color: var(--worth); }
.vote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); }
.vote.done { font-weight: 600; color: var(--muted); }
.vote .tally { margin-left: auto; color: var(--muted); font-weight: 600; }
.vote .tally b { color: var(--ink); }
.linkish { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: underline; }
.group.watched .card { opacity: .82; }
.best-link { text-decoration: none; }
.teamhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 6px 0 10px; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); border-top: 6px solid var(--tc, var(--accent)); }
.teamhead h1 { margin: 4px 0 6px; font: 900 clamp(34px, 5.5vw, 60px)/.92 var(--display); text-transform: uppercase; text-wrap: balance; }
.teamhead p { margin: 0; color: var(--muted); }
.teamtools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.teamtools select { font: 700 14px var(--body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; height: 36px; padding: 0 10px; }
.chip.big { width: 64px; height: 46px; font-size: 16px; border-radius: 10px; }
.mlist { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: auto 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; border-left: 5px solid var(--ac); }
.mrow:hover { border-color: var(--muted); border-left-color: var(--ac); }
.mrow.norank { grid-template-columns: 150px minmax(0, 1fr) auto; }
.mrow .rank { font: 900 26px var(--display); width: 36px; text-align: center; color: var(--muted); }
.ranked .mrow:nth-child(-n+3) .rank { color: var(--accent); }
.mwhen { font: 800 15px var(--display); text-transform: uppercase; letter-spacing: .03em; display: grid; }
.mwhen small { font: 600 12px var(--body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.mteams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 800 19px var(--display); text-transform: uppercase; }
.mteams .chip { width: 30px; height: 20px; font-size: 10px; }
.mteams i { font: 600 11px var(--body); color: var(--muted); text-transform: lowercase; font-style: normal; }
.mteams .seen { font: 700 11px var(--body); color: var(--worth); font-style: normal; text-transform: none; }
.mscore { display: flex; align-items: center; gap: 10px; }
.mscore b { font: 900 30px var(--display); color: var(--c); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.doc { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.doc h1 { margin: 0 0 10px; font: 900 44px/.95 var(--display); text-transform: uppercase; }
.doc h2 { margin: 26px 0 6px; font: 800 22px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.doc p { margin: 0 0 10px; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.doc a { color: var(--accent); }
.doc .feedback { margin-top: 20px; box-shadow: none; }
@media (max-width: 760px) {
  .teamhead { grid-template-columns: 1fr; }
  .teamtools { justify-content: flex-start; }
  .mrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mrow.norank { grid-template-columns: minmax(0, 1fr) auto; }
  .mrow .mwhen { display: none; }
  .mscore .pill { display: none; }
}

/* Support ladder */
.ladder { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.ladder li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: baseline; }
.ladder li span { font: 800 15px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder li.done { color: var(--ink); }
.ladder li.done span::after { content: " ✓"; color: var(--worth); }
.ladder li.next { color: var(--ink); font-weight: 700; }
.ladder li.next span { color: var(--accent); }
.fans-count { font-size: 14px; }
.pays { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink); }
.pays li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.pays li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

/* Rating badges, beta, soccer */
.rb { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; cursor: help; }
.rb.early { color: var(--fans); background: color-mix(in srgb, var(--fans) 14%, transparent); }
.rb.beta { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.leagues button sup { font: 800 9px var(--body); letter-spacing: .06em; margin-left: 3px; color: var(--accent); vertical-align: 8px; text-transform: uppercase; }
.leagues button[aria-selected="true"] sup { color: var(--accent); }
.leagues { flex-wrap: wrap; }
.feature.soccer { background:
    radial-gradient(70% 90% at 50% -30%, rgba(255, 255, 255, .28), transparent 60%),
    repeating-linear-gradient(180deg, #1c6b35 0 12.5%, #18602f 12.5% 25%), #18602f; }
.soon-league { margin: 18px 0 8px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 22px;
  padding: 34px 30px; display: grid; gap: 12px; justify-items: start; }
.soon-league h3 { margin: 0; font: 900 clamp(30px, 5vw, 48px)/.95 var(--display); text-transform: uppercase; text-wrap: balance; }
.soon-league p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Announcement + roadmap + feedback */
.announce { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 20px; text-decoration: none; font-size: 13.5px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--ink); text-align: center; }
.announce:hover span:last-child { text-decoration: underline; }
.road { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.road li { display: grid; gap: 1px; padding-left: 16px; position: relative; }
.road li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.road b { font-size: 15px; }
.road span { font-size: 13.5px; color: var(--muted); }
.feedback { margin: 16px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.feedback h3 { margin: 6px 0 8px; font: 900 34px/1 var(--display); text-transform: uppercase; }
.feedback p { margin: 0; color: var(--muted); }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.idea { border: 1px dashed var(--line); background: var(--surface-2); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.idea:hover, .idea[aria-pressed="true"] { border-style: solid; border-color: var(--accent); color: var(--ink); }
.fb-form { display: grid; gap: 8px; }
.fb-form label { font-size: 13px; font-weight: 700; margin-top: 4px; }
.fb-form .opt { font-weight: 500; color: var(--muted); }
.fb-form select, .fb-form textarea, .fb-form input { font: 15px var(--body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.fb-form textarea { resize: vertical; min-height: 110px; }
.fb-form select:focus, .fb-form textarea:focus, .fb-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fb-err { margin: 0; min-height: 18px; font-size: 13px; color: var(--must); }
.fb-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fb-note { font-size: 13.5px; color: var(--muted); }
.fb-note.ok { color: var(--worth); font-weight: 700; }
@media (max-width: 760px) { .feedback { grid-template-columns: 1fr; padding: 20px; } }

/* Descriptions switch */
.toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; height: 38px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.toggle .sw { width: 30px; height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; transition: background .15s; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.toggle[aria-checked="true"] { color: var(--ink); }
.toggle[aria-checked="true"] .sw { background: var(--accent); }
.toggle[aria-checked="true"] .sw::after { transform: translateX(12px); }
.btn[data-blurb][aria-pressed="true"] { border-color: var(--accent); }

/* Gauge */
.gauge { position: relative; display: grid; place-items: center; flex: none; }
.gauge svg { width: 100%; height: 100%; display: block; }
.gauge .trk { stroke: color-mix(in srgb, var(--ink) 10%, transparent); }
.gauge .val { stroke: var(--c); }
.gauge .n { position: absolute; inset: 0; display: grid; place-items: center; font: 900 var(--gs, 34px)/1 var(--display); font-variant-numeric: tabular-nums; padding-bottom: 4%; }
@media (prefers-reduced-motion: no-preference) {
  .gauge .val { animation: sweep 1s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes sweep { from { stroke-dasharray: 0 251.33; } }

/* Game of the week */
.feature { position: relative; margin: 18px 0 8px; border-radius: 24px; overflow: hidden; color: #f3f6f2; box-shadow: var(--shadow-lift);
  background:
    radial-gradient(60% 80% at 8% -20%, rgba(255, 236, 180, .38), transparent 60%),
    radial-gradient(60% 80% at 92% -20%, rgba(255, 236, 180, .30), transparent 60%),
    repeating-linear-gradient(90deg, #13502d 0 10%, #0f4426 10% 20%),
    #0f4426; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,16,9,0) 30%, rgba(4,16,9,.55)); pointer-events: none; }
.feature-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 32px; }
.feature .kicker { color: #ffd36b; }
.feature h2 { margin: 6px 0 12px; font: 900 clamp(40px, 6.4vw, 72px)/.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.feature h2 .at { font-weight: 600; font-size: .45em; opacity: .65; vertical-align: .3em; margin: 0 .15em; letter-spacing: .1em; }
.feature p { margin: 0; color: #dbe7de; font-size: 17px; max-width: 52ch; }
.feature .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.feature .tag { border-color: rgba(255,255,255,.3); color: #eef4ef; background: rgba(255,255,255,.06); }
.feature .cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: #ffd36b; color: #1b1300;
  font-weight: 800; font-size: 14px; text-decoration: none; }
.feature .gauge { width: 190px; height: 190px; --gs: 64px; }
.feature .gauge .trk { stroke: rgba(255,255,255,.16); }
.feature .verdict { display: grid; justify-items: center; gap: 8px; }
.feature .pill { background: rgba(255,255,255,.14); color: #fff; }
.chips { display: flex; gap: 8px; margin-bottom: 4px; }
.chip { width: 34px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 800 11px var(--body); color: #fff; letter-spacing: .02em; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* Sections and cards */
.group { margin-top: 30px; }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.group-head h3 { margin: 0; font: 900 28px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.group-head h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.group-head span { color: var(--muted); font-size: 14px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 16px; }
.grid > * { min-width: 0; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 16px; display: grid; gap: 14px;
  box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--ac) 0 50%, var(--hc) 50% 100%); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
.card.mine { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.kick { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: -6px; }
.kick .star { color: var(--accent); font-size: 14px; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team b { font: 800 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.team small { font-size: 13px; color: var(--muted); font-weight: 500; }
.team .names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.vs { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 4px 44px; }
.card .verdict { display: grid; justify-items: center; gap: 6px; }
.card .gauge { width: 96px; height: 96px; --gs: 36px; }
.pill { font: 800 11px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.blurb { margin: 0; font-size: 15.5px; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; height: 36px; padding: 0 12px;
  font-size: 13px; font-weight: 700; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn svg { width: 15px; height: 15px; }
.btn.gold { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more { margin-left: auto; font-size: 13px; font-weight: 800; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.more:hover { color: var(--accent); }
.final { font: 800 19px var(--display); letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.final small { font: 700 11px var(--body); color: var(--muted); letter-spacing: .06em; }
.ad { border: 1px dashed var(--line); border-radius: 18px; display: grid; place-items: center; min-height: 120px; color: var(--muted);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--line) 40%, transparent) 12px 13px); }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }

/* Panels */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 44px 0 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); }
.panel h3 { margin: 0; font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
.panel p { margin: 0; color: var(--muted); font-size: 15px; }
.panel.support { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.goal { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.goalbar { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.goalbar div { height: 100%; min-width: 6px; background: var(--accent); border-radius: 999px; }
.soon { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 3px 9px; border-radius: 999px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--muted); font-size: 14.5px; counter-increment: s; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--line); font: 800 15px var(--display); color: var(--ink); }
.perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.perks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* Footer */
footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { padding-top: 30px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
footer .wordmark { font-size: 26px; }
footer p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 44ch; }
footer h4 { margin: 0 0 8px; font: 800 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
footer ul a { text-decoration: none; }
footer ul a:hover { color: var(--accent); }
.fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Game page */
.back { display: inline-flex; gap: 6px; align-items: center; margin: 22px 0 12px; font-weight: 800; text-decoration: none; font-size: 14px; }
.gamepage .card { padding: 26px; gap: 18px; }
.gamepage .team b { font-size: clamp(30px, 5vw, 46px); }
.gamepage .card .gauge { width: 150px; height: 150px; --gs: 54px; }
.gamepage .blurb { font-size: 19px; }
.replay { display: flex; gap: 8px; flex-wrap: wrap; }

/* Dialogs */
.scrim { position: fixed; inset: 0; background: rgba(4, 8, 16, .58); z-index: 50; display: none; align-items: flex-end; justify-content: center; }
.scrim.open { display: flex; }
.sheet { background: var(--surface); color: var(--ink); width: min(700px, 100%); max-height: 86%; overflow: auto; border-radius: 22px 22px 0 0; padding: 24px;
  border: 1px solid var(--line); display: grid; gap: 14px; box-shadow: var(--shadow-lift); }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h3 { margin: 0; font: 900 28px/1 var(--display); text-transform: uppercase; }
.sheet p { margin: 0; color: var(--muted); }
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.teamgrid button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 9px; text-align: left; font-size: 14px; font-weight: 700; }
.teamgrid button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.sheet .row { display: flex; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px;
  border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; gap: 22px; }
  .nav { display: none; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 24px; }
  #teams-btn span { display: none; }
  .feature-inner { grid-template-columns: 1fr; padding: 24px 20px; }
  .feature .verdict { justify-items: start; grid-row: 1; display: flex; align-items: center; gap: 14px; }
  .feature .gauge { width: 120px; height: 120px; --gs: 42px; }
  .team b { font-size: 22px; }
  .group-head h3 { font-size: 24px; }
  .card .gauge { width: 84px; height: 84px; --gs: 30px; }
  .gamepage .card-main { grid-template-columns: 1fr; }
  .gamepage .verdict { grid-row: 1; display: flex; align-items: center; gap: 14px; justify-items: start; }
  .gamepage .card .gauge { width: 120px; height: 120px; --gs: 44px; }
  .controls .seg { order: 3; }
}
