:root {
  --bg: #0a0f1c; --card: #111a2e; --line: #1f2b45; --text: #e6ebf5; --muted: #8291ad;
  --gold: #ffb81c; --beer: #f2a900; --pos: #34d399; --neg: #f87171; --live: #60a5fa;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3, .brand, .banner, .big, .kicker { font-family: Oswald, Impact, sans-serif; letter-spacing: .02em; }
h1 { margin: 0; font-size: 1.8rem; }
h2 { margin: 2rem 0 .8rem; font-size: 1.4rem; text-transform: uppercase; color: var(--gold); }
h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.pos { color: var(--pos); } .neg { color: var(--neg); }

.top { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 16px; border-bottom: 1px solid var(--line); background: #070b15; position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--gold); text-decoration: none; text-transform: uppercase; }
nav { display: flex; gap: .3rem; }
nav a { text-decoration: none; padding: .35rem .8rem; border-radius: 6px; color: var(--muted); font-weight: 600; }
nav a.on, nav a:hover { background: var(--card); color: var(--text); }
main { max-width: 1200px; margin: 0 auto; padding: 1.2rem 16px 3rem; }
footer { text-align: center; padding: 1rem 16px 2rem; font-size: .8rem; }

.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.controls { display: flex; gap: .4rem; flex-wrap: wrap; }
select, .btn { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .7rem; font: inherit; text-decoration: none; }
.btn.off { opacity: .35; pointer-events: none; }
.banner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: 1.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.banner span:first-child { color: var(--live); text-shadow: 3px 3px 0 #1e3a8a; }
.banner .wk { color: var(--gold); text-shadow: 3px 3px 0 #92400e; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .35rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.median td { border-bottom: 2px dashed var(--gold); color: var(--gold); font-size: .75rem; text-align: center; padding: .15rem; }
tr.last td { background: rgba(242, 169, 0, .08); }
tr.cut td { border-bottom: 2px solid var(--live); }
.res { display: inline-block; width: 1.6rem; text-align: center; border-radius: 4px; font-weight: 700; font-size: .75rem; padding: .1rem 0; }
.res.W { background: rgba(52, 211, 153, .18); color: var(--pos); }
.res.L { background: rgba(248, 113, 113, .18); color: var(--neg); }

.team { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.team span { display: flex; flex-direction: column; line-height: 1.2; }
.team small { color: var(--muted); font-size: .75rem; }
.team b { display: inline-flex; gap: .4rem; align-items: center; }
.logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }
.beers { font-size: .8rem; }

.hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.2rem; align-items: center; padding: 1.2rem; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(135deg, #3b2300, #111a2e 60%); border: 1px solid #5c3b00; }
.hero.live { display: flex; flex-wrap: wrap; gap: 1.2rem; background: linear-gradient(135deg, #0c2a4d, #111a2e 60%); border-color: #1e3a8a; }
.hero.calm { display: block; background: var(--card); border-color: var(--line); }
.hero h2 { margin: 0; }
.hero .team b { font-size: 1.2rem; }
.hero .logo { width: 44px; height: 44px; }
.hero-info { display: flex; flex-direction: column; gap: .6rem; }
.hero video, .gun video { width: 100%; max-height: 480px; border-radius: 8px; background: #000; }
.novid { border: 2px dashed #5c3b00; border-radius: 8px; padding: 2.5rem 1rem; text-align: center; color: var(--beer); font-family: Oswald, sans-serif; font-size: 1.3rem; }
.novid small { font-family: Inter, sans-serif; font-size: .8rem; color: var(--muted); }
.kicker { text-transform: uppercase; color: var(--gold); font-size: .8rem; letter-spacing: .08em; }
.big { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.big.sm { font-size: 1.6rem; }

.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.award { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.award .player { font-weight: 700; font-size: 1.05rem; }
.times { font-size: .72rem; color: var(--beer); font-weight: 600; }
.row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

.chart { width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 10px; }
.chart .grid { stroke: var(--line); }
.chart .ln { fill: none; stroke: #5b6b8c; stroke-width: 1.3; opacity: .55; }
.chart.hl .ln { opacity: .15; }
.chart .med { fill: none; stroke: var(--gold); stroke-dasharray: 5 4; stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .75rem; color: var(--muted); }
.legend span { cursor: default; }
.legend span:hover { color: var(--gold); }

.box { margin-bottom: 1rem; }
.box-head { font-weight: 600; margin-bottom: .8rem; }
.box-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.lineup td { padding: .25rem .4rem; font-size: .85rem; }
.tag { width: 2.6rem; }
.mvp, .lvp, .opt { font-size: .65rem; padding: .1rem .3rem; border-radius: 3px; }
.mvp { background: rgba(52, 211, 153, .2); color: var(--pos); }
.lvp { background: rgba(248, 113, 113, .2); color: var(--neg); }
.opt { background: rgba(96, 165, 250, .2); color: var(--live); }
.acc { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); margin: .6rem 0; }
.acc b { color: var(--text); }
details summary { cursor: pointer; color: var(--muted); font-size: .8rem; }

.matrix th, .matrix td { text-align: center; font-size: .8rem; padding: .3rem; }
.matrix tbody th { text-align: left; white-space: nowrap; color: var(--text); text-transform: none; font-size: .8rem; }
.matrix .self { background: var(--line); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gun { display: flex; flex-direction: column; gap: .5rem; }
.gun .novid { padding: 1.5rem; font-size: 1rem; }

@media (max-width: 800px) {
  .grid2, .box-cols, .hero { grid-template-columns: 1fr; }
  .banner { font-size: 1.4rem; }
  .big { font-size: 2rem; }
}
