:root{color-scheme:dark;--bg:#091f18;--panel:#15372c;--purple:#96d5a5;--line:#315d49;--ink:#f2faf5;--muted:#b7cfc0;--green:#9ce5b8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,'Segoe UI',Arial,sans-serif}header,main{max-width:1280px;margin:auto;padding:0 24px}header{padding-top:20px}.brand{font-weight:800;letter-spacing:.14em;color:#a4dfb4;font-size:15px}h1{font-size:clamp(20px,3vw,28px);line-height:1.2;margin:8px 0 18px}main{padding-bottom:30px}.stage{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#123126}.screen{position:relative;aspect-ratio:16/9;overflow:hidden;background:#edf5ef}.screen canvas,.screen video{position:absolute;width:100%;height:100%;display:block;inset:0}.screen video{object-fit:cover;background:transparent}.screen video.presenter{width:43%;left:7%;object-fit:contain}.screen video.portrait{width:38%;left:5%;object-fit:contain}#opening{position:absolute;left:54%;top:22%;right:5%;display:flex;flex-direction:column;gap:28px;color:#143b2a;font-size:clamp(18px,3vw,40px);font-weight:700;line-height:1.25}#opening span{opacity:.18;transform:translateY(10px);transition:opacity .6s,transform .6s}#opening span.on{opacity:1;transform:none}#tip{position:absolute;bottom:4%;left:4%;max-width:88%;padding:11px 19px;border-left:4px solid #96d5a5;background:#160d28e8;border-radius:0 9px 9px 0;color:white;font-size:clamp(14px,2.05vw,27px);font-weight:600;line-height:1.3;transition:opacity .25s}#tip:empty{display:none}#captions{position:absolute;left:8%;right:8%;bottom:18%;background:#080512e8;border-radius:7px;text-align:center;font-size:clamp(13px,1.6vw,23px);padding:8px 14px;color:white}#entry{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(0deg,#091f1880,transparent 65%)}button{font:inherit;cursor:pointer;color:var(--ink);border:1px solid #4b8062;border-radius:10px;padding:11px 17px;background:#1a4132;transition:background .2s,transform .2s}button:hover{background:#4a306a}button:focus-visible{outline:3px solid #e1ccff;outline-offset:3px}button:disabled{opacity:.4;cursor:default}.primary{background:var(--purple);color:#180c30;font-weight:700}.primary:hover{background:#d2baff}#start{padding:17px 27px;font-size:clamp(17px,2vw,24px);box-shadow:0 8px 35px #091f1830}#start span{margin-left:25px}.controls{display:flex;gap:12px;align-items:center;padding:14px 20px;border-top:1px solid var(--line)}progress{min-width:45px;flex:1;height:6px;accent-color:var(--purple)}#counter{font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}#cc[aria-pressed=true]{background:#96d5a5;color:#180c30}#activity{padding:clamp(20px,3vw,40px);background:linear-gradient(125deg,#27163d,#123126);border-bottom:1px solid var(--line)}#activity h2{font-size:clamp(21px,2.5vw,31px);line-height:1.3;margin:0 0 20px;max-width:1050px}.choices{display:grid;gap:12px}.choice{display:flex;gap:14px;align-items:center;text-align:left;padding:15px 18px;width:100%;line-height:1.4}.letter{border:1px solid #9e7cc7;border-radius:50%;width:31px;height:31px;flex:0 0 31px;text-align:center;line-height:29px}.choice.selected{border-color:#d7baff;background:#513174}.choice.good{background:#183d34;border-color:var(--green)}.feedback{border-left:4px solid #96d5a5;padding:15px 20px;background:#35204c;margin:20px 0 0;color:#efe8f7}.feedback.good{border-color:var(--green);background:#18332d}.feedback strong{display:block;margin-bottom:5px}.feedback button{margin-top:15px}.activity-screen .screen{aspect-ratio:16/5;max-height:260px}.activity-screen #tip{font-size:17px;bottom:8%;max-width:80%}.activity-screen #film{object-position:center}.activity-screen #captions{bottom:35%}.activity-screen #activity{animation:arrive .3s ease both}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.explore-card{min-height:150px;padding:24px;text-align:left;display:flex;flex-direction:column;gap:12px}.explore-card b{font-size:23px}.explore-card small{font-size:15px;color:#d7c6e7}.explore-card.seen{border-color:var(--green)}.explore-card.active{background:#4a2e65;border-color:#a4dfb4}.listening{margin:18px 0 0;color:#dfd0ed;min-height:24px}.node-number{color:#c7a0ff;font-size:13px;letter-spacing:2px}.visited{font-size:13px;color:var(--green)}.sequence{display:grid;gap:10px}.sortrow{display:flex;gap:16px;align-items:center;background:#1a4132;border:1px solid #71508b;padding:13px 16px;border-radius:10px}.sortrow.dragging{opacity:.4}.sortrow.dragover{border-color:#ddc5ff;background:#523472}.sortrow .step{color:#bf99f7}.sortrow .label{flex:1}.sortrow button{padding:5px 10px}.sort-actions{margin-top:20px;display:flex;gap:12px}.complete{padding:clamp(25px,5vw,65px);text-align:center}.complete h2{font-size:clamp(26px,4vw,44px)}.complete .seal{width:70px;height:70px;display:grid;place-items:center;border:2px solid var(--green);color:var(--green);border-radius:50%;font-size:40px;margin:0 auto 25px}.complete p{color:var(--muted);max-width:620px;margin:15px auto 30px}.complete .recap{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.complete .recap span{border:1px solid #6d4b8c;padding:9px 15px;border-radius:20px}.review-buttons{display:flex;gap:10px;justify-content:center;margin-top:25px;flex-wrap:wrap}#error{background:#51273c;padding:15px;border-radius:8px}[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:650px){header,main{padding-left:14px;padding-right:14px}.controls{padding:10px;gap:7px;flex-wrap:wrap}.controls button{padding:9px 11px}#next{margin-left:auto}#counter{font-size:11px}.cards{grid-template-columns:1fr;gap:10px}.explore-card{min-height:90px;padding:17px;gap:6px}.explore-card b{font-size:20px}.activity-screen .screen{aspect-ratio:16/7}.choice{padding:13px;font-size:14px}#opening{gap:13px;top:20%;font-size:clamp(13px,3.3vw,22px)}#tip{padding:7px 10px;font-size:13px}.sortrow{padding:12px 10px;gap:8px;font-size:14px}.sortrow button{padding:4px 8px}#progress{order:0}.activity-screen #tip{font-size:13px}.complete .recap{font-size:13px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.stage:fullscreen{max-width:none;width:100%;height:100%;overflow:auto;background:#091f18}.stage:fullscreen .screen{max-height:calc(100vh - 90px)}.stage:fullscreen.activity-screen .screen{max-height:22vh}

.activity-screen canvas{object-fit:cover;object-position:center 56%}

.screen #still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;animation:photo-arrive .35s ease both;transform-origin:center}.activity-screen #still{object-position:center 12%}@keyframes photo-arrive{from{opacity:.65;transform:scale(1.018)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.screen #still{animation:none}}

.screen.has-portrait::before{content:'';position:absolute;inset:-30px;background-image:var(--portrait-src);background-position:center;background-size:cover;filter:blur(22px);opacity:.46}.screen #still.photo-portrait{object-fit:contain;animation:none}

.screen.has-portrait #still.photo-portrait{width:58%;left:40%}.screen.has-portrait #tip{max-width:34%;bottom:8%}

#example-label{position:absolute;top:18px;left:18px;z-index:4;background:#991b1b;color:#fff;border:1px solid #fecaca;border-radius:8px;padding:8px 12px;font:600 clamp(12px,1.4vw,17px)/1.3 system-ui;box-shadow:0 2px 12px #0005;pointer-events:none}
#example-label[hidden]{display:none}

/* Approved v4: synchronized concise phrases, driven by the narration clock. */
#tip,#opening{display:none!important}
:is(#sync-text,#smooth-sync){position:absolute;left:4%;right:4%;bottom:5%;z-index:5;display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;pointer-events:none}
.sync-block{max-width:540px;background:linear-gradient(120deg,#291c3df2,#160e28ee);border:1px solid #b599d06e;border-left:3px solid #96d5a5;border-radius:10px;padding:12px 17px;color:#fff;font-size:clamp(16px,2vw,27px);font-weight:600;line-height:1.35;box-shadow:0 7px 22px #0002;min-height:1.35em}
.sync-block.older{color:#d1e5d8;background:#143829e8;font-size:clamp(14px,1.65vw,22px)}
.sync-block i{display:inline-block;height:.85em;border-right:2px solid #a4dfb4;margin-left:3px}
:is(#sync-text,#smooth-sync).presenter-text{left:53%;right:5%;top:20%;bottom:auto;align-items:stretch;flex-direction:column;gap:17px}
:is(#sync-text,#smooth-sync).portrait-text{left:4%;right:65%;bottom:8%;align-items:stretch;flex-direction:column}
:is(#sync-text,#smooth-sync).card-text{bottom:5%;justify-content:center;left:5%;right:5%}
.activity-screen .screen{width:min(100%,860px);margin-inline:auto;aspect-ratio:16/6;max-height:300px;background:#1e1231}
.activity-screen #still,.activity-screen #film{inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 50%;animation:none}
.activity-screen .screen.has-portrait #still.photo-portrait{left:0;width:100%;object-fit:contain;object-position:center}
.activity-screen canvas{inset:0;object-fit:contain;object-position:center}
.activity-screen :is(#sync-text,#smooth-sync) .sync-block{font-size:clamp(13px,1.4vw,18px);padding:7px 11px;max-width:430px}
#captions{bottom:23%;z-index:6}
.activity-screen #captions{bottom:32%}
@media(max-width:650px){:is(#sync-text,#smooth-sync){gap:7px;bottom:5%;left:3%;right:3%}.sync-block{padding:7px 10px;font-size:13px;max-width:88%}.sync-block.older{font-size:12px}:is(#sync-text,#smooth-sync).presenter-text{left:53%;right:4%;top:15%;gap:8px}:is(#sync-text,#smooth-sync).presenter-text .sync-block{font-size:12px;max-width:100%}.activity-screen .screen{aspect-ratio:16/8;max-height:240px}.activity-screen :is(#sync-text,#smooth-sync) .sync-block{font-size:12px}.activity-screen :is(#sync-text,#smooth-sync).card-text{gap:6px}.screen.has-portrait :is(#sync-text,#smooth-sync).portrait-text{right:64%;gap:6px}#captions{font-size:12px;bottom:26%;padding:6px 9px}}
@media(prefers-reduced-motion:reduce){.sync-block{transform:none!important}}

[hidden]{display:none!important}.screen{background:#edf5ef}#surfaces{position:absolute;inset:0}#surfaces img,#surfaces video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#edf5ef}#surfaces .scene-photo{object-fit:cover}.brand{color:#a4dfb4}.stage{background:#123126}button.primary{background:#b3e6ba;color:#123524;border-color:#b3e6ba}button:hover:not(:disabled){background:#346e4d}button.primary:hover:not(:disabled){background:#d0f0d4}#sync-text{z-index:4;left:4%;right:4%;bottom:5%;top:auto;display:flex;align-items:flex-start;flex-direction:column;gap:12px;pointer-events:none}.sync-block{background:#113b2be8;border-color:#91cba0;max-width:68%;border-left:4px solid #9bdaa9;box-shadow:0 6px 20px #0001}.sync-block.older{background:#204f3ae8;color:#e0f2e5}.screen.isometric #sync-text{left:66%;right:4%;top:22%;bottom:auto;gap:20px}.screen.isometric .sync-block{max-width:100%;font-size:clamp(15px,2.1vw,28px);background:#17422f;line-height:1.35;padding:15px 17px}.screen.isometric .sync-block.older{font-size:clamp(13px,1.75vw,23px)}#captions{bottom:24%;z-index:7}#activity{background:#edf5ef;color:#173b2a;min-height:0}#activity h2{color:#173b2a}#activity .choice{color:#173b2a;background:#fff;border-color:#a0c9ad}#activity .choice:hover{background:#e2f0e6}#activity .letter{background:#23543a;color:white}.question-grid{display:grid;grid-template-columns:38% 1fr;gap:30px;align-items:center}.question-image{width:100%;border-radius:12px}.feedback{background:#d9ecdf;color:#1b4b30;border-color:#91b99d}.feedback.good{color:#19452d;background:#d7eddd}.activity-screen .screen{display:none}.activity-screen #activity{padding:3.5% 5%}.question-grid .choices{display:flex;flex-direction:column;gap:12px;margin:0}.question-grid .choice{padding:14px 17px;font-size:clamp(14px,1.5vw,20px);text-align:left}.question-grid h2{font-size:clamp(18px,2.1vw,28px);margin:0 0 15px}#activity .feedback{font-size:clamp(14px,1.5vw,20px);padding:15px;margin-top:16px}.finish{display:grid;place-items:center;min-height:430px;text-align:center}.finish .seal{color:#32774d}.scene-photo{animation:none!important}#screen.ambient::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,#fff0 25%,#fff4 50%,#fff0 75%);opacity:.13;animation:daylight 9s ease-in-out infinite;z-index:2}@keyframes daylight{0%,100%{opacity:.03}50%{opacity:.16}}#entry{z-index:8;background:#edf5ef33}#entry button{box-shadow:0 5px 30px #12352426}.controls{background:#123126}#error{color:#ffbdad}@media(max-width:650px){.question-grid{grid-template-columns:1fr;gap:12px}.question-image{max-height:150px;object-fit:contain}.screen.isometric #sync-text{left:65%;right:3%;top:15%;gap:9px}.screen.isometric .sync-block{font-size:12px;padding:8px}.screen.isometric .sync-block.older{font-size:11px}.controls{gap:5px}.controls button{padding:9px}.sync-block{max-width:85%}.question-grid .choice{font-size:13px;padding:10px}.finish{min-height:300px}}@media(prefers-reduced-motion:reduce){#screen.ambient::after{animation:none}.sync-block{transform:none!important}}

#progress{accent-color:#9bd5a9}.choice.selected,.choice.good{border-color:#3f8b58!important}.letter{background:#e0efe4;color:#214e32}button:focus-visible{outline:3px solid #a9deae;outline-offset:3px}
.diagram{position:absolute;inset:0;background:#edf5ef;padding:7% 6% 18%;color:#173b2a;display:flex;flex-direction:column;justify-content:center}.diagram-title{font-size:clamp(23px,3vw,42px);font-weight:750;margin-bottom:4%;letter-spacing:-.025em}.diagram-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3%}.concept{border:1px solid #bad4c1;background:#e2eee5;border-radius:16px;padding:7%;opacity:.65;transition:opacity .5s,background .5s,border-color .5s}.concept.focus{opacity:1;background:#d2e8da;border-color:#4a8a62}.concept>b{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#276844;color:#fff;font-size:25px}.concept h3{font-size:clamp(17px,2.4vw,31px);margin:12px 0 6px}.concept p{font-size:clamp(13px,1.5vw,21px);margin:0}.screen.is-diagram .sync-block{max-width:95%;font-size:clamp(14px,1.8vw,25px)}.prompt{font-size:clamp(16px,1.7vw,23px);max-width:1060px;margin:0 0 25px;line-height:1.5}.match-list{display:grid;gap:15px}.match-row{padding:18px;background:#fff;border:1px solid #bdd6c5;border-radius:12px}.match-row p{margin:0 0 12px;font-size:clamp(15px,1.7vw,22px);font-weight:600}.match-options{display:flex;gap:10px;flex-wrap:wrap}.match-options button{background:#e5f0e8;color:#214b32;border-color:#91b69e}.match-options button.selected{background:#2c6945;color:white}.match-feedback{display:block;font-size:14px;color:#2c6945;margin-top:8px;min-height:21px}.test-count{display:block;margin-bottom:10px;color:#4a7358;font-size:14px}.screen.isometric .sync-block{font-size:clamp(14px,1.85vw,25px)}#activity .finish p{font-size:22px}.seal{font-size:50px;color:#32774d}.controls button:disabled{pointer-events:none}.sync-block{will-change:opacity}#surfaces>*{position:absolute;inset:0;width:100%;height:100%}#surfaces video{background:transparent}#screen.ambient::after{animation-duration:12s;opacity:.05}.is-diagram #sync-text{bottom:5%}@media(max-width:650px){.concept>b{width:28px;height:28px;font-size:15px}.concept h3{font-size:14px}.concept p{font-size:11px}.diagram-title{font-size:20px}.diagram{padding:6% 5% 22%}.diagram-grid{gap:8px}.concept{border-radius:9px}.screen.isometric .sync-block{font-size:12px}.match-row{padding:12px}.match-options button{font-size:13px;padding:8px}.screen.is-diagram .sync-block{font-size:12px}}
/* Touch-friendly portrait layout: visuals above text, no miniature side column. */
@media(max-width:700px){
 body{font-size:16px}header,main{padding-left:10px;padding-right:10px}header{padding-top:12px}h1{font-size:22px;margin-bottom:12px}.stage{border-radius:13px}
 #screen{aspect-ratio:auto;display:flex;flex-direction:column;min-height:0;overflow:hidden}
 #surfaces{position:relative;inset:auto;width:100%;aspect-ratio:16/9;flex:none;order:0;overflow:hidden;background:#edf5ef}
 #screen.isometric #surfaces{aspect-ratio:1/1}
 #screen.isometric #surfaces img{width:160%;height:100%;max-width:none;object-fit:contain;object-position:left center}
 #screen.is-diagram #surfaces{aspect-ratio:auto;min-height:350px}
 #surfaces .diagram{height:100%;padding:20px;justify-content:flex-start}.diagram-title{font-size:23px;margin:0 0 16px}.diagram-grid{grid-template-columns:1fr;gap:10px}.concept{padding:12px;display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center}.concept>b{width:37px;height:37px;font-size:19px;grid-row:1/3}.concept h3{font-size:18px;margin:0}.concept p{font-size:14px;margin-top:3px}
 #sync-text,#screen.isometric #sync-text,#screen.is-diagram #sync-text{position:relative;left:auto;right:auto;top:auto;bottom:auto;order:1;min-height:126px;padding:14px;gap:8px;display:flex;flex-direction:column;justify-content:center;background:#edf5ef}
 #sync-text .sync-block,#screen.isometric .sync-block,#screen.isometric .sync-block.older,#screen.is-diagram .sync-block{font-size:17px;line-height:1.4;padding:10px 13px;max-width:100%;border-radius:8px}
 #sync-text[hidden]{display:flex!important;visibility:hidden}
 #captions{position:relative;inset:auto;order:2;max-width:100%;margin:0 12px 12px;padding:10px;font-size:16px;line-height:1.4}
 #screen.ambient::after{height:55%;bottom:auto}
 .controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px}.controls button{min-height:46px;font-size:14px;padding:9px 6px;min-width:0;touch-action:manipulation}
 #progress{grid-column:1/-1;width:100%;height:7px;margin:3px 0 5px;order:-2}#previous{grid-column:1;grid-row:2}#play{grid-column:2;grid-row:2}#rewind{grid-column:3;grid-row:2}#next{grid-column:4;grid-row:2;margin:0;font-size:13px}#cc{grid-column:1;grid-row:3}#full{grid-column:2;grid-row:3}#counter{grid-column:3/5;grid-row:3;justify-self:end;font-size:14px;padding-right:8px}
 .activity-screen #activity{padding:22px 16px}#activity h2{font-size:23px;line-height:1.35}.prompt{font-size:17px;line-height:1.5;margin-bottom:18px}.choice{min-height:58px!important;font-size:16px!important;line-height:1.45;padding:14px 12px!important;align-items:flex-start}.letter{margin-top:1px;flex-shrink:0}.match-row p{font-size:17px}.match-options button{font-size:15px;min-height:46px;flex:1}.match-feedback{font-size:15px}.feedback,#activity .feedback{font-size:16px;line-height:1.5}.feedback button{min-height:46px}.finish{min-height:360px}.finish h2{font-size:27px!important}.review-buttons button{min-height:46px}
 .stage:fullscreen #screen{max-height:none}.stage:fullscreen{overflow-y:auto}.activity-screen .screen{display:none!important}
}
@media(max-width:360px){#sync-text .sync-block,#screen.isometric .sync-block,#screen.isometric .sync-block.older{font-size:16px}.controls{gap:5px}.controls button{font-size:13px}#next{font-size:12px}}
[hidden]{display:none!important}

/* V3: one invariant viewport for film, questions, feedback and final test. */
html{scrollbar-gutter:stable}.stage{container-type:inline-size}.viewport{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#edf5ef}
.viewport>#screen,.viewport>#activity{position:absolute;inset:0;width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto;margin:0}
.viewport>#activity{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;animation:none}.viewport>#activity .finish{min-height:100%}
#sync-text{height:224px;justify-content:flex-start;flex-wrap:nowrap;overflow:hidden;--sync-font:clamp(16px,2vw,27px)}
#sync-text .sync-block,#sync-text .sync-block.older{width:min(68%,540px);max-width:68%;height:104px;min-height:104px;flex:0 0 104px;display:flex;align-items:center;font-size:var(--sync-font);overflow:hidden}
#screen.isometric #sync-text{height:340px;--sync-font:clamp(14px,1.85vw,25px)}
#screen.isometric #sync-text .sync-block,#screen.isometric #sync-text .sync-block.older{width:100%;max-width:100%;height:clamp(100px,12.5vw,160px);min-height:clamp(100px,12.5vw,160px);flex-basis:clamp(100px,12.5vw,160px);font-size:var(--sync-font)}
#screen.is-diagram #sync-text{--sync-font:clamp(14px,1.8vw,25px)}
.stage:fullscreen .viewport{aspect-ratio:auto;height:calc(100dvh - 80px)}.stage:fullscreen .viewport>#screen{max-height:none}
@media(max-width:700px){
 .viewport{aspect-ratio:auto;height:calc(56.25vw + 224px);height:calc(56.25cqw + 236px)}
 .viewport>#screen{display:grid;grid-template-rows:minmax(0,1fr) 236px}
 #surfaces,#screen.isometric #surfaces,#screen.is-diagram #surfaces{position:relative;inset:auto;width:100%;height:100%;min-height:0;aspect-ratio:auto;grid-row:1;overflow:hidden}
 #surfaces video{object-fit:contain}#screen.isometric #surfaces img{width:100%;height:100%;object-fit:contain;object-position:center}
 #surfaces .diagram{min-height:0;height:100%;overflow:auto;padding:14px}.diagram-title{font-size:19px;margin-bottom:10px}.diagram-grid{gap:7px}.concept{padding:8px}.concept h3{font-size:16px}.concept p{font-size:13px}
 #sync-text,#screen.isometric #sync-text,#screen.is-diagram #sync-text{position:relative;inset:auto;grid-row:2;height:236px;min-height:0;max-height:236px;padding:14px;gap:8px;justify-content:flex-start;--sync-font:17px;overflow:hidden}
 #sync-text .sync-block,#sync-text .sync-block.older,#screen.isometric #sync-text .sync-block,#screen.isometric #sync-text .sync-block.older,#screen.is-diagram #sync-text .sync-block{width:100%;max-width:100%;height:96px;min-height:96px;flex:0 0 96px;padding:10px 13px;font-size:17px;line-height:1.4}
 #captions{position:absolute;left:12px;right:12px;bottom:236px;top:auto;margin:0 0 8px;max-height:110px;overflow:auto;font-size:15px}
 .stage:fullscreen .viewport{height:calc(56.25cqw + 236px)}.viewport>#activity{padding:22px 16px}.viewport>#activity .finish{min-height:100%}
}
[hidden]{display:none!important}
.controls{height:78px;flex-wrap:nowrap}
@media(max-width:700px){.controls{height:152px;grid-template-rows:12px 60px 46px}.controls button{height:100%;max-height:100%;min-height:0}}

/* v3 revision: a single synchronized chapter film, invariant layout. */
#loading{position:absolute;inset:0;z-index:7;display:grid;place-items:center;background:#123126c9;color:white;font-size:20px;pointer-events:none}
#entry{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}
#surfaces #voice{z-index:0;object-fit:contain}#surfaces .diagram{z-index:1}
.viewport[aria-busy=true]{cursor:progress}
