/* ── Tour overlay (SVG-based spotlight) ───────────────────────── */
#tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: all;
}

/* ── Tooltip card ─────────────────────────────────────────────── */
#tour-tooltip {
  position: fixed;
  z-index: 9001;
  width: 290px;
  background: var(--bg-2);
  border: 1px solid var(--accent-3);
  border-radius: 0;
  padding: 18px;
  box-shadow: 0 0 0 1px var(--accent-2), var(--shadow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  pointer-events: all;
  animation: tour-tt-fade 0.2s ease;
}

@keyframes tour-tt-fade {
  from { opacity: 0; filter: blur(3px); }
  to   { opacity: 1; filter: blur(0);   }
}

/* ── Spotlight ring ───────────────────────────────────────────── */
#tour-ring {
  position: fixed;
  z-index: 9000;
  pointer-events: none;
  border: 1.5px solid var(--accent-3);
  border-radius: 0;
  box-shadow: 0 0 0 3px var(--accent-2);
  transition: all 0.28s ease;
}

/* ── Tooltip top bar ──────────────────────────────────────────── */
.tt-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  min-height: 20px;
}

.tt-counter {
  font-size: 9.5px;
  color: var(--ink-3);
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 2px 8px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.tt-skip {
  font-size: 10px;
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color 0.15s;
  margin-left: auto;
}
.tt-skip:hover { color: oklch(0.65 0.22 20); }

/* ── Tooltip body ─────────────────────────────────────────────── */
.tt-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto 14px;
}

.tt-heading {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: .02em;
}

.tt-body {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 16px;
}
.tt-body b { color: var(--ink); font-weight: 600; }
.tt-body code { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }

/* ── Tooltip footer buttons ───────────────────────────────────── */
.tt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tt-btn {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tt-back {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
}
.tt-back:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.tt-fwd {
  background: var(--accent-2);
  border: 1px solid var(--accent-3);
  color: var(--accent);
  margin-left: auto;
}
.tt-fwd:hover {
  background: var(--accent-3);
  border-color: var(--accent);
}

/* ── Help button hidden during tour ──────────────────────────── */
#helpBtn.tour-running { display: none; }

@media (max-width: 860px) {
  #tour-tooltip {
    width: min(320px, calc(100vw - 36px));
    padding: 16px;
    font-size: 12px;
  }
  .tt-heading { font-size: 14px; }
  .tt-body {
    font-size: 11.5px;
    line-height: 1.55;
  }
  .tt-btn {
    min-height: 34px;
    padding: 8px 12px;
  }
}
