/* ── Tour Overlay ── */
#tour-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
  pointer-events: none;
}

/* ── Highlight box — sits above overlay ── */
#tour-highlight {
  display: none;
  position: fixed;
  z-index: 9001;
  border-radius: 6px;
  box-shadow: 0 0 0 4px var(--glorion-gold, #C39B5A), 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

/* ── Tooltip card ── */
#tour-tooltip {
  display: none;
  position: fixed;
  z-index: 9002;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--glorion-surface, #161617);
  border: 1px solid var(--glorion-border, #2a2a2b);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: inherit;
  pointer-events: auto;
}

.tour-step-count {
  font-size: 11px;
  color: var(--glorion-text-secondary, #a0a0a0);
  margin-bottom: 4px;
}

.tour-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--glorion-text-bright, #f5f5f5);
  margin-bottom: 8px;
}

.tour-body {
  font-size: 13px;
  color: var(--glorion-text-secondary, #a0a0a0);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-nav {
  display: flex;
  gap: 8px;
}

#tour-tooltip button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--glorion-border, #2a2a2b);
  background: var(--glorion-surface-2, #1e1e1f);
  color: var(--glorion-text-primary, #e0e0e0);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

#tour-tooltip button:hover {
  background: var(--glorion-border, #2a2a2b);
}

#tour-tooltip button.primary {
  background: var(--glorion-gold, #C39B5A);
  border-color: var(--glorion-gold, #C39B5A);
  color: #fff;
  font-weight: 600;
}

#tour-tooltip button.primary:hover {
  background: var(--glorion-gold-hover, #D4AC6B);
}

#tour-skip {
  color: var(--glorion-text-secondary, #a0a0a0);
  font-size: 12px;
  border: none;
  background: none;
  padding: 4px 8px;
}

#tour-skip:hover {
  color: var(--glorion-red, #E57373);
  background: none;
}

/* ── Help / ? Button ── */
.btn-tour-help {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--glorion-border, #2a2a2b);
  background: var(--glorion-surface-2, #1e1e1f);
  color: var(--glorion-text-muted, #6b6b6b);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
  margin-left: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-tour-help:hover {
  background: var(--glorion-gold, #C39B5A);
  border-color: var(--glorion-gold, #C39B5A);
  color: #fff;
}
