@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* Dark is the default theme. Light comes from the toggle (data-theme="light"). */
:root {
  color-scheme: dark;
  --page: #070e19;
  --page-glow: rgba(54, 195, 212, .10);
  --surface: #0e1828;
  --surface-2: #132136;
  --raise: #172840;
  --ink: #edf1f7;
  --ink-2: #b3bfcf;
  --muted: #8392a7;
  --line: #1e2f47;
  --line-soft: #172639;
  --accent: #36c3d4;
  --accent-ink: #03121a;
  --gold: #d9b56c;
  --focus: #6fdcea;
  --win: #3987e5;
  --loss: #e66767;
  --you: #9085e9;
  --team: #199e70;
  --enemy: #d95926;
  --grid: #1b2b41;
  --axis: #34475f;
  --warn-bg: #2f2610;
  --warn-ink: #f2d48a;
  --tone: #72c0d4;
  --tone-bg: #102733;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #eceff4;
  --page-glow: rgba(11, 127, 143, .10);
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --raise: #ffffff;
  --ink: #101e33;
  --ink-2: #3c4e66;
  --muted: #5d6d82;
  --line: #d2dae5;
  --line-soft: #e3e8ef;
  --accent: #0a7584;
  --accent-ink: #ffffff;
  --gold: #9a7228;
  --focus: #0a7584;
  --win: #2a78d6;
  --loss: #e34948;
  --you: #5b45d9;
  --team: #13956a;
  --enemy: #e0602c;
  --grid: #e2e7ee;
  --axis: #b7c1ce;
  --warn-bg: #fff3d6;
  --warn-ink: #654500;
  --shadow: 0 1px 0 rgba(16, 30, 51, .05), 0 14px 32px -22px rgba(16, 30, 51, .35);
}

/* verdict tones: one bold color per verdict, used by the hero */
.tone-tilted   { --tone: #f2735f; --tone-bg: #2c1418; }
.tone-unlucky  { --tone: #a99bf5; --tone-bg: #1d1a3c; }
.tone-slumping { --tone: #e9b04f; --tone-bg: #2b2210; }
.tone-steady   { --tone: #6fcbe0; --tone-bg: #0f2832; }
.tone-hot      { --tone: #f7a05f; --tone-bg: #2e1c10; }
.tone-carrying { --tone: #71d48a; --tone-bg: #11291a; }
:root[data-theme="light"] .tone-tilted   { --tone: #c42f2b; --tone-bg: #fbe4e0; }
:root[data-theme="light"] .tone-unlucky  { --tone: #5b45d9; --tone-bg: #ebe7fb; }
:root[data-theme="light"] .tone-slumping { --tone: #9a5c00; --tone-bg: #fbeed5; }
:root[data-theme="light"] .tone-steady   { --tone: #1f6f85; --tone-bg: #def0f4; }
:root[data-theme="light"] .tone-hot      { --tone: #bb3f0b; --tone-bg: #fde7d8; }
:root[data-theme="light"] .tone-carrying { --tone: #207a36; --tone-bg: #e0f2e3; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page) radial-gradient(1100px 520px at 50% -180px, var(--page-glow), transparent 70%) no-repeat;
  color: var(--ink);
  font: 16px/1.55 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; width: 100%; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---- header / footer ---- */
.site-head { padding: 14px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-word { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 23px; letter-spacing: -.01em; line-height: 1; }
.brand-by { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.head-nav { display: flex; gap: 4px; align-items: center; }
.head-nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 6px 8px; border-radius: 8px; }
.head-nav a:hover { background: var(--surface); }
.theme-btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
@media (max-width: 560px) { .head-nav .hide-sm { display: none; } .brand-by { display: none; } }

.site-foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 13.5px; color: var(--muted); }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-foot a { color: var(--ink-2); }
.site-foot .legal { max-width: 70ch; margin: 0; line-height: 1.5; }

/* ---- buttons / inputs ---- */
.btn { appearance: none; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--body); padding: 0 18px; height: 48px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); height: 38px; font-size: 14.5px; padding: 0 14px; border-radius: 10px; }

/* ---- home ---- */
.hero-home { padding: 28px 0 8px; }
.hero-home h1 { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(54px, 15vw, 128px); line-height: .88; letter-spacing: -.03em; margin: 0 0 18px; }
.hero-home .promise { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2); max-width: 36ch; margin: 0 0 26px; }
.search { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); max-width: 720px; }
.search-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .search-row { grid-template-columns: 1fr 132px auto; } }
.field { position: relative; display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; min-width: 0; }
.field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field input, .field select { appearance: none; border: 0; background: transparent; color: var(--ink); font: 17px/1.2 var(--body); height: 48px; padding: 0 14px; width: 100%; min-width: 0; outline: none; }
.field select { padding-right: 34px; cursor: pointer; }
.field .chev { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.field .tag-hint { position: absolute; right: 12px; color: var(--muted); font-size: 13px; pointer-events: none; }
.search-msg { min-height: 0; font-size: 14.5px; margin: 0; padding: 0 6px; }
.search-msg:not(:empty) { padding: 8px 6px 2px; }
.search-msg.bad { color: var(--loss); }
.ts-slot:not(:empty) { margin-top: 8px; }
.search-foot { font-size: 13.5px; color: var(--muted); margin: 12px 4px 0; }

.preview { margin-top: 48px; }
.preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-head h2 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 26px; margin: 0; letter-spacing: -.01em; }
.preview-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .preview-grid { grid-template-columns: 1.25fr 1fr; } }
.preview .verdict { margin: 0; }
.example-flag { font-size: 13px; color: var(--muted); }

.explain { margin-top: 44px; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .explain { grid-template-columns: repeat(3, 1fr); } }
.explain h3 { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 20px; margin: 0 0 4px; }
.explain p { margin: 0; color: var(--ink-2); }

/* ---- generic panels ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; }
@media (min-width: 640px) { .panel { padding: 22px 24px; } }
.panel + .panel, .stack > * + * { margin-top: 14px; }
.panel h2 { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 22px; line-height: 1.15; margin: 0 0 4px; letter-spacing: -.005em; }
.panel .answer { margin: 0 0 16px; color: var(--ink-2); max-width: 64ch; }
.panel h3 { font-size: 15px; font-weight: 650; margin: 20px 0 8px; color: var(--ink); }
.two { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } .two > .panel + .panel { margin-top: 0; } }
.caveat { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }

/* ---- verdict hero ---- */
.verdict { background: var(--tone-bg); border-radius: 22px; padding: 22px 18px 20px; margin: 6px 0 14px; position: relative; overflow: hidden; }
@media (min-width: 640px) { .verdict { padding: 30px 32px 28px; } }
.verdict .stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 17px; color: var(--tone); margin: 0 0 8px; }
.verdict .stamp::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--tone); }
.verdict h1, .verdict .headline { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(34px, 7.4vw, 60px); line-height: .98; letter-spacing: -.02em; margin: 0 0 14px; max-width: 18ch; color: var(--ink); }
.verdict .lines { margin: 0 0 18px; padding: 0; list-style: none; max-width: 60ch; }
.verdict .lines li { color: var(--ink-2); font-size: 17px; margin: 0 0 4px; }
.gauges { display: grid; gap: 10px 22px; grid-template-columns: 1fr; border-top: 1px solid color-mix(in srgb, var(--tone) 25%, transparent); padding-top: 14px; }
@media (min-width: 640px) { .gauges { grid-template-columns: repeat(3, 1fr); } }
.gauge-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.gauge-top b { font-weight: 650; }
.gauge-top span { color: var(--ink-2); }
.gauge-track { position: relative; height: 8px; margin-top: 6px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.gauge-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.gauge-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.gauge-fill.good { background: var(--win); }
.gauge-fill.bad { background: var(--loss); }
.gauge-fill.flat { background: var(--muted); }
.gauge-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 3px; }
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 14px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.pips i.on { background: var(--tone); }

/* ---- player header ---- */
.player { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; flex-wrap: wrap; }
.player img.icon { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); flex: none; }
.player .who { min-width: 0; flex: 1 1 200px; }
.player .rid { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 24px; line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.player .rid .tag { color: var(--muted); font-weight: 500; }
.player .meta { font-size: 14px; color: var(--ink-2); margin: 2px 0 0; }
.player .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.player .actions small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .player .actions { align-items: flex-start; width: 100%; } }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 14px; }

/* ---- form strip ---- */
.strip { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; }
.strip .dot { flex: 1 1 0; max-width: 26px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.strip .dot.w { background: var(--win); }
.strip .dot.l { background: transparent; border: 2.5px solid var(--loss); color: var(--loss); }
.strip .dot.r { background: var(--grid); color: var(--muted); }
.strip-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; max-width: calc(26px * 20 + 4px * 19); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.fact b { display: block; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 26px; line-height: 1.1; }
.fact span { font-size: 13.5px; color: var(--ink-2); }

/* ---- tips ---- */
.tips { list-style: none; margin: 0; padding: 0; counter-reset: tip; }
.tip { border-top: 1px solid var(--line-soft); padding: 14px 0; display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; }
.tip:first-child { border-top: 0; padding-top: 2px; }
.tip::before { counter-increment: tip; content: counter(tip); font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--accent); line-height: 1.1; }
.tip h3 { margin: 0 0 4px; font-size: 17px; }
.tip p { margin: 0 0 8px; color: var(--ink-2); }
.tip .evidence { margin: 0; font-size: 14.5px; color: var(--ink); background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 8px 12px; }

/* ---- rate rows (tilt, deaths, lane) ---- */
.rows { display: grid; gap: 14px; }
.row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; flex-wrap: wrap; }
.row-top .lbl { font-weight: 600; }
.row-top .val { color: var(--ink-2); }
.rate { position: relative; height: 14px; margin-top: 6px; background: var(--grid); border-radius: 7px; }
.rate .bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--ink-2); }
.rate .bar.good { background: var(--win); }
.rate .bar.bad { background: var(--loss); }
.rate .tick { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend i.k-tick { width: 3px; height: 13px; border-radius: 2px; background: var(--ink); vertical-align: -2px; }
.legend i.k-win { background: var(--win); }
.legend i.k-loss { background: var(--loss); }
.legend i.k-you { background: var(--you); }
.legend i.k-team { background: var(--team); border-radius: 2px; }
.legend i.k-enemy { background: var(--enemy); transform: rotate(45deg) scale(.85); border-radius: 1px; }
.legend i.k-hollow { background: transparent; border: 2px solid var(--ink-2); }

/* ---- svg charts ---- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 11.5px var(--body); }
.chart .lbl-strong { fill: var(--ink); font-weight: 600; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .zero { stroke: var(--axis); stroke-width: 1.5; }
.chart .base { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .col { fill: var(--ink-2); }
.chart .col.good { fill: var(--win); }
.chart .col.bad { fill: var(--loss); }
.chart .m-you { fill: var(--you); stroke: var(--surface); stroke-width: 2; }
.chart .m-team { fill: var(--team); stroke: var(--surface); stroke-width: 2; }
.chart .m-enemy { fill: var(--enemy); stroke: var(--surface); stroke-width: 2; }
.chart .hollow { fill: var(--surface); stroke-width: 2; }
.chart .hollow.you { stroke: var(--you); }
.chart .hollow.team { stroke: var(--team); }
.chart .hollow.enemy { stroke: var(--enemy); }
.chart .link { stroke-width: 2; }
.chart .link.you { stroke: var(--you); }
.chart .link.team { stroke: var(--team); }
.chart .link.enemy { stroke: var(--enemy); }
.chart .wl.w { fill: var(--win); }
.chart .wl.l { fill: var(--loss); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover, .chart .hit.on { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.chart-box { position: relative; }
.tooltip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.4; min-width: 160px; max-width: 220px; }
.tooltip[hidden] { display: none; }
.tooltip b { display: block; font-size: 13.5px; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: 14px var(--body); padding: 6px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

/* ---- stat bars (you vs rank) ---- */
.statbars { display: grid; gap: 12px; }
.statbar { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 640px) { .statbar { grid-template-columns: 210px 1fr 120px; align-items: center; gap: 14px; } }
.statbar .s-lbl { font-size: 14.5px; font-weight: 600; }
.statbar .s-val { font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 640px) { .statbar .s-val { text-align: right; } }
.dtrack { position: relative; height: 16px; background: linear-gradient(var(--grid), var(--grid)) center / 100% 2px no-repeat; }
.dtrack::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--axis); }
.dtrack .dbar { position: absolute; top: 2px; bottom: 2px; }
.dtrack .dbar.good { background: var(--win); border-radius: 0 4px 4px 0; }
.dtrack .dbar.bad { background: var(--loss); border-radius: 4px 0 0 4px; }
.dscale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (min-width: 640px) { .dscale { margin-left: 224px; margin-right: 134px; } }

/* ---- tables ---- */
.tbl-wrap { overflow-x: auto; max-width: 100%; position: relative; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { font-weight: 600; color: var(--ink-2); font-size: 13px; }
.tbl th button { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 2px 0; }
.tbl th[aria-sort] button::after { content: ""; display: inline-block; margin-left: 4px; border: 4px solid transparent; }
.tbl th[aria-sort="descending"] button::after { border-top-color: currentColor; vertical-align: -2px; }
.tbl th[aria-sort="ascending"] button::after { border-bottom-color: currentColor; vertical-align: 2px; }
.tbl .champ { display: flex; align-items: center; gap: 8px; }
.tbl .champ img { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); }
.flag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.flag.best { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--ink); }
.flag.drop { background: color-mix(in srgb, var(--loss) 16%, transparent); color: var(--ink); }
.tbl td.wr-good { color: var(--ink); font-weight: 600; }
details.table-view { margin-top: 10px; font-size: 14px; }
details.table-view summary { cursor: pointer; color: var(--accent); }
@media (max-width: 520px) { .tbl .hide-xs { display: none; } }

/* ---- duos ---- */
.duos { list-style: none; margin: 0; padding: 0; }
.duos li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.duos li:first-child { border-top: 0; }
.duos .d-name { font-weight: 600; overflow-wrap: anywhere; }
.duos .d-stat { color: var(--ink-2); font-size: 14.5px; }

.caveats { margin: 0; padding-left: 20px; color: var(--ink-2); }
.caveats li + li { margin-top: 6px; }
.updated-line { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }

/* ---- queue / state card ---- */
.state-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 18px; margin: 18px 0; box-shadow: var(--shadow); }
@media (min-width: 640px) { .state-card { padding: 34px 32px; } }
.state-card h1 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(30px, 6vw, 46px); line-height: 1; margin: 0 0 10px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.state-card p { color: var(--ink-2); margin: 0 0 12px; max-width: 58ch; }
.progress { height: 10px; background: var(--grid); border-radius: 5px; overflow: hidden; margin: 18px 0 8px; }
.progress .fill { height: 100%; background: var(--accent); border-radius: 5px; transition: width .6s ease; }
.progress.indet .fill { width: 30%; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.stages { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.stages li { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stages li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--axis); flex: none; }
.stages li.done { color: var(--ink-2); }
.stages li.done::before { background: var(--win); border-color: var(--win); }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.now::before { border-color: var(--accent); background: var(--accent); }
.qfacts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; }
.qfacts b { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 26px; display: block; line-height: 1.1; }
.qfacts span { font-size: 13.5px; color: var(--muted); }

/* ---- prose pages ---- */
.prose { padding-top: 18px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(40px, 8vw, 64px); line-height: .95; letter-spacing: -.02em; margin: 10px 0 18px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 25px; margin: 34px 0 8px; letter-spacing: -.005em; }
.prose p, .prose li { color: var(--ink-2); max-width: 66ch; }
.prose .lede { font-size: 19px; color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 2px 6px; border-radius: 4px; }

.skeleton { height: 220px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin: 18px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .progress.indet .fill { animation: none; width: 100%; opacity: .5; }
}
@media (forced-colors: active) {
  .strip .dot.w, .gauge-fill, .rate .bar, .dtrack .dbar { forced-color-adjust: none; }
}

/* static example on the home page (no inline styles under CSP) */
.gw-a { left: 46%; width: 4%; }
.gw-b { left: 12%; width: 38%; }
.gw-c { left: 38%; width: 12%; }
.pv-h { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.panel .pv-h + .tips { margin-top: 0; }
.panel .strip-axis + .pv-h { margin-top: 20px; }
.preview .tip { grid-template-columns: 1fr; padding: 0; }
.preview .tip::before { content: none; }

/* ---- tilt dial + hero art ---- */
.verdict { display: grid; grid-template-columns: 1fr; gap: 6px 28px; isolation: isolate; border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); }
.verdict::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-58deg, color-mix(in srgb, var(--tone) 9%, transparent) 0 2px, transparent 2px 18px);
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%); }
.verdict::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 26%, transparent), transparent); pointer-events: none; }
.verdict .v-text { min-width: 0; }
.verdict .v-art { justify-self: start; width: 190px; margin: -4px 0 4px; }
@media (min-width: 760px) {
  .verdict { grid-template-columns: 1fr 250px; align-items: center; }
  .verdict .v-art { grid-column: 2; grid-row: 1; justify-self: end; width: 250px; margin: 0; }
  .verdict .gauges, .verdict .conf { grid-column: 1 / -1; }
}
.dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial-seg { fill: none; stroke-width: 16; stroke-linecap: butt; }
.dial-seg.d1 { stroke: #36c3d4; } .dial-seg.d2 { stroke: #6cc59a; } .dial-seg.d3 { stroke: #e3b54d; } .dial-seg.d4 { stroke: #ee8a49; } .dial-seg.d5 { stroke: #ee5d52; }
.dial-tick { stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1.5; }
.dial-end { fill: var(--ink-2); font: 600 11.5px var(--body); }
.needle { transform-origin: 100px 100px; transform: rotate(var(--a, -90deg)); transition: transform 1.3s cubic-bezier(.2, .85, .25, 1.12); }
.needle path, .needle circle { fill: var(--ink); }
.needle .hub { fill: var(--tone); }
.dial-caption { text-align: center; font-size: 12.5px; color: var(--ink-2); margin: 2px 0 0; }
.verdict .headline { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.verdict .lines { animation: rise .7s .12s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gauge-fill { transition: width .9s .25s cubic-bezier(.2, .8, .2, 1), left .9s .25s cubic-bezier(.2, .8, .2, 1); }
.na-preview { --a: -76deg; }
@media (prefers-reduced-motion: reduce) { .needle { transition: none; } .verdict .headline, .verdict .lines { animation: none; } }

/* ---- revisions after first screenshots ---- */
.panel p.muted { font-size: 14px; margin: 10px 0 0; }
.chart-slot { width: 100%; min-height: 40px; }
.hero-home { display: grid; grid-template-columns: 1fr; gap: 0 40px; align-items: center; position: relative; }
.hero-home h1 { font-stretch: 84%; letter-spacing: -.012em; }
.hero-art { order: -1; width: 210px; margin: 0 0 6px -6px; }
.hero-art .needle { transition-duration: 1.6s; }
@media (min-width: 900px) {
  .hero-home { grid-template-columns: 1fr 360px; padding-top: 40px; }
  .hero-art { order: 2; width: 360px; margin: 0; }
}
.hero-art .dial-seg { stroke-width: 14; }
.hero-art .dial-end { font-size: 10px; }
.preview-grid { grid-template-columns: 1fr; }
@media (min-width: 820px) { .preview-grid { grid-template-columns: 1fr 1fr; } }
.preview-grid .verdict { grid-column: 1 / -1; }
.preview-grid .panel + .panel { margin-top: 0; }
.pv-note { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.two > *, .preview-grid > * { min-width: 0; }
.panel { position: relative; }
@media (min-width: 640px) {
  .two .statbar { grid-template-columns: 150px 1fr 78px; gap: 10px; }
  .two .statbar .s-lbl { font-size: 13.5px; }
  .two .dscale { margin-left: 160px; margin-right: 88px; }
}
.state-card.has-art { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
.state-art { width: 150px; margin: 0 0 10px -4px; }
@media (min-width: 760px) { .state-card.has-art { grid-template-columns: 1fr 200px; align-items: start; } .state-art { grid-column: 2; grid-row: 1; width: 200px; margin: 0; } }
.state-body { min-width: 0; }
.dial-wait .needle { transition: none; animation: wobble 2.2s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(-70deg); } to { transform: rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .dial-wait .needle { animation: none; transform: rotate(-50deg); } }

/* ---- polish pass 2026-10-17 ---- */
.stack { display: grid; gap: 16px; }
.stack > * { min-width: 0; }
.stack > .panel + .panel, .stack > .two > .panel + .panel { margin-top: 0; }
.stack > .verdict { margin: 0; }
.two { gap: 16px; }
@media (max-width: 819px) { .two > .panel + .panel { margin-top: 0; } }

/* player header: name left, one compact refresh button right, at every width */
.player { flex-wrap: nowrap; align-items: flex-start; gap: 12px; margin: 18px 0 14px; }
.player img.icon { width: 52px; height: 52px; }
.player .who { flex: 1 1 auto; }
.player .meta { line-height: 1.45; }
.player .upd { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.btn-refresh { flex: none; height: 36px; padding: 0 12px; gap: 6px; }
.btn-refresh svg { flex: none; }
@media (max-width: 420px) { .btn-refresh span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .btn-refresh { width: 40px; padding: 0; } .player .rid { font-size: 21px; } }
.rank-pill { display: inline-block; font-weight: 650; color: var(--ink); padding: 0 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); line-height: 1.5; font-size: 13px; }
.rank-pill.t-iron { border-color: #6b6f78; } .rank-pill.t-bronze { border-color: #9a6b4f; } .rank-pill.t-silver { border-color: #8d9aa8; }
.rank-pill.t-gold { border-color: #c79a3b; } .rank-pill.t-platinum { border-color: #3fa7a0; } .rank-pill.t-emerald { border-color: #2fa36b; }
.rank-pill.t-diamond { border-color: #5b8de0; } .rank-pill.t-master { border-color: #a35bd6; } .rank-pill.t-grandmaster { border-color: #d65252; } .rank-pill.t-challenger { border-color: #e2c26a; }

/* verdict: on phones the dial sits beside the stamp so the headline starts higher */
@media (max-width: 759px) {
  .verdict .v-art { position: absolute; top: 14px; right: 14px; width: 112px; margin: 0; }
  .verdict .v-art .dial-caption { display: none; }
  .verdict .v-art .dial-end { font-size: 13px; }
  .verdict .stamp { min-height: 64px; align-items: center; margin-bottom: 4px; }
  .verdict .gauge-ends { display: none; }
  .verdict .headline { font-size: clamp(32px, 9.6vw, 44px); }
  .verdict .lines li { font-size: 16px; }
}
.gauge-top .gw { font-weight: 600; }
.gauge-top .gw.bad { color: var(--loss); }
.gauge-top .gw.good { color: var(--win); }
.gauge-detail { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.verdict .conf { gap: 8px; }

/* you vs rank */
.statbar { grid-template-columns: 1fr auto; grid-template-areas: "lbl val" "bar bar"; gap: 4px 12px; align-items: end; }
.statbar .s-lbl { grid-area: lbl; }
.statbar .dtrack { grid-area: bar; }
.statbar .s-val { grid-area: val; text-align: right; white-space: nowrap; }
.statbar .s-val b { color: var(--ink); font-weight: 650; font-size: 15px; }
.statbar .s-lbl small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.s-headrow { display: none; }
.s-headrow .dscale { margin: 0; }
@media (min-width: 640px) {
  .statbar { grid-template-columns: 300px 1fr 118px; grid-template-areas: "lbl bar val"; align-items: center; gap: 14px; }
  .s-headrow { display: grid; font-size: 12px; color: var(--muted); margin-bottom: -4px; }
  .s-headrow .s-val { font-size: 12px; color: var(--muted); }
  .dscale.rank-m { display: none; }
}
.two .statbar { grid-template-columns: 1fr auto; grid-template-areas: "lbl val" "bar bar"; }
.two .s-headrow { display: none; }
.two .dscale { margin-left: 0; margin-right: 0; }

/* charts */
.chart .col.thin { opacity: .45; }
.chart .lbl-word { fill: var(--ink-2); font-weight: 600; }
.tooltip { min-width: 200px; max-width: 240px; }
.tt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tt-head img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.tbl .rec { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
img.broken { visibility: hidden; }

/* home search: name and region share a row on phones */
@media (max-width: 639px) {
  .search-row { grid-template-columns: 1fr 92px; }
  .search-row .btn { grid-column: 1 / -1; }
}

/* reserve the space while the report loads, so the footer doesn't jump */
.skeleton { min-height: 100vh; background: linear-gradient(var(--surface), var(--surface)) 0 0 / 100% 220px no-repeat; border: 0; }
.facts .fact.wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .facts .fact.wide { grid-column: auto; } }
/* fixed header height: the brand font swapping in must not move the page */
.site-head { height: 64px; padding: 14px 0; }
.site-head .wrap { height: 36px; }
.brand { align-items: center; }
.duos .d-name .muted { display: block; font-weight: 400; font-size: 13.5px; }
.duos .d-stat { align-self: center; }
@media (max-width: 520px) { .tip { grid-template-columns: 22px 1fr; gap: 0 8px; } }
.state-stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 16px; color: var(--muted); margin: 0 0 8px !important; }
.state-stamp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.state-stamp.warn { color: var(--gold); }
.state-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px !important; }
.state-actions:empty { display: none; }
.mini-search { margin: 6px 0 4px; box-shadow: none; background: var(--surface-2); }
.mini-search .field { background: var(--surface); }
.chart .you-line { fill: none; stroke: var(--you); stroke-width: 1.5; opacity: .45; }
#games-svg .m-team, #games-svg .m-enemy { opacity: .85; }
/* text-safe versions of the win/loss hues (the fills stay as they are) */
:root { --loss-ink: var(--loss); --win-ink: var(--win); }
:root[data-theme="light"] { --muted: #536276; --loss-ink: #c0302d; --win-ink: #1d65bd; }
.search-msg.bad, .gauge-top .gw.bad, .strip .dot.l { color: var(--loss-ink); }
.gauge-top .gw.good { color: var(--win-ink); }
:root[data-theme="light"] .strip .dot.w { background: var(--win-ink); }
.pctl { display: inline-block; min-width: 42px; margin-left: 8px; padding: 1px 6px; border-radius: 6px; font-size: 12.5px; font-weight: 650; text-align: center; background: var(--surface-2); color: var(--ink-2); }
.pctl.good { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--ink); }
.pctl.bad { background: color-mix(in srgb, var(--loss) 16%, transparent); color: var(--ink); }
@media (min-width: 640px) { .statbar { grid-template-columns: 250px 1fr 168px; } }
.matched { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.matched .pctl { margin: 0 6px 0 0; min-width: 0; padding: 1px 8px; }
/* reserve the dial's box before home.js / profile.js draws it */
.hero-art:empty, .v-art:empty, .state-art:empty { aspect-ratio: 200 / 122; }
