/* V10: shared-stage articulated SVG puppets. Rig transforms use local joint origins. */
.classroom-rig{width:100%;height:100%;max-height:100%;overflow:visible;display:block;filter:drop-shadow(0 3px 3px #0006)}.cine-shot .classroom-rig{position:absolute;inset:4px 0 41px;width:100%;height:calc(100% - 45px)}.cine-shot.has-rig{padding:0}.cine-shot.has-rig .cine-shot-text{z-index:2}.cine-shot.has-rig .cine-props{display:none}.cine-shot.has-rig .cine-shot-text strong{font-size:clamp(11px,1.1vw,17px)}.pu-body,.pu-head,.pu-arm,.pu-elbow,.pu-leg,.pu-knee,.pu-prop{transform-box:view-box;transform-origin:0 0}.pu-arm-l{transform:rotate(10deg)}.pu-arm-r{transform:rotate(-10deg)}.role-guide .pu-arm-r{transform:rotate(-60deg)}.role-guide .pu-elbow-r{transform:rotate(-30deg)}.role-access .pu-arm-r{transform:rotate(-28deg)}.role-access .pu-elbow-r{transform:rotate(-40deg)}.pu-active .pu-body{animation:puBreath 2.7s ease-in-out infinite}.pu-active .pu-head{animation:puNod 3s ease-in-out infinite}.pu-active .pu-eyes{transform-box:fill-box;transform-origin:center;animation:puBlink 3.2s linear infinite}.pu-active .role-guide .pu-arm-r{animation:puOffer 3s ease-in-out infinite}.pu-active .role-guide .pu-elbow-r{animation:puElbow 3s ease-in-out infinite}.pu-active .role-guide .pu-mouth{animation:puTalk 1s ease-in-out infinite}.pu-active .role-access .pu-arm-r{animation:puReach 3s ease-in-out infinite}.pu-active .role-access .pu-elbow-r{animation:puReachElbow 3s ease-in-out infinite}.pu-active .role-observe .pu-arm-l{animation:puIdleArm 3s ease-in-out infinite}.pu-active .role-observe .pu-leg-l{animation:puStep 3s ease-in-out infinite}.pu-active .role-observe .pu-leg-l .pu-knee{animation:puKnee 3s ease-in-out infinite}.pu-active .pu-prop{animation:puShow 3s ease-in-out infinite}.pu-active .pattern-timer.pu-prop{animation:puTimer 3s ease-in-out infinite}.pu-active .pattern-sound.pu-prop{animation:puQuiet 3s ease-in-out infinite}.pu-active .pattern-turn.pu-prop{animation:puTurn 3s ease-in-out infinite}.pu-active .pattern-read.pu-prop{animation:puRead 3s ease-in-out infinite}.pu-active .pattern-path.pu-prop{animation:puShow 3s ease-in-out infinite}.pu-active .pattern-scan.pu-prop{animation:puScan 3s ease-in-out infinite}.pu-active .pattern-routes.pu-prop{animation:puShow 3s ease-in-out infinite}.pu-active .pattern-check.pu-prop{animation:puShow 3s ease-in-out infinite}.pu-static *{animation:none!important}.cine-shot:not(.wide-shot) .classroom-rig{background:linear-gradient(90deg,#0b20304c,transparent,#0b20304c)}.cine-dialogue{font-size:clamp(10px,.82vw,13px);color:#a8e0d0;line-height:1.16}.cine-head button{min-height:26px}.cine-shot.has-rig .cine-shot-text{padding:4px 5%}.cine-shot.has-rig .cine-shot-tag{font-size:9px}.cine-shot.has-rig .cine-dialogue{white-space:normal}.pu-active .role-listener .pu-head{animation:puListen 3s ease-in-out infinite}@keyframes puBreath{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}@keyframes puNod{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(4deg)}}@keyframes puListen{0%,100%{transform:rotate(0)}50%{transform:rotate(-5deg)}}@keyframes puBlink{0%,43%,49%,100%{transform:scaleY(1)}46%{transform:scaleY(.08)}}@keyframes puTalk{0%,100%{stroke-width:1.7}50%{stroke-width:4}}@keyframes puOffer{0%,100%{transform:rotate(-20deg)}50%,80%{transform:rotate(-65deg)}}@keyframes puElbow{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(-45deg)}}@keyframes puReach{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(-45deg)}}@keyframes puReachElbow{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(-45deg)}}@keyframes puIdleArm{0%,100%{transform:rotate(9deg)}50%{transform:rotate(21deg)}}@keyframes puStep{0%,100%{transform:rotate(0)}50%{transform:rotate(4deg)}}@keyframes puKnee{0%,100%{transform:rotate(0)}50%{transform:rotate(-5deg)}}@keyframes puShow{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes puTimer{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(7deg)}}@keyframes puQuiet{0%,100%{transform:scale(.98)}50%{transform:scale(1.04)}}@keyframes puTurn{0%,100%{transform:translateX(-4px)}50%{transform:translateX(4px)}}@keyframes puRead{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(4deg)}}@keyframes puScan{0%,100%{transform:translateX(-7px)}50%{transform:translateX(7px)}}@media(prefers-reduced-motion:reduce){.classroom-rig *{animation:none!important}}@media(max-width:760px){.cine-shot .classroom-rig{inset:8px 0 50px;height:calc(100% - 58px)}.cine-dialogue{font-size:10px}}
/* A larger, visually unified stage for projection; original art stays behind the stage. */
@media(min-width:761px){.cine-stage{height:clamp(190px,26vh,260px);max-height:260px}.cine-shot .classroom-rig{inset:4px 0 48px;height:calc(100% - 52px)}}
.cine-shot.has-rig .classroom-rig{background:linear-gradient(90deg,#081c2be6,#133442c9 50%,#081c2be6)}
.cine-playing .shot-0 .pu-active *{animation-delay:var(--elapsed);animation-iteration-count:1;animation-fill-mode:both}
.cine-playing .shot-1 .pu-active *{animation-delay:calc(3s + var(--elapsed));animation-iteration-count:1;animation-fill-mode:both}
.cine-playing .shot-2 .pu-active *{animation-delay:calc(6s + var(--elapsed));animation-iteration-count:1;animation-fill-mode:both}
.pu-active .role-listener .pu-arm-l{animation:puReceive 3s ease-in-out infinite}.pu-active .role-listener .pu-elbow-l{animation:puReceiveElbow 3s ease-in-out infinite}@keyframes puReceive{0%,100%{transform:rotate(10deg)}50%{transform:rotate(48deg)}}@keyframes puReceiveElbow{0%,100%{transform:rotate(0deg)}50%{transform:rotate(38deg)}}

/* V11: detailed original portrait cutaway and shaded articulated stage. */
.cine-shot.has-rig .classroom-rig{left:32%;right:0;width:68%;background:linear-gradient(90deg,transparent,#102c3e80 52%,#081c2bb0);filter:none}
.cine-closeup{position:absolute;left:2%;top:7px;width:29%;height:calc(100% - 58px);display:grid;grid-template-rows:minmax(0,1fr) auto;gap:3px;z-index:1;overflow:hidden;border-radius:10px;background:#091a29;box-shadow:0 4px 12px #0009;border:1px solid #b79b6266;padding:4px}
.cine-closeup .rig-portrait{width:100%;height:100%;min-height:0;border-radius:6px;filter:none}.cine-closeup .rig-source,.cine-closeup .rig-canvas{width:100%;height:100%;object-fit:contain}.cine-closeup-label{font-size:9px;letter-spacing:.09em;color:#e8cf99;text-align:center;line-height:1.15;white-space:nowrap}.cine-shot[data-speaking="true"] .cine-closeup{border-color:#a1dfce}.cine-shot[data-speaking="true"] .cine-dialogue{color:#e6fff8}.cine-shot .pu-mouth-open{opacity:0}.cine-shot .pu-mouth{animation:none!important}.cine-shot[data-speaking="true"] .role-guide .pu-mouth{opacity:0}.cine-shot[data-speaking="true"] .role-guide .pu-mouth-open{opacity:1;transform-box:fill-box;transform-origin:center;transform:scaleY(var(--mouth,1));transition:transform .08s linear}.pu-static .pu-mouth-open{opacity:0!important}.pu-static .pu-mouth{opacity:1!important}.pu-pupils{transform-box:fill-box;transform-origin:center}.pu-active .pu-pupils{animation:puGaze 3s ease-in-out infinite}.pu-brows{transform-box:fill-box;transform-origin:center}.pu-active .role-guide .pu-brows{animation:puBrow 3s ease-in-out infinite}@keyframes puGaze{0%,100%{transform:translateX(0)}50%{transform:translateX(1.3px)}}@keyframes puBrow{0%,100%{transform:translateY(0)}40%{transform:translateY(-1.3px)}}
@media(max-width:760px){.cine-shot.has-rig .classroom-rig{left:34%;width:66%;inset-block:19px 55px;height:calc(100% - 74px)}.cine-closeup{left:2%;width:31%;top:20px;height:calc(100% - 78px);padding:2px}.cine-closeup-label{font-size:6.5px;letter-spacing:0}.cine-shot.has-rig .cine-shot-text{padding:4px 3%}.cine-chapter{z-index:3;font-size:7px}}
