
.tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.62);
  z-index: 950;
  animation: tourFade 0.25s ease;
}

.tour-spotlight {
  z-index: 951 !important;
  border-radius: 14px;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.85),
    0 0 0 9px var(--green, #7ebb40),
    0 18px 40px rgba(13, 27, 42, 0.4);
  animation: tourPulse 1.8s ease-in-out infinite;
}

.tour-replay-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 940;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green, #7ebb40);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tour-replay-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tour-replay-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.32);
}

.tour-bubble {
  position: fixed;
  z-index: 1100;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.38);
  font-family: "Nunito", sans-serif;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  top: -9999px;
  left: -9999px;
}

.tour-bubble.tour-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tour-bubble--center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.97);
  width: 380px;
}

.tour-bubble--center.tour-visible {
  transform: translate(-50%, -50%) scale(1);
}

.tour-bubble-top {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--green, #7ebb40),
    var(--blue, #1aaeee),
    var(--red, #e8321f)
  );
}

.tour-bubble-body {
  display: flex;
  gap: 12px;
  padding: 18px 20px 6px;
  align-items: flex-start;
}

.tour-bubble--center .tour-bubble-body {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.tour-mascot {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(13, 27, 42, 0.2));
}

.tour-bubble--center .tour-mascot {
  width: 104px;
  height: 104px;
}

.tour-content h4 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark, #0d1b2a);
}

.tour-highlight {
  color: var(--green, #7ebb40);
}

.tour-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #4a5a68;
}

.tour-step-count {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green, #7ebb40);
  text-transform: uppercase;
}

.tour-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px 18px;
}

.tour-skip {
  background: none;
  border: none;
  font-size: 0.88rem;
  color: #9aa7b2;
  cursor: pointer;
  font-weight: 600;
  padding: 6px 2px;
}

.tour-skip:hover {
  color: #6b7a86;
  text-decoration: underline;
}

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

.tour-prev,
.tour-next {
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.tour-prev {
  background: #f1f4f6;
  color: var(--dark, #0d1b2a);
}

.tour-prev:hover {
  background: #e4e9ec;
}

.tour-next {
  background: var(--green, #7ebb40);
  color: #fff;
  box-shadow: 0 6px 16px rgba(126, 187, 64, 0.4);
}

.tour-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(126, 187, 64, 0.5);
}

@keyframes tourFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tourPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.85),
      0 0 0 9px var(--green, #7ebb40),
      0 18px 40px rgba(13, 27, 42, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.85),
      0 0 0 13px var(--green, #7ebb40),
      0 18px 40px rgba(13, 27, 42, 0.4);
  }
}

@media (max-width: 480px) {
  .tour-bubble {
    width: calc(100vw - 24px);
  }
  .tour-replay-btn {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }
}
