/* Narrated Tour — zero-dep styles
 * --------------------------------
 * Uses CSS custom properties so host projects can retheme without editing
 * this file: --nt-accent, --nt-bg, --nt-text, --nt-muted.
 */

:root {
  --nt-accent: #8A00E5;        /* purple default — override in host */
  --nt-accent-glow: rgba(138, 0, 229, 0.5);
  --nt-bg: rgba(27, 21, 52, 0.92);
  --nt-text: #ffffff;
  --nt-muted: rgba(255, 255, 255, 0.65);
}

/* While a tour plays: cursor hint + dim interactive chrome so the user
   focuses on the narrative. Host projects may want to add their own
   selectors to hide more (nav bars, sidebars, etc.). */
body.nt-playing {
  cursor: progress;
}
body.nt-playing button:not(.nt-btn),
body.nt-playing a[role="button"],
body.nt-playing input, body.nt-playing select {
  pointer-events: none;
  opacity: 0.55;
}

.nt-caption {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nt-bg);
  border: 1px solid var(--nt-accent-glow);
  color: var(--nt-text);
  padding: 1rem 1.6rem;
  border-radius: 12px;
  font-size: 1.05rem;
  max-width: 70vw;
  text-align: center;
  line-height: 1.55;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  z-index: 9998;
  animation: nt-caption-in 0.4s ease-out;
}
@keyframes nt-caption-in {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to   { transform: translateX(-50%); opacity: 1; }
}

/* Intro + outro scenes get a bigger, cinematic caption treatment. */
.nt-caption.intro, .nt-caption.outro {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  padding: 1.5rem 2.2rem;
  max-width: 60vw;
  border: 1px solid var(--nt-accent);
  box-shadow: 0 30px 100px var(--nt-accent-glow),
              0 20px 60px rgba(0, 0, 0, 0.6);
}

.nt-tray {
  position: fixed;
  bottom: 12px;
  right: 20px;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  background: var(--nt-bg);
  border: 1px solid var(--nt-accent-glow);
  border-radius: 999px;
  padding: 0.25rem 0.3rem 0.25rem 0.8rem;
  backdrop-filter: blur(8px);
  z-index: 9999;
  font-size: 0.75rem;
  color: var(--nt-muted);
}
.nt-tray .nt-btn {
  background: transparent;
  border: none;
  color: var(--nt-text);
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.nt-tray .nt-btn:hover { background: var(--nt-accent-glow); }
.nt-tray .nt-progress {
  margin: 0 0.5rem 0 0.3rem;
  font-variant-numeric: tabular-nums;
  color: var(--nt-muted);
}
