/* Shot board
   Neutrals are pure grayscale by the owner's rule. The only colour is the
   value scale (red → orange → yellow → green), applied inline from js/core.js. */

:root {
  --black: #000; --white: #fff; --page: #f0f0f0; --line: #ddd; --line-strong: #bbb;
  --ink: #000; --ink-2: #4d4d4d; --ink-3: #808080; --fill: #e6e6e6; --fill-hover: #f7f7f7;
  --neg: #d73027; --pos: #1a9850;
  --r-s: 4px; --r-m: 10px;
  --top: 56px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.45 var(--sans); font-variation-settings: "wdth" 90; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; border-radius: var(--r-s); }
.num { font-variant-numeric: tabular-nums; }
main { outline: none; min-height: calc(100vh - var(--top)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--black); color: var(--white); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.pad { padding: 12px; }

/* ---------- buttons, chips, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
  border: 1px solid var(--black); border-radius: 8px; background: var(--black); color: var(--white);
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { background: #2e2e2e; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: var(--white); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn.big { height: 48px; padding: 0 28px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--neg); border-color: var(--neg); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: 13px; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover:not(:disabled) { border-color: var(--line-strong); }
.chip[aria-pressed=true], .chip.on { background: var(--black); border-color: var(--black); color: var(--white); }
.chip:disabled { opacity: .35; cursor: default; }
.chip .crest { width: 16px; height: 16px; }
.chip.on .crest { filter: grayscale(1) invert(1); }
.field { display: grid; gap: 6px; }
.field span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, select, .inline-search input {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 15px;
}
.field input:hover, select:hover { border-color: var(--line-strong); }
.field input:focus, select:focus, .inline-search input:focus { outline: 2px solid var(--black); outline-offset: -1px; border-color: transparent; }
select { height: 34px; font-size: 13.5px; padding: 0 10px; }
.seg { display: inline-flex; padding: 3px; background: var(--fill); border-radius: 8px; gap: 2px; flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background-color .15s var(--ease); pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--white); border-radius: 50%; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--black); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.check input { accent-color: var(--black); margin: 0; }
.range { display: inline-flex; align-items: center; gap: 10px; }
.range input { accent-color: var(--black); width: 180px; }
.range output { font-weight: 700; min-width: 3ch; }
kbd { font: inherit; font-size: 11px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-3); background: var(--white); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px;
  height: var(--top); padding: 0 24px; background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 17px; font-variation-settings: "wdth" 115; text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 7px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--fill-hover); }
.nav a[aria-current=page] { color: var(--ink); background: var(--fill); }
.search-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 22px; height: 34px; padding: 0 8px 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink-3); cursor: pointer; min-width: 200px; justify-content: space-between;
}
.search-btn:hover { border-color: var(--line-strong); color: var(--ink-2); }
.acct { display: flex; align-items: center; gap: 8px; position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--black); color: var(--white); font-weight: 800; cursor: pointer; }
.upgrade { background: var(--white); color: var(--ink); border-color: var(--black); }
.upgrade:hover { background: var(--black); color: var(--white); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .12); display: grid; z-index: 40;
}
.menu[hidden] { display: none; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head span { font-size: 12px; color: var(--ink-3); }
.menu a, .menu button { text-align: left; padding: 8px 10px; border-radius: 6px; text-decoration: none; border: 0; background: none; cursor: pointer; font-size: 14px; }
.menu a:hover, .menu button:hover, .menu a:focus, .menu button:focus { background: var(--fill-hover); outline: none; }

.subbar {
  position: sticky; top: var(--top); z-index: 25; display: flex; align-items: center; gap: 16px;
  padding: 6px 24px; background: rgb(240 240 240 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.subbar[hidden] { display: none; }
.dates { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date { display: grid; justify-items: center; min-width: 48px; padding: 4px 8px; border-radius: 7px; text-decoration: none; line-height: 1.15; color: var(--ink-2); }
.date b { font-size: 15px; color: var(--ink); }
.date small { font-size: 11px; }
.date:hover { background: var(--white); }
.date[aria-current=page] { background: var(--black); color: var(--white); }
.date[aria-current=page] b { color: var(--white); }
.updated { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tabbar { display: none; }

/* ---------- page scaffolding ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 26px 24px 80px; }
.head { margin-bottom: 18px; }
.head h1 { font-size: 32px; font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.025em; line-height: 1.05; }
.head p { color: var(--ink-2); margin-top: 6px; }
.head.center { text-align: center; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 105; }
.panel { background: var(--white); border-radius: var(--r-m); padding: 16px 18px 18px; margin-bottom: 16px; }
.panel h2 { font-size: 14px; font-weight: 800; margin-bottom: 12px; font-variation-settings: "wdth" 100; display: flex; justify-content: space-between; gap: 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--white); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 2px; }
.tile b { font-size: 26px; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.tile span { font-size: 12.5px; color: var(--ink-3); }
.crumbs { display: flex; gap: 16px; font-size: 13px; margin-bottom: 4px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.emptystate, .lockbox { background: var(--white); border-radius: var(--r-m); padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.emptystate b, .lockbox b { font-size: 18px; font-weight: 800; }
.emptystate p, .lockbox p { color: var(--ink-2); max-width: 52ch; }
.lockbox { border: 1px dashed var(--line-strong); }
.sk { height: 52px; border-radius: var(--r-m); margin-bottom: 8px; background: linear-gradient(90deg, var(--white) 0%, var(--fill-hover) 50%, var(--white) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.sk.tall { height: 380px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- value cells, ladders, deltas, tags ---------- */
.c { display: grid; place-items: center; align-content: center; border-radius: 3px; font-weight: 700; font-variation-settings: "wdth" 80; line-height: 1; }
.c small { display: block; font-size: 9px; font-weight: 500; opacity: .75; margin-top: 2px; white-space: nowrap; }
.ladder { display: grid; gap: 3px; }
.ladder .c { height: 32px; font-size: 13px; }
.ladder .c small { display: none; }
.d { justify-self: end; min-width: 50px; padding: 3px 6px; border-radius: var(--r-s); text-align: right; font-size: 12.5px; font-weight: 600; }
.d.flat { color: var(--ink-3); font-weight: 500; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 3px; font-size: 10.5px; font-weight: 700; vertical-align: 1px; line-height: 1.3; }
.tag.starting { background: var(--black); color: var(--white); }
.tag.bench { background: var(--fill); color: var(--ink-2); }
.tag.doubtful { border: 1px solid var(--neg); color: var(--neg); }
.live { color: var(--pos); font-weight: 700; }
.done { color: var(--ink); font-weight: 700; }
.off { color: var(--neg); }
.crest { width: 20px; height: 20px; object-fit: contain; filter: grayscale(1) contrast(1.1); flex: none; }
.crest.md { width: 30px; height: 30px; }
.crest.lg { width: 44px; height: 44px; }
.no-crests .crest { display: none; }

.mtabs { display: flex; gap: 2px; padding: 3px; background: var(--fill); border-radius: 9px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.mtabs::-webkit-scrollbar { display: none; }
.mtab { flex: none; height: 32px; padding: 0 13px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.mtab:hover { color: var(--ink); }
.mtab[aria-pressed=true] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.mtabs.small .mtab { height: 28px; font-size: 12.5px; padding: 0 10px; }

/* ---------- Today ---------- */
.today .head h1 { font-size: 36px; }
.head p a, .muted a { color: var(--ink); }
.picks { margin-bottom: 34px; }
.pager { display: flex; gap: 4px; }
.pg { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; font-size: 18px; line-height: 1; padding-bottom: 2px; }
.pg:hover { border-color: var(--ink); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 36px) / 4)); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px 4px; scroll-padding: 0 24px;
}
.rail::-webkit-scrollbar { display: none; }
.pick { position: relative; scroll-snap-align: start; display: grid; gap: 12px; align-content: start; background: var(--white); border-radius: var(--r-m); padding: 14px 14px 16px; border: 1px solid transparent; text-decoration: none; transition: border-color .15s var(--ease); min-height: 270px; }
.pick:hover { border-color: var(--line-strong); }
.pick.sk { min-height: 270px; margin: 0; }
.pick.none { color: var(--ink-3); align-content: center; text-align: center; }
.pick-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.pick-mkt { font-weight: 700; }
.pick-when { color: var(--ink-3); }
.pick-who { display: flex; align-items: center; gap: 10px; }
.pick-name { font-weight: 800; font-size: 17px; line-height: 1.15; font-variation-settings: "wdth" 100; }
.pick-vs { font-size: 12.5px; color: var(--ink-2); }
.pick-num { display: flex; align-items: baseline; gap: 10px; }
.pick-num b { font-size: 46px; line-height: .9; font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.035em; }
.pick-num b i { font-style: normal; font-size: 24px; margin-left: 1px; letter-spacing: 0; }
.pick-num span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pick-cells { display: flex; gap: 2px; }
.pick-cells .c { flex: 1; height: 28px; font-size: 11.5px; }
.pick-why { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; padding-right: 54px; }
.share-btn { position: absolute; right: 12px; bottom: 12px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 12px; font-weight: 600; cursor: pointer; }
.share-btn:hover { border-color: var(--ink); }
.more-picks { align-content: center; justify-items: start; background: var(--black); color: var(--white); }
.more-picks b { font-size: 22px; font-weight: 800; }
.more-picks span { color: #bbb; }
.more-picks .btn { background: var(--white); color: var(--ink); }
.explain { font-size: 12.5px; color: var(--ink-3); margin: -4px 0 18px; max-width: 70ch; }
.slot { margin-bottom: 22px; }
.slot h3 { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.mgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.match { background: var(--white); border-radius: var(--r-m); padding: 12px 16px 12px; display: grid; gap: 10px; }
.match-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); text-decoration: none; }
.match-head:hover { color: var(--ink); }
.match-head .state { font-weight: 600; }
.tcols { display: grid; grid-template-columns: 1fr 1fr; }
.tcol { display: grid; align-content: start; gap: 2px; min-width: 0; padding-right: 20px; }
.tcol + .tcol { padding: 0 0 0 20px; border-left: 1px solid var(--line); }
.thead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.team b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; font-variation-settings: "wdth" 95; }
.star { border: 0; background: none; font-size: 15px; line-height: 1; padding: 2px 4px; cursor: pointer; color: var(--line-strong); }
.star[aria-pressed=true] { color: var(--ink); }
.star:hover { color: var(--ink); }
.tot { font-size: 24px; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, 90px) 38px 34px; align-items: center; gap: 10px; min-height: 30px; margin: 0 -6px; padding: 0 6px; border-radius: 6px; text-decoration: none; }
a.prow:hover { background: var(--fill-hover); }
.pname { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar { height: 8px; background: var(--fill); border-radius: 2px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--black); border-radius: 2px; }
.pval { text-align: right; font-size: 15px; font-weight: 800; }
.pshare { text-align: right; font-size: 12px; color: var(--ink-3); }
.prow.rest .pname, .prow.rest .pval { color: var(--ink-3); font-weight: 600; }
.prow.rest .pbar i { background: var(--line-strong); }
.prow.locked .pname { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.goal-line { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; text-decoration: none; }
.xg { font-size: 13px; font-weight: 700; margin-right: auto; }
.xg span { color: var(--ink-3); margin: 0 2px; }
.gl { display: flex; gap: 2px; }
.gl .c { width: 42px; height: 30px; font-size: 12px; }

/* ---------- Board ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 0; }
.search { flex: 0 1 240px; }
.search input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.group { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.hint { font-size: 12px; color: var(--ink-3); }
.filters-toggle { display: none; }
.opt { display: contents; }
.table { background: var(--white); border-radius: var(--r-m); }
.tr { display: grid; align-items: center; column-gap: 14px; grid-template-columns: 30px minmax(210px, 1fr) 44px 62px 62px 62px 64px 250px; padding: 0 16px; min-height: 54px; border-top: 1px solid var(--line); text-decoration: none; transition: background-color .12s var(--ease); }
.th + .tr, .th + .mt { border-top: 0; }
a.tr:hover, a.mt:hover { background: var(--fill-hover); }
.th { min-height: 38px; font-size: 12px; color: var(--ink-3); position: sticky; top: calc(var(--top) + 54px); z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); border-top: 0; border-radius: var(--r-m) var(--r-m) 0 0; }
.r { text-align: right; }
.sort { border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--ink-3); font-size: 12px; width: 100%; display: block; text-align: inherit; white-space: nowrap; }
.sort:hover { color: var(--ink); }
.sort[aria-pressed=true] { color: var(--ink); font-weight: 700; }
.sort[aria-pressed=true]::after { content: " ↓"; }
.th .ladder .sort { text-align: center; }
.rank { font-size: 13px; color: var(--ink-3); text-align: right; font-variation-settings: "wdth" 80; }
.rank.hi { color: var(--ink); font-weight: 800; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .crest { width: 24px; height: 24px; }
.who-text { min-width: 0; }
.name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ctx b { color: var(--ink-2); font-weight: 600; }
.mins { text-align: right; color: var(--ink-2); font-size: 13px; }
.xs { text-align: right; font-weight: 800; font-size: 21px; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.more { display: block; width: 100%; height: 46px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; font-weight: 600; border-radius: 0 0 var(--r-m) var(--r-m); }
.more:hover { background: var(--fill-hover); }
.legend { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.mt { display: grid; align-items: center; column-gap: 14px; grid-template-columns: minmax(260px, 1fr) 96px 200px 70px 200px; padding: 0 16px; min-height: 60px; border-top: 1px solid var(--line); text-decoration: none; }
.mt.th { min-height: 38px; }
.mt .who .crest:last-child { margin-left: auto; }
.mt .xs { font-size: 19px; }
.dash { color: var(--ink-3); margin: 0 3px; font-weight: 500; }
.gh { display: flex; gap: 3px; }
.gh > * { flex: 1; text-align: center; }
.gcells { display: flex; gap: 3px; }
.gcells .c { flex: 1; min-width: 0; height: 40px; font-size: 14px; }
.mt .gcells .c { height: 38px; font-size: 13.5px; }
.gcells.big .c { height: 54px; font-size: 18px; }

/* ---------- Match ---------- */
.fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin: 18px 0 8px; }
.side-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.side-name h1 { font-size: 32px; line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.side-name.away { flex-direction: row-reverse; text-align: right; }
.kick { text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.kick b { display: block; font-size: 20px; color: var(--ink); font-variation-settings: "wdth" 100; }
.fixture-meta { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-bottom: 18px; }
.gpanel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--white); border-radius: var(--r-m); margin-bottom: 16px; }
.gmain, .gside { padding: 16px 18px 18px; }
.gside { border-left: 1px solid var(--line); }
.gpanel h3 { margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.gpanel h3 span { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.gmain h3:first-of-type, .gside h3 { margin-top: 0; }
.gxg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12px; color: var(--ink-2); }
.gxg > div { display: flex; align-items: baseline; gap: 6px; }
.gxg > div:last-child { flex-direction: row-reverse; }
.gxg b { font-size: 30px; font-weight: 800; color: var(--ink); font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.gxg > span { text-align: center; color: var(--ink-3); }
.tline { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 700; font-size: 13px; }
.sgrid { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.sgrid th { color: var(--ink-3); font-weight: 600; font-size: 12px; padding: 2px; }
.sgrid td { height: 34px; border-radius: 3px; }
.note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.volume { background: var(--white); border-radius: var(--r-m); margin-bottom: 16px; }
.vol-block { padding: 14px 18px 16px; }
.vol-block h2 { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.tug { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-weight: 800; font-size: 22px; font-variation-settings: "wdth" 110; }
.tug .bar { display: flex; height: 10px; gap: 2px; }
.tug .bar i { display: block; height: 100%; border-radius: 2px; }
.tug .bar i:first-child { background: var(--black); }
.tug .bar i:last-child { background: var(--line-strong); }
.page > .mtabs { margin: 4px 0 12px; }
.squads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.squad h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; font-variation-settings: "wdth" 105; }
.squad-list { background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.sr { display: grid; grid-template-columns: minmax(0, 1fr) 52px 190px; gap: 10px; align-items: center; padding: 0 12px; min-height: 48px; border-top: 1px solid var(--line); text-decoration: none; }
.sr:first-child { border-top: 0; }
a.sr:hover { background: var(--fill-hover); }
.sr .xs { font-size: 17px; }
.sr .ladder .c { height: 26px; font-size: 12px; }
.sr.bench .name, .sr.bench .xs { color: var(--ink-2); }
.sep { padding: 10px 12px 6px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--fill-hover); }

/* ---------- Player ---------- */
.p-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin: 14px 0 20px; }
.p-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.p-id h1 { font-size: 40px; line-height: 1; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.025em; }
.bio { color: var(--ink-2); margin-top: 6px; }
.today-box { display: grid; grid-template-columns: auto 270px auto; gap: 14px; align-items: center; background: var(--white); border-radius: var(--r-m); padding: 12px 14px; }
.today-box .big { text-align: right; font-weight: 800; font-size: 46px; line-height: .9; font-variation-settings: "wdth" 112; letter-spacing: -0.03em; }
.today-box .big small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); font-variation-settings: "wdth" 90; margin-top: 6px; }
.today-box .ladder .c small { display: block; }
.mlist, .upc, .reasons, .picklog, .matchlog, .recent, .perks { list-style: none; margin: 0; padding: 0; }
.mlist li { display: grid; grid-template-columns: 1fr 52px 230px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.mlist li:first-child, .upc li:first-child, .reasons li:first-child, .picklog li:first-child, .matchlog li:first-child, .recent li:first-child { border-top: 0; }
.mlist .xs, .upc .xs { font-size: 17px; }
.mlist .ladder .c { height: 28px; font-size: 12px; }
.mlist .ladder .c small { display: block; font-size: 9px; }
.mrow { border: 0; background: none; padding: 4px 0; text-align: left; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.mrow:hover { color: var(--ink); text-decoration: underline; }
.mlist li.on .mrow { color: var(--ink); font-weight: 800; }
.reasons li { display: grid; grid-template-columns: 1fr 64px 120px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.rbar { position: relative; height: 12px; display: block; }
.rbar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.rbar i { position: absolute; top: 0; height: 100%; border-radius: 2px; }
.equation { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.stats div { font-size: 12px; color: var(--ink-3); }
.stats b { display: block; font-size: 22px; color: var(--ink); font-weight: 800; font-variation-settings: "wdth" 108; }
.comps, .lines, .mtable2, .ledger, .compare { width: 100%; border-collapse: collapse; font-size: 13px; }
.comps { margin-top: 14px; }
.comps th, .lines th, .mtable2 th, .ledger th, .compare th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.comps td, .lines td, .mtable2 td, .ledger td, .compare td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.comps tr:last-child td, .lines tr:last-child td, .mtable2 tr:last-child td, .ledger tr:last-child td { border-bottom: 0; }
.comps th:not(:first-child), .comps td:not(:first-child), .lines td:not(:first-child), .lines th:not(:first-child), .mtable2 td:not(:first-child), .mtable2 th:not(:first-child) { text-align: right; }
.upc li { display: grid; grid-template-columns: 1fr 44px 170px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.upc a { text-decoration: none; font-weight: 600; }
.upc a:hover { text-decoration: underline; }
.upc .ladder .c { height: 24px; font-size: 11.5px; }
.hist { width: 100%; height: auto; display: block; }
.hist .axl, .calib .axl { fill: var(--ink-3); font-size: 10.5px; font-family: var(--sans); }
.hist .dnp { fill: var(--ink-3); font-size: 10px; font-family: var(--sans); }
.legend-inline { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend-inline i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: 0; border-radius: 1px; }

/* ---------- Record ---------- */
.calib { width: 100%; max-width: 520px; height: auto; display: block; margin: 8px 0 12px; }
.record .mtabs { margin-bottom: 8px; }
.picklog li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 52px 30px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.mark.hit { background: var(--pos); color: var(--white); }
.mark.miss { background: var(--neg); color: var(--white); }
.mark.void { background: var(--fill); color: var(--ink-3); }
.pl-main { min-width: 0; display: grid; }
.pl-main b { font-weight: 800; }
.pl-main small, .ml-teams small, .recent small { font-size: 12px; color: var(--ink-3); }
.pl-p { text-align: center; border-radius: 4px; font-weight: 700; font-size: 12.5px; padding: 3px 0; }
.pl-a { text-align: right; font-weight: 800; font-size: 16px; }
.matchlog li { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ml-teams { display: grid; min-width: 0; }
.ml-xg { color: var(--ink-3); font-size: 12.5px; }
.ml-score { text-align: right; font-weight: 800; font-size: 17px; }
.recent li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.recent li > span:first-child { display: grid; min-width: 0; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - var(--top)); display: grid; place-content: center; justify-items: center; gap: 22px; padding: 40px 16px 80px; }
.auth-card { width: min(400px, 92vw); background: var(--white); border-radius: 14px; padding: 28px 26px 22px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 26px; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--ink-2); margin-top: -8px; }
.auth-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-2); }
.auth-foot a { color: var(--ink); }
.form-error { background: #fdecea; color: #8a1c13; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.form-error[hidden] { display: none; }
.perks { display: grid; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.perks li::before { content: "✓"; margin-right: 8px; color: var(--ink); font-weight: 800; }

/* ---------- Pricing ---------- */
.pricing { max-width: 820px; }
.price-card { background: var(--white); border-radius: 14px; padding: 28px; display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: 24px; }
.price b { font-size: 56px; font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.03em; }
.price span { color: var(--ink-2); margin-left: 6px; }
.note-strong { font-weight: 700; }
.compare { background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.compare th, .compare td { padding: 12px 16px; }
.compare td:not(:first-child), .compare th:not(:first-child) { width: 26%; }
.compare td:last-child { font-weight: 600; }
.fine { font-size: 12px; color: var(--ink-3); margin-top: 18px; max-width: 70ch; }

/* ---------- Account ---------- */
.subtabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subtabs a { padding: 10px 12px; text-decoration: none; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--black); }
.account { max-width: 860px; }
.form { display: grid; gap: 14px; }
.form.danger { border: 1px solid #f4c7c3; }
.pref { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.pref > div:first-child { display: grid; gap: 2px; }
.pref > div:first-child span { font-size: 12.5px; color: var(--ink-3); }
.pref .chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 460px; }
.plan-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.plan-line b { font-size: 24px; font-weight: 800; }
.plan-line span { color: var(--ink-2); }
.warn { color: #8a1c13; }
.linkbox { display: flex; align-items: center; gap: 10px; background: var(--fill-hover); border: 1px solid var(--line); border-radius: 8px; padding: 8px 8px 8px 12px; margin-bottom: 8px; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.daily { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 110px; align-items: end; }
.day { position: relative; height: 100%; display: flex; align-items: flex-end; }
.day i { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 2px 2px 0 0; }
.day .clk { background: #ccc; }
.day .sgn { background: var(--black); left: 25%; right: 25%; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--fill); color: var(--ink-2); text-transform: capitalize; }
.pill.paid, .pill.active { background: #e3f3e8; color: #10602f; }
.pill.pending, .pill.trialing { background: #fff4d6; color: #7a5600; }
.pill.void, .pill.canceled, .pill.past_due { background: #fdecea; color: #8a1c13; }
.creator-intro p { color: var(--ink-2); margin-bottom: 12px; max-width: 60ch; }
.creator-intro .perks { margin-bottom: 16px; }
.inline-search { display: flex; gap: 8px; margin-bottom: 12px; }
.inline-search input { flex: 1; height: 32px; font-size: 14px; }
.admin .ledger td { font-size: 13px; }

/* ---------- palette ---------- */
.palette { position: fixed; inset: 0; z-index: 60; }
.palette[hidden] { display: none; }
.pal-back { position: absolute; inset: 0; background: rgb(0 0 0 / .32); }
.pal { position: relative; width: min(620px, 94vw); margin: 12vh auto 0; background: var(--white); border-radius: 14px; box-shadow: 0 24px 60px rgb(0 0 0 / .25); overflow: hidden; }
.pal input { width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--line); padding: 0 18px; font-size: 17px; outline: none; }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.pal-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.pal-list li[aria-selected=true] { background: var(--fill); }
.pal-main { display: grid; min-width: 0; }
.pal-main b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-main small { font-size: 12px; color: var(--ink-3); }
.pal-kind { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); justify-self: center; }
.pal-empty { color: var(--ink-3); padding: 16px 12px !important; display: block !important; }
.pal-foot { padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--black); color: var(--white); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; box-shadow: 0 8px 24px rgb(0 0 0 / .2); animation: tin .25s var(--ease); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.error { background: var(--neg); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- compact density ---------- */
.compact .tr { min-height: 42px; }
.compact .ladder .c { height: 26px; }
.compact .prow { min-height: 26px; }
.compact .match { gap: 6px; padding: 10px 14px; }
.compact .pick { min-height: 230px; gap: 8px; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  :root { --top: 52px; }
  .top { padding: 0 12px; gap: 10px; }
  .nav, .search-btn kbd, .search-btn span { display: none; }
  .search-btn { min-width: 0; width: 36px; padding: 0; justify-content: center; margin-left: auto; }
  .search-btn::before { content: "⌕"; font-size: 20px; color: var(--ink); }
  .acct .upgrade { display: none; }
  .subbar { padding: 6px 12px; }
  .updated { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { padding: 12px 0 13px; text-align: center; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--ink-3); }
  .tabbar a[aria-current=page] { color: var(--ink); box-shadow: inset 0 2px 0 var(--black); }
  .page { padding: 16px 12px 96px; }
  .head h1, .today .head h1 { font-size: 26px; }
  .cols, .squads, .gpanel { grid-template-columns: 1fr; gap: 0; }
  .squads { gap: 16px; }
  .gside { border-left: 0; border-top: 1px solid var(--line); }
  .rail { grid-auto-columns: 82%; margin: 0 -12px; padding: 2px 12px 4px; scroll-padding: 0 12px; }
  .pager { display: none; }
  .tcols { grid-template-columns: 1fr; gap: 12px; }
  .tcol, .tcol + .tcol { padding: 0; border-left: 0; }
  .tcol + .tcol { padding-top: 12px; border-top: 1px solid var(--line); }
  .prow { grid-template-columns: minmax(0, 1fr) 64px 34px 30px; gap: 8px; }
  .filters-toggle { display: inline-flex; }
  .opt { display: none; }
  .toolbar.open .opt { display: contents; }
  .search { flex: 1 1 0; }
  .th { display: none; }
  .tr { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "rank who xs" ". ladder ladder" ". fx fx"; row-gap: 8px; padding: 12px; min-height: 0; }
  .table .tr:first-of-type { border-top: 0; }
  .tr .rank { grid-area: rank; align-self: start; padding-top: 3px; }
  .tr .who { grid-area: who; } .tr .xs { grid-area: xs; } .tr .ladder { grid-area: ladder; }
  .tr .ladder .c small { display: block; }
  .tr .mins { display: none; }
  .tr .fx { grid-area: fx; display: flex; gap: 6px; flex-wrap: wrap; }
  .tr .fx .d { min-width: 0; font-size: 11.5px; }
  .tr .fx .d::before { content: attr(data-l) " "; font-weight: 500; }
  .mt { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "who who" "xs xs" "res res" "btts ou"; row-gap: 8px; padding: 12px; }
  .mt .who { grid-area: who; } .mt .xs { grid-area: xs; text-align: left; font-size: 16px; }
  .mt .g-res { grid-area: res; } .mt .g-btts { grid-area: btts; } .mt .g-ou { grid-area: ou; }
  .mt .xs::before { content: "Exp. goals "; font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
  .fixture { gap: 10px; }
  .side-name, .side-name.away { flex-direction: column; text-align: center; gap: 6px; }
  .side-name h1 { font-size: 18px; }
  .crest.lg { width: 34px; height: 34px; }
  .sr { grid-template-columns: minmax(0, 1fr) 46px 160px; }
  .p-head { grid-template-columns: 1fr; }
  .p-id h1 { font-size: 28px; }
  .today-box { grid-template-columns: auto 1fr; }
  .today-box .btn { grid-column: 1 / -1; }
  .today-box .big { font-size: 38px; }
  .mlist li { grid-template-columns: 1fr 44px 170px; }
  .reasons li { grid-template-columns: 1fr 56px 80px; }
  .upc li { grid-template-columns: 1fr 40px 150px; }
  .pref { grid-template-columns: 1fr; gap: 8px; }
  .pref .chips { justify-content: flex-start; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: auto; }
  .ledger { display: block; overflow-x: auto; }
  .toasts { bottom: 76px; }
}
@media (min-width: 861px) { .tr .fx { display: contents; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.disclose { font-size: 12.5px; color: var(--ink-2); background: var(--white); border-radius: 8px; padding: 10px 12px; margin-top: 10px; max-width: 80ch; }
