/* tour.css — first-visit walkthrough: spotlight cut-out + brutalist tooltip card.
   Colours come from the brutalist tokens (--bg/--fg/--line/--accent); this file
   never restyles existing components. */

.tour {
  position: fixed;
  inset: 0;
  z-index: 9000;
}

/* The spotlight is a transparent box whose huge box-shadow dims everything else,
   so the highlighted element stays fully interactive-looking and undistorted. */
.tour-spot {
  position: fixed;
  box-sizing: border-box;
  border: 3px solid var(--accent, #ff2f2f);
  box-shadow: 0 0 0 9999px rgba(17, 17, 17, 0.62);
  pointer-events: none;
  transition: top 0.25s, left 0.25s, width 0.25s, height 0.25s;
}

.tour-card {
  position: fixed;
  box-sizing: border-box;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--bg, #fff);
  color: var(--fg, #111);
  border: 3px solid var(--line, #111);
  box-shadow: 6px 6px 0 var(--line, #111);
  padding: 12px 14px 14px;
  font-family: 'Space Mono', ui-monospace, monospace;
  transition: top 0.25s, left 0.25s;
}

.tour-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.tour-count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent, #ff2f2f);
}
.tour-x {
  background: transparent;
  border: 0;
  color: var(--fg, #111);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.tour-x:hover { color: var(--accent, #ff2f2f); }

.tour-title {
  margin: 0 0 6px;
  font-family: 'Bebas Neue', 'Space Mono', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1px;
  line-height: 1.05;
}
.tour-body {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.55;
  text-transform: none; /* tool pages uppercase their prose; the walkthrough should read like a sentence */
}
.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.tour-actions .btn { font-size: 0.75rem; padding: 6px 12px; }
.tour-actions .btn:disabled { opacity: 0.4; cursor: default; }

/* Footer replay control — hidden until tour.js confirms this page has steps. */
.tour-replay {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.tour-replay:hover { color: var(--accent, #ff2f2f); }

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