/* Blockhop — Map tour: spotlight, badge, card */
#tour { position: fixed; inset: 0; z-index: 120; font-family: var(--font); }
#tour[hidden] { display: none; }

/* the spotlight: one hole whose shadow dims everything else — it glides between targets */
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(8, 6, 12, .74); cursor: pointer;
  transition: left .42s cubic-bezier(.2, .8, .2, 1), top .42s cubic-bezier(.2, .8, .2, 1),
    width .42s cubic-bezier(.2, .8, .2, 1), height .42s cubic-bezier(.2, .8, .2, 1); }
.tour-hole::after { content: ''; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid var(--purple);
  animation: tour-pulse 1.6s ease-out infinite; }
.tour-hole.none::after { display: none; }
@keyframes tour-pulse { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55); } 100% { box-shadow: 0 0 0 16px rgba(139, 92, 246, 0); } }

/* the "tap here" badge rides the hole's shoulder */
.tour-tap { position: absolute; top: -36px; right: -4px; pointer-events: none; background: var(--orange); color: #1a1208; font-weight: 800; font-size: 12px;
  letter-spacing: .02em; padding: 6px 11px; border-radius: 99px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  animation: tour-bob 1.2s ease-in-out infinite; }
.tour-tap.below { top: auto; bottom: -36px; }
.tour-tap[hidden] { display: none; }
@keyframes tour-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* the card */
.tour-card { position: fixed; width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid rgba(139, 92, 246, .5);
  border-radius: 20px; padding: 18px 20px 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .3);
  transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1); }
.tour-skip { position: absolute; top: 10px; right: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.tour-skip:hover { color: var(--text); background: var(--card-hi); }
.tour-skip[hidden] { display: none; }
.tour-eyebrow { font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--orange); margin-bottom: 6px; }
.tour-title { font-size: 21px; font-weight: 800; line-height: 1.15; margin: 0 0 8px; padding-right: 96px; letter-spacing: -.01em; }
.tour-text { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 14px; }
.tour-text b { color: var(--text); font-weight: 700; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .25s, background .25s; }
.tour-dots i.done { background: rgba(139, 92, 246, .5); }
.tour-dots i.on { background: var(--purple); width: 18px; }
.tour-btns { display: flex; gap: 6px; }
.tour-back { color: var(--muted); font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 12px; }
.tour-back:hover { background: var(--card-hi); color: var(--text); }
.tour-back[hidden] { display: none; }
.tour-next { background: var(--purple); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 12px; }
.tour-next:hover { background: var(--purple-deep); }
.tour-next:focus-visible, .tour-back:focus-visible, .tour-skip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (max-width: 560px) {
  .tour-card { padding: 16px 16px 14px; }
  .tour-title { font-size: 19px; padding-right: 92px; }
  .tour-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-hole, .tour-card, .tour-dots i { transition: none; }
  .tour-hole::after, .tour-tap { animation: none; }
}

/* the swipe demo hand */
.tour-swipe { height: 34px; margin: 6px 0 2px; position: relative; overflow: hidden; }
.tour-swipe span { position: absolute; left: 50%; top: 0; font-size: 22px; animation: tour-swipe-x 1.7s ease-in-out infinite; }
.tour-swipe::before { content: ''; position: absolute; left: 50%; top: 14px; width: 72px; height: 3px; margin-left: -36px;
  border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .6), transparent); }
@keyframes tour-swipe-x {
  0% { transform: translateX(-46px); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateX(26px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .tour-swipe span { animation: none; left: 40%; opacity: 1; } }

/* a free step lets you use what it spotlights: swipe, scroll, the lot */
#tour.tour-free { pointer-events: none; }
#tour.tour-free .tour-card, #tour.tour-free .tour-card * { pointer-events: auto; }
