/* =============================================================================
   Refera — walkthrough overlay styles (js/tour.js). Owned by the tour.
   LAYOUT ONLY: buttons, hints and type come from ../styles.css. The spotlight
   is one element whose box-shadow dims the rest of the page (no second scrim),
   so the highlighted target keeps its live, full-colour rendering.
   Layers: drawer 90/91 · modal 100 · toast 120 → tour sits above all (240+).
   ========================================================================== */

.tour-spot {
  position: fixed;
  z-index: 240;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(17, 24, 39, .45);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  transition: left 140ms ease-out, top 140ms ease-out,
              width 140ms ease-out, height 140ms ease-out;
}
.tour-spot-none {
  outline: none;
  box-shadow: none;
  border-radius: 0;
  background: rgba(17, 24, 39, .45);
}

/* catches every click outside the card: advance (and block the page) */
.tour-blocker { position: fixed; inset: 0; z-index: 241; cursor: default; }

.tour-card {
  position: fixed;
  z-index: 242;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--overlay-shadow);
  padding: 16px 20px 18px;
  animation: fade-in 140ms ease-out;
}
/* end card: centred, the payoff frame */
.tour-card.tour-end {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tour-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
/* the step counter speaks the mono metadata voice */
.tour-card-top > .hint {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3);
}
.tour-skip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--ink2);
}

.tour-title { margin-bottom: 6px; }
.tour-caption { color: var(--ink); }
.tour-payoff { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.tour-card .hint { margin-top: 8px; }

.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* the quiet launch line on Today */
.tour-launch { font-size: 13px; margin-top: 4px; }

/* ------------------------------------------------------------------- 390px */
@media (max-width: 719px) {
  .tour-card { bottom: 12px; padding: 12px 14px 14px; }
  .tour-actions .btn { min-height: 44px; }
  .tour-actions { flex-wrap: wrap; }
}
