.guided-tour-overlay {
  position: fixed;
  z-index: 2000;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(4, 20, 14, 0.68);
  pointer-events: none;
}

.guided-tour-target {
  margin: 5px !important;
  z-index: 2002 !important;
  border-radius: 16px !important;
  box-shadow: 0 0 0 5px rgba(163, 230, 53, 0.96), 0 0 0 10px rgba(255, 255, 255, 0.9), 0 18px 50px rgba(0, 0, 0, 0.35) !important;
}

.guided-tour-target-positioned {
  position: relative;
}

.widget-glass-panel.guided-tour-target {
  isolation: isolate;
}

.guided-tour-card {
  position: fixed;
  z-index: 2004;
  width: min(470px, calc(100vw - 36px));
  min-height: 250px;
  overflow: hidden;
  padding: 24px 156px 22px 24px;
  border: 1px solid rgba(92, 173, 45, 0.55);
  border-radius: 16px;
  color: #173126;
  background: linear-gradient(145deg, #ffffff 0%, #f1faed 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.guided-tour-card--centered {
  width: min(520px, calc(100vw - 36px));
}

.guided-tour-copy { position: relative; z-index: 2; }

.guided-tour-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.guided-tour-card p { line-height: 1.55; }

.guided-tour-companion {
  margin: 0 32px 8px 0;
  color: #176b3a;
  font-weight: 800;
}

.guided-tour-hint {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #42a846;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.guided-tour-character {
  position: absolute;
  right: 0px;
  bottom: -18px;
  z-index: 1;
  width: 205px;
  max-height: 285px;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
}

.guided-tour-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 49, 38, 0.2);
  border-radius: 50%;
  color: #173126;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.guided-tour-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.guided-tour-video {
  position: fixed;
  inset: 0;
  z-index: 2006;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 20, 14, 0.48);
}

.guided-tour-video-window {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(92, 173, 45, 0.48);
  border-radius: 18px;
  color: #173126;
  background: linear-gradient(160deg, #ffffff 0%, #f1faed 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.guided-tour-video-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guided-tour-video-header h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.guided-tour-video-summary {
  margin: 10px 0 0;
  line-height: 1.55;
}

.guided-tour-video-player {
  display: block;
  width: 100%;
  margin-top: 16px;
  border-radius: 14px;
  background: #08110d;
}

.guided-tour-video-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .guided-tour-card {
    min-height: 230px;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    padding: 20px 116px 18px 18px;
  }
  .guided-tour-character { right: -22px; width: 155px; max-height: 220px; }
  .guided-tour-actions { align-items: stretch; }
  .guided-tour-video {
    padding: 12px;
  }
  .guided-tour-video-window {
    width: min(100%, 100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 16px;
  }
  .guided-tour-video-actions {
    align-items: stretch;
    justify-content: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guided-tour-card,
  .guided-tour-target { scroll-behavior: auto; transition: none !important; }
}
