/* Microinteractions only: no geometry/scroll changes on the story scenes. */
:where(.experience, .experience-paths article, .bloom-grid img, .plan-choices label, .plan-result) {
  --park-card-rest: 0 1px 3px #183b2720;
  --park-card-glow: 0 2px 5px #183b2726, 0 11px 23px -8px #1b402c60;
  --park-card-focus: 0 0 0 2px #f7eed5, 0 0 0 4px #44684c, var(--park-card-glow);
  box-shadow: var(--park-card-rest);
  transition: box-shadow .19s ease-out;
}
.plan-result {
  --park-card-glow: 0 0 0 1px #749282, 0 12px 26px -8px #183a2faf;
}
:where(.experience, .experience-paths article, .plan-result, .plan-choices label):focus-within,
.bloom-grid :where(a, button):focus-visible img {
  box-shadow: var(--park-card-focus);
}

/* Keep real anchors, buttons and label/radio behavior. The gallery stays non-clickable. */
:where(.bar, .approach-actions, .pan-top-actions, .pan-controls, .trail-tools, .discover, .chapters, .chapter-dialog, #plan, #visit)
  :is(a[href], button:not(:disabled), input:not(:disabled)):focus-visible {
  outline: 2px solid #f9eac6;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #315741;
}
:where(.approach-actions, .pan-top-actions, .pan-controls, .trail-tools, .discover, #plan, #visit)
  :is(button:not(:disabled):not([aria-disabled="true"]), a.cta, a.begin-plan, a.plan-primary) {
  transition: box-shadow .17s ease-out, border-color .17s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  :where(.experience, .experience-paths article, .bloom-grid img, .plan-choices label, .plan-result):hover:not(:focus-within) {
    box-shadow: var(--park-card-glow);
  }
  :where(.discover, .chapters, #plan, #visit) a[href]:not(.cta):not(.plan-primary):hover {
    text-decoration-line: underline;
    text-decoration-thickness: .12em;
    text-underline-offset: .23em;
  }
  :where(.bar, .approach-actions, .pan-top-actions, .pan-controls, .trail-tools, .discover, .chapters, #plan, #visit)
    :is(button:not(:disabled):not([aria-disabled="true"]), a.cta, a.begin-plan, a.plan-primary):hover:not(:focus-visible) {
    box-shadow: 0 0 0 1px #8ca782, 0 5px 13px -4px #142f247a;
  }
}
:where(.bar, .approach-actions, .pan-top-actions, .pan-controls, .trail-tools, .discover, .chapters, #plan, #visit)
  :is(button:not(:disabled):not([aria-disabled="true"]), a.cta, a.begin-plan, a.plan-primary):active:not(:focus-visible) {
  box-shadow: 0 0 0 1px #738e76, 0 1px 3px #142f245a;
}

.park-interaction-trail {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}
.park-interaction-trail[hidden],
body:has(dialog[open], [role="dialog"][aria-modal="true"]:not([hidden]):not([aria-hidden="true"]), [role="alertdialog"][aria-modal="true"]:not([hidden]):not([aria-hidden="true"])) .park-interaction-trail,
[data-park-interaction-still] .park-interaction-trail { display: none !important; }
.park-butterfly {
  display: block;
  position: absolute;
  width: var(--park-size, 17px);
  opacity: 0;
  pointer-events: none;
  animation: park-butterfly-travel var(--park-time, 780ms) ease-out both;
}
.park-butterfly svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 1px 1.2px #17291a60);
}
.park-butterfly-wing {
  transform-origin: 16px 14px;
  animation: park-butterfly-flutter 224ms ease-in-out infinite alternate;
}
.park-butterfly-wing--right { animation-delay: -42ms; }
@keyframes park-butterfly-travel {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.74) rotate(-8deg); }
  18% { opacity: .8; }
  58% { opacity: .58; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--park-drift)), calc(-50% + var(--park-lift))) scale(.78) rotate(var(--park-turn)); }
}
@keyframes park-butterfly-flutter {
  from { transform: scaleX(.54); }
  to { transform: scaleX(1); }
}
[data-park-interaction-still] :where(.experience, .experience-paths article, .bloom-grid img, .plan-choices label, .plan-result),
[data-park-interaction-still] :where(.approach-actions, .pan-top-actions, .pan-controls, .trail-tools, .discover, #plan, #visit)
  :is(button:not(:disabled):not([aria-disabled="true"]), a.cta, a.begin-plan, a.plan-primary) { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .park-interaction-trail { display: none !important; }
  :where(.experience, .experience-paths article, .bloom-grid img, .plan-choices label, .plan-result),
  :where(.approach-actions, .pan-top-actions, .pan-controls, .trail-tools, .discover, #plan, #visit)
    :is(button:not(:disabled):not([aria-disabled="true"]), a.cta, a.begin-plan, a.plan-primary) { transition: none; }
}
@media (forced-colors: active) {
  :where(.bar, .approach-actions, .pan-top-actions, .pan-controls, .trail-tools, .discover, .chapters, .chapter-dialog, #plan, #visit)
    :is(a[href], button:not(:disabled), input:not(:disabled)):focus-visible { outline-color: Highlight; }
}
