#tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: transparent;
  transition: background 0.25s ease;
}

/* Multi-target steps dim the whole screen directly, since the spotlight
   cutout technique only supports one hole at a time. */
#tour-overlay.tour-overlay-dim {
  background: rgba(0, 0, 0, 0.7);
}

#tour-spotlight {
  position: fixed;
  z-index: 6001;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--accent);
  pointer-events: none;
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1),
              left 0.35s cubic-bezier(0.4,0,0.2,1),
              width 0.35s cubic-bezier(0.4,0,0.2,1),
              height 0.35s cubic-bezier(0.4,0,0.2,1),
              border-radius 0.35s ease;
}

/* One of these per element in a multi-target step. */
.tour-multi-glow {
  position: fixed;
  z-index: 6001;
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px 2px color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
}

#tour-tooltip {
  z-index: 6002;
  width: min(280px, calc(100vw - 24px));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  padding: 16px 18px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1),
              left 0.35s cubic-bezier(0.4,0,0.2,1);
}

.tour-tooltip-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tour-tooltip-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tour-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour-tooltip-progress {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.tour-tooltip-actions {
  display: flex;
  gap: 6px;
}

.tour-btn {
  border: none;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.15s, opacity 0.15s;
}

.tour-btn-skip { background: none; color: var(--text-secondary); }
.tour-btn-skip:hover { color: var(--text-primary); }

.tour-btn-back { background: var(--bg-pill); color: var(--text-primary); }
.tour-btn-back:hover { background: var(--bg-pill-hover); }

.tour-btn-next { background: var(--accent); color: #fff; }
.tour-btn-next:hover { opacity: 0.9; }

@media (max-width: 480px) {
  #tour-tooltip { padding: 14px 16px; }
}