/* Четыре модуля главной наследуют шрифт и цвета из tokens.css. */
.hx-section { margin-block:clamp(26px, 3vw, 46px); min-width:0; scroll-margin-top:75px }
.hx-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px }
.hx-section .hx-title { margin:0; font:inherit; font-size:clamp(22px, 2.3vw, 32px); line-height:1.14; font-weight:750; letter-spacing:-.035em; color:var(--hud-text) }
.hpick-search { position:relative; display:flex; align-items:center; width:min(100%,240px); color:var(--hud-muted) }
.hpick-search svg { position:absolute; width:18px; height:18px; left:12px; pointer-events:none }
.hpick .hpick-search input { padding:10px 12px 10px 38px; width:100%; font:inherit; font-size:14px }
.hpick-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:14px }
.hpick-tabs,.mb-filters { display:flex; gap:5px; flex-wrap:wrap }
:is(.hpick-tabs,.mb-filters) button,.hpick-more { background:var(--hud-panel); color:var(--hud-muted); border:1px solid var(--hud-line); font:inherit; font-weight:650; font-size:13px; padding:9px 12px; cursor:pointer }
:is(#home-heroes .hpick-tabs,#home-meta .mb-filters) button { border-radius:999px!important; padding-inline:14px; transition:background-color .15s,border-color .15s }
:is(.hpick-tabs,.mb-filters) button:hover { border-color:var(--filter-color,var(--hud-accent)); color:var(--hud-text) }
:is(#home-heroes .hpick-tabs,#home-meta .mb-filters) button:focus-visible { outline:1px solid var(--hud-accent)!important; outline-offset:2px!important }
:is(.hpick-tabs,.mb-filters) [aria-pressed=true] { color:var(--hud-text); border-color:var(--filter-color,var(--hud-accent)); background:color-mix(in srgb,var(--filter-color,var(--hud-accent)) 14%,var(--hud-panel)) }
.hpick-tabs [data-attr-filter=str] { --filter-color:var(--d2-str) }
.hpick-tabs [data-attr-filter=agi] { --filter-color:var(--d2-agi) }
.hpick-tabs [data-attr-filter=int] { --filter-color:var(--d2-int) }
.hpick-tabs [data-attr-filter=uni] { --filter-color:#e8b95e }
.hpick-tabs i { display:inline-block; width:8px; height:8px; background:var(--filter-color); margin-right:7px; transform:rotate(45deg) }
.hpick-count,.hpick-empty { color:var(--hud-muted); font-size:13px }
.hpick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px }
.hpick-card { aspect-ratio:16/9; position:relative; display:block; isolation:isolate; overflow:hidden; border:1px solid var(--hud-line); background:var(--hud-panel); text-decoration:none; border-radius:3px }
.hpick-card img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .18s ease-out }
.hpick-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,#050a13eb,transparent 73%); pointer-events:none }
.hpick-name { position:absolute; z-index:1; bottom:5px; left:6px; right:4px; line-height:1.13; color:#fff; font-size:clamp(10px,1vw,13px); font-weight:700; text-shadow:0 1px 3px #050911 }
.hpick-tip { display:none; position:absolute; inset:auto 0 0; background:#0a111eef; padding:5px; color:white; font-size:11px; line-height:1.3; z-index:2 }
.hpick-card:focus-visible .hpick-tip { display:block }
.hpick-card:focus-visible .hpick-name { top:4px; bottom:auto; text-shadow:0 1px 4px #000,0 0 3px #000 }
@media(hover:hover) {
  .hpick-card:hover { border-color:var(--hud-accent) }
  .hpick-card:hover img { transform:scale(1.06) }
  .hpick-card:hover .hpick-tip { display:block }
  .hpick-card:hover .hpick-name { top:4px; bottom:auto; text-shadow:0 1px 4px #000,0 0 3px #000 }
}
.hpick .hpick-more { display:block; margin:14px auto 0; color:var(--hud-accent-strong) }
.hpick [hidden] { display:none!important }
@media(min-width:520px) { .hpick-grid { grid-template-columns:repeat(5,minmax(0,1fr)) } }
@media(min-width:780px) { .hpick-grid { grid-template-columns:repeat(8,minmax(0,1fr)) } }
@media(min-width:1100px) { .hpick-grid { grid-template-columns:repeat(10,minmax(0,1fr)) } }
@media(max-width:599px) { .hpick-search { width:100% } :is(.hpick-tabs,.mb-filters) button { padding:8px 9px } }
@media(prefers-reduced-motion:reduce) { .hpick-card img { transition:none } }
