/* The Tour card and the ring around the control it points at (workspace/tour.js).
   Colors come from the active world's tokens; the page stays interactive beneath. */
.tour-ring {
  position: fixed; z-index: 160; pointer-events: none;
  border: 2px solid var(--pen); border-radius: 10px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--pen) 22%, transparent), 0 0 0 100vmax rgb(12 18 28 / .28);
  transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}
.tour-card {
  position: fixed; z-index: 161; width: min(360px, calc(100vw - 32px)); padding: 16px 18px 14px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--n84); border-radius: 12px;
  box-shadow: 0 18px 44px rgb(12 18 28 / .24);
}
.tour-card[data-placement='center'] { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); box-shadow: 0 0 0 100vmax rgb(12 18 28 / .28), 0 18px 44px rgb(12 18 28 / .24); }
.tour-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tour-card-count { color: var(--pen); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tour-card-close { width: 32px; height: 32px; margin: -6px -8px 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.tour-card-close:hover { background: var(--n96); color: var(--ink); }
.tour-card h2 { margin: 0 0 8px; color: var(--ink); font-size: 18px; line-height: 1.3; }
.tour-card h2:focus { outline: none; }
.tour-card p { margin: 0 0 12px; color: var(--n33, var(--ink)); font-size: 14px; line-height: 1.6; }
.tour-card b { color: var(--ink); font-weight: 650; }
.tour-card kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--n84); border-bottom-width: 2px; border-radius: 4px; background: var(--paper); font: 12px/1.6 'DM Mono', monospace; }
.tour-card-try { margin: 0 0 12px; }
.tour-card-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tour-card-quiet { margin-right: auto; padding: 8px 4px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.tour-card-quiet:hover { color: var(--ink); text-decoration: underline; }
.tour-card :is(button):focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
@media (max-width: 599px) {
  .tour-card[data-placement='anchored'] { left: 16px; right: 16px; width: auto; }
  .tour-card[data-edge='top'] { top: calc(env(safe-area-inset-top, 0px) + 12px); }
  .tour-card[data-edge='bottom'] { bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .tour-card-nav button, .tour-card-try { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }
@media print { .tour-card, .tour-ring { display: none !important; } }
