:root{font-family:ui-rounded,"Trebuchet MS",Verdana,system-ui,sans-serif;color:#252350;background:#f6f5ff}*{box-sizing:border-box}body{margin:0;min-width:310px;background:radial-gradient(circle at 8% 0%,#fef8db 0,transparent 34%),radial-gradient(circle at 96% 18%,#e4defe 0,transparent 29%),#f6f5ff}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}.skip{position:absolute;left:-1000px;top:10px;z-index:9}.skip:focus{left:10px;background:#fff;padding:10px}.app{max-width:1310px;margin:auto;padding:0 30px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 0 13px}.home{text-decoration:none;color:#282455;font-size:22px;font-weight:1000;letter-spacing:-1px}.home>span:first-child{color:#f79e43}.home-space{color:#8f7ec9}.top-actions{display:flex;gap:10px;align-items:center}.world-label{color:#706b92;font-size:11px;font-weight:900;letter-spacing:1.5px;margin-right:10px}.small-btn{background:#fff;border:2px solid #e5def4;border-radius:999px;font-size:12px;font-weight:900;padding:10px 15px;white-space:nowrap;box-shadow:0 2px 0 #d8d1ec}.small-btn[aria-pressed=true]{background:#eee9ff;border-color:#8e7ad9}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0 20px}.intro h1{font-size:clamp(34px,4.7vw,64px);line-height:1.01;letter-spacing:-2px;margin:10px 0 10px;color:#30265b}.intro h1 span{color:#7770db}.intro p{font-size:16px;font-weight:700;color:#716e92;margin:0}.eyebrow{font-size:11px;letter-spacing:1.65px;color:#7a71b8;font-weight:1000}.pip-card{min-width:170px;display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative}.pip{width:94px;height:107px;position:relative;filter:drop-shadow(0 9px 0 rgba(87,76,155,.13))}.antenna{position:absolute;top:0;left:44px;width:7px;height:19px;background:#6463ba;border-radius:7px}.antenna:before{content:"";position:absolute;top:-7px;left:-5px;width:16px;height:16px;background:#ffab58;border-radius:50%}.pip-head{position:absolute;top:21px;left:5px;width:85px;height:57px;background:#eff5ff;border:5px solid #514fa6;border-radius:24px;display:flex;align-items:center;justify-content:center;gap:15px}.eye{width:12px;height:17px;border-radius:20px;background:#464397}.smile{position:absolute;bottom:1px;font-size:23px;font-weight:900;color:#524f9c}.pip-body{position:absolute;bottom:0;left:19px;border:5px solid #514fa6;border-radius:14px 14px 21px 21px;background:#b7abff;width:56px;height:30px;text-align:center;color:#fff}.pip-caption{font-size:12px;font-weight:1000;background:#fff;padding:7px 13px;border:2px solid #ede4fe;border-radius:15px;transform:rotate(-3deg)}.game-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,.94fr);gap:18px}.stage,.guide{background:#fff;border:2px solid #eae5f5;border-radius:26px;box-shadow:0 8px 0 #e4def3;padding:20px}.stage{min-width:0}.stage-top{display:flex;align-items:center;justify-content:space-between}.stage-tag{background:#e9e5ff;color:#6a5eb2;padding:8px 12px;border-radius:11px;font-size:11px;font-weight:1000;letter-spacing:1px}.star-count{color:#e5a12a;font-size:20px;letter-spacing:2px;font-weight:900;white-space:nowrap}.stage h2{margin:13px 0 4px;font-size:30px;letter-spacing:-1px}.stage>p{font-weight:750;color:#777296;margin:0 0 14px}.canvas-wrap{width:100%;position:relative;aspect-ratio:900/490;overflow:hidden;border-radius:18px;border:3px solid #b2d4ec;background:#bdeeff;touch-action:none}canvas{display:block;width:100%;height:100%;touch-action:none}.speech-bubble{position:absolute;left:20px;top:16px;padding:9px 14px;border:2px solid #d9e2fa;border-radius:16px 16px 16px 3px;background:rgba(255,255,255,.95);box-shadow:0 3px 0 #cfdded;font-size:13px;font-weight:900;color:#51508a;max-width:min(72%,380px);pointer-events:none}.stage-footer{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:16px}.btn{border:0;border-radius:13px;font-weight:1000;padding:12px 17px;min-height:45px}.ghost{background:#f1eefb;color:#685f9e}.next,.primary{background:#6263d7;color:#fff;box-shadow:0 4px 0 #494a9d}.next{margin-left:auto}.guide{display:flex;flex-direction:column}.guide-header{display:flex;gap:12px;align-items:center;border-bottom:2px dashed #eee8f8;padding:2px 0 18px}.guide-icon{height:53px;width:53px;display:grid;place-items:center;border-radius:17px;background:#f0eeff;font-size:25px}.guide h3{margin:5px 0 0;font-size:21px;line-height:1.18;letter-spacing:-.5px}.controls{padding:19px 0;display:flex;flex-direction:column;gap:12px}.action{width:100%;border:2px solid #ddd5f2;border-radius:16px;background:#faf8ff;padding:16px;color:#393462;font-weight:950;text-align:left;min-height:56px;transition:.12s}.action:focus-visible,.btn:focus-visible,.small-btn:focus-visible,.mission:focus-visible{outline:4px solid #e3a849;outline-offset:2px}.action:hover:not(:disabled){border-color:#9283e2;transform:translateY(-1px)}.action.chosen{border-color:#6e64cf;background:#eeeaff;box-shadow:0 2px 0 #aba0ea}.action.big{background:#ffb95e;border-color:#f6a64c;color:#483258;box-shadow:0 4px 0 #d99040;text-align:center}.action.blue{background:#6c68db;border-color:#6c68db;color:#fff;box-shadow:0 4px 0 #4a4ba4;text-align:center}.action:disabled{box-shadow:none;transform:none}.choice-label{font-size:12px;color:#797493;font-weight:900}.message{border-radius:16px;background:#f0f8fe;border:2px solid #dbeeff;padding:14px;color:#376182;min-height:72px;font-size:14px;font-weight:750;line-height:1.45}.message.won{background:#effbed;border-color:#bae5b2;color:#376f4d}.science{margin-top:auto;padding:15px 0 0}.science>span{font-size:11px;font-weight:1000;letter-spacing:1.4px;color:#7973af}.science p{margin:9px 0 0;padding:14px;background:#fff5da;border:2px solid #fae9b9;border-radius:16px;font-size:14px;font-weight:780;line-height:1.45;color:#6e5e37}.power-row{display:flex;justify-content:space-between;color:#5f578d;font-size:13px;font-weight:950}.power{width:100%;height:32px;accent-color:#6663d7;cursor:pointer}.power-hints{display:flex;justify-content:space-between;color:#7a7390;font-size:12px;font-weight:800}.journey{padding:42px 0 20px}.journey-heading{display:flex;align-items:end;justify-content:space-between;gap:15px}.journey h2{font-size:28px;letter-spacing:-1px;margin:5px 0 15px}.progress-label{font-weight:900;color:#8176b0;font-size:14px;margin-bottom:18px}.mission-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.mission{border:2px solid #e4def4;border-radius:20px;min-height:112px;padding:14px 10px;background:#fff;text-align:center;color:#514b82;font-weight:900;box-shadow:0 4px 0 #e5e0f1}.mission.active{border-color:#8072d9;background:#f0ecff}.mission.complete{background:#f0faed;border-color:#b6dea9}.mission:disabled{opacity:.5}.mission-symbol{display:block;font-size:26px;margin:0 0 6px}.mission-title{display:block;font-size:12px}.mission-sub{display:block;font-size:10px;color:#9a93b7;margin-top:5px}.parent{margin:24px 0 36px;border:2px solid #e5e0f0;border-radius:17px;background:#fff;padding:18px 22px;color:#645d85;font-size:13px;line-height:1.65}.parent summary{cursor:pointer;font-weight:950;color:#595384;font-size:14px}.parent p{max-width:900px}.text-btn{background:none;border:0;color:#6254b3;text-decoration:underline;font-size:13px;font-weight:900;padding:6px 0}footer{padding:0 0 25px;font-size:12px;font-weight:800;color:#80789f;text-align:center}footer a{margin-left:9px}.result-pill{font-weight:900;font-size:13px;color:#5c5594;background:#f0ebff;padding:12px;border-radius:12px}.field-note{font-size:13px;font-weight:750;color:#6d678b;line-height:1.45;margin:0}@media(max-width:940px){.game-layout{grid-template-columns:1fr}.guide{min-height:0}.science{margin-top:0}.mission-grid{grid-template-columns:repeat(5,1fr)}}@media(max-width:620px){.app{padding:0 13px}.topbar{align-items:flex-start}.world-label{display:none}.home{font-size:19px}.top-actions{gap:5px}.small-btn{padding:9px 7px;font-size:11px}.intro{padding:15px 0}.intro p{font-size:13px}.intro h1{font-size:35px}.pip-card{min-width:95px}.pip{transform:scale(.8);margin-bottom:-8px}.pip-caption{font-size:10px;padding:5px 7px}.stage,.guide{border-radius:17px;padding:12px}.stage h2{font-size:23px}.stage>p{font-size:12px}.canvas-wrap{border-width:2px}.speech-bubble{top:8px;left:8px;padding:5px 8px;font-size:10px;max-width:67%}.star-count{font-size:14px}.stage-tag{font-size:9px;padding:6px}.btn{padding:9px 11px;font-size:12px;min-height:40px}.mission-grid{gap:5px}.mission{border-radius:11px;min-height:90px;padding:10px 3px}.mission-symbol{font-size:20px}.mission-title{font-size:9px}.mission-sub{font-size:8px}.journey{padding-top:30px}.journey h2{font-size:22px}.progress-label{font-size:11px}.guide h3{font-size:19px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
/* Read-aloud controls for non-reading early learners. */
.instruction-row,.question-row,.message-row,.science-heading{display:flex;align-items:center;gap:10px}
.instruction-row{margin:0 0 13px;justify-content:space-between}
.instruction-row p{font-weight:750;color:#777296;margin:0;flex:1}
.question-row{align-items:flex-start;justify-content:space-between}
.question-row h3{flex:1;min-width:0}
.hear-mini{display:inline-grid;place-items:center;flex:none;width:43px;height:43px;border:2px solid #b4a6ed;border-radius:13px;background:#ede9ff;color:#4e3e8c;font-size:21px;box-shadow:0 3px 0 #d6cafa;cursor:pointer}
.hear-mini:hover{background:#ded8fa}
.hear-mini:focus-visible{outline:4px solid #e3a849;outline-offset:2px}
.message-row{align-items:stretch}
.message-row .message{flex:1;min-width:0}
.message-row .hear-mini{align-self:center}
.science-heading{justify-content:space-between}
.science-heading span{font-size:11px;font-weight:1000;letter-spacing:1.4px;color:#7973af}
.science{padding-top:12px}
.science .hear-mini{width:40px;height:40px}
.voice-status{font-size:12px;font-weight:750;color:#796d9e;min-height:17px;margin:2px 0 6px}
.choice-row{display:flex;align-items:center;gap:9px}
.choice-row .action{flex:1;min-width:0}
.choice-row .hear-mini{width:42px;height:48px}
@media(max-width:620px){.hear-mini{width:39px;height:39px;font-size:19px}.choice-row .hear-mini{width:38px;height:44px}.instruction-row p{font-size:12px}.voice-status{font-size:11px}}

/* World 1 keeps the original cards while fitting the complete journey. */
.star-count{white-space:normal;font-size:16px}.mission-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.mission-title{font-size:13px}.mission{min-height:120px}.small-btn,.hear-mini,.science .hear-mini,.choice-row .hear-mini{min-width:44px;min-height:44px}.power{height:44px}.stage-top{gap:12px}.stage-tag{flex-shrink:0}canvas:focus-visible,input:focus-visible{outline:4px solid #b17c0b;outline-offset:2px}.stage #regionLabel{margin:14px 0 0}.mission-sub{color:#665d87}.eyebrow{color:#655693}.instruction-row p{color:#5e577d}.voice-status{color:#625781}
@media(max-width:620px){.mission-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mission-title{font-size:11px}.mission{padding:12px 6px}.star-count{font-size:12px;letter-spacing:0}.topbar{flex-wrap:wrap}.top-actions{margin-left:auto}.speech-bubble{max-width:85%}.journey-heading{align-items:flex-start}.stage-footer .btn{min-height:44px}.guide-icon{flex-shrink:0}}

.world-picker{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 24px}.world-choice{display:flex;gap:8px;align-items:center;flex:1;min-width:250px}.world-btn{flex:1;border:2px solid #b7aade;border-radius:16px;background:#fff;color:#514574;min-height:54px;padding:12px 16px;font-weight:900;text-align:left}.world-btn[aria-pressed=true]{background:#eee8ff;border-color:#7665c4;box-shadow:0 4px 0 #d7cceb}.world-btn:focus-visible{outline:4px solid #b17c0b;outline-offset:3px}@media(max-width:620px){.world-picker{gap:10px;margin-bottom:18px}.world-choice{min-width:100%}.world-btn{font-size:13px}}

/* Keep the moving balls and weights unobscured; feedback remains beside its speaker. */
.bay-world .speech-bubble{display:none}

/* Story first, with the same touch controls and a quiet option for reduced motion. */
[hidden]{display:none!important}.story-card{background:#fff;border:2px solid #e4dcf6;border-radius:28px;padding:24px;box-shadow:0 8px 0 #e4def3;max-width:1000px;margin:0 auto 25px}.story-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.story-card h2{font-size:clamp(25px,4vw,38px);line-height:1.1;letter-spacing:-1px;margin:18px 0}.story-scene{height:290px;position:relative;isolation:isolate;overflow:hidden;border:3px solid #b9dbea;border-radius:23px;background:linear-gradient(#bceaff,#e6f8ff)}.story-sun{position:absolute;right:8%;top:8%;font-size:56px}.story-cloud{position:absolute;font-size:70px;top:4%;color:white}.cloud-one{left:8%}.cloud-two{left:52%;top:12%;font-size:48px}.story-land{position:absolute;left:-10%;right:-10%;bottom:-45%;height:80%;border-radius:50%;background:#a5d49d;z-index:-1}.story-mountains{position:absolute;left:42%;bottom:17%;font-size:150px;letter-spacing:-35px;color:#acb1e4;display:none;z-index:-1}.story-trees{position:absolute;left:42%;bottom:12%;font-size:74px;display:none;z-index:-1}.story-sea{position:absolute;bottom:3%;width:100%;height:29%;background:#85d6e7;border-radius:45% 10% 0 0;color:#c3f4f8;font-size:60px;display:none;z-index:-1}.story-pip{position:absolute;left:12%;bottom:16%;transition:transform 1s}.story-prop{position:absolute;left:58%;bottom:24%;font-size:78px;filter:drop-shadow(0 6px 0 #6279a233)}.story-friend{position:absolute;right:10%;bottom:16%;font-size:62px;opacity:0;transition:opacity 1s}.story-trail{position:absolute;bottom:19%;left:35%;font-size:24px;letter-spacing:18px;color:#b27932;opacity:0;transition:opacity 1s}.story-scene-caption{position:absolute;left:50%;top:8%;transform:translateX(-50%);background:#ffffffed;border:2px solid #ded5f6;border-radius:16px;padding:9px 18px;font-size:13px;font-weight:900;white-space:nowrap}.story-scene[data-scene=mountain] .story-mountains{display:block}.story-scene[data-scene=forest] .story-trees{display:block}.story-scene:is([data-scene=beach],[data-scene=bay],[data-scene=seesaw]) .story-sea{display:block}.story-scene:is([data-scene=beach],[data-scene=bay],[data-scene=seesaw]) .story-land{background:#ffe1a2}.story-scene[data-chapter="1"] .story-pip{transform:translateX(40px) rotate(-5deg)}.story-scene[data-chapter="2"] .story-pip{transform:translateX(80px)}.story-scene[data-chapter="2"] :is(.story-trail,.story-friend){opacity:1}.story-playing .story-prop{animation:story-bounce 2s ease-in-out infinite}.story-playing .story-cloud{animation:story-cloud 7s ease-in-out infinite alternate}.story-playing[data-scene=seesaw] .story-prop{animation:story-tilt 3s ease-in-out infinite}.story-playing[data-scene=wagon] .story-prop{animation:story-drive 3s ease-in-out infinite}.story-instructions{margin:22px 0 12px}.story-text{font-size:clamp(18px,2.2vw,23px);line-height:1.8;color:#423661;background:#f6f2ff;border:2px solid #e7def5;border-radius:20px;padding:20px;margin:12px 0 20px;font-weight:750}.spoken-word{border-radius:5px;box-decoration-break:clone}.word-active{background:#ffdd74;color:#352146;box-shadow:0 0 0 3px #ffdd74}.reading-now{outline:2px solid #d4b1f0;outline-offset:4px}.story-actions{display:flex;gap:15px;flex-wrap:wrap}.story-actions .btn{min-height:54px;font-size:16px}.read-together{margin-top:15px;color:#65577a;font-size:13px}.read-together summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline}.read-together label{display:flex;align-items:center;gap:10px;min-height:48px}.read-together input{width:24px;height:24px;accent-color:#6555b6}.story-card :is(button,input,summary):focus-visible{outline:4px solid #b17c0b;outline-offset:3px}.guide #recordInstructions{font-size:12px}.guide .instruction-row:has(#recordInstructions){margin-top:15px}.story-card .voice-status{margin-top:18px;line-height:1.5}
@keyframes story-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-38px)}}@keyframes story-cloud{to{transform:translateX(25px)}}@keyframes story-tilt{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}@keyframes story-drive{50%{transform:translateX(-45px)}}
@media(max-width:620px){.story-card{padding:14px;border-radius:20px}.story-heading{align-items:flex-start;flex-direction:column;gap:8px}.story-scene{height:220px;border-radius:17px}.story-pip{left:6%;transform:scale(.8);transform-origin:bottom left}.story-scene[data-chapter="1"] .story-pip{transform:translateX(15px) scale(.8)}.story-scene[data-chapter="2"] .story-pip{transform:translateX(30px) scale(.8)}.story-prop{font-size:54px;left:57%}.story-friend{font-size:40px;right:7%}.story-trees{font-size:46px}.story-mountains{font-size:100px;left:36%}.story-sun{font-size:42px}.story-cloud{font-size:45px}.story-scene-caption{font-size:11px;padding:7px 10px}.story-text{font-size:18px;padding:15px;line-height:1.8}.story-actions .btn{width:100%;margin-left:0}.story-trail{font-size:17px;letter-spacing:6px}.story-instructions p{font-size:14px}}
@media(prefers-reduced-motion:reduce){.story-playing *{animation:none!important}.story-scene *{transition:none!important}}

.meadow-world .speech-bubble{display:none}.story-scene[data-scene=meadow] .story-land{background:#b9df8e}.story-scene[data-scene=meadow]:after{content:"🌼 🌷 🌼 🌷";position:absolute;bottom:5%;left:33%;font-size:32px;letter-spacing:12px;z-index:-1}.story-playing[data-scene=meadow] .story-prop{animation:story-magnet 3s ease-in-out infinite}.story-scene[data-scene=meadow] .story-trail{color:#795096}@keyframes story-magnet{0%,100%{transform:translateX(-18px) rotate(-12deg)}50%{transform:translateX(18px) rotate(12deg)}}@media(prefers-reduced-motion:reduce){.story-playing[data-scene=meadow] .story-prop{animation:none!important}}

.expedition-panel{padding:18px;background:#f0e8ff;border-radius:20px;margin:15px 0}.expedition-panel select,.expedition-panel button,.prediction-gate button{font:inherit;padding:12px;margin:6px;border:2px solid #c1b1e0;border-radius:12px;background:#fff;max-width:100%}.expedition-panel p{font-size:13px;line-height:1.6}.prediction-gate{padding:15px;background:#fff2d5;border-radius:16px}.prediction-gate h3{font-size:17px}.memory-plan #playfield{visibility:hidden}body[data-expedition="1"] #scienceText,body[data-expedition="2"] #scienceText,body[data-expedition="3"] #scienceText{display:none}
