/* Story engine styles. One motion idea: state on the root, 420ms transition. */
.story { --ease: cubic-bezier(.2,.7,.2,1); position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; cursor: pointer; overflow: hidden; touch-action: pan-y; }
.story-scene { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.story [data-move] { transition: transform 420ms var(--ease), opacity 420ms var(--ease); }
.story-line { flex: none; padding: .9rem 1.1rem .4rem; }
.story-line > * { max-width: 46rem; }
.story-line p { margin: 0 0 .3rem; font-size: 1.05rem; line-height: 1.35; text-wrap: balance; }
/* The beat's headline takes the site's heading look: pale heading ink with the accent glow, as the panel's title and display lines. */
.story-line .story-hd { font-size: 1.25rem; font-weight: 600; color: #ecdcff; text-shadow: 0 0 14px rgba(185,120,255,.55); }
.story-prog { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 0 1.1rem .5rem; }
.story-prog .story-dot { color: inherit; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.story-prog .story-dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: currentColor; opacity: .25; transition: opacity 420ms var(--ease); }
.story-prog .story-dot[aria-current="step"]::after { opacity: 1; }
.story-hint { flex: none; margin: 0; padding: 0 1.1rem .7rem; font-size: .8125rem; color: color-mix(in srgb, currentColor 60%, transparent); }
@media (prefers-reduced-motion: reduce) { .story [data-move], .story-prog .story-dot::after { transition: none; } }

/* A real screen, refocused per beat (Story.shot in story.js). The frame moves with the story's one motion. */
.story-shot { position: absolute; inset: 0; overflow: hidden; }
.story-shot img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; transition: transform 700ms var(--ease); user-select: none; }
@media (prefers-reduced-motion: reduce) { .story-shot img { transition: none; } }
