/* NNPlays 3D Asset Vault — premium showcase */

.vault-page {
  --vault-ink: #e8e8f4;
  --vault-muted: #9a9ab8;
  --vault-line: rgba(255, 255, 255, 0.08);
  --vault-panel: rgba(14, 14, 28, 0.82);
  --vault-gold: #ffd34d;
  --vault-cyan: #29e7ff;
  --vault-magenta: #ff2d78;

  /* Design tokens — premium visual alignment */
  --vault-navy: #0a0e1c;
  --panel-bg: linear-gradient(180deg, rgba(20, 22, 42, 0.82), rgba(11, 12, 24, 0.9));
  --panel-border: rgba(255, 255, 255, 0.09);
  --panel-border-strong: rgba(255, 255, 255, 0.16);
  --r-panel: 20px;
  --r-card: 16px;
  --r-control: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.32);
  --shadow-panel: 0 24px 64px rgba(0, 0, 0, 0.5);
  --max-w: 1280px;
  --control-h: 2.5rem;

  /* Coherent motion system — used across hero, cards, chips, viewer transitions */
  --motion-fast: 140ms;
  --motion-normal: 260ms;
  --motion-slow: 420ms;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-move: cubic-bezier(0.33, 1, 0.68, 1);

  /* Theme accent tokens — overridden per accent class (.theme-gold, .theme-cyan, ...) */
  --theme-accent: var(--vault-gold);
  --theme-accent-soft: rgba(255, 211, 77, 0.14);

  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(160, 32, 240, 0.135), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(41, 231, 255, 0.075), transparent 50%),
    linear-gradient(180deg, var(--vault-navy) 0%, #05050c 100%);
  color: var(--vault-ink);
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.vault-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 40%, rgba(255, 45, 120, 0.0375) 55%, transparent 70%),
    linear-gradient(300deg, transparent 30%, rgba(41, 231, 255, 0.03) 50%, transparent 70%);
  background-size: 220% 220%, 220% 220%;
  background-position: 0% 50%, 100% 50%;
  animation: aurora-drift 26s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes aurora-drift {
  0% { background-position: 0% 40%, 100% 60%; }
  100% { background-position: 60% 60%, 40% 40%; }
}

/* Theme accent classes — applied to premium stage / collections / viewer for per-world color */
.theme-gold { --theme-accent: #ffd34d; --theme-accent-soft: rgba(255, 211, 77, 0.16); }
.theme-cyan { --theme-accent: #29e7ff; --theme-accent-soft: rgba(41, 231, 255, 0.14); }
.theme-amber { --theme-accent: #ffb84d; --theme-accent-soft: rgba(255, 184, 77, 0.16); }
.theme-orange { --theme-accent: #ff8a4d; --theme-accent-soft: rgba(255, 138, 77, 0.16); }
.theme-red { --theme-accent: #ff5d5d; --theme-accent-soft: rgba(255, 93, 93, 0.16); }
.theme-violet { --theme-accent: #b48cff; --theme-accent-soft: rgba(180, 140, 255, 0.16); }
.theme-green { --theme-accent: #6ee7a0; --theme-accent-soft: rgba(110, 231, 160, 0.14); }
.theme-steel { --theme-accent: #9db4d1; --theme-accent-soft: rgba(157, 180, 209, 0.16); }
.theme-teal { --theme-accent: #4de3c8; --theme-accent-soft: rgba(77, 227, 200, 0.16); }

.vault-page .noise,
.vault-page #top-nav,
.vault-page #main {
  position: relative;
  z-index: 1;
}

.vault-page #top-nav {
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 18, 0.72);
  border-bottom: 1px solid var(--vault-line);
}

.vault-badge {
  margin-left: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(160, 32, 240, 0.45);
  background: rgba(160, 32, 240, 0.12);
  color: #d8b4ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Reusable glass panel — stat cards, premium showcase, metadata, tech panel, related rails */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-soft);
}

/* Hero */
.vault-hero {
  position: relative;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.vault-hero-atmosphere {
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  pointer-events: none;
  transform: translate3d(calc(var(--parallax-x, 0) * 1px), calc(var(--parallax-y, 0) * 1px), 0);
  transition: transform var(--motion-slow) var(--ease-move);
}

.hero-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px 320px at 22% 20%, rgba(160, 32, 240, 0.165), transparent 60%),
    radial-gradient(420px 300px at 78% 12%, rgba(41, 231, 255, 0.12), transparent 60%),
    radial-gradient(520px 360px at 50% 95%, rgba(255, 211, 77, 0.06), transparent 65%);
  background-size: 160% 160%, 160% 160%, 160% 160%;
  animation: hero-aurora-shift 22s ease-in-out infinite alternate;
  filter: blur(2px);
}

@keyframes hero-aurora-shift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  100% { background-position: 30% 20%, 70% 30%, 60% 80%; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  left: var(--x, 50%);
  top: var(--y, 50%);
  opacity: 0;
  animation: particle-float var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  15% { opacity: var(--peak-opacity, 0.55); }
  50% { opacity: var(--peak-opacity, 0.55); transform: translateY(-26px) scale(1); }
  85% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-52px) scale(0.8); }
}

/* Two flanking world-art silhouettes, fading into the background from each edge */
.hero-silhouettes {
  position: absolute;
  inset: 0;
}

.hero-silhouette-side {
  position: absolute;
  top: 50%;
  width: min(34vw, 380px);
  max-height: 82%;
  transform: translateY(-50%);
  overflow: hidden;
}

.hero-silhouette-left {
  left: -2%;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, transparent 88%);
}

.hero-silhouette-right {
  right: -2%;
  mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.75) 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.75) 0%, transparent 88%);
}

.hero-silhouette-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: saturate(0.65) brightness(0.88) blur(0.6px);
  transition: opacity 1.4s var(--ease-enter);
}

.hero-silhouette-img.is-visible { opacity: 0.34; }

@media (max-width: 900px) {
  .hero-silhouettes { display: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--motion-slow) var(--ease-enter), transform var(--motion-slow) var(--ease-enter);
}

/* Scroll-triggered batch reveal for cards / tiles (IntersectionObserver driven) */
.reveal-in {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.reveal-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity var(--motion-slow) var(--ease-enter), transform var(--motion-slow) var(--ease-enter);
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f3f3fb;
  margin-bottom: 0.75rem;
}

.hero-headline-accent {
  color: #b48cff;
  background: linear-gradient(135deg, #c9a4ff, #8f6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtext {
  max-width: 38rem;
  margin: 0 auto 1.4rem;
  color: var(--vault-muted);
  font-size: 1.05rem;
}

.hero-search-wrapper {
  position: relative;
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.hero-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vault-muted);
  pointer-events: none;
}

.vault-search-input {
  width: 100%;
  height: 3.5rem;
  padding: 0 3.6rem 0 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 22, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 24px rgba(160, 32, 240, 0.06);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vault-search-input:focus {
  border-color: rgba(41, 231, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(41, 231, 255, 0.15);
}

.vault-search-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a020f0, #2b6bff);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.vault-search-btn:focus-visible {
  outline: 2px solid var(--vault-cyan);
  outline-offset: 2px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 148px;
  padding: 1rem 1.25rem;
  border-radius: var(--r-card);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-soft);
  color: var(--vault-muted);
}

.stat-card-icon {
  color: var(--vault-cyan);
  opacity: 0.85;
}

.stat-card-premium .stat-card-icon { color: var(--vault-gold); }

.stat-card strong {
  font-family: 'Syne', sans-serif;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-card-premium strong { color: var(--vault-gold); }

.stat-card-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vault-muted);
}

.hero-disclaimer {
  color: rgba(154, 154, 184, 0.7);
  font-size: 0.76rem;
  max-width: 34rem;
  margin: 0 auto;
}

/* Sections */
.section-head {
  max-width: var(--max-w);
  margin: 0 auto 1.25rem;
  padding-inline: 1.5rem;
}

.section-head.compact {
  margin-bottom: 0.9rem;
}

.section-icon {
  display: inline-block;
  vertical-align: -3px;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--vault-gold);
  margin-right: 0.3rem;
}

.section-kicker {
  display: flex;
  align-items: center;
  color: var(--vault-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--vault-muted);
  margin-top: 0.35rem;
  max-width: 40rem;
}

/* Premium stage */
.vault-premium-section {
  padding: 0.75rem 0 2.4rem;
}

.premium-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.premium-view-all {
  appearance: none;
  border: 1px solid rgba(255, 211, 77, 0.35);
  background: rgba(255, 211, 77, 0.08);
  color: var(--vault-gold, #ffd34d);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: 600 0.88rem/1 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.premium-view-all:hover,
.premium-view-all:focus-visible {
  background: rgba(255, 211, 77, 0.16);
  outline: none;
}

.premium-stage {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(272px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.premium-showcase {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--theme-accent, #ffd34d) 25%, var(--panel-border));
}

.premium-viewport {
  position: relative;
  isolation: isolate;
  min-height: clamp(380px, 42vw, 520px);
  overflow: hidden;
  cursor: pointer;
  /* Dedicated showroom plate — never transparent to page chrome / aurora */
  background:
    radial-gradient(ellipse 58% 48% at 50% 42%, rgba(120, 90, 220, 0.12), transparent 60%),
    radial-gradient(ellipse 65% 50% at 50% 38%, rgba(255, 211, 77, 0.08), transparent 58%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 52%),
    linear-gradient(165deg, #16162c 0%, #10101c 55%, #0c0c16 100%);
}

.premium-viewport:focus-visible {
  outline: 2px solid rgba(255, 211, 77, 0.55);
  outline-offset: -3px;
}

.premium-stage-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(0, 0, 0, 0.55), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
}

/* Contact shadow / floor line under the featured model — recolors with theme accent */
.premium-floor-shadow {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 46%;
  height: 22px;
  z-index: 2;
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 75%);
  opacity: 0;
  transition: opacity var(--motion-slow) var(--ease-enter);
}

.premium-viewport.is-live .premium-floor-shadow { opacity: 1; }

.premium-orbit-hint {
  position: absolute;
  left: 50%;
  top: 1.1rem;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 8, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-normal) var(--ease-enter);
}

.premium-orbit-hint.is-visible {
  opacity: 1;
}

.premium-stage-nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.premium-stage-nav-btn {
  pointer-events: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 18, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--motion-fast) var(--ease-enter), transform var(--motion-fast) var(--ease-enter), border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.premium-viewport:hover .premium-stage-nav-btn,
.premium-stage-nav-btn:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.premium-stage-nav-btn:hover,
.premium-stage-nav-btn:focus-visible {
  border-color: var(--theme-accent, rgba(255, 211, 77, 0.55));
  background: rgba(8, 8, 18, 0.78);
  outline: none;
}

.premium-poster,
.premium-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  z-index: 1;
}

.premium-canvas {
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.premium-viewport.is-live .premium-canvas {
  opacity: 1;
}

.premium-viewport.is-live .premium-poster {
  opacity: 0;
}

/* Info strip below the model — never overlays the viewport */
.premium-info {
  position: relative;
  padding: 1.15rem 1.35rem 1.35rem;
  border-top: 1px solid var(--panel-border);
  background: rgba(6, 6, 14, 0.3);
}

.premium-info .tier-chip {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.premium-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  margin: 0.5rem 0 0.15rem;
  font-weight: 700;
}

.premium-game {
  color: var(--theme-accent, var(--vault-cyan));
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.premium-description {
  color: var(--vault-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  max-width: 46rem;
}

.premium-description[hidden] { display: none !important; }

.premium-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.premium-spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vault-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
}

.premium-open-detail {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font: 600 0.86rem/1 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.premium-open-detail:hover,
.premium-open-detail:focus-visible {
  background: rgba(255, 211, 77, 0.16);
  border-color: rgba(255, 211, 77, 0.55);
  color: #ffe08a;
  outline: none;
}

/* Right rail column — capped so its own (potentially long) item list never
   dictates the shared grid row height; the showcase panel stays the sizing
   authority and the rail scrolls internally within whatever height it's
   stretched to. */
.premium-rail-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  max-height: clamp(400px, 40vw, 600px);
}

.premium-rail {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  /* Prev/next buttons self-center; the thumbs row must stretch to fill its
     track so it can scroll internally instead of rendering at full content
     height and bleeding into the sections below. */
  align-items: stretch;
  padding: 0.6rem;
  border-radius: var(--r-panel);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-soft);
}

.premium-rail-btn {
  width: 2.35rem;
  height: 2.35rem;
  align-self: center;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.premium-rail-btn:hover,
.premium-rail-btn:focus-visible {
  border-color: rgba(255, 211, 77, 0.55);
  background: rgba(255, 211, 77, 0.08);
  outline: none;
}

.premium-rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.premium-thumbs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  padding: 0.1rem 0.1rem 0.1rem 0;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.premium-thumbs::-webkit-scrollbar {
  width: 5px;
}

.premium-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

/* Premium asset chips — compact horizontal tile: poster thumb + name + game */
.premium-thumb {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-control);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  scroll-snap-align: start;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.premium-thumb:hover,
.premium-thumb:focus-visible {
  border-color: rgba(255, 211, 77, 0.45);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.premium-thumb[aria-selected="true"] {
  border-color: rgba(255, 211, 77, 0.85);
  background: rgba(255, 211, 77, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 211, 77, 0.25), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.premium-thumb-media {
  position: relative;
  display: block;
  width: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #10101c;
  overflow: hidden;
}

.premium-thumb-media.is-loading {
  background:
    linear-gradient(110deg, #10101c 20%, #1a1a30 37%, #10101c 63%);
  background-size: 200% 100%;
  animation: premium-skeleton 1.2s ease-in-out infinite;
}

@keyframes premium-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.premium-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #10101c;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.premium-thumb img.is-loaded {
  opacity: 1;
}

.premium-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.2rem;
  text-align: center;
  font-size: 0.55rem;
  color: var(--vault-muted);
  background: #10101c;
}

.premium-thumb-fallback[hidden] {
  display: none !important;
}

.premium-thumb-tier-icon {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 6, 14, 0.75);
}

.premium-thumb-tier-icon.is-premium { color: var(--vault-gold); }
.premium-thumb-tier-icon.is-featured { color: var(--vault-cyan); }

.premium-thumb-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.premium-thumb-copy strong {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-thumb-game {
  font-size: 0.68rem;
  color: var(--vault-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-rail-status {
  margin: 0;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  color: var(--vault-muted);
  letter-spacing: 0.02em;
  text-align: center;
}

/* Curated highlight dot pagination */
.premium-dots {
  max-width: var(--max-w);
  margin: 0.9rem auto 0;
  padding-inline: 1.5rem;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.premium-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width var(--motion-fast) var(--ease-enter), background var(--motion-fast) ease;
}

.premium-dot:hover,
.premium-dot:focus-visible {
  background: rgba(255, 255, 255, 0.5);
  outline: none;
}

.premium-dot.is-active {
  width: 14px;
  background: var(--theme-accent, var(--vault-gold));
}

/* Toolbar */
.vault-toolbar-container {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(8, 8, 18, 0.88);
  border-top: 1px solid var(--vault-line);
  border-bottom: 1px solid var(--vault-line);
}

.vault-toolbar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: end;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vault-muted);
}

.vault-select {
  appearance: none;
  height: var(--control-h);
  padding: 0 2rem 0 0.8rem;
  border-radius: var(--r-control);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(45deg, transparent 50%, var(--vault-muted) 50%) calc(100% - 14px) / 5px 5px no-repeat,
    linear-gradient(135deg, transparent 50%, var(--vault-muted) 50%) calc(100% - 9px) / 5px 5px no-repeat,
    rgba(16, 16, 32, 0.95);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.vault-select:focus {
  outline: 2px solid rgba(41, 231, 255, 0.55);
  outline-offset: 1px;
}

.btn-clear {
  border: 1px solid rgba(255, 45, 120, 0.4);
  background: rgba(255, 45, 120, 0.1);
  color: #ffb0cb;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-clear:focus-visible {
  outline: 2px solid #ffb0cb;
  outline-offset: 2px;
}

.vault-result-count {
  color: var(--vault-muted);
  font-size: 0.9rem;
}

.vault-result-count.count-pulse {
  animation: count-pulse var(--motion-normal) var(--ease-enter);
}

@keyframes count-pulse {
  0% { opacity: 0.35; transform: translateY(-1px); }
  100% { opacity: 1; transform: translateY(0); }
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Active filter chips — removable pills summarizing the current filter state */
.active-filter-chips {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.active-filter-chips:empty {
  padding: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.5rem 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(41, 231, 255, 0.32);
  background: rgba(41, 231, 255, 0.08);
  color: #cdeeff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  animation: chip-pop var(--motion-normal) var(--ease-enter);
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(41, 231, 255, 0.6);
  background: rgba(41, 231, 255, 0.14);
  outline: none;
}

.filter-chip .filter-chip-x {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.7rem;
  line-height: 1;
}

@keyframes chip-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Collections */
.vault-collections {
  padding: 1.75rem 0 0.5rem;
}

.collections-row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 1rem;
}

/* Rich collection tile — poster art with overlay identity + body strip */
.collection-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: inherit;
  cursor: pointer;
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
  transition: transform var(--motion-normal) var(--ease-enter), border-color var(--motion-fast) ease, box-shadow var(--motion-normal) ease;
}

.collection-tile:hover,
.collection-tile:focus-visible,
.collection-tile.is-active {
  border-color: color-mix(in srgb, var(--theme-accent, #29e7ff) 55%, transparent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
  outline: none;
}

.collection-tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #151528, #0c0c18);
  overflow: hidden;
}

.collection-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity var(--motion-normal) ease, transform var(--motion-slow) var(--ease-enter);
}

.collection-tile-media img.is-loaded { opacity: 1; }

.collection-tile:hover .collection-tile-media img,
.collection-tile:focus-visible .collection-tile-media img {
  transform: scale(1.04);
}

.collection-tile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 6, 14, 0.94) 0%, rgba(6, 6, 14, 0.35) 48%, transparent 72%),
    radial-gradient(ellipse 80% 60% at 50% 20%, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

.collection-tile-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--theme-accent-soft, rgba(255, 211, 77, 0.18));
  color: var(--theme-accent, #ffd34d);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #ffd34d) 45%, transparent);
}

.collection-tile-overlay {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collection-tile-icon {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--theme-accent-soft, rgba(41, 231, 255, 0.16));
  color: var(--theme-accent, #29e7ff);
}

.collection-tile-overlay-copy {
  min-width: 0;
}

.collection-tile-name {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-tile-count {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

.collection-tile-body {
  padding: 0.65rem 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.collection-tile-meta {
  color: var(--vault-muted);
  font-size: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
}

.collection-tile-categories {
  color: var(--vault-muted);
  font-size: 0.74rem;
}

.collection-tile-explore {
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-accent, #29e7ff);
  opacity: 0.85;
  transition: gap var(--motion-fast) var(--ease-enter);
}

.collection-tile:hover .collection-tile-explore,
.collection-tile:focus-visible .collection-tile-explore {
  gap: 0.55rem;
}

/* Grid */
.vault-grid-section {
  padding: 1.5rem 0 4rem;
}

.games-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1.15rem;
}

.asset-card {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--motion-normal) var(--ease-enter), border-color var(--motion-fast) ease, box-shadow var(--motion-normal) ease;
  transform: perspective(900px) rotateX(calc(var(--tilt-y, 0) * 1deg)) rotateY(calc(var(--tilt-x, 0) * 1deg)) translateY(0);
  color: inherit;
  text-align: left;
  padding: 0;
  font: inherit;
  isolation: isolate;
  will-change: transform;
}

.asset-card:hover,
.asset-card:focus-visible {
  transform: perspective(900px) rotateX(calc(var(--tilt-y, 0) * 1deg)) rotateY(calc(var(--tilt-x, 0) * 1deg)) translateY(-3px);
  border-color: rgba(160, 32, 240, 0.4);
  box-shadow: var(--shadow-panel);
  outline: none;
}

.asset-card.tier-premium {
  border-color: rgba(255, 211, 77, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 77, 0.06);
}

.asset-card.tier-premium:hover,
.asset-card.tier-premium:focus-visible {
  border-color: rgba(255, 211, 77, 0.55);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px rgba(255, 211, 77, 0.12);
}

.asset-card.tier-featured {
  border-color: rgba(41, 231, 255, 0.22);
}

.asset-card.tier-featured:hover,
.asset-card.tier-featured:focus-visible {
  border-color: rgba(41, 231, 255, 0.5);
}

.asset-card.tier-experimental {
  border-color: rgba(160, 32, 240, 0.18);
}

.asset-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%), linear-gradient(145deg, #151528, #0c0c18);
  overflow: hidden;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  transition: transform var(--motion-slow) var(--ease-enter), opacity var(--motion-normal) ease;
  opacity: 0;
}

.asset-thumb img.is-loaded { opacity: 1; }

.asset-card:hover .asset-thumb img,
.asset-card:focus-visible .asset-thumb img {
  transform: scale(1.03);
}

.asset-thumb.is-loading {
  background: linear-gradient(110deg, #12122200 20%, rgba(255, 255, 255, 0.05) 37%, #12122200 63%), #10101c;
  background-size: 200% 100%, auto;
  animation: premium-skeleton 1.2s ease-in-out infinite;
}

.asset-thumb .thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--vault-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 0.75rem;
  background: #121222;
}

.badge-row {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  pointer-events: none;
}

/* Restrained per-tier badge — only tier shown on the poster itself */
.tier-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.tier-premium { background: rgba(255, 211, 77, 0.2); color: #ffe08a; border: 1px solid rgba(255, 211, 77, 0.4); }
.tier-featured { background: rgba(41, 231, 255, 0.12); color: #9ef3ff; border: 1px solid rgba(41, 231, 255, 0.28); }
.tier-standard { background: rgba(255, 255, 255, 0.05); color: #a8a8c2; border: 1px solid rgba(255, 255, 255, 0.09); }
.tier-experimental { background: rgba(160, 32, 240, 0.1); color: #d3aeff; border: 1px solid rgba(160, 32, 240, 0.22); }

.asset-info {
  position: relative;
  padding: 0.85rem 1rem 1rem;
}

.asset-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4.2rem;
}

.asset-game-name {
  color: var(--theme-accent, var(--vault-cyan));
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
}

.asset-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.asset-quiet-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--vault-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
}

.asset-explore-label {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--vault-cyan);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--motion-fast) var(--ease-enter), transform var(--motion-fast) var(--ease-enter);
  pointer-events: none;
}

.asset-card:hover .asset-explore-label,
.asset-card:focus-visible .asset-explore-label {
  opacity: 1;
  transform: translateX(0);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--vault-muted);
}

.empty-state-retry {
  display: block;
  margin: 1rem auto 0;
  appearance: none;
  border: 1px solid rgba(41, 231, 255, 0.4);
  background: rgba(41, 231, 255, 0.1);
  color: #9ef3ff;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font: 600 0.88rem/1 'DM Sans', sans-serif;
  cursor: pointer;
}

.empty-state-retry:hover,
.empty-state-retry:focus-visible {
  background: rgba(41, 231, 255, 0.18);
  outline: none;
}

/* Hover preview — contained overlay above card, never over nav/filters */
.hover-preview-root {
  position: fixed;
  z-index: 30;
  width: 280px;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(160, 32, 240, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  background: #0c0c18;
}

.hover-preview-root canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Detail */
.vault-view[hidden] { display: none !important; }

.viewer-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.25rem) 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(272px, 0.8fr);
  gap: 1.25rem;
}

/* Breadcrumb */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.detail-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--vault-muted);
}

.detail-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.detail-breadcrumb li:not(:first-child)::before {
  content: '/';
  color: rgba(255, 255, 255, 0.25);
}

.detail-breadcrumb a,
.crumb-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--vault-muted);
  font: inherit;
  cursor: pointer;
  padding: 0.15rem 0.15rem;
  border-radius: 6px;
  text-decoration: none;
}

.detail-breadcrumb a:hover,
.detail-breadcrumb a:focus-visible,
.crumb-link:hover,
.crumb-link:focus-visible {
  color: var(--theme-accent, var(--vault-cyan));
  outline: none;
}

.detail-breadcrumb #crumb-asset {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.detail-nav {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.detail-nav-btn {
  border: 1px solid var(--vault-line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: 600 0.85rem/1 'DM Sans', sans-serif;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.detail-nav-btn:hover,
.detail-nav-btn:focus-visible {
  border-color: var(--theme-accent, var(--vault-cyan));
  background: var(--theme-accent-soft, rgba(41, 231, 255, 0.08));
  outline: none;
}

.detail-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.viewer-container {
  position: relative;
  min-height: clamp(420px, 46vw, 560px);
  border-radius: var(--r-panel);
  overflow: hidden;
  border: 1px solid var(--vault-line);
  background: #121226;
  transition: border-color var(--motion-normal) ease;
}

.viewer-container.has-theme {
  border-color: color-mix(in srgb, var(--theme-accent, #29e7ff) 30%, var(--vault-line));
}

.viewer-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(0, 0, 0, 0.5), transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(160, 32, 240, 0.08), transparent 62%),
    linear-gradient(180deg, #14142a 0%, #0e0e1c 60%, #0a0a14 100%);
}

.viewer-plate::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.viewer-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  opacity: 1;
  transition: opacity var(--motion-slow) var(--ease-enter);
}

.viewer-poster.is-hidden { opacity: 0; pointer-events: none; }

.viewer-container:fullscreen,
.viewer-container:-webkit-full-screen {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  border: 0;
  background: #0a0a14;
}

.viewer-container.is-ios-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  z-index: 2147483646 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: #0a0a14 !important;
}

.viewer-container canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.viewer-loading,
.viewer-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  background: rgba(10, 10, 20, 0.72);
  z-index: 3;
  color: var(--vault-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--vault-cyan);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.viewer-anim-panel {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 8, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  max-width: calc(100% - 1.7rem);
}

.anim-clip-select {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: 600 0.8rem/1 'DM Sans', sans-serif;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anim-play-toggle {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.anim-play-toggle:hover,
.anim-play-toggle:focus-visible {
  border-color: var(--theme-accent, var(--vault-cyan));
  outline: none;
}

.anim-speed-label {
  display: none;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--vault-muted);
  white-space: nowrap;
}

@media (min-width: 560px) {
  .anim-speed-label { display: inline-flex; }
}

.anim-speed-label input[type="range"] {
  width: 4.5rem;
}

/* Transient orbit hint, bottom-centre of the stage */
.viewer-orbit-hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 8, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-normal) var(--ease-enter);
}

.viewer-orbit-hint.is-visible { opacity: 1; }

/* Left vertical control stack — icon-over-label glass buttons */
.viewer-control-stack {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.viewer-ctrl-stacked {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 0.3rem;
  border-radius: var(--r-control);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 8, 18, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
}

.viewer-ctrl-stacked span {
  white-space: nowrap;
}

.viewer-ctrl-stacked:hover,
.viewer-ctrl-stacked:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.viewer-ctrl-stacked.active {
  border-color: rgba(41, 231, 255, 0.55);
  color: var(--vault-cyan);
}

.viewer-ctrl-stacked.is-fullscreen .icon-fs-enter { display: none; }
.viewer-ctrl-stacked.is-fullscreen .icon-fs-exit { display: block !important; }

/* Right-top environment panel */
.env-panel {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  z-index: 4;
  padding: 0.7rem 0.75rem;
  min-width: 168px;
}

.env-panel-title {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vault-muted);
}

.env-panel-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.env-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--vault-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}

.env-option:hover,
.env-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  outline: none;
}

.env-option[aria-checked="true"] {
  border-color: var(--theme-accent, var(--vault-cyan));
  background: var(--theme-accent-soft, rgba(41, 231, 255, 0.1));
  color: #fff;
}

.env-swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
}

.env-option[aria-checked="true"] .env-swatch::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--theme-accent, var(--vault-cyan));
}

.env-swatch-studio { background: #121222; }
.env-swatch-dark { background: #05050b; }
.env-swatch-light { background: #e9e9f4; }
.env-swatch-game { background: #161228; }

.metadata-card,
.showcase-disclaimer-box {
  padding: 1.1rem 1.15rem;
}

.showcase-disclaimer-box {
  border-radius: var(--r-panel);
  border: 1px solid var(--vault-line);
  background: var(--vault-panel);
}

/* Asset identity panel */
.asset-identity {
  padding: 1.2rem 1.25rem;
}

.identity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.identity-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  min-width: 0;
}

.tier-badge-lg {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.tier-badge-lg.tier-premium { background: rgba(255, 211, 77, 0.2); color: #ffe08a; border: 1px solid rgba(255, 211, 77, 0.45); }
.tier-badge-lg.tier-featured { background: rgba(41, 231, 255, 0.14); color: #9ef3ff; border: 1px solid rgba(41, 231, 255, 0.35); }
.tier-badge-lg.tier-standard { background: rgba(255, 255, 255, 0.06); color: #cfcfe4; border: 1px solid rgba(255, 255, 255, 0.12); }
.tier-badge-lg.tier-experimental { background: rgba(160, 32, 240, 0.14); color: #e0b8ff; border: 1px solid rgba(160, 32, 240, 0.3); }

.identity-subtitle {
  color: var(--theme-accent, var(--vault-cyan));
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.identity-row[hidden] { display: none !important; }

.identity-icon {
  flex-shrink: 0;
  color: var(--vault-muted);
}

.identity-label {
  color: var(--vault-muted);
}

.identity-value {
  margin-left: auto;
  color: #fff;
  text-align: right;
  font-weight: 600;
}

.meta-description {
  color: var(--vault-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0.9rem 0 0;
}

.meta-description[hidden] { display: none !important; }

.original-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(110, 231, 160, 0.12);
  border: 1px solid rgba(110, 231, 160, 0.35);
  color: #a6f2c4;
  font-size: 0.74rem;
  font-weight: 700;
}

.original-badge[hidden] { display: none !important; }

/* Technical information panel */
.tech-panel {
  padding: 1.1rem 1.15rem 1.25rem;
}

.tech-panel-title {
  font-family: 'Syne', sans-serif;
  color: var(--vault-gold);
  font-size: 1rem;
  margin: 0 0 0.9rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.7rem;
}

.tech-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0.55rem;
  border-radius: var(--r-control);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
}

.tech-cell[hidden] { display: none !important; }

.tech-cell-wide { grid-column: span 2; }

.tech-cell-icon { color: var(--vault-muted); }

.tech-cell-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vault-muted);
}

.tech-cell-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

/* "See this asset in action" — links the asset back to its playable game */
.asset-game-cta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.asset-game-cta[hidden] { display: none !important; }

.asset-game-cta-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  margin: 0 0 1rem;
}

.game-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 0;
  border-radius: var(--r-panel);
  overflow: hidden;
  border: 1px solid var(--vault-line);
  background: linear-gradient(160deg, #16162c, #10101c 70%);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.game-promo-card:hover,
.game-promo-card:focus-visible {
  border-color: rgba(255, 211, 77, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-panel);
  outline: none;
}

.game-promo-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e0e18;
  overflow: hidden;
}

.game-promo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  background: linear-gradient(135deg, #1a1a32, #0e0e1a);
}

.game-promo-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-promo-body {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

.game-promo-kicker {
  color: var(--vault-gold, #ffd34d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-promo-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 0;
}

.game-promo-desc {
  color: var(--vault-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-promo-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  align-self: flex-start;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 211, 77, 0.14);
  border: 1px solid rgba(255, 211, 77, 0.4);
  color: var(--vault-gold, #ffd34d);
  font-weight: 700;
  font-size: 0.9rem;
}

.game-promo-card:hover .game-promo-play,
.game-promo-card:focus-visible .game-promo-play {
  background: rgba(255, 211, 77, 0.22);
}

@media (max-width: 720px) {
  .game-promo-card {
    grid-template-columns: 1fr;
  }
}

/* Related assets — glass-panel rails grouped by relation (game / category / tier) */
.related-assets {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}

.related-rails-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1023px) {
  .related-rails-grid { grid-template-columns: minmax(0, 1fr); }
}

.related-rail {
  padding: 1rem 1rem 1.1rem;
  min-width: 0;
}

.related-rail[hidden] { display: none !important; }

.related-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.related-rail-head h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  margin: 0;
}

.related-rail-nav {
  display: flex;
  gap: 0.35rem;
}

.related-rail-btn {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.related-rail-btn:hover,
.related-rail-btn:focus-visible {
  border-color: var(--theme-accent, var(--vault-cyan));
  outline: none;
}

.related-rail-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.related-rail-track::-webkit-scrollbar { height: 5px; }
.related-rail-track::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; }

.related-card {
  position: relative;
  flex: 0 0 150px;
  scroll-snap-align: start;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-control);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  padding: 0;
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-enter);
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--theme-accent, var(--vault-cyan));
  transform: translateY(-2px);
  outline: none;
}

.related-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%), #10101c;
  overflow: hidden;
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.related-card-tier {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.56rem;
}

.related-card-name {
  padding: 0.5rem 0.6rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 1080px) {
  .premium-stage {
    grid-template-columns: 1fr;
  }
  .premium-rail-col { order: 2; }
  .premium-rail {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: none;
  }
  .premium-thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  .premium-thumb {
    flex: 0 0 clamp(150px, 30vw, 190px);
    grid-template-columns: 1fr;
  }
  .premium-thumb-media { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px 10px 0 0; }
  .premium-rail-btn { margin: 0; }
}

@media (max-width: 960px) {
  .viewer-layout {
    grid-template-columns: 1fr;
  }
  .related-card { flex: 0 0 130px; }
}

@media (max-width: 720px) {
  .viewer-control-stack {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    order: 3;
    margin-top: 0.6rem;
  }
  .viewer-ctrl-stacked { width: auto; flex: 1 1 0; min-height: 44px; }
  .env-panel {
    position: static;
    order: 4;
    margin-top: 0.5rem;
    width: 100%;
  }
  .env-panel-options {
    grid-template-columns: repeat(4, 1fr);
  }
  .env-option { flex-direction: column; gap: 0.2rem; font-size: 0.62rem; text-align: center; padding: 0.4rem 0.2rem; }
  .viewer-container {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .vault-hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero-headline { font-size: 2rem; }
  .hero-particles { opacity: 0.55; }
  .filter-field { min-width: calc(50% - 0.4rem); flex: 1 1 calc(50% - 0.4rem); }
  .premium-section-head { align-items: stretch; }
  .premium-view-all { width: 100%; }
  .premium-viewport { min-height: 300px; }
  .premium-thumb-game { display: none; }
  .premium-stage-nav-btn { opacity: 1; transform: scale(1); width: 2.35rem; height: 2.35rem; font-size: 1.25rem; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
  .hover-preview-root { display: none !important; }
  .detail-nav { width: 100%; margin-left: 0; }
  .detail-nav-btn { flex: 1; text-align: center; }
  .related-rail-track { gap: 0.55rem; }
  .related-card { flex: 0 0 118px; }
  .stat-card { min-width: 100px; padding: 0.75rem 0.85rem; }
}

@media (max-width: 360px) {
  .filter-field { min-width: 100%; }
  .games-grid { grid-template-columns: 1fr; }
}

/* ── prefers-reduced-motion: disable all decorative motion ────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vault-aurora,
  .hero-aurora,
  .hero-particle,
  .premium-thumb-media.is-loading,
  .asset-thumb.is-loading {
    animation: none !important;
  }

  .hero-particles,
  .hero-silhouettes {
    display: none !important;
  }

  .vault-hero-atmosphere {
    transform: none !important;
  }

  [data-reveal],
  .reveal-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .asset-card,
  .premium-thumb,
  .collection-tile,
  .premium-canvas,
  .asset-thumb img,
  .collection-tile-media img,
  .premium-orbit-hint,
  .viewer-orbit-hint,
  .premium-stage-nav-btn,
  .filter-chip,
  .viewer-poster {
    transition: none !important;
    animation: none !important;
  }

  .asset-card {
    transform: none !important;
  }

  .asset-card:hover,
  .asset-card:focus-visible {
    transform: none !important;
  }

  .spinner { animation: none; border-top-color: #fff; }
}

/* Owner review dashboard (NK-289 admin scaffold) */
.vault-review-page .vault-review-main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.vault-review-hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; opacity: .7; }
.vault-review-hero h1 { margin: .4rem 0 .8rem; font-family: Syne, sans-serif; }
.vault-review-hero .lede { max-width: 62ch; opacity: .85; line-height: 1.55; }
.vault-review-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 2rem 0; }
.review-stat { padding: 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.03); }
.review-stat-label { display: block; font-size: .75rem; opacity: .7; margin-bottom: .35rem; }
.review-stat strong { font-size: 1.4rem; }
.vault-review-section { margin-top: 2rem; }
.review-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.review-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.review-table th, .review-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
.review-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.nav-link-muted { opacity: .65; font-size: .9rem; }
.review-error { color: #ff8b8b; margin-top: 1rem; }
