@font-face {
  font-family: Golos;
  src: url('/assets/golos-regular.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Golos;
  src: url('/assets/golos-medium.woff2') format('woff2');
  font-display: swap;
  font-weight: 500;
}
:root {
  color-scheme: dark;
  --bg:#0c1216;
  --panel:#161f24;
  --line:#344149;
  --text:#f5ede1;
  --muted:#b0bdbe;
  --gold:#ecd09a;
  --team-0:#D4860B;
  --team-1:#4D75C3;
  --green:#9ae2bb;
  --red:#f2ada2;
  font-family:Golos,system-ui,sans-serif;
  font-size:14px;
  line-height:1.5;
  background:var(--bg);
  color:var(--text);
}
* { box-sizing:border-box; }
html:has(dialog[open]) { overflow:hidden; }
body { margin:0; min-height:100vh; isolation:isolate; }
.stats-scene {
  --orbit-center:84%;
  --orbit-top:15%;
  --orbit-size:clamp(280px,43vw,610px);
  --orbit-angle:-21deg;
  --orbit-travel-x:-40px;
  --orbit-travel-y:85px;
  position:fixed;
  z-index:-1;
  inset:-28px;
  overflow:hidden;
  pointer-events:none;
  background:radial-gradient(ellipse at 81% 6%,#25322f 0,transparent 50%),
             linear-gradient(145deg,#101c22,#0c1216 62%);
}
.stats-atmosphere { position:absolute; inset:-12%; }
.stats-glow {
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 76% 22%,#c294543a,transparent 31%),
             radial-gradient(ellipse at 89% 72%,#356d862e,transparent 45%),
             radial-gradient(ellipse at 12% 43%,#32867936,transparent 45%);
}
.stats-orbit {
  position:absolute;
  top:var(--orbit-top);
  left:var(--orbit-center);
  width:var(--orbit-size);
  aspect-ratio:1.9;
  transform:translate(-50%,-50%) rotate(var(--orbit-angle));
}
.stats-orbit::before,
.stats-orbit::after {
  position:absolute;
  border-radius:50%;
  content:"";
}
.stats-orbit::before {
  inset:0;
  border:1px solid #dfc48942;
  box-shadow:inset 0 0 0 10px #dfc4890a,0 0 0 21px #dfc48908;
  background:radial-gradient(circle at 20% 90%,#e2cb94 0 2px,#e2cb9450 3px,transparent 10px);
}
.stats-orbit::after {
  inset:5% -4%;
  border:1px solid #9db6a62b;
  transform:rotate(38deg);
}
.stats-insignia {
  position:absolute;
  top:50%;
  left:50%;
  width:29%;
  aspect-ratio:1;
  background:url('/assets/mark.svg') center / contain no-repeat;
  opacity:.105;
  transform:translate(-50%,-50%) rotate(13deg);
}
body:has(:is(#player-page,#compare-page,#shared-match):not([hidden])) .stats-scene {
  --orbit-top:19%;
  --orbit-angle:-30deg;
  --view-offset:-22px;
}
.stats-content { display:flow-root; }

@media (prefers-reduced-motion:no-preference) {
  @view-transition { navigation:auto; }

  :root { view-transition-name:none; }
  .stats-scene { view-transition-name:stats-scene; }
  .stats-atmosphere {
    transform:translate3d(calc(var(--scene-travel,0) * 28px),calc(var(--scene-travel,0) * -58px),0);
  }
  .stats-glow { animation:stats-light-drift 26s ease-in-out infinite; }
  .stats-orbit {
    transform:translate3d(calc(-50% + var(--view-offset,0px) + var(--scene-travel,0) * var(--orbit-travel-x)),
                          calc(-50% + var(--scene-travel,0) * var(--orbit-travel-y)),0)
              rotate(calc(var(--orbit-angle) + var(--scene-travel,0) * 19deg));
  }
  .site-header { view-transition-name:stats-header; }
  .stats-content { view-transition-name:stats-content; }

  ::view-transition { background:var(--bg); }
  ::view-transition-group(*) {
    animation-duration:360ms;
    animation-timing-function:cubic-bezier(.22,.72,.28,1);
  }
  ::view-transition-group(stats-content) { animation-name:none; }
  ::view-transition-old(stats-scene) { animation:stats-scene-out 460ms cubic-bezier(.24,.66,.24,1) both; mix-blend-mode:normal; }
  ::view-transition-new(stats-scene) { animation:stats-scene-in 460ms cubic-bezier(.24,.66,.24,1) both; mix-blend-mode:normal; }
  ::view-transition-old(stats-header) { animation:none; opacity:0; }
  ::view-transition-new(stats-header) { animation:none; mix-blend-mode:normal; }
  ::view-transition-old(stats-content) { animation:stats-content-out 170ms ease-out both; mix-blend-mode:normal; }
  ::view-transition-new(stats-content) { animation:stats-content-in 250ms ease-out 65ms both; mix-blend-mode:normal; }
}

@keyframes stats-light-drift {
  0%,100% { transform:translate(-4%,-2%) scale(1.02); }
  33% { transform:translate(4%,2%) scale(1.05); }
  66% { transform:translate(-1%,4%) scale(1.08); }
}
@keyframes stats-scene-out { to { transform:translate(-10px,3px) scale(1.015); } }
@keyframes stats-scene-in { from { opacity:0; transform:translate(10px,-3px) scale(1.015); } }
@keyframes stats-content-out { to { opacity:0; transform:translateY(-5px); } }
@keyframes stats-content-in { from { opacity:0; transform:translateY(6px); } }

button,select,input { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.5; cursor:default; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--gold); }
:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
h1,h2,p { margin:0; }
h1 { font-size:clamp(27px,4.5vw,50px); line-height:1.08; letter-spacing:-.055em; font-weight:500; }
h2 { font-size:22px; line-height:1.2; overflow-wrap:anywhere; }
.shell { width:min(1220px,calc(100% - 64px)); margin-inline:auto; }
.site-header {
  border-bottom:1px solid #cfc7a733;
  background:linear-gradient(100deg,#121c22f7,#142027ed 65%,#1d2324e6);
  box-shadow:0 9px 32px #01070b33;
}
.header-inner { min-height:69px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.brand { display:inline-flex; align-items:center; gap:11px; font-weight:500; letter-spacing:.12em; color:#f6e7ca; }
.brand img { filter:drop-shadow(0 0 10px #dfc4893d); }
nav { display:flex; gap:22px; align-items:center; color:var(--muted); font-size:13px; }
.site-header nav a { white-space:nowrap; }
.page-heading { padding:46px 0 27px; display:flex; align-items:center; justify-content:space-between; gap:22px; }
.page-heading p { margin-top:11px; }
#main > .page-heading {
  position:relative;
  isolation:isolate;
  min-height:154px;
  padding:clamp(22px,3.6vw,38px);
  margin-top:20px;
  margin-bottom:18px;
  border:1px solid #9581655e;
  border-radius:12px;
  background:linear-gradient(90deg,#131d24 10%,#142027f2 55%,#392f23a8 112%);
  box-shadow:inset 0 1px #ffe1aa25,0 14px 35px #070a0e59;
}
#main > .page-heading::before {
  position:absolute;
  z-index:-1;
  inset:0;
  content:"";
  pointer-events:none;
  border-radius:inherit;
  background:radial-gradient(ellipse at 75% -13%,#daae613a,transparent 57%),
             repeating-radial-gradient(ellipse 170px 110px at 83% -18%,transparent 0 20px,#dfc48913 21px 22px,transparent 23px 27px);
  mask-image:linear-gradient(90deg,transparent 39%,#000 90%);
}
#main .page-heading h1 { color:#fff0d4; text-shadow:0 2px 18px #e2b27124; }
#main .page-heading .roster-actions a.button { border-color:#8b734e; background:#362d20; color:#f6dead; }
#main .page-heading .roster-actions a.button:hover { border-color:var(--gold); background:#4a3b27; }
.roster-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.roster-actions a.button { display:inline-flex; align-items:center; }
.muted,.table-note,.status { color:var(--muted); }
.button,select,input {
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:7px;
  min-height:42px;
  padding:9px 13px;
}
.button:hover:not(:disabled),select:hover { border-color:var(--gold); }
.primary { background:var(--gold); color:#191b17; border-color:transparent; font-weight:500; }
.primary:hover:not(:disabled) { background:#ecd7a9; }
.subtle { background:transparent; border-color:transparent; color:var(--muted); }
.table-controls,.filters,.table-actions { display:flex; align-items:end; gap:10px; }
.table-controls { justify-content:space-between; flex-wrap:wrap; margin-bottom:13px; }
.filters label { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.filters select { color:var(--text); font-size:13px; padding-right:24px; }
.status { font-size:13px; margin:8px 0; }
.status:empty { display:none; }
.table-frame { border:1px solid var(--line); border-radius:8px; overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-variant-numeric:tabular-nums; }
thead { background:#1d211d; color:var(--muted); font-size:12px; }
th,td { padding:12px 14px; border-bottom:1px solid var(--line); }
thead th { white-space:nowrap; font-weight:500; }
th button { border:0; background:transparent; padding:4px 0; color:inherit; white-space:nowrap; }
th[aria-sort] button { color:var(--gold); }
th[aria-sort="descending"] button::after { content:' ↓'; }
th[aria-sort="ascending"] button::after { content:' ↑'; }
tbody tr:last-child td { border-bottom:0; }
tbody tr { background:var(--panel); }
tbody tr:hover { background:#20231f; }
.player-row { cursor:pointer; }
.player-row:focus-within { background:#20231f; }
.position { width:40px; color:var(--muted); }
#main .table-frame { border-radius:10px; box-shadow:0 17px 48px #060b104d; }
#board thead { background:linear-gradient(180deg,#263238,#202d34); color:#c1cecc; }
#board thead th { padding-block:11px; }
#board tbody tr { background:#162127; }
#board tbody tr:nth-child(even) { background:#141e24; }
#board tbody .player-row:is(:hover,:focus-within) { background:#253437; }
#board .position { text-align:center; }
#board:has([data-sort-head="rating"][aria-sort="descending"]) .player-row:first-child { background:linear-gradient(90deg,#48382280,#263238 52%,#1b292e); }
#board:has([data-sort-head="rating"][aria-sort="descending"]) .player-row:first-child:is(:hover,:focus-within) { background:linear-gradient(90deg,#5c482c90,#304044 80%); }
#board:has([data-sort-head="rating"][aria-sort="descending"]) .player-row:first-child .position { box-shadow:inset 2px 0 #dfb56c; color:#f8da9c; }
#board .player-link { color:#faf1e4; }
#board .player-link:is(:hover,:focus-visible),#board .player-row:hover .player-link { color:#f6dca5; }
#board .avatar { outline:1px solid #c9ac7845; outline-offset:1px; }
#board .win-col { color:#b3e4ce; }
#board .score { font-weight:500; color:#fff0d4; }
.player-link { border:0; background:none; padding:0; display:flex; align-items:center; gap:10px; text-align:left; font-weight:500; min-height:38px; }
.player-row:hover .player-link,.player-link:hover { color:var(--gold); }
.link-arrow { color:var(--gold); font-size:18px; font-weight:400; line-height:1; flex:none; }
.player-link span { overflow-wrap:anywhere; }
.avatar { width:35px; height:35px; object-fit:cover; border-radius:5px; flex:none; background:#292e25; }
.hero { display:flex; align-items:center; gap:8px; font-size:12px; }
.hero img { width:27px; height:27px; object-fit:cover; border-radius:4px; flex:none; }
.hero-list { display:grid; gap:3px; margin:0; padding:0; list-style:none; }
.hero-list .hero { gap:6px; }
.hero-list .hero img { width:20px; height:20px; }
.hero-list .hero span { overflow-wrap:anywhere; }
.hero-list-mobile { display:none; }
.fine { font-size:11px; color:var(--muted); display:block; }
.score { font-weight:500; white-space:nowrap; }
.grade { display:inline-flex; align-items:center; justify-content:center; min-width:22px; padding:1px 4px; margin-right:5px; border-radius:4px; background:#303630; color:var(--text); font-size:11px; }
.grade[data-grade="S"],.grade[data-grade="A"] { background:#443b22; color:#f0d599; }
.grade[data-grade="B"] { background:#25392f; color:#b7ddc4; }
.grade[data-grade="D"],.grade[data-grade="F"] { background:#402e2b; color:#f0b1a8; }
.win { color:var(--green); }
.loss { color:var(--red); }
.match-form { display:inline-flex; gap:3px; flex-wrap:wrap; }
.match-form > span { display:grid; place-items:center; width:15px; height:15px; border-radius:3px; font-size:10px; line-height:1; }
.form-win { background:#25392f; color:#b7ddc4; }
.form-loss { background:#402e2b; color:#f0b1a8; }
#board .match-form { display:flex; width:max-content; margin-top:3px; }
.empty { color:var(--muted); padding:38px 20px; text-align:center; }
.table-note { margin-top:13px; font-size:12px; }
.site-footer { margin-top:37px; border-top:1px solid var(--line); padding:17px 0; display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; }
.mobile-col { display:none; }
dialog {
  width:min(570px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  overflow:auto;
  background:#1a1d1a;
  border:1px solid #4b5144;
  border-radius:10px;
  padding:22px;
  color:var(--text);
}
dialog.wide { width:min(820px,calc(100vw - 28px)); }
dialog::backdrop { background:#080a09ba; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:17px; }
.close { width:42px; height:42px; border:1px solid var(--line); border-radius:6px; background:none; font-size:24px; }
.search-form label { display:block; font-size:13px; color:var(--muted); margin-bottom:7px; }
.search-controls { display:flex; gap:8px; }
.search-controls input { flex:1; min-width:0; }
.candidate { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.candidate:last-child { border-bottom:0; }
.candidate-profile { display:flex; align-items:center; gap:10px; min-width:0; }
.candidate .button { flex:none; }
.roster-members { margin:0; padding:0; list-style:none; }
.roster-members .candidate-profile { overflow-wrap:anywhere; }
.roster-confirm-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:14px; }
.danger { color:var(--red); border-color:#72514b; }
.shared-match { width:min(820px,calc(100% - 24px)); padding-top:20px; }
.share-back { display:inline-flex; align-items:center; min-height:42px; margin-bottom:8px; color:var(--gold); }
#shared-breakdown { background:#1a1d1a; border:1px solid #4b5144; border-radius:10px; }
.breakdown-head { padding:16px 20px; margin:0; border-bottom:1px solid var(--line); }
.breakdown-head p { margin-top:4px; font-size:12px; overflow-wrap:anywhere; }
.breakdown-body { min-width:0; padding:16px 20px 20px; }
.match-card > .match-breakdown {
  container:match-detail / inline-size;
  min-width:0;
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--panel) 82%,var(--bg));
  border-radius:0 0 8px 8px;
}
.match-card .breakdown-head { padding:7px 12px; }
.match-card .breakdown-head h2 { font-size:15px; }
.match-card .breakdown-head p { margin-top:1px; }
.match-card .breakdown-head .close { width:34px; height:34px; flex-shrink:0; }
.match-card .breakdown-body { padding:10px 12px 14px; }
.match-card .breakdown-summary,.match-card .breakdown-share { margin-bottom:10px; }
.match-badges {
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap:4px 5px;
  min-width:0;
}
.match-badges[hidden],.match-card[data-expanded] > .match-card-badges { display:none; }
.match-card-badges { padding:0 8px 5px; }
.breakdown-badges { padding:8px 12px; border-bottom:1px solid var(--line); }
.match-badge { --badge-color:var(--gold); max-width:100%; }
.match-badge[data-tone="positive"] { --badge-color:var(--green); }
.match-badge[data-tone="negative"] { --badge-color:var(--red); }
.match-badge-button {
  display:block;
  max-width:100%;
  padding:2px 6px;
  border:1px solid color-mix(in srgb,var(--badge-color) 55%,transparent);
  border-radius:4px;
  background:color-mix(in srgb,var(--badge-color) 12%,#152128);
  color:var(--badge-color);
  font-size:11px;
  font-weight:500;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.match-badge-tip {
  position:absolute;
  z-index:4;
  inset-block-start:var(--tip-top,0);
  inset-inline-start:var(--tip-left,6px);
  transform:translateY(-100%);
  max-width:min(280px,calc(100% - 12px));
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:5px;
  background:#101920;
  color:var(--text);
  box-shadow:0 4px 16px #060d13a0;
  cursor:default;
  font-size:12px;
  line-height:1.35;
  overflow-wrap:anywhere;
  user-select:none;
  visibility:hidden;
}
.match-badge:has(button:focus-visible):not([data-tip-dismissed]) .match-badge-tip,
.match-badge[data-pinned] .match-badge-tip { visibility:visible; }
@media (hover:hover) {
  .match-badge:hover:not([data-tip-dismissed]) .match-badge-tip { visibility:visible; }
}
@media (pointer:coarse) {
  .match-badge-button { min-height:26px; }
}
@media (max-width:430px) {
  .match-card-badges > .match-badge { max-width:calc((100% - 5px) / 2); }
  .match-card-badges .match-badge-button { padding-inline:4px; }
}
@media (prefers-reduced-motion:no-preference) {
  .match-card > .match-breakdown { animation:breakdown-reveal 190ms ease-out; }
  @keyframes breakdown-reveal { from { opacity:0; transform:translateY(-5px); } }
}
.breakdown-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 17px; }
.breakdown-stat { padding:9px 11px; background:#22261f; border:1px solid var(--line); border-radius:6px; }
.breakdown-stat dt { font-size:12px; color:var(--muted); }
.breakdown-value { margin:3px 0 0; font-size:20px; font-weight:500; font-variant-numeric:tabular-nums; }
.breakdown-scale { font-size:12px; color:var(--muted); }
.breakdown-share { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:17px; }
.breakdown-share .button { padding-inline:10px; font-size:12px; }
.breakdown-share #copy-match { border-color:#665a3e; color:var(--gold); }
.breakdown-share #copy-match:hover:not(:disabled) { border-color:var(--gold); }
.breakdown-share textarea {
  width:100%;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--bg);
  color:var(--text);
  padding:9px;
  font:inherit;
}
.breakdown-share .status { margin:0; }
.breakdown-grid { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:14px; }
.breakdown-grid h3 { margin:0 0 7px; font-size:14px; font-weight:500; }
.breakdown-participant { margin:-3px 0 7px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
#breakdown-details { scroll-margin-top:10px; }
.breakdown-panel { border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.breakdown-panel :is(th,td) { padding:6px 9px; }
.breakdown-panel tbody th { font-weight:400; }
.breakdown-panel tbody tr:last-child th { border-bottom:0; }
.breakdown-metrics { table-layout:fixed; }
.breakdown-metrics :is(th,td) { padding-block:4px; }
.breakdown-metrics thead th:nth-child(2) { width:24%; }
.breakdown-metrics thead th:nth-child(3),.breakdown-metrics thead th:nth-child(4) { width:18%; }
.breakdown-metrics :is(th,td):not(:first-child),.breakdown-lobby :is(th,td):last-child { text-align:right; }
.breakdown-metrics td { white-space:nowrap; }
.breakdown-base,.breakdown-rounding { font-size:12px; color:var(--muted); }
.breakdown-bonus { background:#23281f; }
.formula-subtitle { margin-bottom:5px; font-size:14px; }
#bonus-weights b { white-space:nowrap; }
.breakdown-metrics tfoot { color:var(--gold); background:#25291f; border-top:1px solid var(--line); }
.breakdown-metrics tfoot :is(th,td) { border-bottom:0; font-weight:500; }
.breakdown-note { margin-top:7px; font-size:11px; color:var(--muted); }
.lobby-heading { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 10px; margin-bottom:7px; }
.breakdown-grid .lobby-heading h3 { margin:0; }
.lobby-teams { margin:0; padding:0; list-style:none; font-size:11px; color:var(--muted); }
.lobby-teams:not([hidden]) { display:flex; flex-wrap:wrap; gap:4px 10px; }
.lobby-teams li { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.lobby-teams li::before { content:""; width:3px; height:9px; border-radius:1px; background:var(--lobby-team-color); }
/* Deadlock HUD team1Color and team2Color. */
#breakdown-lobby-panel [data-team="Team0"] { --lobby-team-color:var(--team-0); }
#breakdown-lobby-panel [data-team="Team1"] { --lobby-team-color:var(--team-1); }
.breakdown-lobby .hero img { width:22px; height:22px; }
.breakdown-lobby .hero span { overflow-wrap:anywhere; }
.lobby-place { width:33px; color:var(--muted); }
.lobby-row { cursor:pointer; }
.lobby-row[data-team] .lobby-place { box-shadow:inset 3px 0 var(--lobby-team-color); }
.lobby-player { display:block; width:100%; border:0; padding:4px 0; background:transparent; text-align:left; }
.lobby-row:hover .lobby-player,.lobby-selected .lobby-place { color:var(--gold); }
.lobby-selected,.lobby-selected:hover { background:#2d2b20; }
.lobby-meter { display:block; height:3px; min-width:51px; margin-top:3px; border-radius:3px; background:#373d32; }
.lobby-meter span { display:block; height:100%; border-radius:inherit; background:#798b78; }
.lobby-selected .lobby-meter span { background:var(--gold); }
.build-toolbar { display:flex; align-items:center; justify-content:space-between; gap:6px 12px; flex-wrap:wrap; margin-bottom:7px; }
.breakdown-grid .build-toolbar h3 { margin:0; }
.build-player-badge { color:var(--muted); font-size:12px; min-width:0; overflow-wrap:anywhere; }
.build-player-badge img { width:22px; height:22px; }
#build-player { display:none; }
.build-events { list-style:none; margin:0; padding:0; max-height:min(55vh,620px); overflow:auto; overscroll-behavior:contain; border:1px solid var(--line); border-radius:6px; }
.build-event { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:42px; padding:5px 8px; border-bottom:1px solid var(--line); }
.build-event:last-child { border-bottom:0; }
.build-time { color:var(--gold); font-size:12px; font-variant-numeric:tabular-nums; }
.build-event:has(.build-time-link) { grid-template-columns:minmax(48px,max-content) minmax(0,1fr) auto; }
.build-time-link { display:inline-flex; align-items:center; justify-content:space-between; gap:2px; min-height:32px; padding:0 3px; border:0; border-radius:4px; background:none; }
.build-time-link:is(:hover,:focus-visible) { background:#ffffff08; }
.build-time-link:focus-visible { outline-offset:-2px; }
.build-item { display:flex; align-items:center; gap:7px; min-width:0; }
.build-icon { width:32px; height:26px; flex:none; object-fit:contain; }
.build-name { font-size:13px; overflow-wrap:anywhere; }
.build-action { color:var(--muted); font-size:11px; }
.build-action[data-action="sell"] { color:var(--red); }
.build-action[data-action="upgrade"] { color:var(--green); }
.view-tabs button[hidden] { display:none; }
.method { margin:0 0 18px; padding-left:20px; color:var(--muted); }
.method li { padding:0 0 8px 5px; }
.method code { color:var(--gold); white-space:nowrap; }
.weights { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
.weight { display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-bottom:1px solid var(--line); font-size:12px; }
.weight b { color:var(--gold); font-weight:500; }

@media (max-width:850px) {
  .shell { width:calc(100% - 36px); }
  th,td { padding:11px 9px; }
  #board .hero-col { display:none; }
  .hero-list-mobile { display:grid; margin-top:4px; }
}
@media (max-width:620px) {
  .stats-scene { --orbit-center:91%; --orbit-size:242px; --orbit-travel-x:-25px; --orbit-travel-y:50px; }
  .shell { width:calc(100% - 24px); }
  .header-inner { min-height:56px; gap:12px; }
  .brand { gap:7px; font-size:12px; }
  .brand img { width:21px; height:22px; }
  nav { gap:11px; font-size:11px; }
  .page-heading { padding:24px 0 17px; flex-wrap:wrap; gap:13px; }
  #main > .page-heading { min-height:0; margin:13px 0; padding:16px; }
  #main > .page-heading::before { mask-image:linear-gradient(90deg,transparent 4%,#000); }
  .page-heading p { margin-top:6px; font-size:12px; }
  .roster-actions { justify-content:flex-start; }
  .table-actions { width:100%; justify-content:space-between; }
  .filters { width:100%; }
  .filters label { flex:1; min-width:0; }
  .filters select { width:100%; }
  .table-controls { gap:8px; }
  .button,select,input { min-height:44px; }
  #board th:nth-child(3),#board th:nth-child(4),#board th:nth-child(5),#board th:nth-child(6),
  #board td.rank-col,#board td.matches-col,#board td.win-col,#board td.kda-col { display:none; }
  #board .mobile-col { display:table-cell; }
  #board .position { width:25px; }
  #board thead th,#board td { padding:8px 6px; }
  #board th { font-size:10px; }
  #board .player-link { font-size:12px; gap:6px; min-height:44px; }
  #board .avatar { width:25px; height:25px; }
  .hero-list-mobile .hero { font-size:11px; }
  .hero-list-mobile .hero img { width:16px; height:16px; }
  #board .match-form > span { width:12px; height:13px; font-size:9px; }
  #board .score { font-size:12px; }
  .fine { font-size:10px; }
  .table-note { font-size:11px; }
  dialog { padding:14px; }
  .breakdown-head,.breakdown-body { padding:12px; }
  .breakdown-head h2 { font-size:18px; }
  .breakdown-grid { grid-template-columns:minmax(0,1fr); }
  .breakdown-stat { padding:7px 8px; }
  .breakdown-value { font-size:17px; }
  .breakdown-panel :is(th,td) { padding:6px; font-size:12px; }
  .weights { grid-template-columns:1fr; }
}
@media (max-width:370px) {
  .breakdown-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .breakdown-stat:last-child { grid-column:1/-1; }
  .breakdown-metrics :is(th,td) { padding-inline:4px; font-size:11px; }
  .breakdown-metrics thead th:nth-child(2) { width:27%; }
  .breakdown-metrics thead th:nth-child(3) { width:19%; }
}
