:root {
  --bg: #0a0c10;
  --bg2: #0f1218;
  --surface: #13171f;
  --surface2: #191e28;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --fg: #eef1f6;
  --fg2: #b7bfcc;
  --mut: #7d8796;
  --gold: #f2c14e;
  --gold2: #c9952b;
  --live: #ff4655;
  --ok: #3ccf7e;
  --bad: #ff6b6b;
  --r: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; min-height: 100vh; color: var(--fg); font: 14px/1.5 var(--font);
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(242, 193, 78, .07), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(80, 120, 255, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
a:hover { color: var(--gold) }
img { display: block }
button, input, select { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 12, 16, .8); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line) }
.top-in { max-width: 1320px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 28px }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; font-size: 16px; white-space: nowrap }
.brand:hover { color: var(--fg) }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold), var(--gold2)); box-shadow: 0 0 18px rgba(242, 193, 78, .35); position: relative }
.brand .mark::after { content: ""; position: absolute; inset: 7px; border-radius: 2px; background: var(--bg) }
.brand small { color: var(--mut); font-weight: 500 }
nav.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none }
nav.tabs::-webkit-scrollbar { display: none }
nav.tabs a { padding: 8px 13px; border-radius: 8px; color: var(--fg2); font-weight: 500; white-space: nowrap; transition: background .15s, color .15s }
nav.tabs a:hover { color: var(--fg); background: var(--surface) }
nav.tabs a.on { color: var(--fg); background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2) }
.status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 12px; white-space: nowrap }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite }
.dot.stale { background: var(--gold); animation: none }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 126, .55) } 70% { box-shadow: 0 0 0 8px rgba(60, 207, 126, 0) } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 126, 0) } }

/* ---------- layout ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 28px 20px 40px }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px }
.page-head h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; margin: 4px 0 0 }
.page-head p { margin: 6px 0 0; color: var(--mut); max-width: 640px }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; color: var(--gold) }
h2.sec { font-size: 15px; font-weight: 600; margin: 32px 0 12px; display: flex; align-items: center; gap: 10px }
h2.sec .count { color: var(--mut); font-weight: 500 }
h2.sec .aside { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--fg2) }
.muted { color: var(--mut) }
.small { font-size: 12px }
.row { display: flex; align-items: center; gap: 8px }
.wrap { flex-wrap: wrap }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px }
.panel { background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow) }
.panel.pad { padding: 18px }
.panel h3 { margin: 0 0 14px; font-size: 12px; font-weight: 600; color: var(--fg2); text-transform: uppercase; letter-spacing: .09em }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px }
.kpi { padding: 16px 18px }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.kpi .l { color: var(--mut); font-size: 12px; margin-top: 2px }
.kpi .v.gold { color: var(--gold) }
.kpi .v.live { color: #ff8a93 }

/* ---------- pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface2); color: var(--fg2); white-space: nowrap }
.pill.live { background: rgba(255, 70, 85, .14); color: #ff8a93 }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live) }
.pill.q { background: rgba(60, 207, 126, .14); color: var(--ok) }
.pill.gold { background: rgba(242, 193, 78, .14); color: var(--gold) }
a.pill:hover { filter: brightness(1.2) }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip { cursor: pointer; border: 1px solid var(--line2); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg2); transition: all .15s; display: inline-flex; align-items: center; gap: 7px }
.chip:hover { color: var(--fg); border-color: rgba(255, 255, 255, .24) }
.chip.on { color: #0a0c10; background: var(--fg); border-color: var(--fg) }
.chip .n { opacity: .55; font-weight: 500 }
.cls { font-weight: 600 }
.cdot { width: 8px; height: 8px; border-radius: 2px; flex: none; display: inline-block }

/* ---------- toolbar ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px }
.input, select { height: 38px; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; outline: none }
select { padding-right: 8px; cursor: pointer }
.input:focus, select:focus { border-color: rgba(242, 193, 78, .6) }
.search-wrap { position: relative }
.search-wrap .input { min-width: 290px; padding-left: 36px }
.search-wrap::before { content: ""; position: absolute; left: 13px; top: 12px; width: 10px; height: 10px; border: 2px solid var(--mut); border-radius: 50%; pointer-events: none }
.search-wrap::after { content: ""; position: absolute; left: 24px; top: 25px; width: 6px; height: 2px; background: var(--mut); transform: rotate(45deg); pointer-events: none }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--fg2); cursor: pointer; user-select: none }
.toggle input { accent-color: var(--gold); width: 16px; height: 16px }
.btn { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface); cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 6px }
.btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .26); color: var(--fg) }
.btn:disabled { opacity: .35; cursor: default }
.btn.primary { background: var(--gold); color: #1a1406; border-color: var(--gold); font-weight: 600 }
.btn.primary:hover { color: #1a1406; filter: brightness(1.08) }
.ext::after { content: "↗"; font-size: 11px; opacity: .7 }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r) }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px }
table.t th { background: var(--surface2); color: var(--mut); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 11px 12px; white-space: nowrap; border-bottom: 1px solid var(--line) }
table.t th.s { cursor: pointer; user-select: none }
table.t th.s:hover { color: var(--fg) }
table.t th.sorted { color: var(--gold) }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap }
table.t tr:last-child td { border-bottom: 0 }
table.t tbody tr:hover td { background: rgba(255, 255, 255, .025) }
table.t .n { text-align: right; font-variant-numeric: tabular-nums }
.pname { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 }
.pname:hover { color: var(--fg) }
.pname:hover .nm { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px }
.rec { font-variant-numeric: tabular-nums; font-weight: 600 }
.rec .w { color: var(--ok) } .rec .l { color: var(--bad) } .rec .sep { color: var(--mut); margin: 0 1px }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px }

/* ---------- pods ---------- */
.podlist { overflow: hidden }
.podrow { display: grid; grid-template-columns: 80px 170px 100px minmax(120px, 1fr) 140px minmax(0, 220px) 14px; gap: 16px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 13px }
.podrow:last-child { border-bottom: 0 }
.podrow:hover { background: rgba(255, 255, 255, .025); color: inherit }
.podrow.phead2 { padding-top: 10px; padding-bottom: 10px; background: var(--surface2); color: var(--mut); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em }
.podrow.phead2 .pls { color: var(--mut); font-weight: 600; font-size: 11px }
.podrow.phead2 .ptop { font-size: 11px }
.podrow .pn { font-size: 14px }
.podrow .pbar { display: flex; align-items: center; gap: 10px }
.podrow .pbar .prog { flex: 1; margin: 0 }
.podrow .pls { display: inline-flex; align-items: center; gap: 7px; color: #ff8a93; font-weight: 600; font-size: 12px }
.podrow .ptop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px }
.podrow .chev { color: var(--mut); font-size: 18px; line-height: 1 }
.podrow .prd { color: var(--fg2) }
.pst { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; color: var(--mut) }
.pst::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor }
.pst.live { color: var(--ok) } .pst.wait { color: var(--gold) } .pst.idle { color: var(--mut) } .pst.done { color: var(--fg2) }
.pods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px }
.pod { padding: 15px 16px; display: block; transition: border-color .15s, transform .15s }
.pod:hover { border-color: rgba(242, 193, 78, .45); transform: translateY(-1px); color: inherit }
.pod .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px }
.pod .h b { font-size: 15px }
.pod .meta { display: flex; justify-content: space-between; gap: 8px; color: var(--mut); font-size: 12px }
.pod .meta + .meta { margin-top: 4px }
.prog { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 99px; overflow: hidden; margin: 10px 0 }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 99px }
.state { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mut) }
.state.open { color: var(--ok) } .state.complete { color: var(--gold) }

/* ---------- streams ---------- */
.streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px }
.stream { overflow: hidden; display: block; transition: border-color .15s, transform .15s }
.stream:hover { border-color: rgba(255, 70, 85, .5); transform: translateY(-2px); color: inherit }
.thumb { position: relative; aspect-ratio: 16/9; background: #05060a }
.thumb img { width: 100%; height: 100%; object-fit: cover }
.thumb .pill { position: absolute; left: 10px; top: 10px; background: rgba(10, 12, 16, .82); backdrop-filter: blur(6px) }
.thumb .vw { position: absolute; right: 10px; bottom: 10px; background: rgba(10, 12, 16, .82); padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600 }
.stream .b { padding: 12px 14px }
.stream .who { font-weight: 600; font-size: 14px }
.stream .sub { color: var(--fg2); font-size: 12px; margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.stream .ttl { color: var(--mut); font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.stream .vsline { margin-top: 4px; font-size: 13px; flex-wrap: nowrap; overflow: hidden }
.stream .vsline .pname { min-width: 0; overflow: hidden } .stream .vsline .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.stream .sub.muted { gap: 6px; margin-top: 4px }
.stream .sub a:hover { color: var(--gold) }
a.thumb { display: block }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity }
.strip > * { scroll-snap-align: start }

/* ---------- bars ---------- */
.hb { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; font-size: 13px; padding: 5px 0 }
.hb .bar { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 99px; overflow: hidden }
.hb .bar i { display: block; height: 100%; border-radius: 99px }
.hb .r { text-align: right; color: var(--fg2); font-variant-numeric: tabular-nums; font-size: 12px }

/* ---------- matches ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line2) }
.seg a { padding: 6px 16px; border-radius: 7px; font-weight: 500; color: var(--fg2) }
.seg a.on { background: var(--surface2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2) }
.seg a:hover { color: var(--fg) }
.matches { }
.vlist { max-width: 760px; margin: 0 auto; overflow: hidden }
.vgrp { text-align: center; padding: 12px 16px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015) }
.vgrp .count { color: var(--fg2); margin-left: 8px }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px }
.vrow:last-child { border-bottom: 0 }
.vrow:hover { background: rgba(255, 255, 255, .02) }
.vside { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; white-space: nowrap }
.vside.r { justify-content: flex-start }
.vside:not(.r) .pname { flex-direction: row-reverse }
.vside .pname { min-width: 0; overflow: hidden }
.vside .nm { overflow: hidden; text-overflow: ellipsis }
.vside.won .nm { font-weight: 700; color: var(--fg) }
.vside.lost .nm { color: var(--mut) }
.vmid { text-align: center }
.score { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--fg); background: var(--surface2); padding: 3px 10px; border-radius: 7px; font-size: 13px }
details.past { max-width: 760px; margin: 14px auto 0 }
details.past > summary { list-style: none; cursor: pointer; text-align: center; color: var(--fg2); font-size: 13px; font-weight: 600; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
details.past > summary::-webkit-details-marker { display: none }
details.past > summary::before { content: "▸ "; color: var(--mut) }
details.past[open] > summary::before { content: "▾ " }
details.past > summary .count { color: var(--mut); font-weight: 500; margin-left: 8px }
details.past[open] > summary { border-radius: var(--r) var(--r) 0 0; border-bottom: 0 }
details.past[open] .vlist { border-top-left-radius: 0; border-top-right-radius: 0 }
@media (max-width: 520px) { .vrow { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 8px; padding: 10px 10px; font-size: 13px } .score { padding: 2px 6px } }
table.mt td, table.mt th { padding: 9px 12px }
table.mt .c { text-align: center; width: 1% }
table.mt td.mid { width: 64px }
table.mt tr.grp td { background: rgba(255, 255, 255, .02); color: var(--mut); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px 7px }
table.mt tr.grp .count { color: var(--fg2); margin-left: 8px }
table.mt tr.playing td:first-child { box-shadow: inset 3px 0 0 var(--live) }
table.mt td.pcell.won .nm { font-weight: 700 }
table.mt td.pcell.lost .nm { color: var(--fg2) }
table.mt td.tcell { font-size: 12px }
table.mt td:nth-child(5) { border-left: 1px solid var(--line) }
table.mt tr.grp td { border-left: 0 }
.keys { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mut); font-size: 12px; margin: -6px 0 12px }
.keys > span { display: inline-flex; align-items: center; gap: 6px }
.keys .res { width: 18px; height: 18px; font-size: 10px }
.keys .split { color: var(--fg2); font-variant-numeric: tabular-nums }
.mgroup { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); border-bottom: 1px solid var(--line) }
.mgroup .count { color: var(--fg2) }
.match { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 16px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line) }
.match:last-child { border-bottom: 0 }
.match:hover { background: rgba(255, 255, 255, .02) }
.match.playing { box-shadow: inset 3px 0 0 var(--live) }
.match .side { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 190px) 16px; gap: 10px; align-items: center; min-width: 0; white-space: nowrap }
.match .side.right { grid-template-columns: 16px minmax(0, 190px) minmax(0, 1fr) 22px; text-align: right }
.match .side.right .pname, .match .side.right .speclink { justify-content: flex-end }
.match .side.right .pname { flex-direction: row-reverse }
.match .side.l .nm { color: var(--fg2) }
.match .side.w .nm { font-weight: 700 }
.match .side .pname { min-width: 0; overflow: hidden }
.match .side .pname .nm { overflow: hidden; text-overflow: ellipsis }
.match .side .speclink { font-size: 12px; min-width: 0; overflow: hidden }
.match .vs { font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: .12em; text-align: center; font-weight: 600 }
.match.playing .vs { color: #ff8a93 }
.res { width: 22px; height: 22px; flex: none; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700 }
.res.w { background: rgba(60, 207, 126, .2); color: var(--ok) }
.res.l { background: rgba(255, 107, 107, .16); color: #ff9a9a }
.vsline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px }
.vsline .vs { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .08em }
.speclink { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 500 }
.speclink .split { color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums }
a.speclink:hover span:first-child { text-decoration: underline; text-underline-offset: 3px }
a.speclink:hover { color: inherit }
.tw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #ff8a93; font-variant-numeric: tabular-nums }
.tw:hover { color: #ffb3b9 }
.rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none }
.tw.mini { padding: 4px }

/* ---------- player ---------- */
.phead { display: flex; gap: 18px; align-items: center; padding: 20px 22px; flex-wrap: wrap }
.crest { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line2) }
.crest img { width: 100%; height: 100% }
.phead h1 { margin: 0; font-size: 26px; letter-spacing: -.02em }
.phead .sub { color: var(--fg2); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.facts { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap }
.fact .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums }
.fact .l { color: var(--mut); font-size: 11px; text-transform: uppercase; letter-spacing: .08em }
.hist { display: flex; gap: 8px; flex-wrap: wrap }
.hist a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface2); font-size: 13px }
.hist .g { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 11px; background: var(--surface) }
.hist .g.W { background: rgba(60, 207, 126, .18); color: var(--ok) }
.hist .g.L { background: rgba(255, 107, 107, .16); color: var(--bad) }
.hist .g.T { color: var(--gold) }

/* ---------- talent trees ---------- */
.trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.tree { padding: 16px 14px 20px; position: relative; overflow: hidden; isolation: isolate }
.tree .bgimg { position: absolute; inset: 0; z-index: -1; opacity: .16; background-size: cover; background-position: center; filter: saturate(.7) }
.tree .th { display: flex; align-items: center; gap: 10px; margin-bottom: 16px }
.tree .th img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line2) }
.tree .th b { font-size: 15px }
.tree .th .pts { margin-left: auto; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums }
.tgrid { position: relative; margin: 0 auto }
.tgrid svg { position: absolute; inset: 0; pointer-events: none; overflow: visible }
.tgrid svg line { stroke: rgba(255, 255, 255, .14); stroke-width: 3; stroke-linecap: round }
.tgrid svg line.on { stroke: rgba(60, 207, 126, .7) }
.tn { position: absolute; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; padding: 0; border: 0; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); transition: transform .12s }
.tn img { width: 100%; height: 100%; border-radius: 10px; filter: grayscale(1) brightness(.42); transition: filter .15s }
.tn.on img { filter: none }
.tn.on { box-shadow: 0 0 0 2px var(--ok), 0 4px 12px rgba(0, 0, 0, .5) }
.tn.max { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(242, 193, 78, .35) }
.tn .rk { position: absolute; right: -7px; bottom: -7px; min-width: 24px; height: 18px; padding: 0 4px; border-radius: 6px; background: #0a0c10; box-shadow: 0 0 0 1px var(--line2); font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; color: var(--mut); font-variant-numeric: tabular-nums }
.tn.on .rk { color: var(--ok) }
.tn.max .rk { color: var(--gold) }
.tn:hover, .tn:focus-visible { transform: translateY(-2px); z-index: 2 }
.tn.heat img { filter: grayscale(calc(1 - var(--h))) brightness(calc(.32 + .68 * var(--h))) }
.tn.heat { box-shadow: 0 0 0 2px rgba(242, 193, 78, calc(.15 + .85 * var(--h))), 0 0 calc(16px * var(--h)) rgba(242, 193, 78, calc(.4 * var(--h))) }
.tn.heat .rk { color: var(--fg); min-width: 32px }
.legend { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 12px }
.legend .grad { width: 140px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #2a2d33, var(--gold)) }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--fg2); background: var(--surface2); padding: 3px 8px; border-radius: 6px }

/* tooltip */
#tip { position: fixed; z-index: 100; left: 0; top: 0; max-width: 340px; padding: 12px 14px; border-radius: 12px; pointer-events: none; background: rgba(15, 18, 24, .97); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.45; opacity: 0; transition: opacity .12s }
#tip.show { opacity: 1 }
#tip .tt { font-weight: 700; font-size: 14px }
#tip .ts { color: var(--mut); font-size: 12px; margin: 2px 0 8px }
#tip .td { color: var(--fg2) }
#tip .tn2 { color: var(--mut); font-size: 12px; margin-top: 8px }
#tip .stat { display: flex; justify-content: space-between; gap: 18px; font-variant-numeric: tabular-nums; margin-top: 4px }
#tip .stat b { color: var(--gold) }

/* ---------- misc ---------- */
.notice { max-width: 1320px; margin: 0 auto; padding: 12px 20px 0; color: var(--mut); font-size: 12px }
.notice a, footer a { color: var(--fg2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .2); text-underline-offset: 3px }
footer { max-width: 1320px; margin: 0 auto; padding: 22px 20px 40px; color: var(--mut); font-size: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 24px }
.empty { padding: 36px; text-align: center; color: var(--mut) }
.skeleton { height: 140px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.4s infinite }
@keyframes sk { to { background-position: -200% 0 } }
.mx { border-collapse: separate; border-spacing: 3px; font-size: 12px }
.mx td { width: 56px; height: 34px; text-align: center; border-radius: 6px; background: var(--surface2); font-variant-numeric: tabular-nums; font-weight: 600 }
.mx th { font-size: 11px; color: var(--mut); padding: 2px 8px; text-align: right; font-weight: 600 }
.mx thead th { text-align: center }
details > summary { cursor: pointer; color: var(--fg2); font-size: 13px; margin-top: 12px }
.lnk { color: var(--gold) }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px }

@media (max-width: 1040px) { .trees { grid-template-columns: 1fr } .cols-2 { grid-template-columns: 1fr } }
@media (max-width: 1100px) {
  .podrow { grid-template-columns: 70px 160px 90px minmax(100px, 1fr) 130px 14px }
  .podrow .ptop { display: none }
}
@media (max-width: 720px) {
  table.mt thead { display: none }
  table.mt, table.mt tbody { display: block }
  table.mt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; grid-template-areas: "pa ta ra" "pb tb rb"; gap: 4px 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); align-items: center }
  table.mt tr.grp { display: block; padding: 0 }
  table.mt tr.grp td { display: block }
  table.mt td { padding: 0; border: 0 !important; white-space: nowrap }
  table.mt td:nth-child(1) { grid-area: pa } table.mt td:nth-child(2) { grid-area: ta } table.mt td:nth-child(3) { grid-area: ra }
  table.mt td:nth-child(4) { display: none }
  table.mt td:nth-child(5) { grid-area: rb } table.mt td:nth-child(6) { grid-area: pb } table.mt td:nth-child(7) { grid-area: tb }
  table.mt td.tcell { text-align: right }
  table.mt tr.playing { box-shadow: inset 3px 0 0 var(--live) }
  table.mt tr.playing td:first-child { box-shadow: none }
  table.mt .pcell .pname { min-width: 0; overflow: hidden } table.mt .pcell .nm { overflow: hidden; text-overflow: ellipsis }
}
@media (max-width: 720px) {
  .podrow { grid-template-columns: 62px 1fr auto 14px; gap: 10px; padding: 12px 14px }
  .podrow .prd, .podrow .pbar, .podrow .ptop { display: none }
  h2.sec { flex-wrap: wrap }
  .kpis { grid-template-columns: 1fr 1fr }
  .top-in { gap: 10px 14px; height: auto; padding: 10px 14px; flex-wrap: wrap }
  nav.tabs { order: 3; width: 100%; margin: 0 -4px }
  main { padding: 18px 14px 32px }
  .search-wrap { flex: 1 1 100% }
  .search-wrap .input { min-width: 0; width: 100% }
  .page-head h1 { font-size: 22px }
  .hb { grid-template-columns: 92px 1fr 84px }
  .facts { margin-left: 0 }
  .match { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); padding: 10px 12px; gap: 8px }
  .match .side { grid-template-columns: 22px minmax(0, 1fr) auto 12px; gap: 7px }
  .match .side.right { grid-template-columns: 12px auto minmax(0, 1fr) 22px }
  .match .side .speclink .split { display: none }
  .seg { width: 100% } .seg a { flex: 1; text-align: center }
}
@media (max-width: 520px) {
  .match .side { grid-template-columns: 22px minmax(0, 1fr) 0 12px }
  .match .side.right { grid-template-columns: 12px 0 minmax(0, 1fr) 22px }
  .match .side .speclink { visibility: hidden }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important } }
