html,body{height:100%;width:100%;overflow:hidden;background:#c6e8e7}#world-canvas{display:none}body{background-image:var(--scene);background-size:cover;background-position:center}header{position:fixed;z-index:20;right:20px;top:20px;left:auto;border:0;padding:0;gap:8px;margin:0;height:54px}.brand,#map-nav{display:none}nav{gap:10px}.hud-button{border:0;border-radius:50%;width:52px;height:52px;background:#fff;color:#267788;font-size:24px;box-shadow:0 4px #3e88952a}#sound-nav span{display:none}main{height:100dvh;width:100%;max-width:none;padding:0;margin:0}footer{display:none}.lesson-shell{height:100%;padding:0;overflow:auto}.lesson-top{position:absolute;top:17px;left:20px;z-index:25;margin:0}.lesson-top .eyebrow,.lesson-count{display:none}.back{width:52px;height:52px;border-radius:50%;background:white;font-size:34px;color:#23768a;box-shadow:0 4px #3e889533}.lesson-stage{width:72%;min-height:100%;border:0;border-radius:0 65px 65px 0;background:#fff;box-shadow:none;overflow:hidden}.scene-banner{display:none}.lesson-content{padding:105px 45px 35px;display:block}.question-pane h1{font-size:34px;line-height:1.3;text-align:center;letter-spacing:0}.question-pane .intro{font-size:21px;line-height:1.7;text-align:center}.question-pane .eyebrow{display:none}.question-pane .bottom-note{border:0;background:#f2f8f5;font-size:15px}.lesson-progress{justify-content:center;margin:0 auto 45px;max-width:180px;gap:10px}.lesson-progress i{flex:none;width:17px;height:17px;border:3px solid #2980a0;background:white;border-radius:50%}.lesson-progress i.filled{background:#2980a0}.lesson-title{text-align:center;font-size:10px;margin-bottom:30px}.question-prompt{min-height:80px}.choices{gap:20px;margin:35px 0}.choice{font-family:Outfit;font-size:46px;min-height:150px;border:3px solid #d0e4e5;border-radius:25px;background:white;color:#23596b;box-shadow:0 6px #d4e4e3}.choice b{display:none}.choice.selected{border-color:#318bad;background:#effaff}.choice.correct{border-color:#7eb76e;background:#f1fae9}.primary{background:#2b88aa;color:white;border-radius:28px;box-shadow:0 5px #196b8d;border:0;padding:17px 32px;font-size:18px}.question-actions{justify-content:center;gap:20px;margin-top:30px}.listen{display:block;margin:0 auto;background:#eaf6f8;border:0;border-radius:28px;color:#297b94;padding:13px 20px;font-size:14px}.feedback{border:0;background:#eff8ed;border-radius:20px;font-size:16px;text-align:center}.feedback.retry{background:#fff7e9}.speak-status{display:none}.coach{position:fixed;right:3%;bottom:50px;width:21%;background:none;border:0;padding:0;text-align:center;box-shadow:none}.guide-avatar{width:100%;height:200px;border:0;margin-bottom:20px;overflow:hidden;border-radius:50%}.guide-avatar img{width:100%;height:100%;object-fit:cover;object-position:29% center}.coach h3{color:#fff;text-shadow:0 2px #27748555;font-size:22px}.coach>p,.coach>.source-label,#guide-film{display:none}.coach button{width:100%;background:#fff;border:0;border-radius:28px;box-shadow:0 5px #27748530;color:#287b8a;font-size:14px;padding:13px;margin:8px 0}.coach-message{background:#ffffffee;border:0;border-radius:22px;padding:16px;color:#47747b;font-size:14px;line-height:1.6;margin-top:20px}.source-label{font-size:9px}.letter-display{background:#f5faf8;font-size:54px;border-radius:25px}.story{font-size:21px;max-height:240px;overflow:auto;background:#f4faf7;border:0}.build-slots{display:flex;justify-content:center;gap:15px;padding:20px;margin:20px 0;min-height:80px}.build-slots span{font:40px Outfit;min-width:55px;border-bottom:3px solid #78b8c1;text-align:center}.tile-tray{display:flex;justify-content:center;gap:15px}.tile{font:38px Outfit;min-width:80px;min-height:80px;background:white;border:3px solid #c5e3e6;border-radius:20px;color:#277185;box-shadow:0 5px #c5e3e6}.tile:disabled{opacity:.3}.badge-big{font-size:80px}.celebrate{text-align:center}.celebrate h1{font-size:38px}.complete-actions{display:flex;justify-content:center;gap:15px;flex-wrap:wrap}.break-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:450px;margin:25px auto}.memory{font-size:40px;height:90px;background:#e9f5f5;border:2px solid #c9e1e2;border-radius:20px}.grown{height:100%;overflow:auto;padding:100px 7% 40px;background:#fff}.grown h1{font-size:35px}.grown .notes-grid{grid-template-columns:1fr 1fr}.grown .metric{background:#f3f9f5}.question-pane>.tiny{text-align:center}.question-pane>.eyebrow+.question-actions{margin-top:35px}
@media(max-width:900px){.lesson-stage{width:72%;border-radius:0 45px 45px 0}.lesson-content{padding:95px 25px 30px}.question-pane h1{font-size:29px}.choice{font-size:36px;min-height:130px}.choices{gap:12px}.coach{right:2%;width:23%}.guide-avatar{height:150px}.coach h3{font-size:18px}.coach button{font-size:12px}.coach-message{font-size:12px;padding:13px}}
@media(orientation:portrait){.lesson-stage{width:100%;min-height:78%;border-radius:0 0 40px 40px;padding-bottom:15px}.lesson-content{padding:95px 30px 30px}.coach{position:relative;width:100%;right:auto;bottom:auto;display:flex;gap:12px;align-items:center;padding:15px 20px;flex-wrap:wrap}.guide-avatar{width:75px;height:75px;margin:0;flex-shrink:0}.coach h3{display:none}.coach button{width:auto;flex:1;min-height:48px;margin:0}.coach-message{width:100%;font-size:13px;margin:0;padding:12px}.choices{margin:25px 0}.choice{min-height:120px}.lesson-stage:has(.celebrate){min-height:100%}.grown .notes-grid{grid-template-columns:1fr}}
@media(max-height:650px) and (orientation:landscape){.lesson-content{padding-top:80px}.question-pane h1{font-size:26px}.lesson-progress{margin-bottom:20px}.choices{margin:20px 0}.choice{min-height:100px;font-size:34px}.question-prompt{min-height:0}.guide-avatar{height:115px}.coach{bottom:20px}.coach-message{font-size:11px;margin-top:10px}.letter-display{font-size:36px;padding:10px}.story{max-height:120px}.question-actions{margin-top:20px}}

.guide-avatar{background:#fff;border:8px solid #fff;box-shadow:0 5px 0 #187e8c22;aspect-ratio:1;height:auto;overflow:hidden;border-radius:50%;isolation:isolate}.guide-avatar video{width:100%;height:100%;aspect-ratio:1;display:block;object-fit:cover;border-radius:50%;background:#fff;pointer-events:none}@media(orientation:portrait){.guide-avatar{width:75px;height:75px;border-width:3px;flex:none}}
.audio-prompt{font-size:20px!important;color:#588895;font-weight:500;margin:0 0 24px}.sound-button{width:130px;min-height:130px;padding:15px;background:#268ca0;color:white;border-radius:29px;box-shadow:0 7px #176c83;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.sound-symbol{font-size:51px;line-height:1}.sound-button small{font-size:12px}.sound-button.playing .sound-symbol{animation:pulse-sound .6s ease-in-out infinite alternate}.letter-choices{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:17px;margin:34px 0}.letter-choices .choice{width:78px;min-height:78px;height:78px;border-radius:50%;font-size:39px;border:2px solid #c5e3e5;box-shadow:0 5px #bad5d6;background:#edf8f8}.letter-choices .choice.selected{background:#2992a8;color:white;border-color:#1f819a}.letter-choices .choice.correct{background:#b7df91;color:#396824;border-color:#8cb967}.letter-choices .choice.wrong{background:#f8e8d1;color:#ad8b5d;border-color:#e5cdac}.lesson-progress i.review{background:#efcb83;border-color:#dfad52}@keyframes pulse-sound{to{transform:scale(1.1)}}@media(orientation:portrait){.sound-button{width:110px;min-height:110px}.letter-choices{margin:25px 0}.letter-choices .choice{width:74px;min-height:74px;height:74px}.audio-prompt{margin-bottom:20px}}@media(max-height:650px) and (orientation:landscape){.sound-button{width:90px;min-height:90px}.sound-symbol{font-size:37px}.sound-button small{font-size:10px}.letter-choices{margin:20px 0}.letter-choices .choice{width:65px;height:65px;min-height:65px;font-size:34px}.audio-prompt{margin-bottom:15px!important}}
.welcome-screen{min-height:calc(100dvh - 100px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:28px;text-align:center;background:#fffaf0;border-radius:32px}.welcome-screen h1{font-size:clamp(24px,4vw,42px);margin:0}.studio-logo{width:210px;max-height:65px}.course-logo{width:300px;max-width:80vw}.safe-logo{width:190px}.welcome-robot{width:230px;height:230px;border-radius:50%;background:white;overflow:hidden}.welcome-robot video{width:100%;height:100%;object-fit:cover}#welcome-film{max-height:60dvh;max-width:90%;border-radius:40px}#start-profile{display:flex;flex-direction:column;gap:16px;width:min(360px,90%)}#learner-name{font:inherit;font-size:24px;border:2px solid #237b80;border-radius:18px;padding:15px;text-align:center}.brand img{height:45px;object-fit:contain}body[data-view=welcome] footer{display:none}
.hub-logo{width:330px;max-width:90%;display:block;margin:0 auto 35px}.learning-hub{text-align:center}.hub-actions{max-width:400px;margin:30px auto;display:flex;flex-direction:column;gap:18px}.hub-actions button{min-height:62px;font-size:20px;border-radius:25px}.adaptive-choices{display:flex;flex-direction:column;gap:14px}.adaptive-choices .choice{font-size:clamp(18px,2.4vw,28px);min-height:70px;padding:16px;text-align:center}.support-note{padding:18px;border-radius:18px;background:#fff4d9;font-size:20px;line-height:1.6}.review-list{font-size:17px;text-align:left;margin:20px 0}.review-list p{padding:15px;background:#f4f8f6;border-radius:15px}#grade-start{font:inherit;padding:12px;border-radius:12px;margin:15px}body[data-view=welcome] main{overflow:auto}.welcome-screen{min-height:100dvh;box-sizing:border-box}@media(max-height:800px){.welcome-screen{gap:12px;padding:24px}.welcome-robot{width:170px;height:170px}.course-logo{width:260px}.studio-logo{width:180px}.welcome-screen h1{font-size:28px}}
.coach:has(#hint:disabled) #hint,.coach:has(#hint:disabled) #ai-hint{display:none}
@media(orientation:portrait){.lesson-stage{min-height:100%;padding-bottom:135px}.lesson-content{padding-bottom:145px}.coach{position:fixed;left:0;right:0;bottom:0;width:100%;z-index:15;display:grid;grid-template-columns:74px 1fr 1fr;gap:8px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#187b8c;border-radius:26px 26px 0 0;box-shadow:0 -5px 20px #15576618}.guide-avatar{grid-column:1;grid-row:1 / 3;width:72px;height:72px;align-self:center}.coach button{font-size:12px;min-height:42px;margin:0;padding:10px 7px;flex:none;line-height:1.3}.coach-message{grid-column:2 / 4;width:auto;font-size:12px;padding:9px;line-height:1.3;margin:0}.coach:has(#hint:disabled) .coach-message{grid-row:1 / 3;align-self:center}.hub-actions{margin-top:24px;gap:14px}.hub-actions button{font-size:18px}.adaptive-choices .choice{font-size:20px;min-height:64px}.question-pane h1{font-size:26px}.question-prompt{min-height:0}}

.entry-studio-logo{width:min(540px,83vw);margin-bottom:42px}.entry-course-label{font-size:12px;letter-spacing:3px;color:#64888a;margin-top:28px}.opening-cinema{height:100dvh;width:100%;display:flex;align-items:center;justify-content:center;background:#fffbf6;position:relative;isolation:isolate}.opening-cinema #welcome-film{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:0;background:#fffbf6}.opening-skip{position:absolute;bottom:calc(24px + env(safe-area-inset-bottom));right:24px;z-index:2;padding:14px 22px;border:1px solid #d6e1df;border-radius:26px;background:#ffffffed;color:#215c65;font:600 16px system-ui;min-height:48px;box-shadow:0 3px 12px #234b5112}.opening-status{position:absolute;bottom:85px;left:5%;right:5%;text-align:center;color:#205f6a;font-size:16px}.opening-cinema #opening-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.opening-cinema #opening-play[hidden]{display:none}@media(orientation:portrait){.entry-studio-logo{margin-bottom:25px}.welcome-screen h1{font-size:26px}.opening-skip{right:15px;bottom:calc(20px + env(safe-area-inset-bottom))}}
body[data-view=welcome] #grown-nav{display:none}

.opening-pause,.opening-captions{position:absolute;z-index:2;background:#ffffffed;border:1px solid #d6e1df;color:#215c65;border-radius:24px;padding:12px 16px;font:700 16px system-ui;min-width:48px;min-height:48px}.opening-pause{left:24px;top:24px}.opening-captions{left:24px;bottom:calc(24px + env(safe-area-inset-bottom))}.opening-captions[aria-pressed=true]{background:#215c65;color:white}

.level-film-title{position:absolute;top:22px;left:90px;right:100px;text-align:center;background:#ffffffed;color:#205f6a;border-radius:20px;padding:12px 20px;box-shadow:0 4px 22px #173e4010}.level-film-title h1{font-size:24px;margin:0 0 4px}.level-film-title p{font-size:15px;margin:0}.level-cinema .opening-status{background:#ffffffed;border-radius:18px}@media(orientation:portrait){.level-film-title{top:90px;left:20px;right:20px;padding:15px}.level-film-title h1{font-size:23px}.level-film-title p{font-size:14px}}
.party-layer{position:fixed;inset:0;z-index:90;pointer-events:none;overflow:hidden}.party-piece{position:absolute;left:var(--left);animation-delay:var(--delay);animation-duration:var(--duration);animation-fill-mode:both;animation-timing-function:cubic-bezier(.15,.55,.5,1)}.party-confetti{top:-30px;width:10px;height:18px;border-radius:3px;background:var(--colour);animation-name:paper-party}.party-balloon{bottom:-110px;width:40px;height:52px;background:radial-gradient(circle at 30% 28%,#ffffffa0,var(--colour) 45%);border-radius:50% 50% 47% 47%;animation-name:balloon-party;box-shadow:inset -4px -5px 8px #00000015}.party-balloon:after{content:'';position:absolute;top:50px;left:20px;height:50px;border-left:1px solid #ffffffa0}.party-star{top:-30px;font-size:28px;color:var(--colour);text-shadow:0 0 18px var(--colour);animation-name:paper-party}.party-quiet{display:grid;place-items:center}.party-glow{font:100px system-ui;color:#ffd668;text-shadow:0 0 70px #ffad4b80;animation:quiet-party 1.5s ease-in-out both}@keyframes paper-party{0%{transform:translate(0,-30px) rotate(0deg);opacity:0}10%{opacity:1}100%{transform:translate(var(--drift),110dvh) rotate(var(--spin));opacity:0}}@keyframes balloon-party{0%{transform:translate(0,0);opacity:0}12%{opacity:1}100%{transform:translate(var(--drift),-125dvh);opacity:0}}@keyframes quiet-party{0%,100%{opacity:0;transform:scale(.85)}40%,70%{opacity:1;transform:scale(1)}}.party-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px auto;max-width:650px}.party-pick{background:#fff;border:2px solid #d8e6e3;border-radius:22px;padding:14px 8px;color:#245f69;min-height:84px;font:600 15px system-ui}.party-pick span{display:block;font-size:28px;margin-bottom:6px}.party-pick[aria-pressed=true]{background:#fff6cf;border-color:#f5bf41;box-shadow:0 4px 0 #d8a32c}.party-preview{font-size:13px;color:#477984}@media(max-width:600px){.party-picker{grid-template-columns:repeat(2,1fr)}}
body[data-view=clubhouse]{background:#0a1030}body[data-view=clubhouse] main{overflow:auto}.clubhouse-hub{position:relative;min-height:100dvh;overflow:hidden;background:#0b1037 url('/assets/robot-cat-clubhouse.png') center/cover no-repeat;color:white}.clubhouse-shade{position:absolute;inset:0;background:linear-gradient(90deg,#080c30ed 0%,#0a1038db 25%,#0a103877 44%,transparent 65%)}.clubhouse-copy{position:relative;z-index:2;max-width:650px;width:45%;padding:7vh 4vw 6vh}.clubhouse-logo{width:285px;max-width:85%;background:#fffbed;border-radius:22px;padding:13px 18px;box-shadow:0 6px 30px #03061a45;margin-bottom:34px}.clubhouse-kicker{font:700 12px system-ui;letter-spacing:2.5px;color:#69efd8}.clubhouse-copy h1{font-size:clamp(34px,4.2vw,68px);line-height:1.08;letter-spacing:-1.7px;margin:16px 0 20px;color:#fffaf0}.clubhouse-lead{font-size:clamp(16px,1.6vw,23px);line-height:1.6;color:#dbe1ff}.clubhouse-actions{display:flex;flex-direction:column;gap:12px;max-width:370px;margin:28px 0 18px}.clubhouse-main{border:0;background:linear-gradient(135deg,#ffe778,#ffb547);color:#183a4d;border-radius:24px;min-height:64px;padding:16px 22px;font:750 20px system-ui;box-shadow:0 6px 0 #b97833,0 9px 30px #ffbc3945}.clubhouse-other{border:1px solid #99a4ff55;background:#3f4f9e8f;color:white;border-radius:21px;padding:14px 20px;font:600 17px system-ui;min-height:52px;backdrop-filter:blur(8px)}.clubhouse-small-actions{display:flex;flex-wrap:wrap;gap:10px;max-width:410px}.clubhouse-small-actions button{border:1px solid #9dabff44;background:#10183b99;border-radius:18px;color:#eef5ff;padding:11px 13px;min-height:44px;font:500 13px system-ui}.clubhouse-note{font-size:11px;line-height:1.6;color:#b3bfe7;max-width:350px;margin:22px 0 0}.pupil-name{position:absolute;z-index:1;bottom:6%;background:#121b49ce;border:1px solid #ffe36e66;color:#fff8d6;padding:10px 20px;border-radius:20px;text-align:center;backdrop-filter:blur(10px)}.pupil-name span{font-size:20px;font-weight:700;display:block}.pupil-name small{font-size:11px;color:#c0eee7}.robot-label{left:49%}.cat-label{right:9%}#party-dialog{width:min(740px,94vw);text-align:center;border:0;border-radius:32px;padding:36px 24px;background:#fffaf0;box-shadow:0 25px 90px #05092780}#party-dialog::backdrop{background:#060c2cbb;backdrop-filter:blur(8px)}.party-heading{font-size:21px;color:#2b6b75;margin-top:25px}.level-film-title{border:1px solid #d5e3de;background:#fffef8f0}.lesson-stage{border-right:3px solid #ffce6670}.lesson-progress i.filled{background:#d29bff;border-color:#825dba}.choice.selected{border-color:#946ae6;box-shadow:0 6px #6650a6;background:#f3edff}.choice.correct{border-color:#46bd9b;background:#e3fff2}.primary{background:linear-gradient(135deg,#308cad,#6655c9);box-shadow:0 5px #394d87}.coach h3{color:#fff5d6}.coach-message{background:#fffdf1f2}.party-pick:focus-visible,.clubhouse-hub button:focus-visible{outline:4px solid #75f5e4;outline-offset:5px}@media(orientation:portrait){.clubhouse-hub{background-size:auto 70%;background-position:center top;background-color:#0b1036;background-repeat:no-repeat;padding-top:39vh}.clubhouse-shade{background:linear-gradient(0deg,#0b1036 42%,#0b1036e8 54%,transparent 78%)}.clubhouse-copy{width:100%;max-width:none;padding:22px 26px 40px}.clubhouse-logo{width:225px;margin:0 0 20px}.clubhouse-copy h1{font-size:39px;line-height:1.1}.clubhouse-lead{font-size:17px}.clubhouse-actions{max-width:none}.clubhouse-small-actions{max-width:none}.clubhouse-note{max-width:none}.pupil-name{top:29vh;bottom:auto;padding:7px 14px}.pupil-name span{font-size:15px}.pupil-name small{font-size:10px}.robot-label{left:27%}.cat-label{right:7%}}@media(max-height:720px) and (orientation:landscape){.clubhouse-copy{padding-top:40px}.clubhouse-logo{width:215px;margin-bottom:16px}.clubhouse-copy h1{font-size:38px}.clubhouse-lead{font-size:15px}.clubhouse-actions{margin:16px 0 14px;gap:8px}.clubhouse-main{min-height:52px;font-size:17px;padding:13px 18px}.clubhouse-other{min-height:44px;font-size:14px;padding:10px 16px}.clubhouse-note{margin-top:15px}}

.pip-happy{animation:pip-happy .7s ease-in-out} @keyframes pip-happy{30%{transform:rotate(-2deg) translateY(-3px)}65%{transform:rotate(2deg)}} @media(prefers-reduced-motion:reduce){.pip-happy{animation:none}}
.clubhouse-logo{filter:drop-shadow(0 3px 12px #ffffff55);background:#fff9ec;border-radius:20px;padding:10px;max-width:430px;width:100%}
@media(orientation:portrait){.clubhouse-hub{background-position:right top}.clubhouse-logo{max-width:390px}.robot-label{left:16%}.cat-label{right:16%}}
.clubhouse-logo{width:350px;max-height:190px;max-width:100%;object-fit:contain;background:transparent;padding:0;border-radius:0;filter:drop-shadow(0 8px 18px #02061caa);animation:logo-arrive .85s cubic-bezier(.16,1.2,.3,1) both}.entry-studio-logo,.course-logo{filter:drop-shadow(0 7px 20px #02061c66);animation:logo-arrive .9s cubic-bezier(.16,1.2,.3,1) both}.welcome-screen{background:radial-gradient(ellipse at 50% 10%,#303766,#11162f 75%);color:#fff8e5}.welcome-screen .tiny,.welcome-screen label,.entry-course-label{color:#d2d5ed}.welcome-screen input{color:#203d47}.course-logo{width:min(460px,84vw);max-height:250px;object-fit:contain}.entry-studio-logo{width:min(420px,80vw);max-height:250px;object-fit:contain}@keyframes logo-arrive{0%{opacity:0;transform:translateY(18px) scale(.86)}65%{opacity:1;transform:translateY(-3px) scale(1.025)}100%{opacity:1;transform:none}}@media(max-height:800px) and (orientation:landscape){.clubhouse-logo{width:260px;max-height:143px;margin-bottom:16px}.clubhouse-copy{padding-top:24px}.clubhouse-copy h1{font-size:38px;line-height:1.08}.clubhouse-lead{font-size:16px;margin-top:14px}.clubhouse-actions{margin-top:16px;margin-bottom:16px;gap:8px}.clubhouse-main{min-height:52px;padding:13px 18px}.clubhouse-other{min-height:44px;padding:10px 16px}.clubhouse-note{margin-top:15px}}@media(orientation:portrait){.clubhouse-logo{width:330px;max-height:183px}}@media(prefers-reduced-motion:reduce){.clubhouse-logo,.entry-studio-logo,.course-logo{animation:none}}
.welcome-screen h1{letter-spacing:-.025em;line-height:1.2}.welcome-screen p{line-height:1.5}
.clubhouse-main,.clubhouse-other,.choice,.tile,.party-pick{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.clubhouse-main:active,.clubhouse-other:active,.choice:active,.tile:active,.party-pick:active{transform:translateY(2px) scale(.98)}.choice.selected{animation:answer-pop .24s ease-out}.clubhouse-logo{animation:logo-arrive .85s cubic-bezier(.16,1.2,.3,1) both,logo-float 6s 1s ease-in-out infinite}@keyframes answer-pop{50%{transform:scale(1.045)}}@keyframes logo-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.clubhouse-logo,.choice.selected{animation:none}.clubhouse-main,.clubhouse-other,.choice,.tile,.party-pick{transition:none}}
.opening-cinema,.opening-cinema video{background:#11162f}.opening-cinema video{object-fit:contain}
.opening-cinema .opening-status{color:#fff8e5;background:#11162fdd;border-radius:14px}.opening-cinema .opening-status:empty{display:none}
.question-actions button[hidden]{display:none!important}

.grade-dialog{max-width:520px;border:0;border-radius:28px;padding:32px;color:#173e44}.grade-dialog::backdrop{background:#071b36aa}.grade-options{display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}#learner-grade{width:100%;min-height:52px;border-radius:16px;padding:12px;font:inherit;margin-bottom:20px}
/* Audit release: reachable content, readable feedback and safe-area controls. */
header{top:calc(16px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right))}.lesson-top{top:calc(16px + env(safe-area-inset-top));left:calc(16px + env(safe-area-inset-left))}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:4px solid #197c9a;outline-offset:4px}.clubhouse-hub button:focus-visible{outline-color:#75f5e4}
.feedback-pause{min-height:44px;margin:8px 0 0;color:#255365;text-decoration:underline}.feedback{line-height:1.6}.question-prompt:focus{outline:none}
.coach{max-height:calc(100dvh - 105px);overflow:auto}.coach:has(#hint:disabled) #hint,.coach:has(#hint:disabled) #ai-hint{display:block}.coach button:disabled{opacity:.55}
.lesson-library{height:100dvh;overflow:auto;padding:100px 5vw 50px;background:#f9fcf9;color:#173e44}.lesson-library>p{max-width:750px;line-height:1.6}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:25px 0}.library-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;border:2px solid #cee3e4;background:#fff;border-radius:24px;min-height:140px;padding:22px;color:#23596b;font:inherit}.library-card>span{font-size:30px}.library-card>small{font-size:15px;line-height:1.5}.grade-dialog li{margin:12px 0;line-height:1.5}.grade-dialog{max-height:calc(100dvh - 40px);overflow:auto}.grade-dialog .tiny{line-height:1.5}
@media(orientation:portrait){.lesson-stage{padding-bottom:0}.lesson-content{padding-bottom:calc(var(--coach-height,180px) + 35px)}.coach{max-height:42dvh}.lesson-library{padding-bottom:50px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.library-grid{grid-template-columns:1fr}.lesson-content{padding-left:18px;padding-right:18px}.grade-dialog{padding:22px;width:calc(100vw - 32px)}.letter-choices{gap:12px}.letter-choices .choice{width:66px;min-height:66px;height:66px}}
@media print{html,body{height:auto;overflow:visible;background:white}header,.grown button,.grown a{display:none}main,.grown{height:auto;overflow:visible;padding:0}.grown .table-wrap{overflow:visible}.grown{font-size:12px}.grown .notes-grid{display:block}}
.coach button,button.text-link{min-height:44px}.speak-status{display:block;text-align:center;font:12px/1.5 system-ui;color:#315f6c;margin:12px 0}.speak-status:empty{display:none}@media(prefers-reduced-motion:reduce){.party-glow,.sound-button.playing .sound-symbol{animation:none}}
