/* ============================================================
   First-run tutorial (tour.js)
   ============================================================ */
.tour { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }

/* Catches clicks so nothing behind the tour is pressed by accident. */
.tour__block { position: absolute; inset: 0; pointer-events: auto; background: transparent; transition: background 0.3s; }
.tour.is-centered .tour__block { background: rgba(3, 6, 12, 0.62); }

/* The highlight: a clear window over the control, the rest of the page dimmed. */
.tour__spot {
  position: absolute; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(3, 6, 12, 0.62), 0 0 0 2px var(--accent), 0 0 24px 4px rgba(108, 173, 223, 0.45);
  transition: left 0.35s ease, top 0.35s ease, width 0.35s ease, height 0.35s ease, opacity 0.25s;
  animation: tour-pulse 2.2s ease-in-out infinite;
}
.tour.is-centered .tour__spot { opacity: 0; }
@keyframes tour-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(3, 6, 12, 0.62), 0 0 0 2px var(--accent), 0 0 18px 2px rgba(108, 173, 223, 0.35); }
  50%      { box-shadow: 0 0 0 9999px rgba(3, 6, 12, 0.62), 0 0 0 2px var(--accent), 0 0 30px 8px rgba(108, 173, 223, 0.55); }
}

.tour__card {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  width: min(360px, calc(100vw - 24px)); padding: 16px 18px 14px; border-radius: 16px;
  background: var(--glass-strong); border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease;
}
.tour__card.is-in { animation: tour-in 0.3s ease; }
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }

.tour__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tour__count { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tour__skip {
  padding: 4px 8px; margin-right: -8px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500;
}
.tour__skip:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.tour__title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.tour__body { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.tour__body p { margin: 0 0 8px; }
.tour__body strong { color: var(--text); font-weight: 600; }
.tour__hint { font-size: 12px; color: var(--text-2); opacity: 0.9; }
.tour__keys { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; align-items: center; margin: 2px 0 10px; }
.tour__keys > kbd { justify-self: start; }
.tour__keys > span { font-size: 12.5px; }

.tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.tour__dots { display: flex; gap: 5px; flex-wrap: wrap; }
.tour__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: background 0.2s, width 0.2s; }
.tour__dots span.is-past { background: rgba(108, 173, 223, 0.5); }
.tour__dots span.is-on { width: 16px; border-radius: 3px; background: var(--accent); }
.tour__btns { display: flex; gap: 6px; flex-shrink: 0; }
.tour__btns [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .tour__spot, .tour__card { transition: none; animation: none; }
}
