:root {
  --wizard-bg: #071019;
  --wizard-panel: #0d1b29;
  --wizard-line: #24425a;
  --wizard-text: #e9f7ff;
  --wizard-muted: #8ba6b7;
  --wizard-cyan: #66e3ff;
  --wizard-amber: #ffc857;
  --wizard-violet: #b79cff;
  --wizard-red: #ff6b7a;
  --wizard-green: #70efad;
  --wizard-gold: #ffd700;
  --scene-width: 100%;
  --scene-height: 100%;
}

.wizard-body {
  margin: 0;
  background: var(--wizard-bg);
  color: var(--wizard-text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.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;
}

.skip {
  position: absolute;
  left: -999px;
  z-index: 1000;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #17324a 0%, #071019 70%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-content {
  text-align: center;
  animation: introFadeIn 1.5s ease;
}
.intro-aurora-glow {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wizard-cyan) 0%, transparent 70%);
  animation: pulseGlow 2s ease-in-out infinite;
}
.intro-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--wizard-cyan), var(--wizard-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-subtitle {
  font-size: 1.2rem;
  color: var(--wizard-muted);
  margin: 0.5rem 0 2rem;
}
.intro-skip {
  background: transparent;
  border: 1px solid var(--wizard-line);
  color: var(--wizard-text);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.intro-skip:hover,
.intro-skip:focus {
  border-color: var(--wizard-cyan);
  background: rgba(102, 227, 255, 0.1);
}

.wizard-main {
  display: grid;
  grid-template-columns: 1fr 420px;
  height: 100vh;
  width: 100vw;
}

.scene-container {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #17324a 0%, #071019 60%);
}

.scene-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-bg {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 80%, rgba(183, 156, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(102, 227, 255, 0.1) 0%, transparent 40%);
}

.scene-particles {
  z-index: 1;
}

.scene-neural {
  z-index: 2;
  opacity: 0.6;
}

.scene-aurora-waves {
  z-index: 3;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  opacity: 0.15;
  background: linear-gradient(to top, var(--wizard-cyan), transparent);
}
.wave-1 { animation: waveMove 8s ease-in-out infinite; }
.wave-2 { animation: waveMove 10s ease-in-out infinite reverse; opacity: 0.1; }
.wave-3 { animation: waveMove 12s ease-in-out infinite; opacity: 0.05; }

.scene-portal {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.scene-portal.active {
  opacity: 1;
}
.portal-svg {
  width: 280px;
  height: 280px;
}
.portal-ring {
  transform-origin: 150px 150px;
}
.ring-1 { animation: portalSpin 20s linear infinite; }
.ring-2 { animation: portalSpin 15s linear infinite reverse; }
.ring-3 { animation: portalSpin 25s linear infinite; }
.portal-core {
  animation: portalPulse 3s ease-in-out infinite;
}

.scene-characters {
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sprite-container {
  position: absolute;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.supasoloc-container {
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  width: min(420px, 58vw);
  height: min(560px, 72vh);
  z-index: 8;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.supasoloc-container.visible,
.supasoloc-container.guardian-hero {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.supasoloc-container.breathing {
  animation: spriteBreath 4s ease-in-out infinite;
}

.raster-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.05);
  transition: opacity 0.4s ease, filter 0.4s ease;
  image-rendering: auto;
}
.raster-sprite.pack-sprite,
.raster-sprite.hero-art {
  /* True-alpha / filled sprites — screen/lighten punches out robe midtones on Light/Alert */
  mix-blend-mode: normal;
  filter: contrast(1.05) saturate(1.08) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.scene-container[data-stage='light'] .raster-sprite.pack-sprite,
.scene-container[data-stage='light'] .raster-sprite.hero-art,
.scene-container[data-stage='alert'] .raster-sprite.pack-sprite,
.scene-container[data-stage='alert'] .raster-sprite.hero-art {
  mix-blend-mode: normal;
  filter: contrast(1.04) saturate(1.06) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}
/* Night-only: optional soft screen for legacy black-plate accents */
.scene-container[data-stage='night'] .guardian-pack-accent {
  mix-blend-mode: screen;
}
.raster-sprite.loading {
  opacity: 0.3;
  filter: blur(4px);
}
.raster-sprite.loaded {
  opacity: 1;
  filter: saturate(0.9);
}

.sprite-outline-svg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
}
.sprite-outline-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawOutline 2s ease forwards;
}

.wand-trail-layer {
  position: absolute;
  top: -20px;
  right: -30px;
  width: 100px;
  height: 100px;
}
.wand-trail-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wand-trail-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawWandTrail 1.5s ease forwards 0.5s;
}
.wand-sparkle {
  animation: sparklePulse 1s ease-in-out infinite;
}

.seeker-container {
  left: 14%;
  top: 62%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  width: min(160px, 22vw);
  height: min(240px, 32vh);
  z-index: 7;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
  pointer-events: none;
}
.seeker-container.visible {
  /* Keep seeker subtle — was reading as random UI clutter */
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(0.92);
}
body.wizard-body .seeker-container.visible {
  display: none; /* Godmode composition: one hero on stage */
}
.seeker-raster.hero-art {
  mix-blend-mode: screen;
}
.guardian-pack-accent {
  position: absolute;
  right: -6%;
  bottom: 4%;
  width: 28%;
  height: auto;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: saturate(1.2);
}

.book-container {
  right: 15%;
  top: 55%;
  transform: translate(50%, -50%) scale(0.6);
  opacity: 0;
  width: 100px;
  height: 100px;
}
.book-container.visible {
  opacity: 0.9;
  transform: translate(50%, -50%) scale(1);
}
.book-container.opening {
  animation: bookOpen 1s ease forwards;
}

.scene-agent-cores {
  z-index: 6;
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.scene-agent-cores.active {
  opacity: 1;
}

.agent-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.core-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent, var(--wizard-cyan));
  box-shadow: 0 0 12px var(--accent, var(--wizard-cyan));
  animation: coreOrbit 3s ease-in-out infinite;
}
.core-label {
  font-size: 10px;
  color: var(--wizard-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-panel {
  background: linear-gradient(145deg, rgba(13, 27, 41, 0.98), rgba(7, 16, 25, 0.98));
  border-left: 1px solid var(--wizard-line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.wizard-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--wizard-line);
}

.wizard-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.step-counter {
  font-size: 0.85rem;
  color: var(--wizard-muted);
  font-weight: 600;
}

.xp-display {
  font-size: 0.85rem;
  color: var(--wizard-amber);
  font-weight: 700;
}

.progress-bar {
  height: 6px;
  background: var(--wizard-line);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wizard-cyan), var(--wizard-violet));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.wizard-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.step-title {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.speaker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(102, 227, 255, 0.1);
  border: 1px solid var(--wizard-cyan);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--wizard-cyan);
  margin-bottom: 16px;
}

.speaker-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wizard-cyan);
  animation: pulseGlow 2s ease-in-out infinite;
}

.step-dialogue {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wizard-text);
  margin: 0 0 20px;
}

.step-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  color: var(--wizard-muted);
  font-weight: 600;
}

.input-group input[type="text"],
.input-group select {
  background: #071521;
  border: 1px solid var(--wizard-line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--wizard-text);
  font-size: 0.95rem;
}

.input-group input[type="text"]:focus,
.input-group select:focus {
  outline: 2px solid var(--wizard-cyan);
  outline-offset: -1px;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-label:hover,
.radio-label:hover {
  border-color: var(--wizard-line);
  background: rgba(102, 227, 255, 0.05);
}

.checkbox-label input,
.radio-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--wizard-cyan);
}

.review-summary {
  background: rgba(102, 227, 255, 0.05);
  border: 1px solid var(--wizard-line);
  border-radius: 12px;
  padding: 16px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--wizard-line);
  font-size: 0.9rem;
}
.review-item:last-child {
  border-bottom: none;
}
.review-label {
  color: var(--wizard-muted);
}
.review-value {
  color: var(--wizard-text);
  font-weight: 600;
}

.wizard-controls {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--wizard-line);
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-prev {
  background: transparent;
  border-color: var(--wizard-line);
  color: var(--wizard-text);
}
.btn-prev:not(:disabled):hover {
  border-color: var(--wizard-cyan);
}

.btn-next {
  background: var(--wizard-cyan);
  color: #041018;
}
.btn-next:not(:disabled):hover {
  background: #7de8ff;
}

.btn-next.complete {
  background: var(--wizard-green);
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes waveMove {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-10px) scaleY(1.1); }
}

@keyframes portalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes portalPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes spriteBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.02); }
}

@keyframes drawOutline {
  to { stroke-dashoffset: 0; }
}

@keyframes drawWandTrail {
  to { stroke-dashoffset: 0; }
}

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

@keyframes bookOpen {
  0% { transform: translate(50%, -50%) scale(1) rotateY(0deg); }
  100% { transform: translate(50%, -50%) scale(1.1) rotateY(-20deg); }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .intro-overlay {
    transition: none;
  }
}

@media (max-width: 900px) {
  .wizard-main {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 1fr;
  }
  .scene-container {
    height: 40vh;
  }
  .wizard-panel {
    border-left: none;
    border-top: 1px solid var(--wizard-line);
  }
  .supasoloc-container {
    width: 140px;
    height: 210px;
  }
  .seeker-container {
    width: 80px;
    height: 120px;
  }
  .book-container {
    width: 70px;
    height: 70px;
  }
  .portal-svg {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .wizard-main {
    grid-template-rows: 35vh 1fr;
  }
  .wizard-content {
    padding: 16px;
  }
  .step-title {
    font-size: 1.3rem;
  }
  .wizard-controls {
    padding: 12px 16px 16px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
.scene-sprite-garden {
  z-index: 4;
  pointer-events: none;
}

.scene-agent-cores {
    bottom: 10px;
    left: 10px;
    gap: 8px;
  }
  .core-orb {
    width: 18px;
    height: 18px;
  }
  .core-label {
    font-size: 8px;
  }
}

/* Phase 2: Activation Sequence */
.activation-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(125,232,255,0.15) 0%, #071019 70%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease, visibility 1s ease;
}
.activation-overlay[hidden] {
  display: flex;
}
.activation-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.activation-content {
  text-align: center;
  max-width: 560px;
  padding: 2rem;
}
.activation-glow {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wizard-cyan) 0%, transparent 70%);
  animation: pulseGlow 2s ease-in-out infinite;
}
.activation-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--wizard-cyan), var(--wizard-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.activation-message {
  color: var(--wizard-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}
.activation-close {
  background: linear-gradient(135deg, var(--wizard-cyan), var(--wizard-violet));
  border: none;
  color: #071019;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.activation-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(125,232,255,0.5);
}

/* --- Godmode spine: dimensional parallax + intent panel --- */
.scene-container {
  --px: 0;
  --py: 0;
  perspective: 1200px;
}
.scene-parallax-far,
.scene-parallax-mid,
.scene-parallax-near {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.15s ease-out;
}
.scene-parallax-far {
  z-index: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(233,247,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 62%, rgba(102,227,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 28%, rgba(183,156,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 72%, rgba(233,247,255,0.35) 0%, transparent 100%),
    radial-gradient(ellipse at 30% 20%, #17324a 0%, transparent 55%);
  transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -8px), 0) scale(1.05);
}
.scene-parallax-mid {
  z-index: 2;
  background:
    radial-gradient(ellipse 40% 30% at 55% 42%, rgba(125,232,255,0.08), transparent 70%),
    radial-gradient(ellipse 25% 20% at 30% 60%, rgba(183,156,255,0.06), transparent 70%);
  transform: translate3d(calc(var(--px) * -28px), calc(var(--py) * -18px), 0);
}
.scene-parallax-near {
  z-index: 6;
  background:
    linear-gradient(to top, rgba(7,16,25,0.55) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 100%, rgba(102,227,255,0.12), transparent 50%);
  transform: translate3d(calc(var(--px) * -48px), calc(var(--py) * -32px), 0);
}
.scene-portal {
  transform: translate3d(calc(var(--px) * -36px), calc(var(--py) * -24px), 0);
}
.scene-neural {
  transform: translate3d(calc(var(--px) * -20px), calc(var(--py) * -14px), 0);
}
@media (prefers-reduced-motion: reduce) {
  .scene-parallax-far,
  .scene-parallax-mid,
  .scene-parallax-near,
  .scene-portal,
  .scene-neural {
    transform: none !important;
    transition: none !important;
  }
}

.bridge-intent-panel {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100% - 2rem));
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(102, 227, 255, 0.28);
  background: rgba(7, 16, 25, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.bridge-intent-panel {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}
.bridge-intent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}
.bridge-intent-chip {
  appearance: none;
  border: 1px solid rgba(102, 227, 255, 0.35);
  border-radius: 999px;
  background: rgba(102, 227, 255, 0.1);
  color: #d7f7ff;
  font: 600 0.78rem/1.2 inherit;
  padding: 0.45rem 0.75rem;
  min-height: 40px;
  max-width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.bridge-intent-chip:hover,
.bridge-intent-chip:focus-visible {
  background: rgba(102, 227, 255, 0.22);
  border-color: rgba(102, 227, 255, 0.55);
  outline: none;
}
.bridge-intent-chip--primary {
  border-color: rgba(102, 227, 255, 0.55);
  background: rgba(102, 227, 255, 0.18);
}
.bridge-intent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}
.bridge-intent-panel input[data-user-intent] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--wizard-line);
  border-radius: 10px;
  background: rgba(13, 27, 41, 0.95);
  color: var(--wizard-text);
  padding: 0.65rem 0.85rem;
  font: inherit;
  outline: none;
}
.bridge-intent-panel input[data-user-intent]:focus {
  border-color: var(--wizard-cyan);
  box-shadow: 0 0 0 2px rgba(102, 227, 255, 0.2);
}
.bridge-intent-panel button[data-send-intent] {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wizard-cyan), var(--wizard-violet));
  color: #071019;
  font-weight: 650;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
}
.bridge-intent-panel button[data-send-intent]:disabled {
  opacity: 0.55;
  cursor: wait;
}
.spine-evidence {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(112, 239, 173, 0.35);
  background: rgba(112, 239, 173, 0.08);
  color: var(--wizard-text);
  font-size: 0.85rem;
  line-height: 1.45;
}
.spine-evidence[hidden] { display: none; }
.spine-evidence .spine-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--wizard-cyan);
  word-break: break-all;
}
.spine-evidence .spine-note {
  color: var(--wizard-muted);
  margin: 0.35rem 0 0;
}
.spine-evidence.error {
  border-color: rgba(255, 107, 122, 0.45);
  background: rgba(255, 107, 122, 0.08);
}

@media (max-width: 900px) {
  .wizard-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(42vh, 1fr) auto;
  }
  .bridge-intent-panel {
    bottom: 0.75rem;
  }
}

/* --- Photographic stage + clean chrome --- */
.scene-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 8s ease;
  filter: saturate(1.05) contrast(1.04);
  z-index: 0;
}
.scene-bg-image.is-active {
  opacity: 0.92;
}
.scene-bg-image.loaded {
  transform: scale(1);
}
.scene-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,16,25,0.15) 0%, transparent 28%, transparent 72%, rgba(7,16,25,0.55) 100%),
    linear-gradient(180deg, rgba(7,16,25,0.25) 0%, transparent 35%, rgba(7,16,25,0.65) 100%);
  pointer-events: none;
}
.scene-parallax-far {
  opacity: 0.55;
  mix-blend-mode: screen;
}
.scene-container[data-stage='light'] .scene-parallax-far { opacity: 0.35; }
.scene-container[data-stage='alert'] .scene-parallax-mid {
  background: radial-gradient(ellipse 50% 40% at 50% 45%, rgba(255,107,122,0.18), transparent 70%);
}

.stage-bg-switcher {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 227, 255, 0.28);
  background: rgba(7, 16, 25, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.stage-bg-switcher .stage-bg-hint,
.stage-bg-switcher .stage-bg-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wizard-muted);
  padding: 0 0.25rem;
}
.stage-bg-switcher button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--wizard-text);
  font: 650 0.72rem/1 system-ui, sans-serif;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.stage-bg-switcher button[aria-pressed='true'] {
  background: rgba(102, 227, 255, 0.2);
  border-color: rgba(102, 227, 255, 0.45);
  color: #e9f7ff;
}

.godmode-hidden-chrome,
.wizard-session-dock.godmode-hidden-chrome,
.wizard-session-badge.godmode-hidden-chrome {
  display: none !important;
}

/* Session host, if injected, must not steal the whole scene */
.scene-container .wizard-session-host {
  position: absolute !important;
  inset: auto 1rem 4.5rem auto !important;
  width: min(220px, 40%) !important;
  min-height: 160px !important;
  height: 200px !important;
  border-radius: 16px !important;
  opacity: 0.92;
  z-index: 12;
  pointer-events: none;
}
.scene-container .wizard-session-host .wizard-session-dock {
  display: none !important;
}

.wizard-panel {
  background: linear-gradient(180deg, rgba(13, 27, 41, 0.96), rgba(7, 16, 25, 0.98));
  border-left: 1px solid rgba(102, 227, 255, 0.18);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  z-index: 40;
}
.wizard-header {
  background: rgba(7, 16, 25, 0.4);
}
.step-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.speaker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 227, 255, 0.35);
  background: rgba(102, 227, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 650;
}
.input-group input[type='text'],
.input-group select {
  background: rgba(7, 21, 33, 0.95);
  border: 1px solid rgba(102, 227, 255, 0.22);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.btn-next {
  background: linear-gradient(135deg, #66e3ff, #b79cff);
  color: #071019;
  border: none;
  font-weight: 750;
}
.btn-prev {
  background: rgba(13, 27, 41, 0.9);
  border: 1px solid rgba(102, 227, 255, 0.22);
  color: var(--wizard-text);
}

.intro-overlay {
  background:
    radial-gradient(circle at 50% 38%, rgba(102, 227, 255, 0.22) 0%, transparent 42%),
    linear-gradient(160deg, #0d1b29 0%, #071019 55%, #05080c 100%);
}
.intro-title {
  text-shadow: 0 0 40px rgba(102, 227, 255, 0.35);
}
.intro-subtitle {
  color: #c5d9e6;
}

.sprite-outline-svg { opacity: 0.35; }
.wand-trail-layer { opacity: 0.5; }

@media (max-width: 900px) {
  .supasoloc-container {
    width: min(280px, 70vw);
    height: min(380px, 52vh);
    top: 46%;
  }
  .stage-bg-switcher {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    justify-content: center;
  }
  .scene-container .wizard-session-host {
    display: none !important;
  }
}
