:root {
  color-scheme: dark;
  --bg: #05070d; --bg2: #0a0e1a; --panel: #0f1626; --panel2: #131c30;
  --line: #1e293b; --line2: #24324a;
  --txt: #e8ecf5; --dim: #9aa6bf; --faint: #56617a;
  --accent: #38bdf8; --accent2: #818cf8; --good: #34d399; --bad: #f87171; --warn: #fbbf24;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #14213d 0%, var(--bg2) 55%, var(--bg) 100%);
  color: var(--txt); min-height: 100vh; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

/* top bar */
.topbar { display: flex; align-items: center; gap: .8rem; padding: 1rem 0 1.5rem; }
.brand { font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand .accent { background: linear-gradient(100deg,var(--accent),var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line2); border-radius: 999px; padding: .3rem .7rem; }
.spacer { flex: 1; }
.navlink { color: var(--dim); font-size: .85rem; }
.navlink:hover { color: var(--txt); }

h1.page { font-size: clamp(1.4rem,3.5vw,2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 1.6rem 0 .7rem; }

/* game cards (index) */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: .8rem; }
.gamecard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
  transition: border-color .15s, transform .15s; }
.gamecard:hover { border-color: var(--accent); transform: translateY(-2px); }
.gamecard .date { font-size: .72rem; color: var(--faint); margin-bottom: .6rem; }
.row { display: flex; align-items: center; justify-content: space-between; padding: .2rem 0; }
.row .team { font-weight: 600; }
.row .score { font-variant-numeric: tabular-nums; font-weight: 700; }
.row.win .team, .row.win .score { color: var(--txt); }
.row.lose .team, .row.lose .score { color: var(--dim); }
.status { font-size: .68rem; color: var(--faint); margin-top: .5rem; text-transform: uppercase; letter-spacing: .1em; }

/* game page header */
.gh { display: flex; align-items: center; justify-content: center; gap: 2rem; padding: .5rem 0 1.5rem; flex-wrap: wrap; }
.gh .t { text-align: center; }
.gh .t .abbr { font-size: 1.6rem; font-weight: 800; }
.gh .t .nm { font-size: .78rem; color: var(--dim); }
.gh .sc { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gh .sc.win { color: var(--txt); } .gh .sc.lose { color: var(--faint); }
.gh .mid { text-align: center; color: var(--faint); font-size: .8rem; }

/* panels */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.1rem; }
.panel h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: .7rem; }

/* box tables */
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { text-align: right; padding: .38rem .3rem; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--faint); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line2); }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:hover { background: var(--panel2); }
td.name { font-weight: 600; }
td.name .st { color: var(--accent); font-size: .7rem; margin-left: .25rem; }
.tablewrap { overflow-x: auto; }

/* svg charts */
.court, .flow { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 1rem; font-size: .72rem; color: var(--dim); margin-top: .5rem; justify-content: center; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.muted { color: var(--faint); font-size: .8rem; }
footer { margin-top: 3rem; text-align: center; color: var(--faint); font-size: .75rem; }

/* props page */
.props-slate { color: var(--faint); font-size: .9rem; font-weight: 600; margin-left: .5rem; }
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
table.props { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.props th { text-align: left; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); padding: .7rem .8rem; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.props td { padding: .45rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.props tr:last-child td { border-bottom: none; }
table.props .num, table.props th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.props .over { color: var(--good); font-weight: 600; }
table.props .under { color: var(--bad); font-weight: 600; }
table.props .flags { font-size: .72rem; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--dim); }
.parlaycard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
