/* Hero profiles and the tier list. Loaded after arena.css.
   Flat surfaces, hairline borders, spacing steps of 4/8/12/16/24/32/48, weights up to 650, one accent. */
/* Exo 2 (SIL Open Font License) for numbers, hero names and tier letters; self-hosted, Latin and Cyrillic. */
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/exo2-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/exo2-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:where(.atlas) { --display: 'Exo 2', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif; }
.sheet h1, .arena-mast h1, .sheet__stats dd, .build__stats dd, .grade, .tier-row h2, .rank-bars strong, .skill h3 { font-family: var(--display); }
.sheet__stats dd, .build__stats dd { letter-spacing: -.01em; }
:where(.atlas) {
  --grade: #e6cf4f;
  --panel: #0f2236;
  --line: #243b52;
  --muted: #9fb0c0;
  --soft: #c5d1dc;
}
:where([data-grade="S"], [data-tier="S"]) { --grade: #ef6b6b; }
:where([data-grade="A"], [data-tier="A"]) { --grade: #f0a24d; }
:where([data-grade="B"], [data-tier="B"]) { --grade: #e6cf4f; }
:where([data-grade="C"], [data-tier="C"]) { --grade: #6cc38a; }
:where([data-grade="D"], [data-tier="D"]) { --grade: #5b9bd5; }
/* The site hides horizontal overflow on body, which makes body a scroll container and stops position: sticky.
   clip cuts the same overflow without that side effect, so the tab bar can stick under the header. */
body:has(.arena-profile) { overflow-x: clip; overflow-y: visible; }
.atlas h2, .atlas h3 { text-wrap: balance; }
.atlas .arena-context { margin-bottom: 16px; }
.atlas h3 { margin: 0 0 16px; font-size: 1.125rem; font-weight: 600; color: var(--arena-ink); }
.grade {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: var(--grade); color: #0a1727; font-size: 1rem; font-weight: 650; line-height: 1;
}

/* ---------- Hero sheet ---------- */
.sheet {
  display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.sheet__art { width: 192px; height: auto; aspect-ratio: 240 / 390; object-fit: cover; border-radius: 8px; display: block; }
.sheet__body { min-width: 0; display: grid; gap: 16px; align-content: center; }
.sheet__title { display: flex; align-items: center; gap: 16px; }
.sheet h1 { margin: 0; color: var(--arena-ink); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.sheet .grade { width: 40px; height: 40px; font-size: 1.25rem; }
.sheet__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sheet__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); font-size: 1rem; }
.sheet__tag img { width: 20px; height: 20px; object-fit: contain; }
.sheet__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 0; border-top: 1px solid var(--line); }
.sheet__stats > div { padding: 16px 16px 0 0; }
.sheet__stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.sheet__stats dt { color: var(--muted); font-size: 1rem; }
.sheet__stats dd { margin: 4px 0 0; color: var(--arena-ink); font-size: 2.25rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sheet__stats .is-lead dd { color: var(--arena-accent); }
.sheet__stats .is-ban dd { color: #ef6b6b; }

/* ---------- Profile tabs ---------- */
.atlas-nav {
  position: sticky; top: 64px; z-index: 6; display: flex; gap: 32px; margin: 24px 0; padding: 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); background: var(--arena-ground);
}
.atlas-nav::-webkit-scrollbar { display: none; }
.atlas-nav a {
  position: relative; flex: none; padding: 16px 0; color: var(--muted); font-size: 1.0625rem; font-weight: 500; text-decoration: none; transition: color .15s;
}
.atlas-nav a:hover { color: var(--arena-ink); }
.atlas-nav a[aria-selected="true"] { color: var(--arena-ink); font-weight: 600; }
.atlas-nav a[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--arena-accent); }
.atlas-chapters { max-width: none; margin: 0; }
.atlas-section { margin: 0; scroll-margin-top: 128px; }
.arena-profile .atlas-section > h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atlas-section > h2 { margin: 0 0 16px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--arena-ink); }
.atlas-caption { margin: 0 0 16px; color: var(--muted); font-size: .9375rem; }
[role="tabpanel"]:not([hidden]) { animation: panel-in .15s ease-out; }
@keyframes panel-in { from { opacity: 0; } }

/* ---------- Overview ---------- */
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ov-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ov-wide { grid-column: 1 / -1; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.meters li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 36px; align-items: center; gap: 12px; color: var(--soft); font-size: 1rem; }
.meters strong { color: var(--arena-ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 4px; background: #1a3048; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--arena-accent); }
.ov-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.ov-tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); font-size: 1rem; }
.rank-bars { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; text-align: center; }
.rank-bars li { display: grid; justify-items: center; gap: 8px; color: var(--soft); font-size: .9375rem; }
.rank-bars strong { color: var(--arena-ink); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-bars__col { position: relative; width: 100%; max-width: 48px; height: 128px; border-radius: 4px; background: #14293f; overflow: hidden; display: flex; align-items: end; }
.rank-bars__col::before { content: ""; position: absolute; left: 0; right: 0; bottom: var(--mid, 50%); border-top: 1px dashed #6d8196; z-index: 1; }
.rank-bars__col i { display: block; width: 100%; background: var(--arena-accent); }
.rank-bars__col i[data-above="false"] { background: #e08a85; }
.rank-bars img { width: 32px; height: 32px; object-fit: contain; }
.rank-bars__note { margin: 16px 0 0; font-size: .9375rem; color: var(--muted); }

/* ---------- Banners: one component for every list of heroes in a profile ---------- */
.banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; }
.banner { --frame: var(--line); position: relative; display: block; aspect-ratio: 240 / 390; border-radius: 10px; overflow: hidden; border: 2px solid var(--frame); background: var(--arena-raised); text-decoration: none; transition: transform .15s, border-color .15s; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner[data-grade] { --frame: var(--grade); }
.banner__bar { position: absolute; inset: auto 0 0; display: block; padding: 12px 8px; font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; background: #0a1727; color: var(--arena-ink); font-size: 1rem; line-height: 1.2; text-align: center; }
.banner:hover, .banner:focus-visible { transform: translateY(-3px); --frame: var(--arena-accent); }
.banner--bad { --frame: #e5645f; }
.banner--bad .banner__bar { background: #2a1519; }
.banner--bad:hover, .banner--bad:focus-visible { --frame: #ff8782; }
.banner--good { --frame: #4fb97b; }
.banner--good .banner__bar { background: #11261b; }
.banner--good:hover, .banner--good:focus-visible { --frame: #7bd9a1; }

/* ---------- Build ---------- */
.build-switch { display: inline-flex; gap: 8px; margin: 0 0 16px; }
.build-switch button {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--soft); background: transparent; cursor: pointer; transition: border-color .15s, color .15s;
}
.build-switch button:hover { border-color: #3a5873; }
.build-switch button[aria-pressed="true"] { border-color: var(--arena-accent); color: var(--arena-ink); }
.build { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.build__head { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.build__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.build__body > section { padding: 24px; display: grid; gap: 20px; align-content: space-between; }
.build__body > section + section { border-left: 1px solid var(--line); }
.build__body h4 { margin: 0 0 16px; color: var(--muted); font-size: 1rem; font-weight: 500; }
.core { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.core .gear { width: auto; }
.build__spell { padding-top: 20px; border-top: 1px solid var(--line); }
.spell { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; font-weight: 500; color: var(--arena-ink); }
.spell img { width: 48px; height: 48px; border-radius: 50%; background: var(--arena-raised); }
.gears { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.gears--talents { gap: 12px; }
.gear-link { display: block; border-radius: 12px; color: inherit; text-decoration: none; }
.gear-link .gear img { transition: transform .15s ease-out; }
.gear-link:hover .gear img, .gear-link:focus-visible .gear img { transform: translateY(-2px); }
.gear-link:hover figcaption, .gear-link:focus-visible figcaption { color: var(--arena-accent); }
.gear { margin: 0; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.gear img { border-radius: 12px; background: var(--arena-raised); display: block; }
.gear figcaption { font-size: 1rem; font-weight: 500; line-height: 1.3; color: var(--arena-ink); text-wrap: balance; }
.gear--lg { width: 104px; }
.gear--lg img { width: 80px; height: 80px; }
.gear--round { width: 104px; }
.gear--round img { width: 64px; height: 64px; border-radius: 50%; }
.gear--sm { width: 84px; }
.gear--sm img { width: 48px; height: 48px; border-radius: 10px; }
.gear--sm figcaption { font-size: .8125rem; color: var(--soft); }
.tree { display: grid; grid-template-columns: auto 56px minmax(0, 1fr); align-items: stretch; }
.tree > .gear { align-self: center; }
.tree__lines { width: 100%; height: 100%; min-height: 192px; display: block; overflow: visible; }
.tree__lines path { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tree__leaves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(3, 1fr); min-height: 192px; }
.tree__leaves li { display: flex; align-items: center; }
.gear--leaf { grid-template-columns: 48px minmax(0, 1fr); justify-content: start; align-items: center; text-align: left; gap: 12px; }
.gear--leaf img { width: 48px; height: 48px; border-radius: 10px; }
.gear--leaf figcaption { font-size: 1.0625rem; color: var(--arena-ink); }
.build__stats { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; }
.build__stats > div { display: flex; align-items: baseline; gap: 8px; }
.build__stats dt { color: var(--muted); font-size: 1rem; }
.build__stats dd { margin: 0; font-size: 1.5rem; font-weight: 600; color: var(--arena-ink); font-variant-numeric: tabular-nums; }
.build__stats > div:first-child dd { color: var(--arena-accent); }
.builds .build + .build { margin-top: 16px; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.skill-tabs { display: grid; gap: 8px; }
.skill-tab {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--soft); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.skill-tab img { width: 48px; height: 48px; border-radius: 8px; }
.skill-tab span { display: grid; gap: 2px; min-width: 0; }
.skill-tab small { color: var(--muted); font-size: .875rem; }
.skill-tab b { color: var(--arena-ink); font-size: 1rem; font-weight: 600; line-height: 1.25; }
.skill-tab:hover { border-color: #3a5873; }
.skill-tab[aria-pressed="true"] { border-color: var(--arena-accent); background: #12293f; }
.skill { padding: 24px 32px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.skill + .skill { margin-top: 16px; }
.skill > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.skill small { display: block; color: var(--muted); font-size: .9375rem; }
.skill h3 { margin: 4px 0 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.skill__cd { color: var(--muted); font-size: 1rem; }
.skill__cd b { color: var(--arena-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.skill__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.skill__tags span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .9375rem; color: var(--soft); }
.skill__text { margin-top: 20px; max-width: 68ch; color: #d3dde6; font-size: 1.0625rem; line-height: 1.7; }
.skill__text p { margin: 0 0 14px; }
.skill__text strong { color: var(--arena-ink); font-weight: 600; }

/* ---------- Counters ---------- */
.bands { display: grid; gap: 32px; }
.band h3 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--arena-ink); }
.band--bad h3 { color: #ff8b86; }
.band--good h3 { color: #7bd9a1; }
.band > p { margin: 4px 0 16px; color: var(--muted); font-size: 1rem; }

/* ---------- Lore, call to action ---------- */
.arena-lore { display: grid; justify-items: center; gap: 24px; padding: 48px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: center; }
.arena-lore blockquote { margin: 0; max-width: 32ch; color: var(--arena-ink); font-size: clamp(1.375rem, 2.6vw, 2rem); line-height: 1.35; text-wrap: balance; }
.arena-lore-primary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 24px; border-radius: 8px; color: #04271b; background: var(--arena-accent); text-decoration: none; font-weight: 600; }
.arena-lore small { display: block; margin: -16px 0 0; color: var(--muted); font-size: .9375rem; }
.arena-lore-official { color: var(--soft); font-size: 1rem; text-underline-offset: 4px; }
.hero-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin: 48px 0 0; padding: 32px; border: 1px solid var(--arena-accent); border-radius: 12px; background: #0e2c2c; }
.hero-cta div { display: grid; gap: 8px; }
.hero-cta strong { font-family: var(--display); font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 650; line-height: 1.2; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.hero-cta span { color: var(--soft); font-size: 1.0625rem; }
.hero-cta .calc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 32px; border-radius: 10px; background: var(--arena-accent); color: #04271b; font-size: 1.0625rem; font-weight: 650; white-space: nowrap; text-decoration: none; transition: background-color .15s; }
.hero-cta .calc-btn:hover, .hero-cta .calc-btn:focus-visible { background: #5cf0b6; }
.atlas .seo-faq { margin-top: 48px; }
.atlas .seo-faq h2 { margin: 0 0 16px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Tier list ---------- */
.arena-directory .arena-mast { margin-bottom: 24px; }
.arena-mast p { margin: 12px 0 0; color: var(--muted); font-size: 1.0625rem; }
.arena-mast time { color: var(--soft); }
.arena-workspace { margin: 0; border: 0; }
.atlas-tools { display: grid; gap: 12px; padding: 0 0 20px; }
.atlas-search { position: relative; display: block; min-width: 0; }
.atlas-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #7d93a7; pointer-events: none; }
.atlas-tools input { width: 100%; min-height: 52px; box-sizing: border-box; padding: 8px 16px 8px 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--arena-ink); font: inherit; font-size: 1.0625rem; color-scheme: dark; transition: border-color .15s; }
.atlas-tools input::placeholder { color: #7d93a7; }
.atlas-tools input:hover { border-color: #34506b; }
.atlas-tools input:focus { border-color: var(--arena-accent); outline: 0; }
/* One bar: the view switch and the lane filter, both segmented controls of the same height. */
.atlas-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.atlas-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.tier-views, .atlas-choice > div { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tier-views button, .atlas-choice button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 6px;
  font: inherit; font-size: .9375rem; font-weight: 500; line-height: 1; color: var(--muted); background: transparent; cursor: pointer; transition: color .15s, background-color .15s;
}
.atlas-choice button img { width: 20px; height: 20px; object-fit: contain; opacity: .75; transition: opacity .15s; }
.atlas-choice button i { font-size: .9375rem; }
.tier-views button:hover, .atlas-choice button:hover { color: var(--arena-ink); background: #142c44; }
.atlas-choice button:hover img { opacity: 1; }
.tier-views button[aria-pressed="true"], .atlas-choice button[aria-pressed="true"] { background: #1f3b58; color: var(--arena-ink); }
.atlas-choice button[aria-pressed="true"] img { opacity: 1; }
.tier-views button:active, .atlas-choice button:active { transform: scale(.97); }

.tier-board { display: grid; gap: 8px; }
.tier-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.tier-row h2 { display: grid; place-items: center; margin: 0; background: var(--grade); color: #0a1727; font-size: 2.25rem; font-weight: 650; line-height: 1; }
.tier-roster { display: flex; flex-wrap: wrap; gap: 4px; align-content: start; padding: 12px; }
.tile { display: grid; justify-items: center; align-content: start; gap: 6px; width: 84px; padding: 8px 4px; border-radius: 10px; color: var(--arena-ink); text-decoration: none; transition: background-color .15s; }
.tile img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; display: block; transition: transform .15s ease-out; }
.tile__name { max-width: 100%; font-size: .8125rem; font-weight: 500; line-height: 1.2; text-align: center; color: var(--soft); text-wrap: balance; overflow-wrap: break-word; }
.tile:hover, .tile:focus-visible { background: #17304a; }
.tile:hover img { transform: translateY(-2px); }
.tile:hover .tile__name { color: var(--arena-ink); }
.tier-stats { width: 100%; border: 1px solid var(--line); border-radius: 12px; border-spacing: 0; overflow: hidden; background: var(--panel); font-variant-numeric: tabular-nums; }
.tier-stats th button { width: 100%; min-height: 48px; padding: 8px 12px; border: 0; background: #12293f; color: var(--muted); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: color .15s; }
.tier-stats th button:hover { color: var(--arena-ink); }
.tier-stats th[aria-sort] button { color: var(--arena-ink); }
.tier-stats th[aria-sort="ascending"] button::after { content: " ↑"; }
.tier-stats th[aria-sort="descending"] button::after { content: " ↓"; }
.tier-stats td, .tier-stats tbody th { padding: 8px 12px; text-align: center; border-top: 1px solid var(--line); font-size: .9375rem; font-weight: 500; }
.tier-stats tbody tr { transition: background-color .15s; }
.tier-stats tbody tr:hover { background: #132a41; }
.tier-stats th:first-child button, .tier-stats tbody th { text-align: left; }
.row-hero { display: inline-flex; align-items: center; gap: 12px; color: var(--arena-ink); text-decoration: none; font-weight: 500; }
.row-hero img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.row-hero:hover { color: var(--arena-accent); }
.tier-stats td.is-ban { color: #ef6b6b; }
.tier-stats td.is-pro { color: var(--soft); }
.tier-stats .grade { width: 28px; height: 28px; font-size: .875rem; }
#hero-empty { padding: 48px 0; text-align: center; }
#hero-empty p { margin: 0 0 16px; color: var(--muted); font-size: 1.0625rem; }
#hero-empty button { min-height: 44px; padding: 8px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--arena-ink); font: inherit; cursor: pointer; }
#hero-empty button:hover { border-color: #3a5873; }
.tier-method { margin: 24px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tier-method summary { cursor: pointer; padding: 16px 24px; color: var(--soft); font-size: 1rem; font-weight: 500; }
.tier-method summary:hover { color: var(--arena-ink); }
.tier-method p { margin: 0; padding: 0 24px 24px; max-width: 76ch; color: var(--muted); line-height: 1.65; font-size: 1rem; }
.atlas-section#week, .atlas-section#roles { margin-top: 56px; }
.atlas-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.atlas-roles section { padding: 20px 24px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.atlas-roles h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.125rem; }
.atlas-roles section > p { margin: -8px 0 12px; color: var(--muted); font-size: .875rem; }
.atlas-roles ol { list-style: none; margin: 0; padding: 0; }
.atlas .hero-chip { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 48px; padding: 4px 8px; margin-inline: -8px; border: 0; border-radius: 8px; background: none; color: var(--arena-ink); text-align: left; text-decoration: none; transition: background-color .15s; }
.atlas .hero-chip img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; box-shadow: none; }
.atlas .hero-chip__name { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.atlas .hero-chip__value { margin-left: auto; color: var(--soft); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1rem; }
.atlas .hero-chip:hover, .atlas .hero-chip:focus-visible { background: #17304a; border: 0; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
}
@media (max-width: 900px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .skill-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-nav { top: 56px; }
}
@media (max-width: 740px) {
  .build__body { grid-template-columns: minmax(0, 1fr); }
  .build__body > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .atlas-bar { display: grid; gap: 8px; }

  .tier-views { display: grid; grid-template-columns: 1fr 1fr; }
  .atlas-choice > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
  .atlas-choice button { flex-direction: column; gap: 4px; min-width: 0; min-height: 52px; padding: 4px 0; font-size: clamp(.6875rem, 3vw, .8125rem); }
  .tier-row { grid-template-columns: 44px minmax(0, 1fr); }
  .tier-row h2 { font-size: 1.625rem; }
  .tier-roster { gap: 4px 0; padding: 8px 4px; }
  .tile { width: 20%; padding-inline: 2px; box-sizing: border-box; }
  .tile img { width: 48px; height: 48px; }
  .tile__name { font-size: .6875rem; letter-spacing: -.01em; }
  .tier-stats td, .tier-stats tbody th, .tier-stats th button { padding-inline: 4px; font-size: .75rem; }
  .row-hero { gap: 8px; }
  .row-hero img { width: 28px; height: 28px; }
  .tier-stats .grade { width: 24px; height: 24px; font-size: .75rem; }
}
@media (max-width: 420px) {
  .tile { width: 25%; }
  .tile img { width: 52px; height: 52px; }
  .tile__name { font-size: .75rem; letter-spacing: 0; }
}
@media (max-width: 640px) {
  .sheet { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 16px; align-items: start; }
  .sheet__art { width: 104px; grid-row: 1 / span 2; }
  .sheet__body { display: contents; }
  .sheet__title, .sheet__tags { grid-column: 2; }
  .sheet__title { align-self: end; gap: 12px; }
  .sheet h1 { font-size: 2rem; }
  .sheet .grade { width: 32px; height: 32px; font-size: 1rem; }
  .sheet__tags { align-self: start; gap: 4px; }
  .sheet__tag { padding: 4px 8px 4px 6px; font-size: .875rem; gap: 6px; }
  .sheet__tag img { width: 16px; height: 16px; }
  .sheet__stats { grid-column: 1 / -1; }
  .sheet__stats { margin-top: 0; }
  .sheet__stats > div { padding: 12px 8px 0 0; }
  .sheet__stats > div + div { padding-left: 8px; }
  .sheet__stats dt { font-size: .875rem; }
  .sheet__stats dd { font-size: 1.5rem; }
  .atlas-nav { gap: 20px; }
  .atlas-nav a { padding-block: 12px; font-size: 1rem; }
  .meters li { grid-template-columns: 88px minmax(0, 1fr) 28px; font-size: .9375rem; }
  .ov-card { padding: 16px; }
  .rank-bars { gap: 8px; }
  .rank-bars__col { height: 96px; }
  .rank-bars strong { font-size: .9375rem; }
  .rank-bars li { font-size: .8125rem; }
  .rank-bars img { width: 24px; height: 24px; }
  .banners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .banner { border-width: 2px; }
  .banner__bar { padding: 8px 4px; font-size: .875rem; }
  .tree { grid-template-columns: auto 36px minmax(0, 1fr); }
  .tree__lines, .tree__leaves { min-height: 168px; }
  .gear--leaf { gap: 8px; }
  .gear--leaf { grid-template-columns: 40px minmax(0, 1fr); }
  .gear--leaf img { width: 40px; height: 40px; }
  .gear--leaf figcaption { font-size: .9375rem; }
  .build__head { padding: 12px 16px; }
  .build__stats { gap: 8px 24px; }
  .build__stats dd { font-size: 1.25rem; }
  .build__body > section { padding: 16px; }
  .core { gap: 8px; }
  .gears { gap: 8px; }
  .gear--lg img { width: 64px; height: 64px; }
  .build-switch { display: flex; }
  .build-switch button { flex: 1; padding: 8px 4px; white-space: nowrap; }
  .skill { padding: 16px; }
  .skill h3 { font-size: 1.25rem; }
  .arena-lore { padding: 32px 16px; }
  .hero-cta { padding: 24px 16px; margin-top: 32px; }
  .hero-cta .calc-btn { width: 100%; justify-content: center; }
  .atlas-roles section { padding: 16px; }
}

/* ---------- Ranking lists: best <role> pages and the beginner list ---------- */
.list-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.list-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--soft); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: color .15s, border-color .15s, background-color .15s; }
.list-chips a img { width: 20px; height: 20px; object-fit: contain; opacity: .75; }
.list-chips a:hover { color: var(--arena-ink); border-color: #3a5873; }
.list-chips a[aria-current="page"] { color: var(--arena-ink); border-color: var(--arena-accent); background: #12293f; }
.list-lead { margin: 0 0 12px; max-width: 76ch; color: var(--arena-ink); font-size: 1.1875rem; line-height: 1.6; text-wrap: pretty; }
.list-page .atlas-section { margin-top: 48px; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pick__art { display: block; align-self: start; aspect-ratio: 240 / 390; border: 2px solid var(--grade); border-radius: 8px; overflow: hidden; }
.pick__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick__body { min-width: 0; display: grid; gap: 16px; align-content: start; }
.pick header { display: flex; align-items: center; gap: 12px; }
.pick__no { color: var(--muted); font-family: var(--display); font-size: 1.125rem; font-weight: 650; }
.atlas .pick h3 { margin: 0; font-size: 1.25rem; font-weight: 650; }
.pick h3 a { color: var(--arena-ink); text-decoration: none; }
.pick h3 a:hover { color: var(--arena-accent); }
.pick .grade { margin-left: auto; }
.pick__stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.pick__stats dt { color: var(--muted); font-size: .8125rem; }
.pick__stats dd { margin: 0; color: var(--arena-ink); font-family: var(--display); font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.pick__stats .is-ban dd { color: #ef6b6b; }
.pick__items { display: flex; flex-wrap: wrap; gap: 8px; }
.pick .gear--sm { width: 72px; gap: 4px; }
.pick .gear figcaption { color: var(--soft); font-size: .75rem; line-height: 1.25; }
.pick .gear--round { width: 72px; gap: 4px; }
.pick .gear--round img { width: 44px; height: 44px; }
.table-scroll { overflow-x: auto; border-radius: 12px; }
.rank-table thead th { padding: 12px; background: #12293f; color: var(--muted); font-size: .875rem; font-weight: 600; text-align: center; }
.rank-table thead th.th-left { text-align: left; }
.rank-table .col-n { width: 48px; color: var(--muted); }
.row-role { display: inline-flex; align-items: center; gap: 10px; color: var(--arena-ink); font-weight: 500; }
.row-role img { width: 24px; height: 24px; object-fit: contain; }
.usage { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.usage li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.usage img { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 10px; background: var(--arena-raised); }
.usage__name { color: var(--arena-ink); font-weight: 500; line-height: 1.3; }
.usage li:has(> a) { padding: 0; transition: border-color .15s; }
.usage li > a { grid-column: 1 / -1; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.usage li:has(> a:hover) { border-color: #3a5873; }
.usage a:hover .usage__name { color: var(--arena-accent); }
.usage__count { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.chip-grid { list-style: none; margin: 0; padding: 8px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.atlas-roles h3 .list-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.atlas-roles h3 .list-link:hover span { color: var(--arena-accent); }
.list-all { display: inline-block; margin-top: 8px; color: var(--soft); font-size: .9375rem; text-underline-offset: 4px; }
.list-all:hover { color: var(--arena-ink); }
.list-more { margin: 16px 0 0; }
.list-more a { color: var(--soft); font-size: 1rem; text-underline-offset: 4px; }
.list-more a:hover { color: var(--arena-ink); }
.ov-places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ov-places a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); font-size: 1rem; text-decoration: none; transition: color .15s, border-color .15s; }
.ov-places a:hover { color: var(--arena-ink); border-color: var(--arena-accent); }
.ov-places b { color: var(--arena-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .picks { grid-template-columns: minmax(0, 1fr); }
  .pick { grid-template-columns: 112px minmax(0, 1fr); }
  .usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .chip-grid, .usage { grid-template-columns: minmax(0, 1fr); }
  .col-pick, .col-pro, .col-role { display: none; }
  .pick { grid-template-columns: 88px minmax(0, 1fr); padding: 12px; gap: 12px; }
  .pick .gear--sm, .pick .gear--round { width: 64px; }
  .pick .gear--sm img, .pick .gear--round img { width: 40px; height: 40px; }
  .list-lead { font-size: 1.0625rem; }
  .list-chips a { padding: 0 12px; }
}

/* How to play: combos as skill sequences, win rate by match length, level-up order. */
.howto { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.howto__side { display: grid; gap: 16px; }
.howto .ov-card h3 { margin: 0 0 16px; font-size: 1.125rem; font-weight: 600; color: var(--arena-ink); }
.howto .ov-card > p { margin: 0 0 18px; color: var(--soft); line-height: 1.6; }
.combo + .combo { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.combo h4 { margin: 0 0 12px; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.combo__steps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 0; margin: 0; padding: 0; list-style: none; }
.combo__step { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 64px; padding-right: 16px; }
.combo__step:not(:last-child)::after { content: "›"; position: absolute; right: 4px; top: 12px; color: #6d8196; font-size: 1.125rem; }
.combo__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #14293f; overflow: hidden; color: var(--soft); }
.combo__icon img { width: 100%; height: 100%; object-fit: cover; }
.combo__step--ult .combo__icon { border: 2px solid var(--arena-accent); }
.combo__step small { color: var(--muted); font-size: .75rem; }
.combo p { margin: 12px 0 0; color: var(--soft); font-size: 1rem; line-height: 1.6; }
.time-bars { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; text-align: center; }
.time-bars li { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: .75rem; }
.time-bars strong { color: var(--arena-ink); font-family: var(--display); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-bars .rank-bars__col { height: 96px; max-width: 34px; }
.level-order { display: grid; gap: 10px; margin: 0; padding: 0; counter-reset: level; list-style: none; }
.level-order li { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--arena-ink); counter-increment: level; }
.level-order li::before { content: counter(level); color: var(--muted); font-family: var(--display); font-weight: 600; }
.level-order img { width: 40px; height: 40px; border-radius: 8px; }
@media (max-width: 900px) {
  .howto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .combo__step { min-width: 56px; padding-right: 12px; }
  .combo__icon { width: 44px; height: 44px; }
  .time-bars { gap: 4px; }
}
