/* Stat Scuttler
   Navy and ivory, like a broadcast desk at night. Colour is kept for meaning:
   blue = clearly winning, red = clearly losing, amber and teal = physical and magic damage, green and amber = the crawler's state.
   Everything else is ink on the ground. The top bar and the champion bands stay navy in both themes. */

/* ------------------------------------------------------------------ tokens */
:root, .navy {
  color-scheme: dark;
  --navy: #0A1120;
  --bg: #0F1728; --surface: #162036; --surface-2: #1D2A45; --surface-3: #263556;
  --line: #25324C; --line-2: #384867; --ctl: #5A6C8F;
  --text: #F1EEE6; --text-2: #B3BCCD; --text-3: #8B97AE;
  --win: #4C8FF2; --loss: #E8594F; --on-win: #0A1120; --on-loss: #0A1120;
  --win-wash: rgb(76 143 242 / .18); --loss-wash: rgb(232 89 79 / .18);
  --win-ink: #8DB8FF; --loss-ink: #FF9C93;
  --phys: #CC7A28; --magic: #2BA5C2; --true: #C5CCD9; --hybrid: #8E9A3B; --tank: #7C89A3;
  --ok: #3FB37F; --warn: #D9A13B;
  --inv: #F1EEE6; --on-inv: #0A1120;
  --focus: #F1EEE6;
  --shadow: 0 16px 40px rgb(2 6 16 / .5);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5l3-3' fill='none' stroke='%23B3BCCD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root {
  --font: "Unbounded", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1280px; --gut: 32px; --top: 60px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) transparent; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
       font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; min-width: 0; overflow-x: clip; }
main:focus { outline: 0; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
img.is-missing { visibility: hidden; }
.face[data-short] { position: relative; }      /* a portrait that did not load shows the start of the name */
.face[data-short]::after { content: attr(data-short); position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-2); font-size: 12px; font-weight: 650; }
main[aria-busy="true"] { opacity: .55; transition: opacity .15s var(--ease); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font: inherit; }
::selection { background: var(--inv); color: var(--on-inv); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.navy { color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 60; padding: 8px 12px; border-radius: var(--r-s); background: var(--inv); color: var(--on-inv); font-weight: 650; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.t-dim { color: var(--text-3); }

/* type: one family, Unbounded, the typeface of the wordmark */
.h1 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.012em; text-wrap: balance; }
.h3 { font-size: 14px; line-height: 1.3; font-weight: 650; }
.lede { color: var(--text-2); max-width: 70ch; text-wrap: pretty; }
.note { color: var(--text-3); font-size: 13px; max-width: 72ch; text-wrap: pretty; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px;
        transition: text-decoration-color .15s var(--ease); }
.link:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ top bar */
.top { position: sticky; top: 0; z-index: 40; background: var(--navy); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 8px 20px; height: var(--top); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand img { display: block; flex: none; }
@media (max-width: 779px) { .brand > img { width: 38px; height: auto; } }
.brand span img { transform: translateY(-3px); }      /* the antenna tips stand above the letters; this centres the letters on the bar */
.boot { display: grid; place-items: center; min-height: 60vh; opacity: 0; animation: boot-in .2s .3s forwards; }      /* shown only when loading takes a moment */
@keyframes boot-in { to { opacity: 1; } }
.nav { display: flex; align-self: stretch; gap: 4px; }
.nav a { position: relative; display: flex; align-items: center; padding: 0 10px; color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 550; white-space: nowrap;
         transition: color .15s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: left;
                transition: transform .15s var(--ease); }
.nav a:hover::after { transform: scaleX(1); opacity: .35; }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }

.find { position: relative; flex: 1 1 220px; min-width: 204px; max-width: 340px; margin-left: auto; }
.find input { width: 100%; height: 38px; padding: 0 40px 0 36px; font-size: 13px; border: 1px solid var(--ctl); border-radius: var(--r-s); background: var(--surface); color: var(--text);
              transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.find input::placeholder { color: var(--text-3); }
.find input::-webkit-search-cancel-button { display: none; }
.find input:hover { border-color: var(--text-3); }
.find input:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px rgb(241 238 230 / .14); }
.find-ic { position: absolute; left: 12px; top: 11px; color: var(--text-3); pointer-events: none; }
.find-key { position: absolute; right: 9px; top: 9px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px;
            color: var(--text-3); font-size: 12px; line-height: 1; pointer-events: none; }
.find input:focus ~ .find-key { visibility: hidden; }
.find-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 300px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-m);
             background: var(--surface); box-shadow: var(--shadow); }
.find-list li { display: flex; align-items: center; gap: 12px; padding: 4px 8px; border-radius: var(--r-s); cursor: pointer; }
.find-list li[aria-selected="true"], .find-list li[data-go]:hover { background: var(--surface-2); }
.find-name { display: grid; min-width: 0; line-height: 1.25; }
.find-name b { font-weight: 650; }
.find-name small { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 13px; }
.find-n { margin-left: auto; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.find-none { color: var(--text-2); cursor: default; }
.find-list li[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--ctl); }
.find-list, .pop { max-height: calc(100vh - var(--top) - 24px); overflow-y: auto; }
.tabs a:focus-visible, .nav a:focus-visible, .glist a:focus-visible { outline-offset: -2px; }

.status-wrap { position: relative; flex: none; }
.status { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: none; color: var(--text-2); white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.status:hover, .status[aria-expanded="true"] { background: var(--surface); border-color: var(--text-3); color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot--on { background: var(--ok); } .dot--idle { background: var(--warn); } .dot--off { background: var(--loss); }
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 320px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface);
       box-shadow: var(--shadow); }
.pop-lead { color: var(--text-2); margin-bottom: 12px; text-wrap: pretty; }
.pop-list div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.pop-list dt { color: var(--text-2); }
.pop-list dd { font-weight: 650; text-align: right; }
.icon-btn { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: none; color: var(--text-2);
            transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease); }
.icon-btn:hover { background: var(--surface); border-color: var(--text-3); color: var(--text); }
.icon-btn:active { transform: scale(.94); }

.foot { margin-top: 96px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.foot-in { display: grid; gap: 8px; padding-block: 28px 40px; }
.foot p { max-width: 96ch; text-wrap: pretty; }
.foot .link { white-space: nowrap; }
.foot p:first-child, .foot-links { color: var(--text-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: -4px; }

/* ------------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-s);
       font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer;
       transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.btn--main { background: var(--inv); color: var(--on-inv); }
.btn--main:hover { background: color-mix(in oklab, var(--inv) 86%, var(--on-inv)); }
.btn--quiet { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn--quiet:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) and (pointer: fine) { .btn:hover:not(:active) { transform: translateY(-1px); } }

.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.seg > * { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: none; color: var(--text-2);
           font-weight: 550; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease); }
.seg > :hover { color: var(--text); background: var(--surface-2); }
.seg > :active { transform: scale(.97); }
.seg > [aria-current="true"], .seg > [aria-pressed="true"] { background: var(--inv); color: var(--on-inv); font-weight: 650; }
.select, .field { height: 38px; border: 1px solid var(--ctl); border-radius: var(--r-s); background-color: var(--surface); color: var(--text);
                  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.select { appearance: none; padding: 0 32px 0 12px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 11px center; background-size: 10px; max-width: 100%; cursor: pointer; }
.field { padding: 0 8px; }
.field::placeholder { color: var(--text-3); opacity: 1; }
.select:hover, .field:hover { border-color: var(--text-3); }
.select:focus-visible, .field:focus-visible { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in oklab, var(--text) 16%, transparent); }
.ctl { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bar .push { margin-left: auto; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; padding: 12px 12px; color: var(--text-2); text-decoration: none; font-weight: 650; font-size: 15px; white-space: nowrap; transition: color .15s var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .15s var(--ease); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ game pictures */
.face { --s: 32px; display: inline-block; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .2); overflow: hidden; background: var(--surface-2); vertical-align: middle; }
.face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.ico { --s: 32px; flex: none; width: var(--s); height: var(--s); border-radius: 6px; background: var(--surface-2); object-fit: cover; }
.ico--text { display: inline-grid; place-items: center; color: var(--text-2); font-size: 12px; font-weight: 650; }
.rune { --s: 32px; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: #0A1120; }
.rune img { width: 100%; height: 100%; border-radius: 50%; }
.rune--shard { box-shadow: inset 0 0 0 1px var(--line-2); }
.rune--shard img { width: 72%; height: 72%; }
.rune.is-off { opacity: .55; filter: grayscale(.9); }
.tree-ic { flex: none; border-radius: 50%; background: var(--navy); }
.abil { --s: 32px; position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); }
.abil img { width: 100%; height: 100%; border-radius: 6px; background: var(--surface-2); }
.abil kbd { position: absolute; right: -4px; bottom: -4px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 4px; background: var(--navy); color: var(--text);
            font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 1px var(--line-2); }
.abil--bare { display: inline-grid; place-items: center; border-radius: 6px; background: var(--surface-2); }
.abil--bare kbd { position: static; background: none; box-shadow: none; color: var(--text); font-size: 13px; }
.role-ic { --s: 18px; display: inline-block; flex: none; width: var(--s); height: var(--s); background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

.dmg { display: inline-flex; gap: 2px; width: 84px; height: 8px; vertical-align: middle; }
.dmg i { display: block; height: 100%; min-width: 2px; border-radius: 4px; }
.key { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.key:not(:has(> i)) { white-space: normal; }      /* a key that is a sentence may wrap */
.key i { flex: none; width: 9px; height: 9px; border-radius: 4px; }
.keys { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 13px; }
.result { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 13px; font-weight: 650; }
.result--win { background: var(--win-wash); color: var(--win-ink); } .result--loss { background: var(--loss-wash); color: var(--loss-ink); }

.tip { position: fixed; z-index: 70; max-width: min(360px, calc(100vw - 16px)); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--navy); color: var(--text); box-shadow: 0 12px 32px rgb(2 6 16 / .5);
       font-size: 13px; line-height: 1.5; pointer-events: none; }
.tip[hidden] { display: none; }
.tip b { font-weight: 650; }
.tip .t-dim { color: #9AA6BC; }
.tip .t-pos { color: var(--win-ink); } .tip .t-neg { color: var(--loss-ink); }

/* ------------------------------------------------------------------ page furniture */
.page { padding-block: 32px 0; }
.page-head { display: grid; gap: 4px; margin-bottom: 24px; }
.sec { margin-top: 56px; min-width: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.sec-head > div:not(.seg):not(.keys):not(.bar) { display: grid; gap: 4px; min-width: 0; }
.blank { display: grid; gap: 8px; justify-items: start; max-width: 60ch; padding: 48px 0; color: var(--text-2); }
.blank .h2 { color: var(--text); }
.wait { display: flex; align-items: center; gap: 8px; margin-left: -8px; }
.wait img { display: block; }
.skel { display: grid; gap: 12px; padding-block: 8px; }
.skel span { height: 16px; border-radius: 4px; background: var(--surface-2); }
.skel span:nth-child(3n + 1) { width: 72%; } .skel span:nth-child(3n + 2) { width: 88%; } .skel span:nth-child(3n) { width: 54%; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line-2); color: var(--text-3); font-size: 13px; font-weight: 550; text-align: left; white-space: nowrap; vertical-align: middle; }
.tbl td { height: 48px; padding: 0 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .plot { width: 22%; min-width: 96px; }
.tbl .strong { font-weight: 650; }
.tbl .faint { color: var(--text-3); }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 650; }
.who span { overflow: hidden; text-overflow: ellipsis; }
a.who { text-decoration: none; }
a.who:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ navy bands (home, champion, game) */
.band { position: relative; overflow: hidden; background: var(--navy); border-bottom: 1px solid var(--line); }
.band-in { position: relative; padding-block: 32px; }
.band-art { position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; width: min(64%, 820px); pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.band-art.is-in { opacity: .82; }
.band-art.is-seen { transition: none; }
.band-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
                -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 38%, #000 82%, transparent); }
/* the lower part of the picture is darkened, so the facts set over it stay readable on a bright splash */
.band-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(10 17 32 / .8)); }
.band-in > :not(.band-art) { position: relative; z-index: 1; }
.c-band .band-art::after { background: linear-gradient(180deg, rgb(10 17 32 / .1) 0%, rgb(10 17 32 / .6) 50%, rgb(10 17 32 / .92) 100%); }
.g-band .band-art::after { background: linear-gradient(180deg, transparent 15%, rgb(10 17 32 / .85) 58%); }
.band .facts, .band .teams { text-shadow: 0 1px 2px rgb(10 17 32 / .9), 0 0 12px rgb(10 17 32 / .6); }
.hero .band-art, .c-band .band-art { right: min(0px, (100% - 100vw) / 2); width: calc(min(64%, 820px) + max(0px, (100vw - 100%) / 2)); }
.crumb { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 20px; color: var(--text-2); text-decoration: none; font-weight: 550; border-radius: 4px; transition: color .15s var(--ease); }
.crumb:hover { color: var(--text); }
.crumb svg { transition: transform .15s var(--ease); }
.crumb:hover svg { transform: translateX(-3px); }

/* ------------------------------------------------------------------ home */
.hero h1 { max-width: 15em; font-size: 44px; line-height: 1.04; font-weight: 800; letter-spacing: -.028em; text-wrap: balance; }
.hero .lede { margin-top: 16px; font-size: 16px; max-width: 54ch; }
.hero .band-in { padding-block: 56px 48px; }
.hero-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.hero-roles p { flex-basis: 100%; color: var(--text-2); font-weight: 550; }
.role-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: rgb(22 32 54 / .8); color: var(--text);
            font-weight: 650; text-decoration: none; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.role-btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.blank .role-btn { background: var(--surface); }      /* outside a navy band the tint would not carry the text */
.role-btn:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) and (pointer: fine) { .role-btn:hover:not(:active) { transform: translateY(-1px); } }

.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 64px; }
.duo > section { display: flex; flex-direction: column; }      /* the buttons at the foot of both columns share a line */
.duo > section > .seg { align-self: flex-start; }
.sec-foot { margin-top: auto; padding-top: 16px; }
.duo > div > .sec:first-child { margin-top: 0; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.two-up .sub-h { margin-top: 0; }
.rows { display: grid; }
.grow { display: grid; align-items: center; gap: 12px; min-height: 52px; padding: 4px 8px; margin-inline: -8px; border-radius: var(--r-s); text-decoration: none; transition: background-color .15s var(--ease); }
.grow { position: relative; }
.grow + .grow::before, .rows > li + li > .grow::before { content: ""; position: absolute; left: 8px; right: 8px; top: -1px; height: 1px; background: var(--line); }
a.grow:hover, button.grow:hover { background: var(--surface); }
a.grow:hover::before, button.grow:hover::before, a.grow:hover + .grow::before, button.grow:hover + .grow::before,
.rows > li:hover > .grow::before, .rows > li:hover + li > .grow::before { background: none; }
.game-row { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
.game-row .what { display: grid; line-height: 1.3; min-width: 0; }
.game-row .what b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-row .what small { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-row .when { color: var(--text-3); font-size: 13px; white-space: nowrap; min-width: 56px; text-align: right; }
.most { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 12px 0 20px; }
.most a { display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); text-decoration: none; white-space: nowrap;
          font-weight: 650; transition: border-color .15s var(--ease), transform .2s var(--ease); }
.most a b { flex: none; font-weight: 650; }
.most a small { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-weight: 400; font-size: 13px; }
.most a:hover { border-color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .most a:hover { transform: translateY(-2px); } }

.meter-row { display: grid; grid-template-columns: minmax(0, 148px) minmax(0, 1fr) 72px; align-items: center; gap: 12px; min-height: 40px; }
.meter-row dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.meter-row dd:last-child { text-align: right; font-weight: 650; }
.meter { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.meter i { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--text-2); }
.change .meter i { min-width: 16px; }

.change { display: grid; grid-template-columns: 36px minmax(0, 1fr) 96px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.change .what { display: grid; line-height: 1.35; min-width: 0; }
.change .what a, .change .what b { font-weight: 650; text-decoration: none; }
.change .what a:hover { text-decoration: underline; text-underline-offset: 3px; }
.change .what small { color: var(--text-2); font-size: 13px; text-wrap: pretty; }
.change .size { display: grid; gap: 4px; color: var(--text-3); font-size: 12px; text-align: right; }

.champ-table { margin-top: 4px; table-layout: fixed; }
.champ-table .col-win_rate { width: 96px; } .champ-table .col-pick_rate, .champ-table .col-ban_rate { width: 88px; }
.champ-table .col-pbi { width: 72px; } .champ-table .col-mains { width: 80px; } .champ-table .col-games { width: 90px; }
.champ-table thead th { position: sticky; top: var(--top); z-index: 2; background: var(--bg); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line-2); }
.champ-table th button { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin: 0 -4px; border: 0; background: none; color: inherit; font-weight: inherit; border-radius: 4px; }
.champ-table th button svg { position: absolute; left: calc(100% - 3px); top: 50%; translate: 0 -50%; }
.champ-table th button:focus-visible { outline-offset: -1px; }
.champ-table th button:hover, .champ-table th[aria-sort] button { color: var(--text); }

.more { display: flex; justify-content: flex-start; margin-top: 20px; }

.sub-h { margin: 24px 0 4px; color: var(--text-2); font-size: 13px; font-weight: 650; }

/* the three tables of the Enemy build tab share their columns */
.sign-table { table-layout: fixed; }
.sign-table th:nth-child(1) { width: 30%; }
.sign-table th:nth-child(2) { width: 96px; }
.sign-table th:nth-child(4) { width: 210px; }
.sign-table .plot { width: auto; }
.stack { display: flex; gap: 2px; height: 10px; min-width: 120px; }
.stack i { display: block; height: 100%; min-width: 2px; border-radius: 4px; }

.tiles-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.stat-tile { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.stat-tile dt { color: var(--text-2); }
.stat-tile dd { margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -.015em; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--text-3); font-family: var(--font); font-size: 12px; }
.chart text.ev-t { font-size: 12px; font-weight: 800; }
.chart text.em { fill: var(--text); font-weight: 650; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .hot { cursor: pointer; }
.chart .dotface { transition: transform .6s var(--ease); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 12px; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 0 56px; align-items: start; }
.stack-notes { display: grid; gap: 12px; }

/* ------------------------------------------------------------------ my games */
.games { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0 48px; align-items: start; }
.glist-col { position: sticky; top: calc(var(--top) + 24px); display: flex; flex-direction: column; max-height: calc(100vh - var(--top) - 48px); min-height: 0; }
.glist { display: grid; align-content: start; gap: 2px; min-height: 0; margin: 12px -8px 0; padding: 0 8px 28px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
         -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); }
.glist .grow { margin: 0; width: 100%; border: 0; background: none; text-align: left; box-shadow: none; }
.glist .grow::before { content: none; }
.glist .grow[aria-current="true"] { background: var(--surface-3); }
/* the small print of a chosen row sits on a lighter ground, so it takes the stronger of the two quiet inks */
.glist .grow[aria-current="true"] small, .champ-table tbody tr[aria-selected="true"] :is(.rk--rest, .val.is-none, .who small) { color: var(--text-2); }
.glist .game-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
.glist .game-row .what small { font-size: 12px; }
.game-row .end { display: grid; justify-items: end; gap: 2px; }
.game-row .end small { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.gtoggle { display: none; }
.gtoggle .chev { color: var(--text-3); }
.g-name { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -.025em; }
.record { display: grid; gap: 2px; color: var(--text-2); }
.record b { color: var(--text); font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.g-band { border: 1px solid var(--line); border-radius: var(--r-l); }
.g-band .band-in { padding: 28px; }
.g-band .band-art { width: min(70%, 620px); }
.g-result { font-size: 13px; font-weight: 650; }
.g-result.is-win { color: var(--win-ink); } .g-result.is-loss { color: var(--loss-ink); }
.teams { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; color: var(--text-3); font-size: 13px; }
.teams .side { display: flex; gap: 4px; }
.teams .face.is-me { box-shadow: 0 0 0 2px var(--text); }
.swing { display: grid; grid-template-columns: 112px 72px minmax(0, 1fr); align-items: start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.swing:last-child { border-bottom: 0; }
.swing .t { color: var(--text-2); }
.swing .ch { font-weight: 800; text-align: right; }
.swing p small { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; }
.trust { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
.trust .chart { max-width: 340px; }
.trust .tbl td { height: 40px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.kv b { color: var(--text); font-weight: 650; text-align: right; }

/* ------------------------------------------------------------------ method */
.prose { display: grid; gap: 12px; max-width: 70ch; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.prose h2 { margin-top: 32px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose b { color: var(--text); font-weight: 650; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.method { display: grid; grid-template-columns: minmax(0, 70ch) minmax(260px, 340px); justify-content: space-between; gap: 0 72px; align-items: start; }
.page-head .lede { font-size: 15px; }
.method aside { position: sticky; top: calc(var(--top) + 24px); display: grid; gap: 4px; }

/* ------------------------------------------------------------------ numbers that say how sure they are */
/* blue: clearly above; red: clearly below; plain: could be either */
.val { white-space: nowrap; }
.is-pos { color: var(--win-ink); }
.is-neg { color: var(--loss-ink); }
.val.is-none { color: var(--text-3); }

/* ------------------------------------------------------------------ home: one role's highest win rates */
.best-row { grid-template-columns: 38px 36px minmax(0, 1fr) auto; }
.best-row .rk { justify-self: center; }
.best-row .what, .duo-row .what { display: grid; line-height: 1.3; min-width: 0; }
.best-row .what b, .duo-row .what b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-row .what small, .duo-row .what small { color: var(--text-3); font-size: 13px; }
.best-row .big { font-size: 16px; font-weight: 650; }
.changes { display: grid; }

.who small { display: block; color: var(--text-3); font-size: 13px; font-weight: 400; }

.duo-row .with { position: relative; display: inline-flex; }
.duo-row.is-early .face { opacity: .6; }
.badge { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--surface-3); color: var(--text);
         box-shadow: 0 0 0 2px var(--bg); }


/* C: list and side panel */
.cpanel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 48px; align-items: start; }
.cpanel { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); padding-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface);
          overflow: hidden auto; scrollbar-width: thin; }
.cpanel a.grow:hover { background: var(--surface-2); }
.cpanel > :not(.cpanel-top) { margin-inline: 20px; }
.cpanel-top { position: relative; height: 116px; background: var(--navy); }
.cpanel-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: .75; }
.cpanel-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgb(10 17 32 / .88)); }
.cpanel-name { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 12px; display: flex; align-items: center; gap: 12px; }
.cpanel-name h2 { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.cpanel-name p { color: var(--text-2); }
.cpanel-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; padding: 16px 0 0; }
.cpanel-facts > :nth-child(3n) { text-align: right; }
.cpanel-facts > :nth-child(3n + 2) { text-align: center; }
.cpanel-facts dt { color: var(--text-3); font-size: 13px; }
.cpanel-facts dd { font-size: 16px; font-weight: 650; }
.duo-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
.duo-row .val { font-weight: 650; }
.cpanel .badge { box-shadow: 0 0 0 2px var(--surface); }
.cpanel-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cpanel .grow { min-height: 46px; padding-block: 4px; }
.cpanel .sub-h { margin-top: 16px; }
.cpanel-facts dd { line-height: 1.3; }

.demo { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.demo .val { grid-row: span 2; align-self: center; font-size: 16px; font-weight: 650; }
.demo b { font-weight: 650; }
.demo small { color: var(--text-3); font-size: 13px; }

/* ------------------------------------------------------------------ striped tables: every other row sits on a panel colour */
.tbl--zebra td { border-bottom: 0; }
.tbl--zebra tbody tr:nth-child(odd) { background: var(--surface); }
.tbl--zebra th:first-child, .tbl--zebra td:first-child { padding-left: 12px; }
.tbl--zebra th:last-child, .tbl--zebra td:last-child { padding-right: 12px; }
.tbl--zebra td:first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
.tbl--zebra td:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }
.champ-table td { height: 56px; }
.champ-table tbody tr { cursor: pointer; transition: background-color .1s var(--ease); }
.champ-table tbody tr:hover { background: var(--surface-2); }
.champ-table tbody tr[aria-selected="true"] { background: var(--surface-3); }
.champ-table tr[aria-selected="true"] .who { font-weight: 800; }
.seg--lg > * { height: 36px; padding: 0 12px; font-size: 15px; }
.bar--lg .select, .bar--lg .field { height: 44px; }      /* beside the larger role switch, everything is 44px high */
.field--find { width: 184px; font-size: 13px; }
@media (max-width: 1399px) { .champ-table .xl-col { display: none; } }
.swatch { flex: none; width: 9px; height: 9px; border-radius: 4px; }
.rate { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.rate b { font-weight: 650; }
.rate small { color: var(--text-2); font-size: 13px; }

/* ------------------------------------------------------------------ champion page: the band */
.c-band .band-in { padding-block: 16px 20px; }
.c-band .crumb { margin-bottom: 12px; }
.c-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.c-top { display: flex; align-items: center; gap: 16px; min-width: 0; }
.c-top .face { box-shadow: 0 0 0 1px var(--line-2); }
.c-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.c-name h1 { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.c-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; color: var(--text-2); }
.c-title span::first-letter { text-transform: uppercase; }
.c-abil { display: flex; gap: 8px; margin-top: 8px; }
.c-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.c-roles a { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: rgb(22 32 54 / .7); color: var(--text-2);
             font-size: 13px; font-weight: 650; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.c-roles a small { font-size: 12px; font-weight: 400; opacity: .8; }
.c-roles a:hover { color: var(--text); border-color: var(--text-3); }
.c-roles a[aria-current="true"] { background: var(--inv); border-color: var(--inv); color: var(--on-inv); }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.facts > div { display: grid; align-content: start; gap: 2px; }
.facts dt { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.facts dd { display: flex; align-items: baseline; gap: 8px; min-height: 26px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.facts dd small { color: var(--text-2); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.g-band .facts { margin-top: 24px; gap: 16px 40px; }
.c-tabs { margin-top: 12px; border-bottom: 1px solid var(--line); gap: 8px 12px; }
.c-tabs .tabs { border-bottom: 0; margin-bottom: -1px; }
.c-tools { margin-left: auto; flex-wrap: nowrap; }      /* the build switch and the filters wrap together, never one alone */
#tab > :first-child { margin-top: 28px; }                /* every tab's first block starts at the same height */

/* ------------------------------------------------------------------ the rune page, laid out as in the game */
.panel-navy { padding: 20px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--navy); }
.panel-navy > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel-navy > header h2 { font-size: 14px; font-weight: 650; }
.rg { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 48px; }
.rg-col { display: grid; align-content: start; gap: 12px; }
/* a tree with four keystones and one with three take the same width, and their rows spread across it as in the game */
.rg-col:first-child { min-width: 238px; }
.rg--stats .rg-col:first-child { min-width: 252px; }
.rg-row { justify-content: space-between; }
.rg-col h3 { display: flex; align-items: center; gap: 8px; height: 24px; color: var(--tree); font-size: 14px; font-weight: 650; }
.rg-row { display: flex; gap: 8px; }
.rg-key { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rg-cell { display: grid; justify-items: center; align-content: start; width: 52px; }
.rg-cell .rune.is-on { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--tree); }
.rg-shards { display: grid; gap: 8px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.rg-shards .rune.is-on { box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px var(--gold); }
.rg--stats { justify-content: space-between; }
.rg--stats .rg-row { gap: 4px; }
.rg--stats .rg-col { gap: 4px; }
.runes-page .panel-navy { padding: 16px 24px 16px; }
.rg--stats .rg-key { padding-bottom: 8px; }
.rg--stats .rg-shards { padding-top: 8px; }
.rg--stats .rg-cell { width: 60px; }
.rg--stats .rg-cell .rune { margin-bottom: 4px; }
.rg--stats .rg-cell b { font-size: 14px; line-height: 1.25; font-weight: 550; color: var(--text-2); }
.rg--stats .rg-cell.is-lit b { font-weight: 800; color: var(--text); }
.rg--stats .rg-cell small { color: var(--text-3); font-size: 12px; line-height: 1.25; }
.rg--stats .rg-shards { gap: 4px; }

/* ------------------------------------------------------------------ build and runes tabs */
.build-top, .runes-page { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 24px 56px; margin-top: 24px; }
.build-top { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 48px; }
.build-top + .sec { margin-top: 40px; }
.core-pics { gap: 4px !important; }
.rate .val { font-size: 13px; }
/* little portraits with a number under each: who counters a champion, who it plays well with */
.pfaces { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.pf { display: grid; justify-items: center; gap: 4px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 650; }
.pf .face { transition: box-shadow .15s var(--ease); }
.pf:hover .face { box-shadow: 0 0 0 2px var(--text-3); }
.pf.is-early .face { opacity: .6; }
.pf .with { position: relative; display: inline-flex; }
.build-side { display: grid; align-content: start; gap: 28px; padding-top: 4px; }
.build-side .h3 { margin-bottom: 8px; font-weight: 650; }
.opt-list { display: grid; justify-content: start; gap: 8px; }
.opt-list--row { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.opt-line { display: flex; align-items: center; gap: 12px; }
.opt-line .pics, .pairs .pics { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.levels { display: flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--text-2); font-size: 13px; }
.levels span { margin-right: 4px; }
.levels kbd, .pairs kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2);
                          color: var(--text); font-size: 12px; font-weight: 650; }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pairs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--text);
                transition: border-color .15s var(--ease), background-color .15s var(--ease), transform .1s var(--ease); }
.pairs .trees { display: inline-flex; }
.pairs .trees img + img { margin-left: -4px; }
.pairs .pics { gap: 4px; }
.pairs button:hover { border-color: var(--text-3); }
.pairs button:active { transform: scale(.98); }
.pairs button[aria-pressed="true"] { border-color: var(--inv); background: var(--inv); color: var(--on-inv); }      /* chosen, as everywhere: inverted */
.pairs button[aria-pressed="true"] .rate small { color: inherit; opacity: .72; }
.pairs button[aria-pressed="true"] kbd { background: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--on-inv) 50%, transparent); color: var(--on-inv); }
.sgrid { display: grid; gap: 4px; max-width: 640px; }
.sgrid-row { display: grid; grid-template-columns: 38px repeat(18, minmax(0, 1fr)); align-items: center; gap: 4px; }
.sgrid-row > span:not(.abil) { display: grid; place-items: center; height: 30px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--on-inv); font-size: 13px; font-weight: 800; }
.sgrid-row > span.is-on { background: var(--inv); box-shadow: none; }
.sgrid .abil kbd { right: -3px; bottom: -2px; }

/* ------------------------------------------------------------------ the item paths */
.sec-head > .keys { display: flex; justify-content: flex-end; gap: 4px 20px; }
.flow-wrap { --gap: clamp(12px, 1.5vw, 28px); display: flex; align-items: stretch; }
.flow-open { display: flex; gap: 0 var(--gap); padding: 4px var(--gap) 8px 0; border-right: 1px solid var(--line); }
.flow-scroll { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: 4px 4px 8px var(--gap); }
.flow-scroll.is-cut { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.flow { position: relative; display: flex; align-items: stretch; gap: 0 var(--gap); min-width: max-content; }
.flow-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-lines path { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.flow-lines .l-most { stroke: var(--text); }
.flow-lines .l-best { stroke: var(--win); }
.flow-group { display: flex; gap: 0 var(--gap); }
.flow-group--boots { padding-left: var(--gap); border-left: 1px solid var(--line); }
.flow-col { position: relative; z-index: 1; display: grid; align-content: start; gap: 8px; min-width: 112px; }
.fnode--plain .pics { min-width: var(--pics, 0); }
.flow-col h3 { height: 22px; color: var(--text-2); font-size: 13px; font-weight: 650; white-space: nowrap; }
.fnode { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fnode > span:not(.pics):not(.sr) { display: grid; line-height: 1.3; }
.fnode b { font-weight: 650; }
.fnode small, .fnode .val { font-size: 13px; }
.fnode small { color: var(--text-2); }
.fnode .pics { display: inline-flex; gap: 4px; }
.fnode.is-most { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.fnode.is-best { outline: 2px solid var(--win); outline-offset: 2px; }
.key i.line { width: 22px; height: 0; border-top: 2.5px solid var(--text); border-radius: 0; }
.key i.line--best { border-top-color: var(--win); }

/* ------------------------------------------------------------------ counters tab */
/* what the champion cares about: one card per enemy role and per teammate role; the chosen one is inverted */
.care-sec .ct-text { margin: 4px 0 0; max-width: none; }
.care-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 0 28px; }
.care-grid .sub-h { margin: 16px 0 8px; }
.care-row { display: grid; grid-template-columns: var(--cols, repeat(4, minmax(0, 1fr))); gap: 8px; }
.care { display: grid; gap: 8px; min-width: 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text-2);
        font: inherit; text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease); }
.care:hover { border-color: var(--text-3); color: var(--text); }
.care:active { transform: scale(.98); }
.care-who { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; font-weight: 650; }
.care-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.care-val { color: var(--text); font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.care-val.is-none { color: var(--text-3); }
.care .meter { height: 6px; background: var(--surface-3); }
.care .meter i { min-width: 0; background: var(--text-2); }
.care[aria-pressed="true"] { border-color: var(--inv); background: var(--inv); color: var(--on-inv); }
.care[aria-pressed="true"] .care-val { color: var(--on-inv); }
.care[aria-pressed="true"] .meter { background: color-mix(in oklab, var(--on-inv) 18%, transparent); }
.care[aria-pressed="true"] .meter i { background: var(--on-inv); }
.ct-more { margin-top: 40px; border-top: 1px solid var(--line); }
.ct-more:last-of-type { border-bottom: 1px solid var(--line); }
.ct-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; margin-inline: -4px; border-radius: var(--r-s); cursor: pointer; list-style: none;
                     font-size: 16px; font-weight: 650; transition: background-color .15s var(--ease); }
.ct-more > summary::-webkit-details-marker { display: none; }
.ct-more > summary:hover { background: var(--surface); }
.ct-more > summary svg { width: 12px; height: 12px; color: var(--text-3); transition: transform .15s var(--ease); }
.ct-more[open] > summary svg { transform: rotate(180deg); }
.ct-more[open] { padding-bottom: 28px; }

/* ------------------------------------------------------------------ the place by win rate, on the left of each champion */
/* first five: a solid badge; six to twenty: a tinted one; the rest: a plain number */
.rk { display: inline-grid; place-items: center; min-width: 26px; height: 26px; color: var(--text-3); font-size: 13px; font-weight: 650; }
.rk--top { min-width: 36px; height: 36px; border-radius: 10px; background: var(--win); color: var(--on-win); font-size: 16px; font-weight: 800; }
.rk--high { min-width: 30px; height: 30px; border-radius: var(--r-s); background: var(--win-wash); color: var(--win-ink); font-size: 14px; font-weight: 800; }
.champ-table .idx { width: 52px; text-align: center; padding-inline: 8px 2px; }
.t-desc { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid #25324C; color: var(--text-art); white-space: pre-line; }

/* ------------------------------------------------------------------ counters: the graph, its hover card, the win-rate boxes */
.ct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 32px 0 8px; }
.ct-text { margin: 0 0 12px; max-width: none; }
.ct-keys { margin-top: 8px; }
.key--note { color: var(--text-3); white-space: normal; }
.chart .g-neg { stop-color: var(--loss); }
.chart .g-pos { stop-color: var(--win); }
.chart .tickline { stroke: var(--text-3); stroke-opacity: .12; stroke-width: 1; }
.chart .axis--mid { stroke: var(--text-3); stroke-opacity: .6; }
.chart .curve-fill { fill: color-mix(in oklab, var(--text) 13%, transparent); stroke: none; }
.chart text.t-neg { fill: var(--loss-ink); font-size: 13px; font-weight: 650; }
.chart text.t-pos { fill: var(--win-ink); font-size: 13px; font-weight: 650; }
/* a face grows from its foot when pointed at, the rest step back, and its value shows on the axis */
.df-in { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .15s var(--ease), opacity .15s var(--ease); }
.df-ring { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 2; }
.df-ring--neg { stroke: var(--loss); stroke-opacity: .55; }
.df-ring--pos { stroke: var(--win); stroke-opacity: .55; }
.df-ring.is-sure { stroke-opacity: 1; stroke-width: 3.5; }
.chart.has-hot .dotface:not(.is-hot) .df-in { opacity: .38; }
.dotface.is-hot .df-in { transform: scale(1.85); }
.dotface.is-hot .df-ring { stroke-opacity: 1; stroke-width: 2.5; }
.chart .guide { pointer-events: none; }
.chart .guide rect { fill: var(--inv); }
.chart .guide text { fill: var(--on-inv); font-size: 13px; font-weight: 800; }
.key i.swatch-ring { width: 12px; height: 12px; border-radius: 50%; background: none; border: 2px solid var(--line-2); }
.key i.swatch-ring--neg { border-color: color-mix(in oklab, var(--loss) 60%, transparent); }
.key i.swatch-ring--pos { border-color: color-mix(in oklab, var(--win) 60%, transparent); }
.key i.swatch-ring--sure { border-width: 3px; border-color: var(--text-2); }
.key i.swatch-shape { width: 18px; height: 10px; border-radius: 10px 10px 0 0; background: color-mix(in oklab, var(--text) 22%, transparent); }
.pc { width: 268px; max-width: 100%; }
.pc-head { display: flex; align-items: center; gap: 8px; }
.pc-head img { width: 44px; height: 44px; border-radius: 10px; }
.pc-head b { display: block; font-size: 15px; font-weight: 800; }
.pc-head span { color: #9AA6BC; font-size: 12px; }
.pc-big { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #25324C; }
.pc-big b { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.pc-big span { color: #9AA6BC; font-size: 12px; line-height: 1.4; }
.pc-rows { display: grid; gap: 4px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #25324C; }
.pc-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pc-rows dt { color: #9AA6BC; }
.pc-rows dd { margin: 0; font-weight: 800; text-align: right; white-space: nowrap; }
.pc-rows dd span { margin-left: 8px; color: #9AA6BC; font-size: 12px; font-weight: 550; }
.pc-note { margin: 8px 0 0; color: #9AA6BC; font-size: 12px; }
.wr-sec { margin-top: 28px; }
.wr-sec .sub-h { margin: 0 0 8px; }
.wr-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(114px, 1fr)); gap: 8px; }      /* the boxes line up in columns, both edges flush */
.wr-box { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--text-2);
          font-size: 16px; font-weight: 800; text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.wr-box:hover { border-color: var(--text-3); }
.wr-box.is-neg { color: var(--loss-ink); }
.wr-box.is-pos { color: var(--win-ink); }
.wr-box.is-hot { border-color: var(--text); }
@media (hover: hover) and (pointer: fine) { .wr-box:hover { transform: translateY(-2px); } }

/* ------------------------------------------------------------------ a heading with a control on its right */
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; }

/* ------------------------------------------------------------------ my games: your numbers against the champion's other players */
.mrows { display: grid; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 68px 68px minmax(100px, 1fr) 76px; align-items: center; gap: 0 20px; min-height: 46px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow--head { min-height: 34px; border-bottom-color: var(--line-2); color: var(--text-3); font-size: 13px; }
.mrow > :nth-child(2), .mrow > :nth-child(3), .mrow > :nth-child(5) { text-align: right; white-space: nowrap; }
.m-what { color: var(--text-2); }
.m-you { font-size: 15px; font-weight: 800; }
.m-typ { color: var(--text-2); }
.m-pct { font-weight: 650; }
.m-bar { position: relative; }
.m-bar::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--text-3); }      /* the middle player */
.meter--pos i { background: var(--win); }
.meter--neg i { background: var(--loss); }

/* what was built in one game: runes and spells, then the items in order */
.bt-runes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 12px; }
.bt-gap { width: 10px; }
.btl { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.btl .fnode { min-width: 0; }
.btl .fnode small { white-space: nowrap; }

/* gold against the lane opponent */
.lane { display: grid; grid-template-columns: minmax(0, 620px) minmax(200px, 1fr); gap: 16px 48px; align-items: start; }
.lane-who { display: grid; margin: 8px 0 4px; line-height: 1.3; }
.lane-who b { font-size: 16px; font-weight: 800; }
.lane-who span { color: var(--text-3); font-size: 13px; }

/* ------------------------------------------------------------------ narrower windows */
/* 1240: the status loses its count. 1180 (laptop): columns that still fit stay side by side. 1040: the widest pairs fold.
   960 (tablet): the game list folds away. 900: the build's side columns go under the rune page. 699: the top bar takes
   two rows and every page is one column. 640 (phone): tighter gutters, tables drop columns, charts are drawn narrow. */
.status-n { display: inline-block; min-width: 9.6em; text-align: left; }      /* wide enough for any count, so the bar does not shift as it grows */
@media (max-width: 1300px) { .status-n { display: none; } }

@media (max-width: 1180px) {
  .top-in { gap: 8px 12px; }
  .nav a { padding: 0 8px; }
  .nav a::after { left: 8px; right: 8px; }
  .find { flex: 1 1 160px; min-width: 160px; }
  .find-key { display: none; }      /* the search needs the room for its own words */
  .top .find input { padding-right: 12px; }
  .duo { gap: 0 40px; }
  .map-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .map-wrap > * + * { margin-top: 32px; }
  .cpanel-wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 32px; }
  .build-top { grid-template-columns: auto minmax(0, 1fr); gap: 24px 40px; }
  .build-top > .build-side:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 64px; padding-top: 0; }
  .runes-page { gap: 24px 32px; }
  .care { padding: 8px 8px 12px; }
  .trust { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px 32px; }
  .lane { grid-template-columns: minmax(0, 1fr) 200px; gap: 16px 32px; }
  .c-tabs .tabs a { padding-inline: 8px; }
  .c-tabs .tabs a::after { left: 10px; right: 10px; }
  .c-tabs .seg > * { padding-inline: 8px; }
  .flow .fnode { gap: 8px; min-height: 52px; padding: 4px 8px 4px 4px; }
  .flow .fnode > .ico { --s: 38px !important; }
}
@media (min-width: 700px) and (max-width: 1180px) {      /* the item paths still fit on a small laptop and a tablet on its side */
  .care-grid { grid-template-columns: minmax(0, 1fr); }
  .mrow { grid-template-columns: minmax(0, 1.9fr) 68px 68px minmax(100px, 1fr) 76px; }
  .flow-wrap { --gap: 12px; }
  .flow-col { min-width: 100px; }
}
@media (min-width: 641px) and (max-width: 1040px) {      /* a tablet: the opening as two rows above the slots */
  .flow-wrap { display: block; }
  .flow-open { display: grid; gap: 12px 0; padding: 0 0 16px; margin-bottom: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-open .flow-col { display: flex; flex-wrap: wrap; gap: 8px 8px; min-width: 0; }
  .flow-open .flow-col h3 { flex: 0 0 100%; height: auto; }
  .flow-scroll { padding-left: 4px; margin-inline: -4px; }
  .flow > .flow-col, .flow-group--boots, .flow-group--boots .flow-col { flex: 1 1 0; }      /* the slots share the whole width */
  .runes-page > .panel-navy { justify-self: start; max-width: 100%; }      /* the rune panel keeps its own width, as on the Build tab */
}
@media (min-width: 641px) and (max-width: 760px) { .flow-wrap { --gap: 8px; } }
@media (max-width: 1060px) {
  .brand span { display: none; }      /* the tile alone; the wordmark needs the room */
  .find { min-width: 140px; }
  /* the tab line runs under the tabs only once the filters may wrap below them */
  .c-tabs { border-bottom: 0; }
  .c-tabs .tabs { flex: 1 0 100%; margin-bottom: 0; border-bottom: 1px solid var(--line); }
  .c-tools { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 1040px) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .method aside { position: static; order: -1; max-width: 70ch; margin-bottom: 32px; }      /* the key to the colours comes first */
  .runes-page { grid-template-columns: minmax(0, 1fr); }
  .care-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --gut: 20px; }
  .status #status-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }      /* still read out */
  .status { padding: 0 12px; }
  .games { grid-template-columns: minmax(0, 1fr); }
  .glist-col { position: static; max-height: none; margin-bottom: 24px; }
  .gtoggle { display: grid; width: 100%; margin: 12px 0 0; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); text-align: left; }
  .gtoggle.game-row { grid-template-columns: 36px minmax(0, 1fr) auto 12px; }
  .glist-col:not(.is-open) .glist { display: none; }
  .glist { max-height: 45vh; overscroll-behavior: auto; }
  .glist [aria-current="true"] { display: none; }      /* it is already shown in the button above the list */
  .cpanel-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 0 20px; }
  .bar .seg--lg { flex-basis: 100%; }
  .hero h1 { font-size: 36px; }
  .band-art, .hero .band-art, .c-band .band-art, .g-band .band-art { right: 0; width: 100%; }
  .band-art.is-in { opacity: .32; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lane > * + * { margin-top: 24px; }
}
@media (min-width: 860px) and (max-width: 1060px) { .champ-table .sm-col { display: none; } }      /* beside the panel there is room for four numbers */
@media (max-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .duo > * + * { margin-top: 48px; }
  .build-top { grid-template-columns: minmax(0, 1fr); }
  .build-top > .panel-navy { justify-self: start; max-width: 100%; }
  .build-top > .build-side { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 56px; padding-top: 0; }
}
@media (max-width: 859px) {      /* too narrow for the list and its side panel together: the list takes the page */
  .cpanel-wrap { grid-template-columns: minmax(0, 1fr); }
  .cpanel { display: none; }
}
@media (max-width: 779px) {      /* the top bar takes two rows: search and status above, the pages below */
  .top-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; height: auto; padding-block: 8px 0; }
  .top-in > * { grid-row: 1; }
  .nav { grid-row: 2; grid-column: 1 / -1; margin-inline: -8px; overflow-x: auto; scrollbar-width: none; height: 42px; }
  .find { min-width: 0; max-width: none; margin-left: 0; }
  .top { top: -56px; }      /* the search row scrolls away; the row of pages stays */
  :root { --top: 43px; }
}
@media (max-width: 699px) {
  .bar .push { display: none; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .trust > * + * { margin-top: 24px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .brand span { display: none; }
  .find-list { left: -40px; right: -100px; min-width: 0; }
  .pop { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }

  .hero h1 { font-size: 30px; }
  .hero .band-in { padding-block: 36px 32px; }
  .hero-roles { display: grid; grid-template-columns: repeat(6, 1fr); }      /* three, then two */
  .hero-roles p { grid-column: 1 / -1; }
  .role-btn { grid-column: span 2; justify-content: center; padding: 0 8px; }
  .role-btn:nth-of-type(n + 4) { grid-column: span 3; }
  .most { grid-template-columns: minmax(0, 1fr); }
  .meter-row { grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 60px; }

  .seg { display: flex; }
  .seg > * { flex: 1 1 auto; padding: 0 8px; }
  .seg--lg > * { height: 36px; padding: 0 4px; font-size: 14px; }
  .seg--lg .role-ic, [data-home-role] .role-ic { display: none; }      /* six labels fit one row without their icons */
  .bar .select, .bar .ctl { flex: 1 1 140px; }
  .bar .ctl:has(.field--find) { flex-basis: 100%; }
  .c-tools { flex: 1 1 100%; }
  .c-tools .select { flex: 1 1 0; min-width: 0; }
  .c-tabs .seg { flex: 1 1 100%; }
  .c-tabs .seg > * { flex: 1 1 auto; padding-inline: 4px; }
  .field--find { width: 100%; }

  .tbl th, .tbl td { padding-inline: 4px; white-space: normal; }
  .tbl .r { white-space: nowrap; }
  .tbl .games-col { display: none; }
  .tbl .plot { width: 26%; min-width: 56px; }
  .tbl--zebra th:first-child, .tbl--zebra td:first-child { padding-left: 8px; }
  .champ-table .idx { width: 36px; padding-inline: 4px 0; }
  .champ-table .sm-col { display: none; }
  .champ-table .col-win_rate { width: 62px; } .champ-table .col-pick_rate { width: 52px; } .champ-table .col-pbi { width: 60px; }
  .champ-table .who .face { --s: 34px !important; }      /* the name keeps the room */
  .champ-table th[aria-sort] button { padding-right: 16px; }      /* no room to hang the arrow beside the label here: it sits inside */
  .champ-table th button svg { left: auto; right: 4px; }
  .rk--top { min-width: 30px; height: 30px; font-size: 14px; }
  .rk--high { min-width: 26px; height: 26px; font-size: 13px; }
  .who { gap: 8px; }
  .more .btn { white-space: normal; height: auto; min-height: 40px; padding-block: 8px; text-align: center; }

  .c-name h1 { font-size: 30px; }
  .c-top { align-items: flex-start; gap: 12px; }
  .c-top > .face { --s: 60px !important; }
  .c-band .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px 16px; width: 100%; }
  .tabs a { padding-inline: 12px; }
  .tabs a::after { left: 12px; right: 12px; }
  .sec-head > .keys { justify-content: flex-start; }

  /* the rune page keeps its two trees side by side, as in the game, with smaller runes */
  .panel-navy, .runes-page .panel-navy { justify-self: stretch; padding: 16px 12px 20px; }
  .rg { justify-content: space-between; gap: 0 12px; }
  .rg-col:first-child, .rg--stats .rg-col:first-child { min-width: 0; }
  .rg-row, .rg--stats .rg-row { gap: 2px; }
  .rg-cell { width: 42px; }
  .rg--stats .rg-cell { width: 48px; }
  .rg .rune { --s: 32px !important; }
  .rg-key .rune { --s: 38px !important; }
  .rg-shards .rune { --s: 24px !important; }
  .rg--stats .rg-cell b { font-size: 13px; }
  .pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .pairs button { flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 8px 4px; }
  .opt-list--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .sgrid-row { grid-template-columns: 30px repeat(18, minmax(0, 1fr)); gap: 2px; }
  .sgrid-row > span:not(.abil) { height: 24px; font-size: 12px; letter-spacing: 0; }
  .sgrid .abil { --s: 24px !important; }

  /* item paths: the opening above, then the slots as a strip that scrolls sideways, three to a screen */
  .flow-wrap { display: block; }
  .flow-open { padding: 0 0 16px; margin-bottom: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-open .flow-col { min-width: 0; flex: 1 1 0; }
  .flow-scroll { padding-left: 4px; margin-inline: -4px -4px; scroll-padding-left: 4px; scroll-snap-type: x proximity; }
  .flow { gap: 0 12px; }
  .flow-col { min-width: 104px; scroll-snap-align: start; }
  .flow .fnode { gap: 8px; padding: 4px 8px 4px 4px; }

  .care-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .care-row:not(:has(.care--lane)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care--lane { grid-column: span 2; }
  .ct-head .bar { width: 100%; }
  .ct-head .ctl { flex: 0 0 auto; }
  .ct-head .seg { flex: 1 1 auto; }
  .wr-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .wr-box { height: 46px; padding: 0 4px 0 4px; gap: 8px; font-size: 15px; }

  .tiles-2 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sign-table th:nth-child(1) { width: 40%; }
  .sign-table th:nth-child(4) { width: 42%; }
  .sign-table td:last-child { white-space: normal; }
  .stack { min-width: 48px; }

  .teams { display: grid; grid-template-columns: auto 1fr; justify-items: start; }
  .swing { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .swing p { grid-column: 1 / -1; }
  .mrow { grid-template-columns: minmax(0, 1fr) 64px 72px; gap: 2px 8px; padding: 8px 0; }
  .mrow > .m-typ, .mrow--head > :nth-child(3), .mrow--head > :nth-child(4) { display: none; }
  .mrow > .m-bar { grid-column: 1 / -1; grid-row: 2; margin: 4px 0 2px; }
}
/* a finger needs more room than a pointer */
@media (max-width: 380px) {      /* the smallest phones: the longest champion names still fit beside three numbers */
  .champ-table .idx { width: 30px; padding-inline: 2px 0; }
  .champ-table .who { gap: 4px; font-size: 13px; }
  .champ-table .who .face { --s: 28px !important; }
  .champ-table .rk--top, .champ-table .rk--high { min-width: 24px; height: 24px; font-size: 13px; }
  .champ-table .col-win_rate { width: 58px; } .champ-table .col-pick_rate { width: 48px; } .champ-table .col-pbi { width: 56px; }
}
@media (pointer: coarse) {
  .seg > * { height: 38px; }
  .seg--lg > * { height: 42px; }
  .select, .field, .find input, .status, .icon-btn, .bar--lg .select, .bar--lg .field { height: 44px; }
  .status, .icon-btn { min-width: 44px; }
  .c-roles a { height: 36px; padding: 0 12px; }
  .crumb { padding: 8px 0; margin-bottom: 4px; }
  .champ-table th button { min-width: 40px; min-height: 40px; justify-content: flex-end; }
  .change .what a { padding: 8px 0; margin: -8px 0; }
  .foot .link { padding: 8px 0; }
}
@media (hover: none) { .find-key { display: none; } }
@media (max-width: 640px) { .xs-hide { display: none; } }
@media (max-height: 820px) and (min-width: 700px) {      /* a low window: the side panel of the champions list still fits */
  .cpanel-top { height: 96px; }
  .cpanel .grow { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .role-btn:hover, .most a:hover, .wr-box:hover { transform: none !important; }
}

/* ---------------------------------------------------------------- panels (round seven)
   Every block of a tab stands on its own panel, so a page can be scanned block by block. Inside a panel the grounds
   shift one step: what was drawn on the panel colour (cards, striped rows) takes the next one up. */
:is(#tab > section:not(.panel-navy), #tab > details.ct-more, #gdetail > section.sec, #home-body section, .build-side > section) {
  --in: var(--surface-2); --in-2: var(--surface-3); --ground: var(--surface);
  padding: 20px 24px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); min-width: 0; }
:is(#tab > section:not(.panel-navy), #tab > details.ct-more, #gdetail > section.sec, #home-body section, .build-side > section) > * { --surface: var(--in); --surface-2: var(--in-2); --bg: var(--ground); }
#tab > * + *, #gdetail > * + *, #home-body > * + *, #home-body .duo > div > * + * { margin-top: 16px; }
#tab > :first-child { margin-top: 24px; }
#tab > details.ct-more { padding-block: 4px; }
.build-top + .sec { margin-top: 16px; }
.build-top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 24px; }
.build-side { gap: 16px; padding-top: 0; }
.build-side > section:last-child { flex: 1; }
.build-top > .build-side { display: flex; flex-direction: column; }
.build-top > .panel-navy { border-radius: var(--r-m); }
.runes-page { gap: 16px; }
.build-side .h3 { margin-bottom: 12px; font-size: 15px; }
/* core builds: one row each, the one to copy marked */
.opt-list--core { display: grid; justify-content: stretch; gap: 8px; }
.core-line { gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid transparent; border-radius: var(--r-s); background: var(--surface); }
.core-line .rate { margin-left: auto; }
.core-line .rate b { font-size: 15px; }
.core-line.is-best { border-color: var(--win); background: var(--win-wash); flex-wrap: wrap; }
.tag-best { flex-basis: 100%; order: -1; color: var(--win-ink); font-size: 12px; font-weight: 650; }
/* item paths: the pick with the best win rate is filled, not only outlined */
.fnode b { font-size: 15px; }
.fnode.is-best { background: var(--win-wash); outline-width: 2.5px; }
.fnode.is-most { border-color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.fnode:not(.is-most):not(.is-best):not(.fnode--plain) b { color: var(--text-2); }
/* patch marks */
.chg { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; margin-left: 4px; border-radius: 4px; vertical-align: -2px; }
.chg--up { background: var(--win-wash); color: var(--win-ink); }
.chg--down { background: var(--loss-wash); color: var(--loss-ink); }
.chg--mix { background: color-mix(in oklab, var(--warn) 24%, transparent); color: var(--warn); }
.c-name .chg { width: 22px; height: 22px; margin-left: 2px; border-radius: 6px; align-self: center; }
.c-name .chg svg { width: 13px; height: 13px; }
/* start page: tighter */
.hero .band-in { padding-block: 32px 28px; }
.hero h1 { font-size: 36px; }
.hero .lede { margin-top: 8px; font-size: 15px; }
.hero-roles { margin-top: 16px; }
.hero-roles p { flex-basis: auto; margin-right: 4px; }
#home-body { padding-top: 16px; }
#home-body .sec { margin-top: 0; }
#home-body > .sec + .sec { margin-top: 16px; }
#home-body .duo { gap: 16px; }
#home-body .sec-head { margin-bottom: 8px; }
#home-body .grow { min-height: 44px; padding-block: 4px; }
#home-body .two-up { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; }      /* up and down side by side while both fit, else one under the other */
#home-body .two-up .grow { gap: 8px; }
#home-body .two-up .what small { font-size: 12px; white-space: nowrap; }
#home-body .change { padding: 4px 0; }
#home-body .meter-row { min-height: 0; padding-block: 4px; }
#home-body .most { margin: 4px 0 8px; }
#home-body .sec-foot { margin-top: 12px; }
@media (max-width: 1180px) {
  .build-top { grid-template-columns: auto minmax(0, 1fr); }
  .build-top > .build-side:first-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .build-top > .build-side:first-child > section { flex: 1 1 240px; }
  .build-top > .build-side:last-child { grid-column: auto; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 16px; }
}
@media (max-width: 900px) {
  .build-top { grid-template-columns: minmax(0, 1fr); }
  .build-top > .build-side:last-child { flex-direction: row; flex-wrap: wrap; }
  .build-top > .build-side:last-child > section { flex: 1 1 240px; }
  #home-body .duo > * + * { margin-top: 16px; }
}
@media (max-width: 640px) {
  :is(#tab > section:not(.panel-navy), #tab > details.ct-more, #gdetail > section.sec, #home-body section, .build-side > section) { padding: 16px 12px 16px; }
  .hero h1 { font-size: 28px; }
}

#tab > section, #tab > details, #gdetail > section.sec { margin-top: 16px; }
#tab > :first-child { margin-top: 24px; }
.build-side > section, #home-body section { margin-top: 0; }
#home-body .duo > div > section + section { margin-top: 16px; }
#tab > section.chart-sec, #tab > section.wr-sec, #tab > section.care-sec { padding-top: 20px; border-top: 1px solid var(--line); }
#tab .chart-sec > .ct-head { margin-top: 0; padding-top: 0; }

/* ---------------------------------------------------------------- live game */
.panel { --in: var(--surface-2); --in-2: var(--surface-3); --ground: var(--surface); padding: 20px 24px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); min-width: 0; }
.panel > * { --surface: var(--in); --surface-2: var(--in-2); --bg: var(--ground); }
#live-body { display: grid; gap: 16px; }
.lv-status { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--text-2); }
.lv-status b { color: var(--text); }
.lv-status .dot.is-on { background: var(--ok); } .lv-status .dot.is-off { background: var(--warn); }
.lv-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.lv-me, .lv-foes { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-foes { flex: 1 1 520px; }
.lv-field { display: grid; gap: 4px; color: var(--text-2); font-size: 13px; font-weight: 550; }
.lv-field .field, .lv-field .select { width: 148px; }
.lv-foes .lv-field { flex: 1 1 110px; } .lv-foes .field { width: 100%; }
.lv-team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lv-foe { display: grid; justify-items: center; gap: 4px; padding: 12px 8px 8px; border-radius: var(--r-s); background: var(--surface); text-decoration: none; text-align: center; min-width: 0; }
.lv-foe b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.lv-foe small { color: var(--text-3); font-size: 13px; }
.lv-foe:hover { background: var(--surface-2); }
.lv-dmg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 16px; color: var(--text-2); font-size: 13px; }
.lv-bar { height: 8px; border-radius: 4px; background: var(--magic); overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: var(--phys); }
.lv-flow { gap: 0 12px; }
.lv-flow .flow-group--boots { padding-left: 12px; }
.lv-flow .fnode { min-height: 62px; }
.lv-flow .fnode > span { display: grid; line-height: 1.3; }
.lv-flow .fnode small.lv-moved { color: var(--text); font-weight: 650; }
.lv-flow .fnode .val { font-size: 13px; }
.lv-flow .flow-col { min-width: 150px; flex: 1 1 0; }
.lv-flow .flow-group--boots { flex: 1 1 0; }
.lv-lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.lv-lane { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: var(--r-s); background: var(--surface); text-decoration: none; }
.lv-lane .what { display: grid; line-height: 1.3; } .lv-lane .what b { font-weight: 650; } .lv-lane small { color: var(--text-3); font-size: 13px; }
.lv-lane:hover { background: var(--surface-2); }
@media (max-width: 640px) {
  .panel { padding: 16px 12px 16px; }
  .lv-me { flex: 1 1 100%; } .lv-me .lv-field { flex: 1 1 0; } .lv-field .field, .lv-field .select { width: 100%; }
  .lv-foes .lv-field { flex: 1 1 40%; }
  .lv-team { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .lv-foe { padding: 8px 2px; } .lv-foe .face { --s: 40px !important; } .lv-foe small { display: none; }
  .lv-flow .flow-col { min-width: 132px; }
}

/* ---------------------------------------------------------------- round eight: closer together
   The loadout (runes, spells, skill order) is one block on the game's own dark ground; the pairings share one panel;
   paddings and gaps are a step smaller everywhere. */
.panel-navy { background: linear-gradient(180deg, #0A1428 0%, #010A13 100%); border-color: rgb(200 170 110 / .32); }
.build-top { grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin-top: 16px; }
.build-top > .loadout { padding: 16px 20px 16px; }
.loadout-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgb(200 170 110 / .2); }
.loadout-more .h3 { margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.loadout-more .opt-list { gap: 8px; }
.loadout-more .levels { margin-top: 8px; }
.build-side { gap: 12px; }
.build-top > .build-side { flex-direction: column; flex-wrap: nowrap; }
.build-side > section:last-child { flex: 0 0 auto; }
.build-side > section:first-child { flex: 1 1 auto; }
.pair-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.pair-card .h3 { margin-bottom: 8px; }
.boots-when { display: grid; gap: 2px; margin: -2px 0 2px; color: var(--text-2); font-size: 13px; line-height: 1.35; }
.boots-when b { color: var(--text); font-weight: 650; }
/* density */
:is(#tab > section:not(.panel-navy), #tab > details.ct-more, #gdetail > section.sec, #home-body section, .build-side > section), .panel { padding: 16px 20px 16px; }
#tab > section, #tab > details, #gdetail > section.sec { margin-top: 12px; }
#tab > :first-child { margin-top: 16px; }
.build-top + .sec { margin-top: 12px; }
#home-body { padding-top: 12px; } #home-body .duo { gap: 12px; } #home-body > .sec + .sec, #home-body .duo > div > section + section { margin-top: 12px; }
#live-body { gap: 12px; }
.page { padding-block: 20px 0; }
.sec-head { margin-bottom: 12px; }
.foot { margin-top: 48px; }
.c-band .band-in { padding-block: 16px 16px; }
.crumb { margin-bottom: 8px; }
.c-tabs { margin-top: 4px; }
.flow-col { gap: 8px; }
.fnode { min-height: 52px; padding: 4px 8px 4px 4px; }
.fnode > .ico { --s: 40px !important; }
.fnode--plain .ico { --s: 32px !important; }
.champ-table td { height: 48px; }
.champ-table .who .face { --s: 36px !important; }
.wr-boxes { gap: 4px; }
.care { padding-block: 8px 8px; }
.swing { padding-block: 8px; }
.mrow { min-height: 40px; }
.opt-list--core { gap: 4px; } .core-line { padding: 4px 12px 4px 4px; }
@media (max-width: 1180px) {
  .build-top { grid-template-columns: auto minmax(0, 1fr); }
  .build-top > .build-side:first-child, .build-top > .build-side:last-child { grid-column: auto; flex-direction: column; flex-wrap: nowrap; }
}
@media (max-width: 1000px) {
  .build-top { grid-template-columns: minmax(0, 1fr); }
  .build-top > .loadout { justify-self: stretch; }
}
@media (max-width: 640px) {
  :is(#tab > section:not(.panel-navy), #tab > details.ct-more, #gdetail > section.sec, #home-body section, .build-side > section), .panel { padding: 12px 12px 16px; }
  .loadout-more { grid-template-columns: minmax(0, 1fr); }
  .build-top > .loadout { padding: 12px 12px 16px; }
}
.flow-wrap { --gap: clamp(8px, 1.1vw, 20px); }
.boots-when { max-width: 124px; }
.boots-when span { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .build-side > section:first-child, .build-side > section:last-child { flex: 0 0 auto; } }

/* ---------------------------------------------------------------- round nine */
/* panels on the game's own dark ground, like the runes */
:is(#tab > section, .build-side > section).dark-card { background: linear-gradient(180deg, #0A1428 0%, #010A13 100%); border-color: rgb(200 170 110 / .28); color: var(--text);
  --in: #101B33; --in-2: #18274A; --ground: #060F1F; }
/* win rates on the champions list: a scale from red through plain to blue, by how far from 50% */
.wr-scale .val, .wr-scale { color: color-mix(in oklab, var(--scale-pos) var(--w, 0%), var(--text)); }
.wr-scale[data-side="neg"] .val, .wr-scale[data-side="neg"] { color: color-mix(in oklab, var(--scale-neg) var(--w, 0%), var(--text)); }
:root { --scale-pos: var(--win-ink); --scale-neg: var(--loss-ink); --rank: #C8AA6E; --on-rank: #1A1407; }
/* places: one colour, strongest at the top, fading down to 24th */
.rk--scale { min-width: 30px; height: 30px; border-radius: var(--r-s); background: color-mix(in oklab, var(--rank) var(--k), transparent); color: color-mix(in oklab, var(--on-rank) var(--k), var(--text)); font-size: 14px; font-weight: 800; }
.rk--scale.rk--lead { min-width: 36px; height: 36px; border-radius: 10px; font-size: 16px; font-weight: 800; }
/* item hover */
.t-name { font-size: 15px; }
.t-desc--item { display: grid; gap: 4px; white-space: normal; }
.t-stats { color: var(--text); font-weight: 650; }
.t-effect b { color: #E7D9B5; font-weight: 650; }
/* marks on items */
.fnode { position: relative; }
.fnode > .chg { position: absolute; left: 2px; top: 2px; margin: 0; box-shadow: 0 0 0 2px var(--surface); }
.fnode > .chg.chg--up { background: var(--win); color: var(--on-win); } .fnode > .chg.chg--down { background: var(--loss); color: var(--on-loss); } .fnode > .chg.chg--mix { background: var(--warn); color: #1A1407; }
.change .chg { margin-left: 8px; }
/* core build: what the build gives, under the three builds */
.core-why-h { margin: 12px 0 8px; }
.core-whys { display: grid; gap: 4px; }
.core-why { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; }
.core-why span { display: grid; line-height: 1.3; min-width: 0; }
.core-why b { font-weight: 650; } .core-why small { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfaces { gap: 8px 8px; }
.pair-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (max-width: 640px) { .rk--scale.rk--lead { min-width: 30px; height: 30px; font-size: 14px; } .rk--scale { min-width: 26px; height: 26px; font-size: 13px; } }
.rk--scale { color: var(--on-rank); }
.rk--scale.rk--dim { color: var(--text); }
.pair-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
@media (max-width: 640px) { .pair-card { grid-template-columns: minmax(0, 1fr); } }
.build-top > .loadout { display: flex; flex-direction: column; }
.build-top > .loadout .loadout-more { margin-top: auto; }
.build-top > .loadout .rg { margin-bottom: 12px; }
:root { --rank: #4C8FF2; --on-rank: #0A1120; --scale-pos: #5AA0FF; --scale-neg: #FF7A70; }
/* the win rate stands on its own tinted ground, stronger the further from 50% */
.champ-table .wr-scale .val { display: inline-block; min-width: 62px; padding: 4px 8px; border-radius: var(--r-s); text-align: center; font-weight: 800;
  background: color-mix(in oklab, var(--win) calc(10% + var(--w, 0%) * .28), transparent); color: color-mix(in oklab, var(--scale-pos) calc(35% + var(--w, 0%) * .65), var(--text)); }
.champ-table .wr-scale[data-side="neg"] .val { background: color-mix(in oklab, var(--loss) calc(10% + var(--w, 0%) * .28), transparent); color: color-mix(in oklab, var(--scale-neg) calc(35% + var(--w, 0%) * .65), var(--text)); }
.pair-more { grid-column: 1 / -1; justify-self: start; font-size: 13px; }
@media (max-width: 640px) { .champ-table .wr-scale .val { min-width: 0; padding: 4px 4px; } }

/* ---------------------------------------------------------------- classes */
#classes-body { display: grid; gap: 12px; margin-top: 12px; }
#classes-body > .dark-card { background: linear-gradient(180deg, #0A1428 0%, #010A13 100%); border-color: rgb(200 170 110 / .28); color: var(--text); --in: #101B33; --in-2: #18274A; --ground: #060F1F; }
.cl-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cl-map { width: 100%; height: auto; }
.cl-area { fill-opacity: .1; stroke-opacity: .35; stroke-width: 1.5; stroke-linejoin: round; }
.cl-dot { cursor: pointer; }
.cl-dot text { fill: var(--text-art); font-size: 12px; font-weight: 650; paint-order: stroke; stroke: #060F1F; stroke-width: 3px; pointer-events: none; }
.cl-dot circle, .cl-dot image { transition: opacity .15s; }
.cl-map:hover .cl-dot:not(.is-on):not(.is-near) { opacity: .38; }
.cl-dot.is-on > circle:first-child { stroke: #fff; stroke-width: 3px; }
.cl-dot.is-on text, .cl-dot.is-near text { fill: #fff; }
.cl-card { padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.cl-card-top { display: flex; align-items: center; gap: 12px; }
.cl-card-top h3 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.cl-card-top p { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; }
.cl-swatch { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 4px; }
.cl-card .sub-h { margin: 12px 0 4px; }
.cl-nears { display: grid; gap: 2px; }
.cl-near { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border-radius: var(--r-s); text-decoration: none; }
.cl-near:hover { background: var(--surface-2); }
.cl-near span { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-near b { color: var(--text-2); font-size: 13px; font-weight: 650; }
.cl-traits { display: grid; gap: 4px; }
.cl-traits div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 13px; }
.cl-traits b { font-weight: 650; } .cl-traits .is-pos { color: var(--win-ink); } .cl-traits .is-neg { color: var(--loss-ink); }
.cl-go { margin-top: 12px; }
.cl-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.cl-class { padding: 12px 12px 12px; border-radius: var(--r-s); background: var(--surface); }
.cl-class h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.cl-members { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-members a { border-radius: 6px; } .cl-members a:hover .face { box-shadow: 0 0 0 2px var(--text); }
.cl-mx-wrap { overflow-x: auto; }
.cl-matrix { display: block; width: 100%; height: auto; margin-inline: auto; }
@media (max-width: 1040px) { .cl-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- champions: the stage */
.stage { position: fixed; inset: var(--top) 0 0 0; z-index: 0; background: var(--bg); pointer-events: none; }
.st-bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 16%; opacity: 0; transition: opacity .45s ease; }
.st-bg.on { opacity: 1; }
.st-veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgb(6 11 22 / .95) 46%, rgb(6 11 22 / .5) 66%, rgb(6 11 22 / .1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.stage-page { position: relative; z-index: 1; max-width: 1480px; min-height: calc(100vh - var(--top)); color: var(--text); }
main:has(.stage) + .foot { position: relative; z-index: 1; background: var(--bg); border-top-color: rgb(255 255 255 / .08); color: var(--text-3); margin-top: 0; }
main:has(.stage) + .foot p:first-child, main:has(.stage) + .foot .foot-links { color: var(--text-2); }
.stage-page .cpanel-wrap { grid-template-columns: minmax(0, 800px) minmax(0, 1fr); gap: 0 32px; }
.stage-page .champ-table { table-layout: fixed; border-collapse: separate; border-spacing: 0 2px; }
.stage-page .champ-table thead th { background: linear-gradient(180deg, var(--bg) 72%, transparent); box-shadow: none; color: var(--text-3); }
.stage-page .champ-table td { height: 46px; background: none; border: 0; border-block: 1px solid transparent; }
.stage-page .champ-table td:first-child { border-left: 1px solid transparent; border-radius: 6px 0 0 6px; }
.stage-page .champ-table td:last-child { border-right: 1px solid transparent; border-radius: 0 6px 6px 0; }
.stage-page .champ-table tbody tr { background: none; transition: transform .15s var(--ease); }
.stage-page .champ-table tbody tr:hover td { background: rgb(255 255 255 / .045); }
.stage-page .champ-table tbody tr[aria-selected="true"] { background: none; box-shadow: none; transform: translateX(6px); }
.stage-page .champ-table tbody tr[aria-selected="true"] td { background: rgb(76 143 242 / .14); border-color: rgb(76 143 242 / .55); }
.stage-page .champ-table .idx { width: 48px; }
.stage-page .champ-table .who { font-size: 15px; font-weight: 650; }
.st-n { font-size: 20px; font-weight: 800; color: color-mix(in oklab, var(--gold) var(--k), var(--rank-dim)); }
.st-n.lead { color: var(--gold-ink); }
.st-wr { font-size: calc(15px + var(--w) * .035px); font-weight: calc(640 + var(--w) * 2.2); letter-spacing: -.01em; }
.st-wr.p { color: color-mix(in oklab, #4C9BFF var(--wp), #B9C6DE); }
.st-wr.m { color: color-mix(in oklab, #FF5A4E var(--wp), #B9C6DE); }
.st-num { font-size: 15px; font-weight: 650; color: var(--text); }
.st-dim, .st-dim .val { font-size: 15px; font-weight: 550; color: #9AA5BA; }
.stage-page .cpanel.stage-show { position: sticky; top: calc(var(--top) + 24px); height: calc(100vh - var(--top) - 56px); max-height: none; padding: 0 0 8px; border: 0; background: none; overflow: visible;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; }
.st-place { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 650; color: var(--win-ink); }
.stage-show h2 { font-size: clamp(52px, 6vw, 96px); line-height: .9; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 4px 40px rgb(0 0 0 / .7); }
.st-title { margin-top: 8px; color: var(--text-art); font-size: 16px; text-shadow: 0 1px 10px #000; }
.st-big { margin-top: 16px; font-size: 60px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.st-big.p { color: var(--pos-hi); text-shadow: 0 0 34px rgb(76 143 242 / .7); }
.st-big.m { color: var(--neg-hi); text-shadow: 0 0 34px rgb(232 89 79 / .7); }
.st-big small { display: block; margin-top: 4px; font-size: 13px; font-weight: 550; letter-spacing: 0; color: var(--text-art); text-shadow: none; }
.st-pairs { display: grid; gap: 8px; margin-top: 16px; padding: 12px 12px; border-radius: var(--r-m); background: rgb(6 11 22 / .62); backdrop-filter: blur(6px); }
.st-pairs h3 { margin-bottom: 4px; color: var(--text-2); font-size: 13px; font-weight: 650; }
.st-pairs .pfaces { justify-content: flex-end; }
.st-pairs .note { color: #9AA5BA; }
.stage-show .cpanel-go { display: flex; gap: 8px; margin-top: 16px; padding: 0; }
@media (max-width: 1099px) {
  .stage-page .cpanel-wrap { grid-template-columns: minmax(0, 1fr); }
  .stage-page .cpanel.stage-show { display: none; }
  .st-veil { background: rgb(6 11 22 / .9); }
}
@media (max-width: 640px) { .st-n { font-size: 16px; } .stage-page .champ-table .idx { width: 34px; } .stage-page .champ-table .who { font-size: 14px; } }
.stage-page .cpanel-wrap { grid-template-columns: minmax(0, 850px) minmax(0, 1fr); }
.stage-page .cpanel.stage-show { top: calc(var(--top) + 16px); height: calc(100vh - var(--top) - 118px); }
.st-place { text-shadow: 0 1px 8px #000, 0 0 2px #000; white-space: nowrap; }
@media (max-width: 1099px) { .stage-page .champ-table tbody tr[aria-selected="true"] { transform: none; } }
.stage-page .champ-table th:last-child, .stage-page .champ-table td:last-child { padding-right: 12px; }

/* ---------------------------------------------------------------- the stage, everywhere
   Every page stands on the same dark ground with the art of the champion it is about behind it. Panels are dark
   glass over the art. The whole site is dark now: the light theme would fight the art. */
:root { color-scheme: dark;
  --bg: #060B16; --surface: #101A2E; --surface-2: #17243D; --surface-3: #22314F; --line: #24324C; --line-2: #384867; --ctl: #5A6C8F;
  --text: #F1EEE6; --text-2: #B3BCCD; --text-3: #8B97AE; --win: #4C8FF2; --loss: #E8594F; --on-win: #0A1120; --on-loss: #0A1120;
  --win-wash: rgb(76 143 242 / .18); --loss-wash: rgb(232 89 79 / .18); --win-ink: #8DB8FF; --loss-ink: #FF9C93;
  --phys: #CC7A28; --magic: #2BA5C2; --true: #C5CCD9; --ok: #3FB37F; --warn: #D9A13B; --inv: #F1EEE6; --on-inv: #0A1120; --focus: #F1EEE6;
  --rank: #4C8FF2; --on-rank: #0A1120; --scale-pos: #5AA0FF; --scale-neg: #FF7A70; }
body { background: var(--bg); }
#backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); }
.bd-art { position: absolute; inset: 0; background-size: cover; background-position: 60% 14%; opacity: 0; transition: opacity .6s ease; }
.bd-art.on { opacity: .5; }
.bd-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 11 22 / .55) 0%, rgb(6 11 22 / .82) 45%, var(--bg) 100%), radial-gradient(120% 80% at 50% 0%, transparent 40%, rgb(6 11 22 / .7) 100%); }
.top, main, .foot { position: relative; z-index: 1; }
.top { z-index: 30; }
.foot { background: none; border-top-color: rgb(255 255 255 / .08); }
/* panels: dark glass */
:is(#tab > section:not(.panel-navy), #tab > details.ct-more, #gdetail > section.sec, #home-body section, .build-side > section), .panel,
:is(#tab > section, .build-side > section).dark-card, #classes-body > .dark-card, .panel-navy {
  background: linear-gradient(180deg, rgb(12 22 42 / .84), rgb(5 12 24 / .9)); border-color: rgb(200 170 110 / .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  --in: rgb(255 255 255 / .05); --in-2: rgb(255 255 255 / .09); --ground: #060F1F; }
.band, .c-band, .g-band, .hero { background: none; border-color: rgb(255 255 255 / .08); }
.band .band-art, .c-band .band-art, .g-band .band-art, .hero .band-art { display: none; }      /* the art is the page now */
.c-tabs { border-bottom-color: rgb(255 255 255 / .1); }
.glist-col { background: rgb(8 15 30 / .7); border-radius: var(--r-m); padding: 12px; backdrop-filter: blur(10px); }
/* the numbers that matter glow, as on the champions list */
.c-facts dd .val.is-pos, .hero .val.is-pos, .cpanel-facts .val.is-pos { color: var(--pos-hi); text-shadow: 0 0 18px rgb(76 143 242 / .75); }
.c-facts dd .val.is-neg, .cpanel-facts .val.is-neg { color: var(--neg-hi); text-shadow: 0 0 18px rgb(232 89 79 / .75); }
.c-name h1, .g-name, .hero h1 { text-shadow: 0 4px 34px rgb(0 0 0 / .7); }
.c-name h1 { font-size: clamp(40px, 4.6vw, 68px); }
.best-row .rk--scale, .rk--scale { background: none; color: color-mix(in oklab, var(--gold) var(--k), var(--rank-dim)); font-size: 20px; font-weight: 800; }
.rk--scale.rk--lead { color: var(--gold-ink); text-shadow: 0 0 18px rgb(200 170 110 / .95), 0 0 4px rgb(200 170 110 / .8); background: none; }
.rk--scale.rk--dim { color: color-mix(in oklab, var(--gold) var(--k), var(--rank-dim)); }
.best-row .big .val { font-size: 16px; font-weight: 800; }
.best-row .big .val.is-pos { color: var(--pos-mid); text-shadow: 0 0 12px rgb(60 140 255 / .8); }
#theme { display: none; }
.bd-art.on { opacity: .8; }
.bd-veil { background: linear-gradient(180deg, rgb(6 11 22 / .3) 0%, rgb(6 11 22 / .62) 38%, rgb(6 11 22 / .9) 78%, var(--bg) 100%), linear-gradient(90deg, rgb(6 11 22 / .75) 0%, rgb(6 11 22 / .2) 55%, transparent 100%); }

/* ---------------------------------------------------------------- round eleven: each page gets its own moment */
/* rows that carry their champion's art */
.row-art { position: absolute; left: 0; top: 0; width: min(62%, 300px); height: 100%; object-fit: cover; object-position: 50% 22%; opacity: .38; pointer-events: none; border-radius: inherit;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 100%); transition: opacity .2s var(--ease); }
.game-row, .change--art { position: relative; overflow: hidden; isolation: isolate; }
.game-row > :not(.row-art):not(.row-edge), .change--art > :not(.row-art) { position: relative; z-index: 1; }
.game-row:hover .row-art, .change--art:hover .row-art { opacity: .7; }
.game-row .what b, .change--art .what a { text-shadow: 0 1px 8px #000; }
.row-edge { position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 4px; z-index: 1; }
.row-edge.is-win { background: var(--win); box-shadow: 0 0 12px 1px rgb(76 143 242 / .9); }
.row-edge.is-loss { background: var(--loss); box-shadow: 0 0 12px 1px rgb(232 89 79 / .9); }
.game-row { padding-left: 12px; border-radius: var(--r-s); }
.glist .grow[aria-current="true"] { background: rgb(76 143 242 / .16); box-shadow: inset 0 0 0 1px rgb(76 143 242 / .55); }
.change--art { padding-left: 8px; border-radius: var(--r-s); }
/* a game opens on its result, large */
.g-band { border: 0; padding: 0; }
.g-band .band-in { padding: 8px 4px 20px; }
.g-result { font-size: clamp(54px, 7vw, 104px); line-height: .9; font-weight: 800; letter-spacing: -.04em; }
.g-result.is-win { color: var(--win-ink); text-shadow: 0 0 44px rgb(76 143 242 / .75), 0 4px 30px rgb(0 0 0 / .6); }
.g-result.is-loss { color: #FF8A80; text-shadow: 0 0 44px rgb(232 89 79 / .75), 0 4px 30px rgb(0 0 0 / .6); }
.g-band .g-name { font-size: 24px; }
.g-band .facts dd { font-size: 24px; font-weight: 800; }
/* a champion's page opens on its win rate */
.c-band .facts > div:first-child dd { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.c-band .facts > div:first-child dd .val:not(.is-pos):not(.is-neg) { color: var(--text); }
.c-band .facts { align-items: end; }
/* the live game: their team as the game's own loading screen */
.lv-team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 900px; }
.lv-card { position: relative; display: block; aspect-ratio: 308 / 480; border-radius: 6px; overflow: hidden; outline: 1px solid rgb(200 170 110 / .5); outline-offset: -1px; background: #010A13; text-decoration: none; transition: transform .2s var(--ease), outline-color .2s; }
.lv-card:hover { transform: translateY(-4px); outline-color: var(--gold-ink); }
.lv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lv-card:hover img { transform: scale(1.04); }
.lv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(1 10 19 / .95) 86%); }
.lv-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: 8px 8px 12px; text-align: center; }
.lv-card-body b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.lv-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.lv-tags i { padding: 2px 8px; border-radius: 4px; background: rgb(255 255 255 / .14); font-style: normal; font-size: 12px; font-weight: 650; }
.lv-tags .is-magic { background: color-mix(in oklab, var(--magic) 45%, transparent); } .lv-tags .is-phys { background: color-mix(in oklab, var(--phys) 50%, transparent); }
@media (max-width: 640px) { .lv-team { gap: 4px; } .lv-card-body { padding: 4px 2px 8px; } .lv-card-body b { font-size: 12px; } .lv-tags { display: none; } .row-art { width: 70%; } }
@media (prefers-reduced-motion: reduce) { .lv-card, .lv-card img, .row-art { transition: none; } .lv-card:hover { transform: none; } .lv-card:hover img { transform: none; } }
.best-row { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-s); }
.best-row > :not(.row-art) { position: relative; z-index: 1; }
.best-row .row-art { left: 40px; opacity: .3; }
.best-row:hover .row-art { opacity: .7; }
.best-row .what b { text-shadow: 0 1px 8px #000; }
.hero h1 { font-size: clamp(34px, 4.4vw, 60px); }
.lv-team { max-width: none; }
.lv-card { aspect-ratio: 308 / 400; }
.lv-card img { object-position: 50% 12%; }
.st-n, .st-n.lead { text-shadow: none; }
/* the win rate as scoreboard numerals: a large whole number, small decimals, flat colour, no glow */
.st-wr { display: inline-flex; align-items: baseline; font-size: inherit; font-weight: 800; letter-spacing: -.02em; text-shadow: none; }
.st-wr b { font-size: 24px; font-weight: inherit; line-height: 1; } .st-wr small { font-size: 14px; font-weight: 800; }
.st-wr.p { color: color-mix(in oklab, #3C84FF var(--wp), #C9D3E6); text-shadow: none; } .st-wr.m { color: color-mix(in oklab, #F04E42 var(--wp), #C9D3E6); text-shadow: none; }
.st-big.p, .st-big.m { text-shadow: 0 2px 20px rgb(0 0 0 / .6); }
@media (max-width: 640px) { .st-wr b { font-size: 20px; } .st-wr small { font-size: 13px; } }
/* The game's art is 1215 pixels wide and no larger copy exists, so it is never stretched past about its own size:
   it stands at the right of the window at most 1340px wide, and fades out to the left and at the bottom. */
.st-bg, .bd-art { background-repeat: no-repeat; background-size: min(100vw, 1340px) auto; background-position: right top; image-rendering: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(100% - min(100vw, 1340px)), #000 calc(100% - min(100vw, 1340px) + 320px)), linear-gradient(180deg, #000 55%, transparent calc(min(100vw, 1340px) * .58));
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent calc(100% - min(100vw, 1340px)), #000 calc(100% - min(100vw, 1340px) + 320px)), linear-gradient(180deg, #000 55%, transparent calc(min(100vw, 1340px) * .58)); mask-composite: intersect; }
.st-wr.p { color: color-mix(in oklab, #2F7BFF var(--wp), #AEB9CF); } .st-wr.m { color: color-mix(in oklab, #FF4336 var(--wp), #AEB9CF); }
/* sharp art fills the window again: it has the pixels for it */
.st-bg.is-hd, .bd-art.is-hd { background-size: cover; background-position: 70% 16%; -webkit-mask-image: none; mask-image: none; }
.bd-art.is-hd { background-position: 60% 14%; }
/* Sharp art is shown whole, as wide as the window and never enlarged past that. Each picture is moved to the right
   until its champion stands at --t of the window's width (clear of the list on the champions page); what that
   uncovers on the left is under the dark veil anyway, and the picture's left edge fades out. */
.st-bg.is-hd, .bd-art.is-hd { --t: .74; --shift: calc(max(0, var(--t) - var(--fx, .6)) * 100vw);
  background-size: 100% auto; background-repeat: no-repeat; background-position: var(--shift) top;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--shift), #000 calc(var(--shift) + 18vw)), linear-gradient(180deg, #000 60%, transparent min(100%, 57vw));
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent var(--shift), #000 calc(var(--shift) + 18vw)), linear-gradient(180deg, #000 60%, transparent min(100%, 57vw)); mask-composite: intersect; }
.bd-art.is-hd { --t: .66; }


/* ---------------------------------------------------------------- unslop: polish pass
   Names for the stage's own colours, columns of numbers that line up, and the few rules the pass adds. */
:root { --gold: #C8AA6E; --gold-ink: #F0E6D2; --pos-hi: #7FB4FF; --neg-hi: #FF7A70; --pos-mid: #5AA0FF; --text-art: #C6CEDD; --rank-dim: #5F6B82; }
.champ-table td.num, .champ-table th.num, .tbl td.num, .mrow, .c-facts dd, .g-facts dd, .srv-n, .opt-n { font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; }
.lv-card:hover img { transform: none; }
.champ-table small, .st-wr small { letter-spacing: 0; }
.lv-empty { display: grid; place-items: center; min-height: 44vh; color: var(--text-3); text-align: center; }
.c-facts { padding: 8px 12px; border-radius: var(--r-m); background: rgb(6 11 22 / .55); }


/* ---------------------------------------------------------------- start page: search first (17 Nov 2026)
   The search stands in the middle; under it the champions opened last; then the patch. Nothing else. */
.start-in { display: grid; justify-items: center; gap: 16px; padding-block: 72px 8px; text-align: center; }
.start h1 { line-height: 0; }
.start h1 img { display: block; width: clamp(260px, 36vw, 464px); height: auto; filter: drop-shadow(0 4px 24px rgb(0 0 0 / .6)); }
.start-find { flex: none; width: min(100%, 640px); max-width: none; min-width: 0; margin: 8px 0 0; text-align: left; }
.start-find input { height: 56px; padding: 0 20px 0 52px; border-radius: var(--r-m); background: rgb(6 11 22 / .78); font-size: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.start-find .find-ic { left: 20px; top: 20px; z-index: 1; }
.start-recent { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.start-recent span { margin-right: 4px; }
.start-recent a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: rgb(22 32 54 / .8);
  color: var(--text); font-size: 14px; font-weight: 550; text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.start-recent a:hover { border-color: var(--text-3); background: var(--surface-2); }
.start-note { color: var(--text-2); font-size: 13px; }
.start + #home-body > .sec:first-child { margin-top: 32px; }
body.is-home .top .find { visibility: hidden; }
.pop-h { margin: 16px 0 8px; font-size: 14px; font-weight: 650; }

/* ------------------------------------------------------------------ home: Riot's patch notes (patchnotes.py)
   Riot's own markup and class names, laid out as on leagueoflegends.com: a centred column, section headings with a
   rule, one bordered block per champion or item with its picture beside the name, the designers' note as a quote,
   then each ability with its numbers, old value first and the new one in bold. */
.notes-in { display: grid; grid-template-columns: 190px minmax(0, 760px); gap: 0 48px; justify-content: center; align-items: start; }
.notes-nav { position: sticky; top: calc(var(--top) + 16px); display: grid; gap: 2px; max-height: calc(100vh - var(--top) - 32px); overflow: auto; }
.notes-nav > * { all: unset; box-sizing: border-box; cursor: pointer; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 1.3; }
.notes-nav > :hover { color: var(--text); border-left-color: var(--riot-gold); }
.notes-nav > :focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.notes-nav > a { margin-top: 10px; color: var(--text-3); }
.riot-notes { --riot-gold: #C8AA6E; min-width: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.notes-nav { --riot-gold: #C8AA6E; }
.riot-notes > :first-child, .riot-notes #patch-notes-container > :first-child { margin-top: 0; }
.riot-notes h2 { scroll-margin-top: calc(var(--top) + 16px); }
.riot-notes h2:empty, .riot-notes #patch-top { display: none; }
.riot-notes .header-primary { display: flex; align-items: center; gap: 16px; margin: 56px 0 20px; }
.riot-notes .header-primary::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--riot-gold), transparent); }
.riot-notes .header-primary h2 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.riot-notes p { margin: 0 0 12px; }
.riot-notes a { color: var(--win-ink); text-underline-offset: 2px; }
.riot-notes strong, .riot-notes b { color: var(--text); font-weight: 650; }
.riot-notes img { max-width: 100%; height: auto; border-radius: var(--r-s); }
.riot-notes .content-border { margin: 0 0 16px; }
.riot-notes .white-stone { position: relative; padding: 20px 24px 20px 28px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.riot-notes .accent-before::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--riot-gold); }
.riot-notes .white-stone > div::after { content: ""; display: block; clear: both; }
.riot-notes .patch-change-block > div > p:first-child { float: left; margin: 0 16px 8px 0; line-height: 0; }
.riot-notes .patch-change-block > div > p:first-child img { width: 64px; height: 64px; border: 1px solid var(--line-2); border-radius: var(--r-s); }
.riot-notes .change-title { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--text); margin: 0 0 8px; min-height: 28px; }
.riot-notes .change-title a { color: inherit; text-decoration: none; }
.riot-notes .change-title a:hover { text-decoration: underline; }
.riot-notes .summary { font-style: italic; }
.riot-notes blockquote { margin: 0 0 16px; padding: 2px 0 2px 16px; border-left: 2px solid var(--line-2); color: var(--text-2); font-style: italic; }
.riot-notes blockquote p:last-child { margin-bottom: 0; }
.riot-notes .patch-change-block blockquote { overflow: hidden; }      /* stays beside the picture, as on Riot's page */
.riot-notes .context-designers { margin-top: 10px; font-style: normal; color: var(--text-3); font-size: 13px; }
.riot-notes hr.divider { clear: both; border: 0; height: 1px; margin: 16px 0; background: var(--line); }
.riot-notes .change-detail-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; line-height: 1.3; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.riot-notes .change-detail-title:empty { display: none; }
.riot-notes .ability-title img { width: 36px; height: 36px; flex: none; border: 1px solid var(--line-2); border-radius: 4px; }
.riot-notes ul, .riot-notes ol { margin: 0 0 12px; padding-left: 20px; }
.riot-notes li { margin: 4px 0; }
.riot-notes li::marker { color: var(--riot-gold); }
.riot-notes .skin-box { display: inline-block; vertical-align: top; width: calc(50% - 8px); margin: 0 4px 16px; }
.riot-notes .skin-title { margin: 6px 0 0; font-size: 14px; font-weight: 650; color: var(--text); }
.riot-notes .gs-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.riot-notes table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.riot-notes th, .riot-notes td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 900px) {
  .notes-in { grid-template-columns: minmax(0, 1fr); }
  .notes-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; max-height: none; margin-bottom: 20px; }
  .notes-nav > * { border: 1px solid var(--line); border-radius: var(--r-s); }
  .notes-nav > a { margin-top: 0; }
  .riot-notes .white-stone { padding: 16px 16px 16px 20px; }
}
/* ------------------------------------------------------------------ items: first backs, in columns by what they cost */
.backs { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--line); }
.backs > .sub-h { margin: 16px 0 12px; font-size: 15px; color: var(--text); }
.backs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 16px clamp(12px, 1.5vw, 28px); }
.backs .flow-col { min-width: 0; }
.backs .boots-when { max-width: none; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: -4px 0 4px; }.backs > .sec-head { margin: 16px 0 12px; align-items: baseline; }
.backs > .sec-head .sub-h { margin: 0; font-size: 15px; color: var(--text); }
.backs .fnode small { color: var(--text-3); }
.back-stay { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.back-stay .val { font-weight: 650; }
/* the patch notes' game-mode tabs, above the notes */
.notes-tabs { margin: 0 0 24px; }
.notes-tabs[hidden] { display: none; }

/* the start page's list of everything a patch changed: each changed line under the name */
.change--full { align-items: start; }
.change--full .what small { display: block; margin-top: 2px; }
.change--full .what small b { font-weight: 650; color: var(--text); }
#home-body .sub-h { margin: 16px 0 4px; }

/* the start page's changes: pictures only, each with its mark in the corner */
.chg-grid { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-bottom: 8px; }
.chg-cell { position: relative; display: inline-flex; border-radius: 8px; text-decoration: none; }
.chg-cell:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.chg-cell > .chg { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; margin: 0; border-radius: 6px; box-shadow: 0 0 0 2px var(--surface); }
.chg-cell > .chg svg { width: 12px; height: 12px; }
.chg-cell > .chg.chg--up { background: var(--win); color: var(--on-win); } .chg-cell > .chg.chg--down { background: var(--loss); color: var(--on-loss); } .chg-cell > .chg.chg--mix { background: var(--warn); color: #1A1407; }

/* runes: every rune can be clicked to pick it, and the page shown can be sent to the League client */
.rg-cell[data-part] { cursor: pointer; border-radius: 8px; }
.rg-cell[data-part]:hover .rune { filter: brightness(1.25); }
.rg-cell[data-part]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rune-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.rune-said { color: var(--text-2); font-size: 14px; }
