/* Eighteen illustrated browser scenes, not video. Only the story overlay. */
.story-cinematic{isolation:isolate;background:#020911;overflow:hidden}
.story-cinematic .story-cinematic-backdrop{position:absolute;inset:0;z-index:0;background-image:linear-gradient(180deg,#02060f44,transparent 35%,#02060fc9),var(--story-art);background-position:center;background-size:cover;animation:story225-pan 18s ease-in-out both;pointer-events:none}
.story-cinematic[data-effect=calm] .story-cinematic-backdrop{animation:none}
.story-cinematic[data-effect=explosion] .story-cinematic-backdrop{animation:story225-impact .65s ease-out both,story225-pan 18s ease-in-out .65s both}
.story-cinematic[data-effect=collapse] .story-cinematic-backdrop{animation:story225-collapse 1.4s ease-out both}
.story-cinematic[data-effect=run] .story-cinematic-backdrop{animation:story225-run 12s ease-out both}
.story-cinematic[data-effect=tension] .story-cinematic-backdrop{animation:story225-tension 14s ease-out both}
.story-cinematic[data-effect=precision] .story-cinematic-backdrop{animation:story225-pan 22s ease-out both}
.story-cinematic[data-effect=dawn] .story-cinematic-backdrop{animation:story225-dawn 5s ease-out both}
.story-cinematic .story-top-actions{position:absolute;top:max(12px,env(safe-area-inset-top));right:16px;z-index:7;display:flex;gap:8px}
.story-cinematic .story-top-actions button{position:static;min-height:40px;padding:8px 12px;border:1px solid #bba46c70;border-radius:4px;background:#06121fe8;color:#e9e1cd;font:12px/1.4 system-ui,sans-serif}
.story-cinematic .story-vignette{top:max(74px,env(safe-area-inset-top));left:5%;pointer-events:none}
.story-cinematic .story-vignette>strong{font-size:clamp(23px,3.3vw,40px);text-wrap:balance}
.story-cinematic .story-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.story-cinematic .story-line-count{color:#acbabc;font:11px/1.4 system-ui,sans-serif;white-space:nowrap}
.story-cinematic .story-actions button{min-height:44px}
.story-cinematic .story-dialogue{max-height:57dvh;overflow:auto;overscroll-behavior:contain}
.story-cinematic .story-dialogue p{white-space:normal;overflow-wrap:anywhere}
@keyframes story225-pan{from{transform:scale(1.02) translateX(-.7%)}to{transform:scale(1.08) translateX(.7%)}}
@keyframes story225-impact{0%{transform:scale(1.09) translateY(8px);filter:brightness(1.3)}35%{transform:scale(1.06) translateY(-4px)}70%{transform:scale(1.04) translateY(2px)}100%{transform:scale(1.03);filter:brightness(1)}}
@keyframes story225-collapse{0%{transform:translateY(-8px) scale(1.04)}30%{transform:translateY(5px) scale(1.04)}65%{transform:translateY(-2px) scale(1.04)}100%{transform:scale(1.04)}}
@keyframes story225-run{from{transform:scale(1.08) translateX(1.5%)}to{transform:scale(1.03) translateX(-1.5%)}}
@keyframes story225-tension{from{transform:scale(1.01);filter:brightness(.87)}to{transform:scale(1.1);filter:brightness(1)}}
@keyframes story225-dawn{from{filter:brightness(.7) saturate(.8)}to{filter:brightness(1.06) saturate(1)}}
@media(max-width:560px){.story-cinematic .story-dialogue{left:12px;right:12px;width:auto;bottom:max(12px,env(safe-area-inset-bottom));padding:16px;max-height:57dvh}.story-cinematic .story-vignette{left:16px;right:16px;max-width:none;top:76px}.story-cinematic .story-dialogue>p{font-size:16px;line-height:1.5;margin:10px 0 14px}.story-cinematic .story-character{max-height:55dvh;opacity:.72}.story-cinematic .story-top-actions{right:12px}.story-cinematic .story-progress{gap:5px}}
@media(orientation:landscape) and (max-height:560px){.story-cinematic .story-vignette{top:76px;left:20px;max-width:38%}.story-cinematic .story-vignette>strong{font-size:23px}.story-cinematic .story-dialogue{left:auto;right:16px;width:53%;max-height:76dvh;bottom:12px;padding:16px}.story-cinematic .story-dialogue>p{font-size:15px;line-height:1.45}.story-cinematic .story-top-actions{left:20px;right:auto}.story-cinematic .story-character{max-height:65dvh}.story-cinematic .story-actions button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.story-cinematic,.story-cinematic *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
