/* Player page — heroes section. Owned by the heroes worker. */
.heroes-controls {
    display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
    margin-bottom: var(--sp-4);
}
.heroes-controls .input { width: 180px; max-width: 100%; }
.heroes-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--fs-sm); color: var(--text-2); cursor: pointer;
}
.heroes-toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

.heroes-spotlight {
    display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.hero-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.hero-card-head { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.hero-card-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.2; }
.hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.hero-card-stats .stat-value { font-size: var(--fs-lg); }
.hero-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
    font-size: var(--fs-xs); color: var(--text-3);
}

.hero-cell { display: flex; align-items: center; gap: var(--sp-2); }
.hero-cell .role-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--role-color, var(--text-3)); flex-shrink: 0; }
table.data.heroes-table { min-width: 960px; }
table.data.heroes-table th:first-child, table.data.heroes-table td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--surface-1);
}
table.data.heroes-table th:first-child { z-index: 2; }
table.data.heroes-table tbody tr.is-clickable:hover td:first-child { background: var(--surface-2); }
.heroes-count { font-size: var(--fs-xs); color: var(--text-3); margin: 0 0 var(--sp-2); }
.heroes-empty .btn { margin-top: var(--sp-2); }

/* Drawer */
.hd-head { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; flex-wrap: wrap; }
.hd-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; }
.hd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-block: var(--sp-4); }
.hd-tile { background: var(--surface-2); border-radius: var(--radius-md); padding: var(--sp-3); }
.hd-tile .stat-value { font-size: var(--fs-xl); }
.hd-block { margin-top: var(--sp-5); }
.hd-block h3 { margin: 0 0 var(--sp-2); }
.hd-note { color: var(--text-3); font-size: var(--fs-sm); padding: var(--sp-4); background: var(--surface-2); border-radius: var(--radius-md); }
.hd-stats details { border-bottom: 1px solid var(--border); padding-block: var(--sp-2); }
.hd-stats summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.hd-stats dl { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--sp-3); margin: var(--sp-2) 0 0; font-size: var(--fs-sm); }
.hd-stats dt { color: var(--text-3); }
.hd-stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hd-compare .table-wrap { border-radius: var(--radius-md); }
.player-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; background: var(--swatch); }
table.data tr.is-me td { background: var(--accent-dim); }
