@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@500;600;700;800;900;1000&display=swap');
:root{font-family:'Nunito',ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;color:#493b2c;font-synthesis:none;--ink:#423d2c;--green:#3b5b3c;--yellow:#ffd355;--cream:#fffbed}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#a9dce4}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #356544;outline-offset:5px}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}#game{position:absolute;inset:0}#game canvas{display:block;width:100%;height:100%;outline:none}.topbar{height:96px;position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 34px;z-index:5;pointer-events:none;background:linear-gradient(#eaf6ed70,transparent)}.brand,.level-chip,.top-actions{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px}.brand-mark{height:43px;width:43px;background:#f9d05b;border:1.5px solid #755b32;border-radius:14px;display:grid;place-items:center;font-family:'Baloo 2',sans-serif;font-size:35px;font-weight:800;line-height:1;transform:rotate(-7deg);position:relative;box-shadow:0 3px 0 #49352210}.brand-mark span{font-size:18px;position:absolute;right:-7px;top:-7px;color:#fdf5d4;-webkit-text-stroke:1px #a8853d}.brand-copy{display:flex;flex-direction:column}.brand-copy b{font-family:'Baloo 2',sans-serif;font-size:28px;line-height:1;font-weight:800;letter-spacing:-1px}.brand-copy small{font-size:9px;letter-spacing:1.4px;font-weight:1000;margin-top:5px}.level-chip{display:flex;align-items:center;gap:11px;padding:10px 19px 10px 13px;background:#fffbeddf;border:1px solid #fff6db;border-radius:35px;position:absolute;left:50%;transform:translateX(-50%);box-shadow:0 5px 15px #3f67490a;backdrop-filter:blur(10px)}.level-chip>span{font-size:30px;line-height:1;color:#c9952d}.level-chip>div{display:flex;flex-direction:column;gap:3px}.level-chip small{font-size:9px;letter-spacing:1.3px;font-weight:1000;color:#737358}.level-chip b{font-size:14px;font-weight:900}.top-actions{display:flex;gap:7px}.icon-button{display:grid;place-items:center;width:39px;height:39px;border:1px solid #fff8df;border-radius:50%;background:#fffbeedb;backdrop-filter:blur(8px);font-size:21px;font-weight:900}.icon-button svg{width:19px;height:19px}.start-screen{position:absolute;inset:0;pointer-events:none}.start-card{position:absolute;top:27%;left:7%;max-width:530px;pointer-events:auto}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:1000;color:#60694b}h1{font-family:'Baloo 2',ui-rounded,sans-serif;font-size:clamp(54px,5.8vw,85px);font-weight:800;line-height:1.01;letter-spacing:-3px;margin:20px 0;color:#3d5636;text-shadow:0 2px 0 #ffffd638}h1>span{color:#455b32}p{font-size:17px;line-height:1.6;font-weight:700;margin:0;color:#52614b}.primary-button{border:1.5px solid #84642f;background:#ffd35a;border-radius:15px;box-shadow:0 5px 0 #b08839;min-height:58px;display:flex;gap:28px;align-items:center;justify-content:space-between;padding:12px 23px;font-size:18px;font-weight:1000;transition:transform .14s,box-shadow .14s,background .14s}.primary-button:hover{background:#ffdf7b;transform:translateY(-2px);box-shadow:0 7px 0 #b08839}.primary-button:active{transform:translateY(3px);box-shadow:0 2px 0 #b08839}.primary-button>span{font-size:24px}.start-card .primary-button{margin-top:27px;min-width:258px}.text-button{border:0;background:none;font-size:14px;font-weight:900;color:#4d6143;padding:12px 0;text-underline-offset:5px}.text-button:hover{text-decoration:underline}.start-card .text-button{margin-top:13px}.text-button>span{margin-left:10px}.start-footnote{font-size:12px;display:flex;align-items:center;gap:10px;margin-top:21px;font-weight:800;color:#5e6545}.start-footnote>span{color:#cc7958;letter-spacing:2px}.character-tag{position:absolute;right:9%;bottom:23%;display:flex;align-items:center;gap:11px;padding:12px 19px 12px 11px;border:1px solid #fffbed;background:#fffbeee9;border-radius:15px;box-shadow:0 6px 0 #365d3220;transform:rotate(-3deg)}.character-tag>span{display:grid;place-items:center;width:40px;height:40px;background:#ffdf7e;border-radius:12px;font-size:29px;color:#ad7e27}.character-tag>div{display:flex;flex-direction:column;gap:3px}.character-tag small{font-size:8px;letter-spacing:1px;font-weight:1000}.character-tag b{font-family:'Baloo 2',sans-serif;font-size:22px;line-height:1.2}.start-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:16px 35px;background:#fffbeded;border-top:1px solid #fff8df;pointer-events:auto}.start-bottom>span{font-size:12px;font-weight:800;color:#737759}.start-bottom .text-button{font-size:13px;padding:8px 0}.start-bottom b{margin-left:8px;border:1px solid #918f68;border-radius:50%;padding:1px 6px}.hud{position:absolute;left:34px;right:34px;top:106px;display:flex;justify-content:space-between;pointer-events:none;z-index:4}.life-pill,.score-pill{display:flex;align-items:center;gap:15px;background:#fffbeee6;backdrop-filter:blur(8px);border:1px solid #fff8df;box-shadow:0 4px 15px #323e220a;border-radius:17px;padding:11px 17px}.life-pill small{font-size:9px;font-weight:1000;letter-spacing:1.1px}.life-pill>span{color:#d98161;font-size:25px;letter-spacing:2px;line-height:1}.life-pill .lost{color:#c9c2ab}.score-pill{gap:16px}.timer{display:flex;gap:9px;align-items:center}.timer>span{font-size:26px}.timer b{font-size:20px;font-variant-numeric:tabular-nums;min-width:81px;font-weight:1000}.gold-stars{color:#d49a2c;font-size:22px;letter-spacing:2px;border-left:1px solid #b4b59a55;padding-left:14px}.coin-score{display:flex;align-items:center;gap:7px;border-left:1px solid #b4b59a55;padding-left:14px;font-size:20px;font-weight:1000}.coin-score>span{font-size:23px;color:#d59c32}.power-hud{position:absolute;top:169px;left:34px;display:flex;align-items:center;gap:11px;z-index:4;background:#ffedabed;border:1px solid #fff6d5;border-radius:16px;padding:11px 15px;min-width:256px;color:#6b542c}.power-hud>span{font-size:29px;line-height:1}.power-hud>div{display:flex;flex:1;flex-direction:column}.power-hud b{font-size:13px;font-weight:1000}.power-hud small{font-size:9px;margin:3px 0 7px;font-weight:800}.power-hud>strong{font-size:15px}.power-track{height:4px;background:#99713930;border-radius:10px;overflow:hidden}.power-track i{display:block;width:100%;height:100%;background:#be8a28;border-radius:10px}.toast{position:absolute;left:50%;top:180px;transform:translate(-50%,-12px);background:#fffbeef0;border:1px solid #fff7d3;border-radius:26px;padding:12px 21px;color:#52603f;font-weight:1000;font-size:14px;z-index:8;opacity:0;transition:.22s;pointer-events:none;box-shadow:0 5px 18px #344d2820;max-width:75%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.progress-hud{position:absolute;bottom:88px;left:50%;transform:translateX(-50%);width:320px;align-items:center;gap:13px;color:#fff8df;text-shadow:0 1px 4px #305438;display:flex;font-size:9px;letter-spacing:1px;font-weight:1000;z-index:4}.progress-line{position:relative;flex:1;height:6px;border-radius:10px;background:#35533570;border:1px solid #fff1c07a}.progress-line i{display:block;height:100%;width:0;border-radius:8px;background:#ffda68}.progress-line b{position:absolute;left:0;top:-6px;color:#ffe09a;font-size:14px}.play-footer{position:absolute;inset:auto 0 0;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 33px;background:#fffbeeee;border-top:1px solid #fff8df;z-index:5}.controls-legend{display:flex;gap:19px;font-size:11px;font-weight:800}.controls-legend>span{display:flex;align-items:center;gap:5px}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;border:1px solid #acb39a;border-bottom-width:3px;background:#fffbee;border-radius:5px;font:800 10px 'Nunito',sans-serif}.star-goals{display:flex;gap:17px;font-size:11px;font-weight:800}.star-goals span{white-space:nowrap}.star-goals b{color:#c7942f;font-size:16px;letter-spacing:1px;margin-right:6px}.star-goals em{font-style:normal}.touch-controls{position:absolute;bottom:86px;left:20px;right:20px;display:none;justify-content:space-between;z-index:8;pointer-events:none}.touch-controls>div{display:flex;align-items:center;gap:12px}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;width:64px;height:64px;border-radius:50%;border:1.5px solid #fff7d9;background:#fffbeed9;box-shadow:0 4px 0 #36533640;font-size:27px;font-weight:1000}.touch-controls .jump-touch{width:86px;height:86px;background:#ffda65;border-color:#a5843f;font-size:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.jump-touch span{font-size:8px;font-weight:800}.touch-controls .dash-touch{width:53px;height:53px;font-size:10px}.touch-controls button.pressed{transform:translateY(3px);box-shadow:0 1px 0 #36533640;background:#ffe9a1}.modal{position:fixed;padding:31px;border:2px solid #fffdf0;border-radius:26px;background:#fffbed;color:var(--ink);box-shadow:0 12px 0 #335b3a18,0 25px 100px #1c382d3b;width:min(485px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;z-index:20;text-align:center}.modal::backdrop{background:#243e3b70;backdrop-filter:blur(7px)}.modal h2{font-family:'Baloo 2',sans-serif;font-size:37px;line-height:1.1;color:#405b3b;font-weight:800;letter-spacing:-1px;margin:12px 0 15px}.modal p{font-size:14px;font-weight:700}.modal .primary-button{width:100%;justify-content:center;gap:18px;font-size:16px;margin-top:24px;min-height:54px}.modal-symbol{font-size:44px;color:#c89438;line-height:1.1;margin-bottom:16px}.secondary-button{width:100%;border:1px solid #d9d7bc;background:#f0eedb;border-radius:12px;font-size:13px;font-weight:900;padding:12px;margin-top:17px;color:#64734c}.modal>.text-button{display:block;margin:5px auto 0;padding-bottom:0}.close-button{position:absolute;right:16px;top:13px;border:0;background:none;padding:6px;font-size:23px;line-height:1;color:#7c8065}.tutorial-modal{width:min(690px,calc(100% - 28px));padding:34px 34px 30px;text-align:left}.tutorial-modal h2{font-size:36px}.modal-intro{color:#73805c!important}.lesson-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px 22px;margin:27px 0 2px}.lesson-grid>div{display:flex;gap:12px}.lesson-icon{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;background:#f8e5a4;border:1px solid #efdc9a;border-radius:13px;font-size:28px;font-weight:1000;color:#a17c32}.lesson-grid b{font-size:14px;font-weight:1000;display:block;margin:3px 0 6px;color:#4d5e3e}.lesson-grid p{font-size:12px;line-height:1.65;font-weight:700;color:#74805f}.hearts-icon{color:#cb7f60}.mobile-copy{display:none}.map-modal{width:min(840px,calc(100% - 28px));text-align:left;padding:34px}.map-heading{display:flex;align-items:center;justify-content:space-between}.map-heading>b{color:#b38935;font-size:18px;white-space:nowrap}.map-heading h2{margin-bottom:12px}.map-modal>.eyebrow{font-size:9px}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin-top:25px}.level-card{border:1px solid #d2dbc1;border-radius:17px;background:#eef2de;text-align:left;padding:14px 12px 12px;min-height:146px;position:relative;display:flex;flex-direction:column;gap:10px;transition:transform .14s,box-shadow .14s}.level-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 5px 0 #a2b58044}.level-card:disabled{opacity:.55}.level-card .level-art{font-size:31px;line-height:1.2;color:var(--tile-ink)}.level-card .level-no{position:absolute;right:11px;top:15px;font-size:10px;font-weight:1000;opacity:.6}.level-card b{font-size:12px;font-weight:1000;line-height:1.3;min-height:31px}.level-card .level-stars{font-size:14px;color:#b9953d;letter-spacing:2px}.level-card .locked{font-size:9px;font-weight:800;letter-spacing:.5px}.finish-stars{color:#d9a132;font-size:55px;letter-spacing:5px;margin:25px 0 13px;line-height:1}.finish-stars .empty{color:#d2cfb3}.finish-stats{display:flex;justify-content:space-around;gap:8px;background:#efeddb;border-radius:14px;padding:17px 7px;margin-top:22px}.finish-stats>div{display:flex;flex-direction:column;gap:7px}.finish-stats small{font-size:8px;letter-spacing:1px;font-weight:1000}.finish-stats b{font-size:20px;font-weight:1000;font-variant-numeric:tabular-nums}.finish-target{font-size:12px!important;color:#6c7b51!important;margin-top:17px!important}.loading{position:absolute;inset:0;background:#e3eed0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;padding:25px;text-align:center;z-index:100}.loading>span{font-size:65px;color:#bf943c;animation:pulse 1s infinite alternate}.loading>b{font-family:'Baloo 2',sans-serif;font-size:27px;font-weight:800}.loading p{font-size:14px}.error-retry{font-size:16px;padding:12px 23px;background:#ffdc73;border:1px solid #9d8040;border-radius:12px;color:#564924}[hidden]{display:none!important}@keyframes pulse{to{transform:rotate(20deg) scale(1.1)}}
@media(max-width:1100px){.topbar{padding:0 23px}.hud{left:23px;right:23px}.start-card{left:5%;top:27%}h1{font-size:63px}.character-tag{right:5%;bottom:22%}.play-footer{padding:10px 22px}.controls-legend{gap:10px;font-size:10px}.star-goals{gap:10px}.power-hud{left:23px}}@media(max-width:760px){.topbar{padding:0 17px;height:79px}.brand-mark{width:35px;height:35px;border-radius:11px;font-size:28px}.brand-copy b{font-size:24px}.brand-copy small{font-size:7px;letter-spacing:.8px}.icon-button{width:34px;height:34px;font-size:18px}.top-actions{gap:5px}.level-chip{display:none}.start-card{top:26%;left:6%}h1{font-size:57px;letter-spacing:-2px;margin:17px 0}.eyebrow{font-size:8px;letter-spacing:1.2px}.start-card p{font-size:15px}.start-card .primary-button{min-width:238px;font-size:16px;margin-top:24px;min-height:53px}.start-card .text-button{font-size:13px}.start-footnote{font-size:10px;margin-top:14px}.character-tag{transform:rotate(-3deg) scale(.85);right:4%;bottom:18%;transform-origin:right bottom}.start-bottom{padding:13px 19px}.start-bottom>span{font-size:10px}.hud{top:87px;left:17px;right:17px}.life-pill,.score-pill{padding:10px 12px;gap:10px;border-radius:14px}.life-pill small{font-size:8px}.life-pill>span{font-size:21px}.timer b{font-size:17px;min-width:71px}.timer>span{font-size:22px}.gold-stars{font-size:18px;letter-spacing:1px;padding-left:10px}.coin-score{font-size:17px;gap:5px;padding-left:10px}.coin-score>span{font-size:20px}.play-footer{min-height:53px;justify-content:center;padding:9px 15px}.controls-legend{display:none}.star-goals{font-size:10px;gap:19px}.star-goals b{font-size:14px}.power-hud{top:147px;left:17px;padding:9px 12px;min-width:240px}.power-hud b{font-size:12px}.power-hud small{font-size:8px}.toast{top:221px;font-size:12px;max-width:90%;width:max-content;padding:11px 17px}.progress-hud{bottom:73px;width:270px}.map-modal{padding:27px 23px}.level-grid{grid-template-columns:repeat(2,1fr);gap:12px}.level-card{min-height:116px;gap:5px}.level-card b{min-height:16px;font-size:13px}.level-card .level-art{font-size:27px}.map-heading h2{font-size:32px}.modal h2{font-size:33px}.tutorial-modal{padding:29px 24px}.tutorial-modal h2{font-size:32px}.lesson-grid{gap:19px;grid-template-columns:1fr;margin-top:22px}.lesson-grid p{font-size:13px}.lesson-grid b{font-size:14px}.modal p{font-size:14px}.modal .eyebrow{font-size:8px}.modal .primary-button{font-size:15px}.lesson-icon{width:42px;height:42px}.finish-stars{font-size:49px}.modal{max-height:calc(100dvh - 22px)}}
@media(max-width:460px){.brand-copy small{font-size:6px}.brand{gap:8px}.topbar{padding:0 13px}.top-actions{gap:4px}.icon-button{width:31px;height:31px}.hud{left:13px;right:13px;gap:8px}.life-pill{padding:10px;gap:6px}.life-pill small{display:none}.life-pill>span{font-size:21px;letter-spacing:0}.score-pill{padding:9px 10px;gap:10px}.timer{gap:5px}.timer b{font-size:16px;min-width:67px}.gold-stars{font-size:17px}.coin-score{font-size:16px}.start-card{top:26%;left:6%}h1{font-size:53px}.character-tag{right:3%;bottom:17%;transform:rotate(-3deg) scale(.75)}.start-bottom>span{font-size:8px}.start-bottom .text-button{font-size:11px}.start-footnote{font-size:9px}.touch-controls{left:13px;right:13px;bottom:89px}.touch-controls>div{gap:8px}.touch-controls button{width:54px;height:54px}.touch-controls .jump-touch{width:76px;height:76px;font-size:14px}.touch-controls .dash-touch{width:44px;height:44px;font-size:8px}.jump-touch span{font-size:7px}.power-hud{left:13px;min-width:228px}.progress-hud{width:240px;bottom:68px}.finish-stats b{font-size:18px}.finish-stats small{font-size:7px}.modal{padding:27px 21px}.modal h2{font-size:30px}.lesson-grid p{font-size:12px}.modal-intro{font-size:13px!important}}
@media(pointer:coarse){.touch-controls:not([hidden]){display:flex}.controls-legend{display:none}.play-footer{justify-content:center}.desktop-copy{display:none}.mobile-copy{display:block}}
@media(max-height:600px) and (orientation:landscape){.topbar{height:68px;padding:0 19px}.brand-mark{width:32px;height:32px;font-size:27px}.brand-copy b{font-size:23px}.brand-copy small{font-size:6px}.icon-button{width:31px;height:31px}.start-card{top:24%}h1{font-size:43px;margin:12px 0}.start-card p{font-size:12px}.start-card .primary-button{margin-top:17px;min-height:44px;font-size:14px;padding:8px 18px;min-width:215px}.start-card .text-button{padding:8px 0;margin-top:7px;font-size:12px}.start-footnote{margin-top:4px;font-size:9px}.start-bottom{padding:7px 20px}.start-bottom>span{font-size:9px}.start-bottom .text-button{font-size:11px}.character-tag{bottom:21%;transform:rotate(-3deg) scale(.76)}.hud{top:75px;left:19px;right:19px}.life-pill,.score-pill{padding:7px 12px}.power-hud{top:126px;left:19px;padding:7px 12px}.toast{top:122px;max-width:50%;font-size:11px}.play-footer{min-height:40px;padding:4px 20px}.progress-hud{bottom:53px;width:250px}.touch-controls{bottom:61px}.touch-controls button{width:52px;height:52px}.touch-controls .jump-touch{width:71px;height:71px}.touch-controls .dash-touch{width:42px;height:42px}.tutorial-modal{width:690px}.lesson-grid{grid-template-columns:1fr 1fr;gap:14px}.lesson-grid p{font-size:11px}.lesson-grid b{font-size:12px}.lesson-icon{width:34px;height:34px;font-size:23px}.modal h2{font-size:29px;margin:10px 0}.modal{padding:24px;max-height:calc(100dvh - 16px)}.modal p{font-size:12px}.modal .primary-button{min-height:45px;margin-top:19px}.finish-stars{font-size:36px;margin:17px 0 10px}.finish-stats{padding:12px;margin-top:13px}.finish-stats b{font-size:17px}.modal-symbol{display:none}.secondary-button{margin-top:12px;padding:9px}.level-grid{grid-template-columns:repeat(5,1fr)}.level-card{min-height:120px}.map-modal{width:800px}.map-heading h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.primary-button,.level-card{transition:none}.loading>span{animation:none}}

.mode-back{display:block;text-align:center}

/* A short, thumb-friendly challenge; the world waits while you answer. */
.maths-modal{width:420px;padding:26px;text-align:left;border-color:#aa8bd4;background:#fffaf1}.maths-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.maths-heading h2{font-size:30px;margin:6px 0 0}.maths-heading .eyebrow{color:#7351a0}.maths-clock{display:flex;align-items:center;gap:12px;margin-top:18px;color:#7351a0;font-variant-numeric:tabular-nums}.maths-clock b{min-width:32px}.maths-track{height:9px;flex:1;background:#e6dced;border-radius:10px;overflow:hidden}.maths-track i{display:block;height:100%;width:100%;background:#8763b5;border-radius:10px}.maths-clock.urgent{color:#ad4035}.maths-clock.urgent i{background:#c95044}.maths-modal .maths-question{font-size:42px;line-height:1.2;font-weight:900;color:#4c355e;margin:24px 0;text-align:center;font-variant-numeric:tabular-nums}.maths-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.maths-answer{min-height:64px;border:2px solid #dacbe7;border-radius:15px;background:#f1eaf7;color:#513463;font-size:27px;font-weight:900;touch-action:manipulation}.maths-answer:hover:not(:disabled){background:#e3d6f0;border-color:#8763b5}.maths-answer:focus-visible{outline:3px solid #76509e;outline-offset:3px}.maths-answer:disabled{opacity:.55}.maths-modal .maths-feedback{font-size:12px;line-height:1.5;margin:17px 0 0;min-height:36px;color:#67576d}.life-pill small{display:block}.life-pill{gap:9px}.life-pill>span{white-space:nowrap}
@media(max-width:460px){.life-pill{flex-direction:column;gap:1px;padding:7px 9px}.life-pill small{font-size:7px;letter-spacing:.5px}.life-pill>span{font-size:18px}.maths-modal{padding:22px}.maths-heading h2{font-size:28px}.maths-modal .maths-question{font-size:38px;margin:19px 0}.maths-answer{min-height:60px}.start-footnote{max-width:250px;line-height:1.5}}
@media(max-height:500px) and (orientation:landscape){.maths-modal{width:530px;padding:18px 24px}.maths-heading h2{font-size:25px}.maths-clock{margin-top:10px}.maths-modal .maths-question{font-size:32px;margin:12px 0}.maths-answers{grid-template-columns:repeat(4,1fr)}.maths-answer{min-height:52px}.maths-modal .maths-feedback{min-height:18px;margin-top:12px}}
