/* ============================================================
   kit.css — Vantage locked component kit (Stream J)
   Prefix: vk-
   Rules:
     - Token values ONLY (var(--*) from tokens.css; no raw values)
     - All @keyframes namespaced vk-*
     - Do NOT restyle existing screens — additive only
     - Never appended to components.css
   ============================================================ */

/* ── Motion keyframes (vk-* namespace) ──────────────────────── */

@keyframes vk-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes vk-slide-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vk-count-up {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vk-stagger-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Full-canvas layout container ───────────────────────────── */

.vk-canvas {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
}

.vk-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(12, 1fr);
}

.vk-col-4  { grid-column: span 4; }
.vk-col-6  { grid-column: span 6; }
.vk-col-8  { grid-column: span 8; }
.vk-col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .vk-col-4,
  .vk-col-6,
  .vk-col-8 {
    grid-column: span 12;
  }
}

/* ── Stat tile ───────────────────────────────────────────────── */

.vk-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  animation: vk-fade-in var(--dur) var(--ease);
}

.vk-tile__label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vk-tile__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.vk-tile__delta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.vk-tile__delta--pos { color: var(--green); }
.vk-tile__delta--neg { color: var(--red); }

.vk-tile__sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Secondary tile — smaller/muted variant for ExclAwp / unrestricted stat
   rows (Stream Q Duels tab: OQ-Q3 distinguishing display). */
.vk-tile--secondary {
  padding: var(--space-3) var(--space-4);
}

.vk-tile--secondary .vk-tile__value {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* Secondary table — same demotion idiom as .vk-tile--secondary, applied to
   an aim-tab-weapon-table (Stream U U-F: Trades tab alive-anywhere family,
   demoted below the new nearby-based primary family). */
.aim-tab-weapon-table--secondary td {
  color: var(--text-muted);
}

/* ── Data table ──────────────────────────────────────────────── */

.vk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.vk-table th {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.vk-table th:hover { color: var(--text); }

.vk-table th[aria-sort="ascending"]::after  { content: ' ↑'; }
.vk-table th[aria-sort="descending"]::after { content: ' ↓'; }

.vk-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
}

/* feat1: full-row translucent infill + left edge */
.vk-row--win td  { border-left: 2px solid var(--green); background-color: var(--green-infill); }
.vk-row--loss td { border-left: 2px solid var(--red);   background-color: var(--red-infill); }

.vk-table tbody tr:hover td {
  background: var(--card-raised);
}
/* feat1: win/loss rows keep infill tint on hover (slightly brighter) */
.vk-table tbody .vk-row--win:hover  td { background-color: rgba(91, 168, 107, 0.17); }
.vk-table tbody .vk-row--loss:hover td { background-color: rgba(229, 68, 59,  0.17); }

/* ── Card ────────────────────────────────────────────────────── */

.vk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  clip-path: var(--clip-corner);
}

.vk-card--raised {
  background: var(--card-raised);
  border-color: var(--border-strong);
}

/* ── Badge / pill ────────────────────────────────────────────── */

.vk-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}

.vk-badge--win     { color: var(--green); border-color: var(--green); background: var(--green-dim); }
.vk-badge--loss    { color: var(--red);   border-color: var(--red);   background: rgba(229,68,59,0.12); }
.vk-badge--orange  { color: var(--orange); border-color: var(--orange); background: var(--orange-dim); }
.vk-badge--ct      { color: var(--blue);  border-color: var(--blue);  background: rgba(90,159,212,0.10); }
.vk-badge--t       { color: var(--tan);   border-color: var(--tan);   background: rgba(215,179,108,0.10); }

.vk-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-3);
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.vk-pill--active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

/* ── Section header ──────────────────────────────────────────── */

/* ONE treatment: muted-grey default; orange reserved for hero contexts only */
.vk-section {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.vk-section__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vk-section--hero .vk-section__title {
  color: var(--orange);
}

.vk-section__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.vk-section__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Meter / bar ─────────────────────────────────────────────── */

/* Bars mean above/below peer median. Always show a legend. */
.vk-meter {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.vk-meter__track {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.vk-meter__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--text-muted);
  transition: width var(--dur) var(--ease);
}

/* Green = above median; red = below median */
.vk-meter__fill--above { background: var(--green); }
.vk-meter__fill--below { background: var(--red); }

/* Median marker */
.vk-meter__median {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--border-strong);
}

.vk-legend {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vk-legend__swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.vk-legend__swatch--above { background: var(--green); }
.vk-legend__swatch--below { background: var(--red); }
.vk-legend__swatch--median { background: var(--border-strong); width: 1px; height: 10px; border-radius: 0; }

/* ── Filter bar ──────────────────────────────────────────────── */

.vk-filterbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-4);
}

.vk-filterbar__label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: var(--space-1);
}

.vk-filterbar__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.vk-filterbar__btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.vk-filterbar__btn--active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

/* ── Empty / loading states ──────────────────────────────────── */

.vk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.vk-empty__icon {
  font-size: var(--text-2xl);
  opacity: 0.25;
}

.vk-empty__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vk-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ── Hero card (chamfer + bracket accents) ───────────────────── */

.vk-hero {
  position: relative;
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--border-strong);
  clip-path: var(--clip-corner);
  box-shadow: var(--shadow-card);
}

/* Orange bracket accents on hero cards only */
.vk-hero::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
}

.vk-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}

.vk-hero__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.vk-hero__label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ── Motion utilities ────────────────────────────────────────── */

.vk-countup {
  animation: vk-count-up var(--dur) var(--ease-out) both;
}

.vk-stagger > * {
  animation: vk-stagger-in var(--dur-slow) var(--ease-out) both;
}

.vk-stagger > *:nth-child(1) { animation-delay: 0ms; }
.vk-stagger > *:nth-child(2) { animation-delay: 40ms; }
.vk-stagger > *:nth-child(3) { animation-delay: 80ms; }
.vk-stagger > *:nth-child(4) { animation-delay: 120ms; }
.vk-stagger > *:nth-child(5) { animation-delay: 160ms; }
.vk-stagger > *:nth-child(6) { animation-delay: 200ms; }

/* ── Tab shell (used by My Game hub) ────────────────────────── */

.vk-tabs {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vk-tablist {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5);
  overflow-x: auto;
  flex-shrink: 0;
}

.vk-tablist::-webkit-scrollbar { display: none; }

.vk-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.vk-tab:hover {
  color: var(--text);
}

.vk-tab--active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.vk-tabpanel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* ── Steel depth ramp utilities ──────────────────────────────── */

.vk-depth-bg      { background: var(--bg); }
.vk-depth-surface { background: var(--surface); }
.vk-depth-card    { background: var(--card); }
.vk-depth-raised  { background: var(--card-raised); }

/* ── vk-ring — circular progress/rank ring ───────────────────── */
/*
  Usage: wrap a <svg> with class="vk-ring" inside a relative container.
  The SVG itself carries the conic-gradient circle; this class handles
  sizing and centering only so it's layout-agnostic.
*/
.vk-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-direction: column;
}

.vk-ring__svg {
  display: block;
}

.vk-ring__track {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}

.vk-ring__fill {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--dur-slow) var(--ease-out);
}

.vk-ring__label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-1);
}

/* ── vk-mapcard — map-radar thumbnail card ───────────────────── */
/*
  Usage:
    <div class="vk-mapcard vk-mapcard--win">
      <div class="vk-mapcard__bg" style="background-image:url(...)"></div>
      <div class="vk-mapcard__body">...</div>
    </div>

  Win/loss edge: left border accent, set via modifier.
  If image missing, __bg falls back to --card (solid steel).
*/
.vk-mapcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  appearance: none;
  background: var(--card);
  text-align: left;
  transition:
    border-color var(--dur) var(--ease),
    transform    var(--dur) var(--ease);
}

.vk-mapcard:hover,
.vk-mapcard:focus-visible {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--orange-glow), var(--shadow-card);
}

.vk-mapcard:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Map radar as darkened background */
.vk-mapcard__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--card);
  /* Dark scrim so text is always legible */
  filter: brightness(0.22) saturate(0.6);
  z-index: 0;
  transition: filter var(--dur) var(--ease);
}

.vk-mapcard:hover .vk-mapcard__bg {
  filter: brightness(0.30) saturate(0.7);
}

/* Content overlay above the bg */
.vk-mapcard__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  height: 100%;
}

/* Win/loss left-edge accent (3px left border override) */
.vk-mapcard--win  { border-left: 3px solid var(--green); }
.vk-mapcard--loss { border-left: 3px solid var(--red);   }

/* Map name label */
.vk-mapcard__mapname {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

/* Score display */
.vk-mapcard__score {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Stats row */
.vk-mapcard__stats {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}

.vk-mapcard__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vk-mapcard__stat-label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vk-mapcard__stat-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text);
}

/* Date */
.vk-mapcard__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── vk-insight — accent-glow callout card ───────────────────── */
/*
  Usage: <div class="vk-insight">...</div>
  Full-width callout with subtle orange left-border glow.
  Designed for a single strong narrative line.
*/
.vk-insight {
  position: relative;
  padding: var(--space-4) var(--space-5);
  background: var(--orange-grad), var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  box-shadow: -4px 0 16px var(--orange-glow), var(--shadow-card);
  clip-path: var(--clip-corner);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.vk-insight__icon {
  font-size: var(--text-xl);
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
}

.vk-insight__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.vk-insight__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.vk-insight__text {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.4;
}

.vk-insight__sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── vk-diag — diagonal accent blade motif ───────────────────── */
/*
  Usage: add class="vk-diag" to any positioned container.
  Renders repeating diagonal orange blades as a ::before pseudo-element
  on the RIGHT side of the container — mimics the CS2 site's angular geometry.
  Non-interactive; pointer-events:none.
*/
.vk-diag {
  overflow: hidden; /* clip the diag blades to container bounds */
}

.vk-diag::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background:
    repeating-linear-gradient(
      -58deg,
      transparent 0px,
      transparent 18px,
      var(--orange-glow) 18px,
      var(--orange-glow) 20px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── vk-display / vk-display--italic — hero number utility ───── */
/*
  Barlow Semi Condensed bold (italic variant for hero numbers).
  Use for the signature large number treatment (e.g. Rating 3.0).
*/
.vk-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  color: var(--orange);
}

.vk-display--italic {
  font-style: italic;
}

/* ── vk-heroband — shared three-column hero band layout ─────── */
/*
  Extracted from home-hero-v2 so Profile and other screens can reuse
  the same band geometry without duplicating CSS.
  Consumers add home-hero-v2 alongside vk-heroband for any screen-specific
  overrides; this class owns the structural layout only.

  Three columns: identity left / stat center / ring+rank right.
  Works with .vk-hero (chamfer + bracket) and .vk-diag (blade motif).
*/
.vk-heroband {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

/* Left: name + role badges + meta line */
.vk-heroband__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vk-heroband__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.vk-heroband__roles {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.vk-heroband__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Center: large italic stat + label + form pips */
.vk-heroband__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  position: relative;
  z-index: 1; /* above vk-diag blades */
}

.vk-heroband__stat {
  font-size: 60px;
  letter-spacing: -0.02em;
  /* inherits vk-display--italic: font-display, 700, italic, color: --orange */
}

.vk-heroband__stat-label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Right: ring + rank number + optional sub text */
.vk-heroband__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  text-align: right;
  position: relative;
  z-index: 1;
}

.vk-heroband__ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
}

.vk-heroband__elo-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.vk-heroband__elo-rank {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--orange);
  font-weight: 600;
}

.vk-heroband__elo-provisional {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px var(--space-2);
}

/* Responsive: stack to single column on narrow viewports */
@media (max-width: 900px) {
  .vk-heroband {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }

  .vk-heroband__left {
    align-items: center;
    text-align: center;
  }

  .vk-heroband__right {
    align-items: center;
    text-align: center;
  }
}

/* ── vk-mapbanner — cinematic map banner with left→right gradient ─ */
/*
  Full-width container. Map photo fills the right portion;
  left→right gradient keeps the left dark for text legibility.

  Structure:
    <div class="vk-mapbanner">
      <div class="vk-mapbanner__bg" style="background-image:url(...)"></div>
      <div class="vk-mapbanner__gradient"></div>  (overlay)
      <div class="vk-mapbanner__content">...text...</div>
    </div>

  Fallback: __bg absent → solid --surface.
  Missing banner: onError in JS prevents __bg from rendering.
*/
.vk-mapbanner {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  min-height: 180px;
}

/* Cinematic map photo — covers right ~78% of the banner */
.vk-mapbanner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-color: var(--surface);
  /* Slight darken to reduce harshness before gradient */
  filter: brightness(0.55) saturate(0.85);
  z-index: 0;
}

/* Left→right gradient: solid dark on left, fades to transparent on right */
.vk-mapbanner__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--surface) 0%,
    var(--surface) 22%,
    rgba(20,25,30,0.55) 55%,
    transparent 100%
  );
  z-index: 1;
}

/* Content layer — always on top, left-aligned */
.vk-mapbanner__content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
}

/* ── vk-mapcard__bg--banner override ─────────────────────────── */
/*
  Switch MapMatchCard from radar (heavily darkened) to cinematic banner
  (moderately darkened, atmospheric). The card is small so a lighter
  scrim lets the image read while a gradient keeps text legible.
*/
.vk-mapcard__bg--banner {
  /* Cinematic — slightly less dark than the old radar treatment */
  filter: brightness(0.30) saturate(0.75);
}

.vk-mapcard:hover .vk-mapcard__bg--banner {
  filter: brightness(0.40) saturate(0.85);
}

/* Diagonal gradient scrim (bottom-left darken to keep text readable) */
.vk-mapcard__banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14,17,20,0.60) 0%,
    rgba(14,17,20,0.10) 60%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* ── vk-select — custom styled dropdown ─────────────────────── */
/*
  Usage:
    <${Select} value=${val} options=${opts} onChange=${fn} ariaLabel="..." />
  Renders a button trigger + popover listbox. Keyboard: Enter/Space to open,
  Arrow keys to navigate, Enter to select, Esc to close.
*/

.vk-select {
  position: relative;
  display: inline-block;
}

.vk-select__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  min-width: 80px;
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  appearance: none;
}

.vk-select__trigger:hover,
.vk-select--open .vk-select__trigger {
  border-color: var(--border-strong);
  color: var(--text);
}

.vk-select__trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.vk-select__chevron {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
  transition: transform var(--dur-fast) var(--ease);
  pointer-events: none;
}

.vk-select--open .vk-select__chevron {
  transform: scaleY(-1);
}

.vk-select__value {
  flex: 1;
  text-align: left;
}

.vk-select__listbox {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background: var(--card-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  list-style: none;
  z-index: var(--z-overlay);
  padding: var(--space-1) 0;
  animation: vk-slide-up var(--dur-fast) var(--ease-out) both;
}

.vk-select__listbox::-webkit-scrollbar {
  width: 4px;
}
.vk-select__listbox::-webkit-scrollbar-track {
  background: transparent;
}
.vk-select__listbox::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

.vk-select__option {
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.vk-select__option:hover,
.vk-select__option--focused {
  background: var(--surface);
  color: var(--text);
}

.vk-select__option--selected {
  color: var(--orange);
}

.vk-select__option--selected.vk-select__option--focused,
.vk-select__option--selected:hover {
  background: var(--orange-dim);
  color: var(--orange);
}

/* ── Aim tab (K4) ────────────────────────────────────────────── */

.aim-tab {
  padding: var(--space-5) 0;
}

/* Hero card: Aim Score centrepiece */
.aim-tab-hero {
  text-align: center;
  padding: var(--space-7) var(--space-6);
}

.aim-tab-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.aim-tab-score-label {
  margin-bottom: var(--space-1);
}

/* Large orange italic number — reuses vk-display sizing from hero band */
.aim-tab-score-number {
  font-size: 80px;
  letter-spacing: -0.02em;
}

.aim-tab-score-scale {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.aim-tab-provisional {
  margin-top: var(--space-1);
}

.aim-tab-score-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* 6-tile sub-stat grid — 3 across on wide, 2 on narrow */
.aim-tab-substats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .aim-tab-substats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .aim-tab-substats {
    grid-template-columns: 1fr;
  }
}

.aim-tab-empty {
  margin-top: var(--space-7);
}

/* Muted dash for null stats — not a fake value, just unavailable */
.aim-tab-null-stat {
  color: var(--text-muted);
  font-weight: 400;
}

/* 9-tile mechanics grid (expanded from 6 for M7 stats) */
.aim-tab-substats {
  grid-template-columns: repeat(3, 1fr);
}

/* Weapon sort controls row */
.aim-tab-weapon-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.aim-tab-sort-label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* One-liner explainer under the sort row */
.aim-tab-weapon-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

/* Horizontal scroll wrapper so table never overflows on narrow viewports */
.aim-tab-weapon-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.aim-tab-weapon-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.aim-tab-weapon-table thead tr {
  border-bottom: 1px solid var(--border);
}

.aim-tab-weapon-table th {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4);
  text-align: right;
  white-space: nowrap;
}

.aim-tab-weapon-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.aim-tab-weapon-table tbody tr:last-child td {
  border-bottom: none;
}

.aim-tab-weapon-table tbody tr:hover {
  background: var(--surface);
}

/* Weapon name column — left-aligned, contains icon + label */
.aim-tab-wt-weapon {
  text-align: left !important;
  min-width: 120px;
}

.aim-tab-weapon-table th.aim-tab-wt-weapon {
  text-align: left !important;
}

.aim-tab-wt-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: var(--space-2);
  opacity: 0.85;
}

.aim-tab-wt-name {
  vertical-align: middle;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Numeric columns */
.aim-tab-wt-num {
  text-align: right;
  white-space: nowrap;
  min-width: 64px;
}

/* Footer line showing pool size */
.aim-tab-weapon-footnote {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
  text-align: right;
}

/* ── Scouting aim col (K4) ───────────────────────────────────── */

/* Provisional aim score displayed at lower opacity in the table */
.players-v2-td--aim-provisional {
  opacity: 0.6;
}

/* ── UpgradePrompt (Sub-project A2-3) ───────────────────────────
   Sits on top of the .vk-empty shell — additive rules only, the base
   icon/title/copy layout is unchanged. */

.upgrade-prompt__cta {
  margin-top: var(--space-2);
}

.upgrade-prompt--panel {
  min-height: 220px;
}

/* Compact card for a smaller slot (dashboard board widget) — same shell,
   tighter padding, no forced min-height. */
.upgrade-prompt--mini {
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--card-raised);
}

.upgrade-prompt--mini .vk-empty__icon {
  font-size: var(--text-xl);
}

/* ── Nav lock badge (Sub-project A2-5) ──────────────────────────
   Same pill mechanics as .sidebar-nav-soon (mono, muted, bordered) — a
   Free-tier nav item stays a real clickable <button> (unlike the
   disabled .soon items), this badge only signals the destination is
   Paid-gated. */
.sidebar-nav-locked {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background-color: var(--card-raised);
  padding: 1px var(--space-1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  opacity: 0.7;
}
