/* Applied to the real control for the current tour step. No overlay or layout changes. */
:root .decode-tour-target {
  outline: 2px solid #5b8bea;
  outline-offset: 4px;
  animation: decode-tour-target-pulse 2.6s ease-in-out infinite;
}

@keyframes decode-tour-target-pulse {
  0%, 100% { outline-color: #5b8bea; }
  50% { outline-color: #acec00; }
}

/* Keyboard focus stays static and visibly stronger than the tour cue. */
:root .decode-tour-target:focus-visible {
  animation: none;
  outline: 3px solid #5b8bea;
  outline-offset: 6px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 75%);
}

@media (max-width: 600px) {
  :root .decode-tour-target { outline-offset: 2px; }
  :root .decode-tour-target:focus-visible { outline-offset: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  :root .decode-tour-target {
    animation: none;
    outline-color: #5b8bea;
  }
}

@media (forced-colors: active) {
  :root .decode-tour-target {
    animation: none;
    outline-color: Highlight;
  }
  :root .decode-tour-target:focus-visible { box-shadow: none; }
}
