@font-face { font-family: "Chakra Petch"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/chakra-petch-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/unbounded-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #050507;
  --surface: rgba(20, 22, 30, 0.72);
  --surface-solid: #12141b;
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f3f6;
  --muted: #8f95a6;
  --accent: #e2533b;
  --accent-2: #ff9a3c;
  --gold: #f0c05a;
  --good: #4cd694;
  --bad: #ff6464;
  --str: #ec4b3c;
  --agi: #3fcf6a;
  --int: #3ea6f5;
  --all: #c79bff;
  --ac: var(--accent);
  --radius: 18px;
  --display: "Chakra Petch", system-ui, sans-serif;
  --epic: "Unbounded", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 "Chakra Petch", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.foot a { color: var(--gold); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
main, .foot, .top { position: relative; z-index: 2; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.attr-str { --ac: var(--str); }
.attr-agi { --ac: var(--agi); }
.attr-int { --ac: var(--int); }
.attr-all { --ac: var(--all); }

/* ---------- preloader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(circle at 50% 45%, #1c0e0a, #050507 65%);
  transition: opacity .6s ease, visibility 0s .6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-bar { width: 220px; height: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); width: 40%; box-shadow: 0 0 12px var(--accent); animation: load 1.1s cubic-bezier(.6, 0, .4, 1) infinite; }
#loader.failed .loader-bar { display: none; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.loader-text { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0; text-align: center; max-width: 320px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--gold)); box-shadow: 0 0 14px var(--accent); }

/* ---------- header ---------- */

/* ---------- shared ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--accent-2); margin: 0 0 18px; font-weight: 600; }
.eyebrow .line { width: 42px; height: 1px; background: currentColor; }
.section-title { font-family: var(--epic); font-weight: 900; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.05; margin: 0; letter-spacing: -.03em; text-transform: uppercase; }

/* ---------- motion ----------
   Everything that moves does it once: an element marked data-rv fades up when it first scrolls into view.
   Only opacity and transform change, so the compositor does the work and scrolling stays native. */
[data-rv] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
[data-rv].in { opacity: 1; transform: none; }
main { transition: opacity .22s ease; }
main.leaving { opacity: 0; }
.grid.refresh { animation: refresh .35s ease; }
@keyframes refresh { from { opacity: .25; } }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 600; overflow: hidden; isolation: isolate; }
.btn span { position: relative; z-index: 1; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 40px -10px rgba(226, 83, 59, .9); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--gold), #fff1c4); transform: translateY(101%); transition: transform .5s cubic-bezier(.7, 0, .2, 1); z-index: 0; }
.btn-primary:hover::before { transform: none; }
.btn-primary:hover { color: #1a0f05; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .1); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.btn-ghost:hover::before { transform: none; }

/* ---------- intro ---------- */
.intro { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 90px; }
.intro-media { position: absolute; inset: 0 0 0 38%; display: grid; place-items: center; pointer-events: none; }
.intro-glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(226, 83, 59, .5), rgba(226, 83, 59, .18) 35%, rgba(226, 83, 59, 0) 68%); }
#intro-video, .hero-video { position: relative; width: 100%; height: 100%; object-fit: contain; background: center / contain no-repeat; }
#intro-video { max-width: 900px; }
/* Fade the render's bottom edge with an overlay; a mask on a playing video is re-applied every frame */
.intro-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, rgba(5, 5, 7, 0), var(--bg)); }
.intro-media { opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 1.8s cubic-bezier(.2, .7, .2, 1); }
body.ready .intro-media { opacity: 1; transform: none; }
.intro::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.intro-content { position: relative; z-index: 2; }
.intro-title { font-family: var(--epic); font-weight: 900; font-size: clamp(46px, 9vw, 136px); line-height: .95; margin: 0 0 26px; letter-spacing: -.04em; text-transform: uppercase; perspective: 800px; }
.intro-title span { display: block; padding: .04em 0 .06em; }
.gold { background: linear-gradient(100deg, var(--gold) 10%, #fff5d6 45%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-lead { max-width: 520px; color: #b7bcc9; font-size: 18px; margin: 0 0 34px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.intro-now { position: absolute; right: 0; bottom: -40px; display: grid; gap: 2px; text-align: right; padding: 16px 20px; border-radius: 16px; background: rgba(12, 12, 16, .6); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.intro-now:empty { display: none; }
.now-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.intro-now > b { font: 700 22px/1.2 var(--display); }
.intro-now em { font-style: normal; font-weight: 700; }
.intro-now .tier { width: 22px; height: 22px; font-size: 12px; vertical-align: middle; }
/* ---------- top meta ----------
   Tall portrait cards like the hero grid on dota2.com: a still render, the animated one only on hover. */
.top-meta { position: relative; padding: 100px 0 40px; }
.top-head { margin-bottom: 36px; }
.top-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.top-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4.4; border-radius: 6px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 22%, #0d0e13), #07070a 75%);
}
.top-card::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 30%, transparent); transition: box-shadow .35s; pointer-events: none; }
.top-card:hover::before { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ac) 85%, transparent); }
.top-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 7, .92) 88%); pointer-events: none; }
.top-rank { position: absolute; left: 14px; top: 10px; z-index: 2; font: 900 20px/1 var(--epic); color: color-mix(in srgb, var(--ac) 70%, #fff); }
.top-art { position: absolute; inset: 0; }
.top-still, .top-video { position: absolute; left: 50%; top: 0; width: 170%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 12%; transform: translateX(-50%); transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; }
.top-still.portrait { width: 100%; height: 56%; top: 14%; object-fit: cover; object-position: center; }
.top-video { opacity: 0; }
.top-card.playing .top-video { opacity: 1; }
.top-card.playing .top-still { opacity: 0; }
.top-card:hover .top-still, .top-card:hover .top-video { transform: translateX(-50%) scale(1.05); }
.top-info { position: relative; z-index: 2; padding: 0 16px 16px; }
.top-attr { display: flex; align-items: center; gap: 8px; color: #c5c8d2; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 4px; }
.top-info h3 { font: 900 clamp(15px, 1.5vw, 22px)/1.1 var(--epic); margin: 0 0 12px; letter-spacing: -.01em; text-transform: uppercase; }
.top-stats { display: flex; gap: 14px; }
.top-stats span { display: grid; gap: 1px; }
.top-stats b { font: 700 16px/1.1 var(--display); }
.top-stats b.tier { width: 22px; height: 22px; font-size: 12px; }
.top-stats small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 90px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 40px; }
.num { padding: 0 24px; border-left: 1px solid var(--border); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font: 900 clamp(34px, 4.6vw, 68px)/1 var(--epic); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #a9adba); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.num span { display: block; color: var(--muted); margin-top: 10px; font-size: 14px; }

/* ---------- browse ---------- */
.browse { padding: 110px 0 40px; }
.browse-head { margin-bottom: 34px; }
.controls {
  position: sticky; top: 78px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 10px;
  background: rgba(12, 13, 18, .8); border: 1px solid var(--border); border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.search, .dd-btn, .seg { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; height: 44px; transition: border-color .2s, box-shadow .2s; }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 14px; min-width: 0; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; }
.search:focus-within, .dd-btn:focus-visible, .dd.open .dd-btn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 83, 59, .22); outline: 0; }
.seg { position: relative; display: flex; padding: 3px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg button { position: relative; border: 1px solid transparent; background: none; padding: 0 12px; border-radius: 9px; cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s, background .25s, border-color .25s; }
.seg button.on, .seg button:hover { color: var(--text); }
.seg button.on { background: linear-gradient(135deg, rgba(226, 83, 59, .45), rgba(255, 154, 60, .25)); border-color: rgba(226, 83, 59, .6); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend .count { margin-left: auto; }

.attr { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.attr.str { background: var(--str); box-shadow: 0 0 8px var(--str); }
.attr.agi { background: var(--agi); box-shadow: 0 0 8px var(--agi); }
.attr.int { background: var(--int); box-shadow: 0 0 8px var(--int); }
.attr.all { background: linear-gradient(135deg, var(--str), var(--agi) 50%, var(--int)); box-shadow: 0 0 8px var(--all); }

.tier { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font: 900 14px/1 var(--epic); color: #140c08; }
.t-S { background: linear-gradient(135deg, #ffb36b, #ff5f3c); box-shadow: 0 0 16px rgba(255, 110, 60, .8); }
.t-A { background: linear-gradient(135deg, #ffe08a, #e6aa2f); box-shadow: 0 0 10px rgba(240, 192, 90, .5); }
.t-B { background: #a4d977; }
.t-C { background: #86b0e0; }
.t-D { background: #7d8596; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.card { position: relative; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .3s, box-shadow .4s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.card[hidden] { display: none; }
.card:hover { border-color: color-mix(in srgb, var(--ac) 75%, transparent); box-shadow: 0 24px 50px -16px color-mix(in srgb, var(--ac) 70%, transparent); transform: translateY(-4px); z-index: 3; }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 7, .7)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.card:hover .card-img img { transform: scale(1.08); filter: saturate(1.2) brightness(1.08); }
.card-img .tier { position: absolute; top: 8px; right: 8px; z-index: 1; }
.card-body { padding: 10px 12px 12px; }
.card-name { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-stats { display: flex; justify-content: space-between; font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.card-stats small { color: var(--muted); font-size: 11px; }
.state { color: var(--muted); padding: 24px 0; margin: 0; }
.state.error { color: var(--bad); }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-rows { display: grid; gap: 10px; }
.skel-rows .skeleton { display: block; height: 34px; }
.skel-core { height: 120px; margin-bottom: 16px; }

/* ---------- hero page ----------
   Laid out like a hero page on dota2.com: name and stats on the left, the render large on the right. */
.hero-stage { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 110px; overflow: hidden; isolation: isolate; }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 60% 70% at 70% 45%, color-mix(in srgb, var(--ac) 26%, transparent), transparent 70%), linear-gradient(90deg, #050507 30%, transparent); }
.hero-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.hero-art { position: absolute; z-index: -1; top: 0; bottom: 0; right: -4%; width: 64%; display: grid; place-items: center; opacity: 0; transform: translateX(60px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hero-art.in { opacity: 1; transform: none; }
.hero-art .hero-video { height: 100%; max-height: 100svh; object-position: center; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); align-items: end; gap: 30px; }
.hero-info { max-width: 580px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); padding: 8px 16px 8px 12px; margin-bottom: 26px; border-radius: 999px; border: 1px solid var(--border); background: rgba(12, 12, 16, .6); transition: color .3s, border-color .3s, opacity .8s, transform .8s; }
.back span { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.back:hover { color: var(--text); border-color: var(--accent); }
.back:hover span { transform: translateX(-5px); }
video.failed { object-fit: contain; }
/* No render available: frame the portrait instead of leaving a bare rectangle */
video.portrait {
  width: min(88%, 520px); height: auto; aspect-ratio: 16 / 9; margin: auto; align-self: center; justify-self: center;
  background: center / cover no-repeat; border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--ac, #e2533b) 75%, transparent);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .35), 0 0 0 7px color-mix(in srgb, var(--ac, #e2533b) 25%, transparent),
    0 26px 60px -18px color-mix(in srgb, var(--ac, #e2533b) 85%, transparent), inset 0 -40px 60px -20px rgba(0, 0, 0, .55);
}
.hero-info { position: relative; min-width: 0; }
.hero-sub { display: flex; align-items: center; gap: 8px; color: #c5c8d2; margin: 0 0 8px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.hero-name { font: 900 clamp(32px, 5vw, 76px)/1 var(--epic); margin: 0 0 14px; letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.hero-line { color: var(--muted); margin: 0 0 34px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero-sub .attr-ico { width: 30px; height: 30px; }
.hero-sub .attr { width: 14px; height: 14px; }
.hero-tagline { margin: 0 0 18px; color: color-mix(in srgb, var(--ac) 45%, #bfe3ff); font: 600 15px/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.hero-hype { margin: 0 0 10px; font-size: 19px; line-height: 1.5; color: #e4e6ec; }
.hero-hype b { color: #fff; }
.hero-lore-btn { padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.hero-lore-btn:hover { color: var(--text); }
.hero-bio { margin-top: 14px; max-height: 42vh; overflow-y: auto; padding: 16px 18px; border-radius: 8px; background: rgba(8, 8, 12, .82); border: 1px solid var(--border); color: #c9ccd6; font-size: 14.5px; line-height: 1.65; }
.hero-facts { display: flex; gap: 44px; margin-top: 30px; }
.hero-facts small { display: block; color: #b9bdc9; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.hero-facts b { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.atk-ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.atk-ico.melee { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2 22 4 9.5 16.5 7.5 14.5ZM6 13l5 5-1.5 1.5-1.8-1.8L4.4 21 3 19.6l3.3-3.3-1.8-1.8Z'/%3E%3C/svg%3E"); }
.atk-ico.ranged { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21 17 7h-4V5h8v8h-2V9L5 23Z'/%3E%3C/svg%3E"); }
.cx { display: flex; gap: 10px; padding-top: 4px; }
.cx i { width: 16px; height: 16px; transform: rotate(45deg); border: 1.5px solid #e8e9ee; }
.cx i.on { background: #fff; }

/* abilities */
.hero-abilities { justify-self: end; text-align: center; }
.hero-abilities h3 { margin: 0 0 14px; font: 600 16px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.ab-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ab { position: relative; width: 74px; height: 74px; padding: 0; border: 2px solid rgba(255, 255, 255, .12); border-radius: 4px; background: #111317; cursor: pointer; overflow: hidden; transition: border-color .25s, transform .3s cubic-bezier(.2, .7, .2, 1), filter .25s; filter: saturate(.75) brightness(.8); }
.ab img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ab img.missing { display: none; }
.ab span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px/1 var(--display); color: var(--muted); text-transform: uppercase; }
.ab.innate { border-radius: 50%; }
.ab:hover { filter: none; transform: translateY(-3px); }
.ab[aria-pressed="true"] { filter: none; border-color: color-mix(in srgb, var(--ac) 60%, #fff); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--ac) 80%, transparent); }

/* vertical name and prev / all / next, like the edge of a dota2.com hero page */
.hero-side { position: absolute; left: 28px; bottom: 110px; display: none; align-items: center; gap: 12px; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 15px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: #d5d7de; }
.hero-side span { color: var(--muted); }
.hero-side::after { content: ""; width: 1px; height: 38vh; background: rgba(255, 255, 255, .25); }
.hero-side .side-ico, .hero-side .attr { width: 22px; height: 22px; transform: rotate(180deg); }
.hero-nav { position: absolute; z-index: 3; top: 110px; right: max(20px, calc((100% - 1280px) / 2)); display: flex; gap: 8px; }
.hn { display: grid; place-items: center; height: 52px; min-width: 38px; padding: 0 10px; border: 2px solid rgba(255, 255, 255, .28); background: rgba(8, 8, 12, .4); color: #d8dae1; transition: border-color .25s, color .25s, background .25s; }
.hn.all { min-width: 64px; }
.hn svg { width: 14px; height: 14px; fill: currentColor; }
.hn.all svg { width: 30px; height: 20px; }
.hn:hover { border-color: color-mix(in srgb, var(--ac) 70%, #fff); color: #fff; background: rgba(20, 20, 28, .7); }

/* attributes / roles / stats bar */
.hero-bar { position: relative; margin-top: -20px; padding: 34px 0 26px; background: linear-gradient(180deg, #1c1e24, #131418); border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.hb-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.hb-col { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 0 34px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hb-col:first-child { border-left: 0; padding-left: 0; }
.hb-col:last-child { padding-right: 0; }
.hb-col h4 { margin: 0; text-align: center; font: 500 15px/1 var(--display); letter-spacing: .26em; text-transform: uppercase; color: #a9adb9; }
.pa { display: flex; align-items: center; gap: 28px; }
.pa-portrait { width: 160px; flex: none; }
.pa-portrait img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pa-hp, .pa-mp { display: flex; justify-content: center; gap: 12px; align-items: baseline; padding: 3px 8px; font: 700 13px/1.2 var(--display); text-shadow: 0 1px 2px #000; }
.pa-hp { background: linear-gradient(90deg, #2f8a2c, #69c93d); }
.pa-mp { background: linear-gradient(90deg, #2451b8, #3f8cf0); }
.pa-hp small, .pa-mp small { font-size: 11px; font-weight: 500; opacity: .9; }
.pa-attrs { display: grid; gap: 10px; }
.pa-row { display: flex; align-items: center; gap: 12px; }
.pa-row .attr-ico { width: 30px; height: 30px; }
.pa-row .attr { width: 16px; height: 16px; margin: 0 7px; }
.pa-row b { font: 700 22px/1 var(--display); min-width: 28px; }
.pa-row small { color: var(--muted); font-size: 13px; }
.pa-row.primary b { color: #fff; }
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; align-content: center; flex: 1; }
.rl span { display: block; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: #8e93a0; margin-bottom: 7px; }
.rl.on span { color: #fff; }
.rl i { display: block; height: 5px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.rl i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--ac) 30%, #fff)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .2s; }
.hero-bar.in .rl i::after { transform: scaleX(var(--v)); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stats-grid h5 { margin: 0 0 12px; font: 500 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #b9bdc9; }
.stats-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.stats-grid li { display: grid; grid-template-columns: 22px auto; column-gap: 10px; align-items: center; }
.stats-grid li span { grid-column: 2; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.stats-grid li b { grid-column: 2; font: 600 16px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.st-ico { grid-row: span 2; width: 20px; height: 20px; background: #c9ccd6; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.st-ico.dmg { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2 22 4 9.5 16.5 7.5 14.5ZM6 13l5 5-1.5 1.5-1.8-1.8L4.4 21 3 19.6l3.3-3.3-1.8-1.8Z'/%3E%3C/svg%3E"); }
.st-ico.rate { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2.2a7.8 7.8 0 1 1 0 15.6 7.8 7.8 0 0 1 0-15.6ZM11 6h2v6.6l4 2.4-1 1.7-5-3Z'/%3E%3C/svg%3E"); }
.st-ico.range { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6h2v12H2Zm18 0h2v12h-2ZM6 11h12V8l4 4-4 4v-3H6v3l-4-4 4-4Z' transform='translate(0) scale(1)'/%3E%3C/svg%3E"); }
.st-ico.proj { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 11h14V7l6 5-6 5v-4H2Z'/%3E%3C/svg%3E"); }
.st-ico.armor { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.3 8 11 4.6-1.7 8-6 8-11V5Z'/%3E%3C/svg%3E"); }
.st-ico.mres { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 3a7 7 0 1 1 0 14 7 7 0 0 1 0-14Zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E"); }
.st-ico.ms { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h8l6 7-6 7H3l6-7Zm9 0h4l6 7-6 7h-4l6-7Z'/%3E%3C/svg%3E"); }
.st-ico.turn { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 0 1 7.4 5H22l-3.5 4L15 9h2.1A6 6 0 0 0 6.3 10L4.4 9.3A8 8 0 0 1 12 4Zm-7.5 7L8 15H5.9a6 6 0 0 0 10.8 1l1.9.7A8 8 0 0 1 4.6 15H2Z'/%3E%3C/svg%3E"); }
.st-ico.vision { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.7 9 1 12c1.7 3 5.5 7 11 7s9.3-4 11-7c-1.7-3-5.5-7-11-7Zm0 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z'/%3E%3C/svg%3E"); }

/* ability details: clip on the left with every ability below it, text on the right */
.hero-skills { padding: 56px 0 18px; scroll-margin-top: 70px; }
.skills-title { margin: 0 0 24px; text-align: center; font: 500 22px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.skills-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
/* The ability strip scrolls sideways on phones; without this its width would stretch the column past the screen. */
.skills-grid > * { min-width: 0; }
.ad-media { position: relative; aspect-ratio: 16 / 9; background: #0c0d11 center / cover no-repeat; border: 1px solid var(--border); overflow: hidden; }
.ad-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .5s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.ad-video.on { opacity: 1; transform: none; z-index: 1; }
.ab-detail { display: grid; }
.ad-live, .ad-sizer > div { grid-area: 1 / 1; min-width: 0; }
.ad-sizer { display: contents; }
.ad-sizer > div { visibility: hidden; pointer-events: none; }
.ad-live > * { transition: opacity .22s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.ab-detail.swap .ad-live > * { opacity: 0; transform: translateY(8px); transition-duration: .16s; }
.ab-detail .ad-body { transition-delay: .04s; }
.ab-detail.swap .ad-body { transition-delay: 0s; }
.ad-fallback { position: absolute; z-index: 2; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); object-fit: cover; opacity: 0; transition: opacity .3s; border-radius: 6px; }
.ad-media.novideo .ad-video { opacity: 0; }
.ad-media.novideo .ad-fallback { opacity: .9; }
.ad-media.novideo::after { content: "No clip for this ability"; position: absolute; left: 0; right: 0; top: 14px; text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ad-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: -26px; padding: 0 12px; position: relative; z-index: 1; }
.ab-thumb { position: relative; width: 78px; height: 78px; padding: 0; border: 2px solid #0a0b0e; background: #111317; cursor: pointer; overflow: hidden; filter: grayscale(1) brightness(.7); transition: filter .25s, transform .3s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.ab-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ab-thumb img.missing { display: none; }
.ab-thumb span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px/1 var(--display); color: var(--muted); text-transform: uppercase; }
.ab-thumb:hover { filter: grayscale(.3) brightness(.95); transform: translateY(-3px); }
.ab-thumb[aria-pressed="true"] { filter: none; border-color: color-mix(in srgb, var(--ac) 55%, #fff); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--ac) 80%, transparent); }
.aghs-badge { position: absolute; z-index: 2; right: 4px; bottom: 4px; width: 26px; height: 26px; background: #fff; filter: drop-shadow(0 1px 2px #000); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.aghs-badge.scepter { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1.7 1.4 2.6 3 2.6 4.6 0 1.3-.7 2.3-1.6 2.9V20l-1 2-1-2V9.5c-.9-.6-1.6-1.6-1.6-2.9C9.4 5 10.3 3.4 12 2Zm-5 5 2 1-1 3 2 1v1H8.5L6 10Zm10 0 1 3-2.5 3H13v-1l2-1-1-3Z'/%3E%3C/svg%3E"); }
.aghs-badge.shard { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 18 9 12 22 6 9Zm0 3.5L8.6 9.3 12 17.2l3.4-7.9Z'/%3E%3C/svg%3E"); }
.ab .aghs-badge { width: 20px; height: 20px; }
.ab-detail { background: #0e0f13; border: 1px solid var(--border); }
.ab-detail .ad-head { align-items: flex-start; padding: 22px 22px 18px; margin: 0; background: rgba(255, 255, 255, .03); }
.ab-detail .ad-head h3 { text-transform: uppercase; letter-spacing: .02em; }
.ab-detail .ad-desc { margin: 8px 0 0; }
.ad-body { padding: 20px 22px 22px; }
.ad-tags span.scepter, .ad-tags span.shard { background: rgba(60, 110, 230, .3); border-color: rgba(110, 160, 255, .5); color: #d5e3ff; }
.hero-talents { padding: 18px 0; }
.hero-talents .talents { max-width: 760px; margin: 0 auto; }
.ad-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ad-img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .15); }
.ad-img.missing { visibility: hidden; }
.ad-head h3 { margin: 0; font: 700 24px/1.15 var(--display); }
.ad-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.ad-tags span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: color-mix(in srgb, var(--ac) 18%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 40%, transparent); }
.ad-desc { margin: 0 0 16px; color: #dcdee5; line-height: 1.6; }
.ad-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 20px; margin: 0 0 16px; }
.ad-values div { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; }
.ad-values dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; align-self: center; }
.ad-values dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ad-costs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 16px; font: 600 15px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.ad-costs span { display: flex; align-items: center; gap: 8px; }
.ad-costs small { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ad-costs i { width: 14px; height: 14px; border-radius: 3px; }
.ad-costs .cd { background: linear-gradient(135deg, #9aa3b4, #545b6a); border-radius: 50%; }
.ad-costs .mc { background: linear-gradient(135deg, #5fb4ff, #2463d8); }
.ad-aghs { margin: 0 0 12px; padding: 12px 14px; border-radius: 8px; background: rgba(60, 120, 255, .08); border: 1px solid rgba(90, 150, 255, .28); color: #cfd9f0; font-size: 14px; line-height: 1.55; }
.ad-aghs b { display: block; color: #8fc0ff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.ad-notes { margin: 0 0 14px; padding-left: 18px; color: #aeb2be; font-size: 13.5px; line-height: 1.55; }
.ad-lore { margin: 0; color: #8e93a0; font-style: italic; font-size: 14px; line-height: 1.55; }
.tl { display: grid; gap: 8px; margin-top: 14px; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; gap: 8px; }
.tl-row span { display: flex; align-items: center; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); font-size: 13px; line-height: 1.3; color: #dcdee5; }
.tl-row span:first-child { justify-content: flex-end; text-align: right; }
.tl-row b { display: grid; place-items: center; border-radius: 50%; align-self: center; width: 44px; height: 44px; font: 700 16px/1 var(--display); color: var(--gold); border: 1.5px solid rgba(240, 192, 90, .55); background: radial-gradient(circle, rgba(240, 192, 90, .16), transparent 70%); }
.hero-meta { padding: 0 0 18px; }
.hero-skills + .hero-meta, .hero-talents + .hero-meta, .hero-bar + .hero-meta { padding-top: 40px; }
.meta-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.mp-head h2 { margin-bottom: 6px; }
.mp-head .hint { margin: 0; }
.hero-stats { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 160px; height: 160px; flex: none; --rc: var(--muted); }
.ring.good { --rc: var(--good); }
.ring.bad { --rc: var(--bad); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--rc); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .7, .2, 1) .15s; }
.ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-val b { font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.ring-val small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; min-width: 260px; }
.kpis div { background: rgba(14, 15, 20, .7); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px; }
.kpis b { display: block; font: 700 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.kpis b.tier { display: grid; width: 32px; height: 32px; font-size: 17px; margin-bottom: 2px; }
.kpis small { color: var(--muted); font-size: 12px; }

@media (min-width: 1440px) { .hero-side { display: flex; } }
.panels { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; padding-bottom: 40px; }
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.panel { background: rgba(16, 17, 23, .92); border: 1px solid var(--border); border-radius: 24px; padding: 24px; }
.panel h2 { font: 700 22px/1.2 var(--display); margin: 0 0 4px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.core { position: relative; background: linear-gradient(135deg, rgba(240, 192, 90, .12), rgba(226, 83, 59, .06)); border: 1px solid rgba(240, 192, 90, .25); border-radius: 18px; padding: 18px; margin-bottom: 26px; overflow: hidden; }
.core-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.core h3 { margin: 0; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.gold-total { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; }
.gold-total i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2b8, var(--gold) 60%, #9a6b12); }
.core-row { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.core-path { position: absolute; top: 32px; left: 8%; width: 84%; height: 10px; overflow: visible; }
.core-path path { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 3; fill: none; vector-effect: non-scaling-stroke; opacity: .6; }
.core figure { position: relative; margin: 0; text-align: center; }
.core-img { width: 100%; aspect-ratio: 88 / 64; border-radius: 12px; overflow: hidden; border: 1px solid rgba(240, 192, 90, .5); box-shadow: 0 8px 22px rgba(0, 0, 0, .55); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; background: #000; }
.core-img img { width: 100%; height: 100%; object-fit: cover; }
.core figure:hover .core-img { transform: translateY(-6px) scale(1.08); box-shadow: 0 14px 30px rgba(240, 192, 90, .35); }
.core-step { position: absolute; top: -8px; left: -6px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--display); background: var(--gold); color: #1a1206; box-shadow: 0 0 12px rgba(240, 192, 90, .7); }
.core figcaption { font-size: 12px; color: #d3d6de; margin-top: 8px; line-height: 1.25; }
.core figcaption small { display: block; color: var(--gold); font-size: 11px; margin-top: 2px; }

.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.phase h4 { margin: 0 0 10px; font-size: 15px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.phase h4 small { grid-column: 2; color: var(--muted); font-weight: 400; font-size: 12px; }
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.item { display: flex; align-items: center; gap: 12px; padding: 7px; margin: 0 -7px; border-radius: 12px; transition: background .25s; }
.item:hover { background: var(--surface-2); }
.item img { width: 48px; height: 35px; object-fit: cover; border-radius: 7px; flex: none; background: var(--surface-2); }
.item-meta { flex: 1; min-width: 0; }
.item-name { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-name small { color: var(--gold); font-size: 11px; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .2s; }
.phase.in .bar i { transform: scaleX(var(--w)); }

.brackets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin-top: 14px; }
.br { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; }
.br-bar { width: 100%; max-width: 28px; height: 120px; background: var(--surface-2); border-radius: 7px; display: flex; align-items: flex-end; overflow: hidden; }
.br-bar i { display: block; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(143, 149, 166, .25), var(--muted)); border-radius: 7px; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.panel.in .br-bar i { transform: scaleY(var(--h)); }
.panel.in .br:nth-child(2) .br-bar i { transition-delay: .05s; } .panel.in .br:nth-child(3) .br-bar i { transition-delay: .1s; }
.panel.in .br:nth-child(4) .br-bar i { transition-delay: .15s; } .panel.in .br:nth-child(5) .br-bar i { transition-delay: .2s; }
.panel.in .br:nth-child(6) .br-bar i { transition-delay: .25s; } .panel.in .br:nth-child(7) .br-bar i { transition-delay: .3s; }
.panel.in .br:nth-child(8) .br-bar i { transition-delay: .35s; }
.br-bar.good i { background: linear-gradient(0deg, rgba(76, 214, 148, .2), var(--good)); box-shadow: 0 0 14px rgba(76, 214, 148, .4); }
.br-bar.bad i { background: linear-gradient(0deg, rgba(255, 100, 100, .2), var(--bad)); }
.br-val { font-variant-numeric: tabular-nums; }
.br-name { color: var(--muted); }

.mus { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.mus > div { min-width: 0; }
.mus h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.mu { display: flex; align-items: center; gap: 8px; padding: 6px; margin: 0 -6px; border-radius: 9px; font-size: 13px; transition: background .25s; }
.mu:hover { background: var(--surface-2); }
.mu img { width: 40px; height: 23px; object-fit: cover; border-radius: 4px; flex: none; }
.mu span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu b { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }

.foot { color: var(--muted); font-size: 12px; padding: 50px 0 34px; border-top: 1px solid var(--border); margin-top: 60px; }

/* ---------- prev / next hero band ---------- */
.hero-footnav { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); height: 210px; margin-top: 150px; background: linear-gradient(180deg, #0c0d12, #07080b); border-block: 1px solid var(--border); }
.fn-card { position: relative; display: flex; align-items: center; min-width: 0; padding: 0 clamp(20px, 4vw, 64px); color: var(--text); isolation: isolate; }
.fn-card.prev { justify-content: flex-end; text-align: left; padding-left: clamp(150px, 21vw, 320px); }
.fn-card.next { padding-right: clamp(150px, 21vw, 320px); }
/* The attribute colour pools under the render and brightens on hover. */
.fn-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 45% 90% at var(--fx) 100%, color-mix(in srgb, var(--ac) 30%, transparent), transparent 72%); opacity: .55; transition: opacity .5s; }
.fn-card.prev { --fx: 18%; }
.fn-card.next { --fx: 82%; }
.fn-card::after { content: ""; position: absolute; inset: -1px 0 auto; height: 2px; z-index: -1; background: linear-gradient(90deg, transparent, var(--ac), transparent); transform: scaleX(0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fn-art { position: absolute; z-index: 0; bottom: 0; width: clamp(180px, 24vw, 360px); height: calc(100% + 130px); pointer-events: none; }
.fn-card.prev .fn-art { left: 0; }
.fn-card.next .fn-art { right: 0; }
.fn-art img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: brightness(.72) saturate(.85) drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.fn-card.prev .fn-art img { transform: translateX(-4%); }
.fn-card.next .fn-art img { transform: translateX(4%); }
.fn-art.portrait { height: 100%; width: clamp(150px, 20vw, 260px); }
.fn-art.portrait img { object-fit: cover; mask: linear-gradient(90deg, #000 55%, transparent); }
.fn-card.next .fn-art.portrait img { mask: linear-gradient(270deg, #000 55%, transparent); }
.fn-art.missing { display: none; }
.fn-text { position: relative; z-index: 1; display: grid; gap: 6px; min-width: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.fn-text small { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fn-text b { font: 900 clamp(20px, 2.3vw, 34px)/1.05 var(--epic); text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: normal; hyphens: none; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); transition: color .4s; }
.fn-type { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #c9ccd6; }
.fn-type .attr-ico, .fn-type .attr { width: 20px; height: 20px; }
.fn-arrow { position: absolute; z-index: 1; top: 50%; width: 14px; height: 14px; fill: var(--ac); opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.fn-card.prev .fn-arrow { left: 22px; transform: translate(12px, -50%); }
.fn-card.next .fn-arrow { right: 22px; transform: translate(-12px, -50%); }
.fn-all { display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(255, 255, 255, .025); border-inline: 1px solid var(--border); color: #d8dae1; transition: background .4s, color .4s; }
.fn-grid { display: grid; grid-template-columns: repeat(3, 28px); gap: 5px; }
.fn-grid i { height: 28px; background: #8d9099; transition: background .35s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.fn-all small { font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
@media (hover: hover) {
  .fn-card:hover::before { opacity: 1; }
  .fn-card:hover::after { transform: none; }
  .fn-card:hover .fn-art img { filter: brightness(1.05) saturate(1.05) drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
  .fn-card.prev:hover .fn-art img { transform: translateX(3%) scale(1.04); }
  .fn-card.next:hover .fn-art img { transform: translateX(-3%) scale(1.04); }
  .fn-card.prev:hover .fn-text { transform: translateX(8px); }
  .fn-card.next:hover .fn-text { transform: translateX(-8px); }
  .fn-card:hover .fn-text b { color: color-mix(in srgb, var(--ac) 35%, #fff); }
  .fn-card:hover .fn-arrow { opacity: 1; transform: translate(0, -50%); }
  .fn-all:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .fn-all:hover .fn-grid i { background: var(--gold); transform: scale(.86); }
  .fn-all:hover .fn-grid i:nth-child(2) { transition-delay: .04s; }
  .fn-all:hover .fn-grid i:nth-child(3) { transition-delay: .08s; }
  .fn-all:hover .fn-grid i:nth-child(4) { transition-delay: .04s; }
  .fn-all:hover .fn-grid i:nth-child(5) { transition-delay: .08s; }
  .fn-all:hover .fn-grid i:nth-child(6) { transition-delay: .12s; }
}
.fn-card:focus-visible, .fn-all:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
@media (max-width: 899px) {
  .hero-footnav { grid-template-columns: 1fr 1fr; grid-template-rows: 150px auto; height: auto; margin-top: 110px; }
  .fn-card { padding: 0 14px 18px; align-items: flex-end; }
  .fn-card.prev { padding-left: 14px; justify-content: flex-start; }
  .fn-card.next { padding-right: 14px; justify-content: flex-end; text-align: right; }
  .fn-card.next .fn-type { justify-content: flex-end; }
  .fn-card + .fn-all + .fn-card { border-left: 1px solid var(--border); }
  .fn-art { width: 80%; height: calc(100% + 80px); opacity: .55; }
  .fn-art.portrait { width: 70%; }
  .fn-text small { font-size: 10px; letter-spacing: .14em; }
  .fn-text b { font-size: 18px; }
  .fn-type { font-size: 11px; letter-spacing: .1em; }
  .fn-type .attr-ico, .fn-type .attr { width: 16px; height: 16px; }
  .fn-arrow { display: none; }
  .fn-all { grid-column: 1 / -1; grid-row: 2; grid-auto-flow: column; gap: 12px; padding: 16px; border-inline: 0; border-top: 1px solid var(--border); }
  .fn-grid { grid-template-columns: repeat(3, 10px); gap: 3px; }
  .fn-grid i { height: 10px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .panels { grid-template-columns: 1fr; }
  .intro-media { inset: 10% -10% 0 20%; opacity: .55; }
  .intro-now { position: static; text-align: left; margin-top: 30px; width: max-content; max-width: 100%; }
}
@media (max-width: 899px) {
  .patch { margin-left: auto; }
  .top-meta { padding: 70px 0 20px; }
  .top-track { display: flex; width: auto; margin-inline: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 20px 10px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .top-track::-webkit-scrollbar { display: none; }
  .top-card { flex: 0 0 min(62vw, 280px); scroll-snap-align: start; }
  .top-info h3 { font-size: 19px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; padding: 60px 0; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stage { display: block; min-height: 0; padding: 90px 0 40px; }
  .hero-stage::before { background: radial-gradient(ellipse 90% 45% at 50% 25%, color-mix(in srgb, var(--ac) 26%, transparent), transparent 70%); }
  .hero-art { position: relative; inset: auto; width: 100%; height: 46vh; margin-top: -30px; transform: translateY(30px); }
  .hero-art .hero-video { max-height: none; }
  .hero-art::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(180deg, transparent, var(--bg)); }
  .hero-info { max-width: none; margin-top: -40px; }
  .hero-grid, .hero-info { position: static; }
  .back { position: absolute; top: 80px; left: 16px; z-index: 2; }
  .hero-grid { display: block; }
  .hero-nav { top: 74px; right: 16px; }
  .hn { height: 42px; }
  .hn.all { min-width: 52px; }
  .back { top: 76px; }
  .hero-hype { font-size: 16.5px; }
  .hero-facts { gap: 30px; margin-top: 24px; }
  .hero-abilities { margin-top: 30px; text-align: left; }
  .hero-abilities h3 { font-size: 13px; }
  .ab-row { justify-content: flex-start; gap: 8px; }
  .ab { width: 56px; height: 56px; }
  .hero-bar { margin-top: 20px; }
  .hb-grid { grid-template-columns: 1fr; gap: 30px; }
  .hb-col { padding: 0; border-left: 0; flex-direction: column-reverse; gap: 16px; }
  .hb-col + .hb-col { padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .hb-col h4 { text-align: left; font-size: 13px; }
  .hero-skills { padding-top: 34px; }
  .skills-title { font-size: 16px; margin-bottom: 16px; }
  .skills-grid { grid-template-columns: 1fr; gap: 18px; }
  .ad-strip { margin: 10px -16px 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 4px 16px; gap: 8px; scrollbar-width: none; }
  .ad-strip::-webkit-scrollbar { display: none; }
  .ab-thumb { width: 54px; height: 54px; flex: none; }
  .ab-detail .ad-head { padding: 18px 16px 14px; gap: 12px; }
  .ab-detail .ad-img { width: 44px; height: 44px; }
  .ad-body { padding: 16px; }
  .aghs-badge { width: 18px; height: 18px; }
  .meta-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .intro { padding-top: 96px; }
  .intro-lead { font-size: 16px; }
  .btn { height: 50px; padding: 0 22px; }
  .browse { padding-top: 70px; }
  .controls { position: relative; top: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .top-track { padding-inline: 16px; scroll-padding-inline: 16px; }
  .search { flex-basis: 100%; }
  .dd { flex: 1 1 40%; min-width: 0; }
  .dd-btn { font-size: 14px; }
  .seg { flex: 1 1 100%; }
  .seg button { flex: 1; justify-content: center; padding: 0 6px; }
  .legend .count { margin-left: 0; }
  .num { padding: 0 14px; }
  .ring { width: 124px; height: 124px; }
  .ring-val b { font-size: 24px; }
  .hero-stats { justify-content: center; }
  .kpis { min-width: 0; flex-basis: 100%; }
  .core-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .core-path { display: none; }
  .panel { padding: 18px; }
}
.intro-title .gold { text-transform: none; }
.seg button, .dd-btn, .dd-menu li, .btn, .back { text-transform: uppercase; letter-spacing: .07em; font-weight: 600; font-size: 13px; }
.search input { font-weight: 500; letter-spacing: .02em; }
.search input::placeholder { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.card-name, .mu span, .item-name { font-weight: 600; letter-spacing: .01em; }

/* ---------- logo ---------- */
.logo-slot { display: block; }
.d2logo { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 106, 42, .55)); }
.brand-logo::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 60, .45), rgba(255, 90, 30, 0) 62%); pointer-events: none; mix-blend-mode: screen; animation: molten 3.4s infinite; }
@keyframes molten {
  0%, 100% { opacity: .9; } 8% { opacity: .35; } 10% { opacity: .9; } 42% { opacity: .6; }
  44% { opacity: 1; } 71% { opacity: .3; } 74% { opacity: .85; }
}
.loader-logo { width: 150px; height: 150px; }
.loader-logo .d2logo { filter: drop-shadow(0 0 26px rgba(255, 106, 42, .7)); }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .5s; }
.top::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(180deg, rgba(5, 5, 7, .85), rgba(5, 5, 7, 0)); pointer-events: none; transition: opacity .5s; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 106, 42, .7) 30%, rgba(240, 192, 90, .8) 50%, rgba(255, 106, 42, .7) 70%, transparent); opacity: 0; transform: scaleX(.3); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 14px rgba(255, 106, 42, .6); }
.top.scrolled { background: rgba(7, 6, 8, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top.scrolled::before { opacity: 0; }
.top.scrolled::after { opacity: 1; transform: none; }
.top-inner { position: relative; display: flex; align-items: center; gap: 28px; height: 78px; transition: height .5s; }
.top.scrolled .top-inner { height: 64px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { position: relative; width: 46px; height: 46px; flex: none; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), width .5s, height .5s; }
.top.scrolled .brand-logo { width: 38px; height: 38px; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.1); }
.brand:hover .d2logo { filter: drop-shadow(0 0 18px rgba(255, 120, 42, .95)); }
.sparks { position: absolute; inset: 0; pointer-events: none; }
.sparks i { position: absolute; bottom: 40%; width: 3px; height: 3px; border-radius: 50%; background: #ffc36b; box-shadow: 0 0 6px #ff8a3c, 0 0 10px #ff5a1f; opacity: 0; animation: spark 2.6s ease-out infinite; }
.sparks i:nth-child(1) { left: 20%; animation-delay: 0s; --dx: -8px; }
.sparks i:nth-child(2) { left: 45%; animation-delay: .5s; --dx: 6px; }
.sparks i:nth-child(3) { left: 70%; animation-delay: 1s; --dx: 10px; }
.sparks i:nth-child(4) { left: 35%; animation-delay: 1.4s; --dx: -4px; width: 2px; height: 2px; }
.sparks i:nth-child(5) { left: 60%; animation-delay: 1.9s; --dx: -10px; width: 2px; height: 2px; }
.sparks i:nth-child(6) { left: 80%; animation-delay: 2.2s; --dx: 4px; }
@keyframes spark {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -38px) scale(.3); }
}
.wordmark { display: grid; line-height: 1; white-space: nowrap; }
.wordmark b { font: 900 18px/1 var(--epic); letter-spacing: .04em; background: linear-gradient(180deg, #fff 30%, #ffc98a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark small { margin-top: 5px; font: 600 10px/1 var(--display); letter-spacing: .34em; text-transform: uppercase; color: var(--accent-2); }


.patch { margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 18px 9px 16px; white-space: nowrap; background: linear-gradient(100deg, rgba(226, 83, 59, .28), rgba(240, 192, 90, .12)); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.patch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .18) 50%, transparent 80%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.patch small { font: 600 10px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: #d7b98a; }
.patch b { font: 900 14px/1 var(--epic); color: var(--gold); letter-spacing: .02em; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #ff7a3c; box-shadow: 0 0 8px #ff7a3c; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

@media (max-width: 560px) {
  .top-inner { height: 66px; gap: 14px; }
  .brand-logo { width: 38px; height: 38px; }
  .wordmark b { font-size: 15px; }
  .wordmark small { font-size: 9px; letter-spacing: .28em; }
  .patch { padding: 8px 14px 8px 12px; }
  .patch small { display: none; }
}

/* Custom dropdown */
.dd { position: relative; }
.dd select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 14px 0 16px; cursor: pointer; white-space: nowrap; color: var(--text); }
.dd-btn:hover { border-color: rgba(226, 83, 59, .55); }
.dd-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.dd-btn svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.7, 0, .2, 1); }
.dd.open .dd-btn svg { transform: rotate(180deg); }

.dd-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 100%; width: max-content; max-height: 320px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; outline: 0; scrollbar-width: thin; scrollbar-color: rgba(226, 83, 59, .5) transparent;
  background: linear-gradient(180deg, #22120e, #0e0d12); border: 1px solid rgba(226, 83, 59, .35); border-radius: 14px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .8), 0 0 40px -14px rgba(226, 83, 59, .55), inset 0 1px 0 rgba(255, 190, 120, .12);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top center;
  transition: opacity .2s, transform .3s cubic-bezier(.2, .9, .3, 1.2), visibility 0s .3s;
}
.dd:last-child .dd-menu { left: auto; right: 0; transform-origin: top right; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .35s cubic-bezier(.2, .9, .3, 1.2), visibility 0s; }
.dd-menu li {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 12px; border-radius: 9px; cursor: pointer; color: #b9bdc9; white-space: nowrap;
  opacity: 0; transform: translateX(-6px); transition: color .15s, background .15s, opacity .25s, transform .3s;
}
.dd.open .dd-menu li { opacity: 1; transform: none; transition-delay: 0s, 0s, calc(var(--i) * 22ms), calc(var(--i) * 22ms); }
.dd-menu li i { width: 7px; height: 7px; flex: none; transform: rotate(45deg) scale(.6); border: 1px solid rgba(255, 255, 255, .25); transition: transform .2s, background .2s, border-color .2s; }
.dd-menu li.active { color: #fff; background: linear-gradient(90deg, rgba(226, 83, 59, .32), rgba(255, 154, 60, .08)); }
.dd-menu li.active i { border-color: var(--accent-2); transform: rotate(45deg) scale(.85); }
.dd-menu li[aria-selected="true"] { color: var(--gold); }
.dd-menu li[aria-selected="true"] i { background: linear-gradient(135deg, #ffe39a, #ff7a3c); border-color: transparent; box-shadow: 0 0 10px #ff7a3c; transform: rotate(45deg) scale(1); }

/* ---------- performance ---------- */
/* Phones and touch devices: drop the effects that cost the most per frame */
@media (hover: none), (pointer: coarse), (max-width: 899px) {
  .controls, .top.scrolled, .intro-now, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .controls { background: rgba(12, 13, 18, .96); }
  .top.scrolled { background: rgba(7, 6, 8, .94); }
  .intro-now { background: rgba(12, 12, 16, .9); }
}
/* Let the browser skip layout and paint for hero cards that are off screen */
.grid .card { content-visibility: auto; contain-intrinsic-size: auto 125px; }
@media (max-width: 899px) { .grid .card { contain-intrinsic-size: auto 165px; } }
.br.empty .br-val, .br.empty .br-name { opacity: .45; }

/* ---------- tournament highlights ---------- */
.highlights { padding: 110px 0 0; }
.hl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.hl-head .btn { flex: none; height: 46px; padding: 0 22px; }
.hl-row, .hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hl-card { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--border); transition: border-color .35s, box-shadow .35s; }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.hl-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 7, .75)); pointer-events: none; }
.hl-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(5, 5, 7, .55); border: 1.5px solid rgba(255, 255, 255, .7); z-index: 1; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s, border-color .3s; }
.hl-play::before { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.hl-ch { position: absolute; left: 10px; bottom: 9px; z-index: 1; font: 600 11px/1 var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 5px 8px; border-radius: 6px; background: rgba(5, 5, 7, .7); border: 1px solid rgba(240, 192, 90, .35); }
.hl-dur { position: absolute; right: 10px; bottom: 9px; z-index: 1; font: 600 12px/1 var(--display); font-style: normal; font-variant-numeric: tabular-nums; color: #fff; padding: 5px 7px; border-radius: 6px; background: rgba(5, 5, 7, .75); }
.hl-meta { display: grid; gap: 6px; }
.hl-meta b { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.hl-meta small { color: var(--muted); font-size: 12.5px; }
.hl-card:hover .hl-thumb, .hl-card:focus-visible .hl-thumb { border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); box-shadow: 0 18px 40px -18px rgba(255, 122, 60, .7); }
.hl-card:hover .hl-thumb img { transform: scale(1.07); }
.hl-card:hover .hl-play, .hl-card:focus-visible .hl-play { transform: scale(1.15); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.hl-card:hover .hl-meta b { color: var(--gold); }
.hl-card:focus-visible { outline: none; }

.hl-page { position: relative; padding: 150px 0 60px; min-height: 80vh; }
.hl-page .back { top: 96px; }
.hl-title { font-size: clamp(34px, 6vw, 84px); margin-bottom: 28px; }
.hl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.chip.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.hl-grid { row-gap: 34px; }
.hl-grid .state { grid-column: 1 / -1; }

.player { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: 20px; }
.player[hidden] { display: none; }
.player-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 5, .88); }
.player-box { position: relative; width: min(1100px, 100%); }
.player-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(255, 154, 60, .35); box-shadow: 0 30px 90px -20px rgba(226, 83, 59, .55); }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-info { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; }
.player-title { margin: 0; font-weight: 600; font-size: 16px; }
.player-yt { flex: none; color: var(--gold); font-size: 14px; }
.player-close { position: absolute; right: 0; top: -48px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(12, 12, 16, .8); color: var(--text); font-size: 15px; cursor: pointer; transition: border-color .25s, transform .3s; }
.player-close:hover { border-color: var(--accent); transform: rotate(90deg); }
body.player-open { overflow: hidden; }

@media (max-width: 1099px) { .hl-row, .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hl-row .hl-card:nth-child(n + 7) { display: none; } }
@media (max-width: 899px) {
  .highlights { padding-top: 70px; }
  .hl-head { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  /* Home row becomes a swipeable strip on phones */
  .hl-row { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .hl-row::-webkit-scrollbar { display: none; }
  .hl-row .hl-card { flex: 0 0 78%; scroll-snap-align: start; }
  .hl-row .hl-card:nth-child(n + 7) { display: flex; }
  /* Cards still waiting to fade in sat 24px low, which let the sideways rows also be dragged down. */
  .hl-row [data-rv], .top-track [data-rv] { transform: none; }
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; row-gap: 26px; }
  .hl-page { padding-top: 130px; }
  .hl-page .back { top: 78px; }
  .player-info { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) { .hl-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  [data-rv], .hero-art, .intro-media { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bar i, .br-bar i, .ring-fg { transition: none !important; }
  .fn-card *, .fn-card::before, .fn-card::after, .fn-grid i { transition: none !important; }
}
