/* ============================================================
   Хаб сезона: карточка игрока/сущности (наведение на ПК).
   Только токены tokens.css.
   ============================================================ */
.hcard { position: fixed; z-index: 150; width: 300px; padding: var(--space-3); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: panel-in 140ms var(--ease-out); }
.hcard__top { display: flex; align-items: center; gap: var(--space-3); }
.hcard__top .av { width: 48px; height: 48px; }
.hcard__name { font-weight: 700; color: var(--text); line-height: 1.25; }
.hcard__sub { font-size: var(--fs-xs); color: var(--text-muted); }
.hcard__text { margin-top: var(--space-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-muted); }
.hcard__go { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-2); font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.hcard__arrow { transition: translate var(--dur-fast) var(--ease-out); } .hcard--link { cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.hcard--link:hover { border-color: var(--accent-ring); background: var(--surface-2); }
.hcard--link:hover .hcard__go { color: var(--accent-hover); } .hcard--link:hover .hcard__go-t { text-decoration: underline; text-underline-offset: 3px; }
.hcard--link:hover .hcard__arrow { translate: 3px 0; }

/* ---------- тач-устройства: нижняя панель ---------- */
.hcard-scrim { position: fixed; inset: 0; z-index: 149; background: var(--overlay); }
.hcard-lock { overflow: hidden; padding-right: var(--lock-pad, 0); }
.hcard--sheet { inset: auto 0 0 0; width: 100%; max-width: 36rem; margin-inline: auto; max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-5) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; cursor: default; animation: none; }
.hcard--sheet:focus { outline: none; }
.hcard__handle { position: absolute; top: var(--space-2); left: 50%; width: 2.5rem; height: 4px; margin-left: -1.25rem; border-radius: var(--r-full); background: var(--border-strong); }
.hcard__close { position: absolute; top: var(--space-1); right: var(--space-1); display: grid; place-items: center; min-width: var(--tap-min); min-height: var(--tap-min); border: 0; border-radius: var(--r-full); background: transparent; color: var(--text-muted); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.hcard__close:hover { color: var(--text); background: var(--surface-2); }
.hcard--sheet .hcard__top { padding-right: var(--tap-min); }
.hcard--sheet .hcard__text { font-size: var(--fs-base, 1rem); }
.hcard--sheet .hcard__go { display: flex; justify-content: center; min-height: var(--tap-min); margin-top: var(--space-4); padding: 0 var(--space-4); border: 1px solid var(--accent-ring); border-radius: var(--r-lg); font-size: var(--fs-sm); text-decoration: none; }
.hcard--sheet .hcard__go:hover { background: var(--surface-2); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .hcard--sheet { animation: sheet-up var(--dur-slow) var(--ease-out); }
  .hcard-scrim:not([hidden]) { animation: scrim-in var(--dur) var(--ease-out); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes scrim-in { from { opacity: 0; } }
