/* First-run tour (static/redesign/tour.js). Loaded only with PRODUCT_TOUR_ENABLED. */

/* Stacking agreed for shared pages: #280 modal (antd, 1000) > tour (950) >
   inbox panel (900) > pinned banner (normal flow). */
.rc-tour { position: fixed; inset: 0; z-index: 950; pointer-events: none; }

/* The spotlight: a transparent box whose giant shadow dims everything else.
   Clicks on the page are blocked by the layer below, not by the shadow. */
.rc-tour::before {
  content: ""; position: fixed; inset: 0; pointer-events: auto; background: transparent;
}
.rc-tour-spot {
  position: fixed; border-radius: var(--radius-card, 8px);
  box-shadow: 0 0 0 2px var(--action), 0 0 0 9999px rgba(0, 0, 0, 0.62);
  transition: top var(--dur-base, 180ms) var(--ease-out, ease), left var(--dur-base, 180ms) var(--ease-out, ease),
    width var(--dur-base, 180ms) var(--ease-out, ease), height var(--dur-base, 180ms) var(--ease-out, ease);
  pointer-events: none;
}
.rc-tour-spot.is-empty { top: 50%; left: 50%; width: 0; height: 0; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62); }
:root[data-theme="light"] .rc-tour-spot { box-shadow: 0 0 0 2px var(--action), 0 0 0 9999px rgba(15, 18, 24, 0.48); }
:root[data-theme="light"] .rc-tour-spot.is-empty { box-shadow: 0 0 0 9999px rgba(15, 18, 24, 0.48); }

.rc-tour-card {
  position: fixed; width: min(360px, calc(100vw - 16px)); box-sizing: border-box;
  padding: var(--space-4, 16px); pointer-events: auto;
  background: var(--surface-raised, var(--surface)); color: var(--text);
  border: 1px solid var(--border-emphasis, var(--border)); border-radius: var(--radius-card, 8px);
  box-shadow: var(--shadow-pop, 0 12px 32px rgba(0, 0, 0, 0.4));
  font-family: var(--font); outline: none;
}
.rc-tour-card:focus-visible { box-shadow: var(--shadow-pop), 0 0 0 2px var(--focus-ring, var(--action)); }
.rc-tour-card.is-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.rc-tour-card.is-mobile { width: calc(100vw - 16px); }

.rc-tour-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2, 8px); }
.rc-tour-count { font-size: var(--text-xs, 12px); letter-spacing: var(--tracking-label, 0.04em); color: var(--text-muted); text-transform: uppercase; }
.rc-tour-skip { margin-inline-end: calc(-1 * var(--space-2, 8px)); }
.rc-tour-title { margin: 0 0 var(--space-2, 8px); font-family: var(--font-display, var(--font)); font-size: var(--text-lg, 18px); line-height: var(--leading-tight, 1.25); }
.rc-tour-body { margin: 0; font-size: var(--text-sm, 14px); line-height: var(--leading-normal, 1.5); color: var(--text-muted); }

.rc-tour-dots { display: flex; gap: 6px; margin: var(--space-3, 12px) 0; }
.rc-tour-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-emphasis, var(--border)); }
.rc-tour-dots span.is-on { width: 18px; border-radius: 3px; background: var(--action); }

.rc-tour-actions { display: flex; justify-content: flex-end; gap: var(--space-2, 8px); }
.rc-tour-actions [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .rc-tour-spot { transition: none; } }
@media (forced-colors: active) { .rc-tour-spot { outline: 3px solid Highlight; } }
