

.tour {
  --tour-dim: color-mix(in oklab, var(--plane) 74%, transparent);
  position: fixed; inset: 0; z-index: 950;
}
.tour-veil { position: fixed; inset: 0; background: var(--tour-dim); }
.tour-veil[hidden], .tour-hole[hidden] { display: none; }
.tour-hole {
  position: fixed; pointer-events: none;
  border-radius: var(--radius-sm, 10px);
  box-shadow:
    0 0 0 2px color-mix(in oklab, var(--brand) 60%, transparent),
    0 0 26px 6px color-mix(in oklab, var(--brand) 22%, transparent),
    0 0 0 200vmax var(--tour-dim);
}
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="still"]) .tour-hole {
    transition: left .24s var(--ease, ease), top .24s var(--ease, ease),
                width .24s var(--ease, ease), height .24s var(--ease, ease);
  }
}


.tour .card.tour-card {
  position: fixed; z-index: 2; margin: 0;
  width: min(380px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 16px 20px 14px;
  box-shadow: var(--shadow-lift);
  transform: none; animation: none;
}
.tour .card.tour-card.tour-dock-bottom,
.tour .card.tour-card.tour-dock-top { left: 12px; right: 12px; width: auto; }
.tour .card.tour-card.tour-dock-bottom { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.tour .card.tour-card.tour-dock-top { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; }
.tour-card:focus { outline: none; }

.tour-top { display: flex; align-items: center; gap: 10px; }
.tour-guide { flex: none; display: block; height: auto; }
.tour-count { margin: 0; font-family: var(--font-mono); }
.tour-dots { margin-left: auto; display: inline-flex; gap: 5px; }
.tour-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in oklab, var(--text-muted) 40%, transparent);
}
.tour-dots i.on { background: var(--brand); }

.tour-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.6rem; line-height: 1.12; letter-spacing: -.01em;
  margin: .55rem 0 .4rem; color: var(--text-primary);
}
.tour-body p { margin: 0 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--text-secondary); }
.tour-body p:last-child { margin-bottom: 0; }
.tour-listen { margin-top: .6rem; }
.tour-listen[hidden] { display: none; }

.tour-actions {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; margin-top: .9rem;
}
.tour-nav { display: inline-flex; gap: .5rem; }
.tour-card .btn.tiny.tour-skip {
  background: transparent; border-color: transparent; color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--text-muted) 45%, transparent);
}
.tour-card .btn.tiny.tour-skip:hover { color: var(--text-primary); }
.tour-card .btn[disabled] { opacity: .45; cursor: default; }

.tour-card .btn:hover, .tour-invite .btn:hover { transform: none; }

.tour-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: 0;
}


.card.tour-invite {
  position: fixed; z-index: 190; margin: 0;
  right: 16px; top: calc(var(--il-topbar-h, 0px) + var(--il-secbar-h, 0px) + 12px);
  width: min(360px, calc(100vw - 32px)); box-sizing: border-box;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-lift);
}
.tour-invite-text { min-width: 0; }
.tour-invite .eyebrow { margin: 0; }
.tour-invite-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; line-height: 1.15; margin: .15rem 0 .3rem; color: var(--text-primary);
}
.tour-invite p.small { margin: 0; }
.tour-invite-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }

@media (max-width: 600px) {
  .card.tour-invite {
    top: auto; left: 16px; right: 16px; width: auto;
    bottom: calc(var(--il-tabbar-h, 0px) + 12px);
  }
  .tour-card .btn, .tour-invite .btn { min-height: 44px; }
  .tour-title { font-size: 1.4rem; }
}
