/* An application frame: one scroll surface, compact controls, persistent navigation. */
body.app-shell{height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:#0e1a49;overscroll-behavior:none}body.app-shell header.app-bar{height:68px;min-height:68px;padding:8px max(18px,env(safe-area-inset-right));flex-shrink:0;background:linear-gradient(180deg,#213c83,#142251);border-bottom:1px solid #9fc5ff70;box-shadow:0 3px 18px #020d3455;z-index:20;flex-wrap:nowrap}.app-bar .brand{font-size:13px;letter-spacing:1px}.app-bar .brand b{font-size:36px}.app-bar .brand small{font-size:10px;letter-spacing:0}.app-status{display:flex;gap:8px;align-items:center}.app-status>span{color:#ffeab2;font-weight:bold;padding:8px 12px;background:#12204e;border:1px solid #9faeec50;border-radius:16px;white-space:nowrap}.app-status button,.app-status>a{padding:9px 12px;font-size:12px;background:#172b61;border:1px solid #9ebcf34a;border-radius:13px;white-space:nowrap}body.app-shell main{flex:1;min-height:0;overflow:auto;overflow-x:hidden;width:100%;max-width:none;padding:16px 24px 24px;margin:0;scrollbar-width:thin;scrollbar-color:#6e9cda #14204d;scroll-behavior:smooth}body.app-shell:has(.academy-home) main{max-width:none;padding:10px 22px 20px}.academy-home{max-width:1560px;margin:0 auto}.app-dock{display:flex;flex-shrink:0;justify-content:center;gap:7px;background:linear-gradient(#122453f2,#0c1535);border-top:1px solid #a1b6ff45;padding:7px 14px calc(7px + env(safe-area-inset-bottom));z-index:20;box-shadow:0 -4px 20px #010c2e50}.app-dock a{display:flex;align-items:center;justify-content:center;gap:9px;min-width:145px;padding:10px 18px;color:#bdcce9;font-size:13px;border-radius:15px;border:1px solid transparent}.app-dock a span{font-size:22px;line-height:1}.app-dock a[aria-current=page]{background:linear-gradient(150deg,#4c60a9,#234887);border-color:#b2d1ff80;color:#fff2b7;box-shadow:inset 0 0 13px #a4d0ff20}.app-dock a:hover{background:#2a427c}#app>section{animation:screen-arrive .3s ease-out}.panel.app-page,.discovery-screen{margin:12px auto}.world-screen{position:relative;isolation:isolate;min-height:740px;max-width:1300px;margin:0 auto;border-radius:30px;overflow:hidden;background:#192c64;border:1px solid #a1c5ff55;padding:22px 30px 100px;box-shadow:0 20px 70px #010a2444}.world-sky{position:absolute;inset:0;background:linear-gradient(90deg,#111e50ee 5%,#122450a6 45%,#111e5010),url('world-backdrop.png') center/cover;z-index:-2}.world-screen:after{content:'';position:absolute;width:600px;height:600px;left:0;top:0;background:radial-gradient(var(--world-accent),transparent 64%);opacity:.2;z-index:-1}.world-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#d9e8ff;font-size:13px;position:relative;z-index:5}.world-toolbar button{background:#112757b3;border-color:#a4c9ff70;padding:10px 15px}.world-status{color:var(--world-accent);font-size:12px}.world-welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;align-items:center;min-height:390px}.world-story{padding:20px 5px}.world-story h1{font-size:clamp(36px,4.4vw,63px);margin:17px 0;color:#fff4d6;text-shadow:0 4px 18px #0005}.world-story p{color:#dfebff;font-size:17px;max-width:500px;line-height:2}.world-main-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:25px}.launch-world{font-size:17px;padding:16px 22px}.glass-action{border-color:#d1e6ff70;background:#142c68c9}.world-story .small-truth,.small-truth{font-size:11px;color:#d2d9e7;line-height:1.8}.world-island-showcase{position:relative;aspect-ratio:1;max-width:440px;width:100%;justify-self:center}.world-portrait{width:100%;height:100%;aspect-ratio:1;background-size:300% 300%;position:relative;z-index:2}.world-island-showcase>.world-portrait{animation:island-drift 9s ease-in-out infinite;filter:drop-shadow(0 24px 20px #05112999)}.island-aura{position:absolute;inset:20%;border-radius:50%;background:var(--world-accent);filter:blur(55px);opacity:.35;z-index:1}.journey-trail{position:relative;display:flex;justify-content:space-around;gap:22px;max-width:1000px;margin:5px auto 20px;padding:15px 10px 22px}.trail-line{position:absolute;left:10%;right:10%;top:47px;border-top:3px dashed #ffe5a280;filter:drop-shadow(0 0 4px #ffe7a5)}.trail-stop{position:relative;display:flex;flex-direction:column;align-items:center;border:0;background:none;padding:0;width:210px}.trail-stop>span{width:64px;height:64px;border:2px solid #fff3bb;background:linear-gradient(135deg,#6c62b1,#233970);box-shadow:0 6px 0 #121f4d,0 0 22px #adc7ff40;border-radius:50%;display:grid;place-items:center;font-size:29px;color:#ffe9a6;transition:transform .2s}.trail-stop:hover>span{transform:translateY(-7px);background:linear-gradient(135deg,#b092ce,#3358a0)}.trail-stop strong{margin-top:18px;font-size:17px;color:#fff1cc}.trail-stop small{color:#d4e2f9;font-size:11px;letter-spacing:0;line-height:1.8;text-align:center}.world-companion{position:absolute;bottom:10px;right:8%;display:flex;gap:12px;align-items:center;height:115px}.world-companion>.sprite{width:100px;height:100px}.world-companion p{background:#e9f4ff;color:#203158;font-size:13px;padding:12px 22px;border-radius:22px 22px 4px 22px;border:2px solid #99ccff;line-height:1.8}.theme-1 .world-sky{filter:hue-rotate(20deg)}.theme-2 .world-sky{filter:hue-rotate(35deg)}.theme-3 .world-sky{filter:saturate(.9)}.theme-4 .world-sky{filter:hue-rotate(-20deg)}.theme-5 .world-sky{filter:hue-rotate(-35deg) saturate(.8)}.theme-6 .world-sky{filter:hue-rotate(-12deg)}.discovery-screen{max-width:1000px;background:linear-gradient(145deg,#1c2e57,#171d38);border:1px solid #9ecaff50;border-radius:28px;box-shadow:0 20px 75px #0004;padding:24px 30px;position:relative;overflow:hidden}.discovery-screen:before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:var(--world-accent)}.discovery-progress{display:flex;justify-content:center;gap:10px;margin:28px 0 10px;flex-wrap:wrap}.discovery-progress>span{font-size:12px;color:#a4b4d4;padding:9px 14px;border-bottom:2px solid #6f89b955}.discovery-progress>.active{border-color:var(--world-accent);color:var(--world-accent)}.discovery-stage{padding:20px 0;min-height:380px;text-align:center}.discovery-stage h2{font-size:25px;color:#f6edcf}.discovery-stage p{font-size:16px;line-height:2}.discovery-source{font-size:11px;line-height:1.9;color:#9faccc;text-align:center;border-top:1px solid #869ec52a;padding-top:14px}.activity-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:25px}.storybook{max-width:650px;margin:10px auto;border:1px solid #f4d8aa66;padding:20px 25px;border-radius:12px 30px 30px 12px;background:linear-gradient(110deg,#364366,#252f4e);box-shadow:inset 10px 0 0 #e8c99520}.story-object{font-size:50px}.story-line{text-align:right;padding:8px;margin:6px 0!important;border-bottom:1px solid #cfbfa62a;animation:screen-arrive .4s}.story-line b{display:inline-grid;place-items:center;background:#d5a85d;color:#18203a;width:27px;height:27px;border-radius:50%;margin-left:13px;font-size:13px}.evidence-line{display:block;width:100%;text-align:right;margin:10px 0;line-height:1.9;background:#17223c99}.word-stage{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin:45px 0}.word-chip{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:105px;background:linear-gradient(145deg,#7362a3,#333a68);padding:20px;border:1px solid #d5b5ff80;border-radius:20px;font-size:29px;box-shadow:0 7px 0 #172043}.word-chip small{font-size:12px;letter-spacing:0;color:#f2dcff}.word-chip.noun{transform:rotate(-4deg)}.word-chip.verb{background:linear-gradient(135deg,#447e98,#305578);transform:translateY(-12px)}.english-example{font-size:clamp(22px,4vw,38px);padding:20px;margin:20px auto;color:#e3edff}.english-example em{font-style:normal;background:#e7be72;color:#202a48;border-radius:9px;padding:6px 9px;margin:0 2px;display:inline-block;animation:arrive .6s}.punctuation-workshop{display:flex;justify-content:center;align-items:center;gap:13px;font-size:clamp(22px,4vw,37px);margin:40px 0;flex-wrap:wrap}.letter-button{font-size:38px;min-width:65px;background:#477da855;border-color:#9ed7ef}.punctuation-slot{width:50px;border-bottom:2px dashed #efc575;color:#efcc83}.water-machine{margin:20px auto}.water-visual{font-size:100px;height:130px;display:grid;place-items:center;transition:all .5s;animation:water-bob 3s ease-in-out infinite}.phase-0 .water-visual{filter:drop-shadow(0 0 15px #8bcfff)}.phase-1 .water-visual{filter:drop-shadow(0 0 15px #35bcff);transform:scale(.9)}.phase-2 .water-visual{color:#f7c898;filter:drop-shadow(0 0 20px #e8b384)}.heat-track{display:flex;gap:12px;justify-content:center;margin:20px 0}.heat-track span{border:1px solid #8eafd44a;padding:10px;border-radius:12px;font-size:13px}.heat-track .lit{background:#2d77956b;border-color:#b1edff}.sequence-track{display:flex;justify-content:center;gap:12px;align-items:center;margin:25px 0;flex-wrap:wrap;min-height:55px}.sequence-track span{padding:14px;background:#396b8266;border:1px solid #85c6d7;border-radius:14px;animation:arrive .4s}.compass-board{position:relative;width:260px;height:240px;margin:20px auto;background:radial-gradient(circle,#b5c8db22,transparent 68%);border:1px solid #a2c4dd30;border-radius:50%;direction:ltr}.compass-board>span{position:absolute;color:#ffe2a2;font-size:15px}.north{top:0;left:38%}.east{right:0;top:45%}.south{bottom:0;left:38%}.west{left:0;top:45%}.compass-needle{position:absolute;left:38%;top:20%;font-size:100px;color:#efba72;transform-origin:50% 70%;animation:compass-settle 3s ease-out}.explorer-grid{display:grid;grid-template-columns:repeat(3,70px);gap:7px;justify-content:center;direction:ltr;margin:22px auto}.explorer-grid span{height:65px;background:#3e7a6855;border:1px solid #95cfaa60;display:grid;place-items:center;font-size:33px;border-radius:12px}.direction-pad{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.value-scene{display:flex;justify-content:center;gap:20px;align-items:center;margin:35px 0;font-size:70px}.kindness-spark{font-size:45px;color:#ffe09b;animation:treasure-shine 4s infinite}.value-choices{display:grid;gap:14px;max-width:650px;margin:30px auto}.value-choices button{padding:18px;font-size:18px;background:#314b7750;border-color:#abc9ff55;line-height:1.6}.discovery-celebration{width:230px;position:relative;margin:0 auto}.discovery-celebration>span:last-child{position:absolute;top:0;right:0;color:#ffdf91;font-size:65px;animation:treasure-shine 3s infinite}.discovery-celebration .world-portrait{filter:drop-shadow(0 0 30px #e6c07955)}.mission-empty{text-align:center;padding:20px}.mission-empty .world-portrait{width:200px;height:200px;margin:0 auto}.book-reader{height:100%;min-height:600px;display:flex;flex-direction:column;border:1px solid #abcaff50;border-radius:22px;overflow:hidden;background:#17284c}.reader-toolbar{display:flex;align-items:center;gap:20px;padding:13px 18px;background:#203768;flex-wrap:wrap}.reader-toolbar h1{font-size:17px;margin:0;flex:1}.reader-toolbar a{font-size:12px;color:#ffdf9a}.reader-note{font-size:11px;padding:4px 18px;margin:6px;line-height:1.6}.pdf-frame{flex:1;width:100%;min-height:500px;border:0;background:#2e3549}.book-launch{width:100%;text-align:right;border-radius:0;background:none}.treasure-room{text-align:center;max-width:1100px}.big-star{position:relative;font-size:90px;display:inline-grid;place-items:center;width:160px;height:150px;filter:drop-shadow(0 0 25px #f4ba5670)}.big-star strong{position:absolute;font-size:30px;color:#463259;top:58px}.badge-shelf{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:30px 0}.discovery-badge{padding:10px;filter:grayscale(.8);opacity:.55;border-bottom:2px solid #ffffff20}.discovery-badge.earned{filter:none;opacity:1;border-color:#f2d28e}.discovery-badge .world-portrait{max-width:140px;margin:auto}.discovery-badge strong{font-size:14px}.discovery-badge small{letter-spacing:0;font-size:10px;line-height:1.7}@keyframes screen-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes water-bob{50%{translate:0 -7px}}@keyframes compass-settle{0%{transform:rotate(22deg)}35%{transform:rotate(-16deg)}70%{transform:rotate(9deg)}100%{transform:rotate(0)}}
@media(max-width:900px){.world-screen{padding:18px 20px 110px;min-height:690px}.world-welcome{grid-template-columns:1.2fr 1fr;min-height:330px}.world-story p{font-size:14px}.world-story h1{font-size:37px}.launch-world{font-size:14px}.trail-stop strong{font-size:14px}.trail-stop small{font-size:10px}.journey-trail{gap:10px}.discovery-screen{padding:20px}.world-companion{right:5%}.app-dock a{min-width:120px}.badge-shelf{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){body.app-shell header.app-bar{height:59px;min-height:59px;padding:7px 10px}.app-bar .brand{font-size:9px;letter-spacing:.5px;gap:6px}.app-bar .brand b{font-size:28px}.app-bar .brand small{font-size:9px}.app-status{gap:5px}.app-status button,.app-status>a{font-size:10px;padding:8px}.app-status>span{font-size:11px;padding:8px}.app-status #motion{display:none}.app-status button[data-action=fullscreen]{display:none}body.app-shell main,body.app-shell:has(.academy-home) main{padding:10px}.app-dock{gap:2px;padding:5px 4px calc(5px + env(safe-area-inset-bottom))}.app-dock a{min-width:0;flex:1;padding:7px 4px;flex-direction:column;gap:5px;font-size:10px;border-radius:12px}.app-dock a span{font-size:21px}.world-screen{border-radius:22px;padding:14px 15px 115px;min-height:850px}.world-toolbar{gap:7px;font-size:11px}.world-toolbar button{font-size:11px;padding:10px}.world-status{display:none}.world-welcome{display:flex;flex-direction:column-reverse;gap:0;min-height:0}.world-island-showcase{max-width:235px;margin:-8px 0 -12px}.world-story{text-align:center;padding:0}.world-story h1{font-size:35px;margin:12px 0}.world-story p{font-size:14px;margin:8px 0}.world-main-actions{justify-content:center;gap:8px;margin-top:17px}.world-main-actions button{font-size:13px;padding:13px}.world-story .small-truth{font-size:10px}.journey-trail{margin-top:25px;gap:8px;padding:12px 0}.trail-line{top:36px}.trail-stop{min-width:0;flex:1}.trail-stop>span{width:47px;height:47px;font-size:23px}.trail-stop strong{font-size:12px;margin-top:13px;line-height:1.6}.trail-stop small{font-size:9px;line-height:1.7}.world-companion{height:100px;bottom:8px;right:3%}.world-companion>.sprite{width:75px;height:75px}.world-companion p{font-size:11px;padding:9px 15px}.discovery-screen{border-radius:20px;padding:15px 13px}.discovery-stage{padding:12px 0}.discovery-stage h2{font-size:21px}.discovery-stage p{font-size:14px}.discovery-progress{gap:3px;margin:20px 0 5px}.discovery-progress>span{font-size:10px;padding:9px 7px}.word-stage{gap:10px;margin:30px 0}.word-chip{min-width:80px;font-size:25px;padding:15px 10px}.word-chip small{font-size:10px}.storybook{padding:17px 12px}.story-line{font-size:14px!important}.reader-toolbar{gap:10px;padding:10px}.reader-toolbar h1{font-size:13px;line-height:1.6}.reader-toolbar button{font-size:11px;padding:9px}.book-reader{min-height:550px}.badge-shelf{grid-template-columns:repeat(2,1fr);gap:10px}.value-choices button{font-size:16px}.activity-actions button{font-size:13px}.app-page h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){body.app-shell main{scroll-behavior:auto}#app>section,.world-island-showcase>.world-portrait,.water-visual,.compass-needle{animation:none!important}}.reduce #app>section,.reduce .world-island-showcase>.world-portrait,.reduce .water-visual,.reduce .compass-needle{animation:none!important}
