:root {
  --bg: #07090f;
  --bg-2: #0d111b;
  --card: #121827;
  --card-2: #182033;
  --line: #222c42;
  --line-2: #2e3a55;
  --text: #edf1f8;
  --muted: #8b97ae;
  --dim: #5d6880;
  --red: #e0283a;
  --red-2: #b81d2d;
  --blue: #2f6bd8;
  --blue-2: #1d4fa8;
  --orange: #f08a2c;
  --gold: #f4c242;
  --green: #22c27a;
  --radius: 12px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(7, 9, 15, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { font: 800 19px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; display: block; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.on { color: #fff; background: var(--card-2); box-shadow: inset 0 -2px 0 var(--red); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 40, 58, .7); } 70% { box-shadow: 0 0 0 8px rgba(224, 40, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 40, 58, 0); } }

/* ---------- scores ticker ---------- */
.ticker { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.tick { flex: none; display: grid; grid-template-columns: auto auto; gap: 2px 14px; padding: 7px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: 13px; min-width: 150px; }
.tick .st { grid-column: 1 / -1; font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.tick .st.live { color: var(--red); }
.tick b { font-weight: 700; }
.tick .sc { text-align: right; font-weight: 700; }
.tick .lose { color: var(--muted); font-weight: 500; }

/* ---------- layout ---------- */
main { padding: 24px 0 64px; }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 28px; }
.sec-head h2 span { color: var(--red); }
.sec-head a { font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec-head a:hover { color: var(--text); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 16px; }
.page-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title h1 { font-size: clamp(34px, 6vw, 52px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.chip.red { background: rgba(224, 40, 58, .15); border-color: rgba(224, 40, 58, .5); color: #ff8b97; }
.chip.green { background: rgba(34, 194, 122, .12); border-color: rgba(34, 194, 122, .45); color: #6be3a9; }
.chip.gold { background: rgba(244, 194, 66, .12); border-color: rgba(244, 194, 66, .45); color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background:
  radial-gradient(900px 400px at 85% -10%, rgba(47, 107, 216, .35), transparent 60%),
  radial-gradient(700px 380px at 0% 110%, rgba(224, 40, 58, .35), transparent 60%), var(--bg-2);
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px; padding: 34px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: .92; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { color: #c3cbda; max-width: 520px; font-size: 16px; margin: 14px 0 20px; }
.hero .logo { justify-self: center; width: min(300px, 70%); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--card-2); border-radius: 10px; padding: 11px 16px; font-weight: 700; font-size: 14px; min-height: 44px; }
.btn:hover { border-color: var(--muted); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-2); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.countdown { display: flex; gap: 10px; margin-top: 4px; }
.countdown div { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 64px; }
.countdown b { display: block; font: 800 30px/1 var(--display); }
.countdown small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- game cards ---------- */
.game { display: block; padding: 14px 16px; transition: border-color .15s; }
.game:hover { border-color: var(--line-2); }
.game .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.game .top .live { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.game .row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.game .row .nm { flex: 1; font-weight: 700; font-size: 16px; }
.game .row .sc { font: 800 26px/1 var(--display); min-width: 40px; text-align: right; }
.game .row.lose .nm, .game .row.lose .sc { color: var(--muted); }
.badge { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; font: 800 13px/1 var(--display); letter-spacing: .04em; color: #fff; flex: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.badge.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.badge.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }

/* ---------- spotlight (player of the week) ---------- */
.spot { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; }
.spot .ph { position: relative; background: var(--card-2); }
.spot .ph img, .spot .ph .ini { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.spot .body { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.spot .kicker { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.spot h3 { font-size: 34px; margin: 6px 0 4px; }
.spot .line { display: flex; gap: 18px; margin-top: 12px; }
.spot .line div b { display: block; font: 800 30px/1 var(--display); }
.spot .line div small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.ini { display: grid; place-items: center; background: linear-gradient(135deg, var(--card-2), var(--bg-2)); color: var(--dim); font: 800 28px/1 var(--display); letter-spacing: .04em; width: 100%; height: 100%; }

/* ---------- leaders ---------- */
.leader { padding: 14px; }
.leader h4 { margin: 0 0 10px; font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.leader .first { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.leader .first .av { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex: none; }
.leader .first .av img, .leader .first .av .ini { width: 100%; height: 100%; object-fit: cover; font-size: 20px; }
.leader .first b { display: block; font-weight: 700; }
.leader .first .v { margin-left: auto; font: 800 34px/1 var(--display); }
.leader ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.leader li { display: flex; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid rgba(34, 44, 66, .5); }
.leader li span:first-child { color: var(--dim); width: 14px; }
.leader li .v { margin-left: auto; font-weight: 700; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); position: sticky; top: 0; }
th.sortable { cursor: pointer; }
th.sorted { color: #fff; }
td:first-child, th:first-child { text-align: left; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tr.total td { font-weight: 700; background: var(--bg-2); }
.who { display: flex; align-items: center; gap: 10px; }
.who .av { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex: none; }
.who .av img, .who .av .ini { width: 100%; height: 100%; object-fit: cover; font-size: 12px; }
.who b { font-weight: 600; }
.who small { color: var(--muted); display: block; font-size: 11px; }
.rank { color: var(--dim); width: 28px; display: inline-block; }

/* ---------- players / teams ---------- */
.pgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ptile { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.ptile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ptile .ph { position: relative; aspect-ratio: 1; background: var(--card-2); }
.ptile .ph img, .ptile .ph .ini { width: 100%; height: 100%; object-fit: cover; }
.ptile .no { position: absolute; left: 8px; bottom: 8px; font: 800 18px/1 var(--display); background: rgba(7, 9, 15, .8); border-radius: 6px; padding: 4px 7px; }
.ptile .tb { position: absolute; right: 8px; top: 8px; }
.ptile .info { padding: 10px 12px 12px; }
.ptile .info b { display: block; font-size: 14px; line-height: 1.25; }
.ptile .info small { color: var(--muted); font-size: 12px; }
.team-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.team-card b { font: 800 22px/1 var(--display); text-transform: uppercase; display: block; }
.team-card .rec { margin-left: auto; text-align: right; }
.team-card .rec b { font-size: 26px; }
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.profile .big { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--card-2); }
.profile .big img, .profile .big .ini { width: 100%; height: 100%; object-fit: cover; font-size: 64px; }
.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 16px 0; }
.statbar div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.statbar b { display: block; font: 800 30px/1 var(--display); }
.statbar small { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.quote { border-left: 3px solid var(--red); padding: 10px 14px; background: var(--card); border-radius: 0 10px 10px 0; color: #c9d1e0; font-style: italic; }

/* ---------- game page ---------- */
.scoreboard { padding: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background:
  radial-gradient(600px 200px at 50% 0%, rgba(47, 107, 216, .18), transparent 70%), var(--card); }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sb-team b { font: 800 22px/1 var(--display); text-transform: uppercase; }
.sb-team small { color: var(--muted); font-size: 12px; }
.sb-mid { text-align: center; }
.sb-score { font: 800 clamp(48px, 10vw, 84px)/1 var(--display); display: flex; gap: 18px; align-items: center; }
.sb-score .dash { color: var(--dim); font-size: .6em; }
.sb-score .lose { color: var(--muted); }
.sb-status { font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.sb-status.live { color: var(--red); }
.sb-sit { display: flex; gap: 8px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: #fff; border-bottom-color: var(--red); }
.pbp { list-style: none; margin: 0; padding: 0; }
.pbp li { display: grid; grid-template-columns: 76px 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pbp li.score { background: rgba(255, 255, 255, .02); }
.pbp li.big { background: linear-gradient(90deg, rgba(240, 138, 44, .14), transparent 60%); }
.pbp .t { color: var(--muted); font-size: 12px; }
.pbp .t b { display: block; color: var(--text); font-weight: 600; font-size: 11px; letter-spacing: .06em; }
.pbp .what b { font-weight: 700; }
.pbp .what small { display: block; color: var(--muted); font-size: 12px; }
.pbp .rs { font: 800 16px/1 var(--display); text-align: right; }
.fire { border: 1px solid var(--line-2); background: var(--card-2); border-radius: 999px; padding: 3px 9px; font-size: 13px; margin-left: 8px; }
.fire.done { border-color: var(--orange); }
.period-h { padding: 8px 14px; font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.chart { width: 100%; height: 220px; }
.compare { display: grid; gap: 10px; }
.compare .r { display: grid; grid-template-columns: 60px 1fr 120px 1fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.compare .r b { font-weight: 700; }
.compare .r .lbl { text-align: center; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.compare .bar { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; display: flex; }
.compare .bar.l { justify-content: flex-end; }
.compare .bar i { display: block; height: 100%; border-radius: 4px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=datetime-local], textarea, select {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.code-box { font: 800 30px/1 var(--display); letter-spacing: .12em; background: var(--bg-2); border: 1px dashed var(--orange); border-radius: 12px; padding: 14px 18px; display: inline-block; margin: 8px 0; }
.qa { padding: 16px 18px; }
.qa .q { font-weight: 700; font-size: 16px; }
.qa .a { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: #c9d1e0; white-space: pre-wrap; }
.qa .a b { color: var(--red); font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ---------- rules ---------- */
.rules-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.rules-nav a { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.rules-nav a:hover { background: var(--card); color: var(--text); }
.rule { padding: 18px 20px; scroll-margin-top: 84px; }
.rule h2 { font-size: 24px; margin-bottom: 10px; }
.rule ul { margin: 0; padding-left: 20px; color: #c9d1e0; }
.rule li { margin: 6px 0; }

/* ---------- misc ---------- */
.empty { color: var(--muted); text-align: center; padding: 30px 16px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #fff; color: #0b0f17; padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.err { background: var(--red); color: #fff; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-foot img { width: 40px; }
.site-foot a:hover { color: var(--text); }
.week-h { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; }
.week-h h2 { font-size: 26px; }
.week-h .bye { margin-left: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters button { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(3, 5, 10, .78); display: grid; place-items: center; padding: 16px; }
.modal .card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.kicker { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.filters button .badge.sm { width: 22px; height: 22px; font-size: 9px; vertical-align: -6px; margin-right: 2px; }

/* team schedule table */
table.sched td { white-space: nowrap; }
table.sched th, table.sched td { text-align: left; }
table.sched .bye-row td { color: var(--muted); background: rgba(255,255,255,.02); }
table.sched .who { display: inline-flex; align-items: center; gap: 8px; }

/* playoff bracket */
.bracket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: center; margin-top: 18px; }
.bk-col { display: grid; gap: 14px; }
.bk-col h3 { font-size: 18px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.bk-game { display: block; padding: 10px 12px; }
.bk-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.bk-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 600; }
.bk-row + .bk-row { border-top: 1px solid var(--line); }
.bk-row .seed { width: 16px; font: 700 13px/1 var(--display); color: var(--muted); }
.bk-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row .sc { font: 800 20px/1 var(--display); }
.bk-row.lose { opacity: .5; }
.champ { display: flex; align-items: center; gap: 16px; border-color: var(--gold); margin-top: 12px; }
.champ h2 { font-size: 34px; }

/* all-stars + challenge */
.as-table tr.out td { opacity: .55; }
table.stat-edit th, table.stat-edit td { padding: 6px 4px; font-size: 12px; text-align: center; }
table.stat-edit td:first-child, table.stat-edit th:first-child { text-align: left; padding-left: 10px; }
table.stat-edit input { width: 48px; padding: 6px 4px; text-align: center; }
.challenge-hero { grid-template-columns: 1fr auto; }
.challenge-hero h2 { font-size: clamp(26px, 4vw, 40px); margin-top: 8px; line-height: 1.05; }
.challenge-hero .big-emoji { font-size: 84px; line-height: 1; }
.challenge-card { border-color: rgba(244,194,66,.35); }
.challenge-card:hover { border-color: var(--gold); }
ol.req { padding-left: 20px; display: grid; gap: 8px; color: #c9d1e0; }
/* sub-tabs under the header (each menu group's sections) */
.subnav { position: sticky; top: 64px; z-index: 25; background: rgba(7,9,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.subtabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
/* phone bottom bar */
.bottomnav { display: none; }
@media (max-width: 760px) {
  .site-head .nav { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(10,13,22,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { display: grid; justify-items: center; gap: 3px; padding: 4px 0; color: var(--muted); font: 700 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
  .bottomnav svg { width: 24px; height: 24px; }
  .bottomnav a.on { color: #fff; }
  .bottomnav a.on svg { color: var(--red); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
  .head-row { padding: 8px 0 !important; height: auto !important; }
  .site-head { position: static; }
  .subnav { top: 0; }
  .compare .r.tape { grid-template-columns: 56px 0 1fr 0 56px; gap: 6px; }
  .potg { grid-template-columns: 90px 1fr; }
  /* home: smaller hero so the countdown and games are on the first screen */
  .hero .logo { display: none; }
  .hero { padding: 20px 18px !important; }
  .hero h1 { font-size: 40px !important; }
  /* stat leader cards swipe sideways instead of stacking */
  .g3.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .g3.swipe > * { scroll-snap-align: start; }
}
/* badges, streaks */
.bdg-mini { display: block; font-size: 13px; letter-spacing: 1px; margin-top: 2px; }
.hot { font-size: 13px; }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.trophy { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; }
.trophy .ic { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.trophy b { display: block; font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.trophy .x { color: var(--gold); }
.trophy small { color: var(--muted); font-size: 12px; }
/* game page extras */
.potg { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 12px; border-color: rgba(244,194,66,.35); }
.potg .ph { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.potg .ph img, .potg .ph .ini { width: 100%; height: 100%; object-fit: cover; }
.potg h3 { font-size: 28px; margin: 4px 0 8px; }
.potg .line { display: flex; gap: 14px; }
.potg .line b { font: 800 26px/1 var(--display); display: block; }
.potg .line small { color: var(--muted); font-size: 11px; }
.win-bar, .pick-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 10px 0 6px; background: var(--card-2); }
.win-bar i, .pick-bar i { display: block; height: 100%; transition: width .4s; }
.leaders-mini { width: 100%; margin-top: 6px; font-size: 13px; }
.leaders-mini th { color: var(--muted); font: 700 12px/1 var(--display); letter-spacing: .1em; text-align: center; width: 50px; }
.leaders-mini td { padding: 6px 0; }
.picks .pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.picks .pick-row button { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line-2); background: var(--card-2); border-radius: 12px; padding: 10px; font-size: 14px; text-align: left; }
.picks .pick-row button b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picks .pick-row button.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.picks .pick-row button:disabled { opacity: .8; }
.compare .r.tape { grid-template-columns: 70px 1fr 140px 1fr 70px; }
.compare .num.win { color: var(--green); }
.cmp-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 14px; }
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.cmp-p { display: grid; justify-items: center; gap: 4px; text-align: center; }
.cmp-p .av { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; }
.cmp-p .av img, .cmp-p .av .ini { width: 100%; height: 100%; object-fit: cover; }
.vs { font: 800 20px/1 var(--display); color: var(--red); }
/* highlights */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hl { overflow: hidden; }
.hl-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; background: #000; }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hl-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hl-thumb .len { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.hl-frame { aspect-ratio: 16/9; } .hl-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hl-body { padding: 10px 12px; } .hl-body b { display: block; } .hl-body small { font-size: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* records + power rankings */
.rec-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 4px 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.rec-row .r { color: var(--muted); font-weight: 700; } .rec-row .v { font: 800 20px/1 var(--display); }
.rec-row .sub { grid-column: 2 / 4; font-size: 12px; }
.pr-row { display: grid; grid-template-columns: 36px 40px auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; }
.pr-rank { font: 800 34px/1 var(--display); }
.pr-mv { font-size: 12px; font-weight: 800; color: var(--muted); } .pr-mv.up { color: var(--green); } .pr-mv.down { color: #ff8b97; }
.pr-body b { font: 800 20px/1 var(--display); text-transform: uppercase; } .pr-body p { margin: 4px 0 0; color: #c9d1e0; font-size: 14px; }
.install { position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 70; display: flex; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 13px; }
.install img { width: 36px; height: 36px; border-radius: 8px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--card-2); }

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero .logo { grid-row: 1; width: 150px; justify-self: start; }
  .profile { grid-template-columns: 1fr; }
  .profile .big { max-width: 260px; }
  .rules-layout { grid-template-columns: 1fr !important; }
  .rules-nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .head-row { height: auto; flex-wrap: wrap; gap: 6px 12px; padding: 10px 0 0; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .g2 { grid-template-columns: 1fr; }
  .spot { grid-template-columns: 120px 1fr; }
  .spot h3 { font-size: 26px; }
  .spot .line { gap: 12px; }
  .spot .line div b { font-size: 24px; }
  .scoreboard { padding: 16px 10px; gap: 8px; }
  .sb-team b { font-size: 16px; }
  .badge.lg { width: 48px; height: 48px; font-size: 17px; }
  .pbp li { grid-template-columns: 60px 28px 1fr auto; gap: 8px; padding: 10px; }
  .compare .r { grid-template-columns: 40px 1fr 90px 1fr 40px; gap: 6px; }
  .countdown div { min-width: 54px; padding: 6px 8px; }
  .countdown b { font-size: 24px; }
  .bracket { grid-template-columns: 1fr; }
  .challenge-hero .big-emoji { display: none; }
  .site-foot a[href="login.html"] { margin-left: 0 !important; }
}
