/* Guided walkthrough: a dimmed page, one lit element, one explanation card. */
.tour-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(18, 33, 27, .58);
  animation: tour-fade .18s ease-out;
}
@keyframes tour-fade { from { opacity: 0 } to { opacity: 1 } }

/* The spotlight is a transparent box with a huge shadow, so the element under
   it stays fully readable while everything else is dimmed. */
.tour-spot {
  position: fixed; z-index: 9001; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(18, 33, 27, .58), 0 0 0 2px var(--accent);
  transition: top .22s ease, left .22s ease, width .22s ease, height .22s ease;
  pointer-events: none;
}

.tour-card {
  position: fixed; z-index: 9002; width: min(400px, calc(100vw - 32px));
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px 16px;
  box-shadow: 0 14px 44px rgba(18, 33, 27, .30);
  transition: top .22s ease, left .22s ease;
}
.tour-card.centered {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px));
}
.tour-card .tour-step-count { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.tour-card h4 { margin: 4px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tour-card p { margin: 0 0 6px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.tour-card p b { color: var(--ink); font-weight: 600; }
.tour-card .tour-note {
  margin-top: 10px; padding: 9px 11px; border-radius: 6px;
  background: var(--paper); border-left: 3px solid var(--accent); color: var(--ink-2); font-size: 12.5px;
}
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-actions .spacer { margin-left: auto; }
.tour-actions button { font-size: 13px; }
.tour-actions .tour-skip { background: none; border-color: transparent; color: var(--muted); padding: 7px 4px; font-weight: 500; }
.tour-actions .tour-skip:hover { background: none; color: var(--ink); text-decoration: underline; }
.tour-actions .tour-back { background: var(--sheet); color: var(--ink); border-color: var(--rule-strong); }
.tour-actions .tour-back:hover { background: var(--paper); }

.tour-progress { display: flex; gap: 4px; margin-top: 14px; }
.tour-progress i { height: 3px; flex: 1; border-radius: 2px; background: var(--rule); }
.tour-progress i.done { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .tour-backdrop, .tour-spot, .tour-card { animation: none; transition: none; }
}
