:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-3: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eef1f8;
  --muted: #9aa3b8;
  --dim: #636c82;
  --hit: #22d68a;
  --hit-2: #0fb37a;
  --miss: #ff4d6d;
  --push: #f5b942;
  --a1: #2dd4bf;
  --a2: #6d7cff;
  --a3: #b56dff;
  --grad: linear-gradient(135deg, var(--a1), var(--a2) 55%, var(--a3));
  --radius: 18px;
  --shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.75);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(45, 212, 191, 0.13), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(109, 124, 255, 0.14), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(181, 109, 255, 0.08), transparent 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(109, 124, 255, 0.45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.16); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Shell ---------- */
#app { position: relative; z-index: 1; display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.sidebar {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0e1a, #06080f);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 30px -6px rgba(109,124,255,.6); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 11px; color: var(--dim); margin-top: 4px; letter-spacing: .08em; text-transform: uppercase; }
.nav-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 14px 12px 6px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 500; transition: background .15s, color .15s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(109,124,255,.18), rgba(109,124,255,.04)); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav a .badge { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(34,214,138,.15); color: var(--hit); font-weight: 600; }
.side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); display: grid; gap: 6px; }
.side-foot b { color: var(--muted); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hit); display: inline-block; box-shadow: 0 0 10px var(--hit); margin-right: 6px; }
.dot.warn { background: var(--push); box-shadow: 0 0 10px var(--push); }

main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(8, 11, 20, .92); position: relative; z-index: 20; }
.search { position: relative; flex: 1; max-width: 560px; }
.search input {
  width: 100%; height: 44px; padding: 0 90px 0 44px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); outline: none; transition: border .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: rgba(109,124,255,.6); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(109,124,255,.12); }
.search > svg { position: absolute; left: 15px; top: 13px; width: 18px; height: 18px; color: var(--dim); }
.search kbd { position: absolute; right: 12px; top: 11px; }
kbd { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); }
.results {
  position: absolute; top: 52px; left: 0; right: 0; max-height: 440px; overflow: auto; padding: 6px;
  background: rgba(14, 18, 32, .97); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); display: none;
}
.results.open { display: block; }
.result { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; cursor: pointer; }
.result.sel, .result:hover { background: var(--panel-2); }
.result .meta { color: var(--dim); font-size: 12px; }
.result .imp { margin-left: auto; font: 600 11px var(--mono); color: var(--dim); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.week-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: 13px; }
.week-pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--hit); box-shadow: 0 0 12px var(--hit); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

#view { flex: 1; overflow: auto; padding: 28px; overscroll-behavior: contain; }
.page { max-width: 1480px; margin: 0 auto; animation: rise .2s ease-out; }
.sentinel { height: 1px; grid-column: 1 / -1; }
.sentinel td { padding: 0; border: 0; }
/* Skip rendering work for repeated cards that are off-screen */
.club-card, .lock-card, .game, .parlay-card { content-visibility: auto; contain-intrinsic-size: auto 240px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Primitives ---------- */
.h1 { font: 700 30px/1.1 var(--display); letter-spacing: -0.025em; margin: 0; }
.h2 { font: 650 18px/1.2 var(--display); letter-spacing: -0.01em; margin: 0; }
.h3 { font: 600 13px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sub { color: var(--muted); margin-top: 6px; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row { display: flex; gap: 12px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.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)); }
.g-side { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1250px) { .g-side { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { #app { grid-template-columns: 76px 1fr; } .brand-name, .brand-sub, .nav a span, .nav-label, .side-foot, .nav a .badge { display: none; } .g2, .g3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card.pad-0 { padding: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 600; font-size: 13px; transition: all .15s; white-space: nowrap;
}
.btn:hover { background: var(--panel-3); border-color: rgba(255,255,255,.2); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(109,124,255,.8); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 38px; padding: 0; justify-content: center; }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--panel-3); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.seg button.on.over { background: rgba(34,214,138,.18); color: var(--hit); }
.seg button.on.under { background: rgba(255,77,109,.18); color: var(--miss); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.chip.on { background: rgba(109,124,255,.18); border-color: rgba(109,124,255,.55); color: #fff; }
.chip .bk { margin-left: 6px; font: 600 11px var(--mono); color: var(--a1); }

.field { display: grid; gap: 6px; }
.field label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.input, select.input {
  height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); outline: none; min-width: 0;
}
.input:focus { border-color: rgba(109,124,255,.6); }
select.input option { background: #111627; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0,0,0,.25); overflow: hidden; }
.stepper button { width: 36px; height: 40px; border: 0; background: transparent; font-size: 18px; color: var(--muted); }
.stepper button:hover { background: var(--panel-2); color: #fff; }
.stepper input { width: 84px; height: 40px; border: 0; background: transparent; text-align: center; font: 700 18px var(--display); outline: none; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill.hit { background: rgba(34,214,138,.14); color: var(--hit); }
.pill.miss { background: rgba(255,77,109,.14); color: var(--miss); }
.pill.push { background: rgba(245,185,66,.14); color: var(--push); }
.pill.dnp, .pill.bye { background: rgba(255,255,255,.06); color: var(--dim); }
.pill.q { background: rgba(245,185,66,.14); color: var(--push); }
.pill.out { background: rgba(255,77,109,.14); color: var(--miss); }
.pill.neutral { background: rgba(255,255,255,.07); color: var(--muted); }
.pill.accent { background: rgba(109,124,255,.18); color: #b7bfff; }
.pill.book { background: rgba(45,212,191,.12); color: var(--a1); }

.team-logo { object-fit: contain; vertical-align: middle; }
.logo-fallback { display: inline-grid; place-items: center; border-radius: 50%; background: var(--panel-2); font: 700 9px var(--font); color: var(--muted); }
.headshot { border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.12), rgba(255,255,255,.02)); border: 1px solid var(--line-2); flex: none; }
.pos { display: inline-block; font: 700 10.5px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--panel-2); color: var(--muted); letter-spacing: .04em; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.kpi .val { font: 700 28px/1.1 var(--display); margin-top: 8px; letter-spacing: -0.02em; }
.kpi .val small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.kpi .foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.good .val { color: var(--hit); } .kpi.bad .val { color: var(--miss); }
.kpi .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad); }
.kpi.good .bar { background: linear-gradient(90deg, var(--hit-2), var(--hit)); }
.kpi.bad .bar { background: linear-gradient(90deg, #ff3b5c, #ff7a8f); }

/* Tables */
.tbl-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl-wrap .tbl th { position: sticky; top: 0; z-index: 2; }
/* Long tables scroll with the page (no nested scroll box); headers stick to the top of the view */
.tbl-wrap.flow { overflow: visible; }
.tbl-wrap.flow .tbl th { top: -28px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 12px 14px; background: #0c1020; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.sort { cursor: pointer; } .tbl th.sort:hover { color: var(--text); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:hover { background: rgba(255,255,255,.028); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.big { font: 700 16px var(--display); }
.tbl tr.dnp td { opacity: .55; }
.player-cell { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.player-cell .nm { font-weight: 650; }
.player-cell .sm { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 28px; border: 1px solid var(--line-2); margin-bottom: 20px; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-bg); opacity: .9; }
.hero::after { content: ''; position: absolute; right: -40px; top: -60px; width: 360px; height: 360px; background: var(--hero-logo) center/contain no-repeat; opacity: .09; transform: rotate(-8deg); }
.hero > * { position: relative; z-index: 1; }
.hero-main { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero .headshot { width: 118px; height: 118px; border: 3px solid rgba(255,255,255,.18); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
.hero-name { font: 700 38px/1 var(--display); letter-spacing: -0.03em; }
.hero-meta { display: flex; gap: 10px; align-items: center; margin-top: 10px; color: rgba(255,255,255,.8); flex-wrap: wrap; }
.hero-next { margin-left: auto; padding: 14px 18px; border-radius: 16px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); min-width: 250px; }
.hero-next .lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero-next .vs { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); margin-top: 6px; }
.hero-next .sm { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 4px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { position: relative; border: 0; background: transparent; padding: 12px 16px; font-weight: 600; color: var(--muted); }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: #fff; }
.tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Prop control bar */
.propbar { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 18px; }

/* Ring */
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .pct { font: 700 30px/1 var(--display); letter-spacing: -0.03em; }
.ring .lb { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Chart */
.chart { width: 100%; }
.chart text { fill: var(--muted); font: 600 11px var(--font); }
.chart .val { fill: var(--text); font: 700 11.5px var(--display); }
.chart .lineLbl { fill: var(--push); font: 700 11px var(--mono); }

/* Injuries in game log */
.injs { display: flex; flex-wrap: wrap; gap: 5px; max-width: 420px; }
.inj { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: rgba(255,77,109,.09); color: #ffb3c0; border: 1px solid rgba(255,77,109,.18); white-space: nowrap; }
.inj.opp { background: rgba(109,124,255,.09); color: #c2c8ff; border-color: rgba(109,124,255,.2); }
.inj b { font: 700 10px var(--mono); opacity: .8; }
.healthy { font-size: 12px; color: var(--hit); opacity: .8; }

/* Scouting */
.pbar { display: grid; grid-template-columns: 190px 1fr 64px 52px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pbar:last-child { border-bottom: 0; }
.pbar .track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.pbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.pbar .v { text-align: right; font: 600 13px var(--mono); }
.pbar .p { text-align: right; font: 700 12px var(--mono); }
.sw-list { display: grid; gap: 10px; }
.sw { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); align-items: flex-start; }
.sw .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; }
.sw.s .ic { background: rgba(34,214,138,.14); color: var(--hit); }
.sw.w .ic { background: rgba(255,77,109,.14); color: var(--miss); }
.sw .t { font-weight: 650; }
.sw .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.arch { display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(45,212,191,.1), rgba(109,124,255,.1)); border: 1px solid rgba(109,124,255,.25); }
.arch b { font: 700 14px var(--display); }
.arch span { font-size: 12px; color: var(--muted); }

/* Matchup */
.grade { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font: 800 24px var(--display); }
.grade.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.g-a { background: rgba(34,214,138,.16); color: var(--hit); box-shadow: inset 0 0 0 1px rgba(34,214,138,.35); }
.g-b { background: rgba(45,212,191,.14); color: #5eead4; box-shadow: inset 0 0 0 1px rgba(45,212,191,.3); }
.g-c { background: rgba(245,185,66,.14); color: var(--push); box-shadow: inset 0 0 0 1px rgba(245,185,66,.3); }
.g-d { background: rgba(255,140,90,.14); color: #ff9b6b; box-shadow: inset 0 0 0 1px rgba(255,140,90,.3); }
.g-f { background: rgba(255,77,109,.14); color: var(--miss); box-shadow: inset 0 0 0 1px rgba(255,77,109,.35); }
.notes { display: grid; gap: 10px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.note::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--dim); }
.note.good::before { background: var(--hit); box-shadow: 0 0 10px var(--hit); }
.note.bad::before { background: var(--miss); box-shadow: 0 0 10px var(--miss); }
.note.neutral::before { background: var(--push); }
.defender { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.defender:last-child { border-bottom: 0; }
.defender .st { margin-left: auto; font: 600 12px var(--mono); color: var(--muted); text-align: right; }
.factor { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.factor:last-child { border-bottom: 0; }
.factor .f { font: 700 13px var(--mono); }
.factor .f.up { color: var(--hit); } .factor .f.down { color: var(--miss); }
.proj-big { font: 700 46px/1 var(--display); letter-spacing: -0.03em; }
.meter { height: 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,77,109,.35), rgba(255,255,255,.08) 50%, rgba(34,214,138,.35)); position: relative; margin: 14px 0 6px; }
.meter i { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 3px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); transform: translateX(-2px); }
.lean { font: 800 13px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.lean.over { color: var(--hit); } .lean.under { color: var(--miss); } .lean.none { color: var(--muted); }

/* Slate */
.slate { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.game { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.game:hover { transform: translateY(-2px); border-color: var(--line-2); }
.game .when { font-size: 11.5px; color: var(--dim); font-weight: 600; letter-spacing: .04em; display: flex; justify-content: space-between; }
.game .tm { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.game .tm .n { font: 650 15px var(--display); }
.game .tm .x { margin-left: auto; font: 600 12.5px var(--mono); color: var(--muted); }
.game .tm .x.fav { color: var(--a1); }
.game .tm .sc { margin-left: auto; font: 700 18px var(--display); }
.game .tm .sc.w { color: #fff; } .game .tm .sc.l { color: var(--dim); }
.game .foot { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; }

.spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 30px; }
.spark i { display: block; width: 7px; border-radius: 2px; min-height: 2px; }
.spark i.h { background: var(--hit); } .spark i.m { background: var(--miss); opacity: .85; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font: 700 22px var(--display); color: var(--text); margin-bottom: 8px; }
.hint { font-size: 12.5px; color: var(--dim); }
.callout { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(109,124,255,.3); background: rgba(109,124,255,.08); color: #cdd2ff; font-size: 13px; }
.callout.warn { border-color: rgba(245,185,66,.3); background: rgba(245,185,66,.07); color: #f7d58c; }

.club-card { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; cursor: pointer; transition: all .15s; position: relative; overflow: hidden; }
.club-card:hover { border-color: rgba(34,214,138,.4); transform: translateY(-2px); }
.club-card .ln { font: 700 26px/1 var(--display); color: var(--hit); letter-spacing: -0.02em; }
.club-card .ln small { font: 600 12px var(--font); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.club-card::after { content: '100%'; position: absolute; right: 14px; top: 14px; font: 800 11px var(--mono); color: var(--hit); padding: 3px 7px; border-radius: 7px; background: rgba(34,214,138,.12); }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }

.heat td.hc { text-align: center; font: 600 12.5px var(--mono); border-radius: 0; }

/* Weather chip */
.wx { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wx.bad { color: #ffcf7a; }

/* ---------- AI / Parlay Builder ---------- */
.nav a .badge.ai { background: linear-gradient(135deg, rgba(45,212,191,.2), rgba(181,109,255,.25)); color: #d9ccff; }
.ai-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(181,109,255,.35); background: rgba(181,109,255,.08); font-size: 12.5px; font-weight: 600; color: #d9ccff; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--a3); animation: pulse 2s infinite; }
.ai-orb { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none; font-size: 26px; color: #fff; background: var(--grad); box-shadow: 0 12px 40px -10px rgba(181,109,255,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.ai-orb.sm { width: 40px; height: 40px; border-radius: 13px; font-size: 18px; }
.ai-orb.xs { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.chat-card { display: flex; flex-direction: column; height: calc(100vh - 290px); min-height: 520px; padding-bottom: 16px; }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 4px 12px; margin: 0 -4px; scroll-behavior: smooth; }
.chat-welcome { text-align: center; padding: 40px 20px 10px; display: flex; flex-direction: column; align-items: center; }
.chat-welcome .chip { text-align: left; }
.msg { display: flex; gap: 10px; margin: 12px 0; align-items: flex-start; }
.msg.me { justify-content: flex-end; }
.msg .bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; line-height: 1.55; }
.msg.me .bubble { background: linear-gradient(135deg, rgba(109,124,255,.35), rgba(181,109,255,.28)); border: 1px solid rgba(109,124,255,.4); border-bottom-right-radius: 5px; white-space: pre-wrap; }
.msg.ai .bubble { background: var(--panel-2); border: 1px solid var(--line); border-top-left-radius: 5px; }
.bubble p { margin: 0 0 6px; } .bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 20px; } .bubble li { margin: 3px 0; }
.bubble code { font: 600 12px var(--mono); background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 5px; }
.md-h { font: 700 15px var(--display); margin: 8px 0 4px; } .md-gap { height: 6px; }
.typing { display: inline-flex; gap: 4px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--a2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tool-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 6px 38px; padding: 7px 12px; border-radius: 10px; font-size: 12.5px; background: rgba(0,0,0,.2); border: 1px dashed var(--line-2); width: fit-content; max-width: 90%; }
.tool-row .dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--a1); animation: spin .8s linear infinite; display: inline-block; flex: none; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.ok { color: var(--hit); font-weight: 800; }
.chat-input { border-top: 1px solid var(--line); padding-top: 14px; }
.ask { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 18px; border: 1px solid rgba(109,124,255,.45); background: rgba(0,0,0,.3); box-shadow: 0 0 0 4px rgba(109,124,255,.08), 0 10px 40px -20px rgba(109,124,255,.8); }
.ask:focus-within { border-color: rgba(181,109,255,.8); box-shadow: 0 0 0 4px rgba(181,109,255,.15), 0 10px 40px -16px rgba(181,109,255,.9); }
.ask svg { width: 20px; height: 20px; color: #c9b5ff; flex: none; margin-bottom: 10px; }
.ask textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; font-size: 15px; line-height: 1.45; padding: 8px 0; max-height: 160px; }
.ask textarea::placeholder { color: var(--dim); }
.parlay-card { margin: 12px 0; padding: 16px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(34,214,138,.08), rgba(109,124,255,.06) 60%, rgba(255,255,255,.02)); border: 1px solid rgba(34,214,138,.28); box-shadow: 0 18px 40px -24px rgba(34,214,138,.6); }
.legs { display: grid; gap: 8px; margin-top: 12px; }
.leg { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.leg-prop { font-size: 13px; margin-top: 2px; }
.lnk { font-weight: 650; cursor: pointer; } .lnk:hover { text-decoration: underline; }
.conf { width: 64px; text-align: right; flex: none; }
.conf-n { font: 800 18px var(--display); color: var(--hit); }
.conf-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px; }
.conf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--hit-2), var(--hit)); }
.auto-hero { background: radial-gradient(600px 240px at 0% 0%, rgba(181,109,255,.16), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.game-progress { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.gp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 11px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-size: 12px; }
.gp.running { border-color: rgba(45,212,191,.5); box-shadow: 0 0 18px -6px rgba(45,212,191,.7); }
.gp.done { border-color: rgba(34,214,138,.3); }
.gp.error { border-color: rgba(255,77,109,.4); }
.gp-n { font: 600 11.5px var(--mono); color: var(--muted); margin-left: 2px; }
.lock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.lock-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, border-color .15s; }
.lock-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc, var(--a1)); opacity: .9; }
.lock-card:hover { transform: translateY(-2px); border-color: rgba(34,214,138,.35); }
.lc-name { font: 700 16px var(--display); }
.lc-prop { font: 700 20px var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-prop .pill { font-family: var(--font); letter-spacing: 0; }
.lc-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.lc-stats b { color: var(--text); font-family: var(--mono); }
.lc-head { font-weight: 700; }
.lc-why { font-size: 13px; color: var(--muted); line-height: 1.55; }
.verdict { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 12px; min-width: 62px; }
.verdict span { font: 800 10.5px var(--mono); letter-spacing: .12em; }
.verdict b { font: 800 20px var(--display); line-height: 1.1; }
.verdict.lock { background: rgba(34,214,138,.14); color: var(--hit); box-shadow: inset 0 0 0 1px rgba(34,214,138,.4), 0 0 24px -8px rgba(34,214,138,.8); }
.verdict.strong { background: rgba(45,212,191,.12); color: #5eead4; box-shadow: inset 0 0 0 1px rgba(45,212,191,.3); }
.verdict.lean, .verdict.pass { background: rgba(245,185,66,.12); color: var(--push); }
.slip-col { position: sticky; top: 0; }
.slip-legs { display: grid; gap: 8px; }
.slip-leg { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-box { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.odds-in { width: 70px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); text-align: right; font: 700 13px var(--mono); outline: none; }
.odds-in:focus { border-color: rgba(109,124,255,.7); }
.odds-in.bad { border-color: var(--miss); }
.bk-lbl { font: 700 9.5px var(--mono); letter-spacing: .06em; color: var(--a1); text-transform: uppercase; }
.bk-lbl.manual { color: var(--push); }
.bk-lbl.none { color: var(--dim); }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13.5px; }
.calc-row.total { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 10px; font-size: 15px; }
.calc-row.total b { font-size: 17px; }
.stake { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 8px; background: rgba(0,0,0,.3); }
.stake input { width: 70px; height: 30px; border: 0; background: transparent; outline: none; text-align: right; font: 700 14px var(--mono); }
.warnline { color: #f7d58c; margin-top: 6px; }
.btn.on-slip { border-color: rgba(34,214,138,.45); color: var(--hit); background: rgba(34,214,138,.1); }
.slip-leg .x { border: 0; background: transparent; color: var(--dim); font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.slip-leg .x:hover { color: var(--miss); background: rgba(255,77,109,.1); }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: pre; z-index: 50;
  padding: 8px 10px; border-radius: 10px; font: 500 12px/1.4 var(--font); color: var(--text); background: #151a2e; border: 1px solid var(--line-2); box-shadow: var(--shadow); pointer-events: none; text-align: left;
}

/* Loader */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .4s; }
#loader.hide { opacity: 0; pointer-events: none; }
.load-box { width: 380px; text-align: center; }
.load-box .brand-mark { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 22px; animation: float 2.4s ease-in-out infinite; }
.load-box .brand-mark svg { width: 38px; height: 38px; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-4deg); } }
.load-title { font: 700 28px var(--display); letter-spacing: -0.02em; }
.load-bar { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; margin: 22px 0 12px; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; border-radius: 6px; }
.load-step { color: var(--muted); font-size: 13px; }
.load-err { color: var(--miss); margin-top: 14px; font-size: 13px; }

#login { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; background: radial-gradient(800px 500px at 20% 0%, rgba(45,212,191,.12), transparent 60%), radial-gradient(800px 600px at 100% 100%, rgba(181,109,255,.12), transparent 60%), var(--bg); padding: 16px; }
#login.show { display: grid; }
.login-box { width: 100%; max-width: 380px; padding: 34px 30px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow: var(--shadow); text-align: center; }
.login-box .field { text-align: left; }
.login-box .input { height: 44px; }
.login-box .brand-mark { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px; }
.login-box .brand-mark svg { width: 34px; height: 34px; }
.user-chip { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.user-chip .avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 12px; }
.user-chip .btn { margin-left: auto; }
#toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; gap: 10px; }
.toast { padding: 12px 16px; border-radius: 12px; background: #151a2e; border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: rise .25s ease; max-width: 380px; }
.toast.err { border-color: rgba(255,77,109,.4); }

.skel { background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.sep { height: 1px; background: var(--line); margin: 16px 0; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.up { color: var(--hit); } .down { color: var(--miss); }
