/* The walkthrough sits over the same live iframe. These rings never intercept input. */
.guide-highlights { z-index: 8; overflow: visible; pointer-events: none; }
.guide-highlight {
  z-index: 1;
  box-sizing: border-box;
  border: 3px solid #fff2a1;
  outline: 2px solid #ffda38;
  border-radius: 6px;
  background: #ffe15c0a;
  box-shadow: 0 0 0 5px #ffd63052, 0 0 22px 7px #ffda38bd, inset 0 0 15px #ffe7733b;
  animation: guide-target-pulse 1.35s ease-in-out infinite;
}
.guide-highlight::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid #ffe773;
  border-radius: inherit;
  animation: guide-target-ripple 1.35s ease-out infinite;
}
.guide-highlight-knob { border-radius: 50%; }
.guide-mouse { position: absolute; z-index: 2; width: 30px; height: 38px; pointer-events: none; }
.guide-mouse[hidden] { display: none; }
.guide-mouse-cursor { display: block; overflow: visible; filter: drop-shadow(0 2px 3px #000c); transform-origin: 3px 2px; animation: guide-mouse-click 2.2s ease-in-out infinite; }
.guide-instruction { position: absolute; z-index: 3; box-sizing: border-box; width: max-content; padding: 9px 13px; border: 1px solid #ffe15cbf; border-radius: 9px; background: #11140ff7; box-shadow: 0 3px 12px #0009; color: #fff2a1; font-size: 13px; font-weight: 500; line-height: 1.35; text-align: center; overflow-wrap: break-word; pointer-events: none; }
.guide-instruction[hidden] { display: none; }
.guide-instruction::before { content: ""; position: absolute; top: -5px; left: calc(var(--guide-arrow-x, 50%) - 4px); width: 8px; height: 8px; border-top: 1px solid #ffe15cbf; border-left: 1px solid #ffe15cbf; background: #11140f; transform: rotate(45deg); }
.guide-instruction[data-position="above"]::before { top: auto; bottom: -5px; transform: rotate(225deg); }
.guide-mouse[data-gesture="drag"] .guide-mouse-cursor { animation: guide-mouse-drag 2.6s ease-in-out infinite; }
.guide-mouse[data-gesture="scroll"] .guide-mouse-cursor { animation: guide-mouse-scroll 1.6s ease-in-out infinite; }
.guide-mouse[data-gesture="scroll"]::after { content: "↕"; position: absolute; top: -10px; left: 27px; color: #ffe15c; font-size: 24px; text-shadow: 0 1px 4px #000; }
.demo-guide .guide-actions button:disabled { opacity: .58; cursor: default; }
.demo-guide[data-guide-state="waiting"] .guide-tip { color: #eee2a5; }
@media (max-width: 700px) and (min-height: 561px), (max-height: 560px) {
  #demo-guide .guide-content { position: relative; }
  #demo-guide .guide-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 24px;
    padding-right: 48px;
    background: var(--bg);
  }
  #demo-guide .guide-heading > button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; }
  #demo-guide .guide-message h3 { margin: 0 0 5px; padding-right: 36px; font-size: 20px; line-height: 1.18; }
  #demo-guide .guide-message p { font-size: 12px; line-height: 1.4; }
  #demo-guide[data-guide-state="waiting"] .guide-tip { display: none; }
  #demo-guide[data-guide-state="complete"] #guide-description { display: none; }
  #demo-guide[data-guide-state="complete"] .guide-tip { margin-top: 0; font-size: 11.5px; line-height: 1.4; }
  #demo-guide .guide-actions { margin-top: 6px; }
  #demo-guide .guide-actions .button { min-height: 44px; padding: 8px 12px; font-size: 12px; }
}
@keyframes guide-target-pulse {
  0%, 100% { border-color: #fff2a1; box-shadow: 0 0 0 5px #ffd63052, 0 0 18px 5px #ffda389c, inset 0 0 12px #ffe77329; }
  50% { border-color: #fff7cb; box-shadow: 0 0 0 7px #ffd6308f, 0 0 32px 12px #ffda38e0, inset 0 0 20px #ffe77352; }
}
@keyframes guide-target-ripple {
  0% { opacity: .95; transform: scale(.96); }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes guide-mouse-click {
  0%, 15%, 100% { transform: translate(5px, 5px); }
  30%, 55% { transform: translate(0, 0); }
  38%, 45% { transform: translate(0, 0) scale(.88); }
}
@keyframes guide-mouse-drag {
  0%, 100% { transform: translateY(12px); }
  50% { transform: translateY(-12px); }
}
@keyframes guide-mouse-scroll {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-highlight { animation: none; }
  .guide-highlight::after { animation: none; opacity: .7; transform: none; }
  .guide-mouse-cursor { animation: none !important; transform: none; }
}
