/* First-run walkthrough. Same glass as the pin card and .sky-panel.
   Overlay only — the bottom chrome stack is left alone. */

.tour {
  position: fixed;
  inset: 0;
  /* Phone .cam-viewer is 4000; the card and Skip must stay on top
     so the viewer never strands the walkthrough behind it. */
  z-index: 4100;
  pointer-events: none;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
}
.tour[hidden] { display: none; }
.tour, .tour * { touch-action: none; }

.tour-hit {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}
.tour-hit.is-dim { background: rgba(11, 11, 11, 0.28); }

.tour-spot {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(252, 252, 251, 0.92),
    0 0 0 4px var(--accent),
    0 0 0 9999px rgba(11, 11, 11, 0.32);
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease,
    border-radius 0.2s ease;
}
.tour-spot.is-round { border-radius: 50%; }

.tour-card {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  width: min(360px, calc(100vw - 24px));
  padding: 10px 12px 10px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(11, 11, 11, 0.12);
}
.tour-copy {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}
.tour-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.tour-skip,
.tour-next {
  font: inherit;
  font-size: 12px;
  line-height: 1;
  min-height: 32px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 8px;
  background: none;
}
.tour-skip {
  color: var(--ink-2);
  border: 0;
}
.tour-skip:hover { color: var(--ink); }
.tour-next {
  font-weight: 650;
  color: var(--ink);
  border: 1px solid var(--glass-line);
}
.tour-next:hover { border-color: var(--accent); }
.tour-skip:focus-visible,
.tour-next:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* Search step: the box stays tappable. Notify stays under the hit layer
   plus a capture guard even though no step points at it — raising the
   HUD must not request permission. */
body.tour-search .search-hud { z-index: 3100; }

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