@font-face{font-family:Mitr;src:url('./fonts/mitr-thai-400-normal.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:Mitr;src:url('./fonts/mitr-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+2191,U+2193,U+2212}
@font-face{font-family:Mitr;src:url('./fonts/mitr-thai-500-normal.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:Mitr;src:url('./fonts/mitr-latin-500-normal.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+2191,U+2193,U+2212}
@font-face{font-family:GardenNumbers;src:url('./fonts/nunito-latin-700-normal.woff2') format('woff2');font-weight:700;font-display:swap}
:root{font-family:Mitr,'Leelawadee UI',Tahoma,sans-serif;color:#355447;background:#f8f9ef;font-synthesis:none;--green:#387c54;--orange:#e9833f;--blue:#4899d9;--yellow:#f6cc56;--ink:#355447}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{height:100vh;height:100dvh;display:flex;flex-direction:column;background:#f8f9ef}h1,h2,p{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{border:0;cursor:pointer;color:inherit;touch-action:manipulation}a{color:inherit;text-decoration:none}button,a{transition:transform .16s,background-color .16s}button:active:not(:disabled){transform:translateY(3px)}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #164dae;outline-offset:4px}[hidden]{display:none!important}.svg-library{width:0;height:0;position:absolute;overflow:hidden}.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.carrot-icon{width:34px;height:34px;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.skip-link{position:fixed;top:10px;left:20px;z-index:20;padding:12px;background:#fff}.skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.icon-button{width:48px;height:48px;border-radius:17px;display:grid;place-items:center;background:#e5f0ff;color:#2b5e92;border:2px solid #729ac6;box-shadow:0 3px 0 #b6cce2;flex-shrink:0}.icon-button:hover{background:#d3e7ff}
.header{height:70px;min-height:70px;display:flex;align-items:center;justify-content:space-between;padding:10px max(24px,env(safe-area-inset-right)) 10px max(24px,env(safe-area-inset-left));gap:16px}.brand{display:flex;align-items:center;gap:11px}.brand-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:16px;background:#e2efd5;transform:rotate(-7deg)}.brand-icon svg{width:34px;height:34px}.brand small{display:block;font:500 8px Mitr,sans-serif;letter-spacing:2.7px;color:#78917c;margin-bottom:1px}.brand h1{font-size:17px;font-weight:500}.header-actions{display:flex;align-items:center;gap:10px}.bakery-link{display:flex;align-items:center;gap:6px;font-size:12px;padding:8px 12px;min-height:44px;border-radius:14px;color:#7d705b;background:#f1eedf}.bakery-link:hover{background:#e8e4d0}.bakery-link .icon{width:19px;height:19px}.star-total{display:flex;align-items:center;gap:7px;min-height:44px;padding:0 13px;border-radius:16px;background:#fff0c3;border:1px solid #e7d39d;color:#855c1e}.star-total .icon{fill:#e5b337;stroke:#b78422;width:22px;height:22px}.star-total output{font:700 17px GardenNumbers,sans-serif}
main{flex:1;min-height:0;padding:0 max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.garden-world{height:100%;position:relative;overflow:hidden;border-radius:29px;border:1px solid #dae7ce;background:radial-gradient(ellipse at 50% 32%,#f2fae9 0,#e8f1db 52%,#cbdcba 100%);isolation:isolate}#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.loading{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:14px;font-size:14px;color:#6a8a6a}.loading svg{width:90px;height:90px}.hud{position:absolute;inset:0;pointer-events:none}.hud button{pointer-events:auto}.top-left{position:absolute;left:22px;top:20px;width:215px}.mode-picker{display:flex;gap:6px;padding:6px;border:1px solid #ccdbc2;background:#fffff5ee;border-radius:22px;box-shadow:0 3px 0 #91a77c26}.mode{flex:1;min-height:62px;border-radius:17px;background:#edf3e6;color:#547653;border:1px solid #b5c6a7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.mode small{font-size:12px}.mode.active{background:#3b8058;border:1px solid #25623e;color:#fff;box-shadow:inset 0 2px #ffffff35,0 3px #235537}.mode-dots{display:flex;align-items:end;justify-content:center;height:20px;gap:3px}.mode-dots i{height:10px;width:10px;border-radius:50%;background:currentColor}.mode-dots i:nth-child(2){height:15px;width:15px}.mode-dots i:nth-child(3){height:19px;width:19px}.less-dots i{width:15px;height:15px}.round-progress{display:flex;align-items:center;gap:14px;padding:11px 9px}.round-progress #progress{display:flex;gap:8px;flex:1}.progress-star{width:22px;height:22px;color:#8aab7d66;fill:currentColor;stroke:none}.progress-star.earned{color:#d7a72a;animation:star-pop .4s ease-out}#round{font:700 12px GardenNumbers,sans-serif;white-space:nowrap;color:#5c7954}
.question-wrap{position:absolute;right:22px;top:20px;display:flex;flex-direction:column;align-items:flex-end;gap:10px}.question{display:flex;align-items:center;gap:14px;background:#fffdf4f5;border:1px solid #ccd9bc;border-bottom:4px solid #c9d7bc;border-radius:24px;padding:12px 13px 12px 22px;box-shadow:0 5px 12px #53734409}.question h2{font-size:21px;line-height:1.4;font-weight:400;outline:none}.listen{width:49px;height:49px;border-radius:50%;background:#377ec6;color:#fff;border-color:#2761a0;box-shadow:0 3px 0 #285989}.listen:hover{background:#286ab3}.touch-tip{display:flex;align-items:center;justify-content:center;gap:6px;background:#fcfff0c9;border:1px solid #d5e3c8;border-radius:16px;padding:6px 12px;font-size:11px;color:#627b57}.touch-tip .icon{width:18px;height:20px}.touch-tip .carrot-icon{height:24px;width:24px}.hint-button{position:absolute;right:23px;top:151px;background:#ffefbb;border-color:#d3b567;color:#856921;box-shadow:0 3px #d6bf82}.hint-button:hover{background:#ffe59a}
.count-button{position:absolute;bottom:34px;min-width:120px;height:57px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:19px;border:2px solid;box-shadow:0 4px #00000014}.count-left{left:25px;background:#fff0dd;border-color:#d58b52;color:#965426}.count-right{right:25px;background:#e4f1ff;border-color:#5c9ac8;color:#32678f}.count-button:hover{filter:brightness(1.03)}.count-button .icon{width:22px;height:24px}.count-button output{font:700 27px GardenNumbers,sans-serif;min-width:27px}.count-button .carrot-icon{width:27px;height:31px}.count-button.counting{animation:star-pop .25s ease-out}
.answer-area{position:absolute;bottom:21px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;max-width:calc(100% - 340px)}#feedback{background:#fffff0f2;border:1px solid #cadabd;border-radius:18px;font-size:15px;line-height:1.4;color:#4c6c43;max-width:100%;text-align:center;box-shadow:0 3px 10px #5069440b}#feedback:not(:empty){padding:7px 19px}#feedback:empty{display:none}.comparison{font:700 24px/1 GardenNumbers,sans-serif;background:#fffdf1;border:1px solid #cbd5b6;padding:9px 17px;border-radius:16px;color:#416642}.comparison .left-number{color:#ac5b27}.comparison .right-number{color:#2d75aa}.answers{display:flex;align-items:center;gap:12px;padding:10px 12px 13px;background:#fffff4e8;border:2px solid #bfcfa8;border-bottom:5px solid #abbf8e;border-radius:26px;box-shadow:0 6px 20px #4e6c3520}.answer{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:110px;height:99px;border-radius:19px;border:2px solid var(--edge);border-bottom:6px solid var(--edge);background:var(--face);color:var(--ink);box-shadow:inset 0 3px #ffffff60;font-size:13px;line-height:1.3}.answer-left{--face:#ffb16c;--edge:#b46a2b;--ink:#723c15}.answer-equal{--face:#f8d85f;--edge:#aa8725;--ink:#665019;min-width:100px}.answer-right{--face:#8ccaf5;--edge:#3c7dab;--ink:#234f76}.answer-art{display:flex;align-items:center;gap:0;height:51px}.answer-art .icon{width:23px;height:23px;stroke-width:3}.arrow-left{transform:rotate(180deg)}.garden-icon{height:46px;width:53px}.answer-left .garden-icon{color:#df782f}.answer-right .garden-icon{color:#428ec6}.answer strong{font:700 57px/.9 GardenNumbers,sans-serif;height:49px}.answer:hover:not(:disabled){filter:brightness(1.04);transform:translateY(-2px)}.answer:active:not(:disabled){transform:translateY(3px);border-bottom-width:3px}.answer.correct:disabled{opacity:1;outline:3px solid #3e8554;outline-offset:3px}.answer-check{display:none;position:absolute;right:-9px;top:-10px;font:700 22px/28px GardenNumbers,sans-serif;font-style:normal;width:31px;height:31px;border-radius:50%;background:#fff;color:#2d774b;border:2px solid #2d774b}.answer.correct .answer-check{display:block}.answer.wrong{animation:wiggle .35s ease-out;border-style:dashed}.answer.wrong:after{content:'↻';position:absolute;right:-8px;top:-9px;width:29px;height:29px;border-radius:50%;background:#fff;color:#86591c;border:2px solid #86591c;font-size:22px;line-height:25px}
dialog{color:var(--ink);background:#fffdf4;border:1px solid #d3dfc6;border-radius:30px;padding:32px 34px 24px;width:min(430px,calc(100% - 30px));text-align:center;box-shadow:0 20px 100px #31503035;max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#24473248;backdrop-filter:blur(5px)}dialog h2{font-size:26px;font-weight:500;margin:5px 0 16px}.eyebrow{font-size:12px;color:#859273}.welcome-bunny{width:108px;height:108px;position:relative;margin:0 auto 11px;border-radius:36px;background:#eaf1d9}.welcome-bunny>svg:first-child{width:86px;height:92px;margin-top:7px}.welcome-carrot{position:absolute;bottom:-5px;right:-12px;width:58px;height:58px;transform:rotate(-18deg)}.welcome-preview{display:flex;align-items:center;justify-content:center;gap:13px;margin:18px 0 28px}.welcome-preview>span{display:flex;gap:0;background:#fff0dc;border:2px solid #dfa372;border-radius:17px;padding:7px}.welcome-preview>span:last-child{background:#e3f2ff;border-color:#86b7df}.welcome-preview svg{height:38px;width:33px}.welcome-preview b{font:700 31px GardenNumbers,sans-serif;color:#8ca27a}.primary{min-height:58px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px;font-size:18px;border-radius:18px;background:#3e865b;color:#fff;border:1px solid #286540;border-bottom:5px solid #286540;box-shadow:inset 0 2px #ffffff35}.primary:hover{background:#34794f}.secondary{width:100%;min-height:52px;margin-top:12px;border:1px solid #c4d6b5;border-bottom:3px solid #b4c99f;border-radius:17px;background:#edf3e4;font-size:14px}.small-link{display:inline-flex;min-height:44px;align-items:center;justify-content:center;font-size:12px;color:#7c8b6f;background:transparent;margin-top:10px}.close{position:absolute;right:13px;top:13px;border:0;box-shadow:none;background:#edf2e4;color:#68835b;font:400 26px/1 sans-serif;width:40px;height:40px}.dialog-carrot svg{width:66px;height:66px}.dialog-carrot{margin:0 auto 10px}dialog ol{margin:12px 0 22px;padding:0;list-style:none;text-align:left}dialog li{display:flex;align-items:center;gap:13px;margin:14px 0;font-size:14px;line-height:1.65}dialog li .icon{width:32px;height:32px;color:#4d8d5e;flex-shrink:0}.equal-symbol{font:700 36px GardenNumbers,sans-serif;min-width:32px;text-align:center;color:#b38a26}.motion-setting{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-top:1px dashed #d8e1cd;font-size:13px}.motion-setting input{width:24px;height:24px;accent-color:#3c8056}.voice-note{font-size:11px;line-height:1.8;color:#839277;margin:4px 0 20px}.medal{width:100px;height:100px;border-radius:50%;border:6px solid #efcd67;background:#fff2b9;position:relative;margin:0 auto 19px;box-shadow:0 5px #cbaa44}.medal svg{width:73px;height:73px;margin:7px}.medal span{position:absolute;right:-8px;bottom:-9px;font-size:35px;color:#c39a2e;text-shadow:0 2px #fff}.complete-stars{font-size:32px;color:#e0ae32;letter-spacing:5px;margin:4px 0 24px}.scene-error{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:20px;background:#e5eed7}.fallback-beds{display:flex;gap:20px;justify-content:center}.fallback-bed{width:40%;padding:20px;border:3px solid #d98643;border-radius:20px;background:#fff1dd}.fallback-bed:last-child{background:#e1f1ff;border-color:#6ba9dc}.fallback-bed svg{height:36px;width:36px}
@keyframes star-pop{50%{transform:scale(1.2)}}@keyframes wiggle{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
@media(max-width:900px){.header{padding-left:18px;padding-right:18px}.bakery-link span{display:none}.bakery-link{padding:9px}.answer-area{max-width:calc(100% - 210px)}.answer{min-width:92px;height:94px}.answer-equal{min-width:82px}.answers{gap:9px;padding:9px 10px 12px}.count-button{min-width:82px;height:54px;gap:1px;bottom:32px}.count-button>.icon{display:none}.count-left{left:16px}.count-right{right:16px}.top-left{width:190px;left:18px;top:18px}.question-wrap{right:18px;top:18px}.question{gap:10px;padding:10px 10px 10px 17px}.question h2{font-size:19px}.hint-button{right:20px;top:146px}}
@media(max-width:600px){.header{height:62px;min-height:62px;padding:8px 13px;gap:8px}.brand{gap:8px}.brand-icon{width:34px;height:38px;border-radius:13px}.brand-icon svg{height:30px;width:30px}.brand h1{font-size:13px}.brand small{font-size:6px;letter-spacing:2px}.header-actions{gap:6px}.header-actions .icon-button{width:39px;height:42px;border-radius:14px}.star-total{min-height:40px;padding:0 8px;gap:4px}.star-total .icon{width:18px}.star-total output{font-size:14px}.bakery-link{display:none}#help{display:none}main{padding:0 6px max(6px,env(safe-area-inset-bottom))}.garden-world{border-radius:22px}.top-left{left:10px;top:12px;width:150px}.mode-picker{gap:4px;border-radius:17px;padding:4px}.mode{min-height:56px;border-radius:13px}.mode small{font-size:10px}.mode-dots{height:17px}.mode-dots i:nth-child(3){width:16px;height:16px}.mode-dots i:nth-child(2){width:13px;height:13px}.round-progress{padding:9px 4px;gap:7px}.round-progress #progress{gap:4px}.progress-star{width:17px;height:17px}#round{font-size:10px}.question-wrap{right:10px;top:12px;max-width:calc(100% - 174px);gap:8px}.question{padding:9px 7px 10px 11px;border-radius:18px;gap:6px}.question h2{font-size:15px;max-width:111px}.listen{height:42px;width:42px}.listen .icon{height:22px;width:22px}.touch-tip{padding:4px 8px;gap:3px;font-size:9px}.touch-tip .icon{width:15px;height:17px}.touch-tip .carrot-icon{width:21px;height:21px}.hint-button{width:40px;height:40px;border-radius:14px;top:138px;right:12px}.answer-area{bottom:16px;max-width:calc(100% - 20px);gap:6px}.answers{gap:8px;padding:8px 9px 11px;border-radius:21px}.answer{min-width:91px;height:89px;font-size:12px;border-radius:16px}.answer-equal{min-width:79px}.answer-art{height:44px}.garden-icon{width:45px;height:40px}.answer-art .icon{width:20px}.answer strong{font-size:50px;height:43px}#feedback{font-size:12px}#feedback:not(:empty){padding:6px 12px}.comparison{font-size:20px;padding:7px 13px}.count-button{bottom:143px;min-width:76px;height:47px;border-radius:16px}.count-button .carrot-icon{width:24px;height:27px}.count-button output{font-size:24px}.count-left{left:12px}.count-right{right:12px}dialog{padding:27px 24px 20px}dialog h2{font-size:23px}}
@media(max-height:650px) and (min-width:601px){.header{height:58px;min-height:58px}.top-left,.question-wrap{top:12px}.mode{min-height:51px}.question{padding:8px 10px 8px 16px}.question h2{font-size:18px}.listen{height:43px;width:43px}.touch-tip{display:none}.hint-button{top:88px}.answer{height:78px;min-width:97px;font-size:11px}.answer-art{height:40px}.garden-icon{height:37px}.answer strong{font-size:47px;height:40px}.answers{padding:7px 10px 10px}.answer-area{bottom:12px}.count-button{bottom:25px}}
.reduce-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(forced-colors:active){button,.answers,.question{border:2px solid ButtonText!important;box-shadow:none!important}.mode.active,.answer.correct{outline:3px solid Highlight}.answer.wrong{border-style:dashed}}
