.tour-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 18% 18%, rgba(90, 140, 205, 0.1), transparent 65%),
    radial-gradient(900px 560px at 82% 22%, rgba(123, 170, 232, 0.08), transparent 68%),
    rgba(6, 12, 24, 0.68);
  z-index: 9998;
  animation: tourOverlayBreath 8s ease-in-out infinite;
}

.tour-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(circle at 14% 22%, rgba(171, 227, 255, 0.25) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 32%, rgba(180, 235, 255, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 76%, rgba(171, 227, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 62%, rgba(171, 227, 255, 0.18) 0 1px, transparent 2px);
  animation: tourFireflyDrift 14s linear infinite;
}

.tour-highlight {
  position: fixed;
  border: 1.5px solid rgba(159, 223, 255, 0.88);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(8, 14, 26, 0.48), 0 0 24px rgba(100, 196, 245, 0.28);
  z-index: 9999;
  pointer-events: none;
  transition: left 320ms ease, top 320ms ease, width 320ms ease, height 320ms ease, opacity 280ms ease;
  animation: tourHighlightBreath 3.8s ease-in-out infinite;
}

.tour-highlight.is-panel-highlight {
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.72), 0 0 28px rgba(56, 189, 248, 0.22);
}

.tour-target-active {
  position: relative;
  z-index: 10002;
}

.tour-card {
  position: fixed;
  width: min(440px, calc(100vw - 24px));
  background: linear-gradient(165deg, rgba(14, 26, 44, 0.9), rgba(11, 22, 38, 0.85));
  border: 1px solid rgba(173, 209, 236, 0.42);
  border-radius: 18px;
  padding: 18px 18px 16px;
  color: #e5edff;
  z-index: 10000;
  box-shadow: 0 18px 42px rgba(2, 10, 23, 0.45), inset 0 1px 0 rgba(223, 242, 255, 0.16);
  backdrop-filter: blur(9px);
  transform: translateY(6px);
  opacity: 0;
}

.interface-tour-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  top: auto;
}

.tour-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 62%;
  height: 56%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 186, 238, 0.19), rgba(111, 186, 238, 0));
  filter: blur(12px);
  animation: tourCardGlowPulse 6.8s ease-in-out infinite;
}

.tour-card h3 {
  margin: 0;
  font-size: 1.13rem;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.tour-presence {
  margin: 0.2rem 0 0.62rem;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(191, 216, 238, 0.8);
  width: fit-content;
  transition: transform 180ms ease, color 180ms ease;
}

.tour-presence[data-gesture="point"] { transform: translateX(5px); color: #bdeaff; }
.tour-presence[data-gesture="present"] { transform: translateX(2px); color: #d4f3ff; }
.tour-presence[data-gesture="think"] { transform: translateY(-2px) rotate(-1deg); color: #d8d5ff; }
.tour-presence[data-gesture="lean"] { transform: translateX(4px) rotate(1deg); }
.tour-presence[data-gesture="open"] { letter-spacing: 0.14em; color: #c7f4e5; }
.tour-presence[data-gesture="nod"] { transform: translateY(2px); }
.tour-presence[data-gesture="glance"] { transform: translateX(-2px); }
.tour-presence[data-gesture="celebrate"] { transform: translateY(-3px); color: #f7e8a8; }
.tour-presence[data-gesture="neutral"] { transform: none; color: rgba(191, 216, 238, 0.8); }

.tour-card p {
  margin: 0;
  line-height: 1.58;
  color: #ccdaed;
  font-size: 0.98rem;
  min-height: 2.9em;
}

.tour-progress {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #93a9c5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tour-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tour-actions button {
  border: 1px solid rgba(157, 215, 252, 0.45);
  background: rgba(27, 53, 85, 0.42);
  color: #edf4ff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.tour-actions button:hover,
.tour-actions button:focus-visible {
  border-color: rgba(176, 228, 255, 0.95);
  background: rgba(42, 81, 125, 0.56);
  box-shadow: 0 0 0 2px rgba(117, 186, 231, 0.18), 0 8px 22px rgba(5, 16, 32, 0.32);
  transform: translateY(-1px);
}

.tour-actions button:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  cursor: default;
}

.tour-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.tour-card.is-exiting {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes tourHighlightBreath {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(8, 14, 26, 0.48), 0 0 20px rgba(100, 196, 245, 0.24); }
  50% { box-shadow: 0 0 0 9999px rgba(8, 14, 26, 0.5), 0 0 28px rgba(122, 209, 250, 0.3); }
}

@keyframes tourCardGlowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 0.88; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes tourOverlayBreath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

@keyframes tourFireflyDrift {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(8px); }
  100% { transform: translateY(0) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tour-overlay,
  .tour-overlay::before,
  .tour-highlight,
  .tour-card,
  .tour-card::before,
  .tour-actions button {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
