:root {
  --tour-bg: #f9f5ee;
  --tour-surface: #fffdf8;
  --tour-line: #d9cbb5;
  --tour-text: #1f1a15;
  --tour-muted: #5f5548;
  --tour-brand: #8c5a2b;
  --tour-shadow: 0 12px 30px rgba(43, 28, 12, 0.12);
}

.tour-main {
  padding-top: 1.2rem;
}

.vt-page-section {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 1rem;
  border: 1px solid var(--tour-line);
  border-radius: 18px;
  background: var(--tour-surface);
  box-shadow: var(--tour-shadow);
  overflow: hidden;
}

.tour-stage {
  position: relative;
  background: #101010;
  min-height: 620px;
}

.tour-canvas-host {
  position: absolute;
  inset: 0;
}

.tour-canvas-host canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tour-hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tour-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 0.22rem 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  background: rgba(16, 16, 16, 0.86);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tour-hotspot:hover,
.tour-hotspot:focus-visible {
  background: rgba(140, 90, 43, 0.95);
}

.tour-hotspot.is-hidden {
  display: none;
}

.tour-hotspot-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #e9d2aa;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.tour-hotspot-label {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 0.36rem;
}

.tour-loading {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0.52rem 0.72rem;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tour-loading.is-active {
  opacity: 1;
  transform: translateY(0);
}

.tour-loading p {
  margin: 0;
}

.tour-loading-value {
  margin-top: 0.2rem;
  font-weight: 700;
}

.tour-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.tour-fade.is-visible {
  opacity: 1;
}

.tour-compass {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(12, 12, 12, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(5px);
}

.tour-compass-ring {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.5);
}

.tour-compass-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, #efdbbc 0 45%, rgba(255, 255, 255, 0.3) 45% 100%);
  transform-origin: center 85%;
  transform: translate(-50%, -50%);
}

.tour-compass-label {
  position: absolute;
  bottom: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.tour-sidebar {
  padding: 1.08rem;
  display: grid;
  gap: 0.78rem;
  align-content: start;
  background: #fcf8f1;
}

.tour-sidebar h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--tour-text);
}

.tour-quiz-panel {
  border: 1px solid var(--tour-line);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.tour-quiz-header {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
}

.tour-quiz-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--tour-text);
}

.tour-quiz-description {
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: #fef6eb;
  border: 1px solid #eed8bb;
  color: #5a3a16;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 700;
}

.tour-quiz-progress {
  margin: 0;
  font-weight: 700;
  color: var(--tour-muted);
}

.tour-quiz-card {
  border-top: 1px dashed var(--tour-line);
  padding-top: 0.95rem;
  display: grid;
  gap: 0.9rem;
}

.tour-quiz-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.tour-quiz-question-col,
.tour-quiz-answer-col {
  border: 1px solid var(--tour-line);
  border-radius: 12px;
  background: #fffdf8;
  padding: 0.8rem;
  min-height: 120px;
}

.tour-quiz-card.is-hidden {
  display: none;
}

.tour-quiz-step {
  margin: 0;
  font-size: 0.82rem;
  color: var(--tour-muted);
  font-weight: 700;
}

.tour-quiz-question {
  margin: 0;
  color: var(--tour-text);
  line-height: 1.4;
  font-weight: 700;
}

.tour-quiz-answers {
  display: grid;
  gap: 0.4rem;
}

.tour-quiz-answer {
  border: 1px solid var(--tour-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tour-text);
  text-align: left;
  padding: 0.45rem 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.tour-quiz-answer:hover,
.tour-quiz-answer:focus-visible {
  border-color: var(--tour-brand);
  background: #fef6eb;
}

.tour-quiz-answer.is-correct {
  border-color: #1f7d32;
  background: #e8f7ed;
}

.tour-quiz-answer.is-wrong {
  border-color: #9a1b1b;
  background: #fdeaea;
}

.tour-quiz-feedback {
  margin: 0.35rem 0 0;
  min-height: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tour-muted);
}

.tour-quiz-feedback[data-tone="error"] {
  color: #9a1b1b;
}

.tour-quiz-feedback[data-tone="success"] {
  color: #1f7d32;
}

.tour-quiz-form {
  display: grid;
  gap: 0.42rem;
  border-top: 1px dashed var(--tour-line);
  padding-top: 0.9rem;
}

.tour-quiz-form.is-hidden {
  display: none;
}

.tour-quiz-form .btn {
  margin-top: 0.2rem;
}

.is-hidden {
  display: none !important;
}

.tour-scene-description {
  margin: 0;
  color: var(--tour-muted);
  line-height: 1.5;
}

.tour-label {
  display: block;
  font-weight: 700;
  color: var(--tour-text);
  margin-top: 0.35rem;
}

.tour-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--tour-line);
  padding: 0.52rem 0.65rem;
  background: #fff;
}

.tour-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.52rem;
}

.tour-controls .btn {
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  font-weight: 700;
}

.tour-controls .btn.btn-ghost {
  border: 1px solid var(--tour-brand);
  background: transparent;
  color: var(--tour-brand);
}

.tour-controls .btn:not(.btn-ghost) {
  background: var(--tour-brand);
  color: #fff;
}

.tour-help-list {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.3rem;
  color: var(--tour-muted);
  font-size: 0.88rem;
}

.tour-feedback {
  margin: 0;
  min-height: 1.15rem;
  font-weight: 700;
  color: var(--tour-muted);
}

.tour-feedback[data-tone="error"] {
  color: #9a1b1b;
}

.tour-feedback[data-tone="info"] {
  color: var(--tour-muted);
}

.tour-sidebar .eyebrow {
  margin: 0;
}

@media (min-width: 1221px) {
  .vt-page .tour-main {
    height: min(72vh, calc(100dvh - 260px));
    min-height: 470px;
    max-height: 760px;
  }

  .vt-page .tour-layout {
    height: 100%;
  }

  .vt-page .tour-stage {
    min-height: 0;
    height: 100%;
  }

  .vt-page .tour-sidebar {
    overflow: auto;
  }
}

@media (max-width: 1220px) {
  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-stage {
    min-height: min(68vh, 620px);
  }
}

@media (max-width: 768px) {
  .tour-quiz-columns {
    grid-template-columns: 1fr;
  }

  .tour-quiz-title {
    font-size: 1.15rem;
  }

  .tour-controls {
    grid-template-columns: 1fr;
  }

  .tour-hotspot-label {
    display: none;
  }

  .tour-stage {
    min-height: 56vh;
  }
}
