:root {
  color-scheme: dark;
  --bg: #0c0f15;
  --panel: #12171f;
  --panel-deep: #10141c;
  --stroke: #252d3a;
  --ink: #f4f6f9;
  --muted: #a2adbd;
  --subtle: #8997ab;
  --green: #d3fc76;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --sans: Geist, system-ui, sans-serif;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 5;
  padding: .7rem 1rem; border-radius: 5px; color: #0c1011; background: var(--green);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.wrap { width: min(100% - 72px, 1280px); margin-inline: auto; }
.top {
  position: sticky; top: 0; z-index: 3; background: rgb(12 15 21 / .94);
  border-bottom: 1px solid #222936; backdrop-filter: blur(16px);
}
.top-inner { display: flex; min-height: 58px; align-items: center; gap: 44px; }
.brand {
  display: inline-flex; gap: 10px; align-items: center; text-decoration: none;
  font-size: 16px; font-weight: 700; white-space: nowrap; letter-spacing: -.025em;
}
.brand-mark {
  display: inline-flex; justify-content: center; align-items: end; gap: 3px;
  width: 30px; height: 30px; border-radius: 6px; padding: 7px; background: var(--green);
}
.brand-mark i { width: 3px; height: 7px; border-radius: 1px; background: #121a10; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 15px; }
.top nav { display: flex; align-self: stretch; gap: 27px; }
.top nav a {
  display: flex; align-items: center; position: relative; text-decoration: none;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.top nav a[aria-current], .top nav a:hover { color: var(--ink); }
.top nav a[aria-current]::after {
  content: ''; height: 2px; background: var(--green); inset: auto 0 -1px;
  position: absolute;
}
.source-link {
  margin-left: auto; color: var(--muted); text-decoration: none; white-space: nowrap;
  font: 500 12px var(--mono);
}
.source-link span { color: var(--green); }
.source-link:hover { color: var(--ink); }
main.wrap { padding-top: 20px; }
.hero {
  isolation: isolate; position: relative; min-height: 222px; display: flex;
  flex-direction: column; justify-content: center; align-items: flex-start;
  overflow: hidden; padding: 23px 36px; border: 1px solid #34434e; border-radius: 12px;
  background:
    linear-gradient(90deg, #10151e 0%, rgb(13 19 28 / .96) 28%, rgb(12 17 25 / .45) 63%, rgb(10 14 19 / .08) 100%),
    linear-gradient(0deg, rgb(10 13 18 / .7), transparent 50%),
    url('split-fire-hero.webp') center 16% / cover no-repeat, #17212a;
}
.hero::after {
  content: ''; position: absolute; pointer-events: none; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 55%, rgb(128 181 195 / .08) 55.15%, transparent 55.3%, transparent 68%, rgb(128 181 195 / .08) 68.15%, transparent 68.3%);
}
.season-label {
  display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  color: #c6d2e3; font: 500 11px var(--mono); letter-spacing: .09em;
}
.season-label span { width: 7px; height: 7px; background: var(--green); border-radius: 2px; transform: rotate(45deg); margin-right: 3px; }
.season-label b { background: rgb(211 252 118 / .085); border: 1px solid #52643e; border-radius: 4px; color: var(--green); margin-left: 5px; padding: 3px 5px; font-weight: 500; }
.hero h1 {
  font: 800 clamp(50px, 5.85vw, 84px)/.93 var(--display);
  letter-spacing: -.019em; text-transform: uppercase; margin: 13px 0 14px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-detail { color: #d0d9e6; font-size: 14px; font-weight: 500; }
.hero-detail span[aria-hidden] { margin-inline: 3px; color: var(--subtle); }
.hero-action {
  display: inline-flex; gap: .55rem; align-items: center; margin-top: 21px; padding: 8px 12px;
  text-decoration: none; border-radius: 5px; background: var(--green);
  color: #14200c; font-size: 12px; font-weight: 700;
}
.hero-action:hover { background: #e4ffab; }
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.highlight {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 9px;
  padding: 12px 16px 10px; position: relative; overflow: hidden;
}
.highlight::before { content: ''; position: absolute; left: 16px; top: 0; width: 27px; height: 2px; background: var(--highlight, var(--green)); }
.highlight-title { color: var(--muted); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.highlight-value { margin: 3px 0 1px; font: 700 39px/.98 var(--display); letter-spacing: .025em; }
.highlight-detail { color: var(--muted); margin-top: 6px; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.highlight-detail strong { color: var(--ink); font-weight: 600; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 29px 0 12px;
}
.section-head h2 { font: 700 35px/1 var(--display); letter-spacing: .005em; }
.section-head p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.periods { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--stroke); border-radius: 7px; background: var(--panel-deep); }
.periods button {
  white-space: nowrap; padding: 7px 10px; color: var(--muted); border: 0; border-radius: 4px;
  background: transparent; font-size: 12px; font-weight: 600;
}
.periods button[aria-pressed=true] { color: var(--green); background: #242e22; }
.periods button:hover { color: var(--ink); }
.comparison-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.player-filters { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.player-filter {
  display: flex; align-items: center; gap: 7px; border: 1px solid var(--stroke);
  border-radius: 5px; padding: 6px 10px; color: var(--muted);
  font-size: 12px; font-weight: 600; background: #10151d;
}
.player-filter[aria-pressed=true] { border-color: color-mix(in srgb, var(--series) 27%, var(--stroke)); color: var(--ink); background: color-mix(in srgb, var(--series) 8%, var(--panel)); }
.player-filter:hover { border-color: var(--series); }
.player-filter[aria-pressed=false] .dot { background: transparent; border: 1px solid var(--series); }
.dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--series, var(--green)); }
.quiet { background: transparent; color: var(--muted); border: 0; padding: 6px 2px; font-size: 12px; white-space: nowrap; }
.quiet:hover { color: var(--green); }
.inspect-controls {
  display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center;
  gap: 16px; margin: 9px 0 11px; min-height: 36px; color: var(--muted); font-size: 12px;
}
.inspect-label { min-width: 120px; }
.inspect-label output { color: var(--ink); margin-left: 5px; font: 500 11px var(--mono); white-space: nowrap; }
.inspect-controls input { margin: 0; width: 100%; accent-color: var(--green); }
.window-label, .map-controls label { display: flex; align-items: center; gap: .45rem; white-space: nowrap; color: var(--muted); }
select {
  border: 1px solid var(--stroke); background: #141a23; color: var(--ink);
  border-radius: 5px; padding: 6px 26px 6px 8px; font-size: 12px;
}
.panel { background: var(--panel); border: 1px solid var(--stroke); border-radius: 10px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.chart-panel { min-width: 0; padding: 15px 16px 11px; }
.panel-title { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.panel-title h3 { color: var(--ink); font-size: 16px; letter-spacing: -.025em; font-weight: 660; }
.panel-title p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.unit { color: #b3bece; font: 500 10px var(--mono); border-radius: 4px; padding: 3px 6px; border: 1px solid #2d3747; }
.plot { position: relative; }
.plot canvas { display: block; width: 100%; height: 207px; touch-action: pan-y; }
.chart-values {
  display: flex; flex-wrap: wrap; min-height: 41px; gap: 5px 13px; align-content: start;
  border-top: 1px solid #262e3a; margin-top: 5px; padding-top: 8px; color: var(--muted); font-size: 11px;
}
.chart-value { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.chart-value b { color: var(--ink); font: 500 11px var(--mono); }
.chart-value i { width: 5px; height: 5px; flex-basis: 5px; }
.tooltip {
  position: absolute; top: 11px; z-index: 2; pointer-events: none; min-width: 182px;
  padding: 9px 10px; border-radius: 7px; color: #f2f5f9;
  border: 1px solid #3a475c; background: rgb(13 17 25 / .97); box-shadow: 0 8px 20px #080b11;
}
.tooltip-title { font: 500 11px var(--mono); color: var(--green); padding-bottom: 5px; margin-bottom: 4px; border-bottom: 1px solid var(--stroke); }
.tooltip-row { display: grid; grid-template-columns: 7px minmax(80px, 1fr) auto; gap: 7px; align-items: center; line-height: 1.6; font-size: 11px; }
.tooltip-row b { font: 500 11px var(--mono); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 690px; font-size: 13px; }
thead { background: #10141c; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
thead th { color: #a7b4c6; font: 500 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; text-align: left; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #171e29; }
tbody th { text-align: left; font-weight: 600; }
.player-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; }
a.player-name:hover { text-decoration: underline; }
.rank-cell { white-space: nowrap; }
.rank-tier { display: inline-block; margin-left: .4rem; font-size: 12px; color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gain { color: var(--green); }
.map-controls { display: flex; gap: 9px; flex-wrap: wrap; font-size: 12px; }
.map-key { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--stroke); color: var(--muted); font-size: 11px; }
.map-key span::before { display: inline-block; vertical-align: -1px; margin-right: 5px; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; content: ''; }
.map-key-low::before { color: #e59a96; background: #603940; }
.map-key-even::before { color: #8b9bb4; background: #343c4b; }
.map-key-high::before { color: #c9ee83; background: #465d33; }
.map-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.map-table thead th:first-child { background: var(--panel-deep); }
.map-table th:not(:first-child), .map-table td { text-align: center; }
.map-table td { min-width: 86px; padding: 6px 5px; }
.map-table tbody th { white-space: nowrap; }
.heat {
  display: flex; justify-content: space-between; align-items: baseline; gap: 4px;
  color: var(--ink); padding: 6px 7px; border-radius: 4px; background-color: var(--cell, #1c2633);
  font: 500 12px var(--mono); white-space: nowrap;
}
.heat small { color: #c6d0de; font: 400 10px var(--mono); }
.heat.missing { display: block; background: #181f29; color: #9daabf; text-align: center; }
.empty { padding: 16px; color: var(--muted); font-size: 13px; }
.footer {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 26px;
  padding: 17px 0 35px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 12px;
}
.footer details { max-width: 76ch; }
.footer summary { cursor: pointer; color: var(--ink); width: fit-content; }
.footer p { margin-top: 8px; line-height: 1.55; }
.footer a { text-decoration-color: #425165; text-underline-offset: 3px; white-space: nowrap; }
.footer a:hover { color: var(--ink); }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 42px); }
  .hero { padding: 23px 26px; min-height: 211px; }
  .top-inner { gap: 27px; }
  .top nav { gap: 18px; }
  .chart-panel { padding-inline: 12px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 104px; }
  .wrap { width: calc(100% - 28px); }
  .top-inner { flex-wrap: wrap; gap: 7px 13px; padding-block: 8px 0; min-height: auto; }
  .top nav { order: 3; width: 100%; gap: 0; justify-content: space-between; }
  .top nav a { min-height: 35px; padding-inline: 3px; }
  .source-link { font-size: 11px; }
  main.wrap { padding-top: 13px; }
  .hero { min-height: 222px; padding: 19px 17px; background-position: center, center, 62% 46%; }
  .hero h1 { font-size: clamp(46px, 10vw, 64px); line-height: .86; }
  .hero h1 em { display: block; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
  .highlight { padding: 11px; }
  .highlight::before { left: 11px; }
  .highlight-value { font-size: 34px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 26px; }
  .section-head h2 { font-size: 32px; }
  .chart-grid { grid-template-columns: 1fr; gap: 9px; }
  .plot canvas { height: 191px; }
  .inspect-controls { grid-template-columns: minmax(120px, 1fr) auto; gap: 5px 9px; margin-block: 9px 12px; }
  .inspect-controls input { grid-column: 1 / -1; grid-row: 2; min-height: 26px; }
  .window-label { grid-column: 2; grid-row: 1; }
  .footer { flex-direction: column; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
