/* Guided tour (scripts/shared/tour.js): a dimmed page with a spotlight on one part of it and a
   card that explains it. Colours come from styles/theme.css. */
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour-shade { position: absolute; inset: 0; }
.tour[data-centred] .tour-shade { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(2px); }
.tour-spot {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62), 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tour[data-centred] .tour-spot { display: none; }
.tour-card-pop {
  position: fixed; width: 360px; padding: 18px; border-radius: 16px; outline: none;
  background: var(--surface-raised, #18181b); color: var(--text-main); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.tour[data-centred] .tour-card-pop {
  width: 420px; padding: 24px;
  background: radial-gradient(ellipse 70% 80% at 100% 0%, var(--glow, transparent), transparent 70%), var(--surface-raised, #18181b);
}
.tour-card-pop.is-in { animation: tour-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; min-height: 20px; }
.tour-step { font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); }
.tour-skip { margin-left: auto; border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 12.5px; color: var(--text-muted); cursor: pointer; border-radius: 6px; }
.tour-skip:hover { color: var(--text-main); }
.tour-card-pop h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.3; }
.tour[data-centred] .tour-card-pop h2 { font-size: 21px; letter-spacing: -0.4px; }
.tour-card-pop p { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); margin-top: 6px; }
.tour-dots { display: flex; gap: 5px; margin-top: 14px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--track, #27272a); transition: width 0.2s ease, background 0.2s ease; }
.tour-dots span.on { width: 18px; background: var(--accent); }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tour-actions .btn-primary, .tour-actions .btn-action { padding: 9px 16px; font-size: 13.5px; }
body.tour-open { overflow: hidden; }
.tour-target { scroll-margin: 84px 0 24px; }
@media (prefers-reduced-motion: reduce) {
  .tour-spot { transition: none; }
  .tour-card-pop.is-in { animation: none; }
}
