/* Mammoth Stats. Rock black ground, mountain-blue accent, salt-white text, glacier highlights.
   Scoreboard-style condensed display face for headings and big numbers; Inter for reading and tables.
   Layout: sticky header + grouped nav on desktop, bottom tab bar on phones; content in a 1240px column. */
:root {
  --bg: #07090c;
  --panel: #0e131a;
  --panel-2: #151c26;
  --line: #212b38;
  --text: #eef3f8;
  --muted: #8b99ab;
  --blue: #6cace4;
  --blue-2: #b9dcf6;
  --good: #46c98b;
  --mid: #e3b34f;
  --bad: #e8675e;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: Inter, system-ui, sans-serif; /* numbers use tabular Inter */
  --radius: 14px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); font-variant-numeric: tabular-nums; }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* header */
.top { position: relative; overflow: hidden; background: linear-gradient(180deg, #0c1622 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.ridge { position: absolute; inset: auto 0 0 0; width: 100%; height: 70px; pointer-events: none; }
.ridge path { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: .22; vector-effect: non-scaling-stroke; }
.top-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter-r) 22px var(--gutter); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.brand > span { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand-name b { color: var(--blue); font-weight: 700; }
.brand-sub { color: var(--muted); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.season { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
select { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: 500 14px var(--body); }
.help { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--blue-2); font: 700 18px var(--display); text-decoration: none; }
.help:hover { border-color: var(--blue); }

/* navigation: groups + pages */
.groups { display: flex; gap: 4px; max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter-r) 0 var(--gutter); }
.groups a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px 12px 0 0; color: var(--muted); text-decoration: none; font: 600 18px var(--display); letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; border-bottom: 0; }
.groups a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.groups a:hover { color: var(--text); }
.groups a.on { color: var(--text); background: var(--panel); border-color: var(--line); }
.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; gap: 4px; overflow-x: auto; padding: 8px var(--gutter-r) 8px var(--gutter); background: rgba(14,19,26,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--blue); color: #061320; }
@media (min-width: 721px) { .tabs { max-width: none; } .tabs::before { content: ""; flex: 0 0 max(0px, calc((100vw - 1240px) / 2)); } }

main { max-width: 1240px; margin: 0 auto; padding: 20px var(--gutter-r) 20px var(--gutter); }
.loading, .err { padding: 40px; text-align: center; color: var(--muted); }
.err { color: var(--bad); }
footer { max-width: 1240px; margin: 0 auto; padding: 24px var(--gutter-r) 40px var(--gutter); color: var(--muted); font-size: 12px; }

h2 { font: 700 21px/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--blue-2); margin: 34px 0 12px; text-wrap: balance; }
h2:first-child { margin-top: 4px; }
h3.sub { font: 600 15px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.note { color: var(--muted); font-size: 13.5px; margin: -4px 0 14px; max-width: 75ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* KPI tiles */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.kpi .k { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.kpi .v { font: 700 34px/1.05 var(--display); margin-top: 6px; letter-spacing: .01em; }
.kpi .s { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* rank tiles */
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rank { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rank .top-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rank .lbl { color: var(--muted); font-size: 12px; }
.rank .val { font: 700 26px/1.1 var(--display); }
.rank .rk { font: 700 13px var(--body); padding: 2px 8px; border-radius: 999px; flex: none; }
.rank .bar { height: 6px; border-radius: 3px; background: var(--panel-2); margin-top: 10px; position: relative; overflow: hidden; }
.rank .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.rank .avg { color: var(--muted); font-size: 11px; margin-top: 6px; }
.tier-good { background: rgba(76,195,138,.16); color: var(--good); }
.tier-mid { background: rgba(224,180,76,.16); color: var(--mid); }
.tier-bad { background: rgba(229,103,95,.16); color: var(--bad); }
.fill-good { background: var(--good); } .fill-mid { background: var(--mid); } .fill-bad { background: var(--bad); }

/* leaders */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.leader { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.leader h3 { margin: 0 0 8px; font: 600 15px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.leader .row { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.leader .row img { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); object-fit: cover; }
.leader .row .n { flex: 1; font-size: 14px; min-width: 0; }
.leader .row .x { font: 700 14px var(--mono); }
.leader .row:first-of-type .x { color: var(--blue-2); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 12px; cursor: pointer; user-select: none; }
th.sorted { color: var(--blue-2); }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; }
th:first-child { background: var(--panel-2); z-index: 2; }
td { font-size: 13px; }
td:first-child { font-family: Inter, system-ui, sans-serif; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
tr.click { cursor: pointer; }
tr.us td { background: rgba(108,172,228,.12); }
.pl { display: flex; align-items: center; gap: 8px; }
.pl img { width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); object-fit: cover; }
.pos { color: var(--muted); font-size: 11px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #06121e; }
.hi { color: var(--good); } .lo { color: var(--bad); }

/* results */
.res { display: inline-block; min-width: 38px; text-align: center; padding: 2px 6px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.res.W { background: rgba(76,195,138,.18); color: var(--good); }
.res.L { background: rgba(229,103,95,.18); color: var(--bad); }
.res.OTL { background: rgba(224,180,76,.18); color: var(--mid); }
.opp { display: flex; align-items: center; gap: 6px; }
.opp img { width: 22px; height: 22px; }
.strip { display: flex; gap: 3px; flex-wrap: wrap; }
.strip span { width: 14px; height: 22px; border-radius: 3px; }
.strip .W { background: var(--good); } .strip .L { background: var(--bad); } .strip .OTL { background: var(--mid); }

/* charts */
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--muted); font: 11px Inter, sans-serif; }
svg.chart .grid line { stroke: var(--line); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* split cards */
.split { display: grid; grid-template-columns: 1fr auto auto auto; gap: 4px 14px; font-size: 13px; }
.split div { padding: 4px 0; border-bottom: 1px solid var(--line); }
.split .h { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.split .m { font-family: var(--mono); text-align: right; }

/* player dialog */
dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.7); }
.pc-head { position: relative; padding: 20px; background: linear-gradient(135deg, #12304d, var(--panel)); display: flex; gap: 16px; align-items: center; }
.pc-head img { width: 96px; height: 96px; border-radius: 50%; background: var(--panel-2); object-fit: cover; }
.pc-head h3 { margin: 0; font-size: 22px; }
.pc-head .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pc-close { position: absolute; top: 12px; right: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 34px; height: 34px; font-size: 18px; cursor: pointer; }
.pc-body { padding: 16px 20px 24px; }
.pc-body h2 { margin-top: 18px; }

@media (max-width: 600px) {
  .top { padding: 12px 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 17px; }
  .kpi .v { font-size: 22px; }
  .pc-head img { width: 64px; height: 64px; }
  .ranks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rank { padding: 10px 12px; }
  .rank .val { font-size: 17px; }
  .rank .top-row { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
}

/* ---- Outlook / Injuries / Contracts / Ask ---- */
.plink { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.inj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.inj { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.inj p { margin: 8px 0; }
.inj-head { display: flex; gap: 12px; align-items: center; }
.inj-head img, .inj-head .ph { width: 52px; height: 52px; border-radius: 50%; background: var(--panel-2); object-fit: cover; flex: none; }
.inj-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.inj .rk { display: inline-block; font: 700 12px var(--mono); padding: 2px 8px; border-radius: 999px; }
.inj-ret { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; padding: 10px; background: var(--panel-2); border-radius: 10px; }
.inj-ret .k { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.inj-ret b { font-family: var(--mono); }
.latest { border-left: 3px solid var(--blue); padding-left: 10px; }
.line { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.ll { width: 64px; flex: none; color: var(--muted); font-size: 12px; text-transform: uppercase; padding-top: 6px; }
.lp { display: flex; flex-direction: column; background: var(--panel-2); border-radius: 8px; padding: 5px 10px; font-size: 13px; min-width: 120px; }
.lp.hurt { opacity: .55; }
.lp .rk { font: 700 11px var(--mono); padding: 1px 6px; border-radius: 999px; }
.feed .fi { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed .fi:last-child { border-bottom: 0; }
td.cap-on { color: var(--blue-2); }
.pp-embed iframe { border-radius: 10px; background: #fff; }
.btn { display: inline-block; background: var(--blue); color: #06121e; border: 0; border-radius: 10px; padding: 10px 18px; font: 700 14px Inter, sans-serif; cursor: pointer; text-decoration: none; }
.btn[disabled] { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--blue); font: 500 13px Inter, sans-serif; cursor: pointer; padding: 0; }
.ask-signin { text-align: center; padding: 32px 16px; }
.ask-box { display: flex; flex-direction: column; gap: 12px; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: min(860px, 100%); border-radius: 14px; padding: 12px 16px; font-size: 15px; line-height: 1.55; }
.msg.me { align-self: flex-end; background: var(--blue); color: #06121e; font-weight: 500; white-space: pre-wrap; }
.msg.ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); }
.msg.ai p { margin: 6px 0; } .msg.ai ul, .msg.ai ol { margin: 6px 0; padding-left: 22px; } .msg.ai h4 { margin: 12px 0 4px; color: var(--blue-2); }
.msg.ai hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.msg.ai code { font-family: var(--mono); background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.md-tbl { margin: 8px 0; } .md-tbl td, .md-tbl th { white-space: normal; text-align: left; }
.thinking { color: var(--muted); }
.thinking span { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--blue); animation: blink 1.2s infinite; }
.thinking span:nth-child(2) { animation-delay: .2s; } .thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.ask-form { display: flex; gap: 8px; align-items: stretch; }
.ask-form textarea { flex: 1; resize: vertical; min-height: 48px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 15px Inter, sans-serif; }
.ask-foot { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
@media (max-width: 600px) { .feed .fi { grid-template-columns: 1fr; gap: 2px; } .inj-ret { grid-template-columns: 1fr 1fr 1fr; } }
/* scoring tab */
.rink { max-width: 520px; margin: 0 auto; }
.gt-head, .gt-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 1fr; gap: 12px; align-items: center; }
.gt-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.gt-row { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.gt-row:last-child { border-bottom: 0; }
.gt-b { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gt-b i { display: block; height: 10px; border-radius: 5px; min-width: 2px; max-width: 55%; }
.gt-b b { font-family: var(--mono); }
.combo { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.combo:last-child { border-bottom: 0; } .combo b { font-family: var(--mono); color: var(--blue-2); }
.models h3 { margin: 0 0 6px; font-size: 15px; color: var(--blue-2); } .models p { margin: 0; font-size: 14px; color: var(--text); }
h3.sub { font-size: 14px; color: var(--muted); margin: 18px 0 10px; }
@media (max-width: 600px) { .gt-head, .gt-row { grid-template-columns: 100px 1fr 1fr; gap: 8px; } .gt-b .pos { display: none; } }
.deep { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; }
/* six outcomes */
.games6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 10px; }
.g6 { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.g6-us { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.g6-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 600; }
.g6-pick { font-size: 13px; margin: 6px 0 8px; }
.six { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.six span { display: flex; align-items: center; justify-content: center; font: 700 11px var(--mono); color: #06121e; white-space: nowrap; overflow: hidden; }
.update-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; background: var(--blue); color: #06121e; border: 0; border-radius: 999px; padding: 12px 20px; font: 700 14px Inter, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.5); cursor: pointer; max-width: calc(100vw - 32px); }
.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.ucard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ucard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.urank { font: 700 13px var(--mono); color: var(--muted); }
.uscore { font: 700 20px var(--mono); }
.unames { font-weight: 600; margin-bottom: 6px; line-height: 1.5; }
.gloss td { white-space: normal; text-align: left; font-family: Inter, system-ui, sans-serif; font-size: 14px; vertical-align: top; }
.gloss td:first-child { width: 130px; }
.gloss td:nth-child(2) { width: 240px; color: var(--blue-2); }
/* hover tips */
.tip { border-bottom: 1px dotted currentColor; cursor: help; text-decoration: none; }
.tip:focus { outline: none; }
#tipbox { position: fixed; z-index: 100; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
  background: #f4f8fc; color: #0b1621; border-radius: 10px; padding: 8px 12px; font: 500 13px/1.4 Inter, sans-serif; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
#tipbox.on { opacity: 1; transform: none; }

/* ---- redesign: phones ---- */
@media (max-width: 720px) {
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 24px; }
  .season span { display: none; }
  .top-inner { padding-top: 12px; padding-bottom: 14px; }
  /* sections become an app-style bottom bar */
  .groups { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
    padding: 6px var(--gutter-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: rgba(10,14,20,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .groups a { flex-direction: column; gap: 3px; padding: 6px 2px; border: 0; border-radius: 10px; font: 600 12px var(--body); letter-spacing: .02em; text-transform: none; }
  .groups a svg { width: 22px; height: 22px; }
  .groups a.on { background: transparent; color: var(--blue); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .kpi .v { font-size: 28px; }
  h2 { font-size: 19px; }
  td a { display: inline-block; padding: 6px 2px; }
}
/* next-game hero */
.nexthero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; padding: 20px; border-radius: 18px; border: 1px solid #2a3b52;
  background: radial-gradient(120% 140% at 0% 0%, #12304d 0%, var(--panel) 55%); margin-bottom: 14px; }
.nh-eyebrow { font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.nh-match { display: flex; align-items: center; gap: 14px; margin: 10px 0 6px; flex-wrap: wrap; }
.nh-match img { width: 64px; height: 64px; }
.nh-vs { font: 700 34px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.nh-vs small { display: block; font: 500 14px var(--body); color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: 4px; }
.nh-meta { color: var(--muted); font-size: 14px; }
.nh-right { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.nh-pick { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nh-pick b { font: 700 46px/1 var(--display); }
.nh-pick span { color: var(--muted); font-size: 13.5px; }
.nh-season { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.nh-season strong { color: var(--text); font: 700 20px var(--display); margin-right: 4px; }
@media (max-width: 720px) { .nexthero { grid-template-columns: 1fr; padding: 16px; } .nh-match img { width: 48px; height: 48px; } .nh-vs { font-size: 28px; } .nh-pick b { font-size: 40px; } }
/* last-20 strip */
.strip span { width: 22px; height: 26px; border-radius: 4px; display: grid; place-items: center; font: 700 11px var(--body); color: #071018; }
/* grouped rank sections */
.rank-groups { display: grid; gap: 18px; }
.rank-group h3 { margin: 0 0 8px; }
@media (max-width: 720px) {
  .brand { gap: 10px; }
  .brand-name { font-size: 22px; white-space: nowrap; }
  .brand-sub { font-size: 12px; }
  select { padding: 7px 8px; font-size: 13px; }
  .help { width: 34px; height: 34px; }
  .legend { gap: 6px 12px; }
}
@media (max-width: 380px) { .brand img { display: none; } }
@media (max-width: 720px) { .hero > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
[hidden] { display: none !important; }
/* league visuals */
.viz .chips { margin-bottom: 12px; }
.viz-controls { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 10px; }
.viz-controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.viz-controls select { max-width: 70vw; }
.viz-controls .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
svg.scatter .quad { font: 600 12px var(--body); }
svg.scatter .quad.good { fill: var(--good); } svg.scatter .quad.bad { fill: var(--bad); opacity: .8; }
svg.scatter .axis-t { fill: var(--text); font: 600 13px var(--body); }
svg.scatter .pt image { transition: transform .15s; transform-box: fill-box; transform-origin: center; }
svg.scatter .pt:hover image { transform: scale(1.35); }
svg.radar .radar-l { fill: var(--text); font: 600 13px var(--body); }
svg.radar .radar-r { fill: var(--muted); font: 500 10px var(--body); }
.radar-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 16px; align-items: center; }
.radar-list { display: grid; gap: 2px; margin-top: 10px; }
.radar-list div { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.radar-list div span { flex: 1; }
.radar-list b { font: 700 18px var(--display); min-width: 42px; text-align: right; }
.radar-list em { font: 700 16px var(--display); color: #e3b34f; font-style: normal; min-width: 42px; text-align: right; }
@media (max-width: 720px) { .radar-wrap { grid-template-columns: 1fr; } }
details.allranks { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 4px 16px; }
details.allranks > summary { cursor: pointer; padding: 12px 0; font: 700 19px var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--blue-2); list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.allranks > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font: 600 16px var(--body); }
details.allranks[open] > summary::before { content: "−"; }
details.allranks .rank { background: var(--panel-2); }
details.allranks .rank-groups { padding-bottom: 16px; }
/* lineup small multiples */
.mini-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.mini-key b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); color: var(--blue-2); font: 700 11px var(--body); margin-right: 4px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; transition: border-color .15s; min-width: 0; }
.mini:hover, .mini:focus-visible { border-color: var(--blue); }
.mini-head { display: flex; gap: 10px; align-items: center; }
.mini-head img { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); object-fit: cover; flex: none; }
.mini-head div { display: flex; flex-direction: column; min-width: 0; }
.mini-head b { font-size: 14.5px; }
.mini svg.radar { max-width: 200px; margin: 4px auto; }
svg.radar .radar-n { fill: var(--muted); font: 700 12px var(--body); }
.mini-traits { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; }
.mini-traits span.hi, .mini-traits span.lo { padding: 2px 8px; border-radius: 999px; }
.mini-traits span.hi { background: rgba(70,201,139,.14); }
.mini-traits span.lo { background: rgba(232,103,94,.14); }
@media (max-width: 720px) {
  .mini-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini { padding: 10px; }
  .mini-head img { display: none; }
  .mini-head b { font-size: 13.5px; }
  .mini-head .pos { font-size: 11px; }
  .mini-traits { font-size: 11px; gap: 4px; }
}
/* scouting */
.out-list { display: grid; gap: 8px; }
.out-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.out-item .rk { font: 700 12px var(--body); padding: 2px 8px; border-radius: 999px; }
.mini.is-out { opacity: .55; cursor: default; }
.mini .rk { font: 700 11px var(--body); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
svg.rink a { cursor: pointer; }
svg.rink .goal-dot { transition: r .12s; }
svg.rink a:hover .goal-dot, svg.rink a:focus .goal-dot { r: 11; stroke: #fff; stroke-width: 2.5; }
.shot-chips .chip .pos { font-weight: 500; margin-left: 4px; }
.chip.on .pos { color: #0b2a44; }
/* goal video pop-up */
dialog#clip { width: min(960px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #000; color: var(--text); overflow: hidden; }
dialog#clip::backdrop { background: rgba(0,0,0,.8); }
.clip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--panel); }
#clip-title { font-weight: 600; font-size: 14.5px; min-width: 0; }
.clip-head .pc-close { position: static; flex: none; }
.clip-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.clip-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-foot { padding: 10px 14px; background: var(--panel); font-size: 13px; }
.clip-tabs { display: flex; gap: 6px; padding: 0 14px 10px; background: var(--panel); }
.clip-frame.track { aspect-ratio: auto; background: var(--panel); }
.replay { padding: 10px 14px 6px; }
.rinkfull { width: 100%; height: auto; display: block; }
.rp-p { cursor: help; }
.replay-ctl { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.replay-ctl input[type=range] { flex: 1; accent-color: var(--blue); }
.replay-ctl .chip { min-width: 44px; }
.radar-list .rl-head { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.radar-list .rl-head b, .radar-list .rl-head em { font: 600 11.5px var(--body); color: var(--muted); }
.radar-list b.cmp-v { font: 700 14px var(--body); min-width: 74px; }

/* Game page */
.game-head { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 6px 0 2px; }
.game-head img { width: 72px; height: 72px; }
.gh-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gh-score b { font: 700 46px/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.note.center { text-align: center; }
.recap p { margin: 0 0 10px; line-height: 1.6; }
.recap p:last-child { margin-bottom: 0; }
.strip a { display: contents; }
@media (max-width: 600px) { .game-head img { width: 52px; height: 52px; } .gh-score b { font-size: 38px; } }

/* Trades page (Nov 30, 2026) */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tcard p { margin: 8px 0; }
.tcard.dim { opacity: .6; }
.trow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trow .tpill { margin-left: auto; }
.tmeta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tpill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font: 600 11.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.st-done { background: #2f9e6a; border-color: #2f9e6a; color: #04140c; }
.st-talks { background: #e0a43a; border-color: #e0a43a; color: #1d1203; }
.st-rumor { background: var(--blue); border-color: var(--blue); color: #06121e; }
.lbl-trade { color: #e0a43a; border-color: #e0a43a; }
.lbl-rumor { color: var(--blue); border-color: var(--blue); }
.tsrc { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.tsrc li { margin: 3px 0; }
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tlist li:last-child { border-bottom: 0; }
.xfeed { display: grid; gap: 10px; max-width: 760px; }
.xtext { white-space: pre-wrap; margin: 8px 0; overflow-wrap: anywhere; }
.ximg { max-width: 100%; border-radius: 10px; margin-bottom: 6px; }
.st-closed { background: #5b6675; border-color: #5b6675; color: #eef2f6; }
.tclosed { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.tcard.dim .tclosed { opacity: 1; }
.tdeal { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 14px; }
.tdeal p { margin: 6px 0; }
.tdeal-h { font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.tprop { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; margin: 6px 0; display: grid; gap: 4px; }
.tsrc-d { margin-top: 8px; font-size: 13px; color: var(--muted); }
.tsrc-d summary { cursor: pointer; }
