.heroes-page { --hx-good: #3fe05a; --hx-bad: #ff5a4a; --hx-line: rgba(252, 211, 18, 0.14); }

.hx__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 28px; }
.hx__intro { position: relative; flex: 1 1 420px; min-width: 0; }
.hx__intro .title { position: relative; display: inline-block; padding-right: 64px; }
.hx__intro .title::after { content: ""; position: absolute; right: 0; top: 50%; width: 52px; height: 52px; margin-top: -26px; background: url("/assets/w3/GlowStar.png") center / 30px no-repeat; mix-blend-mode: screen; animation: hx-twinkle 3.4s ease-in-out infinite; }
.hx__intro .text { margin-bottom: 10px; }
.hx__search { flex: 0 1 300px; }

.hx__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 4px 0 14px; padding: 10px 0 12px;
  background: var(--divider) center bottom / auto var(--divider-h, 22px) repeat-x; }
.hx-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-tab { min-width: 7.2em; }
.hx-tab[aria-selected="true"] { color: var(--white); text-shadow: 0 0 8px rgba(252, 211, 18, 0.9), 0 1px 1px #000; }
.hx-tab[aria-selected="true"]::after { opacity: 1; }
.hx-tab[aria-selected="true"]::before { box-shadow: inset 0 0 0 1px rgba(252, 211, 18, 0.65), inset 0 0 14px rgba(252, 211, 18, 0.35); }
html:not([data-theme="tft"]) .hx-tab[aria-selected="true"] { border-image-source: url("/assets/w3/human-options-button-border-down.png"); box-shadow: 0 0 12px rgba(252, 211, 18, 0.35); }
.hx__maps[hidden] { display: none; }

.hx-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 18px; }
.hx-fig { position: relative; margin: 0; padding: 12px 14px 12px; min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3)); border: 6px solid transparent;
  border-image: url("/assets/w3/human-tooltip-border.png") 14 / 6px stretch; }
.hx-fig::after { content: ""; position: absolute; left: -40%; top: 0; bottom: 0; width: 40%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 160, 0.16), transparent); animation: hx-sheen 7s ease-in-out 1.2s infinite; }
.hx-fig__label { color: var(--muted); font-size: 0.85rem; }
.hx-fig__value { margin: 4px 0 0; font: 400 1.4rem/1.2 var(--font); color: var(--white); font-variant-numeric: tabular-nums; min-width: 0; }
.hx-fig--gold .hx-fig__value { color: var(--gold); text-shadow: 0 0 10px rgba(252, 211, 18, 0.35); }
.hx-fig__extra { margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; }
.hx-fig__hero { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--gold); text-decoration: none; font-size: 1.05rem; }
.hx-fig__hero span:last-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.hx-fig__hero:hover { color: var(--white); }
.hx-fig .hx-kda { font-size: 1.15rem; }

.hx__wrap { min-height: 160px; transition: opacity 0.2s ease; }
.hx__wrap--busy { opacity: 0.5; }

.hx-btn { position: relative; display: inline-block; flex: none; width: 52px; height: 52px; background: #000; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.hx-btn > .icon { position: absolute; inset: 3px; width: auto; height: auto; box-shadow: none; }
.hx-btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 5px solid transparent; border-image: url("/assets/w3/scorescreen-button.png") 7 / 5px stretch; }
.hx-btn::before { content: ""; position: absolute; inset: 3px; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 240, 170, 0.45), transparent 65%); mix-blend-mode: screen; transition: opacity 0.2s ease; }
.hx-btn--small { width: 38px; height: 38px; }
.hx-btn--small > .icon { inset: 2px; }
.hx-btn--small::after { border-width: 4px; border-image-width: 4px; }

.hx-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; }
.hx-table thead th { padding: 0 4px 6px; text-align: center; vertical-align: bottom; font-weight: 400; }
.hx-table thead .c-hero { text-align: left; }
.hx-table thead .c-rank { color: var(--muted); font: 400 0.95rem/1 var(--font); padding-bottom: 14px; }
.hx-sort { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 10px; width: 100%;
  font: 400 0.92rem/1 var(--font); color: var(--gold); text-shadow: 0 1px 1px #000; white-space: nowrap; cursor: var(--cursor) 4 2, pointer;
  background: linear-gradient(180deg, rgba(48, 40, 22, 0.92), rgba(8, 7, 4, 0.95));
  border: 4px solid transparent; border-image: url("/assets/w3/human-options-button-border-up.png") 16 / 4px stretch; transition: color 0.15s ease; }
.hx-sort::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: var(--btn-hi, url("/assets/th/human-btn-hi.png")) center / 100% 100% no-repeat; mix-blend-mode: screen; transition: opacity 0.2s ease; }
.hx-sort:hover { color: var(--white); }
.hx-sort:hover::after, .hx-sort--on::after { opacity: 1; }
.hx-sort--on { color: var(--white); border-image-source: url("/assets/w3/human-options-button-border-down.png"); }
.hx-sort:active { border-image-source: url("/assets/w3/human-options-button-border-down.png"); transform: translateY(1px); }
.hx-sort__arrow { width: 12px; height: 12px; opacity: 0; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease; }
.hx-sort--on .hx-sort__arrow { opacity: 1; }
.hx-sort--asc .hx-sort__arrow { transform: rotate(180deg); }
.hx-table thead .c-hero .hx-sort { justify-content: flex-start; }

.hx-table tbody tr { position: relative; cursor: var(--cursor) 4 2, pointer; }
.hx-table tbody td, .hx-table tbody th { padding: 6px 10px; text-align: center; font-weight: 400; background: rgba(0, 0, 0, 0.36); border-top: 1px solid var(--hx-line); border-bottom: 1px solid rgba(0, 0, 0, 0.6); transition: background 0.15s ease; }
.hx-table tbody td:first-child { border-left: 1px solid var(--hx-line); }
.hx-table tbody td:last-child { border-right: 1px solid var(--hx-line); }
.hx-table tbody tr:hover > * { background: url("/assets/w3/quest-button-highlight.png") center / 100% 100% no-repeat, rgba(40, 30, 6, 0.55); }
.hx-table tbody tr:hover .hx-btn { box-shadow: 0 0 0 1px rgba(252, 211, 18, 0.7), 0 0 14px rgba(252, 211, 18, 0.55); transform: translateY(-1px); }
.hx-table tbody tr:hover .hx-btn::before { opacity: 1; }
.hx-table .c-rank { width: 2.4em; color: var(--muted); font: 400 1rem/1 var(--font); }
.hx-table tbody tr:nth-child(-n+3) .c-rank { color: var(--gold); text-shadow: 0 0 8px rgba(252, 211, 18, 0.6); }
.hx-table .c-hero { text-align: left; width: 32%; }
.hx-table .c-games { color: var(--white); font: 400 1.05rem/1 var(--font); }
.hx-table .c-wr, .hx-table .c-pick { width: 15%; min-width: 120px; }
.hx-table .c-kda { white-space: nowrap; }
.hx-hero-link { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--gold); }
.hx-hero-link__name { font: 400 1.08rem/1.2 var(--font); text-shadow: 0 1px 1px #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.15s ease; }
.hx-table tbody tr:hover .hx-hero-link__name { color: var(--white); }

.hx-num { display: block; margin-bottom: 4px; font: 400 1rem/1 var(--font); color: var(--white); }
.hx-num.good { color: var(--hx-good); }
.hx-num.bad { color: var(--hx-bad); }
.hx-meter { position: relative; display: block; height: 10px; overflow: hidden; background: linear-gradient(180deg, #050505, #1b1b1b); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(252, 211, 18, 0.28), 0 1px 0 rgba(255, 255, 255, 0.06); }
.hx-meter__fill { position: absolute; inset: 1px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.16, 0.84, 0.3, 1) calc(var(--i, 0) * 30ms + 120ms);
  background: linear-gradient(180deg, #ffe680, #c89a0a 55%, #7a5600); }
.hx-on .hx-meter__fill, .hx-meter.hx-on .hx-meter__fill { transform: scaleX(var(--v)); }
.hx-meter--wr .hx-meter__fill { background: linear-gradient(180deg, #ffb3a8, #d22a1a 55%, #6d0b04); }
.hx-meter--good .hx-meter__fill { background: linear-gradient(180deg, #b6ffb0, #23b43c 55%, #0b5418); }
.hx-meter::after { content: ""; position: absolute; inset: 1px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%); }
.hx-meter__mark { position: absolute; left: 50%; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 4px rgba(252, 211, 18, 0.9); }

.hx-kda { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-kda b { font-weight: 400; }
.hx-kda i { font-style: normal; color: var(--muted); }
.hx-kda .k { color: var(--hx-good); }
.hx-kda .d { color: var(--hx-bad); }
.hx-kda .a { color: #8fc3ff; }
.hx-gold { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-gold img { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px #000); }

.hx-table tbody tr, .hx-items > li, .hx-players > li, .hx-games > li { opacity: 1; }
.hx-table:not(.hx-on) tbody tr, .hx-items:not(.hx-on) > li, .hx-players:not(.hx-on) > li, .hx-games:not(.hx-on) > li { opacity: 0; }
.hx-on tbody tr, .hx-items.hx-on > li, .hx-players.hx-on > li, .hx-games.hx-on > li { animation: hx-in 0.6s cubic-bezier(0.16, 0.84, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 32ms); }
@keyframes hx-in { from { opacity: 0; transform: translateY(14px) scale(0.985); filter: brightness(1.8) saturate(0.4); } 60% { filter: brightness(1.15); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hx-sheen { 0%, 72% { left: -40%; opacity: 0; } 76% { opacity: 1; } 100% { left: 120%; opacity: 0; } }
@keyframes hx-twinkle { 0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-pulse { 0%, 100% { opacity: 0.45; transform: scale(0.96); } 50% { opacity: 0.85; transform: scale(1.04); } }

.hx-hero__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; margin-top: 4px; }
.hx-portrait { position: relative; display: grid; place-items: center; width: 168px; height: 168px; }
.hx-portrait__ring { position: absolute; inset: 0; background: var(--ring-img, url("/assets/th/ring-human.png")) center / contain no-repeat; animation: hx-spin 26s linear infinite; filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8)); }
html[data-theme="tft"] .hx-portrait__ring { filter: hue-rotate(185deg) saturate(1.3) drop-shadow(0 0 6px rgba(0, 0, 0, 0.8)); }
.hx-portrait__glow { position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 211, 18, 0.5), rgba(252, 211, 18, 0) 68%); animation: hx-pulse 3.2s ease-in-out infinite; }
.hx-btn--portrait { width: 104px; height: 104px; box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(252, 211, 18, 0.8), 0 0 26px rgba(252, 211, 18, 0.45), 0 10px 24px rgba(0, 0, 0, 0.8); }
.hx-btn--portrait > .icon { inset: 5px; }
.hx-btn--portrait::after { border-width: 7px; border-image-width: 7px; }
.hx-hero__name { margin: 0; font-size: clamp(2rem, 4.4vw, 3.1rem); overflow-wrap: anywhere; text-shadow: 0 0 18px rgba(252, 211, 18, 0.35), 0 2px 2px #000; }
.hx-hero__code { margin: 2px 0 10px; color: var(--muted); font: 400 0.85rem/1 var(--font); letter-spacing: 0.18em; }
.hx-hero__code:empty { display: none; }
.hx-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hx-role { position: relative; padding: 5px 12px 5px 28px; font: 400 0.9rem/1 var(--font); color: var(--white); text-shadow: 0 1px 1px #000;
  background: linear-gradient(180deg, rgba(60, 44, 10, 0.85), rgba(16, 12, 4, 0.9)); border: 4px solid transparent; border-image: url("/assets/w3/human-tooltip-border.png") 14 / 4px stretch; }
.hx-role::before { content: ""; position: absolute; left: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: center / cover no-repeat; box-shadow: 0 0 0 1px #000; }
.hx-role--farmer::before { background-image: url("/assets/w3/gold.png"); box-shadow: none; }
.hx-role--killer::before { background-image: url("/assets/w3/BTNMarksmanship.png"); }
.hx-role--support::before { background-image: url("/assets/w3/BTNHealthStone.png"); }
.hx-role--tank::before { background-image: url("/assets/w3/BTNGlyph.png"); }
.hx-role--flex::before { background-image: url("/assets/w3/BTNOrb.png"); }

.hx-gauge { position: relative; width: 150px; height: 150px; }
.hx-gauge:empty { display: none; }
.hx-gauge svg { width: 100%; height: 100%; overflow: visible; }
.hx-gauge__rim { fill: rgba(0, 0, 0, 0.6); stroke: #000; stroke-width: 2; }
.hx-gauge__track { fill: none; stroke: #1a1608; stroke-width: 10; }
.hx-gauge__arc { fill: none; stroke-width: 10; stroke-linecap: butt; transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 0.84, 0.3, 1) 0.25s; }
.hx-gauge__arc--good { stroke: #33d24e; filter: drop-shadow(0 0 5px rgba(63, 224, 90, 0.75)); }
.hx-gauge__arc--bad { stroke: #e2402f; filter: drop-shadow(0 0 5px rgba(255, 90, 74, 0.75)); }
.hx-gauge__tick { stroke: var(--gold); stroke-width: 2.5; filter: drop-shadow(0 0 3px rgba(252, 211, 18, 0.9)); }
.hx-gauge::before { content: ""; position: absolute; inset: -6px; pointer-events: none; border: 9px solid transparent; border-image: url("/assets/th/esc-border.png") 16 / 9px stretch; border-radius: 50%; opacity: 0; }
.hx-gauge__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hx-gauge__label b { font: 400 1.75rem/1 var(--font); font-weight: 400; text-shadow: 0 0 10px currentColor; }
.hx-gauge__label b.good { color: var(--hx-good); }
.hx-gauge__label b.bad { color: var(--hx-bad); }
.hx-gauge__label span { margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
.hx-hero .hx__bar { margin-top: 18px; }
.hx-hero .hx-figs { margin-bottom: 0; }

.hx-ribbon { position: relative; display: inline-block; padding: 0 70px 14px 0; margin-bottom: 8px; background: url("/assets/w3/scorescreen-goldbannerborder.png") left bottom / 100% 16px no-repeat; }
.hx-sub { color: var(--muted); max-width: 48em; }
.hx-empty { list-style: none; color: var(--muted); padding: 10px 0; grid-column: 1 / -1; }

.hx-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hx-item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)); box-shadow: inset 0 0 0 1px var(--hx-line); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.hx-item:hover { box-shadow: inset 0 0 0 1px rgba(252, 211, 18, 0.55), 0 0 16px rgba(252, 211, 18, 0.2); transform: translateY(-2px); }
.hx-slot { position: relative; flex: none; width: 64px; height: 64px; background: url("/assets/w3/slot.png") center / cover no-repeat; }
.hx-slot::after { content: ""; position: absolute; inset: -4px; pointer-events: none; border: 10px solid transparent; border-image: url("/assets/th/esc-border.png") 16 / 10px stretch; }
.hx-slot > .icon { position: absolute; inset: 7px; width: auto; height: auto; box-shadow: inset 0 0 0 1px #000; }
.hx-badge { position: absolute; z-index: 2; right: -10px; bottom: -8px; min-width: 2.6em; padding: 3px 5px 2px; text-align: center; font: 400 0.8rem/1 var(--font); color: #fff; text-shadow: 0 1px 1px #000;
  background: linear-gradient(180deg, #2a2a2a, #050505); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px currentColor, 0 2px 6px rgba(0, 0, 0, 0.8); }
.hx-badge--good { color: var(--hx-good); }
.hx-badge--bad { color: var(--hx-bad); }
.hx-slot__rank { position: absolute; z-index: 2; left: -8px; top: -8px; display: grid; place-items: center; width: 22px; height: 22px; font: 400 0.75rem/1 var(--font); color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff2a6, #fcd312 45%, #8a6400); border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.8); }
.hx-item__text { display: grid; gap: 5px; min-width: 0; flex: 1; }
.hx-item__name { color: var(--gold); font: 400 1rem/1.15 var(--font); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hx-item__line { color: var(--muted); font-size: 0.8rem; }

.hx-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.hx-player { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "pic who" "pic stats"; align-items: center; gap: 4px 14px; padding: 14px 16px; cursor: var(--cursor) 4 2, pointer;
  background: var(--panel-bg) 0 0 / 160px repeat, #000; border: 8px solid transparent; border-image: url("/assets/w3/human-tooltip-border.png") 14 / 8px stretch;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.45), 0 8px 18px rgba(0, 0, 0, 0.5); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hx-player:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.3), 0 0 22px rgba(252, 211, 18, 0.28), 0 12px 22px rgba(0, 0, 0, 0.6); }
.hx-player--1 { border-image-source: url("/assets/th/esc-border.png"); border-image-slice: 16; }
.hx-player__pic { grid-area: pic; position: relative; }
.hx-avatar { position: relative; display: grid; place-items: center; width: 60px; height: 60px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--pc) 70%, #fff 0%), color-mix(in srgb, var(--pc) 55%, #000) 70%); box-shadow: 0 0 0 2px #000, 0 4px 10px rgba(0, 0, 0, 0.7); }
.hx-avatar::before { content: ""; position: absolute; inset: 0; background: url("/assets/w3/player.png") center / cover no-repeat; opacity: 1; box-shadow: inset 0 0 0 2px var(--pc), inset 0 0 14px var(--pc); }
.hx-avatar::after { content: ""; position: absolute; inset: 0; border: 6px solid transparent; border-image: url("/assets/w3/scorescreen-button.png") 7 / 6px stretch; }
.hx-medal { position: absolute; right: -10px; top: -12px; width: 26px; height: 24px; fill: #fcd312; stroke: #6b4a00; stroke-width: 1; filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 4px rgba(252, 211, 18, 0.7)); }
.hx-medal--2 { fill: #e3e9f1; stroke: #4d5560; filter: drop-shadow(0 1px 1px #000); }
.hx-medal--3 { fill: #d58b4c; stroke: #5a2e0e; filter: drop-shadow(0 1px 1px #000); }
.hx-player__who { grid-area: who; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.hx-player__place { color: var(--muted); font: 400 0.9rem/1 var(--font); }
.hx-player--top .hx-player__place { color: var(--gold); }
.hx-player__name { font: 400 1.15rem/1.2 var(--font); color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hx-player__nick { flex-basis: 100%; color: var(--muted); font-size: 0.8rem; }
.hx-player__stats { grid-area: stats; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.hx-player__wr { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hx-player__wr .hx-num { margin: 0; }
.hx-player__games { color: var(--muted); font-size: 0.85rem; }
.hx-player__stats .hx-kda { font-size: 0.85rem; }

.hx-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hx-game { position: relative; display: grid; grid-template-columns: 7.2em 38px minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px 14px; padding: 8px 12px 8px 16px; background: rgba(0, 0, 0, 0.34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.hx-game::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--muted); }
.hx-game--win::before { background: linear-gradient(180deg, #7dff8e, #1d9c33); box-shadow: 0 0 8px rgba(63, 224, 90, 0.7); }
.hx-game--loss::before { background: linear-gradient(180deg, #ff9d90, #b1261a); box-shadow: 0 0 8px rgba(255, 90, 74, 0.6); }
.hx-game__res { display: flex; align-items: center; gap: 8px; }
.hx-game__result { font: 400 0.95rem/1 var(--font); }
.hx-game--win .hx-game__result { color: var(--hx-good); }
.hx-game--loss .hx-game__result { color: var(--hx-bad); }
.hx-game__who { font-size: 1.02rem; }
.hx-game__meta { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--muted); font-size: 0.82rem; }
.hx-game__kda { display: grid; justify-items: end; gap: 4px; font-size: 0.92rem; }
.hx-game__items { display: grid; grid-template-columns: repeat(6, 30px); gap: 3px; }
.hx-game__items .icon { width: 30px; height: 30px; }
.hx-game__actions { display: flex; gap: 6px; }
.hx-game__detail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 8px 0 2px; border-top: 1px solid var(--hx-line); animation: hx-in 0.45s cubic-bezier(0.16, 0.84, 0.3, 1) both; }
.hx-game__detail[hidden] { display: none; }
.hx-game__detail > .note { grid-column: 1 / -1; margin: 0; }
.hx-team__head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--gold); font-size: 0.9rem; }
.hx-team__won { margin-left: auto; color: var(--hx-good); font-size: 0.8rem; }
.hx-team--won .hx-team__head { text-shadow: 0 0 8px rgba(252, 211, 18, 0.5); }
.hx-team__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.hx-team__p { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 4px; }
.hx-team__p--me { background: linear-gradient(90deg, rgba(252, 211, 18, 0.18), transparent); box-shadow: inset 2px 0 0 var(--gold); }
.hx-team__hero { flex: none; display: inline-flex; }
.hx-team__p .icon { width: 26px; height: 26px; }
.hx-team__p .plink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-team__kda { margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hx-game { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "icon main res" "kda kda actions" "items items items" "detail detail detail"; }
  .hx-game > .hx-btn { grid-area: icon; }
  .hx-game__main { grid-area: main; min-width: 0; }
  .hx-game__res { grid-area: res; justify-content: flex-end; }
  .hx-game__kda { grid-area: kda; display: flex; justify-items: start; gap: 14px; }
  .hx-game__items { grid-area: items; grid-template-columns: repeat(6, minmax(0, 34px)); }
  .hx-game__items .icon { width: 100%; height: auto; aspect-ratio: 1; }
  .hx-game__actions { grid-area: actions; justify-content: flex-end; }
  .hx-game__detail { grid-area: detail; }
}

@media (max-width: 760px) {
  .hx-hero__head { grid-template-columns: auto minmax(0, 1fr); }
  .hx-gauge { grid-column: 1 / -1; justify-self: center; width: 140px; height: 140px; }
  .hx-portrait { width: 128px; height: 128px; }
  .hx-btn--portrait { width: 80px; height: 80px; }
  .hx-table, .hx-table tbody { display: block; }
  .hx-table thead { display: block; margin-bottom: 8px; }
  .hx-table thead tr { display: flex; flex-wrap: wrap; gap: 6px; }
  .hx-table thead th { display: block; padding: 0; }
  .hx-table thead .c-rank { display: none; }
  .hx-table thead .hx-sort { width: auto; min-height: 30px; font-size: 0.78rem; padding: 0 6px; }
  .hx__bar .hx__maps.pulldown [data-pulldown-current] { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70vw; }
  .hx-table tbody tr { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; grid-template-areas: "rank hero games" "wr wr pick" "kda kda gold"; gap: 6px 10px; align-items: center; margin-bottom: 6px; padding: 8px 10px;
    background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px var(--hx-line); }
  .hx-table tbody td, .hx-table tbody th { display: block; padding: 0; background: none !important; border: 0 !important; text-align: left; width: auto; min-width: 0; }
  .hx-table tbody tr:hover { background: url("/assets/w3/quest-button-highlight.png") center / 100% 100% no-repeat, rgba(40, 30, 6, 0.55); }
  .hx-table .c-rank { grid-area: rank; }
  .hx-table .c-hero { grid-area: hero; width: auto; }
  .hx-table .c-wr, .hx-table .c-pick { width: auto; }
  .hx-table .c-games { grid-area: games; text-align: right; }
  .hx-table .c-wr { grid-area: wr; }
  .hx-table .c-pick { grid-area: pick; min-width: 92px; }
  .hx-table .c-kda { grid-area: kda; font-size: 0.9rem; }
  .hx-table .c-gold { grid-area: gold; text-align: right; font-size: 0.9rem; }
  .hx-table .c-wr .hx-num, .hx-table .c-pick .hx-num { display: inline-block; margin: 0 0 3px; font-size: 0.92rem; }
  .hx-btn { width: 44px; height: 44px; }
  .hx-hero-link__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hx-ribbon { padding-right: 30px; }
}

@media (max-width: 480px) {
  .hx-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hx-fig { padding: 8px 10px; }
  .hx-fig__value { font-size: 1.15rem; }
  .hx-fig__hero { font-size: 0.92rem; gap: 6px; }
  .hx-tab { min-width: 0; flex: 1; }
  .hx-tabs { width: 100%; }
  .hx__maps { width: 100%; }
  .hx-hero__head { gap: 10px 14px; }
  .hx-portrait { width: 104px; height: 104px; }
  .hx-btn--portrait { width: 66px; height: 66px; }
  .hx-items { grid-template-columns: minmax(0, 1fr); }
  .hx-players { grid-template-columns: minmax(0, 1fr); }
  .hx-game__detail { grid-template-columns: minmax(0, 1fr); }
  .hx__intro .title { padding-right: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-portrait__ring, .hx-portrait__glow, .hx-fig::after, .hx__intro .title::after { animation: none; }
  .hx-on tbody tr, .hx-items.hx-on > li, .hx-players.hx-on > li, .hx-games.hx-on > li, .hx-game__detail { animation: none; }
  .hx-meter__fill, .hx-gauge__arc { transition: none; }
}
