:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --bg-2: #0f1216;
  --glow-a: rgba(57, 135, 229, 0.16);
  --glow-b: rgba(200, 240, 70, 0.07);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-solid: #14181d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 42%);
  --text: #f0efec;
  --text-2: #b9b8b0;
  --text-3: #7f7e78;
  --accent: #c8f046;
  --price: #f2c94c;
  --accent-ink: #11140a;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --bad: #d03b3b;
  --mid: #383835;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --r: 18px;
  --r-sm: 12px;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, sans-serif;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f3f2ee;
  --bg-2: #ecebe6;
  --glow-a: rgba(42, 120, 214, 0.12);
  --glow-b: rgba(120, 160, 0, 0.08);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(255, 255, 255, 0.95);
  --panel-solid: #ffffff;
  --line: rgba(15, 18, 22, 0.08);
  --line-2: rgba(15, 18, 22, 0.16);
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%);
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #8a8983;
  --accent: #4d6b00;
  --price: #8a5a00;
  --accent-ink: #f7ffe0;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --mid: #e4e2dc;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 34px -20px rgba(20, 24, 30, 0.35);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #f3f2ee; --bg-2: #ecebe6; --glow-a: rgba(42, 120, 214, 0.12); --glow-b: rgba(120, 160, 0, 0.08);
    --panel: rgba(255, 255, 255, 0.72); --panel-2: rgba(255, 255, 255, 0.95); --panel-solid: #ffffff;
    --line: rgba(15, 18, 22, 0.08); --line-2: rgba(15, 18, 22, 0.16);
    --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%);
    --text: #0b0b0b; --text-2: #52514e; --text-3: #8a8983; --accent: #4d6b00; --accent-ink: #f7ffe0; --price: #8a5a00;
    --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --mid: #e4e2dc;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 34px -20px rgba(20, 24, 30, 0.35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 700px at 85% -10%, var(--glow-a), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, var(--glow-b), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  display: flex;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.01em; margin: 0; line-height: 1.02; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; }

/* rail */
.rail {
  position: sticky; top: 0; height: 100vh; width: 232px; flex: none; z-index: 3; padding: 22px 14px;
  display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), transparent);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 10px; font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: 0.02em; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
#nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
#nav .sec { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding: 14px 12px 6px; }
#nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--text-2); font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
#nav a:hover { background: var(--panel-2); color: var(--text); }
#nav a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
#nav a.on .ico { color: var(--accent); }
#nav .ico { width: 18px; height: 18px; flex: none; }
#nav .lg { width: 18px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 12px; color: var(--text-3); }
.rail-foot { margin-top: auto; font-size: 12px; color: var(--text-3); padding: 0 12px; }

.shell { flex: 1; min-width: 0; position: relative; z-index: 1; }
.top {
  position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  backdrop-filter: blur(16px); background: linear-gradient(180deg, var(--bg) 20%, transparent);
}
.search { position: relative; flex: 1; max-width: 520px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--text-3); }
.search input {
  width: 100%; padding: 11px 14px 11px 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.search input:focus { border-color: var(--line-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: 420px; overflow: auto; }
.search-pop a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.search-pop a:hover, .search-pop a:focus { background: var(--panel-2); outline: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sync { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.sync::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--text-2); transition: 0.18s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.unlocked { color: var(--accent); }

main { padding: 6px 28px 80px; max-width: 1480px; outline: none; }

/* panels */
.panel {
  position: relative; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); padding: 20px;
}
.panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--gloss); pointer-events: none; }
.panel > * { position: relative; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-h .sub { font-size: 13px; color: var(--text-3); }
.grid { display: grid; gap: 18px; }
.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)); }
.main-side { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.grid > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.sp { justify-content: space-between; }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 24px; flex-wrap: wrap; }
.hero .kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.hero p { margin: 10px 0 0; color: var(--text-2); max-width: 640px; }

/* stat tiles */
.tile { padding: 18px 20px; }
.tile .k { font-size: 12px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.tile .v { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; margin-top: 8px; }
.tile .d { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.tile .v small { font-size: 20px; color: var(--text-3); font-weight: 700; margin-left: 4px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-2); background: var(--panel); white-space: nowrap; }
.chip.lg { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; }
.chip.on, button.chip[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
button.chip { cursor: pointer; }
.tier { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.tier.lock { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tier.strong { color: var(--text); border-color: var(--text-2); }
.tier.lean { color: var(--text-2); }
.tier.tossup { color: var(--text-3); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status.live i { background: var(--bad); animation: pulse 1.4s infinite; }
.status.hit i { background: var(--good); }
.status.miss i { background: var(--bad); }
.status.queued i { background: var(--warn); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.18s; }
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* team marks */
.logo { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)); }
.logo.sm { width: 22px; height: 22px; }
.logo.lg { width: 76px; height: 76px; }
.logo.xl { width: 104px; height: 104px; }
.mono-logo { display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 12px; color: #fff; }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.game {
  display: block; position: relative; border-radius: var(--r); padding: 16px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s; overflow: hidden; animation: rise 0.45s both;
}
.game::before { content: ''; position: absolute; inset: 0; background: var(--gloss); pointer-events: none; }
.game:hover { transform: translateY(-2px); border-color: var(--line-2); }
.game .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); margin-bottom: 12px; position: relative; }
.team-line { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 4px 0; position: relative; }
.team-line .nm { font-weight: 600; }
.team-line .nm small { display: block; color: var(--text-3); font-weight: 500; font-size: 12px; }
.team-line .sc { font-family: var(--display); font-size: 30px; font-weight: 800; }
.team-line.lost .sc, .team-line.lost .nm { color: var(--text-3); }
.team-line .pk { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.game .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--text-2); position: relative; gap: 8px; white-space: nowrap; }
.game .foot .row { gap: 8px; }
.team-line .sc .proj { font-size: 24px; color: var(--text-3); font-weight: 700; }
.add-t.btn.sm { padding: 5px 9px; }
.add-t { position: relative; z-index: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* probability bar */
.pbar { position: relative; display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 12px; }
.pbar span { display: block; height: 100%; }
.pbar span:first-child { border-radius: 999px 2px 2px 999px; }
.pbar span:last-child { border-radius: 2px 999px 999px 2px; }
.pbar-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.pbar-l b { color: var(--text); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tbody tr:hover { background: var(--panel); }
.tbl-wrap { overflow-x: auto; }
th[data-sort] { cursor: pointer; }

/* lists */
.feed { display: flex; flex-direction: column; }
.feed .it { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.feed .it:last-child { border-bottom: 0; }
.feed .it .t { font-weight: 600; line-height: 1.35; }
.feed .it .m { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sent { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); }
.dots i.on { background: var(--text-2); }
.thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }

.form { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.chip.flag { white-space: normal; border-radius: 12px; }
.form b { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.form b.W { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 55%, transparent); }
.form b.L { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--text-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); }
.form b.T { background: var(--panel-2); color: var(--text-2); }

/* rank bars */
.rank { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr 52px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.rank .bar { height: 8px; border-radius: 4px; background: var(--panel-2); position: relative; overflow: hidden; }
.rank .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.rank .rk { text-align: right; font-family: var(--display); font-weight: 700; font-size: 16px; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 0 6px 4px; }
.cal .day { min-height: 96px; border-radius: 14px; padding: 8px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: 0.16s; text-align: left; }
.cal .day:hover { border-color: var(--line-2); }
.cal .day.out { opacity: 0.4; }
.cal .day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal .day.sel { background: var(--panel-2); border-color: var(--text-3); }
.cal .day .dn { font-family: var(--display); font-weight: 700; font-size: 18px; }
.cal .day .lgs { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--text-2); }
.cal .day .lgs span { display: flex; align-items: center; gap: 6px; }
.cal .day .lgs i { width: 6px; height: 6px; border-radius: 2px; }

/* tooltip */
.tip { position: fixed; z-index: 50; pointer-events: none; padding: 9px 12px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; max-width: 280px; }
.tip b { font-family: var(--display); font-size: 16px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 11px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); }

dialog { border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel-solid); color: var(--text); padding: 24px; width: min(520px, 92vw); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
dialog::backdrop { background: rgba(5, 7, 10, 0.55); backdrop-filter: blur(4px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.field input, .field select, .field textarea { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); outline: none; color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

/* charts */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--body); }
.chart .lab { fill: var(--text-2); font-size: 12px; }
.chart .grid line { stroke: var(--line); }
.chart .axis { stroke: var(--line-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 2px; border-radius: 1px; width: 14px; }

.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.matchup .side { display: flex; align-items: center; gap: 16px; }
.matchup .side.r { flex-direction: row-reverse; text-align: right; }
.matchup .big { font-family: var(--display); font-size: clamp(48px, 7vw, 84px); font-weight: 800; line-height: 0.9; }
.matchup .vs { text-align: center; color: var(--text-3); font-size: 13px; }
.story { font-size: 17px; line-height: 1.55; }
.why li { margin: 6px 0; color: var(--text-2); }
.empty { padding: 30px; text-align: center; color: var(--text-3); }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.note { font-size: 13px; color: var(--text-2); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.player { display: flex; align-items: center; gap: 10px; }
.player img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.qa { border-left: 2px solid var(--line-2); padding: 4px 0 4px 14px; margin: 10px 0; }
.qa .q { font-weight: 600; }
.qa .s { font-size: 13px; color: var(--accent); margin-top: 4px; }

/* stat strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin-bottom: 18px; }
.strip > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; }
.strip .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.strip .v { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1.05; }
.strip .d { font-size: 12px; color: var(--text-2); }

/* today's board */
.board-panel { padding: 18px 18px 8px; container-type: inline-size; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.board-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button span { color: var(--text-3); font-weight: 500; margin-left: 2px; }
.seg button[aria-pressed='true'] { background: var(--panel-solid); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--line-2); }
.toggle80[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.board-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin: 2px 2px 8px; flex-wrap: wrap; }
.board-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.board-legend .ls { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--text); }
.board-legend .la { background: var(--s2); } .board-legend .lh { background: var(--s1); } .board-legend .lm { width: 2px; height: 12px; background: var(--text); border-radius: 1px; }
.bgroup h4 { display: flex; align-items: center; gap: 8px; margin: 14px 4px 6px; font: 600 11px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.bgroup h4 > span:last-child:not(.status) { margin-left: auto; letter-spacing: 0.04em; text-transform: none; font-weight: 500; }
.brow {
  position: relative; display: grid; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 14px; margin: 0 -4px;
  grid-template-columns: 88px minmax(0, 1fr) minmax(150px, 220px) minmax(0, 1fr) 150px 30px;
  grid-template-areas: 'when away meter home call add';
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; animation: rise 0.35s both;
}
.brow + .brow::before { content: ''; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px; background: var(--line); }
.brow:hover { background: var(--panel-2); border-color: var(--line); }
.brow:hover::before, .brow:hover + .brow::before { opacity: 0; }
.brow.b80 { box-shadow: inset 3px 0 0 var(--accent); }
.bw { grid-area: when; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 13px; color: var(--text-2); }
.bw .tm { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); }
.bt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bt.a { grid-area: away; flex-direction: row-reverse; text-align: right; }
.bt.h { grid-area: home; }
.bt .logo { width: 30px; height: 30px; }
.bn { min-width: 0; display: flex; flex-direction: column; }
.bn b { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; display: inline-flex; gap: 6px; align-items: center; }
.bt.a .bn b { justify-content: flex-end; }
.bn b em { font: 700 9px/1 var(--body); letter-spacing: 0.1em; color: var(--accent-ink); background: var(--accent); padding: 3px 5px; border-radius: 4px; font-style: normal; }
.bn small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs { font-family: var(--display); font-weight: 800; margin: 0 2px; }
.bs .score { font-size: 28px; }
.bs .pr { font-size: 17px; color: var(--text-2); }
.bt.pk .bs .pr { color: var(--text); }
.bt:not(.pk) .bn b { color: var(--text-2); }
.bt.lost .bn b, .bt.lost .bs { color: var(--text-3); }
.bm { grid-area: meter; }
.meter { position: relative; display: flex; gap: 2px; height: 12px; }
.meter span { display: block; height: 100%; }
.meter .ma { background: var(--s2); border-radius: 6px 2px 2px 6px; }
.meter .mh { background: var(--s1); border-radius: 2px 6px 6px 2px; }
.meter .mk { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; box-shadow: 0 0 0 2px var(--panel-solid); }
.bc { grid-area: call; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--text-2); text-align: right; }
.bc .chip { font-size: 10px; padding: 2px 8px; }
.bc > .chip + .chip { margin-top: -2px; }
.c80 { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.bc .pj { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--text); }
.bc .ex { white-space: nowrap; }
.brow .add-t { grid-area: add; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.brow .add-t:hover { color: var(--text); border-color: var(--text-3); }
.hq-hero { margin-bottom: 18px; }

/* The board sizes itself by its own width: one line when roomy, a three line scoreboard when not, a phone card when narrow. */
@container (max-width: 860px) {
  .brow { grid-template-columns: 74px minmax(0, 1fr) 128px 30px; gap: 6px 14px; grid-template-areas: 'when away call add' 'when home call add' 'when meter call add'; }
  .bt.a { flex-direction: row; text-align: left; }
  .bt.a .bn b { justify-content: flex-start; }
  .bt .bn { flex: 1; }
  .bm { padding-top: 4px; }
  .bc { justify-content: center; }
}
@container (max-width: 500px) {
  .brow { grid-template-columns: minmax(0, 1fr) auto 30px; gap: 8px 10px; padding: 12px 10px; grid-template-areas: 'when call add' 'away away away' 'home home home' 'meter meter meter'; }
  .bw { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .bw .tm { font-size: 16px; }
  .bc { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .bc .ex { display: none; }
  .bc .pj { font-size: 16px; }
}

/* evolution */
.ledger { display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: minmax(200px, 1.4fr) 2fr 64px 92px; gap: 12px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.lrow:last-child { border-bottom: 0; }
.lrow .ll { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lrow .ll .chip { font-size: 10px; padding: 1px 7px; flex: none; }
.lbar { position: relative; height: 10px; border-radius: 5px; background: var(--panel-2); }
.lbar .zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.lbar .fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.lbar .fill.k { background: color-mix(in srgb, var(--good) 75%, transparent); }
.lbar .fill.r { background: var(--text-3); opacity: 0.55; }
.lrow .lv { font-family: var(--display); font-weight: 700; font-size: 16px; text-align: right; color: var(--text-2); }
.lrow .lv.k { color: var(--text); }
.lesson, .vrow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lesson:last-child, .vrow:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .lrow { grid-template-columns: 1fr 64px; grid-template-areas: 'll lv' 'bar bar' 'st st'; gap: 6px; }
  .lrow .ll { grid-area: ll; } .lrow .lv { grid-area: lv; } .lrow .lbar { grid-area: bar; } .lrow .status { grid-area: st; }
}

/* phone nav */
.mnav, .scrim { display: none; }
/* iPhone browsers zoom the page in when a text box under 16px is tapped, and stay zoomed: the fixed phone bar then sits
   below the screen, under the browser's toolbar. 16px text in every box on a touch screen stops the zoom. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, [contenteditable="true"] { font-size: 16px !important; }
}

@media (max-width: 1100px) {
  .main-side, .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .main-side > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  body { display: block; }
  .rail { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); height: 100dvh; transform: translateX(-104%); transition: transform 0.25s ease; z-index: 30; background: var(--panel-solid); border-right: 1px solid var(--line-2); }
  body.menu-open .rail { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, 0.4); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(5, 7, 10, 0.5); backdrop-filter: blur(2px); }
  .scrim[hidden] { display: none; }
  .mnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
    backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .mnav a, .mnav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--text-3); cursor: pointer; }
  .mnav .ico { width: 22px; height: 22px; }
  .mnav a.on { color: var(--text); }
  .mnav a.on .ico { color: var(--accent); }
  .top { padding: 10px 14px; gap: 8px; }
  .search input { padding: 10px 12px 10px 38px; }
  main { padding: 2px 14px 110px; }
  h1 { font-size: 34px; }
  h2 { font-size: 22px; }
  .hero { margin: 12px 0 16px; }
  .hero p { font-size: 14px; }
  .hide-m { display: none; }
  .panel { padding: 16px; border-radius: 16px; }
  .g2, .g3, .main-side { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; }
  .tile .v { font-size: 32px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div { padding: 12px 14px; }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .strip .v { font-size: 30px; }
  .board-panel { padding: 14px 12px 6px; }
  .board-ctl { width: 100%; }
  .board-ctl .seg { overflow-x: auto; max-width: 100%; }
  .cal { gap: 4px; }
  .cal .dow { padding: 0 2px 2px; font-size: 10px; letter-spacing: 0.04em; }
  .cal .day { min-height: 58px; padding: 6px; border-radius: 10px; gap: 3px; }
  .cal .day .dn { font-size: 15px; }
  .cal .day .lgs span b { display: none; }
  .cal .day .lgs { font-size: 10px; }
  .matchup { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .panel-h { flex-wrap: wrap; }
  .matchup .side, .matchup .side.r { flex-direction: row; text-align: left; gap: 12px; }
  .matchup .side .logo.xl { width: 56px; height: 56px; }
  .matchup .side > div:nth-child(2) { flex: 1; min-width: 0; }
  .matchup .side h2 { overflow-wrap: anywhere; }
  .matchup .big { font-size: 48px; }
  .matchup .vs { text-align: left; padding-left: 68px; }
  .logo.xl { width: 72px; height: 72px; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 7px 8px; }
  .rank { grid-template-columns: minmax(110px, 1.2fr) 1fr 40px; gap: 8px; }
  .sync { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tabs .chip { flex: none; }
  .story { font-size: 15px; }
  .toast { bottom: 84px; }
  dialog { padding: 18px; }
}
/* Draft Room */
.up { color: var(--good); font-size: 12px; font-weight: 600; }
.down { color: var(--bad); font-size: 12px; font-weight: 600; }
a.drcard { display: block; text-decoration: none; color: inherit; transition: border-color 0.18s, transform 0.18s; }
a.drcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
a.drcard h2 { margin: 0 0 4px; }
.tdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.cell { width: 100%; min-width: 0; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; }
.cell:hover { border-color: var(--line); }
.cell:focus { border-color: var(--accent); outline: none; background: var(--panel); }
.num-in { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.drtbl td { padding: 4px 6px; }
.drtbl td:first-child { min-width: 150px; }
.dteams { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dteam { position: relative; padding: 16px 16px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.dteam::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tc); }
.tname { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--text); padding: 2px 6px; margin-left: -6px; width: 100%; min-width: 0; }
.tname:focus { border-color: var(--accent); outline: none; }
.pgroup { margin-bottom: 8px; }
.pglabel { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.pchip { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pchip:last-child { border-bottom: 0; }
.pchip b { font-family: var(--display); font-size: 17px; }
.pchip select { font-size: 12px; padding: 2px 4px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-3); max-width: 84px; }
.gday { padding: 8px 0; border-bottom: 1px solid var(--line); }
.gday:last-child { border-bottom: 0; }
.gdate { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.grow2 { display: grid; grid-template-columns: minmax(0, 1fr) 56px auto 56px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; }
.grow2 .gteam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow2 .sc { text-align: center; border-color: var(--line); font-family: var(--display); font-size: 18px; font-weight: 700; padding: 4px; }
.grow2 .gp { font-size: 12px; text-align: right; white-space: nowrap; }
.panel.alert { border-color: color-mix(in srgb, var(--serious) 55%, transparent); }
.trade { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 720px) {
  .grow2 { grid-template-columns: minmax(0, 1fr) 52px; row-gap: 4px; padding: 6px 0; }
  .grow2 > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .grow2 > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .grow2 > :nth-child(3) { display: none; }
  .grow2 > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .grow2 > :nth-child(5) { grid-column: 1; grid-row: 2; }
  .grow2 .gp { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .drtbl td:first-child { min-width: 120px; }
}
/* ---------- hits, misses, live, My picks ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.verdict, .trend, .vband, .rnote, .pk, .bn b em { --ok: var(--good); --no: var(--bad); }
.verdict svg, .trend svg, .vband svg, .rnote svg, .pk svg, .bn b em svg, .wparr svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.verdict { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; font: 800 11px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.verdict svg { width: 12px; height: 12px; }
.verdict.hit { background: color-mix(in srgb, var(--good) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--good); }
.verdict.hit svg { color: var(--good); }
.verdict.miss { background: color-mix(in srgb, var(--bad) 18%, transparent); box-shadow: inset 0 0 0 1.5px var(--bad); }
.verdict.miss svg { color: var(--bad); }
.rec-chips { display: inline-flex; gap: 6px; }
.rec-chips .verdict { padding: 2px 8px 2px 6px; }
.brow.v-hit { box-shadow: inset 4px 0 0 var(--good); background: color-mix(in srgb, var(--good) 7%, transparent); }
.brow.v-miss { box-shadow: inset 4px 0 0 var(--bad); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.brow.v-hit + .brow::before, .brow.v-miss + .brow::before { opacity: 0.5; }
.game.v-hit { box-shadow: var(--shadow), inset 4px 0 0 var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.game.v-miss { box-shadow: var(--shadow), inset 4px 0 0 var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.bn b em svg, .pk svg { width: 9px; height: 9px; stroke-width: 3.2; margin-right: 3px; vertical-align: -1px; }
.bn b em.hit { background: var(--good); color: #04130a; }
.bn b em.miss { background: var(--bad); color: #fff; }
.team-line .pk.hit, .team-line .pk.miss { padding: 2px 5px; border-radius: 4px; }
.team-line .pk.hit { background: var(--good); color: #04130a; }
.team-line .pk.miss { background: var(--bad); color: #fff; }
.bc .called { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.trend { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font: 600 12px/1.5 var(--body); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.trend b { color: var(--text); font-weight: 800; }
.trend svg { width: 12px; height: 12px; stroke-width: 2.2; }
.trend em { font-style: normal; font-size: 11px; margin-left: 2px; }
.trend.ok { border-color: color-mix(in srgb, var(--good) 60%, transparent); }
.trend.ok svg { color: var(--good); }
.trend.bad { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.trend.bad svg { color: var(--bad); }
.card-trend { margin-top: 8px; }
.meter .mk.st { width: 12px; height: 12px; top: 0; bottom: auto; margin-left: -6px; border-radius: 50%; background: transparent; box-shadow: 0 0 0 2px var(--text), 0 0 0 4px var(--panel-solid); }
.pbar-w { position: relative; padding-top: 12px; }
.pbar-w .pbar { margin-top: 0; }
.pmk { position: absolute; top: 11px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--text), 0 0 0 4px var(--panel-solid); pointer-events: none; }
@keyframes flash { from { background-color: color-mix(in srgb, var(--accent) 28%, transparent); } }
.brow.flash, .game.flash { animation: flash 1.8s ease-out !important; }
.fav { width: 30px; height: 30px; padding: 0; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-3); cursor: pointer; display: grid; place-items: center; position: relative; z-index: 2; transition: color 0.15s, border-color 0.15s; flex: none; }
.fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav:hover { color: var(--text); border-color: var(--text-3); }
.fav[aria-pressed='true'] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.fav[aria-pressed='true'] svg { fill: currentColor; }
.fav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bx { grid-area: add; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.bx .add-t { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
#nav a .cnt { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-3); }
#nav a .cnt:empty, .mnav .cnt:empty { display: none; }
/* game page */
.vband { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.vband svg { width: 30px; height: 30px; flex: none; }
.vband b { font-family: var(--display); font-size: 24px; letter-spacing: 0.02em; color: var(--text); margin-right: 4px; }
.vband.hit { background: color-mix(in srgb, var(--good) 13%, var(--panel)); border-color: color-mix(in srgb, var(--good) 55%, transparent); }
.vband.hit svg { color: var(--good); }
.vband.miss { background: color-mix(in srgb, var(--bad) 12%, var(--panel)); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.vband.miss svg { color: var(--bad); }
.wpnums { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 8px; }
.wpnums .k { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.wpnums b { font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1; }
.wpnums b.ok { color: var(--good); }
.wpnums b.bad { color: var(--bad); }
.wparr svg { width: 22px; height: 22px; color: var(--text-3); stroke-width: 2; }
.wpc .wpa.up { fill: color-mix(in srgb, var(--good) 20%, transparent); }
.wpc .wpa.down { fill: color-mix(in srgb, var(--bad) 18%, transparent); }
.ai { margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.ai-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai p { margin: 0 0 4px; }
.ai ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.ai-chip { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.ai.post.hit { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.ai.post.miss { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
/* period by period, probable scorers */
.tbl.lines td, .tbl.lines th { padding: 7px 8px; }
.tbl.lines td.r, .tbl.lines th.r { min-width: 36px; }
.tbl.lines tr.sub td { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 12px 8px 4px; border-bottom: 0; }
.tbl.lines td.cur { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tbl.lines tr.wprow td { font-size: 12px; font-weight: 700; }
.tbl.lines tr.wprow td.ok { color: var(--text); box-shadow: inset 0 -2px 0 var(--good); }
.tbl.lines tr.wprow td.bad { color: var(--text); box-shadow: inset 0 -2px 0 var(--bad); }
.tbl.lines b.num { font-size: 18px; }
.scorers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scol-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 40px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.snm { min-width: 0; display: flex; flex-direction: column; }
.snm b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snm small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; display: block; }
.sbar i { display: block; height: 100%; border-radius: 3px; }
.spct { font-family: var(--display); font-weight: 800; font-size: 17px; text-align: right; }
.srow.got { background: color-mix(in srgb, var(--good) 8%, transparent); }
.srow .verdict { padding: 1px 6px 1px 4px; vertical-align: 1px; }
@media (max-width: 820px) {
  .scorers { grid-template-columns: 1fr; gap: 12px; }
  .srow { grid-template-columns: minmax(0, 1fr) 48px 38px; gap: 8px; }
}

/* My picks */
.rnote { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); padding: 0 12px 12px 18px; }
.rnote svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.rnote.hit svg { color: var(--good); }
.rnote.miss svg { color: var(--bad); }
.rnote.hit, .rnote.miss { box-shadow: inset 4px 0 0 var(--line-2); }
.empty .big-star { width: 40px; height: 40px; margin: 0 auto 10px; display: block; fill: none; stroke: var(--text-3); stroke-width: 1.5; }
.strip .v.nx { font-size: 24px; line-height: 1.25; }
/* calendar */
.cal-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cal .dow span { display: none; }
.cal .day .dtop { display: flex; align-items: center; gap: 6px; }
.cal .day .dct { display: none; font-style: normal; font-size: 11px; color: var(--text-3); }
.cal .day .fv svg { width: 12px; height: 12px; fill: var(--accent); display: block; }
.cal .day .status.live i { width: 6px; height: 6px; }
.cal .day .drec { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.dbar { flex: 1; display: flex; gap: 2px; height: 5px; min-width: 0; }
.dbar i, .dbar u { display: block; height: 100%; text-decoration: none; }
.dbar i { background: var(--good); border-radius: 3px; }
.dbar u { background: var(--bad); border-radius: 3px; opacity: 0.75; }
.legend .dbar-key { width: 22px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--good) 0 58%, transparent 58% 66%, var(--bad) 66%); }
@container (max-width: 860px) {
  .trend em { display: none; }
}
@container (max-width: 500px) {
  .brow { grid-template-columns: minmax(0, 1fr) auto auto; }
  .bx { flex-direction: row; }
  .brow.v-hit .bc .tier, .brow.v-miss .bc .tier, .brow.is-live .bc .chip { display: none; }
  .bw .status { white-space: nowrap; }
}
@media (max-width: 820px) {
  .mnav a { position: relative; }
  .mnav .cnt { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 10px/16px var(--body); font-style: normal; text-align: center; }
  .cal-panel { padding: 10px 8px; }
  .cal { gap: 3px; }
  .cal .dow { font-size: 0; text-align: center; padding: 0 0 2px; }
  .cal .dow span { display: inline; font-size: 10px; }
  .cal .day { min-height: 52px; padding: 5px 4px 5px 5px; gap: 3px; border-radius: 9px; }
  .cal .day .dtop { gap: 3px; }
  .cal .day .dn { font-size: 15px; }
  .cal .day .dct { display: inline; font-size: 10px; }
  .cal .day .fv svg { width: 9px; height: 9px; }
  .cal .day .lgs { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .cal .day .lgs span em, .cal .day .lgs span b { display: none; }
  .cal .day .lgs i { width: 6px; height: 6px; border-radius: 50%; }
  .cal .day .drec .dtx { display: none; }
  .cal .day .dbar { height: 4px; }
  .cal-panel .legend { gap: 10px; font-size: 11px; }
  .vband { padding: 12px 14px; font-size: 14px; }
  .vband b { font-size: 20px; }
  .wpnums b { font-size: 34px; }
  .rnote { padding: 0 8px 12px 14px; }
}
@media (max-width: 360px) {
  .cal .day .dct { display: none; }
  .strip .v { font-size: 26px; }
  .strip .v.nx { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* Tickets: Pick 3 to Pick 8, every leg must win */
.tk { margin-bottom: 26px; }
.tk-ctl { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 16px; }
.tk-g { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.tk-g .k, .tk-sum .k, .tix-k .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.tk-g .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tk-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.tk-legs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.leg { display: grid; grid-template-columns: 26px minmax(0, 1.1fr) minmax(0, 1.5fr) auto 30px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.leg.flash { animation: flash 1.8s ease-out; }
.lmark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--display); color: var(--text-2); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.lmark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lmark i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.4s infinite; }
.leg.st-won { box-shadow: inset 3px 0 0 var(--good); }
.leg.st-won .lmark { color: var(--good); background: color-mix(in srgb, var(--good) 20%, transparent); box-shadow: inset 0 0 0 1.5px var(--good); }
.leg.st-lost { box-shadow: inset 3px 0 0 var(--bad); }
.leg.st-lost .lmark { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--bad); }
.leg.st-live { box-shadow: inset 3px 0 0 var(--warn); }
.leg.st-void { opacity: 0.6; }
.lteam { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lteam:hover .lnm b { text-decoration: underline; text-underline-offset: 3px; }
.lnm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lnm b, .lnm small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lnm small { font-size: 12px; color: var(--text-3); }
.lmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12px; color: var(--text-2); min-width: 0; }
.lsc b { color: var(--text); }
.lp { display: inline-flex; align-items: center; gap: 4px; justify-self: end; font-family: var(--display); font-weight: 800; font-size: 20px; white-space: nowrap; color: var(--text-3); }
.lp b { color: var(--text); }
.lp b.ok { color: var(--good); }
.lp b.bad { color: var(--bad); }
.lp svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lrm { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: 0.18s; }
.lrm:hover { color: var(--bad); border-color: var(--bad); }
.lrm svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tk-bench { margin-top: 10px; }
.tk-bench h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tk-bench h4 span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tk-bl { display: flex; flex-wrap: wrap; gap: 6px; }
.bench { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 13px; transition: 0.18s; }
.bench:hover { border-color: var(--accent); }
.bench span { color: var(--text-3); font-weight: 600; }
.bench small { color: var(--text-3); font-size: 11px; }
.tk-sum { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line-2); }
.tk-sum .big { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; color: var(--accent); }
.tk-sum .d { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.ladder { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 10px; }
.lad { display: grid; grid-template-columns: 14px minmax(0, 1fr) 50px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-3); }
.lad .bar { height: 7px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.lad .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.lad b { text-align: right; color: var(--text); font-family: var(--display); font-size: 15px; }
.tk-lab { font-size: 12.5px; color: var(--text-2); margin: 0 0 12px; line-height: 1.5; }
.tk-lab > b:first-child { color: var(--text); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.tk-yours { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tk-sizes { margin-bottom: 18px; padding: 6px 14px; }
.tix-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.tix-h .faint { font-size: 13px; margin-top: 4px; }
.tstat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 800 12px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-2); }
.tstat svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tstat.won { color: var(--text); background: color-mix(in srgb, var(--good) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--good); }
.tstat.won svg { color: var(--good); }
.tstat.lost { color: var(--text); background: color-mix(in srgb, var(--bad) 18%, transparent); box-shadow: inset 0 0 0 1.5px var(--bad); }
.tstat.lost svg { color: var(--bad); }
.tstat.live { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--warn); }
.tstat.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.4s infinite; }
.tix.st-won { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.tix.st-lost { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.tix-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.tix-k > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tix-k b { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.tix-k b.ok { color: var(--good); }
.tix-k b.bad { color: var(--bad); }
.segs { display: flex; gap: 4px; margin-bottom: 12px; }
.segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); }
.segs i.won { background: var(--good); }
.segs i.lost { background: var(--bad); }
.segs i.live { background: var(--warn); animation: pulse 1.4s infinite; }
.segs i.void { background: var(--mid); }
.tix .legs { display: flex; flex-direction: column; gap: 6px; }
.tix-f { margin-top: 12px; font-size: 12px; }
.pickopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.pickopt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; color: var(--text); min-width: 0; }
.pickopt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pickopt input { accent-color: var(--accent); margin: 0; flex: none; }
.pickopt .pn { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.pickopt .pn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickopt em { font-style: normal; font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.pickopt .pp { font-family: var(--display); font-weight: 800; font-size: 18px; }
@media (max-width: 1100px) {
  .tk-body { grid-template-columns: minmax(0, 1fr); }
  .tk-sum { position: static; }
}
@media (max-width: 820px) {
  .tk { padding: 14px 12px; }
  .tk-ctl { gap: 12px; }
  .leg { grid-template-columns: 26px minmax(0, 1fr) auto 30px; grid-template-areas: 'm t p x' 'm meta meta meta'; gap: 6px 10px; padding: 10px; }
  .leg > .lmark { grid-area: m; align-self: start; }
  .leg > .lteam { grid-area: t; }
  .leg > .lmeta { grid-area: meta; }
  .leg > .lp { grid-area: p; font-size: 18px; }
  .leg > :last-child { grid-area: x; }
  .tk-sum .big { font-size: 52px; }
  .tix-k { grid-template-columns: 1fr 1fr; }
  .tix-k > div:last-child { grid-column: 1 / -1; }
  .tix-k b { font-size: 19px; }
  .pickopts { grid-template-columns: 1fr; }
  .tk-yours h2 { font-size: 22px; }
}

/* Tickets tabs: builder and the order desk */
.tk-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.tk-tabs a { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tk-tabs a[aria-current='page'] { background: var(--panel-solid); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--line-2); }
.tk-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tk-money > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-money .k { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.tk-money b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.tk-place { border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px 14px 4px; margin: 0 0 14px; }
.tk-place legend { font-size: 13px; color: var(--text-2); padding: 0 6px; }
.tk-place .row { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }

/* Order desk */
.dk-strip .v.ok { color: var(--good); }
.dk-strip .v.bad { color: var(--bad); }
.goal { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.goal i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.dk-paste { margin-bottom: 18px; }
.dk-ph { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.dk-ph b { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: 0.01em; }
.dk-ph small { font-size: 13px; color: var(--text-2); max-width: 560px; }
/* A message box, the way a texting app's is: tap, then Paste. 16px text stops iPhone Safari zooming in on focus. */
.dk-bar { display: flex; align-items: center; gap: 10px; }
.dk-cam { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); cursor: pointer; }
.dk-cam:hover { color: var(--accent); border-color: var(--accent); }
.dk-cam svg { width: 22px; height: 22px; }
.dk-in { flex: 1; min-width: 0; min-height: 46px; max-height: 46px; overflow: hidden; padding: 12px 18px; border-radius: 23px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 16px; line-height: 20px; white-space: nowrap; cursor: text; outline: none; caret-color: var(--accent); -webkit-user-select: text; user-select: text; transition: border-color 0.18s, box-shadow 0.18s; }
.dk-in:empty::before { content: attr(data-ph); color: var(--text-3); pointer-events: none; }
.dk-in:focus, .dk-bar.over .dk-in { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.dk-in img { display: none; }
.dk-bar.busy .dk-in { border-color: var(--accent); }
#dkZoneMsg { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
#dkZoneMsg:not(:empty) { margin-top: 12px; }
#dkZoneMsg b { color: var(--text); }
.rc-ok { white-space: nowrap; color: var(--good); }
#dkRecon .bad { color: var(--bad); }
.rc-ok svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; vertical-align: -1px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dk-act { margin-top: 12px; gap: 8px; }
.rv { margin-bottom: 22px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rv-bal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--panel-2); }
.rv-bet { padding: 14px; margin-bottom: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.rv-bet.off { opacity: 0.55; }
.rv-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rv-save { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.rv-save input, .rv-bonus input, .rv-bal input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.rv-f { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rv-f label, .rv-l2 label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); min-width: 0; }
.rv-f input, .rv-f select, .rv-l2 input, .rv-l2 select { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; min-width: 0; width: 100%; }
.rv-f input:disabled { opacity: 0.5; }
.rv-f .rv-bonus { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--text); padding-bottom: 10px; cursor: pointer; }
.rv-p { font-size: 12.5px; margin: 10px 0; }
.rv-legs { display: flex; flex-direction: column; gap: 8px; }
.rv-leg { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.rv-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.rv-l1 .faint { font-size: 12px; }
.rv-l2 { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.rv-l2 .rv-g { flex: 1 1 260px; }
.rv-l2 .rv-o { width: 96px; }
.rv-l2 label:not(.rv-g):not(.rv-o) { flex: 0 1 170px; }
.chip.warn { border-color: var(--warn); color: var(--text); }
.chip.bonus { border-color: var(--accent); color: var(--accent); font-size: 11px; vertical-align: middle; }
.tix-k small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tix.ord h3 { font-size: 20px; }
.dk-grid { margin: 18px 0; }
.dk-p { font-size: 13px; line-height: 1.55; margin: 10px 0 0; }
.dk-h4 { margin: 16px 0 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.dk-now { display: flex; flex-direction: column; gap: 6px; }
.dk-n { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.dk-n span { grid-column: 1; font-size: 12px; color: var(--text-2); }
.dk-n em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--accent); }
.dk-loss { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.tbl tr.hl td { background: color-mix(in srgb, var(--accent) 9%, transparent); }

/* Game centre */
.gc { margin-bottom: 18px; }
.gc-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 26px; align-items: start; }
.gc-ls tr.gc-shots td { font-size: 12px; padding-top: 4px; padding-bottom: 4px; }
.gc-stats { display: flex; flex-direction: column; gap: 8px; }
.gc-st { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 10px; align-items: center; }
.gc-st > b { font-family: var(--display); font-size: 17px; font-weight: 800; }
.gc-st > b:last-child { text-align: right; }
.gc-st small { display: block; text-align: center; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.gc-bar { display: flex; gap: 3px; height: 6px; }
.gc-bar i { border-radius: 3px; background: var(--s2); }
.gc-bar i:last-child { background: var(--s1); }
.gc-bar.none { background: var(--panel-2); border-radius: 3px; }
.gc-h3 { margin: 18px 0 8px; font-size: 16px; }
.gc-stars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gc-stars > div { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.gc-stars small { color: var(--text-3); }
.gc-star { color: var(--warn); letter-spacing: -2px; font-size: 12px; }
.gc-per h4 { margin: 12px 0 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.gc-goal { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gc-g { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.gc-g small { font-size: 12px; color: var(--text-3); }
.gc-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
.gc-m b.num { font-size: 13px; white-space: nowrap; }
.gc details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.gc summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.gc-box { margin-top: 8px; font-size: 13px; }
.gc-box td, .gc-box th { padding: 6px 8px; white-space: nowrap; }
.gc-box td small { color: var(--text-3); font-size: 11px; }
.gc-sub { display: inline-block; width: 12px; }
@media (max-width: 820px) {
  .rv-f { grid-template-columns: 1fr 1fr; }
  .tk-money b { font-size: 17px; }
  .gc-top { grid-template-columns: minmax(0, 1fr); }
  .gc-goal { grid-template-columns: 24px minmax(0, 1fr); }
  .gc-m { grid-column: 2; justify-content: flex-start; }
  .dk-ph b { font-size: 20px; }
}
.dk-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
@media (max-width: 1100px) { .dk-grid2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- underdogs (#/dogs) ---------- */
.dg-list { display: flex; flex-direction: column; gap: 8px; }
.dg { display: block; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); color: inherit; transition: border-color 0.18s; }
.dg:hover { border-color: var(--text-3); }
.dg.val { border-color: color-mix(in srgb, var(--good) 55%, transparent); box-shadow: inset 4px 0 0 var(--good); }
.dg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.dg-top .dg-tag { margin-left: auto; }
.bn b .vd { font: 700 9px/1 var(--body); letter-spacing: 0.1em; padding: 2px 4px; border-radius: 4px; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--good); background: color-mix(in srgb, var(--good) 18%, transparent); }
.dg-tag.val { color: var(--text); background: color-mix(in srgb, var(--good) 20%, transparent); border-color: var(--good); }
.dg-tag.short { color: var(--text-3); }
.dg-m { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 10px 0 10px; }
.dg-n { display: flex; flex-direction: column; min-width: 0; }
.dg-n b { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-n small { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-pr { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.dg-k { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 12px; }
.dg-pc-out .dg-k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dg-k > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dg-k span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.dg-k b { font-size: 14px; font-weight: 700; }
.dg-k b.ok, .dk-p b.ok, .tbl td.ok, .strip .v.ok { color: var(--good); }
.dg-k b.bad { color: var(--bad); }
.dg-pc-out { margin-top: 4px; }
.dg-tbl td:first-child { white-space: nowrap; }
@media (max-width: 720px) {
  .dg .dg-k { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dg-pr { font-size: 22px; }
}

/* ---------- lines (#/lines): the sportsbook's own layout ---------- */
.ln-h, .ln-r { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 92px); gap: 8px; align-items: center; }
.ln-h { padding: 10px 12px; margin: 16px 0 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.ln-h span { text-align: center; font-weight: 700; }
.ln-g { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.ln-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ln-n .logo { width: 28px; height: 28px; }
.ln-nm { display: flex; flex-direction: column; min-width: 0; }
.ln-nm b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.ln-nm small { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-pk { font: 700 9px/1 var(--body); letter-spacing: 0.1em; color: var(--accent-ink); background: var(--accent); padding: 3px 5px; border-radius: 4px; font-style: normal; flex: none; }
.ln-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; padding: 6px 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-align: center; line-height: 1.2; }
.ln-c small { font-size: 12px; color: var(--text-2); }
.ln-c b { font-size: 15px; font-weight: 700; color: var(--price); }
.ln-c em { font-style: normal; font-size: 11px; color: var(--text-3); }
.ln-c.val { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--panel)); }
.ln-c.val em { color: var(--good); font-weight: 700; }
.ln-c.none { background: transparent; border-style: dashed; }
.ln-f { display: flex; align-items: center; gap: 10px; font-size: 12px; padding-top: 2px; min-width: 0; }
.ln-pj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ln-t { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); font-weight: 600; white-space: nowrap; flex: none; }
.ln-f .add-t { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.tk-st { margin-top: 10px; table-layout: fixed; width: 100%; font-size: 13px; }
.tk-st th, .tk-st td { padding: 7px 6px; white-space: normal; }
.tk-st th:first-child, .tk-st td:first-child { width: 26%; }
.tk-plan { margin-bottom: 18px; }
.tk-plan .tk-money { margin-bottom: 4px; }
@media (max-width: 720px) {
  .ln-h, .ln-r { grid-template-columns: minmax(0, 1fr) repeat(3, 62px); gap: 5px; }
  .ln-h, .ln-g { padding-left: 8px; padding-right: 8px; }
  .panel.ln { padding-left: 10px; padding-right: 10px; }
  .ln-n { gap: 6px; }
  .ln-pk { font-size: 8px; padding: 2px 4px; }
  .ln-nm b { font-size: 14px; }
  .ln-f { gap: 8px; }
  .ln-n .logo { width: 22px; height: 22px; }
  .ln-c { min-height: 50px; }
  .ln-c b { font-size: 14px; }
}
