/* ==========================================================================
   SPATIAL ARCADE — CYBER VR & SPATIAL COMPUTING STORE
   Matching cyber_vr_store.jpg with 3D Pop-Out Astronaut & Holodeck Stage
   ========================================================================== */

:root {
  --space-bg: #040812;
  --space-bg-dark: #02040a;
  --neon-cyan: #38bdf8;
  --neon-cyan-glow: rgba(56, 189, 248, 0.25);
  --neon-cyan-soft: rgba(56, 189, 248, 0.1);
  --neon-orange: #f59e0b;
  --neon-orange-glow: rgba(245, 158, 11, 0.25);
  --neon-orange-soft: rgba(245, 158, 11, 0.1);
  --glass-panel: rgba(13, 22, 38, 0.68);
  --glass-panel-hover: rgba(18, 30, 52, 0.82);
  --glass-border-cyan: rgba(56, 189, 248, 0.22);
  --glass-border-orange: rgba(245, 158, 11, 0.22);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-cyan: #38bdf8;
  --text-orange: #f59e0b;
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-card: 22px;
  --radius-sm: 10px;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--space-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   STANDALONE SUBDOMAIN BRIDGE
   ========================================================================== */
.bas-standalone-badge {
  position: fixed;
  top: 14px;
  left: 20px;
  z-index: 1000;
  display: flex;
}

.bas-badge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 240, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.bas-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.bas-badge-brand {
  color: #fff;
  font-weight: 700;
}

.bas-badge-sep {
  color: rgba(0, 240, 255, 0.4);
}

.bas-badge-title {
  color: var(--text-muted);
}

.bas-badge-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 999px;
  color: var(--neon-cyan);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.bas-badge-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 12px var(--neon-cyan);
}

/* ==========================================================================
   PERSPECTIVE DEEP SPACE & CYBER GRID CANVAS
   ========================================================================== */
.spatial-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Viewport Layout */
.spatial-viewport {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 36px 16px 36px;
}

/* ==========================================================================
   TOP SPATIAL HEADER NAVIGATION
   ========================================================================== */
.spatial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  margin-top: 10px;
}

.spatial-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spatial-main-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: 
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan-glow),
    0 0 40px rgba(0, 240, 255, 0.3);
}

.spatial-sub-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.tele-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.spatial-nav-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* User Avatar */
.user-avatar-pill {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-cyan), transparent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transition: var(--transition);
}

.user-avatar-pill:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px var(--neon-cyan);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-online-ring {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #00ff88;
  border: 2px solid #030712;
  box-shadow: 0 0 8px #00ff88;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.nav-link-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 4px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-link-btn:hover {
  color: #fff;
}

.nav-link-btn.active {
  color: #ffffff;
  text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.nav-active-bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--neon-cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--neon-cyan), 0 0 18px var(--neon-cyan);
}

.lib-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid var(--neon-cyan);
  border-radius: 10px;
  font-size: 10px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.fx-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.fx-toggle-btn.muted {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.menu-burger-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.menu-burger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--neon-cyan);
}

.menu-burger-btn .bar {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   MAIN SPATIAL ARCADE STAGE
   ========================================================================== */
.spatial-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

/* Peek Flanking Cards */
.peek-card {
  position: relative;
  width: 70px;
  height: 480px;
  border-radius: var(--radius-card);
  overflow: hidden;
  opacity: 0.45;
  transition: var(--transition);
  cursor: pointer;
}

.peek-card:hover {
  opacity: 0.85;
  transform: scaleY(1.02);
}

.peek-card-inner {
  width: 100%;
  height: 100%;
  background: var(--glass-panel);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  gap: 12px;
}

.peek-left .peek-card-inner {
  border-color: var(--glass-border-orange);
}

.peek-right .peek-card-inner {
  border-color: var(--glass-border-cyan);
}

.peek-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.peek-card h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #fff;
  white-space: nowrap;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(3, 7, 18, 0.9);
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  color: var(--neon-cyan);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 25px var(--neon-cyan);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { right: -22px; }
.next-btn { left: -22px; }

/* ==========================================================================
   CENTRAL ACTIVE SHOWCASE LAYOUT (cyber_vr_store.jpg replica)
   ========================================================================== */
.spatial-showcase-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1180px;
  align-items: stretch;
}

/* ==========================================================================
   LEFT HERO CARD: ADRIFT // EXPLORE THE VOID (With Pop-Out Astronaut)
   ========================================================================== */
.hero-adrift-card {
  position: relative;
  min-height: 520px;
  perspective: 1000px;
}

.card-glass-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, rgba(10, 22, 44, 0.75) 0%, rgba(4, 10, 22, 0.85) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 30px;
  border: 3px solid rgba(0, 240, 255, 0.5);
  box-shadow: 
    0 0 25px rgba(0, 240, 255, 0.35),
    inset 0 0 25px rgba(0, 240, 255, 0.15),
    0 25px 50px rgba(0, 0, 0, 0.8);
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  cursor: pointer;
  transition: var(--transition);
}

.card-glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.85);
  box-shadow: 
    0 0 40px rgba(0, 240, 255, 0.55),
    inset 0 0 35px rgba(0, 240, 255, 0.25),
    0 30px 60px rgba(0, 0, 0, 0.9);
  transform: translateY(-4px);
}

/* Card Atmospheric Stardust Inside */
.card-star-aura {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 60% 40%, rgba(0, 240, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

/* 3D Pop-Out Astronaut */
.astronaut-breakout-wrapper {
  position: absolute;
  top: -40px;
  left: -20px;
  width: 380px;
  height: 420px;
  pointer-events: none;
  z-index: 10;
}

.astro-pop-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
  animation: floatAstronaut 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatAstronaut {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-12px) rotate(1.2deg) scale(1.02);
  }
}

.card-glass-panel:hover .astro-pop-img {
  transform: translateY(-18px) scale(1.05);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px var(--neon-cyan));
}

/* Card Content Bottom */
.adrift-content-bottom {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adrift-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adrift-headline {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.adrift-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.adrift-subheadline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--neon-cyan);
}

.adrift-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

.star-icon {
  color: #ffd700;
  font-size: 16px;
  filter: drop-shadow(0 0 6px #ffd700);
}

.rating-num {
  color: #fff;
}

.rating-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Interactive Touch Trigger in Bottom-Right */
.spatial-touch-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.touch-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  pointer-events: none;
}

.touch-ring.ring-1 {
  width: 54px;
  height: 54px;
  opacity: 0.6;
  animation: rippleRing 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.touch-ring.ring-2 {
  width: 72px;
  height: 72px;
  opacity: 0.3;
  animation: rippleRing 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.6s;
}

@keyframes rippleRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.touch-core {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.2);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
  transition: var(--transition);
}

.spatial-touch-btn:hover .touch-core {
  transform: scale(1.15);
  background: var(--neon-cyan);
  box-shadow: 0 0 25px var(--neon-cyan);
}

.touch-pointer-hand {
  position: absolute;
  bottom: -16px;
  right: -14px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  animation: pointGesture 2s ease-in-out infinite;
}

@keyframes pointGesture {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -4px); }
}

/* ==========================================================================
   RIGHT 2x2 GRID OF GLOWING CARDS (Astro Chase, Quantum Leap, Cyber Run, Nebula Riders)
   ========================================================================== */
.arcade-card-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.arcade-card {
  position: relative;
  background: var(--glass-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 26px;
  padding: 24px 22px;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card Themes */
.arcade-card.neon-cyan {
  border: 2px solid rgba(0, 240, 255, 0.4);
  box-shadow: 
    0 0 20px rgba(0, 240, 255, 0.25),
    inset 0 0 15px rgba(0, 240, 255, 0.08);
}

.arcade-card.neon-cyan:hover {
  border-color: rgba(0, 240, 255, 0.85);
  box-shadow: 
    0 0 35px rgba(0, 240, 255, 0.45),
    inset 0 0 25px rgba(0, 240, 255, 0.18),
    0 15px 30px rgba(0, 0, 0, 0.7);
  transform: translateY(-4px) scale(1.015);
}

.arcade-card.neon-orange {
  border: 2px solid rgba(255, 159, 67, 0.4);
  box-shadow: 
    0 0 20px rgba(255, 159, 67, 0.25),
    inset 0 0 15px rgba(255, 159, 67, 0.08);
}

.arcade-card.neon-orange:hover {
  border-color: rgba(255, 159, 67, 0.85);
  box-shadow: 
    0 0 35px rgba(255, 159, 67, 0.45),
    inset 0 0 25px rgba(255, 159, 67, 0.18),
    0 15px 30px rgba(0, 0, 0, 0.7);
  transform: translateY(-4px) scale(1.015);
}

.card-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* Icon Box */
.card-icon-container {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.card-icon-container.cyan-box {
  background: rgba(0, 240, 255, 0.08);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.15);
}

.card-icon-container.orange-box {
  background: rgba(255, 159, 67, 0.08);
  border: 2px solid var(--neon-orange);
  box-shadow: 0 0 15px rgba(255, 159, 67, 0.25), inset 0 0 10px rgba(255, 159, 67, 0.15);
}

.arcade-card:hover .card-icon-container {
  transform: scale(1.08);
}

.neon-svg-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px currentColor);
}

/* Text Body */
.card-text-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.card-quick-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.card-quick-close:hover {
  color: #fff;
}

.card-price-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.card-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 400;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.rating-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
}

.rating-val {
  color: #fff;
}

.genre-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
}

.genre-pill.orange {
  background: rgba(255, 159, 67, 0.15);
  border-color: rgba(255, 159, 67, 0.3);
  color: var(--neon-orange);
}

/* Corner Badges */
.corner-status-orb {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-status-orb.cyan {
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.corner-status-orb.orange {
  background: radial-gradient(circle, var(--neon-orange) 0%, transparent 70%);
  box-shadow: 0 0 10px var(--neon-orange);
}

.corner-gesture-badge {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 14px;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px var(--neon-orange));
}

/* ==========================================================================
   BOTTOM HUD STATUS BAR
   ========================================================================== */
.spatial-footer-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-indicator.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulseDot 1.8s infinite ease-in-out;
}

.hud-divider {
  color: rgba(255, 255, 255, 0.2);
}

.hud-tip {
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE HOLODECK GAME MODAL / OPERATIVE INSPECTOR
   ========================================================================== */
.holo-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(1, 4, 10, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.holo-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.holo-modal-frame {
  position: relative;
  width: 100%;
  max-width: 1080px;
  background: linear-gradient(170deg, rgba(8, 16, 32, 0.95) 0%, rgba(3, 7, 18, 0.98) 100%);
  border: 2px solid var(--neon-cyan);
  border-radius: 32px;
  box-shadow: 
    0 0 50px rgba(0, 240, 255, 0.35),
    inset 0 0 30px rgba(0, 240, 255, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.9);
  padding: 36px;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.holo-modal-backdrop.active .holo-modal-frame {
  transform: scale(1) translateY(0);
}

.holo-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.holo-close-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--neon-cyan);
}

.holo-modal-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  align-items: start;
}

/* Warp Stage Column */
.holo-stage-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.warp-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: #000;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.warp-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.warp-hud-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}

.warp-telemetry-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 999px;
  color: var(--neon-cyan);
}

.warp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.warp-speed-gauge {
  background: rgba(3, 7, 18, 0.75);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.warp-speed-gauge b {
  color: #fff;
  margin-left: 4px;
}

.warp-center-play {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warp-launch-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(0, 240, 255, 0.2);
  border: 2px solid var(--neon-cyan);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: var(--transition);
}

.warp-launch-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 35px var(--neon-cyan);
  transform: scale(1.05);
}

.play-icon {
  font-size: 14px;
}

/* Operative Hero Profile Card */
.holo-operative-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.op-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
}

.op-tag {
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
}

.op-adinkra {
  color: var(--neon-orange);
  font-weight: 600;
}

.op-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.op-sheet-img {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.op-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.op-details h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.06em;
}

.op-role {
  font-size: 12px;
  color: var(--neon-cyan);
  font-weight: 600;
}

.op-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.op-bio {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Right Details Column */
.holo-details-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-meta-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-cat-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
}

.game-big-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 20px var(--neon-cyan-glow);
}

.game-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.game-full-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #c0ccdc;
}

/* Hardware Specs Row */
.hardware-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
}

/* Roster Switcher */
.roster-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roster-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--neon-orange);
}

.roster-tab-row {
  display: flex;
  gap: 10px;
}

.roster-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.roster-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
}

.roster-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.roster-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.roster-btn span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

/* Modal CTA Row */
.modal-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

/* 6DoF Controller Bindings Grid */
.controller-bindings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.binding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.binding-key {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.binding-act {
  color: #cbd5e1;
  font-size: 11px;
  text-align: right;
}

.action-add-lib-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--neon-cyan);
  border: none;
  border-radius: 12px;
  color: #040812;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  transition: var(--transition);
}

.action-add-lib-btn:hover {
  background: #fff;
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.price-highlight {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--neon-orange);
}

/* Library Toast */
.library-toast {
  padding: 10px 16px;
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid #00ff88;
  border-radius: 8px;
  color: #00ff88;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.library-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE LAYOUT & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .spatial-showcase-grid {
    grid-template-columns: 310px 1fr;
    gap: 20px;
  }
  .peek-card {
    display: none;
  }
}

@media (max-width: 980px) {
  .spatial-viewport {
    padding: 18px;
  }
  .spatial-main-title {
    font-size: 26px;
  }
  .spatial-showcase-grid {
    grid-template-columns: 1fr;
  }
  .hero-adrift-card {
    min-height: 440px;
  }
  .arcade-card-quad {
    grid-template-columns: 1fr;
  }
  .holo-modal-grid {
    grid-template-columns: 1fr;
  }
  .holo-stage-column {
    display: none;
  }
}
