/* ============================================================
   Onboarding spotlight tour (v0.4.49): a dark mask with a cutout
   over each target, a glowing violet ring, and an arrow tooltip
   card. Sits above every other overlay (inventory is z 1100).
   ============================================================ */

.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: transparent;       /* the dark mask is painted by the spotlight box-shadow */
  cursor: default;
}

/* The cutout. A huge spread box-shadow paints the screen dark everywhere
   except this rect, and the same layer carries the ring + glow. */
.tour-spotlight {
  position: fixed;
  z-index: 2001;
  border-radius: 10px;
  pointer-events: none;          /* never blocks clicks; the backdrop does that */
  box-shadow:
    0 0 0 9999px rgba(8, 6, 18, 0.82),
    0 0 0 2px rgba(168, 85, 247, 0.9),
    0 0 22px 6px rgba(168, 85, 247, 0.55);
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.tour-tooltip {
  position: fixed;
  z-index: 2002;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, #1b1430 0%, #120e22 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  color: #e8e4f5;
  padding: 16px 18px 14px;
  font-family: var(--chronos-font-sans);
  animation: tour-pop 0.18s ease-out;
}

@keyframes tour-pop {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Diamond arrow. The component sets its horizontal position via inline left;
   the placement class decides which edge it hugs and which way it points. */
.tour-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #1b1430;
  border: 1px solid rgba(168, 85, 247, 0.35);
  transform: rotate(45deg);
}
.tour-place-bottom .tour-arrow {   /* tooltip below target: arrow on top edge, points up */
  top: -7px;
  border-right: none;
  border-bottom: none;
}
.tour-place-top .tour-arrow {      /* tooltip above target: arrow on bottom edge, points down */
  bottom: -7px;
  border-left: none;
  border-top: none;
}

.tour-step-count {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a98fe0;
  margin-bottom: 6px;
}
.tour-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.tour-body {
  font-size: 13px;
  line-height: 1.5;
  color: #c8bfe0;
  margin-bottom: 14px;
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-spacer { flex: 1; }

.tour-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, background 0.15s, color 0.15s;
}
.tour-btn:hover { transform: translateY(-1px); }
.tour-next { background: linear-gradient(135deg, #7c3aed, #4c1d95); color: #ede9fe; }
.tour-back {
  background: rgba(255, 255, 255, 0.08);
  color: #c8bfe0;
  border-color: rgba(255, 255, 255, 0.12);
}
.tour-skip {
  background: transparent;
  color: #8c84a8;
  padding-left: 0;
}
.tour-skip:hover { color: #c8bfe0; }

@media (prefers-reduced-motion: reduce) {
  .tour-spotlight { transition: none; }
  .tour-tooltip { animation: none; }
  .tour-btn:hover { transform: none; }
}
