@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url('/calc/assets/dm-sans.ttf') format('truetype')}
@font-face{font-family:Outfit;font-style:normal;font-weight:100 900;font-display:swap;src:url('/calc/assets/outfit.ttf') format('truetype')}

:root{font-family:'DM Sans',sans-serif;color:#303c32;background:#f5f4ee;font-synthesis:none;--ink:#303c32;--muted:#81877b;--orange:#ed823d;--green:#597455;--line:#e8e8df;--cream:#fffefa}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button{color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #c57835;outline-offset:4px}button{border:0}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}p,h1,h2,h3{margin:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:24px;height:24px;display:block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}
.app-shell{max-width:1480px;margin:auto;padding:0 52px}.app-header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:11px;min-width:182px}.brand-mark{width:45px;height:49px;color:#ef873e;transform:rotate(-6deg);display:grid;place-items:center}.brand-mark .icon{width:43px;height:47px}.brand-copy{display:flex;flex-direction:column;gap:1px}.brand-copy strong{font-family:Outfit,sans-serif;font-size:37px;line-height:1;font-weight:750;letter-spacing:-1.8px}.brand-copy strong span{color:var(--orange)}.brand-copy>span{font-size:8px;letter-spacing:2.4px;font-weight:700;padding-top:4px}.main-nav{display:flex;align-self:stretch;gap:37px;align-items:center}.nav-link{height:100%;display:flex;align-items:center;gap:9px;font-size:14px;font-weight:650;background:transparent;position:relative;color:#8c9186;padding:0 3px}.nav-link .icon{width:20px;height:20px}.nav-link.is-active{color:#4b6648}.nav-link.is-active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:4px 4px 0 0;background:#6c845e}.nav-count{background:#e9eadd;min-width:21px;height:21px;border-radius:7px;display:grid;place-items:center;font-size:10px}.header-actions{display:flex;gap:10px}.icon-button{height:44px;width:44px;background:#eeeee6;border:1px solid #e8e8df;border-radius:50%;display:grid;place-items:center;color:#768070}.icon-button .icon{width:19px;height:19px}.icon-button:hover{background:#e4e7d9;color:#465e41}
.intro{padding:29px 0 27px;display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:9px;font-weight:750;letter-spacing:1.6px;color:#8b957e;line-height:1.6}.tiny-spark{color:#d9a04a;font-size:14px;margin-right:4px}h1{font-family:Outfit,sans-serif;font-size:34px;font-weight:600;line-height:1.4;letter-spacing:-1px}h1>span{color:#eb914c}.intro-copy{font-size:12px;color:#91958a;line-height:1.7;padding-top:3px}.crystal-wallet{display:flex;align-items:center;gap:12px;background:#edeee4;border:1px solid #e5e7d9;border-radius:14px;padding:12px 21px 12px 15px}.wallet-icon{color:#d7a352;background:#faf3da;border:1px solid #efe2b5;border-radius:12px;width:41px;height:43px;display:grid;place-items:center}.wallet-icon .icon{width:26px;height:26px;stroke-width:1.5}.crystal-wallet>div{display:flex;flex-direction:column;gap:0}.crystal-wallet strong{font-family:Outfit,sans-serif;font-size:24px;line-height:1.1}.crystal-wallet>div>span{font-size:9px;line-height:1.8;color:#8a917e;font-weight:500}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 355px;gap:22px;align-items:stretch}.island-scene{position:relative;isolation:isolate;overflow:hidden;border-radius:23px;background:#84916a;min-height:566px;box-shadow:0 8px 24px #3b48220e;container-type:inline-size}.scene-art{position:absolute;inset:0;background-image:url('/calc/assets/island.png?crystals=20261025');background-size:cover;background-position:50% 50%;z-index:-3}.scene-vignette{position:absolute;inset:0;background:linear-gradient(180deg,#253d2370 0%,transparent 25%,transparent 65%,#233c26b5 100%);z-index:-2}.scene-top{position:absolute;left:22px;right:18px;top:18px;display:flex;justify-content:space-between;align-items:center}.chapter-label{display:flex;align-items:center;gap:8px;background:#fffdf1e8;color:#566145;padding:10px 13px;border-radius:8px;backdrop-filter:blur(12px);font-size:8px;font-weight:700;letter-spacing:1px;box-shadow:0 2px 12px #26352110}.status-dot{background:#809263;width:6px;height:6px;border-radius:50%}.scene-info{height:35px;width:35px;background:#fffdf1e8;border-radius:50%;color:#62704f;display:grid;place-items:center}.scene-info .icon{width:17px;height:17px}.speech-bubble{position:absolute;top:19%;left:50%;transform:translateX(-50%);background:#fffdf3f5;padding:16px 41px 17px 20px;border-radius:17px;box-shadow:0 5px 25px #24391b25;max-width:300px;width:max-content}.speech-bubble:after{content:'';position:absolute;bottom:-10px;left:54%;border-width:11px 10px 0;border-color:#fffdf3f5 transparent transparent;border-style:solid}.speech-name{color:#c68a43;letter-spacing:1.5px;font-size:8px;font-weight:800}.speech-bubble p{font-size:12px;line-height:1.6;padding-top:4px;color:#66694f}.speech-heart{position:absolute;top:18px;right:14px;color:#d89c75}.speech-heart .icon{width:15px;height:15px;fill:#f4d2bb;stroke-width:1.4}.dragon{position:absolute;bottom:14%;left:50%;width:46%;max-width:370px;transform:translateX(-50%);background:transparent;padding:0;filter:drop-shadow(0 9px 5px #29381935);animation:breathe 4s ease-in-out infinite;transform-origin:50% 95%}.dragon:active:not(:disabled){transform:translateX(-50%)}.dragon img{width:100%;height:auto;display:block;pointer-events:none;user-select:none}.dragon-shadow{position:absolute;bottom:1.8%;left:13%;right:13%;height:6%;border-radius:50%;background:#26321c65;filter:blur(7px);z-index:-1}.dragon.celebrate{animation:dragon-hop .75s ease-in-out}.dragon.pet{animation:dragon-wiggle .75s ease-in-out}.scene-bottom{position:absolute;bottom:21px;left:23px;right:23px;display:flex;align-items:center;justify-content:space-between;gap:12px}.friend-label{display:flex;align-items:center;gap:10px;color:#fffaf0}.friend-avatar{width:36px;height:39px;display:grid;place-items:center;background:#f7ad59;border:2px solid #f8d29b;border-radius:12px;color:#fff4d9}.friend-avatar .icon{width:23px;height:25px}.friend-label>div{display:flex;flex-direction:column;gap:4px}.friend-label strong{font-family:Outfit,sans-serif;font-size:16px;font-weight:600}.friend-label>div>span{font-size:8px;letter-spacing:.1px;color:#eeeecdbb}.friend-heart{margin-left:6px;color:#ffd09c}.friend-heart .icon{width:17px;height:17px;fill:#e4a575;stroke:none}.pet-hint{color:#fff7d9a8;font-size:8px;align-self:flex-end;padding-bottom:3px}.fireflies{position:absolute;inset:0;pointer-events:none;overflow:hidden}.fireflies i{position:absolute;left:16%;top:40%;width:4px;height:4px;border-radius:50%;background:#ffe5a1;box-shadow:0 0 10px 4px #ffc26d85;animation:firefly 7s ease-in-out infinite}.fireflies i:nth-child(2){left:77%;top:60%;animation-delay:-3s;width:3px;height:3px}.fireflies i:nth-child(3){left:39%;top:71%;animation-delay:-1s}.fireflies i:nth-child(4){left:85%;top:24%;animation-delay:-5s;width:2px;height:2px}.fireflies i:nth-child(5){left:11%;top:65%;animation-delay:-2s;width:3px;height:3px}.fireflies i:nth-child(6){left:66%;top:48%;animation-delay:-4s}
.scene-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden}.particle{position:absolute;width:12px;height:12px;left:50%;top:60%;color:#ffe09b;animation:spark-pop 1.2s ease-out forwards}.particle .icon{width:100%;height:100%;fill:currentColor;stroke:none}
.math-card{background:var(--cream);border-radius:22px;border:1px solid #e6e7de;box-shadow:0 5px 15px #4c4b3110;padding:25px 25px 18px;display:flex;flex-direction:column}.task-badge{display:flex;align-items:center;gap:6px;font-size:8px;letter-spacing:1.1px;font-weight:750;color:#a09070}.task-badge .icon{height:14px;width:13px;color:#e6ab5b}.round-progress{display:flex;align-items:center;justify-content:space-between;margin-top:17px;padding-bottom:20px;border-bottom:1px solid #eeeee4}.round-progress>span{font-size:10px;color:#8f947f}.spark-dots{display:flex;gap:5px}.spark-dot{width:8px;height:8px;background:#ebece0;border-radius:50%}.spark-dot.filled{background:#eaa44f;box-shadow:0 0 5px #eaa44f25}.task-area{padding:25px 0 0;text-align:center}h2{font-family:Outfit,sans-serif;font-weight:500;letter-spacing:-.25px}.task-area h2{font-size:18px}.task-description{font-size:10px;color:#949987;padding-top:7px}.equation{display:flex;align-items:center;justify-content:center;gap:9px;padding:23px 0 15px;min-height:102px;font-family:Outfit,sans-serif;font-size:35px;font-weight:500;letter-spacing:-1.2px;font-variant-numeric:tabular-nums;white-space:nowrap}.equation .operator{font-weight:400;color:#a5a892;font-size:27px}.answer-slot{min-width:63px;min-height:64px;border:1.8px dashed #d4b780;background:#fbf6e9;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:#cf9449;font-size:32px;letter-spacing:-1px;padding:0 8px}.answer-slot.has-answer{border-style:solid;border-color:#c7cfac;color:#4e6d46;background:#f0f4e8}.answer-slot.is-correct{background:#e9f3dc;border-color:#8faa69;color:#65894d}.answer-feedback{font-size:10px;min-height:34px;color:#9b9e8d;line-height:1.5;padding-bottom:15px;max-width:290px;margin:auto}.answer-feedback.help{font-size:11px;color:#8b754a}.answer-feedback.success{color:#678c4f;font-weight:600}.keyboard-area{margin-top:auto}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.number-pad button{border:1px solid #e4e7d9;border-bottom:3px solid #dfe4d1;background:#f3f5ec;min-height:48px;border-radius:9px;font-family:Outfit,sans-serif;font-size:22px;font-weight:500;transition:background .15s,transform .1s}.number-pad button:hover{background:#eaf0dc}.number-pad button:active{border-bottom-width:1px;transform:translateY(2px)!important}.number-pad button:disabled{color:#b3b9a8;background:#f6f7f1}.number-pad .clear-key{font-family:'DM Sans',sans-serif;font-size:14px;color:#a6ac98;background:#fafbf5;border-color:#ecede5}.number-pad .back-key{display:grid;place-items:center;color:#9da58a;background:#fafbf5;border-color:#ecede5}.back-key .icon{width:21px;height:21px}.check-button{display:flex;align-items:center;justify-content:center;gap:12px;background:#ee873e;background:linear-gradient(180deg,#f39b52,#eb8139);color:white;border:1px solid #df7c37;border-bottom:3px solid #cf6c2e;min-height:49px;border-radius:10px;font-size:12px;font-weight:700;width:100%;margin-top:13px;box-shadow:0 3px 8px #c8782420;transition:filter .15s}.check-button>.icon{height:18px;width:18px}.check-button:hover{filter:brightness(1.04)}.check-button:disabled{background:#e7e8dd;border-color:#dfe1d4;color:#a4aa95;box-shadow:none}.check-button.next{background:#6b895b;border-color:#5c794e;border-bottom-color:#48643b}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}.hint-button{display:flex;align-items:center;gap:5px;color:#8f967e;font-size:9px;background:transparent;min-height:29px;padding:0 4px}.hint-button .icon{width:15px;height:15px;color:#b5ad86}.range-label{font-size:7px;font-weight:600;letter-spacing:.7px;color:#a5aa98;background:#f2f3ea;padding:5px 7px;border-radius:4px}
.journey{display:flex;gap:32px;align-items:center;margin-top:24px;padding:22px 26px;background:#eeefe5;border:1px solid #e5e7d9;border-radius:17px}.journey-summary{display:flex;gap:15px;align-items:center;flex:1;min-width:270px}.journey-icon{color:#8c9c72;background:#e2e7d5;border:1px solid #d9e0ca;display:grid;place-items:center;border-radius:12px;width:48px;height:51px;flex-shrink:0}.journey-icon .icon{width:25px;height:25px}.journey .eyebrow{font-size:7px;letter-spacing:1.15px;color:#a1a48c}.journey h2{font-size:16px;margin-top:4px;color:#52634a;font-weight:500}.journey-summary p:last-child{font-size:9px;color:#939b83;margin-top:6px;line-height:1.5}.milestones{display:flex;align-items:flex-start;justify-content:space-around;gap:24px;flex:1.1;min-width:330px;position:relative}.milestones:before{content:'';position:absolute;top:20px;left:10%;right:10%;height:1px;background:repeating-linear-gradient(90deg,#d3d9c3 0,#d3d9c3 4px,transparent 4px,transparent 8px)}.milestone{display:flex;flex-direction:column;align-items:center;gap:7px;background:transparent;position:relative;padding:0;min-width:55px;flex:1}.milestone-icon{width:42px;height:42px;display:grid;place-items:center;background:#f4f5ed;border:1px solid #dce0ce;border-radius:50%;color:#a9b197;position:relative;z-index:1}.milestone-icon .icon{height:19px;width:19px;stroke-width:1.5}.milestone.current .milestone-icon{border-color:#d9af6d;background:#fcf3dc;color:#bf9250;box-shadow:0 0 0 4px #e8e6d5}.milestone.unlocked .milestone-icon{border-color:#b1c099;color:#6b8956;background:#e3ebd5}.milestone>span:nth-child(2){font-size:8px;color:#929c80}.milestone.current>span:nth-child(2){color:#9c814c;font-weight:700}.milestone small{font-size:7px;color:#b1b6a4;display:flex;gap:3px;align-items:center}.milestone small .icon{height:9px;width:9px}.app-footer{padding:20px 2px 24px;display:flex;justify-content:space-between;gap:16px;font-size:8px;color:#a8ad9b}.app-footer>span{display:flex;gap:6px;align-items:center}.app-footer .icon{width:11px;height:11px;color:#c2ad92}
.modal{border:1px solid #e4e3d6;border-radius:24px;background:#fffdf6;color:var(--ink);padding:30px;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 80px #182b3045}.modal::backdrop{background:#21301e80;backdrop-filter:blur(5px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:24px}.modal h2{font-size:31px;line-height:1.2;letter-spacing:-1px}.modal-heading h2{margin-top:5px}.modal .eyebrow{font-size:8px}.modal-close{flex-shrink:0}.modal fieldset{margin:0 0 25px;border:0;padding:0}.modal legend{font-size:13px;font-weight:650;margin-bottom:12px}.option-grid{display:grid;gap:10px;grid-template-columns:1fr 1fr}.option-grid label{position:relative;cursor:pointer}.option-grid input{position:absolute;opacity:0;width:1px;height:1px}.option-grid label>span{border:2px solid #e6e9dc;background:#f5f7ef;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;padding:15px;min-height:74px;justify-content:center;gap:5px}.option-grid label strong{font-size:12px;font-weight:600}.option-grid label small{font-size:10px;color:#959b85}.option-grid input:checked+span{border-color:#d5a25d;background:#fcf1dc}.option-grid input:focus-visible+span{outline:3px solid #b87635;outline-offset:3px}.mode-options label>span{flex-direction:row;align-items:center;gap:12px}.mode-options b{font-size:25px;color:#bd9857;font-weight:500}.field-note{font-size:10px;color:#8d947e;line-height:1.7;margin-top:10px}.privacy-note{font-size:10px;color:#a1a68e;line-height:1.7;text-align:center;margin-top:18px}.reset-button,.quiet-button{font-size:10px;color:#939984;text-decoration:underline;background:transparent;min-height:44px;display:block;margin:10px auto 0}.treasure-total{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;background:#f9f0d8;border:1px solid #eee0b9;border-radius:16px;padding:26px;color:#c79647}.treasure-total>.icon{width:39px;height:39px}.treasure-total strong{font-family:Outfit,sans-serif;font-size:46px;font-weight:600}.treasure-total>span{width:100%;text-align:center;color:#9f9270;font-size:11px}.treasure-copy{font-size:12px;line-height:1.8;color:#879074;margin:20px 0}.treasure-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.treasure-item{padding:20px 12px;text-align:center;background:#f4f6ec;border:1px solid #e2e7d7;border-radius:13px}.treasure-item .icon{margin:0 auto 10px;color:#a6b296;width:28px;height:28px}.treasure-item.unlocked .icon{color:#7e995b}.treasure-item strong{font-size:11px;display:block}.treasure-item span{font-size:9px;color:#9da58f;display:block;margin-top:6px}.reward-modal{text-align:center;max-width:420px;padding:34px}.reward-symbol{width:84px;height:84px;border-radius:25px;background:#f8e8bd;display:grid;place-items:center;color:#d39942;margin:0 auto 20px;transform:rotate(-7deg)}.reward-symbol .icon{height:49px;width:49px;stroke-width:1.3}.reward-modal h2{margin:10px 0 15px}.reward-modal>p:not(.eyebrow){font-size:13px;line-height:1.8;color:#899176}.reward-modal .check-button{margin-top:24px}.milestone-large-icon{width:64px;height:64px;display:grid;place-items:center;color:#a1ac85;background:#eef2e4;border-radius:18px}.milestone-large-icon .icon{height:36px;width:36px}.milestone-modal>h2{margin:8px 0 15px}.milestone-modal>p:not(.eyebrow){font-size:12px;color:#919980;line-height:1.8}.milestone-meter{height:9px;background:#e9ecdf;border-radius:20px;margin:24px 0 10px;overflow:hidden}.milestone-meter>div{height:100%;background:#a9bb84;border-radius:20px}.milestone-count{text-align:right;font-size:10px!important}.noscript{background:#fff0bc;padding:20px;text-align:center}
@keyframes breathe{0%,100%{transform:translateX(-50%) scale(1)}50%{transform:translateX(-50%) scale(1.012,1.018)}}@keyframes dragon-hop{0%,100%{transform:translate(-50%,0) rotate(0)}30%{transform:translate(-50%,-15px) rotate(-4deg)}65%{transform:translate(-50%,0) rotate(3deg)}}@keyframes dragon-wiggle{0%,100%{transform:translateX(-50%) rotate(0)}25%{transform:translateX(-50%) rotate(-4deg)}65%{transform:translateX(-50%) rotate(4deg)}}@keyframes firefly{0%,100%{opacity:.1;transform:translate(0,8px)}50%{opacity:.9;transform:translate(12px,-10px)}}@keyframes spark-pop{0%{opacity:1;transform:translate(0,0) scale(.6)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(80deg) scale(1.5)}}@keyframes building-appear{from{opacity:0;filter:brightness(2);scale:.5}to{opacity:1;filter:brightness(1);scale:1}}@keyframes waterfall{0%{opacity:.7;transform:translateY(-3px)}100%{opacity:1;transform:translateY(3px)}}
@media(min-width:1500px){.app-shell{padding-top:12px}.intro{padding-top:35px;padding-bottom:31px}.island-scene{min-height:600px}.game-layout{grid-template-columns:minmax(0,1fr) 380px}.math-card{padding:28px}.number-pad button{min-height:52px}.task-area{padding-top:30px}.equation{padding-top:30px;padding-bottom:23px}.journey{margin-top:28px}}
@media(max-width:1190px){.app-shell{padding:0 28px}.app-header{height:80px}.intro{padding:23px 0}h1{font-size:30px}.game-layout{gap:18px;grid-template-columns:minmax(0,1fr) 325px}.island-scene{min-height:540px}.math-card{padding:22px 21px 15px}.speech-bubble{top:20%;font-size:11px;max-width:260px}.speech-bubble p{font-size:11px}.dragon{width:55%;bottom:17%}.pet-hint{display:none}.journey{padding:20px;gap:20px}.journey-summary{gap:12px}.milestones{gap:12px;min-width:300px}.main-nav{gap:25px}.equation{gap:7px;font-size:32px}.answer-slot{min-width:59px;font-size:29px}.scene-bottom{left:19px;bottom:18px}.chapter-label{letter-spacing:.7px;font-size:7px}.scene-top{left:17px;right:17px}}
@media(min-width:900px) and (max-height:850px){.app-shell{padding:0 30px}.app-header{height:68px}.brand-copy strong{font-size:32px}.brand-mark{height:40px}.brand-mark .icon{height:39px;width:36px}.brand-copy>span{font-size:7px}.intro{padding:16px 0 18px}.intro h1{font-size:28px;line-height:1.3}.intro-copy{font-size:10px}.intro .eyebrow{font-size:8px}.crystal-wallet{padding:8px 17px 8px 11px}.crystal-wallet strong{font-size:21px}.wallet-icon{width:35px;height:36px}.game-layout{grid-template-columns:minmax(0,1fr) 313px;gap:17px}.island-scene{min-height:488px}.math-card{padding:20px 21px 14px}.round-progress{margin-top:13px;padding-bottom:15px}.task-area{padding-top:19px}.task-area h2{font-size:16px}.equation{padding:17px 0 12px;min-height:85px}.answer-slot{min-height:56px}.answer-feedback{padding-bottom:10px;min-height:30px}.number-pad{gap:6px}.number-pad button{min-height:44px;font-size:21px}.check-button{min-height:45px;margin-top:10px;font-size:11px}.card-footer{margin-top:9px}.journey{margin-top:16px;padding:16px 21px}.journey h2{font-size:14px}.journey-summary{min-width:250px}.journey-summary p:last-child{font-size:8px}.journey-icon{width:43px;height:46px}.app-footer{padding:14px 2px 18px}.dragon{bottom:15%;width:51%}.speech-bubble{top:19%}}
@media(max-width:899px){.app-shell{padding:0 26px}.app-header{height:80px;gap:14px}.brand{min-width:150px}.brand-copy strong{font-size:33px}.brand-mark{width:36px}.brand-mark .icon{width:35px;height:41px}.brand-copy>span{font-size:7px;letter-spacing:1.9px}.main-nav{gap:20px}.nav-link{font-size:12px;gap:6px}.nav-link .icon{height:17px;width:17px}.header-actions{gap:6px}.icon-button{height:42px;width:42px}.intro{padding:22px 0}.intro h1{font-size:30px}.intro .eyebrow{font-size:8px}.intro-copy{font-size:10px}.crystal-wallet{padding:10px 14px 10px 10px}.wallet-icon{height:36px;width:35px}.crystal-wallet strong{font-size:22px}.game-layout{grid-template-columns:1fr;gap:16px}.island-scene{min-height:360px;height:360px;border-radius:19px}.scene-art{background-position:50% 49%}.dragon{width:31%;bottom:11%;max-width:235px}.speech-bubble{top:16%;left:50%;padding:11px 33px 12px 17px;max-width:250px}.speech-bubble p{font-size:10px}.speech-name{font-size:7px}.speech-heart{top:12px;right:11px}.scene-bottom{bottom:16px}.friend-label strong{font-size:14px}.friend-label>div>span{font-size:8px}.friend-avatar{height:33px;width:30px}.pet-hint{display:block}.math-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;row-gap:0;padding:23px 26px;border-radius:18px}.card-top{grid-column:1;grid-row:1}.task-area{grid-column:1;grid-row:2;padding-top:18px;align-self:center}.keyboard-area{grid-column:2;grid-row:1 / span 3;align-self:center;margin:0}.card-footer{grid-column:1;grid-row:3;align-self:end;margin-top:12px}.task-badge{font-size:8px}.round-progress{padding-bottom:13px;margin-top:13px}.equation{font-size:33px;gap:7px;padding-top:18px;padding-bottom:13px}.task-area h2{font-size:16px}.number-pad button{min-height:49px}.answer-feedback{min-height:30px;padding-bottom:0}.check-button{min-height:47px;font-size:10px}.journey{margin-top:18px;padding:19px;display:block}.journey-summary{margin-bottom:20px}.journey-icon{width:39px;height:42px}.journey h2{font-size:15px}.milestones{min-width:0;margin-left:47px;gap:10px}.milestone{gap:5px}.milestone-icon{width:38px;height:38px}.milestones:before{top:18px}.app-footer{padding:18px 0;line-height:1.6;font-size:7px}}
@media(min-width:600px) and (max-width:899px) and (min-height:1000px){.island-scene{height:385px;min-height:385px}.math-card{padding-top:26px;padding-bottom:26px}.number-pad button{min-height:52px}.journey{display:flex;gap:14px;align-items:center;padding:20px 17px}.journey-summary{min-width:250px;margin:0;flex:1.1}.journey-summary p:last-child{font-size:8px;max-width:180px}.journey h2{font-size:14px}.milestones{margin:0;flex:1.3;gap:8px}.milestone>span:nth-child(2){font-size:7px}.milestone small{font-size:6px}}
@media(max-width:599px){.app-shell{padding:0 16px}.app-header{height:72px;gap:8px}.brand{min-width:0;gap:6px}.brand-copy strong{font-size:30px}.brand-copy>span{font-size:6px;letter-spacing:1.4px}.brand-mark{width:30px;height:37px}.brand-mark .icon{width:30px;height:37px}.main-nav{margin-left:auto;gap:8px}.nav-link{min-width:42px;justify-content:center;font-size:0;padding:0 5px;gap:0}.nav-link .icon{width:21px;height:21px}.nav-count{position:absolute;top:13px;right:-3px;min-width:15px;height:15px;font-size:7px}.header-actions{gap:5px}.icon-button{height:39px;width:39px}.icon-button .icon{height:17px;width:17px}.intro{padding:22px 0 19px;gap:10px}.intro h1{font-size:25px;line-height:1.25;max-width:230px;margin-top:4px}.intro .eyebrow{font-size:6px;letter-spacing:.7px}.intro-copy{display:none}.crystal-wallet{padding:9px;gap:7px;border-radius:11px}.wallet-icon{width:28px;height:30px;border-radius:8px}.wallet-icon .icon{height:20px;width:20px}.crystal-wallet strong{font-size:21px}.crystal-wallet>div>span{font-size:6px;max-width:58px}.island-scene{min-height:337px;height:337px;border-radius:17px}.scene-art{background-size:auto 100%;background-position:50% 50%}.scene-top{top:14px;left:13px;right:12px}.chapter-label{font-size:6px;padding:8px 9px;letter-spacing:.55px;gap:5px}.scene-info{width:32px;height:32px}.speech-bubble{top:19%;padding:11px 30px 11px 14px;max-width:230px}.speech-bubble p{font-size:10px}.dragon{width:51%;max-width:220px;bottom:17%}.scene-bottom{left:14px;bottom:16px;right:14px}.friend-avatar{height:31px;width:28px;border-radius:10px}.friend-label{gap:8px}.friend-label strong{font-size:13px}.friend-label>div>span{font-size:7px}.pet-hint{font-size:6px;max-width:78px;text-align:right;line-height:1.5}.friend-heart{display:none}.game-layout{gap:14px}.math-card{display:flex;gap:0;padding:22px}.task-badge{font-size:9px}.round-progress>span{font-size:11px}.task-area{padding-top:24px}.task-area h2{font-size:20px}.task-description{font-size:12px}.equation{font-size:40px;gap:11px;padding:22px 0 17px}.answer-slot{font-size:36px;min-height:68px;min-width:70px}.answer-feedback{font-size:11px;min-height:37px;padding-bottom:15px}.number-pad{gap:9px}.number-pad button{min-height:56px;font-size:25px}.check-button{min-height:53px;font-size:12px}.card-footer{margin-top:13px}.hint-button{font-size:10px;min-height:35px}.range-label{font-size:8px}.journey{padding:19px 16px;margin-top:18px}.journey-summary{gap:12px;margin-bottom:20px}.journey .eyebrow{font-size:7px}.journey h2{font-size:16px}.journey-summary p:last-child{font-size:9px}.milestones{margin:0;gap:9px}.milestone>span:nth-child(2){font-size:8px}.milestone small{font-size:7px}.app-footer{display:block;text-align:center;font-size:8px;padding-bottom:24px}.app-footer>span{justify-content:center;margin:6px 0}.modal{padding:24px;border-radius:20px}.modal h2{font-size:28px}.mode-options label>span{padding:10px;gap:9px}.option-grid label strong{font-size:11px}}
/* Sprechblase und Babydrache bleiben auch auf Tablets getrennt lesbar. */
.speech-bubble{z-index:2;top:13%}.dragon{width:44%;bottom:15%}
@media(min-width:900px) and (max-height:850px){.speech-bubble{top:13%}.dragon{width:44%;bottom:15%}.intro{min-height:101px}}
@media(min-width:600px) and (max-width:899px){.speech-bubble{top:12%}.dragon{width:28%;bottom:10%}}
@media(max-width:599px){.speech-bubble{top:12%}.dragon{width:51%;bottom:14%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Sechs gerenderte Welten mit je vier Belohnungen. */
.intro-tools{display:flex;align-items:center;gap:14px;flex-shrink:0}.worlds-button{display:flex;gap:8px;align-items:center;min-height:46px;padding:0 14px;border:1px solid #dfe3d3;border-radius:12px;background:#eeefe5;color:#798867;font-size:10px;font-weight:600}.worlds-button .icon{width:18px;height:18px}.worlds-button:hover{background:#e4e9d7}.scene-stage{max-width:47%;font-size:9px;color:#f6f6df;line-height:1.5;text-align:right;text-shadow:0 1px 3px #26372299}.scene-art{transition:filter .3s;background-position:center}.island-scene.embedded-dragon .dragon img,.island-scene.embedded-dragon .dragon-shadow{display:none}.island-scene.embedded-dragon .dragon{height:58%;width:65%;bottom:16%;animation:none;filter:none;z-index:1}.island-scene.embedded-dragon .speech-bubble{max-width:235px;top:15%;left:24%;opacity:.94}.island-scene.embedded-dragon .speech-bubble p{font-size:10px}.island-scene[data-world="cave"] .scene-vignette,.island-scene[data-world="school"] .scene-vignette{background:linear-gradient(180deg,#201e1740,transparent 30%,transparent 65%,#201e17b0)}
.preview-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f8edce;border:1px solid #e9d7a5;border-radius:13px;padding:12px 17px;margin:0 0 17px;color:#997534}.preview-controls>span{display:flex;flex-direction:column;gap:4px}.preview-controls strong{font-size:11px}.preview-controls small{font-size:9px;color:#b09560}.preview-stage-buttons{display:flex;gap:5px}.preview-stage-buttons button{min-width:44px;min-height:44px;border-radius:8px;border:1px solid #e4d5b4;background:#fff8e8;color:#ab8c54;font-weight:700;font-size:12px}.preview-stage-buttons button.selected{background:#c59d51;color:white;border-color:#b18b45}.preview-controls>button{font-size:10px;background:transparent;color:#8d743e;min-height:44px;padding:0 7px;text-decoration:underline}.return-adventure{display:flex;align-items:center;justify-content:center;gap:10px;background:#e7eddc;color:#718653;border:1px solid #d4ddc4;border-radius:10px;padding:10px 14px;font-size:11px;min-height:44px;margin-bottom:16px;width:100%}.return-adventure .icon{width:16px;height:16px}.preview-button{display:block;min-height:45px;border:1px solid #e1e5d5;border-radius:9px;background:#f0f3e7;color:#7d8a68;font-size:11px;margin:20px auto 0;padding:0 17px}.worlds-modal{width:min(760px,calc(100% - 32px))}.worlds-description{font-size:12px;color:#8d947c;line-height:1.8;margin:-8px 0 22px}.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.world-card{position:relative;text-align:left;border:2px solid #e7e9dd;border-radius:15px;overflow:hidden;background:#f5f6ec;padding:0;transition:border-color .15s;min-width:0}.world-card.selected{border-color:#bb9e60}.world-card:hover:not(:disabled){border-color:#9bae7b}.world-card>img{width:100%;aspect-ratio:1.5;object-fit:cover;display:block}.world-card.locked>img{filter:grayscale(.55) brightness(.75)}.world-card-number{position:absolute;top:9px;left:9px;width:28px;height:28px;border-radius:8px;background:#fff8e9e8;color:#95814e;font-family:Outfit,sans-serif;font-size:11px;display:grid;place-items:center}.world-card-number .icon{height:13px;width:13px}.world-card-copy{display:flex;flex-direction:column;gap:6px;padding:13px 12px 15px}.world-card-copy strong{font-family:Outfit,sans-serif;font-size:14px;font-weight:500}.world-card-copy small{font-size:9px;color:#9ba184}.world-card.locked .world-card-copy strong{color:#a0a58f}.world-card:disabled{cursor:default}.treasure-modal{width:min(660px,calc(100% - 32px))}#treasure-grid{display:flex;flex-direction:column;gap:22px}.treasure-world h3{display:flex;align-items:center;gap:9px;font-family:Outfit,sans-serif;font-size:15px;font-weight:500;margin:0 0 11px}.treasure-world h3>.icon{height:19px;width:19px;color:#a7b08c}.treasure-world h3>span{margin-left:auto;font-family:'DM Sans',sans-serif;font-size:10px;color:#a1ab8f}.treasure-world-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.treasure-world-items .treasure-item{padding:16px 6px}.treasure-world-items .treasure-item strong{font-size:9px}.treasure-world-items .treasure-item span{font-size:8px}
@media(max-width:1190px){.intro-tools{gap:10px}.worlds-button{font-size:9px;padding:0 11px}.scene-stage{font-size:8px}.island-scene.embedded-dragon .speech-bubble{max-width:190px;left:24%;top:17%}}
@media(max-width:899px){.intro-tools{gap:8px}.worlds-button{font-size:8px;padding:0 9px}.worlds-button .icon{height:16px;width:16px}.intro-tools .crystal-wallet{padding:10px;gap:8px}.intro-copy{max-width:350px}.island-scene.embedded-dragon .speech-bubble{max-width:210px;top:14%;left:25%}.world-grid{gap:11px}.scene-stage{font-size:8px;max-width:50%}}
@media(max-width:599px){.intro-tools{flex-direction:column;align-items:stretch;gap:7px}.worlds-button{padding:0 8px;min-height:38px;font-size:7px;justify-content:center}.worlds-button .icon{width:13px;height:13px}.intro-tools .crystal-wallet{padding:7px;justify-content:center;min-width:97px}.intro h1{font-size:23px;max-width:220px}.preview-controls{padding:10px;gap:8px;flex-wrap:wrap}.preview-controls>span{width:calc(100% - 100px)}.preview-controls small{font-size:8px}.preview-stage-buttons{order:3;width:100%;justify-content:center}.preview-stage-buttons button{flex:1}.preview-controls>button{font-size:8px;padding:0}.preview-controls strong{font-size:10px}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.world-card-copy{padding:11px 8px}.world-card-copy strong{font-size:12px}.world-card-copy small{font-size:8px}.scene-stage{font-size:7px;max-width:45%}.island-scene.embedded-dragon .speech-bubble{max-width:155px;left:28%;top:15%;padding:10px 25px 10px 12px}.island-scene.embedded-dragon .speech-bubble p{font-size:9px}.island-scene.embedded-dragon .speech-name{font-size:6px}.island-scene.embedded-dragon .dragon{height:55%;width:80%;bottom:13%}.treasure-world-items{grid-template-columns:repeat(2,minmax(0,1fr))}.return-adventure{font-size:9px}}

/* Ganze Szenen bleiben sichtbar, auch wenn die Tablet-Proportionen wechseln. */
.scene-backdrop{position:absolute;inset:-15px;z-index:-4;background-size:cover;background-position:center;filter:blur(16px) brightness(.7)}.scene-art{background-size:contain;background-repeat:no-repeat;background-color:transparent}.island-scene.is-preview .speech-bubble{display:none}.island-scene.embedded-dragon .scene-art{background-size:contain}.island-scene.embedded-dragon .scene-stage{text-shadow:0 1px 5px #000}.island-scene.embedded-dragon .dragon{height:70%;bottom:9%}
.world-frame{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.world-frame .dragon{pointer-events:auto;max-width:none;width:30%;bottom:12%}.island-scene[data-world="island"] .dragon{width:32%;bottom:32%}.island-scene[data-world="cave"] .dragon{width:30%;bottom:14%}.island-scene[data-world="school"] .dragon{width:27%;bottom:10%}.island-scene[data-world="playground"] .dragon{width:28%;bottom:12%}.island-scene[data-world="band"] .dragon{width:27%;bottom:12%}.island-scene.embedded-dragon .world-frame .dragon{height:78%;width:80%;bottom:4%}.island-scene.is-preview .scene-vignette{background:linear-gradient(180deg,#23342040,transparent 13%,transparent 85%,#23342099)}
.game-select{max-width:1240px;margin:0 auto;padding:0 46px 40px}.select-header{height:91px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7da;color:#9fa68f;font-size:10px}.select-brand{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:750;letter-spacing:1.8px;color:#738864}.select-brand .icon{height:21px;width:21px;color:#d3a55c;fill:#f1e0bd;stroke-width:1.3}.select-intro{text-align:center;padding:45px 0 35px}.select-intro>.eyebrow{font-size:9px;letter-spacing:2px;color:#a8ad96}.select-intro h1{font-size:43px;font-weight:600;line-height:1.3;margin:9px 0 13px;letter-spacing:-1.5px}.select-intro>p:last-child{font-size:13px;line-height:1.8;color:#8d9780}.game-choices{display:grid;grid-template-columns:1fr 1fr;gap:27px}.game-choice{display:flex;flex-direction:column;text-align:left;background:#fffdf6;border:1px solid #e0e4d5;border-radius:23px;overflow:hidden;padding:0;box-shadow:0 8px 28px #3147190d;transition:transform .2s,border-color .2s}.game-choice:hover{transform:translateY(-4px);border-color:#a6b38a}.game-choice:active:not(:disabled){transform:translateY(-1px)}.choice-art{display:block;width:100%;height:280px;position:relative;background-size:cover;background-position:center}.dragon-choice .choice-art{background-image:linear-gradient(0deg,#36471f30,#e5d7a000),url('/calc/assets/island.png?crystals=20261025')}.dragon-choice .choice-art>img{position:absolute;height:94%;width:auto;left:50%;transform:translateX(-50%);bottom:-5px;filter:drop-shadow(0 5px 3px #172c1640)}.choice-badge{position:absolute;top:19px;left:19px;border-radius:6px;padding:9px 11px;background:#fffcecde;backdrop-filter:blur(10px);font-size:8px;letter-spacing:1px;font-weight:700;color:#6d8058;z-index:1}.racing-choice .choice-art{background-image:url('/calc/assets/racing/garage/stage-4.png');background-position:center 61%;background-size:cover}.racing-choice .choice-badge{color:#9b7249;background:#fff2dcf0}.choice-copy{display:flex;flex-direction:column;padding:25px 25px 22px;flex:1}.choice-copy>.eyebrow{font-size:8px;letter-spacing:1.4px;color:#a8ad8d}.choice-copy>strong{font-family:Outfit,sans-serif;font-size:28px;font-weight:550;letter-spacing:-.7px;line-height:1.3;margin:8px 0 10px}.choice-description{font-size:12px;color:#939c85;line-height:1.8}.choice-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:23px;padding-top:20px;border-top:1px solid #eff0e5}.choice-footer>span:first-child{font-size:8px;color:#9ca58c;line-height:1.6}.choice-play{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700;color:#7c925d;white-space:nowrap}.choice-play .icon{width:17px;height:17px}.racing-choice .choice-play{color:#d59249}.select-note{display:flex;justify-content:center;align-items:center;gap:7px;font-size:10px;color:#a5ad96;margin-top:28px;line-height:1.8;text-align:center}.select-note .icon{width:14px;height:14px;color:#c5b18a}.game-load-status{text-align:center;font-size:11px;color:#ba864a;margin-top:15px}
@media(max-width:1190px){.game-select{padding:0 30px 30px}.select-header{height:73px}.select-intro{padding:30px 0}.select-intro h1{font-size:36px}.choice-art{height:250px}.choice-copy{padding:22px}.choice-copy>strong{font-size:24px}.choice-description{font-size:11px}.game-choices{gap:22px}}
@media(max-width:899px){.select-header>span:last-child{font-size:8px}.select-intro h1{font-size:33px}.select-intro>p:last-child{font-size:12px}.choice-art{height:230px}.choice-copy{padding:19px}.choice-copy>strong{font-size:23px}.choice-description{font-size:10px}.choice-footer{display:block;margin-top:18px;padding-top:16px}.choice-play{margin-top:12px;min-height:25px;font-size:11px}.choice-badge{font-size:7px;top:14px;left:14px;padding:8px}.game-choices{gap:18px}.select-note{font-size:8px}}
@media(max-width:599px){.game-select{padding:0 18px 24px}.select-header{height:64px;justify-content:center}.select-header>span:last-child{display:none}.select-brand{font-size:9px;letter-spacing:1.3px}.select-intro{padding:28px 0 25px}.select-intro h1{font-size:29px;letter-spacing:-.8px}.select-intro>.eyebrow{font-size:7px}.select-intro>p:last-child{font-size:11px}.game-choices{grid-template-columns:1fr;gap:22px}.choice-art{height:232px}.choice-copy>strong{font-size:26px}.choice-description{font-size:12px}.choice-footer{display:flex}.choice-play{margin:0;font-size:10px}.select-note{align-items:flex-start;font-size:9px;max-width:280px;margin:22px auto 0}.header-actions{gap:3px}.main-nav{gap:5px}.brand-copy>span{letter-spacing:1px}.brand{gap:4px}.app-header{gap:5px}.scene-stage{max-width:42%}}

/* Child profiles: local, personal starting point for both adventures. */
.profile-select{max-width:1000px;margin:0 auto;padding:0 46px 28px}.profile-welcome{display:flex;align-items:center;justify-content:center;gap:24px;padding:32px 0 24px}.profile-welcome>img{width:105px;height:124px;object-fit:contain;filter:drop-shadow(0 5px 5px #52643c20)}.profile-welcome h1{font-size:42px;letter-spacing:-1.3px;margin:5px 0 9px}.profile-welcome>div>p:last-child{color:#7b8570;font-size:14px;line-height:1.7}.profile-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}.profile-list:empty{display:none}.profile-card{display:flex;align-items:center;gap:13px;min-height:85px;min-width:0;padding:16px;text-align:left;border:1px solid #dfe4d3;border-radius:17px;background:#fffdf6;box-shadow:0 4px 15px #31471908;transition:border-color .2s,transform .2s}.profile-card:hover{border-color:#91a17d;transform:translateY(-2px)}.profile-avatar{display:grid;place-items:center;flex-shrink:0;width:47px;height:47px;border-radius:15px;color:#9b6d37;background:#f8e8c9;border:1px solid #eddbb6;font:600 24px Outfit,sans-serif}.profile-card:nth-child(3n+2) .profile-avatar{color:#557b69;background:#e7eee1;border-color:#d6e2ca}.profile-card:nth-child(3n) .profile-avatar{color:#a26a5c;background:#f7e5dc;border-color:#efdbce}.profile-card-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.profile-card-name{font:600 21px Outfit,sans-serif;overflow-wrap:anywhere;line-height:1.2}.profile-card-grade{font-size:12px;color:#7d8870;line-height:1.4}.profile-form{max-width:570px;margin:0 auto;background:#fffdf6;border:1px solid #e0e4d6;border-radius:23px;padding:25px 29px 15px;box-shadow:0 8px 28px #31471908}.profile-form h2{font-size:24px;margin-bottom:20px}.profile-name-label{display:block;font-size:13px;font-weight:650;margin-bottom:9px}.profile-form input[type=text]{width:100%;min-height:52px;border:1px solid #dce2d0;background:#f9faf4;border-radius:11px;padding:12px 15px;font-size:18px;color:var(--ink);outline-color:#b87635}.profile-form input[type=text]::placeholder{color:#a0a58f}.profile-form fieldset{margin:23px 0 20px;padding:0;border:0}.profile-form legend{font-size:13px;font-weight:650;margin-bottom:11px}.grade-options{grid-template-columns:repeat(3,minmax(0,1fr))}.grade-options label>span{min-height:76px;padding:14px;align-items:center}.grade-options label strong{font-size:14px}.grade-options label small{font-size:12px;color:#7d866e}.profile-form .check-button{min-height:52px;font-size:14px}.profile-feedback{font-size:12px;color:#a16b38;line-height:1.6;min-height:21px;padding-top:9px;overflow-wrap:anywhere}.profile-storage-note{max-width:530px;margin:19px auto 0;text-align:center;color:#89927d;font-size:11px;line-height:1.7}.profile-legacy-note{margin-bottom:15px}.selected-profile{display:flex;align-items:center;gap:16px}.switch-profile{display:flex;align-items:center;gap:10px;text-align:left;background:transparent;padding:4px 0;min-height:52px}.selected-profile-avatar{width:38px;height:38px;border-radius:12px;font-size:20px}.switch-profile .profile-card-copy strong{font-size:14px;line-height:1.2;color:#465c3f;max-width:180px;overflow-wrap:anywhere}.switch-profile .profile-card-copy>span{font-size:10px;color:#7c896e}.switch-profile-label{font-size:11px;font-weight:650;color:#657a52;margin-left:5px}.change-grade{background:transparent;color:#8c7956;border:1px solid #dedfce;border-radius:9px;min-height:44px;padding:9px 12px;font-size:11px;font-weight:650}.profile-range-note{padding:0 0 20px;font-size:12px;line-height:1.6}.grade-modal{width:min(570px,calc(100% - 32px))}.grade-modal .modal-heading h2{overflow-wrap:anywhere}.grade-modal #close-grade{flex-shrink:0}
@media(max-width:799px){.profile-select{padding:0 30px 26px}.profile-welcome{padding:27px 0 22px;gap:18px}.profile-welcome h1{font-size:36px}.profile-welcome>img{width:86px;height:105px}.profile-list{grid-template-columns:repeat(2,minmax(0,1fr))}.selected-profile{gap:10px}.switch-profile-label{max-width:45px;line-height:1.4}.switch-profile .profile-card-copy strong{max-width:110px}.selected-profile-avatar{width:33px;height:33px;font-size:18px}.change-grade{font-size:10px;padding:8px}.game-select .select-brand{font-size:9px;letter-spacing:1px}}
@media(max-width:599px){.profile-select{padding:0 18px 24px}.profile-select .select-header{justify-content:flex-start}.profile-welcome{text-align:center;flex-direction:column;gap:8px;padding:24px 0}.profile-welcome>img{width:75px;height:88px}.profile-welcome h1{font-size:33px}.profile-welcome>div>p:last-child{font-size:13px;max-width:280px}.profile-list{gap:10px}.profile-card{padding:12px;gap:10px;min-height:80px}.profile-card .profile-avatar{width:34px;height:38px;border-radius:12px;font-size:20px}.profile-card-name{font-size:18px}.profile-card-grade{font-size:10px}.profile-form{padding:23px 20px 14px}.profile-form h2{font-size:23px}.grade-options{grid-template-columns:1fr;gap:8px}.grade-options label>span{flex-direction:row;justify-content:space-between;min-height:52px;padding:12px 15px}.grade-options label strong{font-size:14px}.profile-form fieldset{margin:21px 0 18px}.profile-storage-note{font-size:10px;max-width:290px}.game-select .select-header{height:auto;min-height:85px;justify-content:space-between;gap:8px}.game-select .select-brand{max-width:115px;line-height:1.5;font-size:8px;letter-spacing:.6px}.game-select .select-brand .icon{width:16px;height:16px}.selected-profile{gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:220px}.switch-profile{gap:7px}.switch-profile-label{font-size:9px;max-width:34px}.switch-profile .profile-card-copy strong{max-width:88px;font-size:13px}.switch-profile .profile-card-copy>span{font-size:9px}.selected-profile .change-grade{min-height:44px;padding:5px 8px;font-size:9px}.selected-profile-avatar{width:30px;height:33px}.grade-modal .modal-heading h2{font-size:25px}.grade-modal .grade-options label>span{min-height:54px}}

/* Four-digit answers remain readable in the tablet math card. */
.equation.large-range{font-size:28px;gap:6px;letter-spacing:-.8px}.equation.large-range .operator{font-size:23px}.equation.large-range .answer-slot{font-size:27px;min-width:64px;padding:0 5px}
@media(max-width:1023px){.equation.large-range{font-size:clamp(23px,3.5vw,33px);gap:6px}.equation.large-range .answer-slot{font-size:29px;min-width:68px}}
@media(max-width:599px){.equation.large-range{font-size:clamp(22px,5.8vw,31px);gap:6px;letter-spacing:-.7px}.equation.large-range .operator{font-size:23px}.equation.large-range .answer-slot{font-size:27px;min-width:62px}}
.profile-storage-note.storage-unavailable{color:#9b652f;font-weight:600}

/* A small glass tube keeps the next reward visible without covering the world. */
.speech-bubble[hidden]{display:none}
.scene-bottom{align-items:flex-end}
.scene-status{display:grid;gap:9px;width:210px;max-width:47%;justify-items:stretch}
.scene-status .scene-stage{max-width:none;font-size:8px}
.scene-meter{display:grid;gap:8px;padding:0 1px}
.scene-meter-copy{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#fff4d5;text-shadow:0 1px 5px #172619;font-size:11px;font-weight:600;letter-spacing:.1px}
.scene-meter-copy .icon{width:13px;height:15px;color:#ffc579;filter:drop-shadow(0 0 4px #ffad4380)}
.scene-tube{height:14px;padding:2px;position:relative;overflow:hidden;border:1px solid #e2c48c99;border-radius:20px;background:#18251f9c;box-shadow:inset 0 2px 4px #0008,0 1px 0 #fff3,0 2px 8px #14231635}
.scene-tube:after{content:'';position:absolute;inset:2px 4px auto;height:3px;border-radius:20px;background:linear-gradient(90deg,#fff0,#fff5,#fff2);pointer-events:none}
.scene-tube>span{display:block;width:0;height:100%;border-radius:12px;background:linear-gradient(180deg,#ffe6a2 0%,#ffb553 45%,#df7d31 100%);box-shadow:0 0 9px #ffb54c99,inset 0 -1px 2px #b8613180;transition:width .55s ease}
.scene-meter.is-complete .scene-tube>span{background:linear-gradient(180deg,#fff0b9,#edc674 55%,#bb934e)}
@media(max-width:899px){.scene-status{width:190px;gap:7px}.scene-meter-copy{font-size:10px}.scene-tube{height:13px}}
@media(max-width:599px){.scene-status{width:150px;max-width:46%;gap:6px}.scene-meter{gap:6px}.scene-meter-copy{font-size:9px;gap:3px}.scene-status .scene-stage{font-size:7px}.friend-label>div>span{max-width:95px;line-height:1.5}.friend-label{gap:7px}.scene-meter-copy .icon{width:11px;height:12px}}
@media(prefers-reduced-motion:reduce){.scene-tube>span{transition:none}}

/* Checking answers is the same green action in both adventures. */
#check-answer{background:linear-gradient(120deg,#729b5c,#527f48);border-color:#527d45;border-bottom-color:#416e38;box-shadow:0 3px 8px #4362391c;color:#fffef6}
#check-answer:hover:not(:disabled){background:linear-gradient(120deg,#7aa565,#5b8a50)}
#check-answer:disabled{background:#edf2e8;border-color:#dde5d5;border-bottom-color:#d7e1cd;color:#99a78e;box-shadow:none}
#check-answer.next{background:linear-gradient(120deg,#73995f,#547b4b);border-color:#527d45;color:#fffef6}

/* Persistent website navigation; normal flow preserves access at zoom and in dialogs. */
.site-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;max-width:1480px;margin:auto;padding:6px 28px;border-bottom:1px solid var(--line)}
.site-home,.fullscreen-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 15px;border:1px solid #d4dcc8;border-radius:12px;font-size:14px;font-weight:700;color:#415d40;background:#fffdf6;text-decoration:none}
.fullscreen-toggle{background:#e7eddc}.fullscreen-status:empty{display:none}.fullscreen-status{flex-basis:100%;font-size:12px;line-height:1.5;color:#82532e;padding-bottom:5px}
:root:fullscreen{background:#f5f4ee;overflow:auto}
@media(max-width:599px){.site-toolbar{padding:6px 16px;gap:6px}.site-home,.fullscreen-toggle{font-size:12px;padding:8px 10px}}
/* Landscape tablets: artwork and complete input stay alongside each other. */
@media(min-width:700px) and (orientation:landscape) and (max-height:850px){
 .app-shell{padding:0 24px}.app-header{height:56px;gap:12px}.main-nav{gap:18px}.brand{min-width:150px}.brand-copy strong{font-size:29px}.brand-mark{height:38px;width:35px}.brand-mark .icon{width:33px;height:36px}.header-actions{gap:7px}
 .intro{min-height:0;padding:9px 0;gap:12px}.intro h1{font-size:22px;line-height:1.2}.intro .eyebrow,.intro-copy{display:none}.intro-tools{gap:8px}.intro-tools .crystal-wallet{padding:5px 9px;gap:7px}.wallet-icon{width:30px;height:32px}.crystal-wallet strong{font-size:19px}.worlds-button{min-height:44px}
 .game-layout{grid-template-columns:minmax(0,1fr) minmax(460px,1fr);gap:14px;align-items:stretch}
 .island-scene{height:calc(100dvh - 182px);min-height:310px;border-radius:18px}
 .math-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:8px 16px;padding:14px;min-width:0;min-height:0;border-radius:18px}
 .card-top{grid-column:1;grid-row:1}.task-badge{font-size:7px;letter-spacing:.5px}.round-progress{margin-top:8px;padding-bottom:8px}.round-progress>span{font-size:9px}
 .task-area{grid-column:1;grid-row:2;align-self:center;padding:0}.task-area h2{font-size:15px;line-height:1.35}.task-description{font-size:10px;padding-top:7px}.equation{font-size:29px;min-height:72px;padding:12px 0;gap:5px}.equation.large-range{font-size:22px;gap:4px;letter-spacing:-.6px}.equation.large-range .operator{font-size:21px}.equation.large-range .answer-slot{font-size:23px;min-width:52px;padding:0 3px}
 .answer-feedback{min-height:34px;padding-bottom:0;font-size:10px;line-height:1.5}.keyboard-area{grid-column:2;grid-row:1 / span 3;align-self:center;margin:0}.number-pad{gap:6px}.number-pad button{min-height:44px;font-size:22px}.check-button{min-height:44px;margin-top:8px;font-size:11px}.card-footer{grid-column:1;grid-row:3;margin:0;gap:4px;flex-wrap:wrap}.hint-button{min-height:44px;font-size:10px}.range-label{font-size:7px}
 .scene-top{top:12px;left:12px;right:12px}.scene-info{min-width:44px;min-height:44px}.scene-bottom{left:12px;right:12px;bottom:12px}.scene-status{width:160px;max-width:48%}.friend-label{gap:6px}.friend-label>div>span{max-width:88px;line-height:1.4}.friend-avatar{display:none}.friend-heart{display:none}
 .journey{margin-top:14px}.app-footer{padding:12px 0}
 .game-select,.profile-select{padding:0 24px 20px}.select-header{height:60px}.select-intro{padding:16px 0}.select-intro h1{font-size:29px;margin:4px 0 7px}.select-intro>p:last-child{font-size:11px}.choice-art{height:clamp(120px,calc(100dvh - 435px),230px)}.choice-copy{padding:15px}.choice-copy>strong{font-size:23px;margin:5px 0 8px}.choice-description{font-size:11px}.choice-footer{margin-top:12px;padding-top:12px}.choice-play{min-height:44px;display:inline-flex;align-items:center}.select-note{margin-top:16px}
 .profile-welcome{padding:12px 0;gap:15px}.profile-welcome>img{width:68px;height:80px}.profile-welcome h1{font-size:30px}.profile-welcome>div>p:last-child{font-size:12px}.profile-form{padding:16px 20px 10px}.profile-form h2{font-size:21px;margin-bottom:12px}.profile-form fieldset{margin:14px 0}.profile-form input[type=text]{min-height:44px}.profile-form .check-button{min-height:44px}.profile-storage-note{margin-top:12px}.profile-list{margin-bottom:14px;gap:10px}
}
@media(min-width:700px) and (orientation:landscape) and (max-height:650px){
 .island-scene{height:calc(100dvh - 176px)}.intro{padding:6px 0}.math-card{padding:10px;column-gap:12px}.round-progress{margin-top:6px;padding-bottom:6px}.task-area h2{font-size:14px}.equation{min-height:65px}.choice-description{line-height:1.55}.choice-copy>strong{font-size:21px}.select-intro>p:last-child{display:none}.choice-art{height:clamp(110px,calc(100dvh - 355px),180px)}
 .profile-select:has(.profile-card){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:22px}.profile-select .select-header,.profile-select .profile-welcome,.profile-select .profile-storage-note{grid-column:1 / -1}.profile-select:has(.profile-card) .profile-list{align-self:start}.profile-select:has(.profile-card) .profile-form{width:100%}.profile-welcome>img{height:58px;width:55px}.profile-welcome{padding:8px 0}.profile-welcome h1{font-size:26px}.profile-form fieldset{margin:12px 0}.grade-options label>span{min-height:60px;padding:9px}
}

/* Coordinates follow the same contained image frame as Funki, at every ratio. */
.unlock-magic{position:absolute;inset:0;pointer-events:none;z-index:3}
.unlock-burst{position:absolute;left:var(--magic-x);top:var(--magic-y);width:0;height:0;pointer-events:none}
.unlock-burst:before{content:"";position:absolute;width:clamp(45px,8vw,100px);height:clamp(45px,8vw,100px);border:2px solid #ffe5a7;border-radius:50%;transform:translate(-50%,-50%);animation:unlock-ring 2s ease-out both;box-shadow:0 0 22px #ffd87980}
.unlock-star{position:absolute;left:0;top:0;width:clamp(12px,1.8vw,24px);height:clamp(12px,1.8vw,24px);color:#fff2b8;filter:drop-shadow(0 0 4px #e9ad4d);animation:unlock-spark 2s ease-out both}
.unlock-star .icon{width:100%;height:100%;fill:currentColor;stroke:#daab55;stroke-width:1}
.unlock-star-0{--mx:-44px;--my:-28px}.unlock-star-1{--mx:0px;--my:-46px}.unlock-star-2{--mx:42px;--my:-30px}.unlock-star-3{--mx:54px;--my:4px}.unlock-star-4{--mx:32px;--my:38px}.unlock-star-5{--mx:-4px;--my:47px}.unlock-star-6{--mx:-40px;--my:32px}.unlock-star-7{--mx:-54px;--my:0px}
@keyframes unlock-spark{0%{opacity:.6;transform:translate(calc(-50% + var(--mx)*.25),calc(-50% + var(--my)*.25)) scale(.7)}20%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--mx)),calc(-50% + var(--my))) scale(.4) rotate(70deg)}}
@keyframes unlock-ring{0%{opacity:.35;scale:.55}25%{opacity:.8}100%{opacity:0;scale:1.3}}
@media(prefers-reduced-motion:reduce){.unlock-magic{display:none}}

/* Crystals use the same native frame as scenery, dragon and object magic. */
.island-crystals{position:absolute;inset:0;pointer-events:none;z-index:1}
.island-crystals[hidden]{display:none}
.island-reward-crystal{position:absolute;left:var(--crystal-x);top:var(--crystal-y);height:var(--crystal-height);width:auto;max-width:none;transform:translate(-50%,-100%);object-fit:contain;filter:drop-shadow(0 0 5px #ffac4266)}

.next-world{display:block;min-height:48px;max-width:100%;margin:12px 0 0;padding:12px 22px;border:0;border-radius:16px;background:#e5a346;color:#253922;font:700 15px/1.4 'DM Sans',sans-serif;cursor:pointer;touch-action:manipulation}.next-world[hidden]{display:none}.next-world:focus-visible{outline:3px solid #386951;outline-offset:4px}

/* The manual destination stays readable in the narrow tablet keypad column. */
.check-button.travel{padding:7px 10px;line-height:1.4}.check-button.travel>span{min-width:0;overflow-wrap:anywhere}.check-button.travel>.icon{flex-shrink:0}
