/* Layered storyboards: scene changes, camera moves, live expressions and readable dialogue. */
.campaign-cinema.story-cinema{width:min(1180px,calc(100vw - 32px));height:min(820px,calc(100dvh - 28px));border-radius:20px;background:#102b31;border-color:#b69d6d;overflow:hidden;color:#f7edd3;--story-emotion:#72aaa1}
.story-cinema::backdrop{background:#10252aeb;backdrop-filter:blur(10px)}.story-film{position:relative;isolation:isolate;width:100%;height:100%;overflow:hidden;background:#18383c}
.story-backgrounds,.story-shade,.story-atmosphere{position:absolute;inset:0;pointer-events:none}.story-background{position:absolute;inset:-2%;background-size:cover;background-position:50% 43%;animation:story-background-arrive .65s ease-out both,story-camera-wide 20s ease-in-out infinite alternate;will-change:transform,opacity}
.story-background.is-leaving{animation:story-background-leave .6s ease-in both;z-index:0}.story-background:last-child{z-index:1}.story-cinema[data-shot=close] .story-background:last-child{animation:story-background-arrive .6s ease-out both,story-camera-close 16s ease-in-out infinite alternate}.story-cinema[data-shot=pan] .story-background:last-child{animation:story-background-arrive .6s ease-out both,story-camera-pan 23s ease-in-out infinite alternate}.story-cinema[data-shot=detail] .story-background:last-child{background-position:45% 62%;animation:story-background-arrive .6s ease-out both,story-camera-close 19s ease-in-out infinite alternate}.story-cinema[data-shot=rise] .story-background:last-child{animation:story-background-arrive .65s ease-out both,story-camera-rise 25s ease-in-out infinite alternate}
.story-shade{z-index:2;background:linear-gradient(180deg,#0b242ae8 0%,#132d3330 28%,#10272c14 46%,#092126aa 71%,#071e26f0 100%),linear-gradient(90deg,#0c252b88,transparent 35%,transparent 65%,#0c252b88)}
.story-top{position:absolute;inset:0 0 auto;z-index:8;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 28px;height:auto;border:0;background:linear-gradient(#10262bba,transparent);box-shadow:none;color:#f1e1b8}.story-top>div:first-child{min-width:0}.story-top small{display:block;font-size:8px;letter-spacing:2px;color:#ceb883}.story-top b{display:block;font:21px Georgia,serif;font-weight:400;margin-top:6px;letter-spacing:.2px}
.story-toolbar{display:flex;align-items:center;gap:7px;flex:none}.story-toolbar button{font:10px 'Segoe UI',sans-serif;color:#e9dfbe;background:#122f36b0;border:1px solid #c7b38355;padding:8px 11px;border-radius:18px;cursor:pointer}.story-toolbar button:hover,.story-toolbar button[aria-pressed=true]{background:#d2b36c;color:#273d38;border-color:#f3d89c}
.story-shot-heading{position:absolute;z-index:4;top:103px;left:5%;right:5%;pointer-events:none;text-shadow:0 2px 15px #0b252a}.story-shot-heading>small{font-size:8px;color:#edca7c;letter-spacing:2.3px;text-transform:uppercase}.story-shot-heading h1{font:clamp(27px,3.5vw,43px)/1.09 Georgia,serif;margin:10px 0 8px;font-weight:400;color:#fff0cb;max-width:78%;letter-spacing:-.6px}.story-shot-heading p{font:10px/1.5 'Segoe UI',sans-serif;margin:0;color:#eadfb8;max-width:70%}
.story-plan{position:absolute;top:199px;left:5%;right:5%;z-index:5;pointer-events:none;max-width:76%}.story-plan[hidden]{display:none}.story-plan>small{display:block;font-size:7px;letter-spacing:1.6px;color:#ebd7a4;margin-bottom:7px}.story-plan>div{display:flex;gap:6px;flex-wrap:wrap}.story-plan span{border:1px solid #d3bc7d77;padding:6px 9px;border-radius:7px;color:#fff1c9;background:#17363bd9;font:10px/1.35 'Segoe UI',sans-serif;box-shadow:0 4px 13px #0b202936}.story-plan span.is-done{border-color:#a7c48f;background:#2d5c4cde}
.story-cast{position:absolute;inset:0;z-index:3;pointer-events:none}.story-actor{position:absolute;margin:0;bottom:205px;width:clamp(134px,18vw,215px);text-align:center;opacity:.64;filter:saturate(.67) brightness(.83);transform:translateY(9px) scale(.96);transition:opacity .35s,filter .35s,transform .4s;animation:story-actor-enter .7s ease-out both}.story-actor[data-slot=left]{left:7%}.story-actor[data-slot=right]{right:7%}.story-actor[data-slot=center]{left:50%;margin-left:calc(clamp(134px,18vw,215px)/-2)}.story-actor.is-speaking{z-index:2;opacity:1;filter:none;transform:translateY(0) scale(1.025)}
.story-actor-frame{height:clamp(150px,21vw,246px);border-radius:47% 47% 16px 16px;padding:4px;overflow:hidden;background:linear-gradient(140deg,#efd69880,#7c99884a);border:1px solid #d8bf7b66;box-shadow:0 12px 30px #071d266e,inset 0 0 0 1px #f5e2b34d}.story-actor.is-speaking .story-actor-frame{border-color:var(--actor-emotion);box-shadow:0 10px 35px #071d267a,0 0 20px color-mix(in srgb,var(--actor-emotion) 32%,transparent)}.story-actor-frame img{width:100%;height:100%;display:block;object-fit:cover;border-radius:47% 47% 12px 12px;animation:story-breathe 5s ease-in-out infinite;transform-origin:50% 75%}.story-actor figcaption{position:relative;display:inline-block;background:linear-gradient(120deg,#123139ef,#25483fe8);border:1px solid #bca36b80;border-radius:8px;padding:7px 11px;max-width:94%;box-sizing:border-box;transform:translateY(-8px);box-shadow:0 6px 14px #071c263d}.story-actor figcaption b{font:14px Georgia,serif;display:block;color:#f8e8be}.story-actor figcaption small{font:7px/1.3 'Segoe UI',sans-serif;display:block;color:#c8d0ab;margin-top:3px}
.story-dialogue{position:absolute;left:5%;right:5%;bottom:65px;z-index:7;padding:15px 20px 14px;border:1px solid #dac38a99;border-left:3px solid var(--story-emotion);border-radius:15px;background:linear-gradient(130deg,#102d35ef,#1c3c3bf2);box-shadow:0 16px 40px #071c2673,inset 0 1px #fff0c91f;backdrop-filter:blur(14px)}.story-dialogue-heading{display:flex;align-items:center;gap:9px;min-height:29px}.story-speaker-dot{width:6px;height:27px;background:var(--story-emotion);border-radius:4px;box-shadow:0 0 12px var(--story-emotion)}.story-dialogue-heading b{font:17px Georgia,serif;font-weight:400;color:#f6e6bb;display:block}.story-dialogue-heading small{font-size:8px;color:#a9c0b4;display:block;margin-top:4px}.story-speaker-emotion{font-size:25px;margin-left:auto;filter:drop-shadow(0 1px 5px #071e27)}.story-dialogue-heading .story-line-counter{font-size:8px;margin:0 0 0 4px;color:#bac6af;white-space:nowrap}
#cinema-story-text{position:relative;font:clamp(14px,1.5vw,18px)/1.65 Georgia,serif;color:#fff0cf;margin:11px 0 13px;min-height:3.3em;letter-spacing:.04px}.story-measure{visibility:hidden;display:block}.story-reveal{position:absolute;inset:0;display:block}.story-dialogue-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px}.story-reading-hint{font:8px/1.4 'Segoe UI',sans-serif;color:#91aea4;max-width:60%}.story-dialogue .cinema-next{display:flex;align-items:center;justify-content:space-between;gap:24px;min-width:150px;margin:0;border:1px solid #c6a25e;border-radius:8px;padding:10px 13px;background:linear-gradient(140deg,#f1d58e,#c99d4e);color:#554629;font:600 11px 'Segoe UI',sans-serif;box-shadow:0 3px 0 #071e2936}.story-dialogue .cinema-next>span{font-size:18px}
.story-timeline{position:absolute;z-index:8;bottom:13px;left:5%;right:5%;display:flex;align-items:center;justify-content:space-between;gap:14px;height:36px;padding:0;background:none;border:0;box-shadow:none}.story-frame-counter{font:19px Georgia,serif;color:#f0d99b;white-space:nowrap}.story-timeline nav{display:flex;align-items:center;gap:9px;flex:1;max-width:330px}.story-timeline button{background:transparent;border:0;padding:5px;flex:1;cursor:pointer;color:#b9c4a7;font:8px 'Segoe UI',sans-serif}.story-timeline button i{display:block;height:3px;background:#9aaf986b;border-radius:4px;margin-bottom:4px}.story-timeline button.is-active{color:#ffe6a4}.story-timeline button.is-active i{background:#edd086;box-shadow:0 0 9px #dbbb6a88}.story-scene-kind{font-size:7px;letter-spacing:1.7px;color:#a9bdac;text-align:right}
.story-transcript{position:absolute;right:5%;top:85px;z-index:10;width:min(460px,80%);max-height:55%;padding:17px 18px;border:1px solid #d0b77e88;border-radius:13px;background:#102c33f5;box-shadow:0 18px 40px #071e2799;overflow:auto;scrollbar-width:thin;backdrop-filter:blur(18px)}.story-transcript[hidden]{display:none}.story-transcript>b{font:18px Georgia,serif;color:#f3dca0}.story-transcript ol{margin:14px 0 0;padding:0;list-style:none}.story-transcript li{padding:10px 0;border-top:1px solid #9cb19a33}.story-transcript li small{font:7px 'Segoe UI',sans-serif;letter-spacing:1px;color:#ccb480}.story-transcript p{font:13px/1.6 Georgia,serif;color:#ecdfbd;margin:6px 0 0}
.story-atmosphere{z-index:2;overflow:hidden}.story-effect{position:absolute;inset:0;overflow:hidden}.story-effect>i{position:absolute;left:var(--x);top:var(--y);animation-delay:var(--delay)!important}.story-effect--rain>i{width:1px;height:100px;background:linear-gradient(transparent,#e8eddb77);transform:rotate(18deg);animation:story-rain var(--duration) linear infinite}.story-effect--lights>i,.story-effect--lanterns>i{width:4px;height:4px;border-radius:50%;background:#f4d889;box-shadow:0 0 15px 4px #ffe4a350;animation:story-spark var(--duration) ease-in-out infinite}.story-effect--sun{background:linear-gradient(120deg,transparent 20%,#f3d59314 35%,transparent 50%);animation:story-sun 14s ease-in-out infinite alternate}.story-effect--papers>i{width:4px;height:4px;background:#f1d8a74f;border-radius:50%;animation:story-spark 7s ease-in-out infinite}.story-paper{position:absolute;left:40%;top:30%;width:220px;height:145px;padding:16px;background:linear-gradient(140deg,#f4e6bd,#d6c28e);border:1px solid #b59b63;box-shadow:0 15px 30px #14272c66;transform:rotate(-7deg);animation:story-paper-in 1.2s ease-out both;opacity:.77}.story-paper>span{font:10px Georgia,serif;color:#766c47;letter-spacing:1.5px}.story-paper>i{display:block;height:1px;background:#a69a70;margin:16px 0}.story-paper>b{font:7px 'Segoe UI',sans-serif;letter-spacing:1px;color:#8f7e52}.story-stamp{position:absolute;left:47%;top:35%;padding:12px 22px;transform:rotate(-14deg);border:4px double #c98164;border-radius:5px;color:#e3a58b;background:#1e383039;text-align:center;font:23px Georgia,serif;animation:story-stamp-in .9s cubic-bezier(.2,.8,.3,1) both}.story-stamp small{font:8px 'Segoe UI',sans-serif;letter-spacing:3px}.story-market-line{position:absolute;left:12%;top:24%;width:76%;height:30%;overflow:visible;opacity:.5}.story-market-line path{fill:none;stroke:#b4dba4;stroke-width:3;stroke-dasharray:1100;stroke-dashoffset:1100;animation:story-market 6s ease-in-out infinite}.story-gavel{position:absolute;width:200px;height:160px;left:40%;top:26%;filter:drop-shadow(0 13px 14px #102c2c77);opacity:.9}.story-gavel-arm{transform-origin:186px 79px;animation:story-gavel-strike 4.8s cubic-bezier(.4,0,.6,1) infinite}.story-delivery-lights{position:absolute;width:260px;height:80px;left:-25%;top:50%;display:flex;gap:155px;animation:story-delivery 10s ease-in-out infinite}.story-delivery-lights i{width:18px;height:12px;border-radius:50%;background:#ffe5a5;box-shadow:0 0 60px 15px #f0d28a55}
.story-background.is-route{inset:0;background-image:none!important;background:#78966b}.story-background.is-route .cinema-route{position:absolute;width:80%;height:65%;left:10%;top:5%;opacity:.9}.story-background.is-route .route-demo-counter{top:29%;right:10%}.story-cinema[data-scene=route] .story-cast{display:none}.story-cinema[data-scene=route] .story-shot-heading{top:85px}.story-cinema[data-scene=route] .story-shot-heading h1{max-width:75%;font-size:29px}.campaign-selected-plan>small+small{margin-top:7px}
@keyframes story-background-arrive{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:none}}@keyframes story-background-leave{to{opacity:0}}@keyframes story-camera-wide{from{transform:scale(1.01)}to{transform:scale(1.08) translate(-.5%,-1%)}}@keyframes story-camera-close{from{transform:scale(1.09) translate(1%,1%)}to{transform:scale(1.18) translate(-1%,-1%)}}@keyframes story-camera-pan{from{transform:scale(1.12) translate(-3%,0)}to{transform:scale(1.12) translate(3%,-1%)}}@keyframes story-camera-rise{from{transform:scale(1.08) translate(0,2%)}to{transform:scale(1.12) translate(0,-2%)}}@keyframes story-actor-enter{from{opacity:0;translate:0 18px}to{translate:0 0}}@keyframes story-breathe{50%{transform:scale(1.015) translateY(-1px)}}@keyframes story-rain{from{translate:-30px -160px;opacity:0}15%{opacity:.8}to{translate:70px 520px;opacity:0}}@keyframes story-spark{0%,100%{opacity:0;translate:0 18px}40%{opacity:.7}80%{translate:20px -25px;opacity:.2}}@keyframes story-sun{to{transform:translateX(15%);opacity:.5}}@keyframes story-paper-in{from{opacity:0;translate:80px -10px;rotate:8deg}to{opacity:.77;translate:0 0;rotate:0deg}}@keyframes story-stamp-in{from{opacity:0;scale:1.65;filter:blur(6px)}75%{opacity:1;scale:.96;filter:none}to{scale:1}}@keyframes story-market{65%,85%{stroke-dashoffset:0}100%{opacity:0;stroke-dashoffset:0}}@keyframes story-gavel-strike{0%,35%,80%,100%{rotate:-13deg}58%{rotate:19deg}62%{rotate:12deg}68%{rotate:19deg}}@keyframes story-delivery{0%,15%{translate:0 0;opacity:0}30%,70%{opacity:.7}90%,100%{translate:1500px 10px;opacity:0}}
@media(max-height:650px) and (min-width:651px){.story-top{padding:13px 24px}.story-shot-heading{top:78px}.story-shot-heading h1{font-size:31px}.story-actor{width:155px;bottom:180px}.story-actor[data-slot=center]{margin-left:-77px}.story-actor-frame{height:175px}.story-dialogue{bottom:56px;padding:12px 17px}.story-dialogue-heading b{font-size:15px}#cinema-story-text{font-size:15px;margin:8px 0}.story-plan{top:156px}.story-timeline{bottom:9px}.story-plan span{font-size:9px}}
@media(max-width:650px){.campaign-cinema.story-cinema{width:calc(100vw - 14px);height:calc(100dvh - 16px);border-radius:13px}.story-top{padding:13px 14px;gap:8px;align-items:flex-start}.story-top small{font-size:6px;letter-spacing:1.2px}.story-top b{font-size:16px;max-width:160px}.story-toolbar{gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:175px}.story-toolbar button{font-size:8px;padding:6px 7px}.story-shot-heading{top:93px;left:5%;right:5%}.story-shot-heading>small{font-size:6px;letter-spacing:1.3px}.story-shot-heading h1{font-size:27px;max-width:100%;line-height:1.1;margin:8px 0}.story-shot-heading p{font-size:8px;max-width:100%}.story-actor{width:115px;bottom:242px}.story-actor[data-slot=left]{left:3%}.story-actor[data-slot=right]{right:3%}.story-actor[data-slot=center]{margin-left:-57px}.story-actor-frame{height:144px;padding:3px}.story-actor figcaption{padding:5px 7px;max-width:103%}.story-actor figcaption b{font-size:11px}.story-actor figcaption small{font-size:6px;max-height:22px;overflow:hidden}.story-cast:has(.story-actor:nth-child(3)) .story-actor{width:100px}.story-cast:has(.story-actor:nth-child(3)) .story-actor[data-slot=center]{margin-left:-50px}.story-cast:has(.story-actor:nth-child(3)) .story-actor-frame{height:130px}.story-dialogue{bottom:62px;padding:12px 13px;left:4%;right:4%;border-radius:12px}.story-dialogue-heading b{font-size:15px}.story-dialogue-heading small{font-size:7px}.story-speaker-emotion{font-size:22px}.story-dialogue-heading .story-line-counter{font-size:6px}.story-dialogue-heading{gap:6px}#cinema-story-text{font-size:14px;line-height:1.6;min-height:4.8em;margin:10px 0}.story-reading-hint{display:none}.story-dialogue-bottom{justify-content:flex-end}.story-dialogue .cinema-next{font-size:10px;min-width:150px;padding:9px 12px}.story-timeline{gap:9px;left:4%;right:4%;bottom:13px}.story-frame-counter{font-size:16px}.story-timeline nav{gap:3px;max-width:none}.story-timeline button{padding:5px 3px;font-size:7px}.story-scene-kind{display:none}.story-plan{top:174px;max-width:92%;left:5%;right:5%}.story-plan>small{font-size:6px;letter-spacing:.8px}.story-plan span{font-size:8px;padding:4px 6px}.story-plan>div{gap:4px}.story-paper{width:150px;height:110px;left:35%;top:30%;padding:12px}.story-paper>span{font-size:8px}.story-paper>i{margin:12px 0}.story-paper>b{font-size:5px}.story-gavel{width:155px;left:32%;top:25%}.story-stamp{font-size:18px;left:28%;top:30%}.story-transcript{top:90px;right:4%;width:84%;max-height:52%;padding:14px}.story-transcript p{font-size:12px}.story-background.is-route .cinema-route{width:120%;left:-10%;top:13%;height:50%}.story-background.is-route .route-demo-counter{top:35%;right:7%}.story-cinema[data-scene=route] .story-shot-heading h1{font-size:25px;max-width:100%}}
@media(prefers-reduced-motion:reduce){.story-background,.story-actor,.story-actor-frame img,.story-effect,.story-effect>i,.story-paper,.story-stamp,.story-market-line path,.story-gavel-arm,.story-delivery-lights{animation:none!important;transition:none!important}.story-background.is-leaving{display:none}.story-background{transform:none!important}.story-market-line path{stroke-dashoffset:0}.story-paper{opacity:.77}}

.story-dialogue{max-height:45%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#94ab9170 transparent}
.story-film{overflow:clip}
.story-cinema[data-final=true] .story-actor figcaption small{display:none}

/* The illustration owns its own area; dialogue no longer covers or crops it. */
.story-film{display:grid;grid-template-rows:auto minmax(0,1fr) auto 42px;gap:0;overflow:hidden}
.story-top{position:relative;inset:auto;grid-row:1;padding:12px 22px;flex-wrap:wrap;gap:8px;min-width:0}
.story-top>div:first-child{flex:1;min-width:130px}.story-toolbar{flex-wrap:wrap;justify-content:flex-end}
.story-picture{position:relative;grid-row:2;min-height:0;min-width:0;overflow:hidden;background:radial-gradient(ellipse,#355052,#102b31 75%)}
.story-picture .story-backgrounds{position:absolute;inset:0;background:none}
.story-picture .story-background{inset:8px;background-size:contain;background-repeat:no-repeat;background-position:center!important;transform-origin:center;animation:story-background-arrive .65s ease-out both,story-camera-fit 20s ease-in-out infinite alternate}
.story-cinema[data-shot] .story-picture .story-background:last-child{animation:story-background-arrive .65s ease-out both,story-camera-fit 20s ease-in-out infinite alternate}
.story-picture .story-background.is-leaving{animation:story-background-leave .6s ease-in both}
.story-picture .story-shade{background:linear-gradient(#09212688,transparent 30%,transparent 78%,#09212677);pointer-events:none}
.story-picture .story-shot-heading{top:10px;left:3%;right:3%}.story-picture .story-shot-heading h1{font-size:25px;line-height:1.12;margin:5px 0;max-width:100%}.story-picture .story-shot-heading p{display:none}
.story-picture .story-cast{position:absolute;inset:0;pointer-events:none}
.story-picture .story-actor{bottom:0!important;width:104px!important;margin-left:0!important;transform:none!important}
.story-picture .story-actor[data-slot=left]{left:12px}.story-picture .story-actor[data-slot=right]{right:12px}.story-picture .story-actor[data-slot=center]{left:calc(50% - 52px)}
.story-picture .story-actor-frame{height:122px!important;border-radius:15px;padding:3px;background:#173539bb}
.story-picture .story-actor-frame img{object-fit:contain;border-radius:11px;animation:none}
.story-picture .story-actor figcaption{padding:4px 7px;transform:translateY(-5px)}.story-picture .story-actor figcaption b{font-size:12px}.story-picture .story-actor figcaption small{display:none}
.story-dialogue{position:relative;grid-row:3;left:auto;right:auto;bottom:auto;margin:0 18px;padding:12px 16px;max-height:none;min-height:0;overflow:auto;backdrop-filter:none}
#cinema-story-text{font-size:16px;line-height:1.5;min-height:0;margin:8px 0}
.story-timeline{position:relative;grid-row:4;left:auto;right:auto;bottom:auto;height:auto;margin:0 22px;min-width:0}
.story-picture .story-plan{top:auto!important;bottom:6px;left:130px;right:130px;max-width:none}.story-picture .story-plan>div{justify-content:center}
.story-cinema[data-final=true] .story-actor[data-slot=center]{left:12px}.story-picture .story-background.is-route .cinema-route{width:100%;height:100%;left:0;top:0;opacity:.95}
.story-picture .story-background.is-route .route-demo-counter{top:auto;bottom:6px;right:10px;transform:scale(.75);transform-origin:bottom right}
@keyframes story-camera-fit{from{transform:scale(.97)}to{transform:scale(1)}}
@media(max-height:700px){.story-top b{font-size:17px}.story-top small{font-size:7px}.story-picture .story-shot-heading h1{font-size:22px}.story-picture .story-actor{width:72px!important}.story-picture .story-actor-frame{height:86px!important}.story-picture .story-actor[data-slot=center]{left:calc(50% - 36px)}.story-dialogue{padding:9px 14px}#cinema-story-text{font-size:14px}.story-speaker-emotion{font-size:21px}}
@media(max-width:650px){.story-top{padding:10px 12px}.story-top>div:first-child{max-width:none}.story-top b{max-width:none}.story-toolbar{max-width:none;gap:4px}.story-toolbar button{min-height:32px}.story-picture .story-shot-heading h1{font-size:21px}.story-picture .story-shot-heading>small{font-size:6px}.story-dialogue{margin:0 8px}.story-dialogue-heading .story-line-counter{font-size:8px}.story-timeline{margin:0 12px}.story-picture .story-plan{left:90px;right:8px}.story-picture .story-actor{width:72px!important}.story-picture .story-actor-frame{height:86px!important}.story-picture .story-actor[data-slot=center]{left:calc(50% - 36px)}}
@media(prefers-reduced-motion:reduce){.story-picture .story-background{animation:none!important;transform:none!important}}
