/* ── Collector Hub v2 — local styles ─────────────────────────── */
:root {
  --vit-line:             rgba(240,235,225,0.08);
  --vit-line-strong:      rgba(240,235,225,0.16);
  --off-30:               #525252;
  --vs-plate-me-tint:     rgba(245,163,26,0.03);
  --vs-plate-them-tint:   rgba(200,200,208,0.025);
}

.vit { max-width: 1240px; margin: 0 auto; padding: 100px clamp(20px,4vw,52px) 80px; }
.vit--dev-active { padding-bottom: 120px; }

/* ── On This Day banner — P0.4: lives inside hero, spans full grid ─ */
.vit-otd {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: -32px;
  background: var(--bg2); border-left: 4px solid var(--gold);
  font-size: var(--fs-button); color: var(--off-70);
}
.vit-otd[hidden] { display: none; }
.vit-otd-icon { flex-shrink: 0; color: var(--gold); display: flex; align-items: center; }
.vit-otd strong { color: var(--off); }
.vit-otd-msg { flex: 1; }
.vit-otd-dismiss {
  background: none; border: none; color: var(--off-70); cursor: pointer;
  font-size: var(--fs-button); padding: 4px 8px; flex-shrink: 0; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.vit-otd-dismiss:hover { color: var(--off); }

/* ── Hero — P1.1: two-column, sigil as watermark ───────────────── */
.vit-hero {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; align-items: center;
  position: relative;
  padding-bottom: 56px; border-bottom: 1px solid var(--vit-line);
  margin-bottom: 40px;
}
.vit-centerpiece-wrap { position: relative; flex-shrink: 0; }
.vit-centerpiece {
  width: 280px; height: 360px; overflow: hidden;
  background: var(--bg2);
  position: relative;
}
.vit-centerpiece img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vit-centerpiece-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 14px 14px;
  background: linear-gradient(to top, rgba(6,5,4,0.78) 0%, rgba(6,5,4,0.35) 50%, transparent 100%);
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-h3); font-weight: 700; font-style: italic; color: var(--off);
  text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}

.vit-id-v2 { display: flex; flex-direction: column; gap: 10px; }
.vit-hero-head { display: flex; flex-direction: column; gap: 6px; }
.vit-eyebrow {
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--off-70);
}
.vit-hero-name {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--off);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.vit-hero-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono); color: var(--off-70);
}

.vit-hero-collection {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-body); color: var(--off-70);
  line-height: 1.6; margin-top: 8px;
}
.vit-hero-collection em { color: var(--off); font-style: normal; font-weight: 600; }

/* Hero distinctions — mini showcase */
.vit-hero-distinctions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--vit-line);
}
.vit-hero-dist-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.vit-hero-dist-title {
  font-size: var(--fs-meta); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--off-70);
}
.vit-hero-dist-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); color: var(--off-70);
  font-variant-numeric: tabular-nums;
}
.vit-hero-dist-count em {
  color: var(--gold); font-style: normal; font-weight: 600;
}
.vit-hero-dist-showcase {
  display: flex; gap: 10px;
}
.vit-hero-dist-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--bg2);
  border: 1px solid var(--vit-line);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  flex: 1; min-width: 0;
}
@media (max-width: 1080px) {
  .vit-hero-dist-showcase { flex-wrap: wrap; }
  .vit-hero-dist-item { flex: 0 0 calc(50% - 5px); }
}
@media (max-width: 720px) {
  .vit-hero-dist-item { flex: 1 1 100%; }
}
.vit-hero-dist-item:hover {
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, rgba(245,163,26,0.04), transparent 60%), var(--bg2);
}
.vit-hero-dist-item img {
  width: 40px; height: 40px; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(245,163,26,0.2));
}
.vit-hero-dist-item-info {
  min-width: 0;
}
.vit-hero-dist-item-name {
  font-size: var(--fs-label); font-weight: 700;
  color: var(--off);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vit-hero-dist-item-tier {
  display: flex; align-items: center; gap: 3px;
}
.vit-hero-dist-item-tier .rarity-diamond {
  width: 7px; height: 7px;
}
.vit-hero-dist-item-tier--bronze    { color: #C98A4B; }
.vit-hero-dist-item-tier--silver    { color: #C8C8D0; }
.vit-hero-dist-item-tier--gold      { color: var(--gold); }
.vit-hero-dist-item-tier--legendary { color: #D4AF37; }
.vit-hero-dist-item-tier--mythic    { color: #E8D5B0; }
.vit-hero-dist-link {
  font-size: var(--fs-meta); color: var(--off-70);
  text-decoration: none; letter-spacing: var(--track-tight);
  white-space: nowrap; margin-top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 150ms ease;
}
.vit-hero-dist-link:hover { color: var(--gold); }
.vit-hero-dist-none {
  font-size: var(--fs-body-sm); color: var(--off-70);
  font-style: italic;
}

/* Wallet sigil — P1.1: 220×220 watermark behind id column */
.vit-sigil {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 220px; height: 220px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.vit-sigil svg { display: block; }
.vit-id-v2 { position: relative; z-index: 1; }

/* ── Stat ribbon ─────────────────────────────────────────────────── */
.vit-ribbon {
  display: flex; flex-direction: column;
  border: 1px solid var(--vit-line);
  margin-bottom: 56px;
}

/* Lead tile — label on top */
.vit-ribbon-lead {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--vit-line);
  background: linear-gradient(135deg, rgba(245,163,26,0.03), transparent 50%), var(--bg);
}
.vit-ribbon-lead-left { flex: 1; }
.vit-ribbon-lead-actions { display: flex; gap: 10px; flex-shrink: 0; }
.vit-ribbon-lead-cat {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--track-default);
  text-transform: uppercase;
  color: rgba(245,163,26,0.7);
  display: block;
  margin-bottom: 6px;
}
.vit-ribbon-lead-num {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: block;
}
.vit-ribbon-lead-numrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.vit-ribbon-lead-sub {
  font-size: var(--fs-button);
  font-weight: 600;
  color: var(--off-70);
}

/* Secondary tiles — label on top, value below */
.vit-ribbon-row { display: flex; flex-wrap: wrap; }
.vit-ribbon-item {
  display: flex; flex-direction: column;
  padding: 20px 28px; flex: 1; min-width: 120px;
  border-right: 1px solid var(--vit-line);
  background: var(--bg);
}
.vit-ribbon-item:last-child { border-right: none; }
.vit-ribbon-cat {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--track-default);
  text-transform: uppercase;
  color: var(--off-70);
  margin-bottom: 6px;
  line-height: 1.35;
}
.vit-ribbon-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--off);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.vit-ribbon-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  color: var(--off-70);
  letter-spacing: var(--track-tight);
  margin-left: 8px;
}

/* Flex badge — standalone below the ribbon */
.vit-flex-badge-wrap {
  margin-top: -40px;
  margin-bottom: 56px;
}
.vit-flex-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border: 1px solid rgba(245,163,26,0.25);
  background: linear-gradient(135deg, rgba(245,163,26,0.04), transparent 60%), var(--bg);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.vit-flex-badge:hover {
  border-color: rgba(245,163,26,0.4);
  background: linear-gradient(135deg, rgba(245,163,26,0.06), transparent 60%), var(--bg2);
}
.vit-flex-badge-label {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--track-default);
  text-transform: uppercase;
  color: rgba(245,163,26,0.7);
}
.vit-flex-badge-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--off);
}
.vit-flex-badge-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  color: var(--off-70);
}

/* Flex trait picker popover */
.vit-flex-picker {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: var(--bg);
  border: 1px solid var(--vit-line-strong);
  max-height: 320px;
  overflow-y: auto;
  min-width: 240px;
  max-width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  scrollbar-width: thin;
  scrollbar-color: var(--vit-line-strong) transparent;
}
.vit-flex-picker::-webkit-scrollbar { width: 4px; }
.vit-flex-picker::-webkit-scrollbar-track { background: transparent; }
.vit-flex-picker::-webkit-scrollbar-thumb { background: var(--vit-line-strong); border-radius: 2px; }
.vit-flex-picker::-webkit-scrollbar-thumb:hover { background: var(--off-50); }
.vit-flex-group-label {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--track-default);
  text-transform: uppercase;
  color: rgba(245,163,26,0.7);
  padding: 12px 16px 4px;
}
.vit-flex-option {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--off);
}
.vit-flex-option:hover { background: var(--bg2); }
.vit-flex-option--auto {
  border-bottom: 1px solid var(--vit-line);
  padding: 12px 16px;
}
.vit-flex-option-val {
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--off);
}
.vit-flex-option-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  color: var(--off-70);
  margin-top: 1px;
}

@media (max-width: 480px) {
  .vit-flex-picker { left: 0; right: 0; max-width: none; }
}

/* ── Section header — numbered eyebrows + intro ─────────────────── */
.vit-section { margin-bottom: 80px; }
.vit-section-head {
  display: block;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--vit-line);
}
.vit-section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.vit-section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); font-weight: 700;
  color: var(--gold);
  letter-spacing: var(--track-wide);
}
.vit-section-eyebrow {
  font-size: var(--fs-meta); font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--off-70);
}
.vit-section-title {
  font-size: var(--fs-title); font-weight: 700; color: var(--off);
  letter-spacing: -0.01em; margin: 0; line-height: 1.05;
}
.vit-section-intro {
  font-size: var(--fs-body); color: var(--off-70);
  line-height: 1.6; margin: 12px 0 24px;
  max-width: 56ch;
}
.vit-section-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); color: var(--off-70);
  letter-spacing: var(--track-wide); text-transform: uppercase;
  display: flex; align-items: center; gap: 16px;
}


/* ── Set Collection — 2-column grid ─────────────────────────────── */
.vit-sets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.vit-set-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--vit-line);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
}
.vit-set-card:hover { border-color: var(--vit-line-strong); }

/* Set toggle button — full header, item 6 */
.vit-set-toggle {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; width: 100%;
  background: none; border: none; cursor: pointer; padding: 0;
  text-align: left;
  transition: background var(--t-fast);
}
.vit-set-toggle:hover { background: rgba(240,235,225,0.02); }
.vit-set-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.vit-set-toggle-chevron {
  color: var(--off-70); font-size: var(--fs-body); line-height: 1.6;
  flex-shrink: 0; padding-top: 2px;
  transition: transform 200ms ease, color var(--t-fast);
}
.vit-set-toggle[aria-expanded="false"] .vit-set-toggle-chevron { transform: rotate(-90deg); }
.vit-set-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
}
.vit-set-card-label { flex: 1; min-width: 0; }
.vit-set-card-name {
  font-size: var(--fs-h3); font-weight: 700; color: var(--off);
  letter-spacing: -0.005em; line-height: 1.1;
}
.vit-set-card-sub {
  font-size: var(--fs-body-sm); color: var(--off-70);
  margin-top: 4px;
}
.vit-set-card-meta { flex-shrink: 0; text-align: right; }
.vit-set-card-fraction {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-body); font-weight: 700; color: var(--off);
}
.vit-set-card-progress {
  width: 100px; height: 3px;
  background: var(--vit-line);
  margin-top: 8px; margin-left: auto;
  overflow: hidden;
}
.vit-set-card-progress-fill {
  height: 100%; background: var(--gold);
  transition: width 800ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .vit-set-card-progress-fill { transition: none; }
}

/* 4-column slot grid */
.vit-set-card-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Slot — filled */
.vit-slot {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg2);
  overflow: hidden;
  border: 1px solid var(--vit-line);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.vit-slot.filled {
  border-color: var(--vit-line-strong);
}
.vit-slot.filled img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vit-slot.filled:hover {
  transform: translateY(-2px);
  border-color: var(--gold-dim);
}

/* Slot — empty: hatched background + center + glyph */
.vit-slot:not(.filled) {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(240,235,225,0.04) 0px,
      rgba(240,235,225,0.04) 6px,
      rgba(240,235,225,0.09) 6px,
      rgba(240,235,225,0.09) 12px
    );
  border: 1px dashed rgba(240,235,225,0.20);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.vit-slot:not(.filled)::before {
  content: '+';
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--off-70);
  transition: transform var(--t-fast), color var(--t-fast);
}
.vit-slot:not(.filled):hover::before {
  color: var(--gold);
  transform: scale(1.2);
}
.vit-slot:not(.filled):hover {
  border-color: var(--gold-dim);
  border-style: solid;
}

/* Trait name label — slides up from bottom on hover/focus */
.vit-slot-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  background: linear-gradient(0deg, rgba(6,5,4,0.95), rgba(6,5,4,0.4));
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  color: var(--off);
  text-align: center;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--t-fast);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vit-slot:hover .vit-slot-label,
.vit-slot:focus-visible .vit-slot-label {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .vit-slot-label { transition: none; }
}

.vit-slot--wishlisted { border-color: var(--gold-dim) !important; }

/* Bonus (ultra-rare) slots — collapsible, dimmed, not required for completion */
.vit-set-bonus-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}
.vit-set-bonus-toggle::before,
.vit-set-bonus-toggle::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--vit-line);
}
.vit-set-bonus-toggle span {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--track-default);
  text-transform: uppercase;
  color: var(--off-70);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vit-set-bonus-toggle:hover span { color: var(--off-70); }
.vit-set-bonus-chevron {
  display: inline-block;
  font-size: var(--fs-meta);
  transition: transform var(--t-fast);
}
.vit-set-bonus-toggle[aria-expanded="true"] .vit-set-bonus-chevron {
  transform: rotate(180deg);
}
.vit-set-bonus-slots {
  display: none;
  grid-column: 1 / -1;
}
.vit-set-bonus-slots[data-visible="true"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.vit-slot--bonus {
  opacity: 0.45;
  border-style: dashed !important;
}
.vit-slot--bonus.filled {
  opacity: 0.75;
  border-style: solid !important;
  border-color: rgba(245,163,26,0.5) !important;
}
.vit-slot--bonus:not(.filled) {
  cursor: default;
}
.vit-set-card-bonus {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  color: rgba(245,163,26,0.6);
  margin-left: 4px;
}

/* Completed set — gold treatment */
.vit-set-card--complete {
  border-color: var(--gold);
  background: linear-gradient(
    180deg,
    rgba(245,163,26,0.04) 0%,
    rgba(245,163,26,0.01) 100%
  );
}
.vit-set-card--complete::before {
  content: 'Complete';
  position: absolute;
  top: -12px; right: 24px;
  background: var(--gold);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  padding: 5px 12px;
  z-index: 2;
}
.vit-set-card--complete .vit-set-card-name { color: var(--gold); }
.vit-set-card--complete .vit-set-card-progress-fill { background: var(--gold); }

/* Collapsed set row */
.vit-set--collapsed {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--vit-line);
}
.vit-set-collapsed-name {
  font-size: var(--fs-button); font-weight: 600; color: var(--off);
}
.vit-set-collapsed-right {
  display: flex; align-items: center; gap: 12px;
}
.vit-set-collapsed-fraction {
  font-size: var(--fs-button); font-variant-numeric: tabular-nums; color: var(--off-70);
}
.vit-set-collapsed-chevron {
  background: none; border: none; color: var(--off-70); cursor: pointer;
  font-size: var(--fs-h3); line-height: 1.1; padding: 4px 6px;
  transition: color var(--t-fast);
}
.vit-set-collapsed-chevron:hover { color: var(--off); }
.vit-set-collapse-btn {
  background: none; border: none; color: var(--off-70); cursor: pointer;
  font-size: var(--fs-body); line-height: 1.6; padding: 4px 6px; flex-shrink: 0;
  transition: color var(--t-fast);
}
.vit-set-collapse-btn:hover { color: var(--off); }

/* ── My Masks grid — 220px tiles, name below image ──────────────── */
.vit-masks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  /* max-height set dynamically by JS to exactly 2 rows */
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--vit-line-strong) transparent;
}
.vit-masks::-webkit-scrollbar { width: 6px; }
.vit-masks::-webkit-scrollbar-track { background: transparent; }
.vit-masks::-webkit-scrollbar-thumb { background: var(--vit-line-strong); }
.vit-masks::-webkit-scrollbar-thumb:hover { background: var(--off-50); }
.vit-mask-wrap {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--vit-line);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.vit-mask-wrap:hover {
  border-color: var(--vit-line-strong);
  transform: translateY(-2px);
}
.vit-mask {
  position: relative;
  aspect-ratio: 3 / 4;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}
.vit-mask img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.vit-mask:hover img { transform: scale(1.06); }

/* "View" label — top-left, aligned with rarity rank badge */
.vit-mask-view {
  position: absolute; top: 10px; left: 10px;
  background: rgba(6,5,4,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(240,235,225,0.14);
  padding: 3px 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-default);
  text-transform: uppercase;
  line-height: 1;
  color: var(--off);
  display: flex; align-items: center; gap: 4px;
  pointer-events: none;
  z-index: 2;
}
.vit-mask:hover .vit-mask-view { opacity: 1; }
/* Hide listing badge on hover so "View" is not obscured */
.vit-mask .m-listed-badge { transition: opacity 0.2s ease; }
.vit-mask:hover .m-listed-badge { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .vit-mask img { transition: none; }
  .vit-mask:hover img { transform: none; }
  .vit-mask-view { transition: none; }
}

.vit-mask-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px 10px;
  background: linear-gradient(to top, rgba(6,5,4,0.92) 0%, rgba(6,5,4,0.6) 60%, transparent 100%);
  display: flex; align-items: center; gap: 8px;
}
.vit-mask-name-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-card-name); font-style: italic; color: var(--off);
  flex: 1; min-width: 0; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vit-mask-name-text em { color: var(--off-50); font-style: italic; margin-left: 3px; }

/* Pin inside name bar — always visible, white → gold when pinned */
.vit-mask-name .vit-mask-pin {
  position: relative; top: auto; right: auto;
  flex-shrink: 0;
  background: rgba(6,5,4,0.5);
  border-color: rgba(240,235,225,0.18);
  backdrop-filter: none;
  color: var(--off);
  opacity: 1;
}
.vit-mask-name .vit-mask-pin::before { content: none; }
.vit-mask-name .vit-mask-pin:hover { background: transparent; border-color: transparent; color: var(--gold); opacity: 1; }
.vit-mask-name .vit-mask-pin[aria-pressed="true"] { background: transparent; border-color: transparent; color: var(--gold); opacity: 1; }

/* Rarity rank badge — top-right */
.vit-mask-rank {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(6,5,4,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(240,235,225,0.14);
  padding: 3px 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-label); font-weight: 700;
  letter-spacing: var(--track-default); text-transform: uppercase;
  color: var(--off);
  pointer-events: none;
  display: flex; align-items: center; gap: 4px;
  line-height: 1;
}

/* Mood ring — bottom-left */
.vit-mask-mood {
  position: absolute; bottom: 6px; left: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  outline: 1px solid rgba(6,5,4,0.9);
}
.vit-mask-mood--gold    { background: var(--gold); }
.vit-mask-mood--neutral { background: var(--vit-line-strong); }

/* Pin button — top-right overlay */
.vit-mask-pin {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,5,4,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(240,235,225,0.18);
  color: var(--off); opacity: 0.5;
  cursor: pointer;
  z-index: 2;
  transition: color var(--t-fast), background var(--t-fast), opacity var(--t-fast);
}
.vit-mask-pin::before {
  content: ''; position: absolute; inset: -6px;
}
.vit-mask-pin:hover { color: var(--gold); background: rgba(6,5,4,0.9); opacity: 1; }
.vit-mask-pin[aria-pressed="true"] {
  color: var(--gold); opacity: 1;
  background: rgba(6,5,4,0.92);
  border-color: var(--gold);
}

/* ── Distinctions — gallery wall ────────────────────────────────── */

/* Section header */
.vit-dist-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.vit-dist-progress {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.vit-dist-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-h3); font-weight: 700; color: var(--off-70);
  line-height: 1.1;
}
.vit-dist-count em { color: var(--gold); font-style: normal; }
.vit-dist-meter {
  width: 200px; height: 2px;
  background: var(--vit-line); position: relative;
}
.vit-dist-meter-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--gold);
  transition: width 800ms ease-out;
}

/* ── Featured distinction ─────────────────────────────────────────── */
.vit-dist-feature {
  display: flex; gap: 56px; align-items: center;
  padding: 48px 56px;
  border-top: 1px solid var(--vit-line-strong);
  border-bottom: 1px solid var(--vit-line-strong);
  background: linear-gradient(135deg, rgba(245,163,26,0.04), rgba(245,163,26,0) 60%), var(--bg2);
  margin-bottom: 56px;
}
.vit-dist-feature--teaser {
  background: var(--bg2);
  opacity: 0.7;
}
.vit-dist-feature-stage {
  width: 220px; height: 220px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vit-dist-feature-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,163,26,0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.vit-dist-feature-medal {
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(245,163,26,0.35));
}
.vit-dist-feature-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.vit-dist-feature-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); color: var(--off-70);
  text-transform: uppercase; letter-spacing: var(--track-default);
  display: flex; align-items: center; gap: 8px;
}
.vit-dist-feature-tier {
  display: inline-flex; align-items: center; gap: 3px;
}
.vit-dist-feature-tier--bronze    { color: #C98A4B; }
.vit-dist-feature-tier--silver    { color: #C8C8D0; }
.vit-dist-feature-tier--gold      { color: var(--gold); }
.vit-dist-feature-tier--legendary { color: #D4AF37; }
.vit-dist-feature-tier--mythic    { color: #E8D5B0; }
.vit-dist-feature-dot  { color: var(--off-70); }
.vit-dist-feature-name {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-title); font-weight: 700; color: var(--off);
  line-height: 1.05; margin: 0;
}
.vit-dist-feature-desc {
  font-size: var(--fs-body); color: var(--off-70); line-height: 1.6;
  max-width: 48ch; margin: 0;
}
.vit-dist-feature-earned {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono); color: var(--off-70);
  text-transform: uppercase; letter-spacing: var(--track-default);
}
.vit-dist-feature-teaser-copy {
  font-size: var(--fs-body-sm); color: var(--off-70); margin: 0; line-height: 1.6;
}

/* ── Earned marquee (matches .m-track behaviour) ─────────────────── */
.vit-dist-marquee { overflow: hidden; }
.vit-dist-earned {
  display: flex;
  gap: 20px;
  padding: 40px 0;
  width: max-content;
  will-change: transform;
  animation: dist-marquee 40s linear infinite;
}
.vit-dist-earned:hover,
.vit-dist-earned:focus-within { animation-play-state: paused; }
@keyframes dist-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .vit-dist-earned {
    animation: none;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--vit-line-strong) transparent;
  }
}
.vit-dist-earned .vit-medal {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(245,163,26,0.05), rgba(245,163,26,0) 60%), var(--bg2);
  border: 1px solid var(--gold-dim);
  padding: 16px 12px;
  position: relative;
}
.vit-dist-earned .vit-medal:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245,163,26,0.08), rgba(245,163,26,0) 60%), var(--bg2);
}
.vit-dist-earned .vit-medal::after { display: none; }

/* Top bar: diamonds left, "Earned" right */
.vit-medal-topbar {
  display: none;
}
.vit-dist-earned .vit-medal-topbar {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 2px; box-sizing: border-box;
  margin-bottom: 5px;
}
.vit-medal-topbar-earned {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); font-weight: 700;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: rgba(245,163,26,0.7);
}

/* ── Locked index ─────────────────────────────────────────────────── */
.vit-dist-locked {
  padding: 32px 0 0;
  border-top: 1px solid var(--vit-line);
}
.vit-dist-locked-head {
  font-size: var(--fs-meta); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--off-70); margin: 0 0 20px;
}
.vit-dist-locked-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; column-gap: 40px;
}
.vit-dist-locked-item {
  width: calc(50% - 20px);
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-body-sm);
  padding: 8px 0;
  border-bottom: 1px solid rgba(240,235,225,0.06);
  cursor: pointer;
}
.vit-dist-locked-item:last-child { border-bottom: none; }
.vit-dist-locked-item:hover .vit-dist-locked-name { color: var(--gold); }
.vit-dist-locked-tier {
  display: flex; align-items: center; gap: 3px;
  flex-shrink: 0; min-width: 52px;
}
.vit-dist-locked-tier--bronze    { color: #C98A4B; }
.vit-dist-locked-tier--silver    { color: #C8C8D0; }
.vit-dist-locked-tier--gold      { color: var(--gold); }
.vit-dist-locked-tier--legendary { color: #D4AF37; }
.vit-dist-locked-tier--mythic    { color: #E8D5B0; }
.vit-dist-locked-name { color: var(--off-70); font-weight: 500; transition: color 150ms ease; white-space: nowrap; }

/* ── Medal ────────────────────────────────────────────────────────── */
.vit-medal {
  display: flex; flex-direction: column; align-items: center;
  background: none; border: none; cursor: pointer;
  padding: 0; text-align: center;
  transition: transform 180ms ease-out;
}
.vit-medal:hover { transform: translateY(-4px); }
.vit-medal--locked:hover { transform: translateY(-2px); }

.vit-medal-frame {
  width: 112px; height: 112px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vit-medal-glow {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,163,26,0.22), transparent 65%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}
.vit-medal--bronze .vit-medal-glow { background: radial-gradient(circle, rgba(201,138,75,0.14), transparent 65%); }
.vit-medal--silver .vit-medal-glow { background: radial-gradient(circle, rgba(200,200,208,0.18), transparent 65%); }
.vit-medal--legendary .vit-medal-glow { background: radial-gradient(circle, rgba(245,163,26,0.28), transparent 65%); }
.vit-medal--mythic .vit-medal-glow { background: radial-gradient(circle, rgba(245,163,26,0.32), transparent 65%); }

/* Tier accent — top border on earned cards */
.vit-dist-earned .vit-medal--bronze  { border-top: 2px solid #C98A4B; }
.vit-dist-earned .vit-medal--silver  { border-top: 2px solid #C8C8D0; }
.vit-dist-earned .vit-medal--gold    { border-top: 2px solid var(--gold); }
.vit-dist-earned .vit-medal--legendary { border-top: 2px solid var(--gold); }
.vit-dist-earned .vit-medal--mythic  { border-top: 2px solid var(--gold); }

.vit-medal--earned .vit-medal-frame img {
  width: 88px; height: 88px;
  filter: drop-shadow(0 4px 12px rgba(245,163,26,0.28));
}
.vit-medal--locked .vit-medal-glow { display: none; }

.vit-medal-plate {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: var(--track-default);
  text-align: center; max-width: 120px; line-height: 1.35;
  margin-top: 5px;
}
.vit-medal--earned .vit-medal-plate { color: var(--off); font-weight: 700; font-size: var(--fs-label); }
.vit-medal--locked .vit-medal-plate { color: var(--off-70); font-weight: 700; font-size: var(--fs-label); }

.vit-medal-hint {
  display: block; margin-top: 4px;
  font-size: var(--fs-meta); font-style: italic;
  color: var(--off-70); line-height: 1.35;
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.vit-medal--locked:hover .vit-medal-hint { opacity: 1; }
.vit-medal:hover .vit-medal-glow { opacity: 1; }
.vit-medal--earned:hover .vit-medal-plate { color: var(--gold); transition: color 180ms ease-out; }

/* Tier diamond colors */
.vit-medal-tier {
  display: flex; align-items: center; gap: 3px;
}
.vit-medal-tier--bronze    { color: #C98A4B; }
.vit-medal-tier--silver    { color: #C8C8D0; }
.vit-medal-tier--gold      { color: var(--gold); }
.vit-medal-tier--legendary { color: #D4AF37; }
.vit-medal-tier--mythic    { color: #E8D5B0; }

/* Pulse animation for index scroll highlight */
.vit-medal--pulse .vit-medal-glow {
  animation: medalPulse 1.2s ease-out forwards;
}


/* ── Distinction modal body ───────────────────────────────────────── */
.vit-dist-modal-inner { max-width: 560px; }
.vit-dist-modal-stage {
  display: flex; align-items: flex-start; gap: 28px;
}
.vit-dist-modal-medal { flex-shrink: 0; }
.vit-dist-modal-earned-img {
  filter: drop-shadow(0 4px 16px rgba(245,163,26,0.4));
}
.vit-dist-modal-locked-img {
  filter: grayscale(1) brightness(0.35) contrast(0.9);
  opacity: 0.55;
}
.vit-dist-modal-info { flex: 1; min-width: 0; padding-top: 8px; }
.vit-dist-modal-meta {
  display: flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); color: var(--off-50);
  text-transform: uppercase; letter-spacing: var(--track-default);
  margin-bottom: 8px;
}
.vit-dist-modal-meta .vit-tier-diamonds {
  display: inline-flex; align-items: center; gap: 3px;
}
.vit-dist-modal-tier-name { color: var(--off-50); }
.vit-dist-modal-meta--bronze .vit-tier-diamonds    { color: #C98A4B; }
.vit-dist-modal-meta--bronze .vit-dist-modal-tier-name { color: #C98A4B; }
.vit-dist-modal-meta--silver .vit-tier-diamonds    { color: #C8C8D0; }
.vit-dist-modal-meta--silver .vit-dist-modal-tier-name { color: #C8C8D0; }
.vit-dist-modal-meta--gold .vit-tier-diamonds      { color: var(--gold); }
.vit-dist-modal-meta--gold .vit-dist-modal-tier-name { color: var(--gold); }
.vit-dist-modal-meta--legendary .vit-tier-diamonds { color: #D4AF37; }
.vit-dist-modal-meta--legendary .vit-dist-modal-tier-name { color: #D4AF37; }
.vit-dist-modal-meta--mythic .vit-tier-diamonds    { color: #E8D5B0; }
.vit-dist-modal-meta--mythic .vit-dist-modal-tier-name { color: #E8D5B0; }
.vit-dist-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-h3); font-weight: 700; color: var(--off);
  line-height: 1.1; margin: 0 0 10px;
}
.vit-dist-modal-desc {
  font-size: var(--fs-body-sm); color: var(--off-70); line-height: 1.6; margin: 0 0 14px;
}
.vit-dist-modal-earned-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--gold); background: var(--gold-line);
  padding: 5px 12px; border-radius: 4px;
  border: 1px solid rgba(245,163,26,0.12);
}
.vit-dist-modal-earned-tag::before {
  content: '\2713'; font-size: 11px;
}
.vit-dist-modal-hint {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-body-sm); color: var(--off-50);
  font-style: italic;
}

/* ── Motion: glow pulse, legendary pulse, mythic ring ─────────────── */
@keyframes distPulse {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 1; }
}
@keyframes distLegendaryPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
@keyframes distMythicSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes medalPulse {
  0%   { opacity: 0.9; transform: scale(1); }
  40%  { opacity: 1;   transform: scale(1.3); }
  100% { opacity: 0.9; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .vit-dist-feature-glow { animation: distPulse 4s ease-in-out infinite; }
  .vit-medal--legendary .vit-medal-glow { animation: distLegendaryPulse 6s ease-in-out infinite; }
  .vit-medal--mythic .vit-medal-glow    { animation: distMythicSpin 20s linear infinite; }
}

/* Filter chips */
.vit-chips { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.vit-chip {
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--off-70);
  padding: 10px 16px; min-height: 36px; border: 1px solid var(--vit-line);
  background: transparent; cursor: pointer;
  transition: all var(--t-fast);
}
.vit-chip:hover { color: var(--off); border-color: var(--vit-line-strong); }
.vit-chip--active { color: var(--bg); background: var(--off); border-color: var(--off); }
.vit-chip--sort { margin-left: auto; border-left: 1px solid var(--vit-line); padding-left: 14px; display: inline-flex; align-items: center; gap: 6px; }
.vit-chip--sort.vit-chip--active { background: transparent; color: var(--gold); border-color: var(--gold); }
.vit-chip--sort.vit-chip--active:hover { color: var(--off); border-color: var(--vit-line-strong); }
.vit-chip-caret { flex-shrink: 0; transition: transform 200ms ease; }
.vit-chip-caret--up { transform: rotate(180deg); }

/* ── Action buttons — Claim NCT & Name ─────────────────────────── */
.vit-action-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-button); font-weight: 600;
  letter-spacing: var(--track-default);
  color: var(--bg); background: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 24px; border-radius: 2px;
  cursor: pointer; transition: opacity var(--t-fast);
}
.vit-action-btn:hover { opacity: 0.85; }
.vit-action-btn[data-action="name"] {
  color: var(--off); background: transparent;
  border-color: var(--off-50);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.vit-action-btn[data-action="name"]:hover {
  border-color: var(--gold); background: rgba(245,163,26,0.06);
  opacity: 1;
}

/* ── Delegate wallet banner ─────────────────────────────────────── */
.vit-delegate-banner {
  background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 20px;
}
.vit-delegate-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.vit-delegate-icon { font-size: 16px; flex-shrink: 0; }
.vit-delegate-msg {
  flex: 1; font-size: var(--fs-button); color: var(--off-70); min-width: 0;
}
.vit-delegate-msg strong { color: var(--off); font-weight: 600; }
.vit-delegate-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.vit-delegate-btn {
  font-family: var(--font-ui); font-size: var(--fs-meta); font-weight: 600;
  padding: 5px 12px; border-radius: 4px; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.vit-delegate-btn--load {
  background: var(--gold); color: #000; border: none;
}
.vit-delegate-btn--load:hover { background: #e5c84a; }
.vit-delegate-btn--dismiss {
  background: none; color: var(--off-50);
  border: 1px solid var(--vit-line);
}
.vit-delegate-btn--dismiss:hover { color: var(--off); border-color: var(--off-50); }

/* ── Redirect modal ────────────────────────────────────────────── */
.vit-redirect-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
}
.vit-redirect-overlay[hidden] { display: none; }
.vit-redirect-modal {
  background: var(--bg2); border: 1px solid var(--vit-line);
  padding: 36px 40px; max-width: 440px; width: 90%;
  text-align: center;
}
.vit-redirect-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-h3); font-weight: 700;
  color: var(--off); margin: 0 0 12px;
}
.vit-redirect-body {
  font-size: var(--fs-body-sm); color: var(--off-70);
  line-height: 1.6; margin: 0 0 16px;
}
.vit-redirect-url {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); color: var(--gold);
  background: rgba(245,163,26,0.06);
  border: 1px solid rgba(245,163,26,0.15);
  padding: 10px 16px; margin: 0 0 24px;
  word-break: break-all;
}
.vit-redirect-actions {
  display: flex; gap: 12px; justify-content: center;
}
.vit-redirect-cancel {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-button); font-weight: 600;
  color: var(--off-70); background: transparent;
  border: 1px solid var(--vit-line);
  padding: 10px 24px; border-radius: 2px;
  cursor: pointer; transition: border-color var(--t-fast);
}
.vit-redirect-cancel:hover { border-color: var(--off-50); }
.vit-redirect-go {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-button); font-weight: 600;
  color: var(--bg); background: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 24px; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: opacity var(--t-fast);
}
.vit-redirect-go:hover { opacity: 0.85; }

/* ── Footer note ───────────────────────────────────────────────── */
.vit-endnote {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid var(--vit-line);
  font-size: var(--fs-body-sm); color: var(--off-50); line-height: 1.6;
  text-align: center; max-width: 52ch; margin-left: auto; margin-right: auto;
}

/* ── Compare Vitrines ───────────────────────────────────────────── */
.vit-vs-head { margin-bottom: 28px; }
.vit-vs-subhead {
  font-size: var(--fs-body-sm); color: var(--off-70); line-height: 1.6;
  margin: 0 0 16px; text-align: center;
}

/* Visual teaser — two silhouette frames with VS badge */
.vit-vs-teaser {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-bottom: 32px;
}
.vit-vs-frame {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.vit-vs-frame-silhouette { position: relative; }
.vit-vs-frame-silhouette svg,
.vit-vs-frame-silhouette > img {
  width: 96px; height: 128px; display: block; border-radius: 4px;
  object-fit: cover;
}

/* Dice random-holder button — sits below silhouette like a label */
.vit-vs-dice-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 0; line-height: 1;
  transition: transform var(--t-fast);
}
.vit-vs-dice-btn:hover { transform: scale(1.15); }
.vit-vs-dice-btn .vit-vs-dice-icon {
  width: 20px; height: 20px; display: block;
  filter: brightness(0) invert(1); opacity: 0.45;
  transition: opacity var(--t-fast);
}
.vit-vs-dice-btn:hover .vit-vs-dice-icon { opacity: 0.85; }

/* Rolling state */
.vit-vs-dice-btn--rolling { cursor: wait; }
.vit-vs-dice-btn--rolling .vit-vs-dice-icon {
  filter: brightness(0) invert(1) sepia(1) saturate(2.23) brightness(0.96) hue-rotate(-1deg);
  opacity: 1;
  animation: vit-dice-shake 0.14s ease-in-out infinite;
}
@keyframes vit-dice-shake {
  0%   { transform: rotate(-14deg) scale(1.18); }
  20%  { transform: rotate(11deg)  scale(0.90); }
  40%  { transform: rotate(-9deg)  scale(1.10); }
  60%  { transform: rotate(8deg)   scale(0.95); }
  80%  { transform: rotate(-4deg)  scale(1.04); }
  100% { transform: rotate(0deg)   scale(1);    }
}
.vit-vs-frame-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta); font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--track-default);
  color: var(--off-70);
}
.vit-vs-frame--you .vit-vs-frame-label { color: var(--off); }
.vit-vs-badge {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-body); font-style: italic;
  color: var(--off-70); opacity: 0.5;
  margin-bottom: 20px;
}

/* Form */
.vit-vs-form { max-width: 520px; margin: 0 auto 12px; text-align: center; }
.vit-vs-form-row { display: flex; gap: 10px; position: relative; }
.vit-vs-input {
  flex: 1; font-family: 'JetBrains Mono', monospace; font-size: var(--fs-button);
  color: var(--off); background: transparent;
  border: none; border-bottom: 1px solid var(--vit-line);
  padding: 8px 0; outline: none;
  min-height: 44px; /* touch target */
  transition: border-color var(--t-fast);
}
.vit-vs-input::placeholder { color: var(--off-50); }
.vit-vs-input:focus { border-bottom-color: var(--vit-line-strong); }

/* Recent chips */
.vit-vs-recent {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity var(--t-base), max-height var(--t-base);
}
.vit-vs-form:focus-within .vit-vs-recent {
  opacity: 1; max-height: 120px;
}
.vit-vs-recent-chip {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta);
  color: var(--off-70); background: none;
  border: 1px solid var(--vit-line); padding: 4px 10px;
  cursor: pointer; transition: all var(--t-fast);
}
.vit-vs-recent-chip:hover { color: var(--off); border-color: var(--vit-line-strong); }

/* Diptych */
.vit-vs-diptych {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-bottom: 0;
}
.vit-vs-plate {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; padding: 40px 32px;
  border-top: 1px solid var(--vit-line-strong);
  border-bottom: 1px solid var(--vit-line-strong);
  transition: box-shadow var(--t-fast);
}
.vit-vs-plate--me   { background: linear-gradient(180deg, var(--vs-plate-me-tint), transparent 60%), var(--bg2); }
.vit-vs-plate--them { background: linear-gradient(180deg, var(--vs-plate-them-tint), transparent 60%), var(--bg2); }
.vit-vs-plate--winning {
  box-shadow: 0 0 0 1px var(--gold-dim), 0 0 60px rgba(245,163,26,0.08);
}

/* Hero avatar */
.vit-vs-avatar-wrap {
  position: relative; width: 220px; height: 220px; flex-shrink: 0;
  background: var(--bg2);
  box-shadow: 0 0 0 6px var(--bg), 0 12px 40px rgba(0,0,0,0.6);
}
.vit-vs-avatar-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.vit-vs-avatar-placeholder img {
  width: 48px; height: 48px; opacity: 0.12;
}
.vit-vs-avatar {
  width: 220px; height: 220px; display: block; object-fit: cover;
  opacity: 0; transition: opacity 400ms ease;
  flex-shrink: 0; position: relative;
}
.vit-vs-avatar.loaded { opacity: 1; }
.vit-vs-avatar:hover { opacity: 0.88; }

/* Label */
.vit-vs-label { text-align: center; }
.vit-vs-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta);
  text-transform: uppercase; letter-spacing: var(--track-display); color: var(--off-70);
  margin-bottom: 4px;
}
.vit-vs-plate--winning .vit-vs-kicker { color: var(--gold); }
.vit-vs-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-h3); font-weight: 700; color: var(--off);
  line-height: 1.1; word-break: break-all;
}
.vit-vs-addr {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-mono); color: var(--off-70);
  margin-top: 2px;
}

/* Mask rail */
/* Signature distinction */
.vit-vs-dist {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--vit-line); width: 100%;
  box-sizing: border-box;
}
.vit-vs-dist img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.vit-vs-dist--gold { background: rgba(245,163,26,0.04); }
.vit-vs-dist-name  { font-family: 'Space Grotesk', sans-serif; font-size: var(--fs-label); color: var(--off); font-weight: 700; }
.vit-vs-dist-none  { font-size: var(--fs-button); color: var(--off-70); }

/* Metric spine — split track, bars grow outward from center */
.vit-vs-spine {
  max-width: 600px; margin: 0 auto;
  padding: 48px 0 24px;
}
.vit-vs-metric-row { margin-bottom: 20px; }

/* Top line: label centered, values flanking */
.vit-vs-metric-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.vit-vs-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-body); font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; line-height: 1.1; min-width: 60px;
}
.vit-vs-val:first-child  { text-align: left; }
.vit-vs-val:last-child   { text-align: right; }
.vit-vs-val--win  { color: var(--gold); }
.vit-vs-val--lose { color: var(--off-70); }
.vit-vs-val--tie  { color: var(--off); }
.vit-vs-metric-label {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta);
  text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--off-50); white-space: nowrap; flex-shrink: 0;
}

/* Split track — two halves, bars grow outward from center divider */
.vit-vs-track {
  height: 4px; position: relative;
  background: rgba(240,235,225,0.06); border-radius: 2px;
  overflow: hidden;
}
.vit-vs-track::after {
  content: ''; position: absolute; top: -4px; bottom: -4px;
  left: calc(50% - 0.5px); width: 1px; background: var(--vit-line-strong);
  z-index: 1;
}
.vit-vs-bar {
  position: absolute; top: 0; height: 100%; border-radius: 2px;
  transition: width 600ms cubic-bezier(.22,1,.36,1);
}
/* Left bar: anchored at center, grows leftward */
.vit-vs-bar--left  { right: 50%; }
/* Right bar: anchored at center, grows rightward */
.vit-vs-bar--right { left: 50%; }
.vit-vs-bar--win  { background: var(--gold); }
.vit-vs-bar--lose { background: rgba(240,235,225,0.15); }
.vit-vs-bar--tie  { background: rgba(245,163,26,0.45); }
@media (prefers-reduced-motion: reduce) {
  .vit-vs-bar { transition: none; }
}

/* Verdict */
.vit-vs-verdict {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 16px 24px; margin-top: 8px;
  max-width: 600px; margin-left: auto; margin-right: auto;
  background: var(--gold-line); border-radius: 6px;
  border: 1px solid rgba(245,163,26,0.08);
}
.vit-vs-verdict--tie {
  background: rgba(240,235,225,0.03);
  border-color: var(--vit-line);
}
.vit-vs-verdict-icon {
  width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7;
  display: flex; align-items: center;
}
.vit-vs-verdict-icon svg { width: 100%; height: 100%; }
.vit-vs-verdict--tie .vit-vs-verdict-icon { opacity: 0.4; }
.vit-vs-verdict-text {
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--off);
}
.vit-vs-verdict--tie .vit-vs-verdict-text { color: var(--off-70); }
.vit-vs-verdict-text em { color: var(--gold); font-style: normal; font-weight: 700; }

/* Skeleton shimmer */
.vit-vs-skeleton { }
.vit-vs-skeleton-avatar {
  width: 220px; height: 220px; flex-shrink: 0;
}
.vit-vs-skeleton-lines { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vit-vs-skeleton-line { height: 16px; border-radius: 2px; }
.vit-vs-skeleton-row {
  height: 36px; margin: 6px 0; border-radius: 2px;
  max-width: 720px;
}
@keyframes vitShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .shimmer {
    background: linear-gradient(90deg, rgba(245,163,26,0.02), rgba(245,163,26,0.06), rgba(245,163,26,0.02));
    background-size: 200% 100%;
    animation: vitShimmer 2s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer { background: rgba(245,163,26,0.03); }
}

/* Error placard */
.vit-vs-error-placard {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 20px;
  border-top: 1px solid var(--vit-line);
  border-bottom: 1px solid var(--vit-line);
  background: var(--bg2); color: var(--off-70);
  font-size: var(--fs-button);
}
.vit-vs-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
  background: var(--bg2); border: 1px solid var(--vit-line);
  border-top: none; border-radius: 0 0 var(--r-md) var(--r-md);
  overflow: hidden;
}
.vit-vs-suggestions[hidden] { display: none; }
.vit-vs-suggestion-item {
  display: block; width: 100%;
  padding: 9px 14px; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: var(--fs-meta);
  color: var(--off-70); letter-spacing: var(--track-tight);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vit-vs-suggestion-item:hover { background: var(--bg3, rgba(255,255,255,0.04)); color: var(--off); }

/* ── Modals ────────────────────────────────────────────────────── */
.vit-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(6,5,4,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.vit-modal[hidden] { display: none; }
.vit-modal-inner {
  background: var(--bg2); border: 1px solid var(--vit-line);
  max-width: 760px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative; padding: 32px;
}
.vit-modal-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--off-70);
  cursor: pointer; line-height: 0;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t-fast);
}
.vit-modal-close:hover { color: var(--off); }

/* Hunt modal */
.vit-hunt-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.vit-modal-title { font-size: var(--fs-h3); font-weight: 700; color: var(--off); margin: 0; }
.vit-hunt-star   { font-size: var(--fs-meta); }
.vit-hunt-list   { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.vit-hunt-card   { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--vit-line); transition: border-color var(--t-fast); }
.vit-hunt-card:hover { border-color: var(--vit-line-strong); }
.vit-hunt-card img   { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.vit-hunt-card-meta  { padding: 6px 8px; }
.vit-hunt-card-name  { display: block; font-size: var(--fs-meta); color: var(--off); font-weight: 700; }
.vit-hunt-card-price { display: block; font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta); color: var(--gold); }
.vit-hunt-skeleton   { aspect-ratio: 3/4; }
.vit-hunt-empty      { font-size: var(--fs-button); color: var(--off-70); padding: 20px 0; }

/* Ceremony */
.vit-ceremony-preview { width: 100%; }
.vit-ceremony-preview canvas { width: 100%; height: auto; display: block; }

/* ── Share modal ─────────────────────────────────────────────────── */
.vit-share-modal-inner { max-width: 720px; }
.vit-share-desc { font-size: var(--fs-body-sm); color: var(--off-70); margin-bottom: 20px; }
.vit-share-preview {
  background: var(--bg2); border: 1px solid var(--vit-line);
  overflow: hidden; line-height: 0;
}
.vit-share-preview canvas { width: 100%; height: auto; display: block; }
.vit-share-actions { display: flex; gap: 12px; margin-top: 16px; justify-content: flex-end; }
/* Share icon button — sits beside the hero name */
.vit-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vit-hero-name-row { display: flex; align-items: baseline; gap: 12px; }

/* Share chip — sits opposite the eyebrow, visible but secondary */
.vit-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  background: rgba(240,235,225,0.04);
  border: 1px solid rgba(240,235,225,0.14);
  color: var(--off-70);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 32px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.vit-share-chip:hover {
  color: var(--off);
  border-color: var(--off-50);
  background: rgba(240,235,225,0.08);
}
.vit-share-chip:active {
  background: rgba(240,235,225,0.12);
}
.vit-share-chip svg {
  display: block;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.vit-share-chip:hover svg { opacity: 1; }

/* ── Empty state ───────────────────────────────────────────────── */
.vit-empty {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.vit-empty-inner { text-align: center; max-width: 480px; padding: 40px 24px; }
.vit-empty-title {
  font-family: inherit;
  font-size: var(--fs-section); font-weight: 700;
  color: var(--off); margin-bottom: 20px; line-height: 1.05;
}
.vit-empty-desc { color: var(--off-70); font-size: var(--fs-body); line-height: 1.6; margin-bottom: 40px; }

/* ── Loading skeleton ──────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
  }
  .loading-val { animation: pulse 1.5s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { background: var(--bg2); }
  .loading-val { opacity: 0.6; }
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loading-val { color: var(--off-50) !important; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Dev bar ───────────────────────────────────────────────────── */
.vit-dev-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: var(--z-modal);
  display: flex; flex-direction: column; gap: 0;
  background: rgba(6,5,4,0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--gold-dim); padding: 8px 12px;
}
.vit-dev-row { display: flex; align-items: center; gap: 8px; }
.vit-dev-label { font-size: var(--fs-meta); font-weight: 700; letter-spacing: var(--track-wide); color: var(--gold); text-transform: uppercase; user-select: none; }
.vit-dev-input { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-mono); color: var(--off); background: transparent; border: none; outline: none; width: 280px; }
.vit-dev-input::placeholder { color: var(--off-50); }
.vit-dev-btn { font-size: var(--fs-meta); font-weight: 700; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--bg); background: var(--gold); border: none; padding: 5px 12px; cursor: pointer; }
.vit-dev-btn:hover { background: var(--off); }
.vit-dev-history { display: none; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vit-dev-history:empty { margin-top: 0; }
.vit-dev-bar:focus-within .vit-dev-history:not(:empty) { display: flex; }
.vit-dev-pill {
  font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta);
  color: var(--off-70); background: transparent;
  border: 1px solid var(--vit-line); padding: 3px 8px;
  cursor: pointer; white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.vit-dev-pill:hover { color: var(--gold); border-color: var(--gold-dim); }

/* ── Active nav link ───────────────────────────────────────────── */
.nav-link--active { color: var(--gold) !important; }

/* ── Accessibility ─────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── P2.4 · Mobile filter chip horizontal scroll ───────────────── */
@media (max-width: 720px) {
  .vit-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .vit-chip { scroll-snap-align: start; flex-shrink: 0; }
  .vit-chips::-webkit-scrollbar { display: none; }
  .vit-chips { scrollbar-width: none; }
}

/* ── Visible focus rings ─────────────────────────────────────────── */
.vit-mask:focus-visible,
.vit-medal:focus-visible,
.vit-set-card:focus-visible,
.vit-slot:focus-visible,
.vit-mask-pin:focus-visible,
.vit-dist-locked-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.vit-modal-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Inline empty states ─────────────────────────────────────────── */
.vit-empty-inline {
  padding: 48px 0;
  text-align: center;
  font-size: var(--fs-button);
  color: var(--off-70);
  font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vit-hero { grid-template-columns: 200px 1fr; }
  .vit-centerpiece { width: 200px; height: 260px; }
  .vit-sets-grid { grid-template-columns: 1fr; gap: 24px; }
  .vit-ribbon-item { padding: 16px 16px; }
}
/* hide sigil at ≤820px */
@media (max-width: 820px) {
  .vit-sigil { display: none; }
}
@media (max-width: 720px) {
  .vit-vs-diptych { grid-template-columns: 1fr; gap: 16px; }
  .vit-vs-avatar-wrap, .vit-vs-avatar { width: 160px; height: 160px; }
  .vit-vs-skeleton-avatar { width: 160px; height: 160px; }
  .vit-vs-plate   { padding: 28px 20px; }
  /* Give the metric spine horizontal room after the plates stack */
  .vit-vs-spine { box-sizing: border-box; width: 100%; padding-left: 16px; padding-right: 16px; }
  .vit-vs-val { font-size: var(--fs-body); }
  .vit-vs-metric-label { font-size: 10px; }
  .vit-dist-feature { flex-direction: column; gap: 28px; padding: 32px 24px; }
  .vit-dist-feature-stage { width: 160px; height: 160px; align-self: center; }
  .vit-dist-feature-medal { width: 140px; height: 140px; }
  .vit-dist-feature-glow  { width: 220px; height: 220px; }
  .vit-dist-meter { width: 140px; }
  .vit-ribbon-lead { flex-wrap: wrap; }
  .vit-ribbon-lead-actions { width: 100%; margin-top: 12px; }
  .vit-ribbon-lead-num { font-size: var(--fs-title); }
  .vit-ribbon-row { flex-direction: column; }
  .vit-ribbon-item { border-right: none; border-bottom: 1px solid var(--vit-line); }
  .vit-ribbon-item:last-child { border-bottom: none; }
  .vit-flex-badge { width: 100%; justify-content: space-between; }
  .vit-dist-locked-list { flex-direction: column; }
  .vit-dist-locked-item { width: 100%; }
}
@media (max-width: 640px) {
  .vit-hero { grid-template-columns: 1fr; }
  .vit-centerpiece { width: 100%; height: 300px; }
  .vit-chip { padding: 10px 12px; }
  /* Reduce VS avatars further for narrow phones */
  .vit-vs-avatar-wrap, .vit-vs-avatar { width: 140px; height: 140px; }
  .vit-vs-skeleton-avatar { width: 140px; height: 140px; }
  .vit-vs-plate { padding: 24px 16px; }
}
@media (max-width: 720px) {
  .vit-chip,
  .vit-ribbon-cat,
  .vit-ribbon-lead-cat,
  .vit-slot-label,
  .vit-vs-metric-label,
  .vit-vs-kicker,
  .vit-medal-plate { font-size: var(--fs-button); }
  .vit-dist-locked-tier .rarity-diamond { width: 6px; height: 6px; }
}
