/* The walking tour and "Start here" (js/walk.js; the owner's picks of mock-walktour and mock-start), over the page:
   the shade with a hole round what's lit (a white edge, a soft pulse of the horizon's violet), the card beside it
   (white, the horizon's ring on Next), the "Next stop" card between pages, the paused pill; and the "Start here"
   pulse with its note. */
/* (while it runs: Explore's first-time tips, the cookie strip and the welcome's notes wait) */
html.wt-on :is(.xp-tip, .pv-bar, .wk-note) { display: none !important; }

.wt-layer { position: fixed; inset: 0; z-index: 4200; pointer-events: none; overflow: hidden; font-family: var(--font-read); color: #150e5e; }
.wt-layer[hidden] { display: none; }
.wt-block { position: absolute; pointer-events: auto; }
.wt-hole { position: absolute; border-radius: 18px; pointer-events: auto; box-shadow: 0 0 0 3px #fff, 0 0 0 200vmax rgba(21, 14, 74, .58); }
.wt-hole.is-live { pointer-events: none; }
.wt-hole.is-moving { transition: left .4s cubic-bezier(.3, .9, .3, 1), top .4s cubic-bezier(.3, .9, .3, 1), width .4s cubic-bezier(.3, .9, .3, 1), height .4s cubic-bezier(.3, .9, .3, 1); }
.wt-hole::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; animation: wt-pulse 2.2s ease-out infinite; }
.wt-hole.is-none { box-shadow: 0 0 0 200vmax rgba(21, 14, 74, .58); }
.wt-hole.is-none::after { display: none; }
@keyframes wt-pulse { 0% { box-shadow: 0 0 0 0 rgba(195, 156, 250, .85); } 70%, 100% { box-shadow: 0 0 0 18px rgba(195, 156, 250, 0); } }

.wt-card { position: absolute; left: 0; top: 0; z-index: 2; box-sizing: border-box; width: 344px; padding: 16px 18px 14px; border-radius: 22px; background: #fff; pointer-events: auto;
  box-shadow: 0 18px 44px rgba(21, 14, 74, .3), 0 2px 6px rgba(21, 14, 74, .12); transition: left .4s cubic-bezier(.3, .9, .3, 1), top .4s cubic-bezier(.3, .9, .3, 1); }
.wt-card[hidden] { display: none; }
.wt-card.is-center { width: 380px; padding: 22px 24px 18px; text-align: center; }
.wt-card.is-in { animation: wt-in .35s cubic-bezier(.3, 1.3, .5, 1); }
.wt-card.is-nudge { animation: wt-nudge .4s ease; }
@keyframes wt-in { from { opacity: 0; scale: .94; } }
@keyframes wt-nudge { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.wt-card h2 { margin: 0 0 4px; padding-right: 22px; color: #150e5e; font-size: 20px; line-height: 1.2; font-weight: 800; }
.wt-card.is-center h2 { padding: 0; font-size: 24px; }
.wt-text { margin: 0; color: #5d5a85; font-size: 15.5px; line-height: 1.42; }
.wt-do { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: 14px; background: #fff4d6; color: #5c3f00; font-weight: 800; font-size: 15px; }
.wt-do[hidden] { display: none; }
.wt-hand { display: inline-block; animation: wt-tap 1.4s ease-in-out infinite; }
@keyframes wt-tap { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.wt-card.is-done .wt-do { background: #e3f5ec; color: #0a7d4f; }
.wt-card.is-done .wt-hand { animation: none; font-size: 0; }
.wt-card.is-done .wt-hand::before { content: "✓"; font-size: 16px; }
.wt-acts { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.wt-card.is-center .wt-acts { justify-content: center; flex-direction: row-reverse; }
.wt-acts .wt-go { margin-left: auto; }
.wt-card.is-center .wt-acts .wt-go { margin-left: 0; }
.wt-go { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; box-sizing: border-box; border: 2.5px solid transparent; border-radius: 999px;
  background: linear-gradient(#fff, #fff) padding-box, var(--hz-ring) border-box; color: #150e5e; font: 800 15px/1 var(--font-read); white-space: nowrap; cursor: pointer;
  box-shadow: 0 4px 12px rgba(38, 27, 143, .16); }
.wt-go:hover { background: linear-gradient(#f1eefe, #f1eefe) padding-box, var(--hz-ring) border-box; }
.wt-go.is-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.wt-go[hidden], .wt-link[hidden], .wt-x[hidden] { display: none; }
.wt-link { height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: #f1eefe; color: #150e5e; font: 700 14px/1 var(--font-read); cursor: pointer; }
.wt-link:hover { background: #e7e2fd; }
.wt-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: #5d5a85; font: 400 22px/1 var(--font-read); cursor: pointer; }
.wt-x:hover { background: #f1eefe; color: #150e5e; }
.wt-card.is-center .wt-x { top: 12px; right: 12px; }
:is(.wt-go, .wt-link, .wt-x):focus-visible { outline: 3px solid #967dfc; outline-offset: 2px; }

/* the stops, along the top of the card: done ✓, here in the horizon's ring, still to come faint */
.wt-stops { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 0 26px 0 0; list-style: none; }
.wt-card.is-center .wt-stops { justify-content: center; padding: 0; }
.wt-stops li { display: inline-flex; align-items: center; gap: 4px; color: #a19fc0; font-size: 12px; font-weight: 800; }
.wt-stops li + li::before { content: ""; width: 12px; height: 2px; margin-right: 2px; border-radius: 2px; background: #dcd8f3; }
.wt-stops li.is-done + li::before { background: #b9a8f8; }
.wt-stops i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1eefe; font-style: normal; font-size: 11px; }
.wt-stops li span { display: none; }
.wt-stops li.is-here { color: #150e5e; }
.wt-stops li.is-here span { display: inline; }
.wt-stops li.is-here i { background: linear-gradient(#fff, #fff) padding-box, var(--hz-ring) border-box; border: 2px solid transparent; }
.wt-stops li.is-done i { background: #e3f5ec; color: #0a7d4f; font-weight: 900; }

/* between pages: "Next stop", a dot travelling along the road to it */
.wt-travel { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: auto; background: rgba(246, 245, 252, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: wt-fade .25s ease; }
.wt-travel[hidden] { display: none; }
@keyframes wt-fade { from { opacity: 0; } }
.wt-travel-card { width: min(300px, calc(100% - 48px)); padding: 18px 22px 22px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 18px 44px rgba(21, 14, 74, .22); }
.wt-travel-k { margin: 0; color: #5d5a85; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wt-travel-to { margin: 2px 0 14px; color: #150e5e; font-size: 26px; font-weight: 800; }
.wt-road { position: relative; height: 6px; margin: 0 8px; border-radius: 6px; background: #ece9fb; }
.wt-road::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--to, 0%); border-radius: 6px; background: var(--hz-ring); opacity: .55; }
.wt-road-dot { position: absolute; top: 50%; left: var(--to, 0%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #8a2be2, 0 3px 8px rgba(38, 27, 143, .3); }
.wt-road.is-going .wt-road-dot { animation: wt-go .7s cubic-bezier(.4, 0, .2, 1) both; }
.wt-road.is-going::before { animation: wt-fill .7s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes wt-go { from { left: var(--from, 0%); } to { left: var(--to, 0%); } }
@keyframes wt-fill { from { width: var(--from, 0%); } to { width: var(--to, 0%); } }

/* paused (you left the tour's page) or closed: a pill along the bottom */
.wt-pill { position: fixed; left: 50%; bottom: 96px; z-index: 4200; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: #fff; color: #150e5e; box-shadow: 0 12px 32px rgba(21, 14, 74, .28); font: 800 14.5px var(--font-read); white-space: nowrap; animation: wt-in .3s ease; }
.wt-pill[hidden] { display: none; }
.wt-x.is-pill { position: static; width: 30px; height: 30px; }

/* phones: the card fills the width, at the top or bottom, away from what's lit */
.wt-card.is-phone { width: calc(100% - 28px); border-radius: 24px; }
.wt-card.is-phone.is-center { width: calc(100% - 40px); }
.wt-card.is-phone .wt-go { height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .wt-hole::after, .wt-hand, .wt-card.is-in, .wt-card.is-nudge, .wt-road .wt-road-dot, .wt-road::before { animation: none !important; }
  .wt-hole.is-moving, .wt-card { transition: none; }
}

/* Start here: the spot pulses once, with a short note beside it */
.wk-pulse { position: relative; z-index: 8; animation: wk-pulse 1.3s ease-out 2; }
@keyframes wk-pulse { 0% { box-shadow: 0 0 0 0 rgba(150, 125, 252, .7); } 70% { box-shadow: 0 0 0 16px rgba(150, 125, 252, 0); } 100% { box-shadow: 0 0 0 0 rgba(150, 125, 252, 0); } }
.wk-note { position: absolute; z-index: 4500; max-width: min(320px, calc(100vw - 24px)); padding: 10px 14px; box-sizing: border-box; border-radius: 14px;
  background: #21167c; color: #fff; font: 700 14.5px/1.35 var(--font-read); box-shadow: 0 10px 26px rgba(20, 14, 70, .3); pointer-events: none;
  animation: wt-fade .35s ease-out; transition: opacity .35s; }
.wk-note.is-gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .wk-pulse, .wk-note { animation: none; } .wk-pulse { outline: 3px solid #967dfc; outline-offset: 4px; } }
