.tour-offer,
.tour-card {
  --tour-surface: #1c2130;
  --tour-text: #f3f5fa;
  --tour-muted: #aab2c5;
  --tour-accent: #ffd34d;
  --tour-accent-text: #1c1a10;
  font-family: inherit;
  color: var(--tour-text);
  background: var(--tour-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.tour-offer {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 40px);
  padding: 14px 16px;
  animation: tour-rise 260ms ease-out;
}

.tour-offer-text {
  display: grid;
  gap: 2px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.tour-offer-text span {
  color: var(--tour-muted);
}

.tour-offer-actions,
.tour-footer {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tour-button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tour-text);
  cursor: pointer;
}

.tour-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tour-button:focus-visible,
.tour-guide-link:focus-visible {
  outline: 2px solid var(--tour-accent);
  outline-offset: 2px;
}

.tour-button-primary {
  background: var(--tour-accent);
  border-color: var(--tour-accent);
  color: var(--tour-accent-text);
}

.tour-button-primary:hover {
  background: var(--tour-accent);
  filter: brightness(1.08);
}

.tour-button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--tour-muted);
  margin-right: auto;
}

.tour-button[hidden],
.tour-guide-link[hidden] {
  display: none;
}

.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.tour-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 200vmax rgba(5, 8, 15, 0.68);
  outline: 2px solid rgba(255, 211, 77, 0.85);
  transition: left 220ms ease, top 220ms ease, width 220ms ease, height 220ms ease;
  pointer-events: none;
}

.tour-spotlight-empty {
  left: 50% !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  outline: none;
}

.tour-card {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  padding: 18px 18px 14px;
  transition: left 220ms ease, top 220ms ease;
}

.tour-progress {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tour-muted);
}

.tour-title {
  margin: 4px 0 6px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.tour-text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d9deea;
}

.tour-guide-link {
  display: inline-block;
  margin: -6px 0 14px;
  font-size: 0.9rem;
  color: var(--tour-accent);
}

.tour-card-docked {
  left: 12px !important;
  right: 12px;
  top: auto !important;
  bottom: 12px;
  width: auto;
}

.tour-card-docked-top {
  top: 12px !important;
  bottom: auto;
}

@keyframes tour-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 560px) {
  .tour-offer {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    flex-wrap: wrap;
  }

  .tour-offer-actions {
    width: 100%;
  }

  .tour-offer-actions .tour-button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-offer,
  .tour-spotlight,
  .tour-card {
    animation: none;
    transition: none;
  }
}
