@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url('/fonts/nunito-latin.woff2') format('woff2')}
:root{font-family:'Nunito',ui-rounded,'Segoe UI',sans-serif;color:#233f47;background:#f8faf9;font-synthesis:none;--teal:#087f75;--ink:#233f47;--muted:#64777c;--line:#e4ebe8}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button,a,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ec9a28;outline-offset:4px}button{color:inherit}a{color:var(--teal)}.skip-link{position:absolute;top:-60px;left:20px;background:#fff;padding:12px;z-index:10}.skip-link:focus{top:8px}.site-header{height:96px;max-width:1440px;margin:auto;padding:0 6%;display:flex;align-items:center;gap:44px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;border:0;background:none;font-size:23px;line-height:1.1;font-weight:900;letter-spacing:-.7px;padding:0;text-align:left}.brand-island{display:block;color:var(--teal)}.brand-mark{background:var(--teal);color:#ffdc7e;display:grid;place-items:center;width:45px;height:48px;border-radius:14px;font-size:37px;transform:rotate(-5deg)}nav{display:flex;gap:8px;margin:auto}.nav-item{padding:12px 21px;border:0;background:none;font-weight:800;font-size:15px;border-radius:24px;color:#697b7e}.nav-item.active{background:#e4f2ed;color:#087268}.header-end{display:flex;gap:20px;align-items:center}.discovery-count{font-size:14px;color:#69766e}.discovery-count:first-letter{color:#cb8825}.discovery-count b{color:var(--ink);font-size:18px}.parent-button{background:#fff;border:1px solid var(--line);width:42px;height:42px;border-radius:50%;font-size:24px}main{max-width:1280px;margin:auto;padding:36px 36px 28px}.welcome{display:flex;align-items:center;justify-content:space-between;margin:0 0 27px;gap:18px}.eyebrow{color:#6c807a;font-size:11px;letter-spacing:1.8px;font-weight:900}.welcome h1{font-size:34px;letter-spacing:-1.1px;margin:7px 0 4px;font-weight:900;line-height:1.25}.welcome h1 span{color:#eca944}.welcome p{color:var(--muted);margin:0;font-size:16px}.explorer-label{display:flex;align-items:center;gap:12px}.explorer-label>span{font-size:32px;background:#fff;border-radius:50%;padding:12px}.explorer-label b{font-size:14px;display:block}.explorer-label small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.adventure-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.island-map{position:relative;border-radius:24px;overflow:hidden;min-height:420px;background:#9adbd4}.map-top{position:absolute;top:18px;left:22px;right:22px;display:flex;justify-content:space-between;gap:10px;z-index:1}.map-label{font-size:10px;font-weight:900;letter-spacing:1.3px;color:#245d5b;background:#e3faf0df;padding:7px 10px;border-radius:12px}.map-water{position:absolute;inset:0;background:linear-gradient(145deg,#b2e5dc,#7acacb);background-size:cover;background-position:center}.map-centre{display:grid;place-content:center;text-align:center;height:100%;color:#24605d}.map-centre>span{font-size:100px}.map-centre h2{font-size:20px}.map-stop{position:absolute;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:4px;z-index:2;transform:translate(-50%,-50%);transition:translate .15s}.map-stop:hover{translate:0 -4px}.map-pin{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#fff9e8;border:3px solid #fff;font-size:24px;box-shadow:0 4px 0 #22585724}.map-stop-label{background:#fffaf2;padding:5px 10px;border-radius:10px;font-weight:900;font-size:12px;box-shadow:0 3px 0 #22585720;white-space:nowrap}.stop-0{left:25%;top:38%}.stop-1{left:64%;top:29%}.stop-2{left:78%;top:64%}.stop-3{left:45%;top:79%}.stop-4{left:23%;top:67%}.map-caption{position:absolute;bottom:13px;left:0;right:0;text-align:center;font-size:11px;font-weight:800;color:#255e5f}.daily-card{background:#fff1c9;border-radius:24px;padding:24px;display:flex;flex-direction:column;align-items:flex-start}.daily-top{display:flex;justify-content:space-between;align-items:center;width:100%}.pill{display:inline-flex;align-items:center;gap:8px;font-weight:900;font-size:11px;letter-spacing:.6px;border-radius:9px;background:#ffffff80;padding:7px 10px}.daily-top>span:last-child{color:#bd8821;font-size:25px}.daily-art{font-size:47px;margin:15px 0 8px;transform:rotate(-9deg)}.daily-card h2{font-size:26px;line-height:1.17;letter-spacing:-.6px;font-weight:900;margin:0 0 12px}.daily-card p{font-size:15px;line-height:1.6;margin:0 0 16px;color:#76674b}.daily-details{display:grid;gap:7px;font-size:12px;font-weight:700;color:#71654b;margin-bottom:22px}.button{display:inline-flex;justify-content:center;align-items:center;gap:15px;border-radius:12px;min-height:48px;padding:12px 21px;font-weight:900;border:0;text-decoration:none}.button.primary{background:var(--teal);color:#fff;box-shadow:0 3px 0 #05685f}.button.primary:hover{background:#096e64}.button.secondary{background:#fff;border:1px solid #d4e2dc}.button:disabled{opacity:.45;box-shadow:none}.daily-card .button{width:100%;justify-content:space-between;margin-top:auto}.daily-card small{font-size:10px;text-align:center;align-self:center;color:#85734e;margin-top:14px}.practice-section{margin-top:32px;scroll-margin-top:20px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:17px}.section-heading h2{font-size:23px;font-weight:900;letter-spacing:-.4px;margin:6px 0 0}.section-heading>span{font-size:13px;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.category-card{text-align:left;border:1px solid #dfebe6;border-radius:17px;padding:17px 15px;background:#fff;transition:transform .15s,box-shadow .15s}.category-card:hover{transform:translateY(-4px);box-shadow:0 8px 18px #2148380a}.category-icon{display:grid;place-items:center;width:43px;height:43px;font-size:27px;border-radius:13px;background:#e0f3eb}.purple .category-icon{background:#eee6fb}.peach .category-icon{background:#fff0e1}.blue .category-icon{background:#e1f1ff}.yellow .category-icon{background:#fff4ce}.category-card h3{font-size:16px;font-weight:900;margin:14px 0 4px;letter-spacing:-.3px}.category-card p{font-size:12px;color:var(--muted);margin:0 0 19px}.category-bottom{font-size:10px;font-weight:800;display:flex;justify-content:space-between;gap:4px;color:#658077}.category-bottom>span{font-size:16px}.quiz-banner{display:flex;align-items:center;gap:17px;border:1px dashed #c4d6cc;border-radius:16px;padding:17px 22px;margin-top:23px;background:#f0f5ed}.quiz-icon{font-size:34px}.quiz-banner h3{font-size:16px;margin:0 0 3px;font-weight:900}.quiz-banner p{font-size:13px;color:var(--muted);margin:0}.quiz-banner .button{margin-left:auto;min-height:42px;font-size:13px}.site-footer{max-width:1208px;margin:0 auto;display:flex;justify-content:space-between;padding:10px 0 24px;font-size:11px;color:#82958e}.site-footer span span{color:#b39553;margin-left:5px}.play-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted)}.text-button{border:0;background:none;padding:9px 0;font-weight:800;color:#467269;font-size:14px}.journey-progress{display:flex;gap:10px;justify-content:center;margin:22px 0}.journey-progress span{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#e8eeeb;color:#7e8f88;font-size:14px;font-weight:900}.journey-progress .current{background:#ffe5a2;color:#70520e;outline:3px solid #fff;box-shadow:0 0 0 4px #f1d58f}.journey-progress .done{background:var(--teal);color:#fff}.puzzle-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px 38px;max-width:850px;margin:0 auto}.puzzle-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.puzzle-heading .pill{background:#e5f4ed;color:#226650;font-size:12px}.puzzle-card h1{font-size:30px;margin:17px 0 8px;font-weight:900;letter-spacing:-.8px}.question{font-size:20px;line-height:1.6;margin:0 0 22px}.puzzle-visual{background:#eff7f4;border-radius:17px;padding:24px;margin:0 0 24px}.berry-bank{display:flex;justify-content:center;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px;font-size:14px}.berries{color:#c75467;font-size:24px;letter-spacing:3px}.bowls{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.bowl{border:2px solid #c5e1d5;background:#fff;border-radius:18px;width:150px;min-height:135px;display:flex;align-items:center;flex-direction:column;padding:12px}.bowl .animal{font-size:40px}.bowl-fruit{font-size:14px;min-height:25px;color:#a84356}.bowl b{font-size:18px}.sharing>.text-button{display:block;margin:9px auto 0;font-size:12px}.answer-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer{display:flex;align-items:center;gap:12px;border:2px solid #e4eae7;background:#fff;padding:14px 16px;border-radius:12px;font-size:19px;font-weight:800;text-align:left;min-height:64px}.answer:hover{border-color:#94cabb;background:#f5fbf8}.answer-letter{display:grid;place-items:center;background:#f0f4f2;border-radius:7px;flex-shrink:0;width:27px;height:29px;font-size:13px;color:#7e8a84}.answer.selected{border-color:#dca24c;background:#fff7e9}.answer.correct{border-color:#63ad91;background:#edf9f1;color:#245d46;opacity:1}.answer-check{margin-left:auto}.feedback{font-size:16px;margin:16px 0;color:#8f641f}.feedback p{margin:6px 0;line-height:1.65}.feedback.success{background:#eff8ed;border-radius:12px;padding:16px;color:#316044}.hint-box{background:#fff7df;border-radius:12px;padding:16px;margin:16px 0}.hint-box p{line-height:1.6;margin:5px 0}.puzzle-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:10px}.puzzle-actions>span{font-size:13px;color:var(--muted)}.character-row{display:flex;gap:32px;justify-content:center;flex-wrap:wrap}.character-row>div{text-align:center}.character-row span{display:block;font-size:58px}.character-row b{display:block;margin-top:6px}.pattern-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.pattern-tile{font-size:33px;background:#fff;border-radius:12px;min-width:55px;padding:9px;text-align:center}.pattern-tile.missing{border:2px dashed #83b6a5;color:#578675}.shape-row{display:flex;gap:22px;justify-content:center;flex-wrap:wrap}.shape-row>div{width:100px;text-align:center;font-size:14px}.shape-row svg{width:100%;fill:#6dafc2;stroke:#3a7993;stroke-width:2}.story{display:flex;align-items:center;gap:25px}.story>span{font-size:64px}.story p{font-size:21px;line-height:1.7;margin:0}.finish-card{max-width:740px;margin:35px auto;text-align:center;padding:40px;background:#fff;border:1px solid var(--line);border-radius:24px}.finish-art{font-size:75px}.finish-card h1{font-size:32px}.finish-card>p{font-size:18px;color:var(--muted);line-height:1.7}.finish-stats{display:flex;justify-content:center;gap:45px;margin:28px 0}.finish-stats b{display:block;font-size:36px;color:var(--teal)}.finish-stats span{font-size:14px}.settings-dialog{width:min(560px,calc(100% - 32px));border:0;border-radius:22px;color:var(--ink);padding:30px;box-shadow:0 20px 100px #102b3c33}.settings-dialog::backdrop{background:#132e3e66;backdrop-filter:blur(4px)}.dialog-close{float:right;border:0;background:#f0f5f2;border-radius:50%;width:36px;height:36px;font-size:24px}.settings-dialog h2{font-size:26px;letter-spacing:-.5px}.settings-dialog p{line-height:1.65;color:var(--muted)}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:15px 0;font-size:14px;font-weight:800}.setting-row select{background:#f4f8f5;color:var(--ink);border:1px solid #dce6df;border-radius:8px;padding:9px;max-width:55%;font-size:14px}.settings-note{font-size:13px;background:#f0f5ef;padding:13px;border-radius:10px}
@media(min-width:1500px){main{padding-top:46px}.island-map{min-height:455px}}
@media(max-width:1000px){.site-header{padding:0 24px;gap:16px}.nav-item{padding:10px 13px}.header-end{gap:10px}.discovery-count>span{display:none}main{padding:28px 24px}.adventure-layout{grid-template-columns:minmax(0,1fr) 270px}.daily-card{padding:20px}.island-map{min-height:410px}.category-grid{grid-template-columns:repeat(3,1fr)}.site-footer{padding:12px 24px 24px}.explorer-label{display:none}}
@media(max-width:700px){.site-header{height:auto;min-height:112px;padding:16px 20px;flex-wrap:wrap;gap:12px}.brand{font-size:19px}.brand-mark{width:38px;height:40px;font-size:32px}.site-header nav{order:3;width:100%;justify-content:center;gap:12px}.nav-item{padding:8px 15px}.header-end{margin-left:auto}.discovery-count{font-size:13px}main{padding:24px 18px}.welcome h1{font-size:28px}.eyebrow{font-size:10px}.adventure-layout{grid-template-columns:1fr}.island-map{min-height:360px}.daily-card{display:grid;grid-template-columns:1fr auto;gap:10px 16px}.daily-top{grid-column:1/-1}.daily-art{grid-column:2;grid-row:2/4;font-size:55px;align-self:center;margin:0}.daily-card h2{font-size:24px;margin:0}.daily-card p{margin:0}.daily-details{margin:0}.daily-card .button{grid-column:1/-1;margin:6px 0 0}.daily-card small{grid-column:1/-1;margin:0}.section-heading>span{display:none}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid .category-card:last-child{grid-column:1/-1}.category-grid .category-card:last-child{display:grid;grid-template-columns:43px 1fr;gap:0 15px;align-items:center}.category-card:last-child .category-icon{grid-row:1/3}.category-card:last-child h3{margin:0}.category-card:last-child p{margin:0}.category-card:last-child .category-bottom{grid-column:2;margin-top:8px}.quiz-banner{flex-wrap:wrap;padding:18px;gap:12px}.quiz-banner>div{flex:1}.quiz-banner .button{width:100%;margin:0}.site-footer{font-size:10px;gap:15px;padding:10px 18px 22px}.puzzle-card{padding:22px 18px}.puzzle-card h1{font-size:26px}.question{font-size:19px}.puzzle-heading .pill{font-size:10px}.puzzle-heading .text-button{font-size:12px}.puzzle-visual{padding:18px 12px}.bowls{gap:7px}.bowl{width:calc((100% - 14px)/3);min-height:115px;padding:8px 3px}.bowl .animal{font-size:34px}.bowl-fruit{font-size:12px}.berry-bank{gap:4px}.berries{font-size:20px}.answer{font-size:17px;padding:12px;gap:8px}.puzzle-actions{flex-wrap:wrap}.puzzle-actions>.button{flex:1}.puzzle-actions>span{width:100%;text-align:center}.story{flex-direction:column;gap:12px}.story p{font-size:19px}.character-row{gap:24px}.character-row span{font-size:47px}.pattern-tile{font-size:26px;min-width:40px;padding:6px}.pattern-row{gap:7px}.finish-card{padding:25px 18px}.finish-card h1{font-size:27px}.finish-stats{gap:20px}.setting-row{flex-wrap:wrap}.setting-row select{max-width:100%;width:100%}.map-label{font-size:8px;letter-spacing:.6px}.map-top{left:12px;right:12px}.map-stop-label{font-size:10px;padding:4px 7px}.map-pin{width:37px;height:37px;font-size:20px}.stop-0{left:23%}.stop-2{left:79%}}
.island-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.map-caption{color:#fff;text-shadow:0 1px 4px #164b5a;font-size:12px}.stop-0{left:24%;top:36%}.stop-1{left:52%;top:26%}.stop-2{left:78%;top:62%}.stop-3{left:44%;top:78%}.stop-4{left:21%;top:66%}.discovery-count{border:0;background:none;padding:9px 0;min-height:44px}.category-card p{font-size:14px;line-height:1.5}.category-bottom{font-size:12px;line-height:1.4}.map-label{font-size:12px;letter-spacing:.6px}.map-stop-label{font-size:14px}.daily-details{font-size:14px}.daily-card small{font-size:12px}.eyebrow{font-size:12px}.pill{font-size:12px}.explorer-label small{font-size:13px}.quiz-banner p{font-size:14px}.site-footer{font-size:12px}.puzzle-heading .pill{font-size:12px}.puzzle-heading .text-button{font-size:14px}.puzzle-actions>span{font-size:14px}.text-button{min-height:44px}.help-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.quiz-setup{max-width:660px;margin:24px auto;background:#fff;border:1px solid var(--line);border-radius:24px;padding:36px;text-align:center}.quiz-setup h1{font-size:30px;line-height:1.3;letter-spacing:-.7px;margin:16px 0}.quiz-setup>p{font-size:18px;line-height:1.7;color:var(--muted)}.quiz-rules{display:grid;text-align:left;gap:15px;max-width:370px;margin:25px auto;padding:22px;background:#eff7f2;border-radius:16px;font-size:16px}.timer-choice{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:24px 0;font-size:16px}.timer-choice input{width:20px;height:20px;accent-color:var(--teal)}.timer-choice small{color:var(--muted);font-size:14px}.quiz-setup>.button{min-width:230px}.quiz-setup>.text-button{display:block;margin:15px auto 0}.timer{font-variant-numeric:tabular-nums;margin-left:12px;font-size:14px}.finish-buttons{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}.finish-stats{flex-wrap:wrap}.review-section{max-width:850px;margin:25px auto}.review-item{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:12px;overflow:hidden}.review-item summary{display:flex;align-items:center;gap:12px;padding:18px;cursor:pointer;font-size:16px}.review-item summary::after{content:'+';margin-left:6px;font-size:24px;font-weight:700}.review-item[open] summary::after{content:'−'}.review-item summary>span:first-child{font-size:25px}.review-status{margin-left:auto;font-size:12px;color:#856028;white-space:nowrap}.review-status.is-correct{color:#34765a}.review-content{padding:0 22px 16px;line-height:1.7}.review-story,.review-visual{background:#f1f7f3;border-radius:12px;padding:18px}.settings-note p{font-size:13px;margin:8px 0 0}.discovery-row{display:flex;align-items:center;gap:15px;margin:24px 0}.discovery-row>div{flex:1;min-width:0}.discovery-row b{font-size:16px;display:block}.discovery-row small{font-size:13px;color:var(--muted);display:block;margin:3px 0 7px}.discovery-row progress{width:100%;height:8px;accent-color:var(--teal);border:0;background:#e7efea;border-radius:10px;overflow:hidden}.discovery-row progress::-webkit-progress-bar{background:#e7efea}.discovery-row progress::-webkit-progress-value{background:var(--teal);border-radius:10px}.equation .pattern-tile{font-size:25px;font-weight:900}.clue-list{display:grid;gap:14px;max-width:390px;margin:auto}.clue-list>div{display:flex;align-items:center;gap:15px;font-size:19px}.clue-list>div>span{background:#fff;border-radius:50%;width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;font-size:15px;color:var(--teal);font-weight:900}.fruit-groups{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.fruit-groups>div{background:#fff;border-radius:12px;padding:15px;max-width:180px;text-align:center}.fruit-groups span{font-size:28px;overflow-wrap:anywhere}.fruit-groups small{font-size:14px;display:block;margin-top:7px}.tile-grid{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:4px;max-width:280px;margin:auto}.tile-grid>span{aspect-ratio:1;background:#70b8a2;border-radius:3px;border:1px solid #4b9981}.tile-grid>span.alt{background:#b7dace}.compass{position:relative;width:210px;height:210px;margin:auto;border-radius:50%;background:#fff;border:2px dashed #a6cebd}.compass>span{position:absolute;font-size:14px;font-weight:800}.compass .north{top:10px;left:50%;transform:translateX(-50%)}.compass .south{bottom:10px;left:50%;transform:translateX(-50%)}.compass .east{right:8px;top:50%;transform:translateY(-50%)}.compass .west{left:8px;top:50%;transform:translateY(-50%)}.compass .compass-arrow{position:absolute;inset:30px;display:grid;place-items:center;font-size:95px;color:#cf8e2e;line-height:1}.measure-rectangle{display:grid;grid-template-columns:1fr 50px;grid-template-rows:30px 130px;max-width:280px;margin:auto;gap:9px;align-items:center;text-align:center;font-weight:800}.measure-rectangle>div{grid-row:2;background:#b7dace;border:3px solid #579c83;height:100%;border-radius:5px}.measure-rectangle>span:last-child{grid-row:2;grid-column:2}.berries{overflow-wrap:anywhere;text-align:center;max-width:100%;line-height:1.3}.bowl-fruit{overflow-wrap:anywhere}.bowls{display:grid;grid-template-columns:repeat(3,minmax(0,150px))}.bowl{width:100%}.journey-progress{flex-wrap:wrap}.question,.answer{overflow-wrap:anywhere}.answer-options{align-items:stretch}.answer{line-height:1.5}.play-top{flex-wrap:wrap}h1:focus{outline:none}
@media(max-width:700px){.map-label{font-size:10px}.map-stop-label{font-size:12px}.daily-card small{font-size:12px}.daily-details{font-size:13px}.category-card p{font-size:14px}.category-bottom{font-size:12px}.site-footer{font-size:12px}.quiz-setup{padding:24px 18px}.quiz-setup h1{font-size:27px}.finish-stats{gap:18px}.finish-stats>div{flex:1;min-width:100px}.review-item summary{flex-wrap:wrap}.review-status{white-space:normal}.review-item summary b{flex:1}.map-top .map-label:last-child{display:none}.bowl{width:100%}.puzzle-card .pill{font-size:12px}.puzzle-heading{flex-wrap:wrap}.puzzle-visual{padding:18px 12px}.answer-options{grid-template-columns:1fr}.question{font-size:19px}.puzzle-actions>.help-actions{width:100%}.puzzle-actions>.button{min-width:150px}.map-pin{width:39px;height:39px}.map-stop{min-height:64px}.map-stop-label{font-size:12px}.site-footer{flex-wrap:wrap}.setting-row{font-size:16px}.settings-dialog .setting-row select{font-size:16px}.quiz-banner .button{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.fraction-model{max-width:460px;margin:auto;text-align:center}.fraction-bar{display:grid;grid-template-columns:repeat(var(--parts),minmax(0,1fr));gap:5px}.fraction-bar span{display:grid;place-items:center;min-height:65px;background:#fff;border:2px solid #659e8b;border-radius:8px;color:#446e60;font-size:24px}.fraction-bar .filled{background:#087f75;color:#fff}.fraction-model p{font-size:16px;margin-bottom:0}.tile-grid>span.removed{background:#fff3e8;border:2px dashed #a97048;display:grid;place-items:center;color:#945a32;font-size:24px}

.thinking-section{margin:36px 0;padding:28px;border-radius:24px;background:#edf5f1;border:1px solid #d5e5dc}.thinking-trails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.thinking-trails .category-card{background:#fff;text-align:left}.thinking-grid{display:grid;grid-template-columns:repeat(var(--thinking-cols),minmax(0,1fr));gap:8px;width:min(100%,340px);margin:auto}.thinking-grid>span{display:flex;align-items:center;justify-content:center;min-height:70px;padding:8px;background:#eaf4ef;border:2px solid #b4d4c7;border-radius:12px;font-size:clamp(22px,5vw,36px);color:#155e54}.thinking-reflection{margin:20px 0;padding:20px;border-radius:16px;background:#fff4db;text-align:left}.thinking-reflection p{margin:8px 0}.thinking-reflection small{color:#655a42}.sail-halves{width:min(100%,340px)}.thinking-takeaway{padding:16px;background:#edf5f1;border-radius:16px}@media(max-width:700px){.thinking-trails{grid-template-columns:1fr}.thinking-section{padding:20px}.thinking-section .section-heading{display:block}}

.stop-thinking{left:50%;top:50%}.stop-thinking .map-pin{background:#ffe6a1;border-color:#fff6d9}.stop-thinking .map-stop-label{background:#fff0bd}.thinking-map-dialog{max-width:850px;width:calc(100% - 32px)}.thinking-map-dialog .thinking-section{margin:20px 0 0;padding:20px}.thinking-map-dialog .section-heading{display:block}@media(max-width:700px){.island-map{min-height:440px}.stop-0{left:23%;top:29%}.stop-1{left:73%;top:26%}.stop-thinking{left:50%;top:48%}.stop-4{left:23%;top:70%}.stop-2{left:77%;top:68%}.stop-3{left:50%;top:85%}}

/* Accessibility: text contrast of at least 4.5:1 and 44px tap targets */
:root{--muted:#586b70}.site-footer{color:#5f716a}.site-footer span span{color:#8a6a2c}.journey-progress span{color:#5d6f68}.answer-letter{color:#5d6a64}.eyebrow{color:#56695f}.nav-item{color:#5b6d70;min-height:44px}.discovery-count{min-width:44px;min-height:44px}.parent-button{width:44px;height:44px}.brand{min-height:44px}.dialog-close{width:44px;height:44px}.quiz-banner .button{min-height:44px}.feedback:focus{outline:none}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.setting-row select{min-height:44px}

/* Pictures always fit a phone: tile grids shrink their squares; pattern rows stay on one line and shrink */
.tile-grid{grid-template-columns:repeat(var(--cols),minmax(0,1fr));width:min(100%,calc(var(--cols)*34px))}
.tile-grid>span.removed{font-size:min(24px,5vw)}
/* A tile never breaks inside: "+ 400" or "1000" stays on one line. fitPatternRows (visuals.js) shrinks a
   long row to stay on one line; only a row that cannot fit even small wraps, and then between tiles. */
.pattern-row{display:flex;flex-wrap:wrap;justify-content:center}
.pattern-row.fit{flex-wrap:nowrap}
.pattern-tile{white-space:nowrap;flex:0 0 auto}
@media(max-width:600px){.pattern-row{gap:5px}.pattern-tile{font-size:clamp(15px,5.2vw,26px);padding:6px 2px}.fruit-groups>div{padding:10px 8px}.fruit-groups span{font-size:22px}}
@media(max-width:600px){.fruit-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fruit-groups>div{max-width:none}}
.footer-link{color:inherit;font-weight:800;text-decoration:underline;text-underline-offset:2px}

/* Data, measuring, geometry and reading-text pictures (dist/visuals-more.js) */
.data-figure{margin:0 auto;max-width:560px;text-align:center}
.data-figure figcaption{font-weight:900;margin-bottom:8px;color:#2f4a44}
.data-figure svg{width:100%;height:auto;max-height:260px}
.data-figure .axis{font:700 15px Nunito,sans-serif;fill:#58706a}
.data-figure .label{font:800 15px Nunito,sans-serif;fill:#2f4a44}
.picture-graph table,.tally-table,.data-table{margin:0 auto;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}
.picture-graph th,.tally-table th,.tally-table td,.data-table th,.data-table td{padding:8px 12px;border:1px solid #dbe8e1;text-align:left;font-size:15px}
.picture-graph td{min-width:160px}
.pg-icon{display:inline-block;width:28px;font-size:24px;line-height:1}
.pg-icon.half{width:14px;overflow:hidden;vertical-align:top}
.pg-key{margin:8px 0 0;font-weight:800;color:#58706a}
.tally-five{width:52px;height:34px;margin-right:6px;vertical-align:middle}
.tally-rest{height:34px;vertical-align:middle}
.data-table thead th{background:#eaf5ee}
.clock-face,.scale-figure,.jug-figure{display:block;width:min(220px,70%);height:auto;margin:0 auto}
.clock-num{font:900 16px Nunito,sans-serif;fill:#2f4a44}
.scale-num{font:800 14px Nunito,sans-serif;fill:#2f4a44}
.scale-unit{font:900 14px Nunito,sans-serif;fill:#58706a}
.ruler-figure{display:block;width:100%;max-width:520px;height:auto;margin:0 auto}
.ruler-num{font:800 12px Nunito,sans-serif;fill:#3f5a52}
.ruler-unit,.ruler-item{font:900 13px Nunito,sans-serif;fill:#3f5a52}
.solids-row svg{width:96px;height:80px}
.polygon-figure,.angle-figure{display:block;width:min(200px,60%);height:auto;margin:0 auto}
.net-figure{display:block;width:100%;height:auto;margin:0 auto}
.coord-grid{margin:0 auto;border-collapse:collapse;background:#eaf6ef;border-radius:12px}
.coord-grid caption{font-weight:900;margin-bottom:6px}
.coord-grid th{font-weight:900;color:#3f5a52;padding:4px 8px}
.coord-grid td{width:52px;height:52px;border:2px solid #b9d8c8;text-align:center;font-size:28px}
.doc{background:#fffdf7;border:1px solid #eadfc2;border-radius:14px;padding:16px 20px;text-align:left;max-width:560px;margin:0 auto;line-height:1.6;font-size:16px}
.doc p{margin:0 0 8px}
.doc-title{margin:0 0 8px;font-size:18px}
.doc-poem{font-style:italic;text-align:center}.doc-poem .doc-title{font-style:normal}
.doc-author,.doc-date{color:#6b7c74;font-size:14px}
.doc-date{text-align:right}
.doc-signoff{margin-top:12px}
.doc-diary{background:repeating-linear-gradient(#fffdf7 0 27px,#e6eef5 27px 28px)}
.doc-recipe h4{margin:10px 0 4px;font-size:15px}
.doc-web{padding:0 0 12px;overflow:hidden}
.doc-web>*:not(.doc-web-bar){margin-left:18px;margin-right:18px}
.doc-web-bar{display:flex;align-items:center;gap:6px;background:#e8eef0;padding:8px 12px;margin-bottom:12px}
.doc-web-bar i{width:10px;height:10px;border-radius:50%;background:#c8d4d8}
.doc-web-bar span{margin-left:8px;background:#fff;border-radius:8px;padding:2px 10px;font-size:13px;color:#58706a}
.doc-sub{color:#58706a;font-weight:700}
.doc-links span{color:#087f75;text-decoration:underline}
.doc-notice{border:3px dashed #f2a65a;text-align:center}
.doc-notice ul{text-align:left;display:inline-block}
.doc-footer{font-weight:900;color:#a8663a}
.comic-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.comic-panel{border:3px solid #3f5a52;border-radius:10px;padding:10px;background:#fff}
.comic-pic{display:block;font-size:34px;text-align:center}
.comic-panel p{font-size:14px;margin:6px 0 0}
@media(max-width:600px){.doc{padding:14px}.coord-grid td{width:40px;height:40px;font-size:22px}.picture-graph td{min-width:0}.pg-icon{width:22px;font-size:19px}.pg-icon.half{width:11px}}
.data-figure svg.tally-five{width:52px;height:34px;max-height:none;margin-right:6px}
.data-figure svg.tally-rest{height:34px;max-height:none}
.ruler-num{font-size:15px}.ruler-unit,.ruler-item{font-size:15px}
.sentence-card{max-width:560px;margin:0 auto;background:#fff;border:2px solid #d6e6dd;border-radius:14px;padding:14px 18px;font-size:19px;font-weight:700;text-align:center;line-height:1.5}
.puzzle-visual:empty{display:none}
.doc-heading{margin:12px 0 4px;font-size:16px;color:#2f4a44}
.comic-panel{position:relative}.comic-number{position:absolute;top:6px;left:8px;background:#3f5a52;color:#fff;border-radius:999px;font-size:12px;font-weight:900;padding:1px 7px}

/* Competition-style practice test */
.test-card{max-width:900px;margin:28px auto 0;background:#fffdf7;border:1px solid #eadfc2;border-radius:22px;padding:24px}
.test-card :is(h1,h2){margin:6px 0 8px;font-size:clamp(26px,4vw,32px)}.test-card p{color:#56695f;line-height:1.6}
.test-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:16px 0}
.test-choices>div{display:flex;flex-direction:column;gap:10px}.test-choices h3{margin:0}
.test-choices small{font-weight:700;opacity:.8}
.test-progress{flex-wrap:wrap;gap:6px}
.test-progress button{width:36px;height:36px;min-height:44px;min-width:44px;border-radius:50%;border:2px solid #cfe0d7;background:#fff;font-weight:900;color:#3f5a52;cursor:pointer}
.test-progress button.done{background:#dff1e7;border-color:#8fc4a8}
.test-progress button.current{background:#087f75;color:#fff;border-color:#087f75}
.test-progress button.empty{background:#fff6e0;border-color:#f2c14e}
.test-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.number-pad{max-width:320px;margin:10px auto}
.pad-display{text-align:center;font-size:20px;margin:0 0 10px}.pad-display b{display:inline-block;min-width:80px;padding:4px 14px;border:2px solid #087f75;border-radius:12px;background:#fff}
.pad-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pad-key{min-height:56px;font-size:24px;font-weight:900;border-radius:14px;border:2px solid #cfe0d7;background:#fff;color:#2f4a44;cursor:pointer}
.pad-key:active{background:#e6f4ec}.pad-back{background:#f6efe2}
.test-results{max-width:760px;margin:0 auto 26px;background:#eaf5ee;border:1px solid #d2e6d9;border-radius:22px;padding:24px;text-align:center}
.test-areas{list-style:none;padding:0;margin:18px 0;display:grid;gap:8px;text-align:left}
.test-areas li{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;background:#fff;border-radius:12px;padding:10px 14px}
.test-areas em{font-style:normal;font-weight:800;color:#087f75;font-size:14px}
.test-note{color:#56695f}
.test-progress button.done{color:#2f4a44}.test-progress button.empty{color:#6b4c12}
.test-choices .button{flex-direction:column;gap:2px}.test-choices small{display:block}
@media(max-width:600px){.test-areas li{grid-template-columns:1fr auto}.test-areas em{grid-column:1/-1}}

/* Data pictures fit a phone: picture-graph rows wrap; tables tighten, and scroll sideways only as a last resort */
.picture-graph table{width:100%;table-layout:auto}.picture-graph td{display:flex;flex-wrap:wrap;gap:2px;align-items:center}
.data-figure{max-width:100%;overflow-x:auto}
@media(max-width:600px){.data-table th,.data-table td,.tally-table th,.tally-table td{padding:6px 7px;font-size:13px}.picture-graph th{padding:6px;font-size:14px}.pattern-row{gap:3px}.pattern-tile{padding:5px 1px}}
.pg-icon:not(.half){width:auto;min-width:22px;text-align:center}
.set-text{margin:12px 0;border:2px solid #d7e5dd;border-radius:14px;background:#fbfdfb}.set-text summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 14px;font-weight:800;color:#087f75}.set-text[open] summary{border-bottom:1px solid #e4ebe8}.set-text .puzzle-visual{margin:0;padding:10px}
@media (max-width:560px){.play-top~.test-progress{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:4px 2px 8px;scrollbar-width:thin}.play-top~.test-progress button{flex:0 0 auto}}
/* Deep Dive: answer rows with a 🔊 button, tick-all tiles, icon, step and picture choices */
.option-row{display:flex;gap:8px;align-items:stretch}.option-row>.answer,.option-row>.tile{flex:1;min-width:0}
.speak-option{flex:0 0 44px;min-height:44px;border:2px solid #d7e5dd;border-radius:12px;background:#fff;font-size:18px;color:#233f47}
.tile-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tile{position:relative;min-height:76px;border:3px solid #d7e5dd;border-radius:18px;background:#fff;font-size:18px;font-weight:800;color:#233f47;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 10px;text-align:center;overflow-wrap:anywhere;transition:transform .15s,box-shadow .15s}
.tile.selected{border-color:#087f75;background:#e6f5f1;transform:translateY(-2px);box-shadow:0 4px 0 #0a6b62}
.tile.correct{border-color:#63ad91;background:#edf9f1;color:#245d46;opacity:1}
.tile-tick{position:absolute;top:6px;right:8px;background:#087f75;color:#fff;border-radius:999px;width:26px;height:26px;font-size:15px;display:grid;place-items:center}
.tile.glow{animation:tile-glow 1.4s ease-in-out infinite}@keyframes tile-glow{50%{box-shadow:0 0 0 6px #ffd766}}
@media (prefers-reduced-motion:reduce){.tile{transition:none}.tile.glow{animation:none;box-shadow:0 0 0 5px #ffd766}}
.found-all{display:flex;margin:16px auto 0}.found-dots{display:block;font-size:22px;letter-spacing:4px;color:#087f75;margin-top:4px}
.answer-icon{font-size:30px;line-height:1;flex-shrink:0}.icon-options .answer{font-size:20px}
.step-options{grid-template-columns:1fr}.step-number{background:#fff0bd;color:#6b4c12}
.picture-options{grid-template-columns:repeat(2,minmax(0,1fr))}.picture-options .answer{flex-direction:column;justify-content:center;text-align:center}
.picture-options .answer svg,.tile svg,.review-art svg{width:100%;max-width:130px;height:auto;display:block;margin:0 auto}
.review-art{display:flex;gap:10px;flex-wrap:wrap}.review-art svg{max-width:96px}
.stop-deep{left:61%;top:44%}@media(max-width:900px){.stop-deep{left:78%;top:45%}}.stop-deep .map-pin{background:#bfe8f5;border-color:#e6f7fc}.stop-deep .map-stop-label{background:#dff4fb}
.setting-help{margin:-4px 0 12px;font-size:14px;color:var(--muted)}
.deep-picture svg{display:block;width:min(180px,55%);height:auto;margin:0 auto}
.treehouse-banner{margin-bottom:23px}
/* Coco’s Great Race */
.race-intro{display:flex;gap:14px;align-items:center}.race-intro :is(h1,h2){margin:4px 0 6px}
.race-intro-art{position:relative;flex:0 0 72px;height:72px}.race-intro-art img{width:64px;height:64px;object-fit:contain}.race-intro-art .race-hare{position:absolute;right:-6px;bottom:-2px;font-size:30px}
.race-hare{display:inline-block;transform:scaleX(-1)}
.grown-up-note{font-size:13px;margin:4px 0 0}
.race-track{position:relative;height:84px;margin:6px 0 12px;border-radius:20px;background:linear-gradient(#d9f0e2 0 50%,#f6e7c1 50% 100%);border:2px solid #cfe0d7;overflow:hidden}
.race-track::after{content:"";position:absolute;left:10px;right:10px;top:50%;border-top:2px dashed #fff}
.race-flag{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:26px}
.race-palm{position:absolute;left:calc(12px + (100% - 88px) * .7 + 52px);top:2px;font-size:22px;opacity:.9}
.racer{position:absolute;left:calc(8px + (100% - 88px) * var(--at));transition:left .6s ease}
.racer-hare{top:4px;font-size:30px;line-height:1}.racer-hare small{position:absolute;top:-4px;right:-16px;font-size:14px}
.racer-coco{bottom:2px}.racer-coco img{width:40px;height:40px;object-fit:contain;display:block}
@media (prefers-reduced-motion:reduce){.racer{transition:none}}
.race-moral{font-weight:800;color:#087f75}
/* ---- Early-reader type scale (Prep). body-prefixed so it also beats rewards/buddy/treehouse.css, which load later ---- */
body .question{font-size:22px;line-height:1.5;max-width:34em}
body .answer{font-size:21px}
body .answer-letter{font-size:15px;width:30px;height:32px}
body .button{font-size:17px}
body .button small{font-size:15px}
body .text-button{font-size:16px}
body .play-top{font-size:16px}
body .journey-progress span,body .journey-progress button{font-size:16px}
body .puzzle-heading .pill,body .puzzle-card .pill{font-size:14px}
body .puzzle-actions>span{font-size:16px}
body .nav-item{font-size:16px}
body .eyebrow{font-size:13px}
body .pill{font-size:13px}
body .map-stop-label{font-size:14px}
body .map-label{font-size:12px}
body .map-caption{font-size:14px}
body .category-card h3{font-size:19px}
body .category-card p{font-size:16px}
body .category-bottom{font-size:14px;color:#4b675e}
body .daily-card p{font-size:17px}
body .daily-details{font-size:15px}
body .daily-card small{font-size:14px;color:#6a5d40}
body .quiz-banner p,body .shelf-copy p{font-size:16px}
body .shelf-next{font-size:15px}
body .quiz-banner .button,body .treasure-shelf .button{font-size:17px}
/* reading texts and pictures */
body .doc li,body .doc p{font-size:18px}
body .doc h4{font-size:17px}
body .comic-panel p{font-size:17px}
body .comic-number{font-size:14px}
body .picture-graph th,body .data-table th,body .data-table td,body .tally-table th,body .tally-table td{font-size:16px}
body .data-figure svg text{font-size:17px}
body .number-line text{font-size:18px}
/* finish, review, treasures, treehouse */
body .review-status{font-size:14px}
body .review-content p{font-size:17px}
body .new-treasure p{font-size:16px}
body .treasure-story{font-size:16px;color:#56665e}
body .treasure-rule{font-size:16px}
body .treasure-card .button{font-size:16px}
body .treasure-card-top{font-size:12px}
body .treasure-locked-progress>span,body .collection-count>span{font-size:15px}
body .buddy-instruction{font-size:16px}
body .treehouse-mission small{font-size:14px}
body .treehouse-mission .mission-reward{font-size:16px}
body .treehouse-chapters-heading p{color:#4f5f57}
body .timer-choice small{font-size:15px}
body .timer-choice input{width:28px;height:28px}
body .puzzle-heading .text-button{font-size:16px}
body .buddy-intro .buddy-instruction{font-size:16px}

body .next-treasure p{font-size:16px}
body .next-treasure>b{font-size:17px}
body .collection-footer p{font-size:15px}
body .treehouse-next{font-size:17px}
@media(max-width:700px){
 body .question{font-size:21px}
 body .answer{font-size:20px}
 body .nav-item{font-size:15px}
}
@media(max-width:380px){
 body .nav-item{font-size:14px;padding-inline:6px}
 body .map-stop-label{font-size:13px}
}
body .tile{font-size:20px}
/* Kid UX review fixes */
@media(max-width:700px){body.playing .site-header nav{display:none}body.playing .site-header{min-height:0}}
.journey-progress span.skipped{background:#eef6fb;color:#3d6b80}
body .answer.answer-symbol{font-size:34px;justify-content:flex-start}
.tile.glow{outline:3px solid #b8860b;outline-offset:2px}
.tile.unsure{border-color:#b9c4bf;background:#f5f7f6}
.tile-unsure{position:absolute;top:6px;right:8px;background:#8a9a93;color:#fff;border-radius:999px;width:26px;height:26px;font-size:15px;display:grid;place-items:center}
body .thinking-grid>span{font-size:clamp(32px,9vw,44px)}
@media(max-width:430px){.stop-deep{left:81%;top:44%}}
.picture-options .answer{position:relative}.picture-options .answer-check{position:absolute;top:8px;right:10px}
/* Illustrated island setting shared by the race invitation and progress scene. */
.test-card .race-intro-art{display:block;position:relative;width:100%;height:240px;margin:0 0 24px;border-radius:16px;overflow:hidden;background:#dceee0 url('/race-island.webp') center 65%/cover no-repeat}
.test-card .race-intro-art img{position:absolute;left:16%;bottom:17%;width:126px;height:126px;object-fit:contain;filter:drop-shadow(0 5px 3px #344b3433)}
.test-card .race-intro-art .race-hare{position:absolute;left:56%;right:auto;bottom:20%;font-size:64px;line-height:1;filter:drop-shadow(0 4px 2px #344b3433)}
.race-scene-caption{position:absolute;left:12px;top:12px;border-radius:20px;background:#fffdf2ed;color:#385b48;padding:7px 12px;font-size:13px;font-weight:800}
.race-intro{display:block}
.race-track{height:190px;background:#e8edcf url('/race-island.webp') center 65%/cover no-repeat;border:1px solid #ccdecc;border-radius:18px;margin:10px 0 18px;isolation:isolate}
.race-track::after{display:none}
.racer{left:calc(8px + (100% - 82px) * var(--at));z-index:2;filter:drop-shadow(0 3px 2px #384c3433)}
.racer-coco{bottom:16%}.racer-coco img{width:64px;height:64px}
.racer-hare{top:auto;bottom:28%;font-size:40px}
.racer-hare small{top:-16px;right:-12px;font-family:Georgia,serif;font-weight:bold;font-size:15px;color:#315a52;background:#fffdf1df;border-radius:12px;padding:2px 5px}
.race-flag{right:2%;top:51%;transform:none;font-size:9px;letter-spacing:1px;font-weight:900;color:#365746;background:#fff9e8;border:1px solid #af986b;border-radius:4px;padding:3px 5px;z-index:1}
@media(max-width:600px){.test-card .race-intro-art{height:210px}.test-card .race-intro-art img{width:100px;height:100px;left:9%}.test-card .race-intro-art .race-hare{font-size:52px}.race-scene-caption{font-size:11px}.race-track{height:164px}.racer-coco img{width:56px;height:56px}.racer-hare{font-size:34px}}
/* Dash shares Coco's warm palette, with a dedicated scalable character illustration. */
.race-hare{transform:none}
.race-hare .dash-art{display:block;width:52px;height:65px;object-fit:contain}
.test-card .race-intro-art .race-hare{bottom:17%}
.test-card .race-intro-art .race-hare .dash-art{position:static;width:112px;height:140px;filter:none}
@media(max-width:600px){.test-card .race-intro-art .race-hare .dash-art{width:88px;height:110px}.racer-hare .dash-art{width:44px;height:55px}}
/* A short finish sequence; results and navigation remain available throughout. */
.race-cheer{position:absolute;top:12px;left:50%;transform:translateX(-50%);padding:8px 16px;border-radius:22px;background:#fff9e9;color:#276755;font-weight:900;white-space:nowrap;box-shadow:0 3px 10px #34573e22;z-index:4}
.race-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.race-confetti i{position:absolute;left:var(--x);top:-15px;width:7px;height:11px;border-radius:2px;background:var(--colour);opacity:0;animation:race-confetti-fall 1.8s var(--delay) ease-out both}
.race-celebrating .racer-coco{animation:race-cross-line 1.4s ease-in-out both}
.race-celebrating .racer-coco img{animation:race-victory-hop .65s 1.45s ease-in-out 2}
.race-celebrating .racer-hare .race-hare{animation:race-dash-wakes .75s 1s ease-out both;transform-origin:50% 100%}
.race-celebrating .race-waking{animation:race-sleep-ends .25s 1s both}
.race-celebrating .race-cheer{animation:race-cheer-arrives .45s 1.4s both}
@keyframes race-cross-line{from{left:calc(8px + (100% - 82px) * .7)}to{left:calc(100% - 74px)}}
@keyframes race-victory-hop{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-14px) rotate(-5deg)}}
@keyframes race-dash-wakes{0%{transform:rotate(12deg) translateY(4px)}55%{transform:rotate(-8deg) translateY(-8px)}100%{transform:none}}
@keyframes race-sleep-ends{to{opacity:0;visibility:hidden}}
@keyframes race-cheer-arrives{from{opacity:0;translate:0 8px;scale:.9}to{opacity:1;translate:0 0;scale:1}}
@keyframes race-confetti-fall{0%{opacity:0;transform:translate(0,-10px) rotate(0)}12%{opacity:1}100%{opacity:0;transform:translate(var(--drift),220px) rotate(300deg)}}
@media(prefers-reduced-motion:reduce){.race-celebrating .racer-coco,.race-celebrating .racer-coco img,.race-celebrating .racer-hare .race-hare,.race-celebrating .race-cheer{animation:none}.race-confetti,.race-waking{display:none}}
.transfer-step{border:1px solid #d2e6d9;border-radius:16px;padding:16px;margin:18px 0;background:#f5faf6}.transfer-step h3{margin-top:0}.transfer-buttons{display:flex;gap:10px;flex-wrap:wrap}.transfer-file{position:relative;overflow:hidden;cursor:pointer}.transfer-file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.transfer-file:focus-within{outline:3px solid #087f75;outline-offset:3px}.transfer-preview{border-top:1px solid #c8dcd0;margin-top:18px;padding-top:12px}.transfer-preview .button{white-space:normal}.transfer-status{color:#305e49;font-weight:700}.settings-dialog details{line-height:1.6}.settings-dialog summary{cursor:pointer;font-weight:700}
/* The explorer destinations share Coco's illustrated treasure collection. */
.map-pin.explorer-art .treasure-art{display:block;width:125%;height:auto;aspect-ratio:9/8;flex-shrink:0;filter:drop-shadow(0 2px 1px #31533c22)}
.category-icon.explorer-art{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;line-height:1}
.category-icon.explorer-art .treasure-art{display:block;width:66px;height:auto;aspect-ratio:9/8;flex-shrink:0}
@media(max-width:700px){.category-icon.explorer-art{width:43px;height:48px}.category-icon.explorer-art .treasure-art{width:56px}}
/* Destination miniatures use the same artwork as the places they open. */
.destination-art{display:block;flex:0 0 88px;width:88px;height:80px;border-radius:18px;overflow:hidden;border:1px solid #d0e4d4;box-shadow:0 3px 8px #34533f12}
.destination-treehouse img{display:block;width:100%;height:100%;object-fit:cover;object-position:55% 40%}
.destination-home{display:grid;place-items:center;background:radial-gradient(ellipse at 50% 100%,#a7cb78 0 25%,transparent 26%),linear-gradient(#d8f0ea,#f8efd0);padding:4px}
.destination-home svg{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 1px #36573c22)}
@media(max-width:700px){.destination-art{flex-basis:72px;width:72px;height:72px;border-radius:15px}}
.island-friend{display:inline-block;width:1.45em;height:1.45em;vertical-align:middle;line-height:1;flex-shrink:0}
.island-friend>img{display:block;width:100%;height:100%;object-fit:contain}
.island-friend>.treasure-art{display:block;width:100%;height:100%;aspect-ratio:9/8}
.story .island-friend{width:100px;height:100px}.bowl .island-friend{width:58px;height:58px}.character-row .island-friend{width:76px;height:76px}.comic-pic .island-friend{width:1.25em;height:1.25em}
.picnic-friends>.island-friend{width:32%;height:auto;aspect-ratio:1}.picnic-friends .friend-bea{width:25%}
@media(max-width:700px){.story .island-friend{width:76px;height:76px}.character-row .island-friend{width:60px;height:60px}}
body .thinking-grid .island-friend{width:1.2em;height:1.2em}
.grown-up-check{margin:12px 0 16px;padding:14px;border-radius:14px;background:#fff6df;border:1px solid #f0dca6}.grown-up-check label{display:block;margin-bottom:8px}.grown-up-check div{display:flex;gap:8px;flex-wrap:wrap}.grown-up-check input{width:7em;font:inherit;padding:8px 10px;border:1px solid #c9d6d0;border-radius:10px}.grown-up-check p{margin:6px 0 0;min-height:1.2em}.setting-row select:disabled,[data-move-progress]:disabled{opacity:.55}
/* Island friends move gently where they appear as characters (stories, rows, bowls, picnic), each in their
   own way, and hop when a puzzle is solved or a bowl is fed. Never in puzzle diagrams or comics. The idle
   loop is on the picture and the hop on its frame, so the two combine. Reduced motion stops all of it (line 8). */
@keyframes friend-bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7%) rotate(3deg)}}
@keyframes friend-hover{0%,100%{transform:translate(0,0)}25%{transform:translate(3%,-6%) rotate(2deg)}50%{transform:translate(0,-9%)}75%{transform:translate(-3%,-5%) rotate(-2deg)}}
@keyframes friend-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes friend-breathe{0%,100%{transform:scale(1) rotate(0)}40%{transform:scale(1.03,.98) rotate(-2deg)}70%{transform:scale(.99,1.02) rotate(1deg)}}
@keyframes friend-cheer{0%,100%{translate:0 0;scale:1}25%{translate:0 -22%;scale:1.08}50%{translate:0 0;scale:1.06 .92}70%{translate:0 -8%;scale:1}}
:is(.story,.character-row,.bowl,.picnic-friends) .island-friend>*{animation:3.2s ease-in-out infinite friend-bob}
:is(.story,.character-row,.bowl,.picnic-friends) .friend-bea>*{animation-name:friend-hover;animation-duration:2.6s}
:is(.story,.character-row,.bowl,.picnic-friends) .friend-pip>*{animation-name:friend-sway;animation-duration:3.6s;transform-origin:50% 90%}
:is(.story,.character-row,.bowl,.picnic-friends) .friend-coco>*{animation-name:friend-breathe;animation-duration:4.2s;transform-origin:50% 95%}
.character-row>div:nth-child(2n) .island-friend>*,.bowl:nth-child(2n) .island-friend>*,.picnic-friends>:nth-child(2)>*{animation-delay:-1.3s}
.character-row>div:nth-child(3n) .island-friend>*,.bowl:nth-child(3n) .island-friend>*,.picnic-friends>:nth-child(3)>*{animation-delay:-2.1s}
.puzzle-card:has(.feedback.success) :is(.story,.character-row) .island-friend,.bowl.just-fed .island-friend{animation:friend-cheer .7s ease-out 1}
.puzzle-card:has(.feedback.success) .character-row>div:nth-child(2) .island-friend{animation-delay:.12s}
.puzzle-card:has(.feedback.success) .character-row>div:nth-child(3) .island-friend{animation-delay:.24s}
.puzzle-card:has(.feedback.success) .character-row>div:nth-child(4) .island-friend{animation-delay:.36s}
.learning-picture{background:#f2faf5;border:1px solid #cce3d5;border-radius:20px;padding:clamp(14px,3vw,24px);margin:16px 0;color:#244b42}.lesson-picture{overflow:auto;max-width:100%;padding:10px 0}.lesson-steps{list-style:none;counter-reset:lesson;padding:0;display:grid;gap:12px}.lesson-steps li{counter-increment:lesson;background:white;border-radius:14px;padding:14px 14px 14px 52px;position:relative;line-height:1.6}.lesson-steps li:before{content:counter(lesson);position:absolute;left:12px;top:14px;border-radius:50%;background:#147969;color:white;width:28px;height:28px;text-align:center;font-weight:bold}.lesson-answer{background:#fff0bd;border-radius:16px;padding:16px;display:grid;gap:8px;text-align:center}.lesson-answer strong{font-size:1.4rem}.lesson-answer svg{max-width:150px;max-height:150px}.lesson-groups{display:flex;gap:12px;flex-wrap:wrap}.lesson-groups>div{border:2px solid #248675;background:#fff;border-radius:16px;padding:12px;max-width:150px;display:grid;gap:6px}.lesson-groups span,.lesson-array{color:#198273;font-size:1.15rem;letter-spacing:3px}.lesson-array{width:max-content;max-width:100%;margin:auto}.lesson-array b{display:block;letter-spacing:normal;margin-top:10px}.help-notice{padding:14px;background:#fff3d5;border-radius:12px}.race-record,.race-question{border:1px solid #d3e4dc;border-radius:14px;padding:16px;margin:14px 0}.race-record>summary{display:flex;gap:8px;flex-wrap:wrap;cursor:pointer;justify-content:space-between}.race-question>summary{cursor:pointer}.race-area-list{list-style:none;padding:0;display:grid;gap:14px}.race-area-list li{display:grid;gap:5px}.race-area-list progress{width:100%;accent-color:#147969}.race-notebook p{line-height:1.6}.race-notebook .learning-picture{padding:12px}.race-notebook .visual{max-width:100%}
.explorer-treasure{border:1px solid transparent;background:transparent;border-radius:20px;padding:10px;text-align:left}.explorer-treasure:hover{background:#edf6f1;border-color:#cfe2d8}.explorer-label .explorer-treasure-copy{display:grid;gap:2px;width:auto;height:auto;border-radius:0;background:none;font-size:inherit}.explorer-treasure .treasure-tap{color:var(--teal);font-weight:800}.featured-treasure-art{width:130px;margin:0 auto 16px}.featured-treasure-art .treasure-art{width:100%;height:auto;aspect-ratio:9/8}
.explorer-label.explorer-treasure{display:flex}.explorer-label .explorer-treasure-copy{padding:0}@media(max-width:1000px){.welcome{flex-wrap:wrap}.explorer-treasure{background:#eef6f1}}
.parent-button{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;padding:4px;background:transparent;border-color:transparent}.parent-button img{display:block;width:40px;height:40px;object-fit:contain}.parent-button:hover{background:#e4f2ed}
.heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.new-to-this-button{border:2px solid #b7e0cf;background:#eefaf4;color:#0b6b5f;border-radius:999px;padding:7px 14px;font-weight:800;font-size:15px;min-height:44px}.new-to-this-button:hover{background:#dff5ea}
.new-to-this h2{margin:6px 0 4px}.new-to-this h3{margin:20px 0 10px;color:#0b6b5f}.guide-look{color:var(--muted);margin:0 0 6px}.new-to-this .lesson-steps{list-style:none;counter-reset:lesson;padding:0;display:grid;gap:10px}.new-to-this .lesson-steps li{background:#f2faf5}.guide-example,.guide-practice{border:1px solid #cce3d5;border-radius:20px;padding:clamp(14px,3vw,20px);margin:18px 0;background:#fbfefc}.guide-example h3,.guide-practice h3{margin-top:0}.guide-picture{overflow:auto;max-width:100%;padding:8px 0}.guide-still{letter-spacing:2px;color:#d0485b;line-height:1.8}.guide-tip{background:#fff7dc;border-radius:16px;padding:14px 16px;margin:16px 0}.guide-tip p{margin:4px 0 0}.guide-mini{background:#f2faf5;border-radius:14px;padding:14px}.guide-note{margin:-4px 0 8px}.guide-options{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.guide-feedback{margin-top:12px}.guide-feedback p{margin:4px 0 0}
.destination-chest{display:grid;place-items:center;background:linear-gradient(#e3f6f1,#fbefd0);padding:4px}.destination-chest img{display:block;width:100%;height:100%;object-fit:contain}
.chest-card{max-width:720px;margin:0 auto;text-align:center;padding-bottom:24px}.chest-card .play-top{text-align:left}.chest-card h1{margin:8px 0 4px}.chest-words{font-size:clamp(18px,2.6vw,22px);line-height:1.5;margin:4px auto 16px;max-width:34em}.chest-small{color:var(--muted);font-size:14px}
.chest-stage{position:relative;width:min(420px,86vw);aspect-ratio:1;margin:0 auto}.chest-stage img{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 10px 14px #6b4a1a33)}.chest-open{opacity:0}.chest-stage.is-open .chest-open{opacity:1}.chest-stage.is-open .chest-closed{opacity:0}
.chest-key{position:absolute;left:43%;top:73%;width:25%;z-index:2;transform:translate(-50%,-50%);opacity:0;pointer-events:none}.chest-key .treasure-art{width:100%}
.chest-sparkles{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%);font-size:clamp(28px,6vw,44px);color:#d8a326;letter-spacing:.4em;opacity:0;pointer-events:none}
.chest-stage.is-opening .chest-closed{animation:chest-hide 2.4s ease both}.chest-stage.is-opening .chest-open{animation:chest-show 2.4s ease both}.chest-stage.is-opening .chest-key{animation:chest-key 2.4s ease both}.chest-stage.is-opening .chest-sparkles{animation:chest-sparkle 2.4s ease both}
@keyframes chest-key{0%{opacity:0;transform:translate(-160%,-140%) rotate(-30deg)}15%{opacity:1}40%{opacity:1;transform:translate(-50%,-50%) rotate(0)}55%{opacity:1;transform:translate(-50%,-50%) rotate(90deg)}68%,100%{opacity:0;transform:translate(-50%,-50%) rotate(90deg) scale(.6)}}
@keyframes chest-hide{0%,55%{opacity:1;transform:none}60%{transform:translateY(-1.5%)}64%{transform:translateY(0)}75%,100%{opacity:0}}
@keyframes chest-show{0%,60%{opacity:0}78%,100%{opacity:1}}
@keyframes chest-sparkle{0%,70%{opacity:0;transform:translate(-50%,-30%) scale(.6)}82%{opacity:1;transform:translate(-50%,-60%) scale(1.1)}100%{opacity:0;transform:translate(-50%,-90%) scale(1)}}
@media(prefers-reduced-motion:reduce){.chest-stage.is-opening *{animation:none!important}.chest-key,.chest-sparkles{display:none}}
.chest-earn{display:flex;gap:14px;align-items:center;text-align:left;background:#fff7dc;border-radius:18px;padding:14px 16px;margin:0 auto 18px;max-width:520px}.chest-earn>span .treasure-art{width:64px}.chest-earn p{margin:4px 0 8px}.chest-earn progress{width:70%;vertical-align:middle;margin-right:8px}
.chest-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:8px 0 14px}.chest-choice{display:grid;gap:4px;justify-items:center;border:2px solid #cce3d5;background:#fbfefc;border-radius:20px;padding:18px 14px;min-height:120px;color:var(--ink)}.chest-choice b{font-size:20px}.chest-choice small{color:var(--muted);font-size:14px}.chest-choice:hover,.chest-choice:focus-visible{border-color:var(--teal);background:#eefaf4}.chest-choice.chosen{border-color:#e2bd5a}
.chest-story-lines{list-style:none;padding:0;display:grid;gap:12px;margin:18px auto 22px;max-width:34em;text-align:left}.chest-story-lines li{background:#f2faf5;border-radius:16px;padding:14px 18px;font-size:clamp(18px,2.6vw,21px);line-height:1.5}.chest-story h1 span{font-size:1.1em}
.chest-banner{margin-bottom:23px;background:#fff8e6;border-color:#e6cf92}
.guide-read{margin:2px 0 6px}.guide-notice{background:#eefaf4;border:1px solid #cce3d5;border-radius:14px;padding:12px 14px;margin:10px 0;line-height:1.5}
.guide-more{margin:16px 0}.guide-more>summary{cursor:pointer;list-style:none;min-height:48px;display:flex;align-items:center;justify-content:center;border:2px solid #b7e0cf;background:#eefaf4;color:#0b6b5f;border-radius:999px;padding:10px 18px;font-weight:800;font-size:17px}.guide-more>summary::-webkit-details-marker{display:none}.guide-more[open]>summary{margin-bottom:6px}
.guide-chips{list-style:none;padding:0;margin:8px 0 12px;display:flex;flex-wrap:wrap;gap:8px}.guide-chips li{display:flex;align-items:center;gap:6px;background:white;border:2px solid var(--line);border-radius:12px;padding:8px 12px;font-weight:700}.guide-chips li.yes{border-color:#7cc7a4;background:#eefaf4}.guide-chips li svg{max-width:70px;max-height:70px}
.guide-back{display:flex;width:100%;justify-content:center;margin-top:8px}.guide-note,.chest-small{font-size:15px;color:#4f6469}
.chest-stage.is-locked{aspect-ratio:4/3}.chest-stage.is-locked img{object-fit:cover;object-position:50% 100%}
.chest-use{display:inline-flex;align-items:center;gap:10px}.chest-use-key .treasure-art{width:34px}.chest-choice-art .treasure-art{width:58px}.chest-story-art .treasure-art{width:1.3em;vertical-align:-.2em}
#guide-title:focus{outline:none}
.ui-art{display:inline-block;width:1.5em;aspect-ratio:1;background-image:url('/ui-atlas.webp');background-repeat:no-repeat;vertical-align:middle;flex-shrink:0}
.coco-mini{display:inline-block;width:1.8em;height:1.8em;object-fit:contain;vertical-align:middle}
.finish-art .ui-art{width:96px;aspect-ratio:1}.finish-art .treasure-art{width:96px;aspect-ratio:9/8}.finish-art .dash-rest{width:auto;height:110px}
.pill-art .treasure-art{width:30px;vertical-align:-9px}.pill-art .ui-art{width:28px;vertical-align:-8px}.lesson-art.treasure-art{width:1.7em;vertical-align:middle}.new-to-this h2 .ui-art{width:1.4em}.new-to-this-button .ui-art{width:28px;margin:-6px 2px -6px -4px}

/* Interface pictures: readable minimum sizes, and pictures inside the trail and category tiles match the treasures beside them. */
.explorer-art .ui-art{width:56px}.hint-box b .ui-art,.guide-tip b .ui-art{width:28px;vertical-align:-7px}.button .ui-art{width:28px;margin:-6px 0}
.thinking-trails .category-card{display:grid;align-content:start}.thinking-trails .category-icon{margin-bottom:4px}
.guide-more>summary::after{content:'+';margin-left:10px;font-size:22px;line-height:1}.guide-more[open]>summary::after{content:'−'}
.collection-complete{margin-top:20px}
@media(max-width:700px){.explorer-art .ui-art{width:46px}}
/* Always / Sometimes / Never panels, and the painted cottage in the home banner. */
.answer-panel{display:block;width:132px;height:auto}.icon-options .answer{gap:10px}
.destination-home .ui-art{width:100%}
.speak-option .ui-art{width:28px}
/* Coco’s Secret Cove (dist/secret-cove.js). The scene is drawn in code until the painted cove art arrives. */
.cove-card{max-width:760px;margin:0 auto;padding-bottom:24px}.cove-card h1{margin:6px 0 12px}
.cove-scene{position:relative;border-radius:24px;overflow:hidden;background:linear-gradient(#d6f1f2,#bfe6e4 62%,#a9dcd6);box-shadow:0 10px 26px #2a5e5a1f}.cove-scene img{display:block;width:100%;height:auto;filter:saturate(.82) brightness(.97);transition:filter .6s}.cove-scene.is-lit img{filter:none}.cove-glow{position:absolute;left:58%;top:16%;width:22%;height:42%;border-radius:50%;background:radial-gradient(#ffe39a,#ffd06a66 45%,transparent 70%);opacity:0;pointer-events:none;mix-blend-mode:screen}.cove-scene.is-lit .cove-glow{opacity:.85}
.cove-steps{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:14px 0}.cove-steps li{flex:1 1 150px;border:2px solid var(--line);border-radius:14px;padding:10px 12px;font-weight:700;color:var(--muted);background:#fff}.cove-steps li.current{border-color:#e2bd5a;color:var(--ink);background:#fff8e6}.cove-steps li.done{border-color:#9fd4b7;color:#0b6b5f;background:#eefaf4}.cove-steps li.done::before{content:'✓ ';}
.cove-activity{background:#fff;border:1px solid #d7e7de;border-radius:22px;padding:clamp(16px,3vw,26px);margin:12px 0}.cove-activity h2{margin:4px 0}
.cove-options{display:grid;gap:12px;margin:14px 0}.cove-footprints,.cove-paths{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.cove-stones{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}
.cove-option{display:grid;gap:6px;justify-items:start;text-align:left;border:2px solid var(--line);background:#fbfefc;border-radius:18px;padding:12px;min-height:60px;color:var(--ink);font:inherit}.cove-option:hover,.cove-option:focus-visible{border-color:var(--teal)}.cove-option.selected{border-color:#e2bd5a}.cove-option.correct{border-color:#36a274;background:#eefaf4}.cove-option.glow{box-shadow:0 0 0 4px #ffd77a;border-color:#e2bd5a}
.cove-trail{width:100%;height:auto}.cove-clue{display:inline-flex;align-items:center;gap:12px;background:#fff7dc;border-radius:16px;padding:10px 16px;margin:6px 0}.cove-clue svg{width:96px;height:96px}
.cove-clues{list-style:none;padding:0;margin:8px 0;display:grid;gap:8px}.cove-clues li{background:#fff7dc;border-radius:14px;padding:10px 14px;font-weight:700}
.cove-route{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.cove-landmark{display:grid;justify-items:center;font-size:13px;color:var(--muted)}.cove-landmark-art{width:46px;height:46px;display:grid;place-items:center}.cove-landmark-art svg{width:46px;height:46px}.cove-landmark-art .ui-art{width:46px}.cove-step{color:#9aa}.cove-mini-fall{width:40px;height:40px}
.cove-stone{display:grid;place-items:center;width:112px;height:64px;padding-bottom:6px;background:url(/cove-stone.webp) center/contain no-repeat;font-size:24px;font-weight:900;color:#3d3220;justify-self:center}.cove-stone.is-missing{background:none;border:3px dashed #9aa38f;border-radius:50%;width:76px;height:52px;color:#6b7563}.cove-stone-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;background:#a9dcd6;border-radius:18px;padding:14px 8px;margin:10px 0}
.cove-feedback{border-radius:16px;padding:12px 16px;margin:10px 0;background:#fff3d5}.cove-feedback.success{background:#eefaf4}.cove-feedback p{margin:4px 0 0}.cove-found .ui-art{width:24px}.cove-shown{background:#fff7dc;border-radius:14px;padding:10px 14px;margin:8px 0 0}
.cove-done{background:#eefaf4;border-radius:20px;padding:18px 20px;margin:12px 0}.cove-done h2{margin:0 0 6px}.cove-fact .ui-art{width:26px}.cove-ask{color:#4f6469}
.cove-notebook{margin:12px 0}.cove-notebook>summary{cursor:pointer;font-weight:800;min-height:44px;display:flex;align-items:center;gap:8px}.cove-notebook .ui-art{width:30px}
.destination-cove{display:grid;place-items:center;background:linear-gradient(#e3f6f1,#cdebe6);padding:4px}.destination-cove img{width:100%;height:100%;object-fit:contain}
.cove-fragment{display:flex;gap:16px;align-items:center;max-width:720px;margin:4px auto 28px;background:#fff8e6;border:1px solid #e6cf92;border-radius:22px;padding:16px 20px}.cove-fragment h2{margin:0 0 4px}.cove-fragment p{margin:0 0 10px}.cove-fragment-art img{display:block;width:120px;height:120px;object-fit:contain}.cove-chest-link{text-align:center}
@media(max-width:600px){.cove-fragment{flex-direction:column;text-align:center}}
.cove-option{position:relative}.cove-tick{position:absolute;top:8px;right:12px;font-size:22px;font-weight:900;color:#1f8a5c}.cove-try{display:inline-block;border-radius:999px;background:#ffd77a;color:#5a4300;font-size:13px;font-weight:800;padding:3px 10px}.cove-option.glow{outline:3px dashed #c99a1e;outline-offset:3px}
.cove-clue-pair{width:150px;height:auto}

@media(prefers-reduced-motion:no-preference){.cove-scene.is-lit .cove-glow{animation:cove-glow 3.2s ease-in-out infinite alternate}}@keyframes cove-glow{from{opacity:.6}to{opacity:.9}}
.cove-banner{margin-bottom:23px}
/* Secret Cove chapter 2: the gap and ruler, the log choices, and the crossing being built. */
.cove-gap-picture{display:block;width:100%;height:auto;margin:8px 0}.cove-gap-picture text{font-family:inherit}.cove-options.cove-gap{grid-template-columns:repeat(4,1fr)}.cove-options.cove-gap .cove-option{justify-items:center}.cove-options.cove-logs{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.cove-options .cove-number{font-size:26px;font-weight:900}
.cove-logs-row{display:grid;gap:10px}.cove-log-choice{grid-template-columns:auto 1fr;align-items:center;column-gap:12px}.cove-log{display:block;width:100%;max-width:220px;height:auto}
.cove-total{color:#4f6469;font-weight:700;margin:6px 0}
.cove-build-controls{display:flex;justify-content:flex-end;margin:6px 0 0}
.cove-thanks{display:flex;align-items:center;gap:16px;margin:4px 0 12px;background:#fffdf3;border:2px solid #e6cf92;border-radius:18px;padding:12px 16px}.cove-thanks img{width:120px;height:auto;flex-shrink:0}.cove-thanks figcaption{font-size:20px;font-weight:800;color:#5a4300}
@keyframes cove-thanks{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}

/* Crossing layers: the four painted logs and Coco sit on the unchanged cove; the same layers stay once it is built. */
.cove-scene .cove-zoom{position:relative;transform-origin:46% 71%}.cove-scene.cove-building{overflow:hidden}
.cove-scene .cove-log-piece{position:absolute;width:6.2%;height:auto;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 2px #1f5a5a55)}
.cove-scene .l1{left:37%;top:69%}.cove-scene .l2{left:43.5%;top:69.5%}.cove-scene .l3{left:49.5%;top:70.5%}.cove-scene .l4{left:55%;top:72%}
.cove-ripple{position:absolute;width:6.8%;aspect-ratio:2/1;margin:-1.7% 0 0 -3.4%;border:3px solid #ffffffd0;border-radius:50%;opacity:0;pointer-events:none}.cove-ripple.r1{left:37%;top:73%}.cove-ripple.r2{left:43.5%;top:73.5%}.cove-ripple.r3{left:49.5%;top:74.5%}.cove-ripple.r4{left:55%;top:76%}
.cove-scene .cove-hopper{position:absolute;left:55%;top:54.5%;width:12%;aspect-ratio:1;filter:drop-shadow(0 6px 4px #2a5e5a40)}.cove-scene .cove-pose{position:absolute;inset:0;width:100%;height:100%}
.cove-building .cove-hopper{left:21%}
@media(prefers-reduced-motion:no-preference){
 .cove-building .cove-zoom{animation:cove-zoom 7s ease-in-out both}
 .cove-building .cove-log-piece{animation:cove-log .8s cubic-bezier(.3,1.4,.5,1) both}.cove-building .l1{animation-delay:1.2s}.cove-building .l2{animation-delay:1.75s}.cove-building .l3{animation-delay:2.3s}.cove-building .l4{animation-delay:2.85s}
 .cove-building .cove-ripple{animation:cove-ripple 1.3s ease-out both}.cove-building .r1{animation-delay:1.7s}.cove-building .r2{animation-delay:2.25s}.cove-building .r3{animation-delay:2.8s}.cove-building .r4{animation-delay:3.35s}
 .cove-building .cove-hopper{animation:cove-hop 7s ease-in-out both}
 .cove-building .cove-pose.hop{animation:cove-pose-hop 7s linear both}.cove-building .cove-pose.look{animation:cove-pose-look 7s linear both}
}
@keyframes cove-zoom{0%{transform:scale(1)}16%,86%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes cove-log{from{opacity:0;transform:translate(-50%,-160%)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes cove-ripple{0%{opacity:.85;transform:scale(.3)}100%{opacity:0;transform:scale(1.7)}}
/* Coco's body moves along the hops (the wrapper); the poses only swap: hop while crossing, look back on landing. */
@keyframes cove-hop{0%,53%{opacity:0;transform:translate(0,0)}56%{opacity:1;transform:translate(0,0)}
 60%{transform:translate(42%,-30%)}64%{transform:translate(83%,0)}67%{transform:translate(110%,-26%)}70%{transform:translate(137%,0)}
 73%{transform:translate(162%,-26%)}76%{transform:translate(187%,0)}79%{transform:translate(235%,-30%)}82%,100%{opacity:1;transform:translate(283%,0)}}
@keyframes cove-pose-hop{0%,81%{opacity:1}83%,100%{opacity:0}}
@keyframes cove-pose-look{0%,81%{opacity:0}83%,100%{opacity:1}}
/* Log choices: room for the tick so it never sits on the log; even spacing above the buttons. */
.cove-log-choice{padding-right:40px}.cove-log-choice .cove-tick{top:50%;right:12px;transform:translateY(-50%)}
.cove-activity .help-actions{margin-top:12px}.cove-total{margin:10px 0 0}
/* Secret Cove chapter 3: carved entrance stones, lanterns, the symbol message, and Glim's cave. */
.cove-options.cove-entrance{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}.cove-entrance .cove-option{justify-items:center}.cove-carving{width:84px;height:auto}
.cove-lantern-row{display:grid;gap:12px;background:#1f3b45;border-radius:18px;padding:14px;margin:10px 0}.cove-glowstones{display:grid;gap:6px}.cove-glowstones>span{display:flex;flex-wrap:wrap;gap:6px}.cove-glowstones i{width:14px;height:14px;border-radius:50%;background:radial-gradient(#fff6c2,#ffd34d 60%,#e0a92a)}.cove-jar-row{display:flex;flex-wrap:wrap;gap:12px}.cove-jar-row img{width:52px;height:auto;filter:saturate(.35) brightness(.72) drop-shadow(0 2px 2px #0006);transition:filter .6s}.cove-jar-row.is-lit img{filter:drop-shadow(0 0 8px #ffd76a)}
.cove-options.cove-lanterns,.cove-options.cove-message{grid-template-columns:repeat(4,minmax(0,1fr))}.cove-options.cove-lanterns .cove-option,.cove-options.cove-message .cove-option{justify-items:center}
.cove-message{display:grid;gap:12px;margin:10px 0}.cove-message-line{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;background:#f6ecd0;border:2px solid #d6c08a;border-radius:16px;padding:12px;margin:0}.cove-space{display:inline-block;width:20px}
.cove-key{background:#fff;border:1px solid #d7e7de;border-radius:16px;padding:10px 14px}.cove-key-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:6px 12px;margin-top:6px}.cove-key-grid>span{display:flex;align-items:center;gap:6px;font-weight:800;font-size:18px}
.cove-word{font-size:20px;font-weight:900;letter-spacing:.04em}
.cove-scene .cove-cave-light{position:absolute;left:62%;top:26%;width:16%;height:30%;border-radius:50%;background:radial-gradient(#fff4b8,#ffd56aa0 45%,transparent 72%);mix-blend-mode:screen;pointer-events:none}
.cove-scene .cove-open{position:absolute;inset:0;width:100%;height:100%}
.cove-scene .cove-glim-spot{position:absolute;left:60.5%;top:29%;width:13.5%;filter:drop-shadow(0 0 12px #ffe680aa)}
.cove-glim{position:relative;display:block;aspect-ratio:1}.cove-scene .glim-pose{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .25s}
.cove-glim[data-pose=idle] .idle,.cove-glim[data-pose=greeting] .greeting,.cove-glim[data-pose=delighted] .delighted{opacity:1}
.cove-scene .cove-welcome{position:absolute;left:55%;top:15%;width:25%;pointer-events:none}.cove-scene .cove-welcome img{display:block;width:100%;height:auto}
.cove-welcomes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:8px 0}.cove-choice-welcome{display:grid;gap:6px;justify-items:center;border:2px solid var(--line);background:#fbfefc;border-radius:18px;padding:12px;font:inherit;color:var(--ink)}.cove-choice-welcome.chosen{border-color:#e2bd5a;background:#fff8e6}.cove-welcome-art img{display:block;width:180px;height:auto}
.cove-visit{background:#eefaf4;border-radius:20px;padding:16px 20px;margin:12px 0}.cove-glim-says{font-size:20px;font-weight:800;color:#285940;margin:0 0 10px}
@media(prefers-reduced-motion:no-preference){
 .cove-revealing .cove-open{animation:cove-open-fade 6s ease-in-out both}
 .cove-revealing .cove-zoom{transform-origin:66% 42%;animation:cove-open-zoom 6s ease-in-out both}
 .cove-revealing .cove-cave-light{animation:cove-open-light 6s ease-out both}
 .cove-revealing .cove-glim-spot{animation:cove-open-glim 6s ease-out both}
}
@keyframes cove-open-fade{0%,18%{opacity:0}48%,100%{opacity:1}}
@keyframes cove-open-zoom{0%{transform:scale(1)}20%,82%{transform:scale(1.3)}100%{transform:scale(1)}}
@keyframes cove-open-light{0%,10%{opacity:0;transform:scale(.4)}45%{opacity:1;transform:scale(1.15)}60%,100%{opacity:1;transform:scale(1)}}
@keyframes cove-open-glim{0%,45%{opacity:0;transform:translateY(25%) scale(.6)}62%{opacity:1;transform:translateY(-6%) scale(1.05)}70%,100%{opacity:1;transform:none}}

@media(prefers-reduced-motion:reduce){.cove-scene .glim-pose{transition:none}}

/* How-to card the first two times a kind of question comes up */
.first-time{background:#f5fbf7;border:2px solid #b7e0cf;border-radius:20px;padding:4px 18px;margin:18px 0 20px;text-align:left}
.first-time>summary{cursor:pointer;list-style:none;min-height:52px;display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;padding:10px 0}
.first-time>summary::-webkit-details-marker{display:none}
.first-time>summary::after{content:'+';margin-left:auto;font-size:24px;line-height:1;color:#0b6b5f}
.first-time[open]>summary::after{content:'−'}
.first-time>summary b{font-size:19px;color:#0b6b5f;display:flex;align-items:center;gap:8px}
.first-time>summary .lesson-art{width:34px;height:auto}
.first-time h3{margin:12px 0 8px;color:#0b6b5f}
.first-time .lesson-steps{list-style:none;counter-reset:lesson;padding:0;display:grid;gap:10px}
.first-time .lesson-steps li{background:#fff}
.first-time .guide-look{color:inherit;font-size:17px;margin:2px 0 4px}.first-time .guide-read{margin:0;min-height:44px}
.first-time-example{background:#fff;border-radius:16px;padding:12px 14px;margin:14px 0}
.first-time-example>.question{margin:0 0 6px}
.first-time-example .learning-picture h3{display:flex;align-items:center;gap:8px}
.first-time-example .coco-mini{width:40px;height:40px}
.first-time-go{display:block;margin:6px auto 16px}

/* Review fixes: the puzzle shows sooner on a tablet, Skip is easy to tap, and colours keep one meaning */
.cove-stage{position:relative}
.cove-card.has-activity .cove-stage{width:min(100%,calc(36vh * 1.5));margin-inline:auto}
.cove-skip{position:absolute;top:12px;right:12px;z-index:2;min-width:88px;min-height:48px;border:0;border-radius:999px;background:#fffdf6ee;color:#1f4a42;font:inherit;font-size:18px;font-weight:800;padding:8px 18px;box-shadow:0 3px 10px #0003;cursor:pointer}
.cove-skip:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.cove-caption{text-align:center;font-size:20px;font-weight:800;color:#285940;margin:10px 0 0}
.cove-option.tried{border-style:dashed;border-color:#b9c6c0;background:#f5f7f6}
.cove-picked{display:inline-block;border-radius:999px;background:#e3efe9;color:#285940;font-size:13px;font-weight:800;padding:3px 10px}
.cove-log-choice .cove-picked{position:absolute;top:50%;right:10px;transform:translateY(-50%)}
.cove-log-choice{padding-right:76px}
.cove-stone-name{font-size:15px;color:var(--muted)}
.cove-chosen{display:inline-block;border-radius:999px;background:#ffe9a8;color:#5a4300;font-size:14px;font-weight:800;padding:3px 12px}
.cove-thanks{flex-wrap:wrap;justify-content:center}.cove-thanks img{width:min(220px,60vw);height:auto}
.cove-glim-says{position:relative;display:inline-block;background:#fff;border-radius:22px;padding:12px 18px;box-shadow:0 3px 10px #2a5e5a22}
.cove-glim-says::before{content:'';position:absolute;top:-12px;left:36px;border:12px solid transparent;border-top:0;border-bottom-color:#fff}

/* Thinking Adventures at the lighthouse: game.js (lighthouseSpot) places it over the painted lighthouse, sets the
   tower height and slides the label inside the map when the lighthouse is near the edge. */
.island-map .stop-thinking{left:var(--lh-x,84%);top:var(--lh-y,17%);transform:translate(-50%,calc(var(--lh-tower,96px) / -2));gap:0;--tower:var(--lh-tower,96px)}
.island-map .stop-thinking .map-stop-label{translate:var(--lh-shift,0px) 0}
.island-map .stop-thinking .lighthouse-pin{display:block;height:var(--tower);width:auto;background:none;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 4px 3px #1d4a5344)}
.island-map .stop-thinking .lighthouse-pin img{display:block;height:var(--tower);width:auto}
.island-map .stop-thinking:hover .lighthouse-pin,.island-map .stop-thinking:focus-visible .lighthouse-pin{filter:drop-shadow(0 0 10px #fff6c8) drop-shadow(0 4px 3px #1d4a5344)}
.island-map .stop-thinking .map-stop-label{margin-top:-6px;white-space:normal;max-width:104px;text-align:center;line-height:1.15}
/* On phones the cave and cove stops spread out a little so their labels do not touch. */
@media(max-width:700px){.island-map .stop-1{left:37%;top:21%}.island-map .stop-0{top:38%}.island-map .map-caption{bottom:6px}}
@media(max-width:600px){.fraction-bar span{font-size:clamp(14px,5vw,24px);min-height:52px}}
.map-top{z-index:3}

/* Review round 4 */
/* Both map labels sit on the left, so nothing covers the lighthouse roof. */
.map-top{flex-direction:column;align-items:flex-start;gap:6px}
/* The lighthouse button is wider than its tower; the focus ring goes on the label, which always stays in the map. */
.island-map .stop-thinking:focus-visible{outline:none}
.island-map .stop-thinking:focus-visible .map-stop-label{outline:3px solid #ec9a28;outline-offset:2px}
/* Secret messages: two words a row on phones, so every choice can be reached. */
@media(max-width:600px){.cove-options.cove-message{grid-template-columns:repeat(2,minmax(0,1fr))}.test-card .race-intro-art{height:150px;margin-bottom:16px}}
@media(max-width:430px){.cove-jar-row img{width:44px}.cove-skip{top:auto;bottom:12px}}
/* A short tablet screen (iPad landscape): a smaller cove picture so the puzzle and the animation caption show. */
@media(min-width:900px) and (max-height:900px){.cove-card.has-activity .cove-stage,.cove-card .cove-stage:has(.cove-skip){width:min(100%,calc(30vh * 1.5));margin-inline:auto}.cove-card.has-activity .cove-stage{width:min(100%,calc(26vh * 1.5))}}
