:root{
  --brand:#0b1f3a; --brand-2:#13325e; --accent:#1baf7a;
  --bg:#f5f6f8; --surface:#ffffff; --surface-2:#f0f1f4; --line:#e3e5ea;
  --text:#0b0b0b; --text-2:#52514e; --muted:#80807a;
  --pl:#2a78d6; --pt:#e34948; --oth:#b9b8b2;
  --pl-1:#cde2fb; --pl-2:#86b6ef; --pl-3:#3987e5; --pl-4:#1c5cab;
  --pt-1:#fbd3d2; --pt-2:#f19a99; --pt-3:#e34948; --pt-4:#a82a2a;
  --mid:#e6e5e1; --nodata:#d9d9d6;
  --good:#0ca30c; --warn:#fab219; --serious:#ec835a; --crit:#d03b3b;
  --good-ink:#006300; --warn-ink:#8a5a00; --serious-ink:#a3441c; --crit-ink:#b02a2a;
  --shadow:0 1px 2px rgba(16,24,40,.06),0 4px 16px rgba(16,24,40,.06);
  --r:16px; --nav-h:66px; --top-h:58px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --brand:#5b8def; --brand-2:#2c4f8f;
  --bg:#111110; --surface:#1a1a19; --surface-2:#232321; --line:#2e2e2b;
  --text:#f0efec; --text-2:#c3c2b7; --muted:#8f8e86;
  --pl:#3987e5; --pt:#e66767; --oth:#5d5c57;
  --pl-1:#1b3556; --pl-2:#245694; --pl-3:#3987e5; --pl-4:#86b6ef;
  --pt-1:#4a2222; --pt-2:#8e3636; --pt-3:#e66767; --pt-4:#f4a3a3;
  --mid:#383835; --nodata:#2c2c2a;
  --good-ink:#5fd35f; --warn-ink:#fac04a; --serious-ink:#f0a07f; --crit-ink:#ef7a7a;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 4px 18px rgba(0,0,0,.35);
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);
  font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px)}
a{color:inherit}
button{font:inherit;color:inherit}
svg{display:block}
.top{position:sticky;top:0;z-index:30;height:var(--top-h);display:flex;align-items:center;gap:12px;padding:0 16px;
  background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:15.5px;letter-spacing:-.01em;white-space:nowrap}
.brand b{font-weight:800}
.topnav{display:none;margin-left:auto;gap:4px}
.topnav a{text-decoration:none;padding:8px 12px;border-radius:10px;color:var(--text-2);font-weight:500;font-size:14px}
.topnav a.on{background:var(--surface-2);color:var(--text)}
.icon-btn{margin-left:auto;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;cursor:pointer}
.topnav+.icon-btn{margin-left:0}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.i-moon{display:none}
[data-theme="dark"] .i-sun{display:none}[data-theme="dark"] .i-moon{display:block}
@media(min-width:900px){.topnav{display:flex}.bottomnav{display:none!important}body{padding-bottom:32px}}

.bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);
  height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
  background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.bottomnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--muted);font-size:11px;font-weight:600}
.bottomnav a svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottomnav a.on{color:var(--brand)}
.bottomnav a.on svg{stroke-width:2.2}

main{max-width:1180px;margin:0 auto;padding:16px}
.loading{display:flex;flex-direction:column;align-items:center;gap:14px;padding:80px 0;color:var(--muted)}
.spin{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--brand);animation:sp 0.8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.fade{animation:fd .35s ease both}@keyframes fd{from{opacity:0;transform:translateY(6px)}}

.hero{position:relative;overflow:hidden;border-radius:22px;padding:22px 20px;color:#fff;margin-bottom:16px;
  background:linear-gradient(135deg,#0b1f3a 0%,#13325e 60%,#1c5cab 130%)}
.hero .bgimg{position:absolute;inset:0;background-size:cover;background-position:72% 45%;opacity:.6;-webkit-mask-image:linear-gradient(90deg,transparent 15%,#000 70%);mask-image:linear-gradient(90deg,transparent 15%,#000 70%)}
@media(min-width:900px){.hero{padding:40px 36px;min-height:280px}.hero .bgimg{left:45%;background-size:cover;background-position:center 40%}}
.hero>*{position:relative}
.hero .kick{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.hero h1{margin:6px 0 6px;font-size:clamp(22px,5.6vw,34px);line-height:1.12;letter-spacing:-.02em;font-weight:800}
.hero p{margin:0;opacity:.88;max-width:640px;font-size:14.5px}
.hero .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.hero .chip{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff}

.grid{display:grid;gap:12px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:900px){.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.split{grid-template-columns:1.35fr 1fr}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;box-shadow:var(--shadow);min-width:0}
.card h2,.card h3{margin:0 0 4px;letter-spacing:-.01em}
.card h2{font-size:17px}.card h3{font-size:15px}
.sub{color:var(--text-2);font-size:13.5px;margin:0 0 12px}
.muted{color:var(--muted)}
.sec-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:22px 2px 10px}
.sec-title h2{margin:0;font-size:19px;letter-spacing:-.015em}
.sec-title span{color:var(--muted);font-size:13px}

.stat{display:flex;flex-direction:column;gap:2px}
.stat .lbl{font-size:12px;color:var(--text-2);font-weight:600;display:flex;align-items:center;gap:6px}
.stat .val{font-weight:800;letter-spacing:-.02em;font-size:clamp(18px,5vw,26px);line-height:1.15;font-variant-numeric:tabular-nums}
.stat .val.sm{font-size:clamp(15px,4vw,19px)}
.stat .dlt{font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}
.up{color:var(--good-ink)}.down{color:var(--crit-ink)}
.dot{width:10px;height:10px;border-radius:3px;display:inline-block;flex:none}
.dot.pl{background:var(--pl)}.dot.pt{background:var(--pt)}.dot.oth{background:var(--oth)}

.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;color:var(--text-2);white-space:nowrap}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}
[data-theme="dark"] .chip.on{color:#0b0b0b}
.seg{display:inline-flex;background:var(--surface-2);border-radius:12px;padding:3px;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}
.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.scroll-x{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.scroll-x::-webkit-scrollbar{display:none}

.mapwrap{position:relative}
.map{width:100%;height:auto;touch-action:manipulation}
.map path{stroke:var(--surface);stroke-width:1.2;cursor:pointer;transition:fill .35s ease,opacity .2s}
.map.mun path{stroke-width:.5}
.map path:hover,.map path.hl{stroke:var(--text);stroke-width:2;paint-order:stroke}
.map.mun path:hover{stroke-width:1.2}
.map text{font-size:13px;font-weight:700;fill:var(--text);pointer-events:none;paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;font-size:12.5px;color:var(--text-2);margin-top:10px}
.legend .ramp{display:flex;gap:2px;align-items:center}
.legend .ramp i{width:22px;height:10px;border-radius:3px;display:block}
.legend .item{display:flex;align-items:center;gap:6px}

.tip{position:fixed;z-index:60;pointer-events:none;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;
  padding:10px 12px;font-size:12.5px;box-shadow:0 8px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(4px);transition:opacity .12s,transform .12s;max-width:260px}
.tip.on{opacity:1;transform:none}
.tip b{font-size:13.5px}
.tip .row{display:flex;align-items:center;gap:6px;justify-content:space-between;font-variant-numeric:tabular-nums}
.tip .row span:first-child{display:flex;align-items:center;gap:6px;color:var(--text-2)}

.duel{display:flex;height:30px;border-radius:8px;overflow:hidden;gap:2px;background:var(--surface)}
.duel>div{display:flex;align-items:center;font-size:12px;font-weight:700;color:#fff;padding:0 8px;white-space:nowrap;overflow:hidden;transition:flex-basis .6s cubic-bezier(.2,.8,.2,1)}
.duel .pl{background:var(--pl)}.duel .pt{background:var(--pt);justify-content:flex-end}.duel .oth{background:var(--oth);padding:0}
.duel-row{display:grid;grid-template-columns:78px 1fr;gap:10px;align-items:center;margin:8px 0}
.duel-row .t{font-size:12.5px;font-weight:700;color:var(--text-2);line-height:1.2}
.duel-row .t small{display:block;font-weight:500;color:var(--muted)}
.mid-mark{position:relative}
.mid-mark:after{content:"";position:absolute;left:50%;top:-3px;bottom:-3px;border-left:1.5px dashed var(--text-2);opacity:.6}

table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13.5px}
th,td{padding:9px 8px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
th:first-child,td:first-child{text-align:left}
th{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}
tbody tr:last-child td{border-bottom:0}
tr.click{cursor:pointer}tr.click:hover td{background:var(--surface-2)}
.tbl-wrap{overflow-x:auto;margin:0 -16px;padding:0 16px}

.badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;border-radius:999px;padding:3px 9px 3px 7px;white-space:nowrap}
.badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.b-good{background:color-mix(in srgb,var(--good) 14%,transparent);color:var(--good-ink)}
.b-warn{background:color-mix(in srgb,var(--warn) 20%,transparent);color:var(--warn-ink)}
.b-serious{background:color-mix(in srgb,var(--serious) 20%,transparent);color:var(--serious-ink)}
.b-crit{background:color-mix(in srgb,var(--crit) 16%,transparent);color:var(--crit-ink)}
.b-na{background:var(--surface-2);color:var(--muted)}

.gauge{display:flex;align-items:center;gap:14px}
.gauge .ring{--v:0;--c:var(--good);width:86px;height:86px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:conic-gradient(var(--c) calc(var(--v)*1%),var(--surface-2) 0);transition:--v 1s}
.gauge .ring div{width:68px;height:68px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-weight:800;font-size:22px;letter-spacing:-.02em}
.meter{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.meter i{display:block;height:100%;border-radius:99px;transition:width .8s cubic-bezier(.2,.8,.2,1)}

.test{display:grid;grid-template-columns:40px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.test:last-child{border-bottom:0;padding-bottom:0}
.test .ic{width:40px;height:40px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center}
.test .ic svg{width:21px;height:21px;fill:none;stroke:var(--text-2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.test h4{margin:0;font-size:14.5px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.test p{margin:4px 0 8px;color:var(--text-2);font-size:13.5px}
.test .kv{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.test .kv b{color:var(--text)}

.growth{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gcard{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}
.gcard .who{display:flex;align-items:center;gap:7px;font-weight:700;font-size:13.5px}
.gcard .flow{font-size:12.5px;color:var(--text-2);margin:6px 0 2px;font-variant-numeric:tabular-nums}
.gcard .big{font-size:clamp(17px,4.6vw,22px);font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.winner{border-color:color-mix(in srgb,var(--good) 55%,var(--line));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--good) 35%,transparent)}
.crown{font-size:11px;font-weight:700;color:var(--good-ink);display:flex;align-items:center;gap:4px;margin-top:6px}
.crown svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4}

.callout{display:flex;gap:12px;border-radius:14px;padding:14px;background:color-mix(in srgb,var(--warn) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--warn) 45%,var(--line));font-size:13.5px}
.callout.info{background:color-mix(in srgb,var(--pl) 8%,var(--surface));border-color:color-mix(in srgb,var(--pl) 35%,var(--line))}
.callout svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.callout p{margin:0}

.rank-row{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer;text-decoration:none}
.rank-row:last-child{border-bottom:0}
.rank-row .pos{font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums;text-align:center}
.rank-row .nm{font-weight:700;font-size:14.5px}
.rank-row .meta{font-size:12px;color:var(--muted)}
.rank-row .meter{margin-top:6px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 16px;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none;background:var(--brand);color:#fff}
[data-theme="dark"] .btn{color:#0b0b0b}
.btn.ghost{background:var(--surface-2);color:var(--text)}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.back{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--text-2);font-weight:600;font-size:14px;margin:2px 0 10px}
.back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}

.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:70;opacity:0;pointer-events:none;transition:opacity .25s}
.sheet-bg.on{opacity:1;pointer-events:auto}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:80;background:var(--surface);border-radius:22px 22px 0 0;max-height:86vh;overflow:auto;
  padding:8px 16px calc(20px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.8,.2,1);box-shadow:0 -10px 40px rgba(0,0,0,.25)}
.sheet.on{transform:none}
.sheet .grip{width:40px;height:5px;border-radius:9px;background:var(--line);margin:4px auto 12px}
@media(min-width:900px){.sheet{left:50%;right:auto;width:520px;bottom:24px;border-radius:22px;transform:translate(-50%,120%)}.sheet.on{transform:translate(-50%,0)}}

.toast{position:fixed;left:50%;bottom:calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));transform:translate(-50%,20px);background:var(--text);color:var(--surface);
  padding:10px 16px;border-radius:12px;font-size:13.5px;font-weight:600;opacity:0;pointer-events:none;transition:.25s;z-index:90}
.toast.on{opacity:1;transform:translate(-50%,0)}

.prose{max-width:760px}
.prose h3{margin:18px 0 6px;font-size:16px}
.prose p,.prose li{color:var(--text-2);font-size:14.5px}
.prose ul{padding-left:20px}
.prose code{background:var(--surface-2);padding:1px 6px;border-radius:6px;font-size:13px}
.src{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none}
.src:last-child{border-bottom:0}
.src .ic{width:38px;height:38px;border-radius:11px;background:var(--surface-2);display:grid;place-items:center;flex:none}
.src .ic svg{width:19px;height:19px;fill:none;stroke:var(--text-2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.src b{display:block;font-size:14px}.src span{font-size:12.5px;color:var(--muted);word-break:break-all}

.bars{display:flex;align-items:flex-end;gap:4px;height:110px;padding-top:6px;position:relative}
.bars .b{flex:1;background:var(--pl-3);border-radius:4px 4px 0 0;position:relative;min-height:2px}
.bars .exp{position:absolute;left:0;right:0;border-top:1.5px dashed var(--text-2);opacity:.7}
.bars-x{display:flex;gap:4px;font-size:11px;color:var(--muted);margin-top:4px}
.bars-x span{flex:1;text-align:center}

.dotplot{position:relative;height:44px;margin:4px 0 2px}
.dotplot .axis{position:absolute;left:0;right:0;top:21px;height:2px;background:var(--line);border-radius:2px}
.dotplot .band{position:absolute;top:13px;height:18px;border-radius:6px;opacity:.18}
.dotplot .pp{position:absolute;top:13px;width:18px;height:18px;margin-left:-9px;border-radius:50%;border:2.5px solid;background:var(--surface)}
.dotplot .uu{position:absolute;top:12px;width:20px;height:20px;margin-left:-10px;border-radius:50%;border:2px solid var(--surface)}
.dotplot .lb{position:absolute;top:-2px;font-size:11px;font-weight:700;transform:translateX(-50%);white-space:nowrap;color:var(--text-2)}
.footer{margin:28px 2px 8px;color:var(--muted);font-size:12px;line-height:1.6}
.empty{padding:26px;text-align:center;color:var(--muted);font-size:13.5px}
.search{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px 12px 10px 38px;font:inherit;color:var(--text);outline:none}
.search:focus{border-color:var(--brand)}
.sbox{position:relative}.sbox svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* fixes v2 */
.hero .kick svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.chip{text-decoration:none}
.sheet{visibility:hidden;transition:transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s .32s}
.sheet.on{visibility:visible;transition:transform .32s cubic-bezier(.2,.8,.2,1)}
@media(min-width:900px){.sheet{transform:translate(-50%,calc(100% + 60px))}}
:root{--zok:#bfe3c0}
:root[data-theme="dark"]{--zok:#24502a}
.topnav+.icon-btn{margin-left:auto}
@media(min-width:900px){.topnav+.icon-btn{margin-left:0}}
.rank-row .nm{display:block;line-height:1.25}
.rank-row .meta{display:block}
