/* v21 uses the existing Nuit bleue palette and Exo 2. */
:root{--view-height21:100dvh;--view-top21:0px;--t-halo:.822s}
.brand21{border:0;background:none;color:var(--text,#EFF5FF);padding:0;display:flex;align-items:center;gap:10px;font:inherit;text-align:left;flex:none}.brand21 img{width:42px;height:42px;object-fit:contain}.brand21 span{font-size:clamp(17px,4.8vw,24px);font-weight:750;white-space:nowrap}.brand21 b{color:#FA8228}
#phone .lic b{display:none}.lesson-no21{font-variant-numeric:tabular-nums;color:#FA8228;font-weight:700;letter-spacing:.05em}.validated21{flex:none;margin-left:auto;display:grid;place-items:center;width:36px;height:36px}.les .grow{min-width:0}.les .t{overflow-wrap:normal!important;word-break:normal!important}
.fab,.tool:has(img){background:transparent!important;box-shadow:none!important;border-color:transparent!important}.fab img{width:100%;height:100%;object-fit:contain}.tool .ico:has(img){background:none!important;border:0!important;padding:0!important}.tools .tool.ok{box-shadow:inset 0 0 0 1.5px #FA8228!important;border-radius:18px}.tools .tool{position:relative}.tools .ck{display:none}
.lesson-wait21{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;background:radial-gradient(ellipse at 50% 45%,#14235f55,transparent 65%),#0B1437;color:#EFF5FF;opacity:1;transition:opacity 288ms ease}.lesson-wait21 img{width:114px;height:114px;border-radius:50%;animation:halo-breath21 var(--t-halo) ease-in-out infinite}.lesson-wait21.leaving21{opacity:0;pointer-events:none}.arrive21{animation:arrive21 288ms cubic-bezier(.2,.9,.3,1.08)}
@keyframes halo-breath21{0%,100%{box-shadow:0 0 0 0 #fa82285c,0 0 18px #fa822857}50%{box-shadow:0 0 0 8px #fa822800,0 0 28px #fa82288f}}
@keyframes arrive21{from{opacity:.4;transform:translateY(8px) scale(.988)}to{opacity:1;transform:none}}
#phone .rpscr .rpbar,#phone .rpscr #rpseek{min-height:44px;touch-action:pan-x}#phone .rpscr .rpbar{bottom:12px!important}#phone .rpscr .rpplay,#phone .rpscr .fsb{min-height:44px;touch-action:manipulation}#phone .rpscr .rpz,#phone .rpcap{pointer-events:none!important}.rpscr{background:#0B1437!important}.rpplay svg{pointer-events:none}
body.fullscreen21 #phone .lfull.fs{position:fixed!important;top:var(--view-top21)!important;left:0!important;right:0!important;bottom:auto!important;width:100%!important;height:var(--view-height21)!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)!important;z-index:1000;background:#0B1437;box-sizing:border-box;overflow:hidden}body.fullscreen21 #phone .lfull.fs .player.rp,body.fullscreen21 #phone .lfull.fs .rpscr{min-height:0!important;flex:1!important}body.fullscreen21 .lfull.fs .tools,body.fullscreen21 .lfull.fs>[data-act=pfin]{display:none!important}body.fullscreen21 .lfull.fs .scene-nav{height:44px;min-height:44px;flex:none;display:flex!important}
/* No scroll on the quiz page: long reference documents scroll only in their own pane. */
#phone .quiz-screen21{height:100%;min-height:0;overflow:hidden!important}#phone .quiz-screen21 .top{flex:none}#phone .quiz20{box-sizing:border-box;flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:12px 18px calc(14px + env(safe-area-inset-bottom));overflow:hidden!important}#phone .quiz20 .qcard{flex:0 1 auto;min-height:0;margin:0;padding:12px;overflow:auto;overscroll-behavior:contain}#phone .quiz20 h2{font-size:clamp(16px,2.3vh,23px);line-height:1.25;margin:0}#phone .quiz20 .qcard>p{margin:8px 0 0}#phone .quiz20 .opts{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;gap:7px}#phone .quiz20 .opt{min-height:44px;flex:none;padding:10px 12px;font-size:clamp(14px,1.9vh,18px);line-height:1.3;display:flex;justify-content:center;align-items:center;text-align:center;white-space:normal;overflow-wrap:normal;word-break:normal}#phone .quiz20>.btn{flex:none;margin-top:auto;min-height:44px}#phone .quiz20 .correction20{padding:8px 12px;min-height:0;flex:0 1 auto;overflow:auto;line-height:1.3;font-size:14px}#phone .quiz20 .correction20 p{margin:4px 0}.quiz-document20[open] p{max-height:18dvh;overflow:auto;touch-action:pan-y;overscroll-behavior:contain}.quiz-hint20{font-size:12px;line-height:1.3;display:flex;align-items:center;gap:8px;flex:none}.quiz-hint20 .pill{min-height:44px;flex:none}
.pair-column .opt,#phone .pairs button{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal;line-height:1.35;word-break:normal;overflow-wrap:normal;padding:14px!important}.pair-column{align-items:stretch}.answer-ok21{animation:correct21 228ms ease-out}.answer-no21{animation:wrong21 228ms ease-out}@keyframes correct21{50%{filter:drop-shadow(0 0 9px #67d9ab66);transform:scale(1.012)}}@keyframes wrong21{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
.exercise-actions21{display:flex;gap:12px;flex:none}.exercise-actions21 .btn{flex:1;font-size:15px}.next21{background:#65d6a3!important;color:#0B1437!important}#phone .exercise-screen21 .vjit span,#phone .exercise-screen21 .vjit textarea{font-size:clamp(18px,2.6vh,26px);line-height:1.5}#phone .exercise-screen21 .sheet .it{font-size:clamp(16px,2.3vh,23px)}
.crop-shade21{position:fixed;inset:0;z-index:99999;background:#060c21ed;display:grid;place-items:center;padding:18px}.crop21{box-sizing:border-box;width:min(100%,440px);max-height:calc(var(--view-height21) - 36px);overflow:auto;display:flex;flex-direction:column;gap:16px;align-items:stretch;padding:24px;background:#111C36;border:1px solid #eff5ff22;border-radius:28px;color:#EFF5FF}.crop21 h2,.crop21 p{margin:0}.crop21 p{line-height:1.5;color:#b8c5e4}#crop-canvas21{width:min(100%,288px);height:auto;aspect-ratio:1;align-self:center;border-radius:50%;outline:1px solid #FA822888;touch-action:none;cursor:grab}.crop21 input{width:100%;min-height:44px;accent-color:#FA8228}.crop21 .row{display:flex;flex-wrap:wrap;gap:12px}.crop21 .row .btn{flex:1}.haptic21{position:fixed;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.about-page21{width:min(100%,1000px);margin:0 auto;padding:36px 24px 0;box-sizing:border-box}.about-copy21{max-width:680px;margin:auto}.about-copy21 p{font-size:clamp(17px,2vw,21px);line-height:1.75;color:#c6d2ed}.cosmos21{position:relative;height:440px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#FA822814,transparent 45%),radial-gradient(ellipse at 25% 50%,#7360b335,transparent 55%),radial-gradient(ellipse at 75% 30%,#2f4a9c55,transparent 60%),#0B1437;isolation:isolate}.cosmos21::before{content:'';position:absolute;inset:0;background:linear-gradient(#0B1437,transparent 40%);z-index:2;pointer-events:none}.cosmos21 img{width:clamp(144px,22vw,228px);height:auto;z-index:1;filter:drop-shadow(0 0 18px #FA822844);animation:float21 8.228s ease-in-out infinite}.stars21{position:absolute;inset:-30px;background-image:radial-gradient(1px 1px at 10% 20%,#eff5ff,transparent),radial-gradient(1px 1px at 70% 65%,#eff5ff,transparent),radial-gradient(2px 2px at 50% 35%,#c8d9ff,transparent),radial-gradient(1px 1px at 90% 15%,#eff5ff,transparent);background-size:144px 228px,228px 288px,288px 441px,441px 228px;animation:float21 28.8s ease-in-out infinite alternate;opacity:.7}@keyframes float21{50%{transform:translate3d(8px,-14px,0)}}
.social20{background:radial-gradient(ellipse at 50% 100%,#FA822818,transparent 65%);padding:32px 22px!important;border-top:1px solid #eff5ff1c}.proofs20{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px!important;margin-top:28px!important}.proofs20 p{font-size:clamp(17px,2vw,24px)!important;color:#EFF5FF!important;text-align:center;font-weight:600;line-height:1.5}.social-links20{justify-content:center;gap:24px!important}.about-link21{align-self:center;min-height:44px}.intro21{text-align:center;justify-content:center;gap:18px}.intro21 h1{font-size:clamp(28px,6vw,52px);line-height:1.2;margin:0}.intro21 p{margin:0}.intro21 form{display:flex;flex-direction:column;gap:16px;text-align:left}.intro21 input{min-height:48px;font:inherit;border-radius:14px;border:1px solid #8ea4d655;padding:12px;background:#111C36;color:#EFF5FF}.intro21 .step-label{color:#FA8228}.intro21 .opt{min-height:56px}.tutor-ring21{animation:halo-breath21 .822s ease-in-out infinite;border-radius:50%}
@media(max-width:600px){.proofs20{grid-template-columns:1fr;gap:18px!important}.proofs20 p{margin:0!important}.social20{gap:24px!important}.about-page21{padding-top:24px}.cosmos21{height:360px}}
@media(max-height:700px){#phone .quiz20{gap:6px;padding-top:8px}#phone .quiz20 .opt{padding:8px 10px;font-size:14px}#phone .quiz20 .qcard{padding:10px}#phone .quiz20 .step-label{font-size:12px}.quiz-hint20{font-size:11px}.quiz20 .qcard [data-act=qsay]{min-height:36px}.crop21{gap:12px;padding:18px}#crop-canvas21{max-width:210px}}
@media(prefers-reduced-motion:reduce){.arrive21,.cosmos21 img,.stars21,.answer-ok21,.answer-no21,.tutor-ring21{animation:none!important}.lesson-wait21 img{animation:none}.lesson-wait21{transition:none}}
/* Player controls occupy their own strip, never the middle of a reading field. */
#phone #lessonframe{inset:0 0 80px;height:calc(100% - 80px)}
#phone .rpscr .rpplay{left:12px;top:auto;bottom:20px;width:44px;height:44px;opacity:1!important;pointer-events:auto!important;transform:none!important}
#phone .rpscr .rpbar{left:64px!important;right:10px;bottom:12px;opacity:1!important;pointer-events:auto!important;transform:none!important;padding:0 8px;min-height:60px}
#phone .rpspb{min-height:44px}.tools{grid-template-columns:repeat(6,minmax(0,1fr))!important}
#phone .rpbar input{background:none!important;height:44px;min-height:44px}
#phone .rpbar input::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(90deg,#FA8228 var(--p,0%),#ffffff38 var(--p,0%))}
#phone .rpbar input::-webkit-slider-thumb{margin-top:-5px}
#phone .rpbar input::-moz-range-track{height:4px;border-radius:4px;background:#ffffff38}
#phone .rpbar input::-moz-range-progress{height:4px;background:#FA8228}
body.wide-app #phone .lesson-screen .tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#phone .exercise-screen21 [data-act=vjstep],#phone .exercise-screen21 [data-act=vjresult]{background:#65d6a3;color:#0B1437}

/* v21c: fixed fullscreen must escape the 390×844 tablet preview container.
   will-change:transform on .screen otherwise makes it the fixed containing block;
   the clipped portion hits the OUTER .stage instead of an iframe choice. */
body.fullscreen21 #phone > .screen:not(.ghost){will-change:auto!important;transform:none!important;animation:none!important}
body.fullscreen21 #phone{overflow:visible}
/* Win over both the v20 controls strip and the wide-app iframe height. */
#phone .lesson-screen .rpscr #lessonframe{inset:0 0 80px!important;height:calc(100% - 80px)!important}
/* The range owns horizontal dragging; native pan-x would cancel its pointer stream. */
#phone .rpscr #rpseek{touch-action:none}
