:root{font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#283d2a;background:#f5f3e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit;min-height:48px;border:1px solid #c5cead;border-radius:14px;background:#fffdf5;padding:10px 16px;cursor:pointer;font-weight:700}button:hover{background:#edf2df}button:focus-visible,select:focus-visible{outline:3px solid #8861a9;outline-offset:3px}button:disabled{cursor:default;opacity:.55}[hidden]{display:none!important}.app{max-width:650px;margin:auto;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom)}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}header img{width:155px;height:58px;object-fit:contain;background:#fffdf5;border-radius:12px}header button{font-size:.8rem}.heading{text-align:center;margin:8px 0 18px}.heading span,.prompt,.garden-caption span{font-size:.67rem;letter-spacing:.15em;font-weight:800;color:#65754e}h1{font-family:Georgia,serif;font-size:2rem;margin:3px}p{line-height:1.5}h2{font-family:Georgia,serif;font-weight:500}.heading p{margin:0;color:#71805c;font-size:.85rem}.card{background:#fffdf6;border:1px solid #e1e1cd;border-radius:24px;padding:20px;text-align:center;box-shadow:0 8px 30px #344c2610}.mascot{width:135px;height:92px;object-fit:contain}#welcome{max-width:480px;margin:auto}#welcome h2{margin:8px 0}label{display:block;font-weight:bold;margin:20px 0 8px}select{display:block;width:100%;margin-bottom:12px}.primary{background:#3d663d;color:white;border-color:#3d663d;width:100%}.primary:hover{background:#2c512e}.small{font-size:.75rem;color:#65705e}footer{text-align:center;font-size:.7rem;color:#7d866f;padding:20px}.progress{display:flex;align-items:center;justify-content:space-between;font-size:.8rem;margin-bottom:8px}.progress button{font-size:.72rem;padding:6px 12px}.garden{height:108px;position:relative;border-radius:20px;overflow:hidden;background:none center 57%/cover;margin-bottom:10px}#growth{position:absolute;width:112px;height:112px;bottom:5px;left:12px}#growth img{position:absolute;width:100%;height:100%;object-fit:contain;transition:opacity .4s}.garden-caption{position:absolute;right:12px;bottom:13px;background:#fffdf5ee;border-radius:12px;padding:8px 12px}.garden-caption span,.garden-caption strong{display:block}.garden-caption strong{font-size:.8rem;margin-top:4px}.puzzle{padding:12px}.prompt{display:flex;justify-content:space-between}#clue{display:block;height:142px;width:100%;object-fit:contain;margin:4px auto}.controls{display:flex;justify-content:center;gap:10px}.controls button{min-width:120px}#status{margin:6px 0;min-height:24px;font-weight:bold;font-size:.85rem}.letters{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}.letter{position:relative;width:54px;height:56px;padding:0;border:0;border-radius:12px;background:transparent;isolation:isolate;font-size:1.55rem;font-weight:900;touch-action:none;user-select:none}.letter:before{content:"";position:absolute;inset:-10px;z-index:-1;background:var(--face) center/contain no-repeat;pointer-events:none}.letter:hover{background:#eff2df}.letter.selected{outline:3px solid #7554a1;outline-offset:-3px}.slot{border:2px dashed #b7c1a2;background:#f1f0df}.slot.filled{border-style:solid}.tray{min-height:66px;background:#eeefdf;border-radius:16px;padding:7px;margin-top:14px}#return{border:0;background:transparent;font-size:.75rem;margin-top:4px}#audioStatus:empty{display:none}.dragging{position:fixed!important;z-index:100;pointer-events:none;opacity:.9;transform:scale(1.1)}.finish-flower{display:block;width:200px;height:200px;object-fit:contain;margin:auto}#finish button{margin-top:10px}body.drag-active{overscroll-behavior:none}@media(max-width:380px){.app{padding-left:10px;padding-right:10px}.letter{width:49px;height:52px}.letters{gap:4px}#clue{height:124px}.heading{margin:0 0 10px}.garden{height:94px}}@media(min-width:700px){.app{padding-top:15px}#clue{height:210px}.garden{height:150px}#growth{width:150px;height:150px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}} 

.spoken-clue{height:142px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:4px auto;color:#486343}.spoken-clue>span{font-size:2.4rem}.spoken-clue p{font-size:.8rem;margin:5px 0}.spoken-clue strong{font-family:Georgia,serif;font-size:1.2rem}@media(max-width:380px){.spoken-clue{height:124px}}@media(min-width:700px){.spoken-clue{height:210px}}

/* The garden is the reward, with an uninterrupted scene on every correct word. */
body{background:#eff0db}.app{max-width:720px}.heading{margin:0 0 10px}.heading h1{color:#315c36}.garden{height:196px;border:3px solid #fffdf4;border-radius:24px;box-shadow:0 10px 25px #30492b25;background-position:center 60%;isolation:isolate}.scene-sunlight{position:absolute;inset:0;background:linear-gradient(120deg,#fff1af55,transparent 60%);pointer-events:none}#growth{width:184px;height:184px;bottom:0;left:calc(50% - 92px);z-index:2}#growth img{width:100%;height:100%;position:absolute;object-fit:contain}.garden-caption{top:8px;bottom:auto;left:10px;right:auto;background:#fffdf2ec;padding:7px 10px;z-index:4}.garden-caption>span:first-child{font-size:.58rem}.garden-caption strong{font-size:.7rem}.growth-steps{letter-spacing:.2em;color:#426940!important;font-size:.65rem!important;margin-top:4px}.garden-prop{position:absolute;width:80px;height:80px;object-fit:contain;bottom:8px;right:5px;z-index:3}.garden-beds{position:absolute;inset:0;pointer-events:none}.saved-flower{position:absolute;object-fit:contain;height:auto}.puzzle{background:#fffdf1ef;border:2px solid #d6ddbf;border-radius:24px;margin-top:12px}#clue,.spoken-clue{height:112px}.spoken-clue{background:radial-gradient(ellipse,#e3ebcf88,transparent 65%);border-radius:80px}.spoken-clue>span{color:#5d7a43;font-size:2rem}.puzzle .small{margin:4px 0}.tray{margin-top:9px}.letter{font-size:1.65rem}
.celebration{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto;padding:calc(env(safe-area-inset-top) + 66px) 14px calc(env(safe-area-inset-bottom) + 22px);background:#e6edc9 none center/cover;isolation:isolate}.celebration-sky{position:absolute;inset:0;z-index:-1;background:linear-gradient(#fffbe6ed 0%,#fffbe6bb 26%,#fffbe600 58%,#28451b88 100%)}.celebration-exit{position:absolute;top:calc(env(safe-area-inset-top) + 12px);right:14px;background:#fffcf0e8;min-height:44px;font-size:.8rem}.celebration-heading{text-align:center;max-width:500px}.celebration-heading>span{letter-spacing:.2em;font-size:.72rem;font-weight:800;color:#486442}.celebration-heading h2{font-size:clamp(1.8rem,7vw,3rem);margin:10px 0;color:#315831;font-weight:bold;text-wrap:balance}.celebration-heading p{font-size:1rem;font-weight:bold;color:#3f5733;margin:8px 0}.celebration-plot{position:relative;isolation:isolate;width:min(96vw,500px);height:min(88vw,430px);flex-shrink:0}.celebration-plant{position:absolute;width:100%;height:100%;inset:0;z-index:2}.celebration-plant img{position:absolute;width:100%;height:100%;object-fit:contain}.growth-before{animation:fade-old .7s .35s both}.growth-after{animation:grow-new 1.4s .4s both;transform-origin:50% 97%}.watering-can{position:absolute;width:36%;height:36%;right:-1%;top:16%;object-fit:contain;z-index:3;animation:watering 2s ease-in-out both;transform-origin:80% 50%}.water-drops{position:absolute;right:28%;top:41%;font-size:2rem;letter-spacing:5px;color:#6aa3cf;z-index:4;animation:water-fall 1.7s both}.celebration-butterfly{position:absolute;left:5%;top:10%;width:20%;height:20%;object-fit:contain;z-index:4;animation:butterfly-float 3s ease-in-out both}.celebration-sparkle{position:absolute;right:21%;top:17%;width:18%;height:18%;object-fit:contain;animation:sparkle-rise 2.5s both;z-index:4}.celebration-progress{position:relative;padding:10px 20px;border-radius:30px;background:#fffbeded;font-weight:800;text-align:center;margin:8px 0;box-shadow:0 3px 15px #273b2922}.next-word-note{color:white;text-shadow:0 2px 5px #172b13;font-size:.85rem;font-weight:bold;margin:8px 0}.finish-garden{position:relative;min-height:240px;width:100%;border-radius:20px;background:none center/cover;overflow:hidden}.finish-garden .saved-flower{width:40%!important;bottom:0!important}.last-plant{position:absolute;width:45%;height:90%;right:5%;bottom:0;object-fit:contain}
@keyframes fade-old{from{opacity:1}to{opacity:0}}@keyframes grow-new{from{opacity:0;scale:.94}to{opacity:1;scale:1}}@keyframes watering{0%{opacity:0;transform:translate(20px,-15px) rotate(10deg)}20%,65%{opacity:1;transform:rotate(-22deg)}100%{opacity:0;transform:translate(20px,-15px)}}@keyframes water-fall{0%,15%{opacity:0;translate:0 -12px}35%,70%{opacity:1}100%{opacity:0;translate:-12px 35px}}@keyframes butterfly-float{0%{translate:-30px 20px;opacity:0}25%{opacity:1}55%{translate:12px -10px}100%{translate:40px 0;opacity:1}}@keyframes sparkle-rise{0%,30%{opacity:0;translate:0 10px}55%{opacity:.9}100%{opacity:0;translate:0 -25px}}
@media(max-width:380px){.garden{height:164px}#growth{width:155px;height:155px;left:calc(50% - 77.5px)}#clue,.spoken-clue{height:92px}.garden-caption strong{font-size:.63rem}.heading p{display:none}.celebration-heading p{font-size:.9rem}}@media(max-height:650px){.celebration{justify-content:flex-start}.celebration-plot{height:230px;width:265px}.celebration-heading h2{font-size:1.6rem}}@media(min-width:700px){.garden{height:260px}#growth{height:250px;width:250px;left:calc(50% - 125px)}#clue,.spoken-clue{height:150px}}
@media(prefers-reduced-motion:reduce){.celebration *{animation:none!important;transition:none!important}.growth-before{opacity:0}.growth-after{opacity:1}.water-drops,.watering-can,.celebration-sparkle{display:none}}

.controls #hear{background:#3d663d;color:#fff;flex:1;max-width:260px;font-size:.95rem}.controls #hint{min-width:85px}.puzzle #clue{height:150px}@media(max-width:380px){.puzzle #clue{height:126px}}

/* Cloud Climb: spelling drives the adventure above the letter tray. */
.climb-frame{overflow:hidden;border:3px solid #fffdf6;border-radius:24px;box-shadow:0 8px 20px #3b547125;background:#c5e7f6;margin-bottom:10px}.climb-info{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;background:#fffdf3ed;position:relative;z-index:4}.climb-info span{font-size:.58rem;letter-spacing:.12em;font-weight:900;color:#536b7d}.climb-info strong{font-size:.7rem;color:#314e67}.climb-scene{height:210px;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(#a1d7f0,#fdf4d1)}.climb-world{position:absolute;inset:0;transition:transform 1s cubic-bezier(.2,.7,.3,1)}.reset-world{transition:none!important}.reset-world .climber{transition:none!important}.climb-platform{position:absolute;width:70px;height:16px;margin-left:-35px;border-radius:9px 9px 12px 12px;background:linear-gradient(#82b95b 0 35%,#a57745 36%,#785736);box-shadow:0 5px 0 #55452826;z-index:2;border-top:2px solid #b9dc83}.climb-platform span{position:absolute;right:6px;top:-14px;background:#fffef3;border:1px solid #a6bca7;border-radius:30px;font-size:.6rem;font-weight:bold;min-width:22px;padding:2px 4px;text-align:center;color:#466349}.summit-platform{background:linear-gradient(#fff9d7,#f7d365);border-color:#fff8bd}.summit-platform span{background:#fff4bd;color:#916715}.climber{position:absolute;width:126px;height:84px;margin-left:-63px;z-index:3;transition:left 1s cubic-bezier(.2,.65,.4,1),bottom 1s ease-in-out;transform-origin:50% 100%}.climber img{display:block;width:100%;height:100%;object-fit:contain}.jumping img{animation:platform-jump 1s ease-in-out both}.sun-disc{position:absolute;width:64px;height:64px;border-radius:50%;background:#fff4b1;right:15px;top:16px;box-shadow:0 0 35px 15px #fff6c755;opacity:calc(1 - var(--altitude,0)*.6)}.sky-cloud{position:absolute;width:95px;height:28px;border-radius:50px;background:#fffdf3;box-shadow:0 6px 15px #4e7c9a13;opacity:.9}.sky-cloud:before,.sky-cloud:after{content:"";position:absolute;border-radius:50%;background:inherit}.sky-cloud:before{width:48px;height:48px;left:14px;bottom:5px}.sky-cloud:after{width:38px;height:38px;right:10px;bottom:4px}.cloud-one{left:5%;top:35px;opacity:calc(.3 + var(--altitude,0)*.7)}.cloud-two{left:58%;top:112px;scale:.7}.cloud-three{left:27%;top:165px;scale:.55;opacity:calc(.2 + var(--altitude,0)*.6)}.distant-hill{position:absolute;width:90%;height:100px;background:#96bf9a;border-radius:60% 70% 0 0;bottom:-45px;opacity:calc(1 - var(--altitude,0));transition:opacity 1s}.hill-one{left:-20%}.hill-two{right:-25%;background:#afcbb1;height:120px;z-index:-1}.climb-meter{height:6px;background:#e6e8d2}.climb-meter>div{height:100%;background:linear-gradient(90deg,#76aa51,#f6ce61);transition:width .9s;border-radius:9px}.jump-praise{position:absolute;left:50%;top:18px;translate:-50% 6px;max-width:90%;width:max-content;text-align:center;font-weight:900;font-size:.9rem;padding:9px 16px;border-radius:25px;background:#fffce9;box-shadow:0 5px 15px #334d6022;color:#3c683c;opacity:0;transition:opacity .2s,translate .2s;z-index:6;pointer-events:none}.jump-praise.show{opacity:1;translate:-50% 0}.summit{position:relative;height:250px;border-radius:25px;background:linear-gradient(#9ab8ed,#efdcff);overflow:hidden;margin:16px 0}.summit-cloud{width:180px;height:45px;bottom:42px;left:calc(50% - 90px)}#summitArt{position:absolute;width:230px;height:155px;object-fit:contain;bottom:48px;left:calc(50% - 115px);z-index:2}.summit-trophy{position:absolute;width:90px;height:90px;object-fit:contain;bottom:42px;right:12px;z-index:3}.summit-stars{position:absolute;inset:22px 0 auto;color:#fff1ad;font-size:1.9rem;letter-spacing:5px;animation:summit-arrival 1.2s both}#finish{background:#fffcf2}#finish .mascot{display:none}.puzzle #clue,.spoken-clue{height:123px}#welcome .primary{background:#3f688a;border-color:#3f688a}.heading h1{color:#385e7a}@keyframes platform-jump{0%,100%{translate:0 0}45%{translate:0 -42px}}@keyframes summit-arrival{from{opacity:0;translate:0 -20px}to{opacity:1;translate:0 0}}@media(max-width:380px){.climb-scene{height:185px}.climb-info{padding:7px}.climb-info span{font-size:.5rem}.climb-info strong{font-size:.63rem}.puzzle #clue,.spoken-clue{height:105px}}@media(min-width:700px){.climb-scene{height:260px}}@media(prefers-reduced-motion:reduce){.climb-world,.climber,.climb-meter>div,.jump-praise{transition:none!important}.jumping img,.summit-stars{animation:none!important}}

.summit:before,.summit:after{content:"";position:absolute;bottom:-20px;width:230px;height:210px;clip-path:polygon(50% 0,100% 100%,0 100%);background:linear-gradient(#fff8e4 0 20%,#718da5 21%,#527f75);left:-60px}.summit:after{left:auto;right:-80px;height:180px;background:linear-gradient(#fff8e4 0 18%,#8ca6b7 19%,#547b71)}

/* Mobile play uses the available viewport, with the adventure taking the spare space. */
body.in-game{height:100dvh;overflow:hidden}.in-game .app{height:100dvh;max-width:760px;padding:env(safe-area-inset-top) 8px env(safe-area-inset-bottom);display:grid;grid-template-rows:38px minmax(0,1fr);gap:4px}.in-game header{padding:2px 4px}.in-game header img{height:32px;width:108px}.in-game header button{min-height:32px;padding:4px 10px;font-size:.7rem}.in-game .heading,.in-game footer{display:none}.in-game #play{min-height:0;display:grid;grid-template-rows:30px minmax(160px,1fr) 290px;gap:6px;padding-bottom:4px}.in-game .progress{margin:0;padding:0 3px}.in-game .progress button{min-height:28px;padding:3px 10px;font-size:.7rem}.in-game .climb-frame{margin:0;min-height:0;display:grid;grid-template-rows:28px minmax(0,1fr) 5px;border-width:2px;border-radius:19px}.in-game .climb-info{padding:5px 9px}.in-game .climb-info span{font-size:.6rem}.in-game .climb-info strong{font-size:.65rem}.in-game .climb-scene{height:100%;min-height:0}.in-game .puzzle{margin:0;padding:8px 10px;display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:16px 78px 20px 52px 60px 30px;column-gap:8px;row-gap:2px;border-radius:20px;min-height:0}.in-game .prompt{grid-column:1/-1;font-size:.61rem;align-items:center}.in-game .puzzle #clue,.in-game .spoken-clue{grid-column:1;grid-row:2;height:78px;width:100%;margin:0;object-fit:contain}.in-game .spoken-clue>span{font-size:1.5rem}.in-game .spoken-clue strong{font-size:.8rem}.in-game .spoken-clue p{display:none}.in-game .controls{grid-column:2;grid-row:2;align-items:center;gap:6px}.in-game .controls #hear{min-width:0;max-width:none;font-size:.76rem;line-height:1.2;padding:7px 5px;min-height:48px}.in-game .controls #hint{min-width:54px;font-size:.75rem;padding:7px 6px;min-height:48px}.in-game #status{grid-column:1/-1;grid-row:3;font-size:.72rem;line-height:20px;min-height:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.in-game #slots{grid-column:1/-1;grid-row:4;align-items:center;gap:4px;flex-wrap:nowrap}.in-game #tray{grid-column:1/-1;grid-row:5;margin:0;padding:4px;min-height:0;align-items:center;gap:4px;flex-wrap:nowrap}.in-game .letter{height:48px;width:48px;flex-shrink:0;min-height:48px;font-size:1.5rem}.in-game .letter:before{inset:-8px}.in-game #return{grid-column:1/-1;grid-row:6;min-height:28px;margin:0;padding:1px;font-size:.7rem}.in-game .puzzle>.small{display:none}.in-game #audioStatus:not(:empty){display:block;position:fixed;left:50%;top:44px;translate:-50% 0;background:#fffbed;border:1px solid #d8c981;box-shadow:0 2px 12px #3452;border-radius:12px;padding:6px 10px;max-width:90vw;z-index:10;font-size:.7rem;margin:0;pointer-events:none}.in-game .long-word .letter{width:clamp(32px,calc((100vw - 72px)/8),48px);font-size:1.3rem}.in-game .climber{width:120px;height:90px;margin-left:-60px}.in-game .climb-platform{width:76px;margin-left:-38px}.in-game .jump-praise{top:28%;font-size:.78rem;padding:7px 12px}
.scenery-layer{position:absolute;inset:0;pointer-events:none;z-index:-1}.forest-tree{position:absolute;bottom:-20px;width:100px;height:190px;opacity:0;transition:opacity 1s;background:#74836a;clip-path:polygon(45% 100%,45% 78%,0 78%,20% 58%,7% 58%,30% 35%,20% 35%,50% 0,80% 35%,70% 35%,93% 58%,80% 58%,100% 78%,55% 78%,55% 100%)}.tree-a{left:0}.tree-b{right:-15px;height:235px;background:#658577}.mountain{position:absolute;width:240px;height:260px;bottom:-40px;clip-path:polygon(50% 0,100% 100%,0 100%);background:linear-gradient(#fbf7e8 0 20%,#8b9eaa 21%,#5b817e);opacity:0;transition:opacity 1s}.mountain-a{left:-50px}.mountain-b{right:-80px;height:300px;background:linear-gradient(#fff9ed 0 19%,#9db0ba 20%,#728d91)}.waterfall{position:absolute;right:16%;bottom:-15px;height:170px;width:24px;background:linear-gradient(90deg,#a8e4e8aa,#edffff,#a1d9e1aa);border-radius:20px 20px 0 0;opacity:0;transition:opacity 1s}.high-cloud{position:absolute;width:170px;height:70px;border-radius:60%;background:#fffef4;opacity:0;transition:opacity 1s;box-shadow:30px -15px 0 #fffef4,-20px -8px 0 #fffef4}.high-cloud-a{bottom:5px;left:-25px}.high-cloud-b{bottom:45px;right:-65px;scale:.8}.climb-scene[data-region="1"] .forest-tree{opacity:.7}.climb-scene[data-region="2"] .mountain,.climb-scene[data-region="2"] .waterfall{opacity:.9}.climb-scene[data-region="3"] .mountain{opacity:.4}.climb-scene[data-region="3"] .high-cloud{opacity:.95}
@media(max-height:640px){.in-game #play{grid-template-rows:28px minmax(140px,1fr) 270px;gap:4px}.in-game .puzzle{grid-template-rows:14px 62px 18px 50px 58px 28px;padding:6px 8px}.in-game .puzzle #clue,.in-game .spoken-clue{height:62px}.in-game #status{line-height:18px}.in-game .app{grid-template-rows:32px minmax(0,1fr)}.in-game header img{height:28px}.in-game header button{min-height:28px}.in-game .climber{height:76px}}
@media(max-height:500px) and (orientation:landscape){.in-game #play{grid-template-columns:1fr 1fr;grid-template-rows:28px minmax(0,1fr)}.in-game .progress{grid-column:1/-1}.in-game .climb-frame{grid-column:1;grid-row:2}.in-game .puzzle{grid-column:2;grid-row:2}.in-game .long-word .letter{width:clamp(26px,calc((50vw - 62px)/8),42px)}}

.teacher-list{text-align:left;margin:12px 0}.teacher-list summary{cursor:pointer;font-weight:bold;font-size:.85rem}.teacher-list textarea{width:100%;font:inherit;padding:10px;border:1px solid #c3ccaf;border-radius:12px;margin-bottom:8px}.teacher-list label{font-size:.8rem;margin-top:10px}.teacher-list button{width:100%}#adultPrompt{font-size:.7rem;color:#53634c;margin-top:5px}.in-game #adultPrompt{position:absolute;right:20px;bottom:9px;z-index:12;background:#fffdf2;border-radius:8px;padding:3px 5px}.in-game #adultPrompt[open]{box-shadow:0 0 0 3px #d8e3bc;padding:8px 14px;font-size:1rem}.in-game #adultWord{display:block;font-weight:bold}.in-game .long-word .letter{width:clamp(20px,calc((100vw - 72px)/var(--letter-count,8)),48px);font-size:clamp(.85rem,calc(11vw / var(--letter-count,8) * 2),1.3rem)}.in-game .puzzle{position:relative}.in-game #return{padding-right:95px}@media(min-width:760px){.in-game .long-word .letter{width:clamp(20px,calc(680px / var(--letter-count,8)),48px)}}

/* Each grade has its own world, with four regions along the climb. */
.theme-scenery{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}.star-field{position:absolute;inset:0;opacity:0;transition:opacity 1s}.star-field i{position:absolute;border-radius:50%;background:#fffbd5;box-shadow:0 0 4px #fff4b477}.theme-river{position:absolute;width:70%;height:75%;bottom:-22%;left:32%;border-radius:70% 5% 80% 10%;rotate:30deg;background:linear-gradient(90deg,#67cbdc,#b6eeef,#53adcb);opacity:0}.autumn-trees{position:absolute;width:95px;height:95px;border-radius:50%;background:#b85d37;box-shadow:30px 15px 0 #d68a3f,-20px 40px 0 #e0ac4f,230px 30px 0 #a94f41;bottom:0;left:-10px;opacity:0}.aurora-ribbon{position:absolute;left:-20%;top:18%;width:140%;height:32%;rotate:-15deg;border-radius:50%;background:linear-gradient(transparent,#53e3b544,#64efaeaa,#9c8dfa66,transparent);opacity:0;filter:blur(9px)}.aurora-b{top:35%;rotate:12deg;background:linear-gradient(transparent,#7aa3ef44,#d28ce777,transparent)}.climb-scene[data-theme="1"] .theme-river{opacity:.85}.climb-scene[data-theme="1"] .hill-one{background:#5c9e91}.climb-scene[data-theme="1"] .hill-two{background:#8db9a1}.climb-scene[data-theme="2"] .autumn-trees{opacity:.85}.climb-scene[data-theme="2"] .forest-tree{background:#a46b42}.climb-scene[data-theme="2"] .hill-one{background:#c48e61}.climb-scene[data-theme="2"] .hill-two{background:#d7aa72}.climb-scene[data-theme="3"] .star-field,.climb-scene[data-theme="4"] .star-field{opacity:1}.climb-scene[data-theme="3"] .sun-disc,.climb-scene[data-theme="4"] .sun-disc{background:#f9f2d8;box-shadow:0 0 24px 8px #e3e5ff33;width:38px;height:38px;opacity:1}.climb-scene[data-theme="3"] .hill-one,.climb-scene[data-theme="4"] .hill-one{background:#3e5771}.climb-scene[data-theme="3"] .hill-two,.climb-scene[data-theme="4"] .hill-two{background:#52637d}.climb-scene[data-theme="3"] .sky-cloud,.climb-scene[data-theme="4"] .sky-cloud{background:#a5b0d2;opacity:.4}.climb-scene[data-theme="3"] .forest-tree,.climb-scene[data-theme="4"] .forest-tree{background:#284c5a}.climb-scene[data-theme="4"] .aurora-ribbon{opacity:1}.climb-scene[data-theme="3"] .mountain,.climb-scene[data-theme="4"] .mountain{background:linear-gradient(#c7cee9 0 20%,#455c79 21%,#354c66)}.climb-scene[data-theme="3"] .high-cloud,.climb-scene[data-theme="4"] .high-cloud{background:#b6bddb;box-shadow:30px -15px 0 #b6bddb,-20px -8px 0 #b6bddb}.climb-world{z-index:2}.scenery-layer{z-index:1}.sun-disc,.sky-cloud,.distant-hill{z-index:0}.summit[data-theme="1"]{background:linear-gradient(#81bfd4,#d7eeea)}.summit[data-theme="2"]{background:linear-gradient(#e7a986,#f7dfb8)}.summit[data-theme="3"]{background:radial-gradient(circle at 20% 20%,#fff8da 0 2px,transparent 3px),radial-gradient(circle at 80% 35%,#fff8da 0 2px,transparent 3px),linear-gradient(#202950,#6b629c)}.summit[data-theme="4"]{background:linear-gradient(155deg,#172f54,#347d78 45%,#66609b 70%,#253c5f)}

.practice-sections{display:flex;gap:8px;margin-top:15px}.practice-sections button{flex:1;font-size:.8rem;padding:8px}.practice-sections button[aria-pressed="true"]{background:#3f688a;color:white;border-color:#3f688a}

.truth-card{margin:18px 0;padding:20px 16px;border-radius:20px;background:#edf1df;border:1px solid #d5dfbc;text-align:center}.truth-eyebrow{font-size:.65rem;letter-spacing:.14em;font-weight:900;color:#61784c}.truth-card h3{font-family:Georgia,serif;font-size:1.45rem;color:#365d37;margin:10px 0}.truth-card p{line-height:1.6;margin:8px 0}.truth-reference{font-weight:800;font-size:.85rem;color:#546a44}.truth-card button{margin-top:6px!important}

/* A child can start in three choices; teaching controls live in a separate dialog. */
body.home-screen{height:100dvh;overflow:hidden}.home-screen .app{height:100dvh;display:grid;grid-template-rows:42px 48px minmax(0,1fr);gap:4px;padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom);max-width:520px}.home-screen header{padding:2px 0}.home-screen header img{width:128px;height:38px}.home-screen header button{min-height:36px;padding:5px 10px;font-size:.75rem}.home-screen .heading{margin:0;text-align:center;align-self:center}.home-screen .heading h1{font-size:1.85rem;margin:0}.home-screen .heading>span,.home-screen .heading>p,.home-screen footer{display:none}.home-screen #welcome{min-height:0;max-width:none;width:100%;border-radius:22px;box-shadow:none;padding:12px;display:flex;flex-direction:column;justify-content:center;gap:8px;margin:0 0 8px}.child-home h2{font:800 1rem ui-rounded,"Trebuchet MS",system-ui,sans-serif;margin:0;text-align:left}.character-choices{display:flex;gap:12px}.character-choices button{flex:1;min-width:0;position:relative;height:122px;padding:4px 8px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f7f4e8;border:2px solid #c8d0b9;border-radius:18px}.character-choices img{width:132px;height:82px;object-fit:contain;max-width:100%}.character-choices strong{font-size:.9rem}.character-choices button[aria-pressed="true"]{border:3px solid #49763e;background:#edf4df}.choice-check{display:none;position:absolute;right:5px;top:5px;width:24px;height:24px;border-radius:50%;background:#49763e;color:white;line-height:24px;font-size:.9rem}.character-choices [aria-pressed="true"] .choice-check{display:block}.child-home .practice-sections{margin:0;gap:12px}.child-home .practice-sections button{min-height:64px;display:flex;align-items:center;justify-content:center;gap:8px;border-width:2px;border-radius:16px;padding:8px;font-size:.9rem}.game-icon{display:inline-block;font-weight:900;font-size:1.1rem}.child-home .home-description{font-size:.8rem;line-height:1.3;margin:0;color:#566b4b}.ready-summary{font-size:.75rem;font-weight:bold;color:#436178;margin:0}.child-home #start{font-size:1.4rem;min-height:58px;padding:8px;border-radius:18px;background:#3d6c3a;border-color:#3d6c3a;box-shadow:0 4px 0 #274c25}.home-tools{display:flex;gap:8px;margin-top:3px}.home-tools button{min-height:44px;font-size:.72rem;flex:1;padding:5px}.child-home #loadStatus:empty{display:none}dialog{max-height:calc(100dvh - 32px);width:min(94vw,480px);border:1px solid #c5d0b7;border-radius:22px;padding:20px;color:#2e442f;background:#fffdf2;overflow:auto;box-shadow:0 20px 70px #192e3b55}dialog::backdrop{background:#20304499}dialog h2{font-family:Georgia,serif;margin:0;font-size:1.4rem}.settings-header{display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:-20px;background:#fffdf2;padding:10px 0;z-index:2}.settings-header button{min-height:44px;background:#3f688a;color:white}.settings-header h2{font-size:1.2rem}#howDialog li{padding:8px 0;line-height:1.5}#howDialog button{width:100%;margin-top:12px}button{touch-action:manipulation}button.letter{touch-action:none}
@media(max-height:650px){.home-screen .app{grid-template-rows:36px 38px minmax(0,1fr);gap:3px;padding-left:10px;padding-right:10px}.home-screen header img{height:32px}.home-screen .heading h1{font-size:1.6rem}.home-screen #welcome{padding:10px;gap:6px}.character-choices button{height:100px}.character-choices img{height:64px}.child-home .practice-sections button{min-height:54px}.child-home #start{min-height:52px}.child-home h2{font-size:.9rem}.child-home .home-description{font-size:.72rem}.home-tools button{min-height:44px}}
@media(max-height:460px) and (orientation:landscape){.home-screen .app{grid-template-columns:150px minmax(0,1fr);grid-template-rows:42px minmax(0,1fr);max-width:760px}.home-screen header{grid-column:1;grid-row:1}.home-screen header button{display:none}.home-screen .heading{grid-column:1;grid-row:2}.home-screen #welcome{grid-column:2;grid-row:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:5px}.child-home h2{display:none}.character-choices{grid-column:1;grid-row:1/4}.character-choices button{height:145px;padding:4px}.character-choices strong{font-size:.75rem}.character-choices img{height:105px}.child-home .practice-sections{grid-column:2;grid-row:1}.child-home .home-description{grid-column:2;grid-row:2}.child-home .ready-summary{grid-column:2;grid-row:3}.child-home #start{grid-column:1/-1}.child-home .home-tools{grid-column:1/-1}}

.challenge-intro{font-size:.88rem;line-height:1.4;margin:5px 0 12px}.level-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.level-cards button{min-height:76px;padding:7px 4px;font-size:1.4rem;border:2px solid #c8d4bc;background:#f6f6e8}.level-cards strong{display:block;font-size:.72rem;margin-top:4px}.level-cards [aria-pressed="true"],.length-cards [aria-pressed="true"]{background:#3f688a;color:white;border-color:#3f688a}.length-cards{display:flex;gap:8px}.length-cards button{flex:1;font-size:1.1rem;min-height:48px;padding:5px}.more-choices{margin:12px 0;font-size:.8rem}.more-choices summary{cursor:pointer;padding:7px 0}.more-choices label{margin:6px 0}.settings-header button{font-size:.8rem}.home-tools button{font-size:.75rem}
