/* WHENHOW Visual Teacher v1.1 — student-first educational animation */
#slidesArea.whv-active{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#slidesArea.whv-active>:not(.whv-player){display:none!important}
.whv-player{--whv-ink:#12424c;--whv-bg:#e8fcf7;--whv-panel:#103e54;--whv-border:rgba(38,116,114,.16);color:var(--whv-ink);font-family:Inter,Segoe UI,system-ui,Arial,sans-serif;border:1px solid var(--whv-border);border-radius:19px;background:linear-gradient(158deg,#fff 0%,#eafff6 100%);padding:15px;overflow:hidden;box-shadow:0 12px 35px rgba(8,74,83,.09)}
.whv-player *{box-sizing:border-box}
.whv-header{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}
.whv-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#0d847a;font-weight:850}
.whv-main-title{color:var(--whv-ink);font-size:clamp(18px,3vw,27px);line-height:1.18;margin:5px 0 0;letter-spacing:-.02em}
.whv-level-label{display:flex;align-items:flex-start;flex-direction:column;gap:4px;color:#366a72;font-size:11px;font-weight:650;flex:none}
.whv-level{color:#174e56;background:#fff;border:1px solid #b7dbd5;border-radius:10px;font-size:13px;font-weight:750;padding:8px 9px;min-height:36px;max-width:148px}
.whv-progress{background:#cde6e3;height:7px;border-radius:20px;overflow:hidden;margin-bottom:11px}
.whv-progress>span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#08a293,#69cfaf);transition:width .35s ease}
.whv-scene{border:1px solid var(--whv-border);border-radius:17px;background:#0a3c4d;padding:13px;overflow:hidden}
.whv-scenehead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 3px 10px}
.whv-number{display:inline-flex;align-items:center;justify-content:center;min-width:50px;height:29px;border-radius:10px;background:#c5fff0;color:#11564c;font-size:13px;font-weight:850;white-space:nowrap}
.whv-title{color:#f8ffff;font-size:clamp(17px,2.9vw,23px);line-height:1.26;margin:0;text-align:right;font-weight:800;flex:1}
.whv-graphic{position:relative;width:100%;aspect-ratio:1.93;background:radial-gradient(circle at 50% 20%,#206f76 0%,#0b394e 78%);border:1px solid #367681;border-radius:14px;overflow:hidden;display:grid;place-items:center}
.whv-svg{display:block;width:100%;height:100%}
.whv-subtitle{padding:13px 11px 9px;color:#edfffc;font-size:clamp(14px,2.4vw,18px);line-height:1.45;text-align:center;font-weight:550;min-height:54px}
.whv-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:2px 0}
.whv-actions:empty{display:none}
.whv-actions p{flex:0 0 100%;text-align:center;color:#e1ffed;font-size:13px;margin:4px 0}
.whv-actions button{border:2px solid #b1e7dc;border-radius:11px;padding:8px 14px;min-height:39px;background:#fff;color:#0d534f;cursor:pointer;font-size:14px;font-weight:750}
.whv-actions button:hover{background:#c2ffea}
.whv-actions button.whv-correct{background:#8befb8;color:#003c29;border-color:#8befb8}
.whv-actions button.whv-incorrect{background:#f7b4ab;color:#56261e;border-color:#f7b4ab}
.whv-controls{display:grid;grid-template-columns:1fr 1.55fr 1fr;gap:8px;padding-top:12px}
.whv-controls button{background:white;color:#155b60;border:1.5px solid #a8d8d6;border-radius:11px;padding:12px 8px;font-size:clamp(12px,2.3vw,15px);font-weight:800;cursor:pointer;min-height:46px}
.whv-controls .whv-toggle{background:linear-gradient(125deg,#0a8073,#0aa18c);color:white;border-color:#0a8073;box-shadow:0 4px 12px #0b8f7b33}
.whv-controls button:disabled{opacity:.4;cursor:default}
.whv-controls button:focus-visible,.whv-level:focus-visible,.whv-actions button:focus-visible{outline:3px solid #ffcc6b;outline-offset:2px}
.whv-status{font-size:12px!important;line-height:1.5!important;color:#3a6c71!important;text-align:center!important;margin:11px 4px 1px!important}
.whv-player[data-band="cartoon"]{background:linear-gradient(165deg,#fff7df,#e1ffef);--whv-ink:#28465e}
.whv-player[data-band="cartoon"] .whv-scene{background:#176783}
.whv-player[data-band="cartoon"] .whv-graphic{background:radial-gradient(circle at 50% 25%,#3caa98,#126681)}
.whv-player[data-band="cartoon"] .whv-graphic:after{content:"✦";position:absolute;right:12px;top:8px;color:#fff5be;font-size:24px;pointer-events:none;opacity:.7}
.whv-player[data-band="advanced"]{background:linear-gradient(145deg,#fff,#e8eef7);--whv-ink:#1d3d63}
.whv-player[data-band="advanced"] .whv-scene{background:#183b60}
.whv-player[data-band="advanced"] .whv-graphic{background:linear-gradient(145deg,#1c5577,#102e4a)}
.whv-player[data-band="advanced"] .whv-progress>span{background:linear-gradient(90deg,#4463ae,#62b7d2)}
.whv-reveal .whv-pop{animation:whvPop .7s both;transform-origin:50% 50%}
.whv-reveal .whv-stone.whv-falling{animation:whvStoneFall 4s cubic-bezier(.18,.49,.6,1) both}
.whv-reveal .whv-stone.whv-underwater{animation:whvStoneUnder 3.4s ease-in-out infinite alternate}
.whv-reveal .whv-ripple{animation:whvRipple 3.5s ease-out infinite;transform-origin:350px 172px}
.whv-reveal .whv-sun{animation:whvSun 4s ease-in-out infinite;transform-origin:105px 76px}
.whv-reveal .whv-cloud{animation:whvCloud 5.5s ease-in-out infinite alternate}
.whv-reveal .whv-vapor,.whv-reveal .whv-rain{animation:whvRise 2.5s ease-in-out infinite alternate}
@keyframes whvPop{from{opacity:0;transform:scale(.68)}to{opacity:1;transform:scale(1)}}
.whv-cartoon-face{display:none}
.whv-player[data-band="cartoon"] .whv-cartoon-face{display:block}
.whv-reveal .whv-dial-pointer{animation:whvDialTurn 1.4s ease-in-out both;transform-origin:0px 0px}
@keyframes whvDialTurn{from{transform:rotate(-130deg)}to{transform:rotate(230deg)}}
@keyframes whvStoneFall{0%,10%{transform:translate(350px,78px)}45%{transform:translate(350px,170px)}100%{transform:translate(350px,276px)}}
@keyframes whvStoneUnder{from{transform:translate(350px,246px)}to{transform:translate(350px,276px)}}
@keyframes whvRipple{0%{opacity:0;transform:scale(.4)}40%{opacity:.85}100%{opacity:0;transform:scale(2.8)}}
@keyframes whvSun{50%{transform:scale(1.09)}}
@keyframes whvCloud{from{transform:translateX(-10px)}to{transform:translateX(15px)}}
@keyframes whvRise{from{transform:translateY(0);opacity:.4}to{transform:translateY(-13px);opacity:1}}
@media(max-width:600px){
 .whv-player{padding:10px;border-radius:15px}
 .whv-header{gap:6px;align-items:flex-end}
 .whv-kicker{font-size:9px;letter-spacing:.06em}
 .whv-main-title{font-size:17px}
 .whv-level-label{font-size:10px}
 .whv-level{padding:6px 5px;font-size:11px;max-width:110px}
 .whv-scene{padding:8px;border-radius:14px}
 .whv-scenehead{padding:2px 1px 8px}
 .whv-title{font-size:16px}
 .whv-graphic{aspect-ratio:1.6}
 .whv-subtitle{font-size:13px;padding:9px 5px}
 .whv-controls{gap:5px}
 .whv-controls button{padding:9px 4px;font-size:12px}
 .whv-actions button{font-size:12px;padding:7px}
}
@media(max-width:350px){.whv-header{flex-wrap:wrap}.whv-level-label{flex-direction:row;align-items:center}.whv-controls{grid-template-columns:1fr 1.35fr 1fr}}
@media(prefers-reduced-motion:reduce){.whv-player *{animation:none!important;transition:none!important}.whv-pop{opacity:1!important}}


/* Visual Storyboard v2: true animated scene recipes for arbitrary school subjects */
.whv-label-node{transform-origin:center;animation:whvLabelReveal .7s both}
.whv-label-node.whv-focus-active rect{stroke:#f3c967;stroke-width:7}
.whv-label-node.whv-focus-muted{opacity:.38}
.whv-player .whv-graphic .whv-cycle-ring{animation:whvCycle 17s linear infinite;transform-origin:350px 181px}
.whv-player .whv-graphic .whv-flow-path{stroke-dashoffset:0;animation:whvPath 3s linear infinite}
.whv-focus{min-width:45px;padding:7px!important;border-radius:12px!important}
.whv-player[data-band="cartoon"] .whv-label-node rect{stroke-width:4}
.whv-player[data-band="advanced"] .whv-label-node rect{stroke:#96c5da}
@keyframes whvLabelReveal{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes whvCycle{to{transform:rotate(360deg)}}
@keyframes whvPath{to{stroke-dashoffset:-65}}
@media(prefers-reduced-motion:reduce){.whv-label-node,.whv-cycle-ring,.whv-flow-path{animation:none!important}}

/* V2.1 Interactive classroom check: neutral selection before submit; reveal correct/missed/wrong only after check. */
.whv-quiz-actions{display:block;padding:7px 2px 8px}
.whv-quiz-actions .whv-quiz-instruction{font-size:15px;color:#f1fff8;font-weight:700;line-height:1.4;text-align:center;margin:2px 0 13px}
.whv-quiz-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:520px;margin:0 auto}
.whv-quiz-choices .whv-quiz-option{background:#fff;color:#17515a;border:2px solid #beddd9;border-radius:13px;padding:12px 7px;min-height:52px;font-size:18px;font-weight:850;cursor:pointer;transition:background-color .15s,border-color .15s}
.whv-quiz-choices .whv-quiz-option.whv-selected{background:#e5ddff;color:#333c82;border-color:#8d7be4;box-shadow:0 0 0 2px #8d7be433}
.whv-quiz-choices .whv-quiz-option.whv-correct{background:#baf5d5;color:#064c2d;border-color:#40b47f}
.whv-quiz-choices .whv-quiz-option.whv-incorrect{background:#ffcdca;color:#672b2a;border-color:#e4827d}
.whv-quiz-choices .whv-quiz-option.whv-missed{background:#fff2b9;color:#75501c;border:2px dashed #eab95b}
.whv-quiz-choices .whv-quiz-option:disabled{opacity:1;cursor:default}
.whv-quiz-review{display:flex;justify-content:center;gap:10px;align-items:center;margin-top:15px}
.whv-quiz-review button{border-radius:13px;min-height:48px;min-width:155px;font-size:15px;font-weight:850;padding:11px 15px}
.whv-quiz-review .whv-verify{background:#bbf3dc;color:#084d39;border:2px solid #95dec1}
.whv-quiz-review .whv-verify:disabled{opacity:.47;cursor:not-allowed}
.whv-quiz-review .whv-retry{background:#fff;color:#185f66;border:2px solid #a2d9d1}
.whv-quiz-review [hidden],.whv-quiz-actions [hidden]{display:none!important}
.whv-quiz-feedback{display:block!important;max-width:620px;margin:12px auto 4px!important;padding:11px 14px;border-radius:12px;background:#e5faf3;color:#19464d!important;font-size:14px!important;font-weight:700;line-height:1.5;text-align:center}
.whv-quiz-feedback[hidden]{display:none!important}
.whv-quiz-choices .whv-quiz-option:focus-visible,.whv-quiz-review button:focus-visible{outline:3px solid #ffe58d;outline-offset:2px}
@media(max-width:500px){.whv-quiz-choices{gap:7px}.whv-quiz-choices .whv-quiz-option{min-height:48px;font-size:16px;padding:10px 4px}.whv-quiz-review button{width:100%;max-width:280px}.whv-quiz-actions .whv-quiz-instruction{font-size:13px}.whv-quiz-feedback{font-size:12px!important}}

/* V2.2: lesson-responsive teaching modes + student-controlled contextual remediation */
.whv-review-button{background:#ffe5a9!important;color:#53370e!important;border:2px solid #d9aa46!important;flex:1 1 100%;max-width:460px}
.whv-quiz-review{flex-wrap:wrap}
.whv-coach-preview{margin:12px auto 0;padding:12px 14px;border-radius:14px;max-width:620px;border:1px solid #9ed8d2;background:#e9fff6;color:#12544f;font-size:14px;line-height:1.5;font-weight:650;text-align:left}
.whv-remediation{margin:15px 3px 4px;border:2px solid #ffcf70;border-radius:16px;background:#fff4cf;color:#394b47;padding:14px;font-size:15px;line-height:1.55}
.whv-remediation strong{display:block;font-size:18px;color:#164f48;margin-bottom:7px}
.whv-remediation p{margin:3px 0 11px}
.whv-remediation button{display:block;border-radius:12px;background:#126b66;color:#fff;border:none;padding:12px 16px;font-weight:800;min-height:46px;cursor:pointer}
.whv-player[data-band="cartoon"] .whv-cartoon-card{filter:drop-shadow(0 5px 8px #124b6444);animation:whvCartoonAppear .6s both}
@keyframes whvCartoonAppear{from{opacity:0}to{opacity:1}}
.whv-player[data-band="advanced"] .whv-svg text{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.whv-player[data-band="cartoon"] .whv-subtitle{font-size:clamp(15px,2.6vw,20px);font-weight:750}
.whv-player[data-band="advanced"] .whv-subtitle{border-left:3px solid #94d4eb;text-align:left;padding-left:15px;margin:8px}
.whv-player[data-band="cartoon"] .whv-svg .whv-mascot{animation:whvMascotWave 2.5s ease-in-out infinite;transform-origin:75px 68px}
.whv-player[data-band="cartoon"] .whv-graphic{background:linear-gradient(135deg,#50bd9e,#125c87)}
.whv-player[data-band="advanced"] .whv-graphic{background:linear-gradient(135deg,#183650,#09293e)}
@keyframes whvMascotWave{50%{transform:translate(75px,63px) rotate(-4deg)}}
@media(max-width:600px){.whv-coach-preview{font-size:12px}.whv-remediation{font-size:13px;padding:10px}.whv-remediation strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.whv-player[data-band="cartoon"] .whv-svg .whv-mascot{animation:none!important}}

/* Research Lab animated preview uses the same responsive lesson-scene teaching surface. */
.sf-research-visual-host{width:100%;min-width:0;margin:12px 0 9px}
.sf-research-visual-host .whv-player{width:100%;max-width:100%;margin:0}
.sf-research-preview-caption{font-size:12px;line-height:1.45;color:#567b7b;margin:7px 0 2px}
.sf-research-preview-btn{min-height:44px}
.sf-research-visual-host[hidden]{display:none!important}

/* Research Lab: readable, tappable labels outside the scaled SVG. */
.whv-actions .whv-focus{font-weight:750;white-space:normal;overflow-wrap:anywhere;line-height:1.35;text-align:left;max-width:100%;flex:1 1 165px;padding:11px 13px;min-height:45px}
.whv-actions .whv-focus.whv-correct{background:#b9f4d9;color:#164c40;border-color:#28b48d}
@media(max-width:520px){.whv-actions .whv-focus{flex:1 1 100%;font-size:13px;text-align:left}}

/* WHENHOW V2.4: subject-based cinematic water-cycle motion */
.whv-reveal .whv-water-up{animation:whvWaterUp 2.5s linear infinite}
.whv-reveal .whv-water-cloudlet{animation:whvCloudlet 2.1s ease-in-out infinite alternate}
.whv-reveal .whv-water-rain{animation:whvRainfall 1.25s linear infinite}
.whv-reveal .whv-water-cloud{animation:whvCloudBreathe 5s ease-in-out infinite alternate;transform-origin:465px 115px}
.whv-reveal .whv-water-sun{animation:whvSunGlow 3s ease-in-out infinite alternate;transform-origin:85px 73px}
.whv-reveal .whv-water-wave{animation:whvWaveMove 4s ease-in-out infinite alternate}
.whv-reveal .whv-water-flow{animation:whvPath 3s linear infinite}
@keyframes whvWaterUp{0%{opacity:0;transform:translateY(16px) scale(.5)}35%{opacity:1}100%{opacity:0;transform:translateY(-86px) scale(1.1)}}
@keyframes whvCloudlet{0%{opacity:.15;transform:scale(.45)}100%{opacity:.95;transform:scale(1.5)}}
@keyframes whvRainfall{0%{opacity:0;transform:translateY(-15px)}20%{opacity:1}100%{opacity:0;transform:translateY(75px)}}
@keyframes whvCloudBreathe{100%{transform:translateX(10px) scale(1.025)}}
@keyframes whvSunGlow{100%{transform:scale(1.09)}}
@keyframes whvWaveMove{100%{transform:translateX(20px)}}
@media (prefers-reduced-motion:reduce){.whv-reveal .whv-water-up,.whv-reveal .whv-water-cloudlet,.whv-reveal .whv-water-rain,.whv-reveal .whv-water-cloud,.whv-reveal .whv-water-sun,.whv-reveal .whv-water-wave,.whv-reveal .whv-water-flow{animation:none}}

/* WHENHOW V4.9: uncluttered research slides; each approved step stays complete. */
.whv-player[data-source="research-project"] .whv-header{align-items:stretch;flex-direction:column;gap:12px}
.whv-player[data-source="research-project"] .whv-main-title{overflow-wrap:anywhere;max-width:100%;font-size:clamp(18px,4vw,27px);line-height:1.25}
.whv-player[data-source="research-project"] .whv-level-label{display:flex;flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}
.whv-player[data-source="research-project"] .whv-level{max-width:195px;min-width:150px}
.whv-player[data-source="research-project"] .whv-scene{padding:15px}
.whv-player[data-source="research-project"] .whv-title{text-align:left;font-size:clamp(17px,3.8vw,22px)}
.whv-player[data-source="research-project"] .whv-graphic{aspect-ratio:1.94;background:#103d54}
.whv-player[data-source="research-project"] .whv-subtitle{font-size:clamp(15px,3.3vw,18px);line-height:1.6;text-align:left;font-weight:550;padding:17px 9px 9px;overflow-wrap:anywhere;white-space:normal}
@media(max-width:600px){
 .whv-player[data-source="research-project"] .whv-header{gap:10px}
 .whv-player[data-source="research-project"] .whv-level-label{justify-content:space-between;font-size:12px}
 .whv-player[data-source="research-project"] .whv-level{max-width:60%;min-width:135px;font-size:12px}
 .whv-player[data-source="research-project"] .whv-graphic{aspect-ratio:1.9}
 .whv-player[data-source="research-project"] .whv-scene{padding:11px}
 .whv-player[data-source="research-project"] .whv-subtitle{font-size:15px;line-height:1.52;padding:14px 5px}
}


/* Research Lab Visual Scene Explainer v5.0 — animated real-object diagrams, not step cards. */
.whv-player[data-source="research-project"] .whv-graphic{background:#dff6ee;aspect-ratio:1.88;border-color:#b6d5c8}
.whv-player[data-source="research-project"] .whv-subtitle{background:transparent;color:#f2fffb;font-size:clamp(16px,3vw,19px);line-height:1.5;font-weight:680;padding:17px 8px 12px;text-align:center}
.whv-player[data-source="research-project"] .whv-scene{background:#0c4050}
.whv-player .whv-research-detail{border:1px solid #7abbb2;border-radius:12px;background:rgba(236,255,250,.09);padding:9px 13px;color:#e9fdf7;font-size:13px;line-height:1.5;margin:6px 3px 5px}
.whv-player .whv-research-detail summary{cursor:pointer;font-weight:680;outline-offset:2px}
.whv-player .whv-research-detail p{margin:9px 0 0;overflow-wrap:anywhere}
.whv-research-scene .whv-sun-spot{transform-origin:90px 70px;animation:whvResearchSun 4s ease-in-out infinite alternate}
.whv-research-scene .whv-light-path{animation:whvResearchRay 2s linear infinite}
.whv-research-scene .whv-panel-install{animation:whvResearchPanel 2.7s ease-in-out infinite alternate;transform-origin:center}
.whv-research-scene .whv-scene-hand{animation:whvResearchHand 2.7s ease-in-out infinite alternate}
.whv-research-scene .whv-tool-place{animation:whvResearchTool 3s ease-in-out infinite alternate}
.whv-research-scene .whv-roof-cover{animation:whvResearchRoof 3s ease-in-out infinite alternate}
.whv-research-scene .whv-solar-panel{animation:whvResearchPanel 3.6s ease-in-out infinite alternate}
.whv-research-scene .whv-water-drop{animation:whvResearchDrop 1.6s ease-in-out infinite}
@keyframes whvResearchSun{to{filter:brightness(1.07);opacity:.82;transform:scale(1.025)}}
@keyframes whvResearchRay{to{stroke-dashoffset:-48}}
@keyframes whvResearchPanel{from{transform:translateY(-30px);opacity:.75}to{transform:translateY(0);opacity:1}}
@keyframes whvResearchHand{from{transform:translate(30px,-30px)}to{transform:translate(0,0)}}
@keyframes whvResearchTool{from{transform:translateY(-22px)}to{transform:translateY(0)}}
@keyframes whvResearchRoof{from{opacity:.6}to{opacity:1}}
@keyframes whvResearchDrop{from{opacity:.2;transform:translateY(-12px)}to{opacity:1;transform:translateY(5px)}}
@media(max-width:600px){
 .whv-player[data-source="research-project"] .whv-graphic{aspect-ratio:1.72}
 .whv-player[data-source="research-project"] .whv-subtitle{font-size:15px;line-height:1.45;padding:12px 5px}
 .whv-player .whv-research-detail{font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){
 .whv-research-scene *{animation:none!important}
}
