@font-face { font-family: Reaver; src: url('/assets/fonts/reaver-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Oracle; src: url('/assets/fonts/valveoracle-medium.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Oracle; src: url('/assets/fonts/valveoracle-semibold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }

/* Small common glyph ranges; complete game faces remain available above. */
@font-face { font-family: Reaver; src: url('/assets/fonts/reaver-bold.latin.de5b7ceef003.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20CF,U+2190-2199,U+25A0-25FF; }
@font-face { font-family: Oracle; src: url('/assets/fonts/valveoracle-medium.latin.927b4f3da70c.woff2') format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20CF,U+2190-2199,U+25A0-25FF; }
@font-face { font-family: Oracle; src: url('/assets/fonts/valveoracle-semibold.latin.2c66738baa7d.woff2') format('woff2'); font-weight: 600 800; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20CF,U+2190-2199,U+25A0-25FF; }

@font-face { font-family: Retail; src: url('/assets/fonts/retaildemo-regular.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Retail; src: url('/assets/fonts/retaildemo-bold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }

/* Surfaces are neutral. Color identifies an action, an outcome, or game content. */
:root {
  color-scheme: light;
  --background: #f5f5f7;
  --surface: #ffffff;
  --control-selected: #ffffff;
  --inset: #ededf0;
  --hover: #f0f0f3;
  --ink: #1d1d1f;
  --muted: #626267;
  --line: #dcdce1;
  --tint: #24694e;
  --tint-hover: #1b543e;
  --tint-soft: #eaf2ee;
  --positive: #246a47;
  --negative: #b33b36;
  --chrome: rgb(250 250 252 / 94%);
  --shadow: 0 1px 3px rgb(0 0 0 / 7%);
  --body: Retail, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: Reaver, Georgia, serif;
  --number: Oracle, var(--body);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--background); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: transparent; }
button:disabled { cursor: wait; opacity: .6; }
button:active, .button:active { opacity: .72; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 2rem/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { font: 600 1.25rem/1.3 var(--body); letter-spacing: -.01em; }
h3 { font: 600 1rem/1.4 var(--body); }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; }
[hidden] { display: none !important; }
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
::selection { background: var(--tint-soft); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--surface); color: var(--tint); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Four stable destinations. Navigation is separate from in-page filters. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--chrome); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { max-width: 1280px; min-height: 68px; margin: auto; padding: 0 40px; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex: none; }
.brand img { width: 148px; height: auto; filter: brightness(0); }
.brand > span { font-size: .875rem; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); }
.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 8px; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.main-nav a:hover { background: var(--hover); color: var(--ink); }
.main-nav a[aria-current=page] { background: var(--inset); color: var(--ink); }
.main-nav svg { display: none; }
/* Reserve desktop label widths while the game font loads. */
@media (min-width: 601px) {
  .main-nav a > span { width: 60px; text-align: center; white-space: nowrap; }
}
.page { max-width: 1280px; padding: 0 40px; margin: 0 auto; }
.page-heading { padding: 36px 0 28px; }
.page-heading h1 { margin-bottom: 8px; }
.page-heading p { color: var(--muted); max-width: 70ch; }
.eyebrow { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); font-size: .875rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.text-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; padding: 8px 0; color: var(--tint); font-weight: 500; font-size: .875rem; }
.text-link svg { width: 16px; height: 16px; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-size: .9375rem; font-weight: 600; }
.button.primary { background: var(--tint); color: #fff; }
.button.primary:hover { background: var(--tint-hover); }
.button.subtle { background: var(--inset); color: var(--ink); }
.button.subtle:hover { background: var(--line); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 8px; }
.icon-button:hover { background: var(--hover); }
.fine-print, .coverage-note { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.fine-print { margin-top: 16px; }
.coverage-note { margin-top: 28px; padding: 20px 0 32px; border-top: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: 12px 0; color: var(--tint); font-size: .875rem; }

/* The search leads; a quiet game scene connects it to the hero directory. */
.lookup-page { position: relative; isolation: isolate; width: 100%; padding: 64px 0 56px; }
.lookup-backdrop { position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 500px; max-height: 100%; pointer-events: none; opacity: .18; filter: blur(2px) saturate(.4); mask-image: linear-gradient(#000 0%, #000 32%, transparent 100%); }
.lookup-backdrop video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.lookup-content { width: 100%; max-width: 880px; margin: 0 auto 44px; }
.lookup-content .page-heading { text-align: center; padding: 0 0 32px; }
.lookup-content .page-heading h1 { font-size: 3rem; margin-bottom: 12px; }
.lookup-content .page-heading p { max-width: none; font-size: 1.0625rem; color: var(--ink); }
.lookup-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 32px rgb(0 0 0 / 5%); }
.lookup-box form { padding: 28px; }
.lookup-box label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.lookup-controls { display: flex; align-items: stretch; gap: 12px; }
.player-field { display: flex; flex: 1; min-width: 0; gap: 12px; align-items: center; border: 1px solid #b5b5bc; border-radius: 8px; padding: 0 0 0 16px; background: var(--surface); }
.player-field > svg { color: var(--muted); }
.player-field input { width: 100%; min-width: 0; min-height: 60px; border: 0; background: transparent; padding: 14px 0; outline: none; font-size: 1.125rem; }
.player-field input::placeholder { color: var(--muted); opacity: 1; }
.player-field:focus-within, .filter-search:focus-within { outline: 3px solid var(--tint); outline-offset: 2px; }
.player-field input::-webkit-search-cancel-button, .filter-search input::-webkit-search-cancel-button { display: none; }
.lookup-controls > .button { flex: none; min-width: 144px; font-size: 1rem; }
.field-help { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
/* Grow the full homepage card by 40%, keeping the caption unchanged.
   Original caption: 1.4rem heading + 1.21875rem tag + 14px spacing.
   The extra 40% of that caption height also goes into the portrait. */
.home-heroes .hero-card { container-type: inline-size; }
.home-heroes .hero-card, .home-heroes .hero-art :is(img,video,canvas) { -webkit-user-drag:none; }
.home-heroes .hero-art { aspect-ratio: auto; height: calc(150cqw + 1.0475rem + 5.6px); }
.home-heroes .section-heading { align-items: center; margin-bottom: 20px; }
.home-heroes .section-heading p { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.home-heroes .section-heading .text-link { flex: none; }
.home-heroes .hero-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.home-heroes .hero-grid > .loading-state, .home-heroes .hero-grid > .notice { grid-column: 1/-1; }
.search-results:empty { display: none; }
.search-results { border-top: 1px solid var(--line); }
.search-results-heading { display: flex; gap: 16px; justify-content: space-between; padding: 14px 24px; font-size: .8125rem; color: var(--muted); background: var(--background); }
.profile-result { display: flex; align-items: center; gap: 12px; padding: 14px 24px; min-height: 76px; border-top: 1px solid var(--line); }
.profile-result:last-child { border-radius: 0 0 12px 12px; }
.profile-result:hover { background: var(--hover); }
.profile-result > span { flex: 1; min-width: 0; }
.profile-result strong { display: block; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-result small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 3px; }
.profile-result > svg { color: var(--muted); width: 18px; }
.result-avatar { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.search-empty { padding: 24px; }
.search-empty p { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.search-results .loading-state { min-height: 96px; }
.search-results .notice { margin: 16px; }

/* Scoped controls sit immediately above the collection they change. */
.filter-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-search { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 200px; max-width: 360px; flex: 1; padding: 0 0 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.filter-search > svg { width: 18px; color: var(--muted); }
.filter-search input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px 8px 0; border: 0; background: transparent; outline: none; font-size: 1rem; }
.filter-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.filter-actions label { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
select { max-width: 100%; appearance: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 10px 12px; min-height: 44px; font-size: .875rem; cursor: pointer; }
.filter-period { color: var(--muted); font-size: .8125rem; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 0 16px; font-size: .8125rem; color: var(--muted); }
.result-heading > span:first-child { color: var(--ink); font-weight: 500; }
.result-heading > span:empty { display: none; }
.compact-selector { display: none; }
.segmented { max-width: 100%; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content,1fr); flex: none; align-items: stretch; background: var(--inset); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented > button, .segmented > a { min-height: 44px; display: flex; align-items: center; justify-content: center; flex: 1; padding: 8px 14px; border-radius: 7px; font-size: .875rem; font-weight: 500; white-space: nowrap; min-width: max-content; line-height: 1.25; color: var(--muted); }
.segmented > :hover { color: var(--ink); }
.segmented > [aria-pressed=true], .segmented > [aria-current=true] { background: var(--control-selected); box-shadow: var(--shadow); color: var(--ink); }
.roster-page, .items-page { padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px 20px; }
.hero-card { min-width: 0; display: block; position:relative; border-radius: 8px; }
.hero-art { aspect-ratio: 280/300; background: var(--hero-color); border-radius: 8px; position: relative; isolation:isolate; overflow: hidden; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .25s ease; }
/* Native post-game dot/checker halftone, cropped inside the black nameplate. */
.hero-card-cta { position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0; color:#f5f5f7; font-family:var(--display); font-weight:700; }
.hero-motion-panel { position:absolute; bottom:16px; left:14px; right:14px; width:auto; height:44px; display:flex; align-items:center; gap:10px; padding:0 12px; overflow:hidden; isolation:isolate; background:#101012; clip-path:polygon(0 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%); font-size:clamp(12px,7.5cqw,18px); line-height:1; opacity:0; }
.hero-motion-panel::before { content:""; position:absolute; z-index:1; left:0; top:0; bottom:0; width:2px; background:var(--hero-color); }
.hero-motion-panel::after { content:""; position:absolute; z-index:0; inset:0; pointer-events:none; background:url("/assets/game-ui/post-game-card-background.png") center -28px / 200px auto no-repeat; opacity:.8; }
.hero-motion-label { flex:1; min-width:0; position:relative; z-index:1; white-space:nowrap; text-shadow:0 1px 3px rgb(0 0 0 / .75); opacity:0; }
.hero-motion-arrow { position:relative; z-index:1; width:18px; height:14px; stroke:none; filter:drop-shadow(0 1px 2px rgb(0 0 0 / .5)); opacity:0; }
.hero-card-info { padding: 10px 0 0; }
.hero-card-info h3 { font-size: 1rem; }
.hero-card-info p { color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.hero-card-info p > span:first-child { font-family: var(--number); font-weight: 600; font-size: .9375rem; color: var(--ink); margin-right: 5px; }
.hero-card-info p > span + span { display: block; font-size: .75rem; margin-top: 2px; }

/* A compact identity header, then Overview / Abilities / Videos. */
.hero-masthead { background: var(--background); }
.hero-masthead-inner { display: grid; grid-template-columns: 80px minmax(0,1fr); align-items: center; gap: 8px 20px; padding-top: 8px; padding-bottom: 16px; }
.hero-masthead-inner > .back-link { grid-column: 1 / -1; justify-self: start; margin: 0; }
.hero-description { grid-column: 2; grid-row: 2; min-width: 0; }
.hero-description > .eyebrow { margin-bottom: 4px; }
.hero-description h1 { font-size: 2rem; margin: 0 0 4px; }
.hero-description > p { color: var(--muted); font-size: .9375rem; line-height: 1.6; max-width: 70ch; }
.hero-description > .hero-role { color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.hero-playstyle { margin: 24px 0 0; }
.hero-playstyle h2 { margin-bottom: 8px; }
.hero-playstyle p { color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.hero-traits { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.complexity { display: inline-flex; align-items: center; gap: 4px; }
.complexity i { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 2px; }
.complexity i.filled { background: currentColor; }
.complexity > span { margin-left: 5px; }
.hero-masthead-art { grid-column: 1; grid-row: 2; width: 80px; height: 108px; flex: none; border-radius: 8px; background: var(--hero-color); overflow: hidden; }
.hero-masthead-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-content { padding-bottom: 40px; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.section-tabs button { min-height: 56px; padding: 16px 0; color: var(--muted); font-size: .9375rem; font-weight: 600; position: relative; }
.section-tabs button[aria-selected=true] { color: var(--ink); }
.section-tabs button[aria-selected=true]::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--ink); }
.performance-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.performance-heading p { margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat-card { min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.stat-card:last-child { border: 0; }
.stat-label { color: var(--muted); font-size: .8125rem; }
.stat-card > strong { font: 600 1.875rem/1.25 var(--number); font-variant-numeric: tabular-nums; margin: 8px 0 6px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.stat-card > small { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.stat-card i { font-style: normal; font-weight: 400; color: var(--muted); font-size: .72em; }
.kda-stat > strong { font-size: 1.5rem; white-space: normal; padding-top: 4px; }
.stats-grid > .loading-state, .stats-grid > .notice { grid-column: 1/-1; min-height: 129px; margin: 0; }
.hero-overview-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 28px; padding-top: 28px; }
.popular-item-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.popular-item { display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.popular-item:last-child { border: 0; }
.popular-item:hover { background: var(--hover); }
.item-icon { width: 44px; height: 44px; object-fit: contain; border-radius: 7px; padding: 4px; background: var(--inset); flex: none; }
.item-icon.weapon, .item-chip.weapon, .shop-item.weapon .shop-item-image { background: #ffd18d; }
.item-icon.vitality, .item-chip.vitality, .shop-item.vitality .shop-item-image { background: #d3fc96; }
.item-icon.spirit, .item-chip.spirit, .shop-item.spirit .shop-item-image { background: #e7c8ff; }
.item-name { flex: 1; min-width: 0; }
.item-name strong { display: block; font-size: .9375rem; font-weight: 600; }
.item-name small, .item-win small { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.item-win { text-align: right; flex: none; }
.item-win strong { font: 500 1rem var(--number); }
.hero-basics { min-width: 0; }
.hero-basics > h2 { margin: 0 0 16px; min-height: 44px; display: flex; align-items: center; }
.base-stats { margin: 0 0 12px; padding: 6px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.base-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.base-stats > div:last-child { border: 0; }
.base-stats dt { font-size: .875rem; color: var(--muted); }
.base-stats dd { margin: 0; font: 500 1rem var(--number); }
.base-stats small { font: .75rem var(--body); color: var(--muted); }
.hero-basics .button { width: 100%; }
.abilities-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.ability-card { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.ability-card:last-child { border: 0; }
.ability-card > div:last-child { flex: 1; min-width: 0; }
.ability-icon { width: 52px; height: 52px; flex: none; position: relative; border-radius: 8px; padding: 8px; background: #303034; }
.ability-icon img { width: 100%; height: 100%; object-fit: contain; }
.ability-icon > span { position: absolute; right: -5px; bottom: -5px; border: 2px solid var(--surface); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--ink); color: var(--surface); font: 600 .75rem var(--number); }
.ability-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.ability-heading span { font-size: .8125rem; color: var(--muted); }
.ability-card p { color: var(--muted); font-size: .9375rem; line-height: 1.65; max-width: 85ch; }
.ability-card .text-link { margin-top: 6px; }
.hero-lore { margin-top: 28px; max-width: 80ch; }
.hero-lore p { color: var(--muted); font-size: .9375rem; line-height: 1.7; margin-top: 12px; }

/* Media stays in a conventional collection; each clip is one button. */
.video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 24px; }
.video-card { min-width: 0; }
.video-choice { padding: 0; width: 100%; text-align: left; display: block; border-radius: 9px; }
.video-cover { display: block; position: relative; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: #202024; }
.video-cover > img { width: 100%; height: 100%; object-fit: cover; }
.play-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #1d1d1f; }
.play-badge svg { width: 20px; height: 20px; margin-left: 2px; stroke: none; }
.video-cover .play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.video-choice:hover .play-badge { background: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 25%); }
.video-duration { position: absolute; bottom: 8px; right: 8px; border-radius: 4px; padding: 3px 6px; background: rgb(0 0 0 / 80%); color: #fff; font: 500 .75rem var(--number); }
.video-card-meta { display: block; padding: 12px 0 0; }
.video-title { display: block; font-size: 1rem; font-weight: 600; }
.video-subtitle, .video-credit { display: block; font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.shop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.shop-item { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.shop-item:hover { background: var(--hover); }
.shop-item-image { width: 44px; height: 44px; border-radius: 7px; flex: none; padding: 5px; display: grid; place-items: center; }
.shop-item-image img { max-width: 100%; max-height: 100%; }
.shop-item-label { flex: 1; min-width: 0; }
.shop-item-label strong { display: block; font-size: .9375rem; font-weight: 600; }
.shop-item-label small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 3px; }
.shop-item > svg { width: 16px; color: var(--muted); }

/* Match records are aligned rows; details are disclosed on request. */
.profile-heading { display: flex; align-items: center; gap: 20px; padding: 12px 0 32px; }
.player-avatar { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; flex: none; }
.profile-title { min-width: 0; }
.profile-title h1 { font-size: 2rem; margin-bottom: 6px; }
.steam-link { color: var(--tint); font-size: .8125rem; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.steam-link > span { color: var(--muted); }
.profile-status { margin-left: auto; display: flex; align-items: flex-end; flex-direction: column; color: var(--muted); font-size: .8125rem; }
.profile-status > small { font-size: .75rem; margin-top: 3px; }
.profile-status .text-link { min-height: 44px; }
.status-dot { display: none; }
.player-content { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 28px; margin-top: 28px; }
.match-history { min-width: 0; }
.match-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.match-columns, .match-row { display: grid; grid-template-columns: minmax(0,1.65fr) .8fr 1.15fr .65fr .55fr 44px; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; width: 100%; }
.match-columns { font-size: .75rem; color: var(--muted); background: var(--background); }
.match-entry + .match-entry { border-top: 1px solid var(--line); }
.match-row { min-height: 80px; }
.match-row:hover, .match-row[aria-expanded=true] { background: var(--hover); }
.match-hero { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-hero > span { min-width: 0; }
.hero-avatar { width: 40px; height: 48px; object-fit: cover; object-position: top; border-radius: 6px; background: var(--inset); flex: none; }
.match-hero strong { display: block; font-size: .875rem; font-weight: 600; }
.match-hero small { display: block; font-size: .75rem; color: var(--muted); margin-top: 3px; }
.outcome { font-size: .8125rem; font-weight: 600; }
.outcome.win { color: var(--positive); }
.outcome.loss { color: var(--negative); }
.match-kda, .match-souls, .match-duration { font: 500 .875rem var(--number); }
.match-kda i { font-style: normal; color: var(--muted); }
.row-chevron { --disclosure-edge:color-mix(in srgb,var(--muted) 65%,var(--surface)); --disclosure-fill:color-mix(in srgb,var(--ink) 5%,var(--surface)); position:relative; isolation:isolate; display:grid; place-items:center; width:44px; height:44px; justify-self:end; color:var(--ink); }
.row-chevron::before,.row-chevron::after { content:""; position:absolute; z-index:-1; pointer-events:none; }
.row-chevron::before { inset:6px; background:var(--disclosure-edge); clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px); }
.row-chevron::after { inset:7px; background:var(--disclosure-fill); clip-path:polygon(3px 0,calc(100% - 3px) 0,100% 3px,100% calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,0 calc(100% - 3px),0 3px); }
.row-chevron svg { display:block; width:20px; height:20px; transition:transform 120ms ease; }
.match-row:is(:hover,:focus-visible,[aria-expanded=true]) .row-chevron { --disclosure-edge:color-mix(in srgb,#e2d3b1 65%,var(--surface)); --disclosure-fill:color-mix(in srgb,#e2d3b1 13%,var(--surface)); }
.match-row[aria-expanded=true] .row-chevron svg { transform:rotate(180deg); }
@media(prefers-reduced-motion:reduce) { .row-chevron svg { transition:none; } }
@media(forced-colors:active) { .row-chevron { color:ButtonText; } .row-chevron::before { background:ButtonText; forced-color-adjust:none; } .row-chevron::after { background:Canvas; forced-color-adjust:none; } }
.mobile-label { display: none; }
.most-played h2 { min-height: 26px; margin: 0 0 16px; }
.played-hero { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; }
.played-hero:first-of-type { border-radius: 10px 10px 0 0; }
.played-hero:last-of-type { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.played-hero:only-of-type { border-radius: 10px; }
.played-hero:hover { background: var(--hover); }
.played-hero > span:first-of-type { flex: 1; min-width: 0; }
.played-hero > span:last-of-type { text-align: right; }
.played-hero strong { display: block; font-size: .875rem; font-weight: 600; }
.played-hero small { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.match-detail { padding: 20px; border-top: 1px solid var(--line); background: var(--background); }
.detail-heading { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-heading h3 { font-size: .875rem; }
.detail-heading > span { color: var(--muted); font-size: .8125rem; }
.recorded-build { margin-bottom: 20px; }
.recorded-build .eyebrow { margin-bottom: 10px; }
.item-list { display: flex; flex-wrap: wrap; gap: 8px; }
.item-chip { width: 44px; height: 44px; padding: 5px; border-radius: 7px; }
.item-chip img { width: 100%; height: 100%; object-fit: contain; }
.scoreboard-scroll { overflow-x: auto; }
.scoreboard { border-collapse: collapse; width: 100%; font-size: .8125rem; text-align: left; white-space: nowrap; }
.scoreboard th, .scoreboard td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.scoreboard thead th { color: var(--muted); font-size: .75rem; font-weight: 500; }
.scoreboard th:not(:first-child), .scoreboard td:not(:first-child) { text-align: right; }
.scoreboard td:first-child > a:first-child { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.tiny-avatar { width: 24px; height: 28px; object-fit: cover; border-radius: 4px; }
.scoreboard .team-label th { background: var(--inset); font-weight: 600; }
.team-label span { font-weight: 400; color: var(--muted); }
.your-row td { background: var(--tint-soft); }
.you-tag { margin-left: 8px; font-size: .75rem; color: var(--tint); }
.player-id-link { color: var(--tint); font-size: .75rem; margin-left: 10px; display: inline-flex; align-items: center; min-height: 44px; }
.scoreboard a:hover { text-decoration: underline; }

/* Standard feedback and contained dialogs. */
.loading-state { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 180px; padding: 32px 20px; color: var(--muted); font-size: .9375rem; text-align: center; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--muted); border-radius: 50%; display: inline-block; flex: none; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 18px 20px; font-size: .9375rem; margin: 16px 0; }
.empty-state { grid-column: 1/-1; padding: 56px 24px; text-align: center; width: 100%; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--ink); margin-bottom: 8px; }
.empty-state p { max-width: 52ch; font-size: .9375rem; line-height: 1.6; margin: 0 auto; }
.empty-state .button { margin-top: 20px; }
.empty-icon { display: grid; place-items: center; color: var(--muted); font-size: 2rem; width: 44px; height: 44px; margin: 0 auto 16px; }
.error-page { padding-top: 64px; padding-bottom: 64px; }
.error-page p { color: var(--muted); margin: 16px 0 24px; }
.error-page .button { margin-right: 10px; margin-bottom: 10px; }
.image-failed { opacity: .3; object-fit: contain !important; }
.image-placeholder { display: grid; place-items: center; color: var(--muted); background: var(--inset); }
dialog { width: calc(100% - 40px); max-width: 900px; max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 25%); overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / 48%); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.dialog-heading h2 { margin-top: 4px; font-size: 1.25rem; }
.dialog-heading .icon-button { background: var(--inset); border-radius: 50%; }
dialog video { display: block; width: 100%; max-height: 60dvh; aspect-ratio: 16/9; background: #000; object-fit: contain; color-scheme: dark; }
.dialog-caption { padding: 20px 24px; font-size: .9375rem; line-height: 1.6; }
.dialog-caption small { display: block; font-size: .8125rem; color: var(--muted); margin-top: 12px; }
.video-error { color: var(--negative); margin-top: 12px; }
#item-dialog { max-width: 550px; }
#item-dialog .dialog-heading { border-bottom: 1px solid var(--line); }
.item-dialog-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.item-dialog-title .item-icon { width: 56px; height: 56px; }
.property-list { margin: 20px 0 0; }
.property-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.property-list dt { color: var(--muted); }
.property-list dd { margin: 0; text-align: right; font-weight: 600; }
.site-footer { width: calc(100% - 80px); max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); padding: 20px 0 24px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .75rem; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .header-inner { gap: 32px; padding: 0 28px; }
  .page { padding-left: 28px; padding-right: 28px; }
  .hero-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 24px 16px; }
  .filter-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .stat-card { padding: 20px; }
  .stat-card > strong { font-size: 1.75rem; }
  .kda-stat > strong { font-size: 1.375rem; }
  .player-content { grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
  .match-columns, .match-row { gap: 8px; padding: 12px; grid-template-columns: minmax(0,1.4fr) .7fr 1fr .65fr 44px; }
  .match-duration, .match-columns > span:nth-child(5) { display: none; }
  .match-hero { gap: 8px; }
  .played-hero { padding: 12px; }
  .site-footer { width: calc(100% - 56px); }
}
@media (max-width: 850px) {
  .main-nav { margin-left: auto; }
  .main-nav a { padding: 8px 12px; }
  .brand > span { display: none; }
  .hero-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-card > strong { font-size: 1.875rem; }
  .kda-stat > strong { font-size: 1.625rem; }
  .hero-overview-grid { grid-template-columns: minmax(0,1.4fr) minmax(220px,1fr); gap: 24px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-content { grid-template-columns: 1fr; }
  .player-aside { margin-top: 8px; }
  .match-columns, .match-row { grid-template-columns: minmax(0,1.6fr) .8fr 1.1fr .7fr .6fr 44px; }
  .match-duration, .match-columns > span:nth-child(5) { display: block; }
  .filter-period { max-width: 230px; text-align: right; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .site-header { backdrop-filter: none; }
  .header-inner { justify-content: center; min-height: 56px; padding: 0 20px; }
  .brand { gap: 10px; }
  .brand img { width: 122px; }
  .brand > span { display: block; padding-left: 10px; font-size: .8125rem; }
  .main-nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); display: flex; gap: 4px; background: var(--chrome); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
  .main-nav a { flex: 1; flex-direction: column; gap: 3px; min-height: 54px; padding: 6px; font-size: .75rem; border-radius: 8px; }
  .main-nav svg { display: block; width: 21px; height: 21px; }
  .page { padding-left: 20px; padding-right: 20px; }
  .page-heading { padding: 28px 0 24px; }
  .page-heading h1 { font-size: 1.875rem; }
  .page-heading p { font-size: .9375rem; }
  .lookup-page { padding-top: 36px; padding-bottom: 36px; }
  .lookup-content .page-heading { padding-bottom: 24px; }
  .lookup-content .page-heading h1 { font-size: 2.5rem; }
  .lookup-content .page-heading p { font-size: 1rem; max-width: 32ch; margin: auto; }
  .lookup-box form { padding: 20px; }
  .lookup-box label { font-size: .875rem; }
  .lookup-controls { flex-direction: column; gap: 12px; }
  .lookup-controls > .button { width: 100%; }
  .player-field input { min-height: 56px; font-size: 1rem; }
  .lookup-controls > .button { min-height: 52px; }
  .search-results-heading, .profile-result { padding-left: 20px; padding-right: 20px; }
  .profile-result small { font-size: .75rem; }
  .filter-search { min-width: 0; max-width: none; flex-basis: 100%; }
  .filter-actions { width: 100%; justify-content: space-between; align-items: center; }
  .filter-period { max-width: 55%; font-size: .75rem; }
  .filter-actions label { gap: 8px; font-size: .8125rem; }
  select { padding-left: 10px; padding-right: 8px; }
  .result-heading { font-size: .75rem; }
  .result-heading > span:last-child { text-align: right; max-width: 65%; }
  .hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
  .hero-art { aspect-ratio: 280/290; }
  .hero-card-info h3 { font-size: 1rem; }
  .back-link { margin: 8px 0; }
  .hero-masthead-inner { grid-template-columns: 72px minmax(0,1fr); gap: 6px 16px; padding-top: 4px; padding-bottom: 12px; }
  .hero-masthead-art { width: 72px; height: 96px; }
  .hero-description { flex: 1; }
  .hero-description h1 { font-size: 1.875rem; }
  .hero-description > .eyebrow { font-size: .75rem; }
  .hero-description > .hero-role { font-size: .9375rem; line-height: 1.4; }
  .hero-description > p { font-size: .875rem; }
  .hero-traits { gap: 8px 16px; font-size: .75rem; margin-top: 12px; }
  .section-tabs { gap: 28px; margin-bottom: 24px; }
  .section-tabs button { font-size: .875rem; min-height: 52px; }
  .performance-heading { align-items: flex-start; gap: 12px; }
  .performance-heading h2 { font-size: 1.125rem; }
  .performance-heading > div:first-child { flex: 1; min-width: 145px; }
  .performance-heading p { font-size: .75rem; }
  .performance-heading .segmented { margin-left: auto; }
  .segmented > button, .segmented > a { font-size: .8125rem; padding: 8px 12px; }
  .stat-card { padding: 18px 16px; }
  .stat-card > strong { font-size: 1.75rem; }
  .stat-card > small { font-size: .75rem; }
  .kda-stat > strong { font-size: 1.375rem; }
  .stat-label { font-size: .75rem; }
  .hero-overview-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .section-heading { gap: 12px; margin-bottom: 12px; }
  .section-heading h2 { font-size: 1.125rem; }
  .section-heading .text-link { font-size: .8125rem; }
  .hero-basics > h2 { min-height: 0; margin-bottom: 12px; font-size: 1.125rem; }
  .popular-item { padding: 12px; }
  .item-name strong { font-size: .875rem; }
  .video-grid { grid-template-columns: 1fr; gap: 24px; }
  .video-title { font-size: 1rem; }
  .video-subtitle { font-size: .8125rem; }
  .ability-card { padding: 20px 16px; gap: 14px; }
  .ability-icon { width: 44px; height: 44px; padding: 7px; }
  .ability-card p { font-size: .875rem; }
  .ability-heading span { font-size: .75rem; }
  .ability-card .text-link { font-size: .8125rem; }
  .shop-grid { grid-template-columns: 1fr; }
  .mode-segments, .item-segments { display: none; }
  .compact-selector { display: block; max-width: 100%; }
  .compact-selector select { max-width: 100%; min-height: 44px; font-size: .9375rem; }
  .performance-heading .compact-selector { margin-left: auto; }
  .item-segments > button { padding: 8px; }
  .profile-heading { flex-wrap: wrap; gap: 16px; padding: 8px 0 24px; }
  .player-avatar { width: 60px; height: 60px; }
  .profile-title { flex: 1; }
  .profile-title h1 { font-size: 1.75rem; }
  .steam-link > span { display: none; }
  .profile-status { flex-basis: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
  .profile-status .text-link { margin-left: auto; }
  .player-page .performance-heading .segmented { width: 100%; }
  .player-content { margin-top: 24px; }
  .match-columns { display: none; }
  .match-row { grid-template-columns: minmax(0,1fr) .58fr .9fr 44px; gap: 6px; padding: 12px 10px; }
  .match-souls, .match-duration { display: none; }
  .hero-avatar { width: 32px; height: 40px; }
  .match-hero { gap: 8px; }
  .match-hero strong { font-size: .8125rem; }
  .match-hero small { font-size: .75rem; }
  .outcome { font-size: .75rem; }
  .match-kda { font-size: .875rem; text-align: right; }
  .mobile-label { display: block; color: var(--muted); font: 400 .75rem var(--body); margin-bottom: 4px; }
  .match-detail { padding: 16px 12px; }
  .scoreboard { font-size: .75rem; }
  .scoreboard th, .scoreboard td { padding: 8px 6px; }
  .player-id-link { display: flex; margin: 0; padding-left: 30px; }
  .you-tag { display: block; margin-left: 30px; }
  .played-hero .hero-avatar { width: 40px; height: 48px; }
  .site-footer { width: calc(100% - 40px); flex-direction: column; gap: 6px; padding: 20px 0; }
  dialog { width: calc(100% - 24px); max-height: 94dvh; border-radius: 12px; }
  .dialog-heading { padding: 16px; gap: 12px; }
  .dialog-heading h2 { font-size: 1.125rem; }
  .dialog-heading .eyebrow { font-size: .75rem; }
  .dialog-caption { padding: 16px; font-size: .875rem; }
  .item-dialog-title { gap: 10px; }
  .item-dialog-title .item-icon { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .lookup-box form { padding: 16px; }
  .hero-masthead-art { width: 58px; height: 80px; }
  .hero-masthead-inner { grid-template-columns: 58px minmax(0,1fr); gap: 6px 12px; }
  .stat-card { padding: 16px 12px; }
  .kda-stat > strong { font-size: 1.1875rem; }
  .match-hero .hero-avatar { display: none; }
  .match-kda { font-size: .8125rem; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --background: #141416; --surface: #202023; --control-selected: #48484e; --inset: #2c2c30; --hover: #2b2b2f; --ink: #f5f5f7; --muted: #b1b1b8; --line: #3b3b41; --tint: #80cba5; --tint-hover: #a3ddbe; --tint-soft: #253c30; --positive: #80cba5; --negative: #ff9991; --chrome: rgb(28 28 30 / 94%); --shadow: 0 1px 3px rgb(0 0 0 / 20%); }
  .brand img { filter: none; }
  .button.primary { color: #10251a; }
  .player-field { border-color: #66666e; }
  .lookup-backdrop { opacity: .3; }
}
@media (prefers-contrast: more) {
  :root { --muted: #454549; --line: #88888f; --chrome: var(--surface); }
}
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root { --muted: #e1e1e6; --line: #94949e; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .main-nav { background: var(--surface); backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .lookup-backdrop { display: none; }
  .brand img { filter: none; }
  .button, .main-nav a[aria-current=page], .segmented, .section-tabs button[aria-selected=true] { border: 1px solid ButtonText; }
}


@media (max-width: 1000px) { .home-heroes .hero-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
 .lookup-backdrop { height: 460px; }
 .home-heroes .hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .home-heroes .hero-art { height: calc(145cqw + 1.0475rem + 5.6px); }
}

/* The still and animation share the exact first-frame camera and rendering. */
.hero-section-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.toon-card-canvas,.toon-card-still{position:absolute;inset:-4px -5px;width:calc(100% + 10px);height:calc(100% + 8px);display:block;pointer-events:none;background:transparent}
.hero-art > img.hero-rest-poster{position:absolute;z-index:1;inset:-4px -5px;width:calc(100% + 10px);height:calc(100% + 8px);max-width:none;object-fit:fill;object-position:center;transition:none}
/* The cached native first frame stays visible at rest and beneath the hover fade. */
.home-heroes .hero-art.has-toon-model > img.hero-rest-poster{visibility:visible}
/* The poster already contains its backdrop; avoid a second image flashing first. */
.home-heroes .hero-art{background-image:none}
.home-heroes .toon-card-still{display:none}
.toon-card-still{z-index:1;opacity:0}
.hero-art.has-toon-model .toon-card-still{opacity:1}
.hero-art.has-toon-model>img{visibility:hidden}
.toon-card-canvas{z-index:2;opacity:0;transition:opacity 450ms ease-in-out!important}
/* The full colored frame crossfades as one layer over the resting frame. */
.hero-art.has-toon-model.is-toon-active .toon-card-canvas{opacity:1;transition-duration:350ms!important}
.hero-art.has-toon-model .hero-card-cta{z-index:3}
.home-heroes .hero-art.has-toon-model>img{transform:none}
@media(max-width:700px){.home-heroes .section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.hero-section-actions{gap:16px}}

/* Optional alignment guides for reviewing the portrait composition. */
.toon-framing-guides{position:absolute;inset:0;z-index:3;pointer-events:none}
.toon-framing-guides::before{content:"";position:absolute;top:0;bottom:0;left:8%;right:8%;border-left:1px solid rgb(255 255 255 / 45%);border-right:1px solid rgb(255 255 255 / 45%)}
.toon-framing-guides::after{content:"";position:absolute;top:40%;left:0;right:0;border-top:1px solid rgb(255 255 255 / 45%)}

/* Fresh Abrams starts immediately on identical pixels; exit/re-hover retain fades. */
.hero-art.has-toon-model.is-toon-active.is-toon-fresh .toon-card-canvas{transition-duration:350ms!important}

/* Hero detail: stable controls, readable statistics, and one spacing rhythm. */
.hero-page .hero-content { padding-bottom: 56px; }
.hero-page .section-tabs { margin-bottom: 16px; }
.hero-page .section-tabs button { min-height: 44px; padding: 10px 0; }
.hero-page .performance-heading { align-items: center; gap: 12px 24px; }
.hero-page .performance-heading > div:first-child { min-width: 0; }
.hero-page .performance-heading .segmented { flex: none; }
.hero-page .hero-stats .stat-card { gap: 8px; padding: 20px; }
.hero-page .hero-stats .stat-label { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.hero-page .hero-stats .stat-card > strong { margin: 0; min-height: 38px; display: flex; align-items: baseline; white-space: nowrap; overflow-wrap: normal; }
.hero-page .hero-stats .kda-stat > strong { padding-top: 0; font-size: 1.5rem; gap: 5px; }
.hero-page .hero-stats .stat-card > small { margin-top: auto; font-size: .8125rem; }
.hero-page .hero-playstyle { margin: 24px 0 0; }
.hero-page .hero-overview-grid { padding-top: 32px; gap: 32px; align-items: start; }
.hero-page .hero-overview-grid .section-heading { min-height: 52px; margin-bottom: 12px; }
.hero-page .hero-overview-grid .section-heading p { color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.hero-page .hero-basics > h2 { min-height: 52px; margin-bottom: 12px; }
.hero-page .popular-item { min-height: 76px; }
.hero-page .popular-item .item-name strong { overflow-wrap: anywhere; }
.hero-page .popular-item .item-win { min-width: 62px; }
.hero-page .base-stats { padding: 4px 20px; margin-bottom: 0; }
.hero-page .hero-video-section .empty-state { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 36px 24px; }
@media (max-width: 1000px) {
 .hero-page .hero-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .hero-page .hero-stats .stat-card:nth-child(2) { border-right: 0; }
 .hero-page .hero-stats .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
 .hero-page .hero-content { padding-bottom: 32px; }
 .hero-page .performance-heading { gap: 12px; }
 .hero-page .hero-stats .stat-card { padding: 16px; gap: 6px; }
 .hero-page .hero-stats .stat-label { font-size: .8125rem; }
 .hero-page .hero-stats .stat-card > small { font-size: .75rem; }
 .hero-page .hero-stats .kda-stat > strong { font-size: 1.125rem; gap: 3px; }
 .hero-page .hero-overview-grid { gap: 28px; padding-top: 28px; }
 .hero-page .hero-playstyle { margin-top: 24px; }
 .hero-page .popular-item { padding: 12px; min-height: 72px; }
}
@media (max-width: 360px) {
 .hero-page .hero-stats .stat-card { padding: 14px 12px; }
 .hero-page .hero-stats .kda-stat > strong { font-size: 1rem; gap: 2px; }
}

@media (max-width: 600px) {
 .hero-page .hero-description h1 { font-size: 1.625rem; }
 .hero-page .hero-traits { margin-top: 8px; }
}

/* Hero frames: warm ivory, sloped cuts and sparse chips from the official art. */
.hero-masthead-art { position: relative; }
.home-heroes .hero-art, .hero-masthead-art {
  --hero-frame: url("/assets/hero-frames/frame-1.svg");
  --hero-frame-outline: polygon(0 0, 100% 2.647%, 100% 99.118%, 0 100%);
  border-radius: 0;
  clip-path: var(--hero-frame-outline);
}
.home-heroes .hero-art::after, .hero-masthead-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: #e4e0ce;
  -webkit-mask: var(--hero-frame) center / 100% 100% no-repeat;
  mask: var(--hero-frame) center / 100% 100% no-repeat;
}
.home-heroes .hero-card:nth-child(6n + 2) .hero-art { --hero-frame: url("/assets/hero-frames/frame-2.svg"); --hero-frame-outline: polygon(0% 2.353%, 100% 0.000%, 100% 100.000%, 0% 98.529%); }
.home-heroes .hero-card:nth-child(6n + 3) .hero-art { --hero-frame: url("/assets/hero-frames/frame-3.svg"); --hero-frame-outline: polygon(0% 0.000%, 100% 1.765%, 100% 98.529%, 0% 100.000%); }
.home-heroes .hero-card:nth-child(6n + 4) .hero-art { --hero-frame: url("/assets/hero-frames/frame-4.svg"); --hero-frame-outline: polygon(0% 2.059%, 100% 0.000%, 100% 100.000%, 0% 97.647%); }
.home-heroes .hero-card:nth-child(6n + 5) .hero-art { --hero-frame: url("/assets/hero-frames/frame-5.svg"); --hero-frame-outline: polygon(0% 1.176%, 100% 0.000%, 100% 99.118%, 0% 100.000%); }
.home-heroes .hero-card:nth-child(6n + 6) .hero-art { --hero-frame: url("/assets/hero-frames/frame-6.svg"); --hero-frame-outline: polygon(0% 0.000%, 100% 1.471%, 100% 100.000%, 0% 98.235%); }

/* Roster images match the native first frame without a separate zoom. */
.roster-page .hero-card:is(:hover,:focus-visible) .hero-art > img{transform:none}

/* Native game backdrops remain visible while the rig loads. */
.hero-art{background-color:#262a2d;background-image:none;background-size:cover;background-position:center;}

/* Center the desktop landing content and give the hero row more presence. */
@media (min-width:1001px){
 .lookup-page{display:flex;align-items:center;min-height:calc(100svh - 68px);padding:clamp(48px,8svh,96px) 0 clamp(40px,6svh,72px)}
 .lookup-page>.page{width:100%;max-width:1480px;flex:0 1 1480px}
}

/* One search control, with its label available to assistive technology. */
.lookup-content{max-width:760px;margin-bottom:56px}
.lookup-content .page-heading{padding-bottom:24px}
.lookup-content .page-heading h1{margin-bottom:0}
.cliplock-home-logo{width:clamp(240px,32vw,440px);height:auto;aspect-ratio:640/114;margin:0 auto;filter:brightness(0)}
@media(prefers-color-scheme:dark){.cliplock-home-logo{filter:none}}
.lookup-content .lookup-box{background:transparent;border:0;box-shadow:none}
.lookup-content .lookup-box form{padding:0}
.lookup-content .lookup-box label.sr-only{margin:-1px}
.lookup-content .lookup-controls{flex-direction:row;gap:0;align-items:center;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.lookup-content .lookup-controls:focus-within{outline:2px solid var(--tint);outline-offset:3px}
.lookup-content .player-field{border:0;background:transparent;padding-left:12px}
.lookup-content .player-field:focus-within{outline:none}
.lookup-content .player-field input{min-height:52px;padding:12px 0;font-size:1.125rem}
.lookup-content .search-submit{width:44px;height:44px;margin-left:8px;border-radius:8px;background:var(--tint);color:var(--background)}
.lookup-content .search-submit:hover{background:var(--tint-hover)}
.lookup-content .search-results:not(:empty){margin-top:12px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
@media(max-width:700px){.lookup-content .player-field input{font-size:1rem}.lookup-content{margin-bottom:40px}}

/* Hero overview: identity and base stats above, inventory and item context below. */
.hero-page .hero-masthead-inner { grid-template-columns: 144px minmax(0,1fr) 224px; gap: 12px 24px; padding-top: 24px; padding-bottom: 20px; }
.hero-page .hero-masthead-art { width: 144px; height: 192px; grid-row: 1; }
.hero-page .hero-description { grid-row: 1; }
.hero-page .hero-description > .back-link { display: inline-flex; min-height: 28px; margin: 0 0 8px; font-size: .8125rem; }
.hero-page .hero-description h1 { font-size: 2.5rem; }
.hero-page .hero-header-basics { grid-column: 3; grid-row: 1; align-self: start; min-width: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.hero-header-basics h2 { margin: 0; padding: 10px 12px 4px; font: 600 .75rem/1.4 var(--body); color: var(--muted); }
.hero-base-grid { display: grid; gap: 0; margin: 0; padding: 0 8px 8px; }
.hero-base-grid > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 30px; padding: 4px; border-bottom: 1px solid var(--line); }
.hero-base-grid > div:last-child { border-bottom: 0; }
.hero-base-grid dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.hero-base-grid dt::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; mask: var(--base-stat-icon) center/contain no-repeat; }
.hero-base-grid > div:nth-child(1) { --base-stat-icon: url('/assets/game-ui/properties/health.svg'); }
.hero-base-grid > div:nth-child(2) { --base-stat-icon: url('/assets/game-ui/properties/move_speed.svg'); }
.hero-base-grid > div:nth-child(3) { --base-stat-icon: url('/assets/game-ui/properties/move_stamina.svg'); }
.hero-base-grid > div:nth-child(4) { --base-stat-icon: url('/assets/game-ui/properties/health_regen.svg'); }
.hero-base-grid dd { margin: 0; font: 600 1rem/1.3 var(--number); white-space: nowrap; }
.hero-base-grid small { font: 400 .6875rem var(--body); color: var(--muted); }
@media (prefers-color-scheme:dark) { .hero-page .hero-header-basics { background: #191b1e; border-color: #ffffff17; } .hero-base-grid > div { border-color: #ffffff0c; } }
.hero-ability-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-ability-shortcuts button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.hero-ability-shortcuts button:hover { background: var(--hover); }
.hero-ability-shortcuts img { width: 100%; height: 100%; object-fit: contain; }
.hero-ability-shortcuts span { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 3px; background: var(--background); font: 500 .625rem/16px var(--number); text-align: center; }
.hero-view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.hero-page .hero-view-toolbar .section-tabs { flex: 1; margin: 0; border: 0; }
.hero-page #hero-range { display:inline-grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-columns:auto; gap:2px; padding:2px; min-width:172px; border:5px solid transparent; border-image:url('/assets/ui-controls/charcoal-frame.svg') 8 fill / 5px / 0 stretch; border-radius:0; background:transparent; }
.hero-page #hero-range button { min-width:0; min-height:44px; padding:6px 12px; border-radius:0; font-size:.8125rem; color:#b5b4bb; transition:background-color .12s ease,color .12s ease; clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px); }
.hero-page #hero-range button:hover { background:#ffffff0a; color:#f5f5f7; }
.hero-page #hero-range button[aria-pressed=true] { background:#414247; box-shadow:inset 0 1px 0 #ffffff12,0 1px 2px #0003; color:#f5f5f7; font-weight:600; }
.hero-page #hero-range button:focus-visible { outline:0; box-shadow:inset 0 0 0 2px var(--tint); }
.performance-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.performance-context h2 { font-size: 1rem; margin-bottom: 4px; }
.performance-context { margin: 16px 0 12px; }
.performance-context p { color: var(--muted); font-size: .75rem; }
.hero-page .hero-stats { --ink:#f5f5f7; --muted:#b5b4bb; --line:#ffffff13; color:var(--ink); background:transparent; border:6px solid transparent; border-image:url('/assets/ui-controls/charcoal-frame.svg') 8 fill / 6px / 0 stretch; border-radius:0; overflow:hidden; }
.hero-page .hero-stats .stat-card { padding:12px 14px; gap:7px; }
.hero-page .hero-stats .stat-card:first-child { padding-left:14px; }
.hero-page .hero-stats .stat-card:last-child { padding-right:14px; }
.hero-page .hero-stats .stat-card > small:empty { display: none; }
.hero-page .hero-stats .stat-card > strong { min-height: 34px; }
.hero-page .hero-overview-grid { grid-template-columns: minmax(0,2fr) minmax(300px,1fr); padding-top: 24px; gap: 24px; align-items: start; }
.hero-page .hero-overview-grid .section-heading { min-height: 40px; margin-bottom: 16px; }
.hero-page .hero-overview-grid .section-heading h2 { font-size: 1.125rem; }
/* Native catalog paper gives the inventory the identity of the in-game shop. */
.hero-page .popular-items { --ink: #fbf2e4; --muted: #ead6b9; --tint: #fbf2e4; --tint-hover: #fff; --line: #e8c69b55; --background: #58412d; color:var(--ink); padding: 20px; background-color: #a47745; background-image: url('/assets/shop/catalog-paper.webp'); background-size: cover; background-position: center; background-blend-mode: multiply; border: 1px solid #d6a05a80; border-top: 3px solid #dc9f50; border-radius: 5px; }
.hero-page .popular-items .section-heading h2 { font-family: var(--display); font-size: 1.3rem; letter-spacing: .01em; }
.hero-item-context { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid #ad8357; border-radius: 5px; }
.hero-item-context .section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
/* Native PrimaryButton frame and DropDownNew arrow/paper, adapted for web controls. */

.choice-control { max-width:100%; }
.choice-control > button.choice-trigger, .button.primary {
 position:relative; isolation:isolate; min-height:44px; border:8px solid transparent;
 border-image:url('/assets/ui-controls/button-frame.svg') 20 fill / 8px / 0 stretch;
 border-radius:0; background:transparent; color:#24211b; padding:2px 10px; font-weight:700;
 box-shadow:0 2px 0 #14120d45; transition:filter .12s ease;
}
.choice-control > button.choice-trigger { display:inline-flex; align-items:center; justify-content:space-between; text-align:left; min-height:44px; min-width:154px; gap:16px; font-size:.875rem; line-height:1.2; }
.choice-control > button.choice-trigger:hover, .choice-control > button.choice-trigger[aria-expanded=true], .button.primary:hover { background:transparent; border-color:transparent; filter:brightness(1.06); }
.choice-control > button.choice-trigger:active, .button.primary:active { opacity:1; filter:brightness(.94); }
.choice-control > button.choice-trigger > svg { display:none; }
.choice-control > button.choice-trigger::after { content:""; flex:none; width:18px; height:18px; background:currentColor; mask:url('/assets/ui-controls/dropdown-arrow.svg') center/contain no-repeat; transition:transform .12s ease; }
.choice-control > button.choice-trigger[aria-expanded=true]::after { transform:rotate(180deg); }
.choice-control > button.choice-trigger::before, .button.primary::before { content:""; position:absolute; inset:3px; z-index:-1; pointer-events:none; background:url('/assets/ui-controls/paper.webp') center/256px repeat; mix-blend-mode:multiply; opacity:.055; clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px); }
.choice-control > button.choice-trigger > span { position:relative; white-space:nowrap; }
.button.primary { font-family:var(--display); font-size:1.0625rem; line-height:1.2; }
.choice-control > div.choice-menu { position:fixed; inset:auto; margin:0; width:max-content; min-width:190px; max-width:calc(100vw - 24px); z-index:50; background:linear-gradient(#2e2c27ed,#2e2c27ed),url('/assets/ui-controls/paper.webp') center/256px repeat; color:#ffefd7; border:1px solid #756c5c; border-radius:4px; padding:6px; box-shadow:0 8px 28px #0007; max-height:calc(100dvh - 24px); overflow-y:auto; }
.choice-control > div.choice-menu button { display:flex; align-items:center; width:100%; text-align:left; position:relative; min-height:44px; padding:10px 12px; border-radius:2px; font-size:.875rem; font-weight:600; gap:10px; color:inherit; }
.choice-menu::backdrop { background:transparent; }
.choice-control > div.choice-menu button svg { width:14px; height:14px; opacity:0; }
.choice-control > div.choice-menu button[aria-checked=true] svg { opacity:1; }
.choice-control > div.choice-menu button[aria-checked=true] { background:#e7dcc7; color:#24211b; }
.choice-control > div.choice-menu button:is(:hover,:focus-visible) { background:#ffefd71a; color:#ffefd7; outline:0; }
.choice-control > div.choice-menu button[aria-checked=true]:is(:hover,:focus-visible) { background:#f2e6d1; color:#24211b; }
.choice-control > div.choice-menu button:focus-visible { box-shadow:inset 0 0 0 1px #ffefd77d; }
.choice-control > div.choice-menu button[aria-checked=true]:focus-visible { box-shadow:inset 0 0 0 1px #24211b55; }

/* Compact native selects keep the same visual language and OS keyboard behavior. */
:root select:not([multiple]) { appearance:none; min-height:44px; padding:2px 34px 2px 10px; border:8px solid transparent; border-image:url('/assets/ui-controls/button-frame.svg') 20 / 8px / 0 stretch; border-radius:0; background:#e7dcc7 url('/assets/ui-controls/dropdown-arrow-ink.svg') right 8px center/18px 18px no-repeat; background-clip:padding-box; color:#24211b; font-size:.875rem; font-weight:700; }
:root select:not([multiple]):hover { filter:brightness(1.06); }
:root select option { background:#2e2c27; color:#ffefd7; }
@media (max-width:380px) { .hero-page .popular-items > .section-heading { flex-wrap:wrap; gap:12px; } }
@media (forced-colors:active) {
 .choice-control > button.choice-trigger, .button.primary, :root select:not([multiple]) { border:1px solid ButtonText; border-image:none; background:ButtonFace; color:ButtonText; filter:none; }
 .choice-control > button.choice-trigger::before, .button.primary::before { display:none; }
 .choice-control > button.choice-trigger::after { background:ButtonText; }
 .choice-control > div.choice-menu { background:Canvas; color:CanvasText; border-color:ButtonText; }
 .choice-control > div.choice-menu button[aria-checked=true] { background:Highlight; color:HighlightText; }
 :root select:not([multiple]) { appearance:auto; }
}
.hero-item-sidebar { position:sticky; top:80px; min-width:0; }
@media (max-width:1000px) { .hero-item-sidebar { position:static; } }
/* Each build gets the native paper frame; the page background separates the stack. */
.hero-page .is-build-mode .popular-items { --ink:inherit; --muted:inherit; --line:inherit; --tint:inherit; --tint-hover:inherit; --background:inherit; color:var(--ink); padding:0; border:0; background:none; }
.hero-build-stack { display:grid; gap:18px; }
.hero-build-card { --ink:#fbf2e4; --muted:#ead6b9; --line:#e8c69b55; color:var(--ink); min-width:0; padding:16px; border:1px solid #d6a05a80; border-top:2px solid #dc9f50; border-radius:5px; background:#a47745 url('/assets/shop/catalog-paper.webp') center/cover; background-blend-mode:multiply; }
.hero-build-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:7px; }
.hero-build-summary h3 { min-width:0; margin:0; font:600 1rem/1.4 var(--body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); }
.build-position { margin-right:10px; font-family:var(--display); }
.hero-build-score { display:flex; align-items:baseline; gap:12px; flex-shrink:0; }
.hero-build-score strong { font:600 1rem var(--number); }
.hero-build-score small, .hero-build-score > span { font:400 .75rem var(--body); color:var(--muted); }
.hero-build-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.hero-build-classification { display:flex; flex-wrap:wrap; align-items:center; gap:5px; font-size:.75rem; }
.build-kind { margin-right:8px; }
.build-stage small { opacity:.8; font-size:inherit; }
.build-stage-arrow { color:var(--muted); }
.hero-build-classification .weapon { color:#ffd18d; }
.hero-build-classification .spirit { color:#ddbcfa; }
.hero-build-classification .vitality { color:#d3fc96; }
.hero-build-classification .melee { color:#ffaaa0; }
.hero-build-card .hero-inventory { grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:8px; overflow-y:auto; overscroll-behavior-y:auto; scrollbar-gutter:stable both-edges; scrollbar-width:thin; scrollbar-color:#ead6b980 #0002; padding:3px; max-height:var(--build-grid-max-height,none); }
.hero-build-card .hero-inventory:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
@media (max-width:600px) {
 .hero-build-card { padding:12px; }
 .hero-build-summary { align-items:flex-start; gap:8px; }
 .hero-build-score { display:grid; gap:3px; text-align:right; }
 .hero-build-toolbar { flex-wrap:wrap; gap:8px; }
}
.inventory-title { display: flex; align-items: center; gap: 10px; }
.inventory-refresh { display: inline-flex; }
.inventory-refresh .spinner { width: 14px; height: 14px; border-width: 2px; }
.skeleton-line { display: block; width: 85%; height: 10px; border-radius: 3px; background: currentColor; opacity: .12; }
.inventory-placeholder .inventory-slot { background: #fbf2e414; border-color: #fbf2e417; }
.inventory-placeholder .inventory-name { width: 100%; display: grid; place-items: start center; padding-top: 6px; }
.inventory-placeholder .inventory-outcomes { width: 85%; min-height: 15px; }
.inventory-placeholder .inventory-outcomes > span::before { content: none; }
.item-insight-placeholder { min-height: 264px; display: flex; flex-direction: column; gap: 20px; color: var(--muted); }
.insight-placeholder-heading { display: flex; align-items: center; gap: 12px; }
.insight-placeholder-heading > span { width: 44px; height: 44px; flex: none; border-radius: 4px; background: currentColor; opacity: .12; }
.insight-placeholder-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 20px 0; }
.hero-inventory { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; align-items: start; }
.inventory-item { --inventory-color: #e7c8ff; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 0; text-align: center; border-radius: 3px; }
.inventory-item.weapon { --inventory-color: #ffd18d; }
.inventory-item.vitality { --inventory-color: #d3fc96; }
.inventory-slot { position: relative; display: grid; place-items: center; width: 100%; max-width: 84px; aspect-ratio: 1; background: var(--inventory-color); border: 2px solid var(--inventory-color); border-radius: 3px; overflow: hidden; transition: filter 120ms ease, box-shadow 120ms ease; }
.inventory-icon { display: block; width: 100%; height: 100%; object-fit: contain; }
.inventory-cost { position: absolute; bottom: 0; right: 0; padding: 2px 5px; background: #101112e8; color: #f5f5f7; border-top-left-radius: 3px; font: 600 .625rem/1.3 var(--number); }
.inventory-name { font-size: .75rem; line-height: 1.35; min-height: 1.35em; max-width: 110px; color: var(--ink); }
.inventory-outcomes { display: flex; gap: 4px; justify-content: center; align-items: baseline; flex-wrap: nowrap; width: max-content; max-width: 100%; min-width: 0; padding: 2px 4px; border: 3px solid transparent; border-image: url('/assets/ui-controls/dark-frame.svg') 20 fill / 3px / 0 stretch; white-space: nowrap; font: 500 .75rem/1.25 var(--number); color: #ead6b9; }
.inventory-outcomes strong { font-weight: 600; color: var(--ink); }
.inventory-outcomes > span::before { content: "·"; margin-right: 4px; }
@media (max-width: 360px) {
 .inventory-outcomes { gap: 3px; }
 .inventory-outcomes > span::before { margin-right: 3px; }
}
.inventory-item:hover .inventory-slot { filter: brightness(1.06); }
.inventory-item.is-previewed .inventory-slot { box-shadow: 0 0 0 2px #58412d, 0 0 0 3px #fbf2e4; }
.inventory-item:focus-visible { outline: 2px solid var(--tint); outline-offset: 4px; }
.inventory-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.inventory-footer p, .inventory-note { color: var(--muted); font-size: .75rem; }
/* Dark native frames separate inventory data and navigation from the shop paper. */
.popular-items .inventory-footer p { padding: 5px 8px; border: 5px solid transparent; border-image: url('/assets/ui-controls/dark-frame.svg') 20 fill / 5px / 0 stretch; color: #ead6b9; }
.popular-items .inventory-footer .text-link { min-height: 44px; padding: 4px 10px; border: 6px solid transparent; border-image: url('/assets/ui-controls/dark-frame.svg') 20 fill / 6px / 0 stretch; color: #fbf2e4; font-family: var(--display); font-weight: 700; white-space: nowrap; transition: filter .12s ease; }
.popular-items .inventory-footer .text-link:hover { text-decoration: none; filter: brightness(1.15); }
.inventory-footer .text-link { font-size: .8125rem; }
.inventory-note { margin-top: 12px; line-height: 1.5; }
.item-insight { padding: 0; }
.item-insight-heading { display: flex; align-items: center; gap: 12px; }
.item-insight-heading > div { min-width: 0; }
.item-insight-heading h3 { font-size: 1rem; line-height: 1.35; }
.item-insight-heading p { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.item-insight-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.item-insight-metrics dt { font-size: .6875rem; color: var(--muted); }
.item-insight-metrics dd { margin: 5px 0 0; font: 600 1.125rem/1.3 var(--number); }
.item-insight-description { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.item-insight-properties { margin: 12px 0 16px; }
.item-insight-properties > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.item-insight-properties dt { color: var(--muted); }
.item-insight-properties dd { flex: none; margin: 0; font-family: var(--number); }
.item-insight .text-link { font-size: .8125rem; min-height: 32px; }
.hero-page .hero-ability-intro { max-width: 68ch; margin-top: 8px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (max-width: 1000px) {
 .hero-page .hero-masthead-inner { grid-template-columns: 128px minmax(0,1fr) 224px; gap: 12px 20px; }
 .hero-page .hero-masthead-art { width: 128px; height: 172px; }

 .hero-page .hero-overview-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .hero-item-context { padding: 20px; }
 .hero-page .hero-stats { gap: 0; }
 .hero-page .hero-stats .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
 .hero-page .hero-stats .stat-card:nth-child(odd) { padding-left: 20px; }
}
@media (max-width: 700px) {
 .hero-page .hero-masthead-inner { grid-template-columns: 112px minmax(0,1fr); gap: 12px 16px; }
 .hero-page .hero-masthead-art { width: 112px; height: 150px; }
 .hero-page .hero-description h1 { font-size: 2rem; }
 .hero-page .hero-header-basics { grid-column: 1/-1; grid-row: 2; margin-top: 4px; }

 .hero-base-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }

 .hero-ability-shortcuts { gap: 6px; margin-top: 12px; }
 .hero-page #hero-range button, .choice-trigger, .choice-menu button { min-height: 44px; }
 .hero-ability-shortcuts button { width: 44px; height: 44px; flex: none; }
 .hero-inventory { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 450px) {
 .hero-page .hero-masthead-inner { grid-template-columns: 104px minmax(0,1fr); gap: 12px; }
 .hero-page .hero-masthead-art { width: 104px; height: 140px; }
 .hero-page .hero-description h1 { font-size: 1.875rem; }
 .hero-view-toolbar { gap: 8px; }
 .hero-page .hero-view-toolbar .section-tabs { gap: 16px; }
 .hero-page .hero-view-toolbar .section-tabs button { font-size: .8125rem; }
 .hero-page #hero-range { min-width: 144px; }
 .hero-page #hero-range button { padding: 6px 8px; font-size: .75rem; }
 .hero-page .hero-description > .hero-role { font-size: .8125rem; }
 .hero-page .hero-traits { font-size: .6875rem; gap: 8px; }
 .hero-inventory { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .hero-base-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
 .inventory-outcomes { padding: 2px 0; font-size: .6875rem; }
 .inventory-footer { gap: 8px; flex-wrap: wrap; }

 .choice-trigger { min-width: 128px; padding: 0 10px; gap: 8px; }
 .hero-page .popular-items, .hero-item-context { padding: 16px; }
 .hero-page .hero-stats .stat-card { padding: 14px; }
 .hero-page .hero-stats .stat-card:is(:first-child,:nth-child(odd)) { padding-left: 14px; }
 .hero-page .hero-stats .stat-card:last-child { padding-right: 14px; }
}
@media (max-width: 360px) { .inventory-outcomes { font-size: .625rem; } }
@media (max-width: 350px) {
 .hero-view-toolbar { flex-wrap: wrap; gap: 0; padding-bottom: 8px; }
 .hero-page .hero-view-toolbar .section-tabs { flex-basis: 100%; }
 .performance-context { flex-wrap: wrap; }
 .hero-page #hero-range { margin-left: auto; }
}

/* Profile matches float below the search without changing homepage layout. */
.lookup-content .lookup-box { position: relative; }
.lookup-content .lookup-box.has-search-results { z-index: 25; }
.lookup-scrim { position: fixed; inset: 0; z-index: 0; background: rgb(0 0 0 / 24%); }
.lookup-box.has-search-results form { position: relative; z-index: 1; }
.lookup-content .search-results:not(:empty) {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 1;
  margin-top: 0; max-height: min(560px, var(--results-height, 60svh));
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 16px 48px rgb(0 0 0 / 24%);
}


/* A compact, fixed-height trend strip; loading never shifts the items below. */
.hero-trend { margin-top: 14px; height: 132px; padding: 12px 12px 0; }
.hero-trend[aria-busy=true] .trend-chart { opacity: .45; }
.trend-chart { position: relative; height: 90px; margin: 0 8px 0 78px; }
.trend-y-axis { position: absolute; left: -78px; top: 0; bottom: 0; width: 70px; }
.trend-y-axis span { position: absolute; right: 0; transform: translateY(-50%); font: .6875rem var(--number); color: var(--muted); white-space: nowrap; }
.trend-plot,.trend-plot svg { position: relative; width: 100%; height: 100%; }
.trend-plot svg { display: block; overflow: visible; touch-action: pan-y; }
.trend-guide { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: .45; vector-effect: non-scaling-stroke; }
.trend-line { fill: none; stroke: var(--tint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend-cursor { position: absolute; top: 0; height: 100%; border-left: 1px dotted var(--muted); opacity: .45; pointer-events: none; }
.trend-dot { position: absolute; width: 7px; height: 7px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--tint); pointer-events: none; }
.trend-value { position: absolute; top: -8px; transform: translateX(-50%); padding: 3px 6px; border-radius: 4px; background: var(--surface); font: .6875rem var(--number); color: var(--ink); white-space: nowrap; pointer-events: none; }
.trend-dates { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; margin: 5px 8px 0 78px; color: var(--muted); font: .6875rem var(--number); }
.trend-status { height: 110px; display: grid; place-items: center; color: var(--muted); font-size: .8125rem; }
@media(max-width:600px){.hero-trend{padding-left:0;padding-right:0}.trend-chart{margin-left:70px}.trend-y-axis{left:-70px;width:64px}.trend-dates{margin-left:70px}}

/* The hero trend sits in the performance toolbar, leaving the stats prominent. */
.hero-page .performance-context { display: grid; grid-template-columns: minmax(230px,auto) minmax(180px,1fr) auto; align-items: center; gap: 24px; }
.hero-page .performance-context .hero-trend { margin: 0; padding: 0; height: 68px; min-width: 0; }
.hero-page .performance-context .trend-chart { height: 44px; margin-left: 70px; }
.hero-page .performance-context .trend-y-axis { left: -70px; width: 64px; }
.hero-page .performance-context .trend-dates { margin-left: 70px; }
.hero-page .performance-context .trend-status { height: 68px; font-size: .75rem; }
@media(max-width:900px){.hero-page .performance-context{grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}.hero-page .performance-context .hero-trend{grid-row:2;grid-column:1/-1}.hero-page .performance-context #hero-range{grid-row:1;grid-column:2}}
@media(max-width:480px){.hero-page .performance-context{grid-template-columns:1fr;gap:12px}.hero-page .performance-context #hero-range{grid-row:2;grid-column:1;justify-self:start;margin-left:0}.hero-page .performance-context .hero-trend{grid-row:3}}

/* Player dashboard: recorded rating/accuracy on the left, recent stats on the right. */
.profile-dashboard-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 28px; align-items: start; }
.profile-sidebar { display: grid; gap: 24px; }
.profile-side-section > h2 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: .9375rem; }
.profile-side-section h2 small { color: var(--muted); font-size: .6875rem; font-weight: 400; }
.profile-side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
#profile-rating { min-height: 238px; padding: 0; overflow: hidden; }
#profile-accuracy { min-height: 208px; }
.profile-empty { padding: 14px 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
#profile-rating > .profile-empty { padding: 20px; }
.profile-rank-row { display: flex; align-items: center; gap: 14px; padding: 18px; }
.profile-rank-row:first-child { background: var(--inset); }
.profile-rank-icon,.profile-rank-unknown { width: 54px; height: 54px; object-fit: contain; flex: none; }
.profile-rank-unknown { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 1.5rem; }
.profile-rank-row span,.profile-rank-row small { display: block; font-size: .6875rem; color: var(--muted); }
.profile-rank-row strong { display: block; font-size: 1.125rem; margin: 3px 0; }
.profile-footnote { font-size: .6875rem; line-height: 1.5; color: var(--muted); margin-top: 14px; }
#profile-rating .profile-footnote { padding: 0 18px 16px; margin: 0; }
.profile-accuracy-value strong { display: block; font: 600 2rem var(--number); }
.profile-accuracy-value > span { color: var(--muted); font-size: .75rem; }
.profile-accuracy-bar { height: 7px; background: #bd655c; border-radius: 6px; overflow: hidden; margin: 16px 0; }
.profile-accuracy-bar > span { display: block; height: 100%; background: var(--tint); }
.profile-shots { display: grid; gap: 8px; font-size: .8125rem; }
.profile-shots > div { display: flex; justify-content: space-between; }
.profile-shots dt { color: var(--muted); }
.profile-shots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; }
.shot-hit { background: var(--tint); }.shot-miss { background: #bd655c; }
.profile-main { min-width: 0; }
.profile-performance-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; min-height: 48px; }
.profile-performance-toolbar h2 { font-size: .9375rem; margin: 0 0 5px; }
.profile-performance-toolbar p { color: var(--muted); font-size: .75rem; }
.profile-performance-toolbar .mode-segments { flex: none; }
.profile-performance-toolbar .mode-segments a { padding: 9px 12px; font-size: .75rem; }
.profile-overview { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 28px; overflow: hidden; }
.profile-feature-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 20px 0; }
.profile-metric { min-width: 0; padding: 0 20px; border-right: 1px solid var(--line); }
.profile-metric:last-child { border: 0; }
.profile-metric > span { color: var(--muted); font-size: .75rem; }
.profile-metric > strong { display: block; font: 600 1.6rem var(--number); margin: 8px 0 5px; line-height: 1.2; }
.profile-metric > strong i { color: var(--muted); font-size: .875rem; font-style: normal; }
.profile-feature-stats .profile-metric.profile-kda > strong { font-size: 1.125rem; line-height: 1.707; white-space: nowrap; }
.profile-metric > small { display: block; color: var(--muted); font-size: .6875rem; }
.profile-metric.mint > strong { color: var(--tint); }
.profile-more-stats { border-top: 1px solid var(--line); }
.profile-more-stats > summary { padding: 14px 20px; min-height: 44px; cursor: pointer; color: var(--muted); font-size: .8125rem; }
.profile-more-stats > summary:hover { color: var(--ink); background: var(--inset); }
.profile-more-stats > summary:focus-visible { outline: 2px solid var(--tint); outline-offset: -3px; }
.profile-stat-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; padding: 8px 20px 20px; }
.profile-stat-groups h3 { font-size: .75rem; margin-bottom: 8px; }
.profile-stat-groups dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.profile-stat-groups dl > div:last-child { border: 0; }
.profile-stat-groups dt { color: var(--muted); }
.profile-stat-groups dd { font-variant-numeric: tabular-nums; }
.profile-hero-performance { margin-bottom: 30px; }
.profile-hero-list { padding: 0 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.profile-hero-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 80px 140px; align-items: center; gap: 14px; min-height: 74px; border-bottom: 1px solid var(--line); }
.profile-hero-row:last-child { border: 0; }
.profile-hero-row:hover { color: var(--tint); }
.profile-hero-row > span:nth-last-child(-n+2) { text-align: right; }
.profile-hero-row strong { font-size: .875rem; }.profile-hero-row small { display: block; color: var(--muted); font-size: .6875rem; margin-top: 4px; }
.profile-hero-row .hero-avatar { width: 42px; height: 48px; }
.profile-form-strip { display: flex; gap: 3px; height: 27px; }
.profile-form-strip > span { flex: 1; min-width: 0; border-radius: 2px; background: var(--line); }
.profile-form-strip > .win { background: var(--tint); }.profile-form-strip > .loss { background: #bd655c; }
.profile-form-caption { display: flex; justify-content: space-between; font-size: .625rem; color: var(--muted); margin-top: 6px; }
.profile-current-streak { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.profile-current-streak strong { font: 600 1.25rem var(--number); }.profile-current-streak > span { color: var(--muted); font-size: .6875rem; }
@media(max-width:1100px){.profile-dashboard-grid{grid-template-columns:230px minmax(0,1fr);gap:20px}.profile-metric{padding:0 12px}.profile-hero-row{grid-template-columns:36px minmax(0,1fr) 65px 90px;gap:10px}}
@media(max-width:800px){.profile-dashboard-grid{grid-template-columns:1fr}.profile-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-side-section:last-child{grid-column:1/-1}.profile-main{grid-row:1}.profile-feature-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.profile-performance-toolbar{flex-wrap:wrap;gap:12px}.profile-performance-toolbar .mode-segments{width:100%}.profile-performance-toolbar .mode-segments a{flex:1;text-align:center}.profile-feature-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.profile-metric{padding:16px;border-bottom:1px solid var(--line)}.profile-metric:nth-child(2){border-right:0}.profile-metric:nth-child(3),.profile-metric:nth-child(4){border-bottom:0}.profile-stat-groups{grid-template-columns:1fr;gap:16px}.profile-sidebar{grid-template-columns:1fr}.profile-side-section:last-child{grid-column:auto}.profile-hero-list{padding:0 12px}.profile-hero-row{grid-template-columns:32px minmax(0,1fr) 64px;gap:8px;padding:12px 0}.profile-hero-row>span:last-child{grid-column:2/-1;text-align:left}.profile-hero-row .hero-avatar{width:32px;height:38px}}

/* Each ability sizes its own content; neighboring cards never stretch its sections. */
.abilities-section { --spirit: #8550b1; --spirit-soft: #eee0f5; }
@media(prefers-color-scheme:dark){.abilities-section{--spirit:#ce90ff;--spirit-soft:#40304e}}
.abilities-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px 20px; border: 0; border-radius: 0; background: transparent; }
.ability-card { display: grid; grid-template-rows: auto; align-content: start; align-self: start; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 24px; min-width: 0; }
.ability-card:last-child { border: 1px solid var(--line); }
.ability-header { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 48px; }
.ability-icon { background: transparent; padding: 0; border-radius: 0; width: 48px; height: 48px; }
.ability-icon > span { border-radius: 3px; background: var(--inset); color: var(--ink); }
.ability-header h3 { font: 700 1.5rem/1.2 var(--display); color: var(--ink); }
.ability-cooldown { background: var(--inset); padding: 6px 10px; border-radius: 3px; color: var(--muted); font: .8125rem var(--number); white-space: nowrap; }
.ability-card .ability-description { color: var(--ink); font-size: .9375rem; line-height: 1.6; }
.ability-card dl,.ability-card dd { margin: 0; }
.ability-properties { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); align-items: start; gap: 12px 5px; }
.ability-properties > div { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--inset); padding: 14px 10px; text-align: center; border-top: 3px solid var(--line); min-height: 82px; }
.ability-properties > .spirit { background: var(--spirit-soft); border-color: var(--spirit); }
.ability-properties dd { font: 600 1.125rem/1.3 var(--number); }
.ability-properties dd small,.ability-basic-properties dd small { color: var(--muted); font-size: .75rem; }
.ability-properties dt { font-size: .75rem; margin-top: 5px; }
.ability-basic-properties { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: center; background: var(--inset); padding: 10px 12px; font-size: .75rem; }
.ability-basic-properties > div { display: flex; gap: 6px; align-items: baseline; }
.ability-basic-properties dd { font: 600 .875rem var(--number); }
.ability-basic-properties dt { color: var(--muted); }
.ability-properties:empty,.ability-basic-properties:empty,.ability-footer:empty { display: none; }
.ability-upgrades { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.ability-upgrades > section { display: grid; grid-template-rows: 32px 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.ability-upgrades h4 { display: grid; place-items: center; background: var(--spirit-soft); color: var(--spirit); text-align: center; font: 600 .75rem var(--number); margin: 0; padding: 6px; }
.ability-upgrades p { color: var(--ink); font-size: .8125rem; line-height: 1.5; font-weight: 600; text-align: center; padding: 14px 10px; }
.ability-upgrades .ability-unavailable { color: var(--muted); font-weight: 400; }
.ability-footer { display: flex; align-items: end; }
.ability-footer .text-link { margin: 0; }
@media(max-width:1100px){.abilities-list{grid-template-columns:1fr;gap:16px}.ability-card{grid-row:auto;grid-template-rows:auto;gap:16px}}
@media(max-width:600px){.ability-card{padding:18px 14px}.ability-header{grid-template-columns:36px minmax(0,1fr) auto;gap:12px;min-height:36px}.ability-icon{width:36px;height:36px}.ability-header h3{font-size:1.25rem}.ability-cooldown{padding:5px 7px;font-size:.75rem}.ability-properties{grid-template-columns:repeat(2,minmax(0,1fr))}.ability-upgrades{grid-template-columns:1fr;gap:8px}.ability-upgrades>section{grid-template-columns:82px minmax(0,1fr);grid-template-rows:auto}.ability-upgrades p{text-align:left;padding:10px}}
@media(prefers-color-scheme:light){.ability-icon img{filter:brightness(0);opacity:.8}}

/* Original game glyphs and the radial scaling treatment from AbilityPropertyPanel. */
.game-glyph { display:inline-block; width:20px; height:20px; flex:none; vertical-align:middle; }
span.game-glyph { background:currentColor; mask:var(--glyph) center/contain no-repeat; }
img.game-glyph { object-fit:contain; }
.ability-header-stats { display:flex; flex-wrap:wrap; justify-content:flex-end; align-content:start; gap:6px; max-width:180px; }
.ability-cooldown { display:inline-flex; align-items:center; gap:5px; }
.ability-passive { color:var(--muted); font-size:.75rem; }
.ability-description .game-glyph { margin:0 4px; }
.ability-inline-spirit { color:var(--spirit); font-weight:600; }
.ability-inline-weapon { color:#e58a00; font-weight:600; }
.ability-inline-mint { color:var(--tint); font-weight:600; }
.ability-inline-strong { font-weight:600; }.ability-inline-muted { color:var(--muted); }
.ability-properties > div { position:relative; border:2px solid transparent; background:var(--inset); }
.ability-properties > .spirit { border-color:#8a55b366; background:radial-gradient(ellipse at center,#00000050,#61348450); }
.ability-properties > .mint { border-color:#99ffd666; background:radial-gradient(ellipse at center,#00000050,#99ffd622); }
.ability-properties > .weapon { border-color:#9d620b66; background:radial-gradient(ellipse at center,#00000050,#7f540e40); }
.ability-properties dd,.ability-basic-properties dd { display:flex; justify-content:center; align-items:center; gap:4px; }
.ability-scaling { position:absolute; top:-10px; right:2px; display:flex; align-items:center; gap:3px; color:var(--spirit); background:var(--surface); padding:0 3px; font:600 .8125rem var(--number); }
.ability-scaling .game-glyph { width:18px;height:18px; }.ability-scaling.mint{color:var(--tint)}.ability-scaling.weapon{color:#e58a00}
.ability-upgrades h4 { display:flex; align-items:center; justify-content:center; gap:5px; background:linear-gradient(100deg,var(--spirit-soft),color-mix(in srgb,var(--spirit-soft),var(--spirit) 15%)); font-size:1rem; }
.ability-upgrades h4 .game-glyph { width:22px;height:22px; }
.ability-preview { position:fixed; z-index:80; overflow:auto; overscroll-behavior:contain; border-radius:5px; box-shadow:0 12px 40px #0008; }
.ability-preview .ability-card { display:grid; grid-row:auto; grid-template-rows:auto; gap:18px; padding:24px; }
.ability-preview .ability-footer:empty { display:none; }
@media(prefers-color-scheme:dark){.ability-card{background:linear-gradient(#111012eb,#111012eb),url('/assets/game-ui/ability_tooltip_bg_png.png') center/100% 100%}.ability-properties>.neutral{background:#ffffff0c}}
@media(prefers-color-scheme:light){.ability-properties>.spirit{background:radial-gradient(ellipse at center,#fff8,#61348420)}.ability-properties>.mint{background:radial-gradient(ellipse at center,#fff8,#99ffd644)}.ability-properties>.weapon{background:radial-gradient(ellipse at center,#fff8,#7f540e20)}}
@media(max-width:600px){.ability-header-stats{max-width:100px}.ability-preview .ability-card{padding:18px 14px}.ability-upgrades h4{flex-direction:row}}

.ability-header-stats small { font-size:.75em; }


/* Overlapping grid slides reserve the tallest ability at each responsive width.
   Hidden/inert slides still size the stage, so cards and controls never move on selection. */
.ability-carousel { max-width: 760px; margin: 16px auto 0; scroll-margin-top:88px; }
.ability-carousel-stage { display:grid; position:relative; isolation:isolate; }
.ability-slide { grid-area:1 / 1; min-width:0; visibility:hidden; opacity:0; pointer-events:none; }
.ability-slide[aria-hidden="false"] { visibility:visible; opacity:1; pointer-events:auto; z-index:1; }
.ability-carousel .ability-card { display:flex; flex-direction:column; height:100%; padding:20px; gap:12px; scroll-margin-top:88px; }
.ability-carousel .ability-card > * { flex:none; }
.ability-carousel .ability-header { gap: 12px; }
.ability-carousel .ability-header-stats { max-width: none; }
.ability-carousel .ability-properties { grid-template-columns: repeat(auto-fill,minmax(118px,136px)); gap: 12px 8px; margin-top: 4px; }
.ability-carousel .ability-properties > div { min-height: 72px; padding: 10px 8px; }
.ability-carousel .ability-upgrades { gap: 8px; }
.ability-carousel .ability-upgrades > section { grid-template-rows:minmax(28px,auto) auto; }
.ability-carousel .ability-upgrades h4 { padding: 4px; }
.ability-carousel .ability-upgrades h4 .game-glyph { width: 20px; height: 20px; }
.ability-carousel .ability-upgrades p { padding: 8px 10px; }
.ability-carousel .ability-footer { display:flex; min-height:44px; margin-top:auto; }
.ability-carousel .ability-footer .text-link { min-height: 44px; display: inline-flex; align-items: center; }
.ability-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding: 4px 0; scroll-margin: 88px 0 16px; }
.ability-carousel-controls button { position: relative; display: grid; place-items: center; width: 72px; height: 72px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); transition: border-color 140ms ease, background 140ms ease; }
.ability-carousel-controls button img { width: 48px; height: 48px; object-fit: contain; opacity: .6; }
.ability-carousel-controls button span { position: absolute; right: 5px; bottom: 4px; font: 600 .75rem/1 var(--number); }
.ability-carousel-controls button:hover { border-color: var(--spirit); }
.ability-carousel-controls button[aria-selected="true"] { border-color: var(--spirit); background: var(--spirit-soft); box-shadow: inset 0 -3px var(--spirit); color: var(--ink); }
.ability-carousel-controls button[aria-selected="true"] img { opacity: 1; }
.ability-background { margin: 16px auto 32px; max-width: 760px; color: var(--muted); }
.ability-background summary { width: fit-content; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: .875rem; font-weight: 600; }
.ability-background p { max-width: 80ch; margin-top: 8px; font-size: .875rem; line-height: 1.6; }
@media (max-width:600px) {
 .ability-carousel { margin-top: 16px; }
 .ability-carousel .ability-header { grid-template-columns: 36px minmax(0,1fr); }
 .ability-carousel .ability-header-stats { grid-column: 2; justify-content: flex-start; max-width: none; }
 .ability-carousel .ability-card { padding: 16px 14px; }
 .ability-carousel .ability-properties { grid-template-columns: repeat(2,minmax(0,136px)); }
 .ability-carousel .ability-upgrades > section { grid-template-rows: auto; }
 .ability-carousel-controls { gap: 10px; }
 .ability-carousel-controls button { width: 56px; height: 56px; padding: 8px; }
 .ability-carousel-controls button img { width: 36px; height: 36px; }
}
@media (max-width:700px) {
 .ability-carousel-controls { position:sticky; bottom:calc(76px + env(safe-area-inset-bottom)); z-index:2; width:fit-content; max-width:100%; margin-inline:auto; padding:6px; background:var(--background); border:1px solid var(--line); border-radius:5px; scroll-margin:88px 0 156px; }
 .ability-carousel .ability-footer .text-link { scroll-margin-bottom:calc(156px + env(safe-area-inset-bottom)); }
}
@media (prefers-color-scheme:light) { .ability-carousel-controls button img { filter: brightness(0); } }

/* Roster: one title/control line, then the image collection it acts on. */
.roster-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 0 12px; }
.roster-title { display:flex; align-items:baseline; gap:12px; min-width:0; }
.roster-title h1 { font-size:2rem; line-height:1.2; }
.roster-count { color:var(--muted); font-size:.875rem; font-variant-numeric:tabular-nums; }
.roster-controls { display:flex; align-items:center; gap:12px; width:460px; max-width:60%; }
.roster-controls .filter-search { flex:1; min-width:0; max-width:none; }
.roster-controls .choice-control { flex:none; }
.roster-controls .choice-trigger { min-height:44px; min-width:140px; background:var(--surface); border-color:var(--line); color:var(--ink); font-size:.875rem; gap:8px; }
.roster-controls .choice-trigger:is(:hover,[aria-expanded=true]) { background:var(--hover); border-color:var(--muted); }
.roster-controls .choice-trigger > span { flex:1; }
.roster-controls .choice-trigger .roster-sort-icon { width:18px; height:18px; color:var(--muted); }
.roster-controls .choice-menu { background:var(--surface); border-color:var(--line); color:var(--ink); }
.roster-controls .choice-menu button:is(:hover,:focus-visible) { background:var(--inset); color:var(--ink); }
.roster-context { color:var(--muted); font-size:.8125rem; line-height:1.5; min-height:20px; padding-bottom:20px; }
.roster-page .hero-grid { gap:28px 20px; }
.roster-page .hero-card-info { padding-top:10px; }
.roster-page .hero-card-title-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:8px; }
.roster-page .hero-card-title-row h3 { font:600 1rem/1.4 var(--body); }
.roster-page .hero-card-rate { min-width:6ch; text-align:right; font:500 .9375rem/1.4 var(--body); font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap; }
.roster-page .hero-card-info .hero-card-matches { font-size:.8125rem; line-height:1.5; min-height:1.5em; margin-top:3px; color:var(--muted); }
.roster-page .hero-card-info[aria-busy=true] .hero-card-rate { color:var(--muted); }
@media(max-width:700px){
 .roster-heading { flex-wrap:wrap; gap:18px; padding-top:24px; }
 .roster-controls { width:100%; max-width:none; }
 .roster-controls .filter-search { flex-basis:auto; }
 .roster-controls .choice-trigger { min-width:132px; }
 .roster-context { padding-bottom:16px; }
 .roster-page .hero-card-title-row { gap:6px; }
 .roster-page .hero-card-title-row h3 { font-size:.9375rem; }
 .roster-page .hero-card-rate { font-size:.875rem; }
}

@media (forced-colors:active) {
 .hero-page .hero-header-basics, .inventory-outcomes, .popular-items .inventory-footer p, .popular-items .inventory-footer .text-link { border: 1px solid CanvasText; border-image: none; background: Canvas; color: CanvasText; }
 .hero-base-grid > div { border-color: CanvasText; }
 .hero-header-basics h2, .hero-base-grid dt, .hero-base-grid small { color: CanvasText; }
 .popular-items .inventory-footer .text-link { color: LinkText; }
}

/* A quiet Steam count below the dashboard search; reserved height prevents jumps. */
.home-player-count { display:flex; align-items:center; justify-content:center; gap:7px; min-height:20px; margin:12px 0 0; color:var(--muted); font-size:.8125rem; line-height:20px; }
.home-player-count strong { min-width:7ch; text-align:right; font-family:inherit; font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink); }


/* Native portrait recordings retain the poster until playback is ready. */
.hero-art>.recorded-portrait-motion,.hero-item-art>.recorded-portrait-motion,.recorded-portrait-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:2;opacity:0;transform:none!important;transition:opacity 160ms}
.recorded-portrait-motion.padded{inset:-4px -5px;width:calc(100% + 10px);height:calc(100% + 8px)}
.recorded-portrait-motion.is-playing,.recorded-portrait-hold{opacity:1}
.recorded-portrait-hold.is-retiring{opacity:0}
@media(prefers-reduced-motion:reduce){.hero-art>.recorded-portrait-motion,.hero-item-art>.recorded-portrait-motion,.recorded-portrait-motion{transition:none}}

.hero-art .hero-card-cta{z-index:3}

/* Resting cards and recorded motion share the same padded capture bounds. */
.hero-art > img.recorded-card-poster{position:absolute;inset:-4px -5px;width:calc(100% + 10px);height:calc(100% + 8px);max-width:none;object-fit:fill;object-position:center;transition:none}
.hero-masthead-art picture > img.hero-render{object-fit:fill}

/* Picture candidates share the existing artwork box; they add no layout layer. */
.asset-picture { display:contents; }

/* Responsive candidates retain the same crop, padding and motion layers. */
.hero-art > .asset-picture > img { width:100%; height:100%; object-fit:cover; object-position:top; transition:transform .25s ease; }
.hero-art > .asset-picture > img.hero-rest-poster,
.hero-art > .asset-picture > img.recorded-card-poster { position:absolute; z-index:1; inset:-4px -5px; width:calc(100% + 10px); height:calc(100% + 8px); max-width:none; object-fit:fill; object-position:center; transition:none; }
.home-heroes .hero-art.has-toon-model > .asset-picture > img.hero-rest-poster { visibility:visible; }
.hero-art.has-toon-model > .asset-picture > img { visibility:hidden; }
.home-heroes .hero-art.has-toon-model > .asset-picture > img { transform:none; }
.roster-page .hero-card:is(:hover,:focus-visible) .hero-art > .asset-picture > img { transform:none; }

.hero-motion-panel::after { background-image:url("/assets/responsive/texture/post-game-card-background.4355c00f8e18.256.webp"); }
@supports (background-image: image-set(url("") type("image/avif"))) { .hero-motion-panel::after { background-image:image-set(url("/assets/responsive/texture/post-game-card-background.4355c00f8e18.256.avif") type("image/avif"),url("/assets/responsive/texture/post-game-card-background.4355c00f8e18.256.webp") type("image/webp")); } }

/* Placeholder text occupies the same line box as the eventual match count. */
.roster-page .hero-card-matches > span[aria-hidden] { font:inherit; color:inherit; margin:0; }

.is-build-mode .inventory-footer { display:none; }

.button.primary.hero-browse-items { width:100%; min-height:48px; justify-content:space-between; gap:12px; }
.hero-item-sidebar > .hero-item-context { height:480px; max-height:calc(100dvh - 156px); display:flex; flex-direction:column; overflow:hidden; }
.hero-item-sidebar .section-heading, .hero-item-sidebar .inventory-note { flex:none; }
.hero-item-sidebar .item-insight { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; scrollbar-width:thin; }
.hero-item-sidebar .item-insight:focus-visible { outline:2px solid var(--tint); outline-offset:2px; }
.hero-sidebar-browse { margin-top:12px; }
.hero-mobile-browse { display:none; }
.hero-browse-items:focus-visible { outline:2px solid var(--tint); outline-offset:3px; }
@media (max-width:1000px) {
 .hero-page .hero-overview-grid { display:block; }
 .hero-item-sidebar { margin-top:24px; }
 .hero-sidebar-browse { display:none; }
 .hero-item-sidebar > .hero-item-context { max-height:none; }
 .button.primary.hero-mobile-browse { display:flex; position:sticky; bottom:16px; z-index:6; margin-top:24px; }
}
@media (max-width:600px) {
 .button.primary.hero-mobile-browse { bottom:calc(76px + env(safe-area-inset-bottom)); }
}


.hero-build-placeholder .hero-build-summary { min-height:1.4rem; }
.hero-build-placeholder .hero-build-toolbar { min-height:1.125rem; }
.hero-build-placeholder .hero-build-toolbar .skeleton-line { width:70px; }

/* Keep the game's cut-corner frames legible in system high-contrast modes. */
@media (forced-colors:active) {
 .hero-page #hero-range,.hero-page .hero-stats { border:1px solid ButtonText; border-image:none; background:Canvas; color:CanvasText; }
 .hero-page #hero-range button { color:ButtonText; clip-path:none; }
 .hero-page #hero-range button[aria-pressed=true] { background:Highlight; color:HighlightText; }
 .hero-page #hero-range button:focus-visible { outline:2px solid Highlight; }
}

/* Hero meta table: Deadlock paper controls with clear, adaptable data. */
.main-nav a { min-width:0; }
.header-inner { flex-wrap:wrap; row-gap:8px; }
@media(min-width:851px) { .main-nav a > span { min-width:68px; width:auto; } }
.tier-page { padding-bottom:48px; }
.tier-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:36px 0 28px; }
.tier-heading h1 { font-family:var(--display); font-size:2.5rem; line-height:1.1; }
.tier-heading p { margin-top:10px; color:var(--muted); font-size:.9375rem; }
.tier-heading .roster-count { white-space:nowrap; font-size:.875rem; }
.tier-filters { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.tier-filter { display:grid; gap:7px; min-width:10rem; }
.tier-filter > span,.tier-filter > label { color:var(--muted); font-size:.8125rem; }
.tier-filter-heading { display:flex; align-items:baseline; gap:6px; }.tier-filter-hint { font-size:.75rem; }
.tier-filter .choice-control { width:100%; min-width:0; }
.tier-filter .choice-control > button.choice-trigger { width:100%; min-width:0; max-width:100%; }
.tier-filter .choice-control > button.choice-trigger > span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.tier-filter .choice-trigger:disabled { opacity:.42; cursor:default; }
.tier-filter .choice-control > div.choice-menu { min-width:min(12rem,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto; }
.tier-search-field { margin-left:auto; min-width:200px; max-width:290px; flex:1; }
.tier-search { margin:0; min-width:0; max-width:none; width:100%; min-height:44px; }
.tier-search .clear-search { flex:none; min-width:44px; min-height:44px; }
.tier-context { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 0 16px; color:var(--muted); font-size:.8125rem; }
#tier-update { display:flex; align-items:center; gap:8px; min-height:1.5rem; }
#tier-update[data-loading=true]::before { content:""; flex:none; width:10px; height:10px; border:2px solid var(--line); border-top-color:#dbc59b; border-radius:50%; animation:tier-progress .9s linear infinite; }
@keyframes tier-progress { to { transform:rotate(360deg); } }
.tier-update-error { color:#e0b7a8; }
.tier-retry-button { min-width:2.75rem; min-height:2.75rem; margin-block:-.625rem; color:var(--tint); text-decoration:underline; text-underline-offset:3px; }
.tier-summary { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.tier-summary:empty { display:none; }
.tier-summary-button { display:flex; align-items:center; gap:12px; min-width:2.75rem; min-height:2.75rem; padding:6px 12px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--muted); }
.tier-summary-button strong { font-family:var(--display); font-size:1.125rem; color:var(--tier-ink,var(--ink)); }
.tier-summary-button span { font-size:.75rem; min-width:2ch; text-align:right; }
.tier-summary-button:disabled { cursor:default; opacity:.5; }
.tier-summary-button:hover { background:var(--hover); }
.tier-summary-button[aria-pressed=true] { border-color:var(--tier-ink,var(--ink)); box-shadow:inset 0 0 0 1px var(--tier-ink,var(--ink)); background:color-mix(in srgb,var(--tier-ink,var(--ink)) 12%,var(--surface)); color:var(--ink); }
.tier-page :is(.tier-summary-button,.tier-hero-link,.tier-table th button,.tier-retry-button,.choice-trigger,summary):focus-visible { outline:2px solid #dbc59b; outline-offset:3px; }
.tier-table-wrap { container-type:inline-size; container-name:tier-rankings; border:1px solid var(--line); border-top:2px solid #c4a572; border-radius:5px; overflow-x:auto; scrollbar-width:thin; }
.tier-table-wrap:focus-visible { outline:2px solid #dbc59b; outline-offset:3px; }
.tier-table { width:100%; min-width:40rem; border-collapse:collapse; table-layout:fixed; }
.tier-table th { height:52px; padding:0 14px; background:var(--surface); color:var(--muted); text-align:left; font-size:.8125rem; font-weight:500; }
.tier-table th:first-child { width:26%; }
.tier-table th:nth-child(2) { width:8%; }
.tier-table th:nth-child(3),.tier-table th:nth-child(5) { width:11%; }
.tier-table th:nth-child(4),.tier-table th:nth-child(6) { width:10%; }
.tier-table th:nth-child(7) { width:15%; }
.tier-table th:nth-child(8) { width:9%; }
.tier-table th button { display:flex; align-items:center; justify-content:flex-start; gap:6px; width:100%; min-width:44px; min-height:44px; padding:0; font:inherit; color:inherit; white-space:normal; }
.tier-table th button span { min-width:0; overflow-wrap:anywhere; }
.tier-table th button svg { flex:none; width:.75rem; height:.75rem; opacity:.3; }
.tier-table th[aria-sort=descending],.tier-table th[aria-sort=ascending] { color:var(--ink); }
.tier-table th[aria-sort=descending] svg,.tier-table th[aria-sort=ascending] svg { opacity:1; }
.tier-table th[aria-sort=ascending] svg { transform:rotate(180deg); }
.tier-table td { height:76px; padding:10px 14px; border-top:1px solid var(--line); font-size:.9375rem; }
.tier-table :is(th,td):nth-child(2) { text-align:center; }
.tier-table th:nth-child(2) button { justify-content:center; }
.tier-table :is(th,td):nth-child(n+3) { text-align:right; }
.tier-table th:nth-child(n+3) button { justify-content:flex-end; }
.tier-table tbody tr:nth-child(even) { background:color-mix(in srgb,var(--surface) 24%,transparent); }
.tier-table tbody tr:is(:hover,:focus-within) { background:var(--hover); }
.tier-hero-link { display:flex; align-items:center; gap:14px; min-height:52px; color:var(--ink); }
.tier-hero-link,.tier-hero-link img { -webkit-user-drag:none; }
.tier-hero-link:hover strong { color:var(--tint); }
.tier-position { min-width:max(22px,2ch); flex:none; text-align:right; color:var(--muted); font-family:var(--number); font-size:.875rem; }
.tier-hero-image { width:48px; height:52px; flex:none; object-fit:cover; object-position:top; border:1px solid #b6ab9680; background:var(--surface); }
.tier-hero-link > span:last-child { min-width:0; }
.tier-hero-link strong { display:block; font-size:1rem; font-weight:600; overflow-wrap:anywhere; }
.tier-hero-disclosure { display:inline-block; width:.625rem; height:.625rem; margin-left:6px; stroke:currentColor; stroke-width:1.5; opacity:.45; }
.tier-hero-link small { display:block; color:var(--muted); font-size:.75rem; margin-top:3px; }
.tier-hero-link .tier-mobile-matches { display:none; }
.tier-badge { display:inline-flex; align-items:center; justify-content:center; min-width:2.875rem; min-height:2.375rem; position:relative; isolation:isolate; overflow:hidden; border:1px solid var(--tier-line,var(--line)); border-radius:3px; background:var(--tier-bg,var(--surface)); color:var(--tier-ink,var(--muted)); font-family:var(--display); font-size:1.375rem; }
.tier-badge::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:url('/assets/game-ui/post-game-card-background.png') center/110px; opacity:.06; }
.tier-s { --tier-ink:#e6bd83; --tier-line:#b3916062; --tier-bg:#51412e55; }
.tier-a { --tier-ink:#dcd296; --tier-line:#a79e6162; --tier-bg:#48432955; }
.tier-b { --tier-ink:#a2c8ad; --tier-line:#729a7c62; --tier-bg:#2c493555; }
.tier-c { --tier-ink:#9eb6ce; --tier-line:#6b88a662; --tier-bg:#2d3f5155; }
.tier-d { --tier-ink:#bdadc9; --tier-line:#8e789c62; --tier-bg:#41314a55; }
.tier-stat { font-family:var(--number); font-size:1.0625rem; font-weight:600; font-variant-numeric:tabular-nums; }
.tier-winning { color:var(--positive); }
.tier-rate-track { display:block; width:64px; height:3px; border-radius:3px; background:var(--line); margin:6px 0 0 auto; overflow:hidden; }
.tier-rate-track i { display:block; height:100%; background:var(--tint); opacity:.8; }
.tier-wins,.tier-losses { font-family:var(--number); font-size:1rem; font-variant-numeric:tabular-nums; }
.tier-wins { color:var(--positive); }.tier-losses,.tier-record-divider { color:var(--muted); }
.tier-table-note { color:var(--muted); font-size:.8125rem; margin-top:14px; min-height:18px; }
.tier-empty { text-align:center; padding:40px 20px; color:var(--muted); }.tier-empty strong { color:var(--ink); font-size:1rem; }.tier-empty p { margin-top:8px; }.tier-empty .button { margin-top:18px; }.tier-empty .notice { margin:0; }
.tier-loading-hero { display:flex; gap:14px; align-items:center; }.tier-loading-hero i { width:48px; height:52px; background:var(--inset); border-radius:2px; flex:none; }
.tier-loading-row .skeleton-line { width:50px; height:12px; display:inline-block; }.tier-loading-hero .skeleton-line { width:100px; }
.tier-change { font-family:var(--number); font-size:.875rem; font-variant-numeric:tabular-nums; color:var(--muted); white-space:nowrap; }
.tier-change-up { color:var(--positive); }.tier-change-down { color:#d3a094; }.tier-mobile-change { display:none; }
.tier-comparison-note { margin-top:6px; }
@media(max-width:1000px) {
 .tier-hero-link .tier-mobile-matches { display:block; }.tier-table th,.tier-table td { padding-inline:12px; }
 .tier-table .tier-record-col,.tier-table .tier-matches-col { display:none; }
 .tier-table th:first-child { width:34%; }.tier-table th:nth-child(2) { width:10%; }
 .tier-table th:nth-child(3),.tier-table th:nth-child(5) { width:16%; }.tier-table th:nth-child(4),.tier-table th:nth-child(6) { width:12%; }
 .tier-table th button { font-size:.75rem; gap:4px; }
}
@media(min-width:601px) and (max-width:850px) { .header-inner { gap:16px; }.main-nav { gap:2px; }.main-nav a { padding:8px 10px; font-size:.875rem; }.main-nav a > span { width:auto; } }
@media(max-width:800px) {
 .tier-heading { padding-top:28px; align-items:flex-start; }.tier-heading h1 { font-size:2rem; }.tier-heading p { max-width:30ch; font-size:.875rem; }
 .tier-filters { gap:12px; }.tier-filter { min-width:0; flex:1; }.tier-search-field { margin-left:0; flex-basis:100%; max-width:none; }
 .tier-context { flex-direction:column; align-items:flex-start; gap:6px; }.tier-summary { gap:6px; }.tier-summary-button { padding:6px 10px; gap:9px; }
 .tier-table { min-width:16.75rem; }.tier-table th,.tier-table td { padding-inline:12px; }.tier-table .tier-change-col { display:none; }
 .tier-mobile-change { display:block; margin-top:5px; font-size:.75rem; }.tier-hero-link .tier-mobile-matches { display:block; }
 .tier-table th:first-child { width:auto; }.tier-table th:nth-child(2) { width:3rem; }.tier-table th:nth-child(3),.tier-table th:nth-child(5) { width:4rem; }
 .tier-table th:nth-child(n+2) { padding-inline:2px; }.tier-table th button { font-size:.75rem; gap:3px; }
 .tier-position { display:none; }.tier-hero-link { gap:9px; }.tier-hero-image { width:38px; height:42px; }.tier-hero-link strong { font-size:.875rem; }
 .tier-badge { min-width:2.25rem; min-height:2.25rem; font-size:1.1875rem; }.tier-stat { font-size:1rem; }.tier-rate-track { width:2.75rem; }
 .tier-heading .roster-count { font-size:.75rem; }.tier-table td { height:72px; }
}
@media(max-width:500px) {
 .tier-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); align-items:end; }
 .tier-filter .choice-control > button.choice-trigger { gap:6px; font-size:.8125rem; }.tier-search-field { min-width:0; width:100%; }
 .tier-filter .choice-control > button.choice-trigger::after { width:14px; height:14px; }
}
@media(max-width:400px) {
 .tier-heading { gap:10px; }.tier-heading h1 { font-size:1.75rem; }.tier-heading .roster-count { padding:5px 8px; }
 .tier-table td { padding-inline:8px; }.tier-table th:first-child { padding-inline:8px; }
 .tier-hero-image { width:30px; height:36px; }.tier-hero-link { gap:7px; }
 .tier-filter .choice-trigger { padding-inline:12px; font-size:.8125rem; }.main-nav a > span { max-width:100%; }
}
@media(max-width:360px) { .tier-hero-image { display:none; } }
@media(prefers-reduced-motion:reduce) { #tier-update[data-loading=true]::before { animation:none; } }
@media(forced-colors:active) {
 .tier-badge,.tier-summary-button { background:Canvas; color:CanvasText; border-color:ButtonText; }
 .tier-badge::before { display:none; }.tier-summary-button[aria-pressed=true] { border-width:2px; box-shadow:none; }
 .tier-page :is(.tier-summary-button,.tier-hero-link,.tier-table th button,.tier-retry-button,.choice-trigger,summary):focus-visible { outline-color:Highlight; }
}

@media(max-width:600px) { .main-nav { container-type:inline-size; container-name:compact-nav; } }
@container compact-nav (max-width:15em) { .main-nav a > span { overflow-wrap:anywhere; } }

@container tier-rankings (max-width:40em) { .tier-table th button { flex-direction:column; align-items:flex-start; justify-content:center; }.tier-table th:nth-child(2) button { align-items:center; }.tier-table th:nth-child(n+3) button { align-items:flex-end; } }

/* Player review: browser-computed play sessions above the full player profile. */
.player-review-page { --play-accent:#75572e; --play-loss:#a43632; --play-win-bar:#487a57; --play-loss-bar:#965347; --play-other-bar:#747468; --play-bar-ink:#fff; --play-chart-height:clamp(100px,6.25rem,180px); padding-bottom:48px; max-width:1280px; }
.player-review-page .profile-heading { gap:14px; padding:24px 0 20px; }
.player-review-page .player-avatar { width:48px; height:48px; flex:none; border-radius:4px; border:1px solid var(--line); object-fit:cover; }
.player-review-page .profile-title { flex:1; }
.player-review-page .profile-title h1 { font-size:1.625rem; margin:0; }
.player-review-page .profile-status { display:flex; flex-direction:column; align-items:flex-end; gap:6px; font-size:.8125rem; }
.player-review-page .profile-status > small { font-size:.75rem; margin:0; max-width:30ch; text-align:right; }
.player-review-page .profile-status > small:empty { display:none; }
.profile-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.profile-action { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:6px 10px; font-size:.8125rem; color:var(--muted); background:transparent; }
.profile-action:hover { color:var(--ink); background:var(--hover); }
.profile-action:active { opacity:.72; }
.profile-action:disabled { opacity:.5; cursor:wait; }
.profile-return { flex:none; }
.profile-return svg { width:16px; height:16px; transform:rotate(180deg); }
.play-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.play-session-nav { display:flex; align-items:stretch; gap:5px; min-width:0; }
.play-session-nav .choice-control { display:flex; align-items:stretch; min-width:0; }
.player-review-page .choice-control > .choice-trigger { min-width:0; max-width:100%; min-height:44px; }
.play-session-nav .choice-trigger { width:13rem; }
.player-review-page .choice-trigger > span { min-width:0; overflow-wrap:anywhere; }
.player-review-page .choice-control > .choice-menu { max-height:min(420px,calc(100dvh - 24px)); overflow-y:auto; min-width:min(17rem,calc(100vw - 24px)); max-width:calc(100vw - 24px); }
.player-review-page .choice-control > .choice-menu button { white-space:normal; overflow-wrap:anywhere; }
.player-review-page #play-session-menu button > span { min-width:0; }
.player-review-page #play-session-menu .choice-option-detail { margin-left:auto; flex:none; font-size:.75rem; font-weight:400; font-variant-numeric:tabular-nums; white-space:nowrap; opacity:.8; }
.play-mode-field { margin-left:auto; width:11rem; min-width:0; }
.play-mode-field .choice-control { display:flex; }
.play-mode-field .choice-control,.play-mode-field .choice-trigger { width:100%; }
.play-session-field { min-width:0; max-width:100%; }
.play-session-field .choice-trigger { width:auto; max-width:24rem; }
.play-nav-button { min-width:44px; min-height:44px; padding:2px 6px; color:#24211b; border:8px solid transparent; border-image:url('/assets/ui-controls/button-frame.svg') 20 fill / 8px / 0 stretch; display:grid; place-items:center; }
.play-nav-button svg { width:16px; height:16px; }
#play-earlier svg { transform:rotate(180deg); }
.play-nav-button:disabled { opacity:.35; cursor:default; }
.play-nav-button:hover:not(:disabled) { filter:brightness(1.06); }
.play-nav-button:active:not(:disabled) { opacity:1; filter:brightness(.94); }
.play-back { min-height:44px; padding:10px 0; color:var(--tint); font-size:.875rem; text-align:left; }
.play-back:hover { color:var(--tint-hover); text-decoration:underline; }
#player-review-content { container:play-review / inline-size; }
.play-review { display:grid; grid-template-columns:minmax(0,1fr) 10rem; align-items:center; gap:0 24px; padding:0 0 24px; border-bottom:1px solid var(--line); background:transparent; }
.play-time-totals { display:flex; flex-direction:column; gap:10px; margin:0; }
.play-time-total { display:flex; gap:8px; align-items:baseline; }
.play-time-total dt { font-size:.8125rem; color:var(--muted); }
.play-time-total dd { margin:0; font:600 1.125rem/1.3 var(--number); font-variant-numeric:tabular-nums; }
.play-time-total.win dd,.play-time-total.win .play-result-symbol { color:var(--tint); }
.play-time-total.loss dd,.play-time-total.loss .play-result-symbol { color:var(--play-loss); }
.play-time-total.other dd { color:var(--muted); }
.play-result-symbol { font-weight:700; margin-right:6px; }
.play-duration-chart { margin:0; }
.play-duration-chart figcaption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; font-size:.8125rem; font-weight:600; }
.play-duration-chart figcaption small { color:var(--muted); font-size:.75rem; font-weight:400; }
.play-chart-frame { display:grid; grid-template-columns:2.5rem minmax(0,1fr); gap:8px; padding-top:24px; }
.play-chart-axis { position:relative; height:var(--play-chart-height); color:var(--muted); font-size:.6875rem; text-align:right; font-variant-numeric:tabular-nums; }
.play-chart-axis > span { position:absolute; right:0; top:var(--tick-position); transform:translateY(-50%); }
.play-chart-unit { position:absolute; right:0; top:-22px; font:inherit; }
.play-chart-scroll { min-width:0; overflow-x:auto; padding:2rem 4px 0; margin-top:-2rem; overscroll-behavior-x:contain; scrollbar-width:thin; }
.play-chart-bars { position:relative; display:grid; grid-template-columns:repeat(var(--game-count),minmax(3.5rem,1fr)); min-width:calc(var(--game-count) * 4rem); }
.play-chart-grid { position:absolute; left:0; right:0; top:0; height:var(--play-chart-height); display:flex; flex-direction:column; justify-content:space-between; pointer-events:none; }
.play-chart-grid > i { display:block; border-top:1px solid color-mix(in srgb,var(--play-accent) 25%,var(--background)); opacity:.6; }
.play-chart-grid > i:last-child { opacity:1; }
.play-game { position:relative; min-width:0; padding:0 4px 4px; border:0; background:transparent; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:8px; border-radius:2px; }
.play-game:hover { background:transparent; }
.play-game-plot { width:100%; height:var(--play-chart-height); position:relative; display:flex; align-items:flex-end; justify-content:center; }
/* Cut corners and native menu paper echo Deadlock's item cards without extra chrome. */
.play-game-bar { --game-fill:var(--play-other-bar); --game-edge:#f4e5c540; --game-stroke:1px; --game-cut:6px; --game-inner-cut:calc(var(--game-cut) - var(--game-stroke) * .585786); position:relative; isolation:isolate; width:min(75%,52px); height:var(--bar-height); display:flex; align-items:flex-end; justify-content:center; flex:none; }
.play-game-bar::before,.play-game-bar::after,.play-game-surface { position:absolute; pointer-events:none; }
.play-game-bar::before { content:""; inset:0; z-index:-3; background:var(--game-edge); clip-path:polygon(0 var(--game-cut),var(--game-cut) 0,calc(100% - var(--game-cut)) 0,100% var(--game-cut),100% 100%,0 100%); }
.play-game-surface,.play-game-bar::after { inset:var(--game-stroke); clip-path:polygon(0 var(--game-inner-cut),var(--game-inner-cut) 0,calc(100% - var(--game-inner-cut)) 0,100% var(--game-inner-cut),100% 100%,0 100%); }
.play-game-surface { z-index:-2; background:var(--game-fill); }
.play-game-bar::after { content:""; z-index:-1; background:url('/assets/ui-controls/paper.webp') center / 180px repeat; mix-blend-mode:multiply; opacity:.22; }

.play-game.win .play-game-bar { --game-fill:var(--play-win-bar); }
.play-game.loss .play-game-bar { --game-fill:var(--play-loss-bar); }
.play-game:hover .play-game-bar,.play-game[aria-pressed=true] .play-game-bar { --game-edge:var(--ink); --game-stroke:2px; }
.play-game[aria-pressed=true] .play-game-hero { outline:2px solid var(--ink); outline-offset:3px; }
.play-game-bar.no-duration { height:0; border:0; }
.play-game-length { position:absolute; bottom:100%; margin-bottom:7px; font:600 .8125rem/1 var(--number); color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.play-game-result { color:var(--play-bar-ink); font-size:.75rem; font-weight:700; line-height:1; padding-bottom:4px; }
.no-duration .play-game-result { display:none; }
.play-game-hero { display:flex; border:1px solid color-mix(in srgb,var(--play-accent) 50%,var(--background)); background:var(--inset); border-radius:2px; }
.play-game-hero .hero-avatar { width:30px; height:34px; display:block; object-fit:cover; pointer-events:none; }
.play-game-clock { font-size:.6875rem; line-height:1.3; text-align:center; font-variant-numeric:tabular-nums; color:var(--muted); }
.play-selected-match:empty { display:none; }
.play-selected-match { grid-column:1 / -1; position:relative; margin-top:20px; }
.play-selected-match .match-entry { border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.play-selected-heading { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-bottom:8px; }
.play-selected-heading button { min-height:44px; min-width:44px; color:var(--muted); font-size:1.125rem; }
.play-day-stats { border-top:1px solid var(--line); margin-top:20px; padding-top:20px; }
.play-day-stats h3 { font-size:.875rem; font-weight:600; margin-bottom:14px; }
.play-day-stats dl { display:grid; grid-template-columns:1.8fr 1.2fr 1fr 1fr; gap:20px; margin:0; }
.play-day-stats dl > div { min-width:0; }
.play-day-stats dt { color:var(--muted); font-size:.75rem; margin-bottom:6px; }
.play-day-stats dd { margin:0; font:600 1.25rem/1.4 var(--number); font-variant-numeric:tabular-nums; }
.play-day-stats dd i { font:400 1rem var(--body); color:var(--muted); }
.play-section-heading { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; margin-bottom:14px; }
.play-section-heading h3 { font-size:1rem; }
.play-section-heading > span { font-size:.8125rem; color:var(--muted); }
.player-review-page .match-history { margin:0; }
.player-review-page .match-row,.player-review-page .match-columns { grid-template-columns:minmax(0,1.6fr) .8fr 1.2fr .7fr .65fr 44px; gap:12px; }
.player-review-page .match-row { width:100%; text-align:left; min-height:76px; padding:14px; }
.player-review-page .match-hero { min-width:0; }
.player-review-page .match-hero > span { min-width:0; }
.player-review-page .match-hero strong { font-size:.875rem; overflow-wrap:anywhere; }
.player-review-page .match-hero small { font-size:.75rem; line-height:1.5; overflow-wrap:anywhere; }
.player-review-page .match-hero .hero-avatar { width:36px; height:42px; border:1px solid var(--line); object-fit:cover; border-radius:2px; flex:none; }
.player-review-page .match-row .outcome { font-size:.875rem; }
.player-review-page .match-row .outcome.loss { color:var(--play-loss); }
.player-review-page .match-kda,.player-review-page .match-souls,.player-review-page .match-duration { font-size:.875rem; }
.player-review-page .match-columns { font-size:.75rem; padding:11px 14px; }
.play-more-row { display:flex; justify-content:center; padding:24px 0 4px; }
.play-more-row:empty { display:none; }
.play-more-row .button { min-height:44px; font-size:.875rem; }
.play-history-heading { margin:4px 0 24px; }
.play-history-heading h2 { font:700 2rem/1.2 var(--display); }
.play-eyebrow { font-size:.75rem; letter-spacing:.08em; color:var(--play-accent); margin-bottom:8px; }
.play-history-heading p:last-child { font-size:.875rem; color:var(--muted); margin-top:8px; }
.play-profile-extra { border:1px solid var(--line); border-radius:5px; background:var(--surface); margin:24px 0 8px; }
.play-profile-extra > summary { min-height:44px; padding:16px 20px; cursor:pointer; font-size:.875rem; }
#play-profile-insights { padding:0 20px 20px; }
.play-profile-insight-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:24px; }
.play-profile-insight-grid h3 { margin:8px 0 16px; font-size:.9375rem; }
.play-profile-insight-grid h3 small { display:block; color:var(--muted); font-size:.75rem; font-weight:400; margin-top:4px; }
.play-profile-insight-grid .profile-footnote,.play-profile-insight-grid .profile-rank-row span,.play-profile-insight-grid .profile-rank-row small { font-size:.75rem; }
.play-empty { padding:28px; border:1px solid var(--line); background:var(--surface); border-radius:5px; }
.play-empty h2 { font:700 1.875rem/1.25 var(--display); }
.play-empty p { color:var(--muted); margin:14px 0 20px; max-width:55ch; }
.play-no-session { min-height:44px; display:flex; align-items:center; font-size:.875rem; color:var(--muted); }
.play-loading-identity { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:24px 0 20px; min-height:92px; }
.play-loading-identity > i { width:48px; height:48px; border:1px solid var(--line); background:var(--surface); border-radius:4px; }
.play-loading-identity > span { flex:1; min-width:50px; max-width:150px; width:150px; height:20px; background:var(--surface); border-radius:3px; }
.play-loading-identity > b { width:13rem; height:44px; margin-left:auto; border:1px solid var(--line); background:var(--surface); clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px); }
.play-loading-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.play-loading-controls > i,.play-loading-controls > span { height:44px; background:var(--surface); border:1px solid var(--line); clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px); }
.play-loading-controls > i { width:min(18rem,60%); }
.play-loading-controls > span { width:min(11rem,30%); }
.play-loading-chart { display:flex; flex-direction:column; justify-content:space-between; height:var(--play-chart-height); margin:24px 0 94px 3rem; }
.play-loading-chart > i { border-top:1px solid var(--line); opacity:.5; }
.play-feedback { color:var(--muted); font-size:.875rem; }
.player-review-page :is(.play-nav-button,.choice-trigger,.button,.text-link,.play-back,.match-row,.play-game,.play-chart-scroll,summary):focus-visible { outline:2px solid var(--tint); outline-offset:3px; }
.player-review-page .match-row:focus-visible,.player-review-page summary:focus-visible { outline-offset:-3px; }
@container play-review (max-width:44rem) {
 .play-day-stats dl { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
 .play-day-stats dl > div:first-child { grid-column:1 / -1; }
}
@container play-review (max-width:26rem) {
 .play-review { grid-template-columns:minmax(0,1fr); padding:0 0 20px; gap:16px; }
 .play-time-totals { flex-direction:row; flex-wrap:wrap; gap:12px 18px; }
 .play-time-total { display:block; }
 .play-time-total dd { font-size:1.125rem; }
 .play-chart-axis,.play-game-plot,.play-chart-grid { height:var(--play-chart-height); }
 .play-game-bar { width:70%; }
 .play-day-stats dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .player-review-page .match-row { grid-template-columns:minmax(0,1fr) auto 44px; grid-template-areas:"hero outcome toggle" "kda kda toggle"; row-gap:8px; padding:12px; }
 .player-review-page .match-hero { grid-area:hero; }
 .player-review-page .match-row .outcome { grid-area:outcome; font-size:.75rem; }
 .player-review-page .match-kda { grid-area:kda; }
 .player-review-page .row-chevron { grid-area:toggle; width:44px; justify-self:end; }
 .player-review-page .match-souls,.player-review-page .match-duration,.player-review-page .match-columns { display:none; }
}
@media(max-width:700px) {
 .player-review-page .profile-heading { gap:10px; padding:20px 0 16px; }
 .play-loading-identity { gap:10px; padding:20px 0 16px; }
 .play-loading-identity > b { flex-basis:100%; width:13rem; max-width:13rem; margin-left:0; }
 .player-review-page .profile-title h1 { font-size:1.5rem; }
 .profile-return { width:44px; padding-inline:0; }
 .profile-return-label { display:none; }
 .player-review-page .profile-status { flex-basis:100%; align-items:flex-start; margin:0; gap:6px; }
 .player-review-page .profile-status > small { text-align:left; }
 .play-toolbar { gap:10px; margin-bottom:16px; }
 .play-session-nav { width:100%; }
 .play-session-nav .choice-control { flex:1; }
 .play-session-nav .choice-trigger { width:100%; }
 .play-mode-field { width:auto; flex:1 1 9rem; margin-left:0; }
 .play-session-field { flex:1 1 10rem; }
 .play-session-field .choice-control,.play-session-field .choice-trigger { width:100%; }
}
@media(prefers-color-scheme:dark) {
 .player-review-page { --play-accent:#dbc59b; --play-loss:var(--negative); --play-win-bar:#78a686; --play-loss-bar:#be8073; --play-other-bar:#858479; --play-bar-ink:#141416; }
}
@media(forced-colors:active) {
 .play-review,.play-profile-extra { background:Canvas; border-color:CanvasText; color:CanvasText; }
 .play-game-bar,.play-game.win .play-game-bar,.play-game.loss .play-game-bar { background:Canvas; border:1px solid CanvasText; }
 .play-game-result { color:CanvasText; }
 .play-game-bar { --game-edge:CanvasText; }
 .play-game-bar::before { background:CanvasText; }
 .play-game-surface { background:Canvas; }
 .play-game-bar::after { display:none; }
 .play-game:hover .play-game-bar,.play-game[aria-pressed=true] .play-game-bar { --game-edge:Highlight; }
 .play-nav-button { border:1px solid ButtonText; border-image:none; background:ButtonFace; color:ButtonText; }
 .player-review-page :is(.play-nav-button,.choice-trigger,.button,.text-link,.play-back,.match-row,.play-game,.play-chart-scroll,summary):focus-visible { outline-color:Highlight; }
}

/* The chart adds context above the established player dashboard. */
#player-profile-content { container:play-review / inline-size; }
.play-profile-dashboard { margin-top:24px; }
.play-profile-window { color:var(--muted); font-size:.8125rem; }
.play-insight-skeleton { height:120px; width:100%; }
.player-review-page .profile-main,.player-review-page .profile-sidebar { min-width:0; }
.player-review-page .profile-feature-stats .profile-metric > strong { overflow-wrap:anywhere; }
.player-review-page .profile-feature-stats .profile-metric.profile-kda > strong { white-space:normal; }
@container play-review (max-width:48rem) {
 .player-review-page .profile-dashboard-grid { grid-template-columns:minmax(0,1fr); }
 .player-review-page .profile-main { grid-row:1; }
 .player-review-page .profile-sidebar { position:static; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); }
 .player-review-page .profile-feature-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .player-review-page .profile-side-section:last-child { grid-column:1 / -1; }
 .player-review-page .profile-hero-row { grid-template-columns:32px minmax(0,1fr) 4rem; gap:8px; }
 .player-review-page .profile-hero-row > span:last-child { grid-column:2 / -1; text-align:left; }
}

/* Compact insights leave the primary column to recorded matches. */
.player-review-page .profile-dashboard-grid { grid-template-columns:220px minmax(0,1fr); gap:24px; }
.player-review-page .profile-sidebar { gap:18px; }
.player-review-page .profile-side-section > h2 { margin-bottom:8px; font-size:.875rem; }
.player-review-page .profile-side-card { padding:12px; border-radius:6px; }
.player-review-page #profile-rating { min-height:0; padding:0; }
.player-review-page .profile-rank-row { gap:10px; padding:10px 12px; }
.player-review-page .profile-rank-icon,.player-review-page .profile-rank-unknown { width:36px; height:36px; }
.player-review-page .profile-rank-row strong { font-size:.875rem; margin:2px 0; }
.player-review-page .profile-rank-row span,.player-review-page .profile-rank-row small { font-size:.625rem; }
.player-review-page #profile-accuracy { min-height:0; }
.player-review-page .profile-accuracy-value strong { font-size:1.5rem; }
.player-review-page .profile-accuracy-bar { margin:10px 0; }
.player-review-page .profile-shots { font-size:.75rem; gap:5px; }
.player-review-page .profile-footnote { margin-top:8px; }
.player-review-page .profile-form-strip { height:20px; }
.player-review-page .profile-current-streak { margin-top:10px; }
.player-review-page .profile-current-streak strong { font-size:1rem; }
.play-hero-performance .profile-side-card { padding:0 12px; }
.play-hero-summary { display:flex; align-items:center; gap:12px; min-height:58px; padding:8px 0; border-bottom:1px solid var(--line); }
.play-hero-summary:last-child { border:0; }
.play-hero-summary .hero-avatar { width:36px; height:40px; flex:none; object-fit:cover; }
.play-hero-summary > span { display:grid; gap:3px; min-width:0; }
.play-hero-summary strong { font:600 .9375rem/1.2 var(--number); }
.play-hero-summary strong small { color:var(--muted); font-size:.6875rem; font-weight:400; }
.play-hero-summary > span > span { color:var(--muted); font-size:.75rem; }
.play-hero-summary:hover { color:var(--tint); }
.play-hero-summary:focus-visible { outline:2px solid var(--tint); outline-offset:2px; }
.play-total-stats > div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:6px 0; border-bottom:1px solid var(--line); font-size:.75rem; }
.play-total-stats > div:last-child { border:0; }
.play-total-stats dt { color:var(--muted); }
.play-total-stats dd { font-variant-numeric:tabular-nums; }
.player-review-page .profile-performance-toolbar { min-height:24px; margin-bottom:8px; gap:12px; }
.player-review-page .profile-performance-toolbar h2 { margin:0; font-size:.875rem; }
.play-profile-window { font-size:.75rem; }
.player-review-page .profile-overview { margin-bottom:16px; border-radius:6px; }
.player-review-page .profile-feature-stats { padding:12px 0; }
.player-review-page .profile-metric { padding:0 14px; }
.player-review-page .profile-metric > span { font-size:.6875rem; }
.player-review-page .profile-metric > strong { font-size:1.375rem; margin:4px 0 0; }
.player-review-page .profile-feature-stats .profile-metric.profile-kda > strong { font-size:1.0625rem; line-height:1.55; }
@container play-review (max-width:48rem) {
 .player-review-page .profile-dashboard-grid { grid-template-columns:minmax(0,1fr); }
 .player-review-page .profile-feature-stats { padding:0; }
 .player-review-page .profile-metric { padding:10px 12px; border-bottom:1px solid var(--line); }
 .player-review-page .profile-metric:nth-child(2) { border-right:0; }
 .player-review-page .profile-metric:nth-child(3),.player-review-page .profile-metric:nth-child(4) { border-bottom:0; }
}

/* Container frames carry the theme; internal rows and chart labels stay unframed.
   A painted outline preserves existing padding, dimensions and cut-edge borders. */
.player-review-page :is(.profile-side-card,.profile-overview,.match-list,.play-profile-extra,.play-empty,.play-more-row .button,.profile-action) {
 --panel-cut:6px; --panel-stroke:1px;
 --panel-inner-corner:calc(var(--panel-cut) + var(--panel-stroke)*.41421356);
 position:relative; isolation:isolate; border:1px solid transparent; border-radius:0;
 clip-path:polygon(var(--panel-cut) 0,calc(100% - var(--panel-cut)) 0,100% var(--panel-cut),100% calc(100% - var(--panel-cut)),calc(100% - var(--panel-cut)) 100%,var(--panel-cut) 100%,0 calc(100% - var(--panel-cut)),0 var(--panel-cut));
}
.player-review-page :is(.profile-side-card,.profile-overview,.match-list,.play-profile-extra,.play-empty,.play-more-row .button,.profile-action)::after {
 content:""; position:absolute; inset:-1px; z-index:2; pointer-events:none; background:var(--panel-edge,var(--line));
 clip-path:polygon(evenodd,
  var(--panel-cut) 0,calc(100% - var(--panel-cut)) 0,100% var(--panel-cut),100% calc(100% - var(--panel-cut)),calc(100% - var(--panel-cut)) 100%,var(--panel-cut) 100%,0 calc(100% - var(--panel-cut)),0 var(--panel-cut),var(--panel-cut) 0,
  var(--panel-inner-corner) var(--panel-stroke),var(--panel-stroke) var(--panel-inner-corner),var(--panel-stroke) calc(100% - var(--panel-inner-corner)),var(--panel-inner-corner) calc(100% - var(--panel-stroke)),calc(100% - var(--panel-inner-corner)) calc(100% - var(--panel-stroke)),calc(100% - var(--panel-stroke)) calc(100% - var(--panel-inner-corner)),calc(100% - var(--panel-stroke)) var(--panel-inner-corner),calc(100% - var(--panel-inner-corner)) var(--panel-stroke),var(--panel-inner-corner) var(--panel-stroke));
}
.player-review-page :is(.play-more-row .button,.profile-action):focus-visible { --panel-stroke:2px; --panel-edge:var(--tint); outline:0; }
.player-review-page .choice-control > .choice-menu {
 border:8px solid transparent; border-image:url('/assets/ui-controls/charcoal-frame.svg') 8 fill / 8px / 0 stretch;
 border-radius:0; background:transparent; box-shadow:none;
}
.player-review-page .choice-control > .choice-menu button { border-radius:0; }
@media(forced-colors:active) {
 .player-review-page :is(.profile-side-card,.profile-overview,.match-list,.play-profile-extra,.play-empty,.play-more-row .button,.profile-action) { clip-path:none; border-color:CanvasText; background:Canvas; color:CanvasText; }
 .player-review-page :is(.profile-side-card,.profile-overview,.match-list,.play-profile-extra,.play-empty,.play-more-row .button,.profile-action)::after { display:none; }
 .player-review-page :is(.play-more-row .button,.profile-action):focus-visible { outline:2px solid Highlight; outline-offset:-3px; }
 .player-review-page .choice-control > .choice-menu { border:1px solid CanvasText; border-image:none; background:Canvas; color:CanvasText; }
}

/* Player identity and its action share the same row alignment. */
.player-review-page .scoreboard td { vertical-align:middle; }
.score-player { display:flex; align-items:center; gap:10px; min-height:44px; max-width:400px; }
.score-player .score-hero { display:flex; align-items:center; flex:none; min-height:44px; }
.score-player-name { min-width:0; max-width:18rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.score-player .player-id-link,.score-player .you-tag { display:inline-flex; align-items:center; flex:none; margin:0; padding-left:0; min-height:44px; font-size:.6875rem; }

/* Compact expanded matches use the width for teams, rather than a long roster. */
.player-review-page .match-detail { padding:12px; container:match-detail / inline-size; }
.player-review-page .detail-heading { align-items:center; justify-content:flex-start; gap:4px 10px; margin-bottom:8px; }
.player-review-page .detail-heading h3,.player-review-page .detail-heading > span { font-size:.75rem; }
.player-review-page .match-detail-duration { display:inline-flex; align-items:center; flex:none; gap:6px; color:var(--ink); white-space:nowrap; }
.player-review-page .match-detail-duration svg { width:1rem; height:1rem; }
.player-review-page .match-detail-duration strong { font:600 1rem/1.25 var(--number); font-variant-numeric:tabular-nums; }
.player-review-page .detail-heading .match-detail-id { color:var(--muted); font-weight:400; padding-left:10px; border-left:1px solid var(--line); }
.player-review-page .detail-heading > .text-link { min-height:24px; margin-left:auto; font-size:.75rem; }
.player-review-page .recorded-build { display:flex; align-items:center; gap:10px; margin-bottom:10px; min-width:0; }
.player-review-page .recorded-build .item-list { flex:1; min-width:0; flex-wrap:nowrap; overflow-x:auto; gap:4px; padding:2px 0; scrollbar-width:thin; }
.player-review-page .recorded-build .item-chip { flex:none; width:36px; height:36px; padding:3px; border-radius:4px; }
.scoreboards { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:10px; }
.scoreboards .scoreboard-scroll { min-width:0; scrollbar-width:thin; }
.scoreboards .scoreboard-scroll:focus-visible { outline:2px solid var(--tint); outline-offset:2px; }
.score-team-table { table-layout:fixed; min-width:19rem; font-size:.75rem; }
.score-team-table caption { text-align:left; background:var(--inset); padding:7px 6px; font-size:.75rem; }
.score-team-table caption > strong { margin-right:8px; }
.score-team-result { color:var(--muted); }
.score-team-result.win { color:var(--tint); }
.score-team-result.loss { color:var(--play-loss); }
.score-player-col { width:55%; }.score-kda-col { width:20%; }.score-souls-col { width:12%; }.score-damage-col { width:13%; }
.player-review-page .score-team-table th,.player-review-page .score-team-table td { padding:4px 4px; line-height:1.3; }
.player-review-page .score-team-table thead th { padding:6px 4px; font-size:.625rem; }
.score-team-table .score-player { min-height:28px; max-width:none; gap:6px; }
.score-team-table .score-hero,.score-team-table .player-id-link,.score-team-table .you-tag { min-height:28px; }
.score-team-table .score-player-name { max-width:none; }
.score-team-table .tiny-avatar { width:20px; height:24px; }
.score-team-table .player-id-link,.score-team-table .you-tag { font-size:.625rem; }
@container match-detail (min-width:52rem) {
 .scoreboards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (pointer:coarse) {
 .score-team-table .score-player,.score-team-table .score-hero,.score-team-table .player-id-link,.score-team-table .you-tag { min-height:36px; }
 .player-review-page .recorded-build .item-chip { width:40px; height:40px; }
}

.score-team-table .score-hero { min-width:24px; justify-content:center; }

@container match-detail (max-width:52rem) {
 .player-review-page .recorded-build .item-list { flex-wrap:wrap; overflow-x:visible; }
}

/* Six destinations share the phone tab bar. */
@media(max-width:600px) { .main-nav { gap:2px; padding-inline:6px; }.main-nav a { padding:6px 2px; }.main-nav a > span { white-space:nowrap; } }
@media(max-width:360px) { .main-nav a { font-size:.6875rem; } }

/* Recent performance keeps its compact heading above the stat row. */
.player-review-page .profile-performance-heading { min-width:0; }
.player-review-page .profile-performance-heading .play-profile-window { display:block; margin-top:3px; font-size:.6875rem; }
#profile-solo dd { flex:0 0 5ch; text-align:right; white-space:nowrap; }

/* Refresh feedback occupies the existing icon slot and never changes the header. */
.player-refresh-icon { position:relative; display:block; flex:none; width:16px; height:16px; }
.player-refresh-icon svg { display:block; width:100%; height:100%; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
#player-refresh[aria-busy=true] { color:var(--ink); background:var(--hover); opacity:1; cursor:progress; }
#player-refresh[aria-busy=true] .player-refresh-icon svg { visibility:hidden; }
#player-refresh[aria-busy=true] .player-refresh-icon::after { content:""; position:absolute; inset:0; border:2px solid rgb(255 255 255 / .2); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
