@font-face{font-family:Fredoka;src:url('./assets/fredoka.woff2') format('woff2');font-weight:400 700;font-display:swap}
@font-face{font-family:Nunito;src:url('./assets/nunito.woff2') format('woff2');font-weight:400 900;font-display:swap}
:root{--cream:#f8f7ef;--ink:#293d33;--green:#427a5b;--mint:#dcebd8;--peach:#ffb59c;--yellow:#f8ce66;--purple:#b6a1d8;--blue:#a9d8df;--muted:#728076;--ui-scale:1;font-size:calc(16px * var(--ui-scale));color-scheme:light}
*{box-sizing:border-box}html{height:100%;background:var(--cream);scrollbar-width:thin}body{margin:0;min-width:280px;min-height:100%;font:600 1rem/1.5 Nunito,ui-rounded,'Arial Rounded MT Bold',sans-serif;color:var(--ink);-webkit-tap-highlight-color:transparent;overscroll-behavior:none;touch-action:manipulation}button,input{font:inherit}button{color:inherit;cursor:pointer;touch-action:manipulation}button,input{-webkit-tap-highlight-color:transparent}button{border:0}button:focus-visible,input:focus-visible{outline:3px solid #3f837b;outline-offset:5px}button:disabled{cursor:default}button svg,svg.icon{width:1.4rem;height:1.4rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button{user-select:none;-webkit-user-select:none}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app{position:relative;min-height:100vh;min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden;isolation:isolate}.topbar{height:6rem;max-width:78rem;margin:auto;padding:0 3rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{display:flex;align-items:center;gap:.65rem;padding:0;background:transparent;text-align:left;font:500 1.35rem/.94 Fredoka,ui-rounded,sans-serif;letter-spacing:-.045em}.brand>span+span{position:relative}.brand-second{display:block}.brand i{font:700 .7rem Nunito;position:absolute;right:-.7rem;top:0}.brand-mark{display:grid;place-items:center;background:var(--green);color:var(--cream);width:2.6rem;height:2.6rem;border-radius:.85rem;transform:rotate(-6deg)}.brand-mark svg{width:1.6rem;height:1.6rem;stroke-width:1.6}.top-actions{display:flex;align-items:center;gap:.55rem}.icon-button{display:grid;place-items:center;min-width:2.75rem;min-height:2.75rem;background:transparent;border:1px solid #dce1d5;border-radius:50%;transition:background .2s,transform .2s}.icon-button:hover{background:#e8eddf}.icon-button svg{width:1.2rem;height:1.2rem}.screen{animation:screen-enter .48s cubic-bezier(.2,.8,.2,1) both}.welcome{max-width:74rem;min-height:34.5rem;margin:auto;display:grid;grid-template-columns:1fr 1.14fr;align-items:center;padding:.8rem 3rem 1.5rem;gap:1rem}.welcome-copy{position:relative;z-index:2;padding-left:1.1rem}.eyebrow{font-size:.64rem;font-weight:900;letter-spacing:.15em;display:flex;align-items:center;gap:.55rem}.tiny-spark{font-size:1.65rem;line-height:1;color:var(--green)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Fredoka,ui-rounded,'Arial Rounded MT Bold',sans-serif;font-weight:500}.welcome h1{font-size:4.4rem;line-height:1.08;letter-spacing:-.042em;margin:1.35rem 0 1.3rem}.aha{position:relative;color:var(--green);white-space:nowrap}.aha svg{position:absolute;left:0;bottom:-.6rem;width:100%;height:.8rem;stroke:#e6ae4e;fill:none;stroke-width:4;stroke-linecap:round}.welcome-copy>p{color:#778177;font-size:1.14rem;line-height:1.65}.primary{display:inline-flex;justify-content:center;align-items:center;gap:1.1rem;background:var(--green);color:white;border-radius:1.05rem;padding:.9rem 1.6rem;min-height:3.5rem;box-shadow:0 4px 0 #315e44;transition:background .18s,transform .18s,box-shadow .18s;font-weight:800;font-size:1rem}.primary:hover:not(:disabled){background:#356e4f;transform:translateY(-2px);box-shadow:0 6px 0 #315e44}.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #315e44}.primary:disabled{background:#dfe5d8;color:#8c998a;box-shadow:0 3px 0 #cfd8c9}.start-button{margin-top:1.9rem;min-width:12.2rem}.start-button svg{margin-left:1.2rem}.text-button{background:transparent;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;font-size:.85rem;font-weight:800;min-height:2.75rem;padding:.45rem .7rem;border-radius:.7rem}.text-button:hover{background:#e8eddf}.how-button{margin:.9rem 0 0 .5rem;display:flex;width:11rem;color:#6e7c70}.question-icon{display:grid;place-items:center;width:1.15rem;height:1.15rem;border:1.5px solid currentColor;border-radius:50%;font-size:.7rem}.welcome-note{display:flex;align-items:center;gap:.5rem;margin-top:1.5rem;font-size:.7rem;color:#8c958a}.note-dot{width:.32rem;height:.32rem;background:#8caa7d;border-radius:50%}.welcome-art{position:relative;height:33rem;min-width:0}.art-blob{position:absolute;inset:2rem -.5rem 2.2rem -1rem;background:#e6eddb;border-radius:46% 54% 37% 63%/46% 43% 57% 54%;transform:rotate(-8deg)}.art-blob:after{content:'';position:absolute;inset:1.4rem;border:1px dashed #d0dac2;border-radius:inherit}.art-kicker{position:absolute;top:3.2rem;left:21%;font-size:.57rem;font-weight:900;letter-spacing:.2em;transform:rotate(-8deg);color:#84977b}.hero-scale{position:absolute;left:-11%;width:120%;top:9rem;transform:rotate(-3deg)}.hero-scale svg{width:100%;overflow:visible}.sun{position:absolute;top:4.8rem;right:10%;width:5.7rem;height:5.7rem;border-radius:50%;background:#f8cd6c;box-shadow:0 0 0 .7rem #f8cd6c33;animation:bob 6s ease-in-out infinite}.sun:after{content:'';position:absolute;width:.8rem;height:.4rem;background:#eda95a;border-radius:50%;top:3rem;left:1rem;box-shadow:2.8rem 0 #eda95a}.sun-face{display:flex;justify-content:center;gap:.8rem;position:relative;top:2.1rem}.sun-face i{width:.22rem;height:.42rem;background:#614c2e;border-radius:50%}.sun-face b{position:absolute;top:.45rem;width:.6rem;height:.4rem;border:2px solid #614c2e;border-top:0;border-radius:0 0 10px 10px}.floating-number{position:absolute;display:flex;justify-content:center;align-items:center;width:5.3rem;height:6rem;border-radius:1.2rem;font:500 3.7rem/1 Fredoka;box-shadow:inset 0 2px 0 #ffffff70,0 8px 0 var(--block-edge),0 13px 20px #49513712}.n-three{background:#b9a6de;color:#5d438e;--block-edge:#a28bc9;left:8%;top:6.5rem;transform:rotate(-13deg);animation:float-three 6s ease-in-out infinite}.n-five{background:#ffb898;color:#a65237;--block-edge:#e99c7c;right:3%;bottom:7.6rem;transform:rotate(12deg);animation:float-five 7s ease-in-out infinite}.little-face{position:absolute;font:700 .65rem/1 Nunito;letter-spacing:.5rem;bottom:.7rem;left:50%;transform:translateX(-40%)}.little-face b{position:absolute;font-size:.9rem;top:.1rem;left:.27rem;letter-spacing:0}.floating-spark{position:absolute;font-size:2.2rem;color:#c9a45a}.spark-one{right:-.3rem;top:13rem;transform:rotate(12deg)}.spark-two{left:0;bottom:7rem;font-size:1.6rem;color:#9ab598}.hello-sticker{position:absolute;right:6%;bottom:2.5rem;transform:rotate(-9deg);font-size:.72rem;font-weight:600;line-height:1.4;color:#667d5e}.hello-sticker strong{font-weight:900}.hello-sticker svg{position:absolute;width:3rem;left:-3.4rem;top:-1rem;stroke:#829575;stroke-width:1.5;fill:none;stroke-linecap:round}.art-caption{position:absolute;bottom:.4rem;left:6%;font-size:.7rem;color:#86917f;transform:rotate(-3deg)}.art-caption span{color:#cca958;margin-right:.5rem}.home-footer{max-width:74rem;margin:1rem auto 0;padding:1.4rem 3.9rem 2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;color:#92998c}.home-footer>span{font-size:.54rem;font-weight:900;letter-spacing:.14em}.home-footer>div{display:flex;align-items:center;gap:.23rem;font-size:.65rem}.home-footer>div span{margin-left:.6rem}.home-footer i{height:.55rem;width:.55rem;border-radius:50%;background:#ccbdde}.home-footer i:nth-child(2){background:#e9ba7c}.home-footer i:nth-child(3){background:#9fbca0}

/* The same design units scale together on desktop. Native coordinates remain intact. */
.hud{display:flex;align-items:center;gap:1.5rem}.progress{display:flex;gap:.45rem;align-items:center}.progress-step{display:grid;place-items:center;width:1.65rem;height:1.65rem;border:1.5px solid #dce2d4;border-radius:50%;color:#a3ad9c;font:700 .65rem Nunito;transition:background .3s}.progress-step.active{background:#e5eddd;border:2px solid var(--green);color:var(--green)}.progress-step.done{background:var(--green);border-color:var(--green);color:white}.score{display:flex;align-items:center;gap:.3rem;font-size:.8rem}.score svg{width:1.15rem;height:1.15rem;fill:#f2ca63;stroke:#d9ac42;stroke-width:1.5}.score>span{color:#a1aa9a;font-size:.65rem}.game{width:min(58rem,100%);margin:0 auto;padding:0 1.8rem}.game-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;gap:1rem}.back-button{font-size:.74rem;color:#7d8979;padding-left:0}.back-button svg{width:1rem;height:1rem}.game-topline>span{font-size:.6rem;letter-spacing:.13em;color:#7b8875;font-weight:900}.game-topline .take-time{letter-spacing:0;font-weight:600;font-size:.68rem}.puzzle-card{position:relative;border:1px solid #e2e5d9;border-bottom:4px solid #e2e5d9;background:#fffef9;border-radius:1.8rem;padding:1.6rem 2.3rem 1.3rem;overflow:hidden}.question-heading{text-align:center}.tag{display:inline-block;padding:.25rem .8rem;border-radius:3rem;background:#e9efdf;color:#6f8765;font-size:.6rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900}.question-heading h1{font-size:2rem;letter-spacing:-.025em;margin:.6rem 0 .35rem;line-height:1.15}.question-heading p{font-size:.82rem;color:#89927f;font-weight:600}.play-stage{position:relative;height:17rem;max-width:43rem;margin:.3rem auto 0;touch-action:pan-y pinch-zoom}.play-stage>svg{display:block;width:100%;height:100%;overflow:visible}.play-stage text,.hero-scale text{font-family:Fredoka,ui-rounded,sans-serif;font-weight:500;user-select:none}.play-stage .drop-zone{transition:stroke .15s,fill .15s}.drop-hover .drop-zone{stroke:#427a5b;fill:#dcebd8}.answer-area{position:relative;text-align:center}.equation{display:flex;justify-content:center;align-items:center;gap:.9rem;font:500 1.6rem Fredoka;margin:-.3rem 0 .7rem}.equals{color:#929d8b;font-size:1.4rem}.answer-drop{width:3.5rem;height:3.5rem;border:2px dashed #b8c8aa;border-radius:.9rem;background:#f1f5e9;display:flex;align-items:center;justify-content:center;transition:background .2s,border .2s}.answer-drop.filled{border-style:solid;border-color:var(--green);background:#e3efdb}.answer-drop.over{background:#d6e9c9;transform:scale(1.08)}.answer-drop input{min-width:0;width:100%;height:100%;border:0;text-align:center;background:transparent;color:var(--green);font:500 1.8rem Fredoka;border-radius:.8rem;outline-offset:2px;user-select:text;-webkit-user-select:text}.answer-drop input::placeholder{color:#8caa79;opacity:1}.number-tray{display:flex;justify-content:center;gap:.85rem;min-height:4.65rem;align-items:flex-start}.number-tile{position:relative;display:grid;place-items:center;width:4.15rem;height:4.05rem;border-radius:.9rem;font:500 2rem Fredoka;background:var(--tile-bg);color:var(--tile-ink);box-shadow:0 5px 0 var(--tile-edge),inset 0 2px 0 #ffffff77;border:2px solid transparent;touch-action:none;cursor:grab;transition:transform .2s,opacity .2s,box-shadow .2s}.number-tile:nth-child(1){--tile-bg:#d8c8ec;--tile-ink:#6b508e;--tile-edge:#bfacd7;transform:rotate(-3deg)}.number-tile:nth-child(2){--tile-bg:#f8d783;--tile-ink:#927231;--tile-edge:#e1bb5d;transform:rotate(2deg)}.number-tile:nth-child(3){--tile-bg:#bce1e5;--tile-ink:#47818a;--tile-edge:#99c6cd;transform:rotate(-2deg)}.number-tile:nth-child(4){--tile-bg:#fac2a9;--tile-ink:#a56449;--tile-edge:#dfa58c;transform:rotate(3deg)}.number-tile:hover{transform:translateY(-4px) rotate(0)}.number-tile.selected{border-color:var(--tile-ink);transform:translateY(-5px) rotate(0);box-shadow:0 7px 0 var(--tile-edge),inset 0 2px 0 #ffffff77}.number-tile.dragging{opacity:.3}.number-tile:disabled{cursor:default}.drag-ghost{position:fixed;left:0;top:0;z-index:100;pointer-events:none;margin:0;opacity:.95;transform-origin:center;transition:none!important;box-shadow:0 8px 0 var(--tile-edge),0 15px 25px #253d3325}.answer-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:.7rem;gap:1rem;padding-top:.9rem;border-top:1px solid #eceee3}.answer-help{display:flex;align-items:center;justify-content:center;gap:.45rem;color:#8e9888;font-size:.66rem}.answer-help svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.5}.check-button{font-size:.8rem;min-height:2.9rem;border-radius:.8rem;padding:.6rem 1.1rem;gap:.6rem}.check-button svg{width:1.15rem;height:1.15rem}.garden-footer{display:flex;justify-content:center;align-items:center;gap:.9rem;font-size:.65rem;color:#8e9985;padding:.85rem}.mini-flower{color:#b7c7a6;font-size:1.1rem}.feedback{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);padding:1rem 1.7rem;background:#f1f8e9;color:#427a5b;border:2px solid #bfd4af;border-radius:1rem;box-shadow:0 6px 0 #dfebd6;font:500 1.6rem Fredoka;white-space:nowrap;z-index:4;animation:feedback-in .32s cubic-bezier(.15,.9,.2,1.4) both;pointer-events:none}.feedback.retry{font-size:1.25rem;background:#fff7db;color:#9d7c3d;border-color:#ecd598;box-shadow:0 6px 0 #f0e6c7}.scene-enter{animation:scene-enter .4s ease both}.puzzle-card.correct .answer-drop{background:#cfe8be}.puzzle-card.retry .answer-drop{animation:nudge .4s ease}

.modal-layer{position:fixed;inset:0;z-index:80;background:#253c3266;display:flex;align-items:center;justify-content:center;padding:max(1rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));overscroll-behavior:contain}.modal{position:relative;background:#fffef8;border:1px solid #e4e8d9;box-shadow:0 10px 0 #253c3215;border-radius:1.5rem;padding:2.3rem;width:min(27rem,100%);max-height:90vh;max-height:90dvh;overflow:auto;animation:screen-enter .2s ease}.modal-close{position:absolute;right:1rem;top:1rem;min-width:2.5rem;min-height:2.5rem}.modal h2{font-size:2rem;line-height:1.1;margin-bottom:.7rem}.modal-intro{color:#85907b;font-size:.8rem;margin-bottom:1.5rem}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1rem 0;border-top:1px solid #e9ecdf;font-size:.9rem}.settings-row small{display:block;color:#89947f;font-size:.68rem;font-weight:600}.toggle{border-radius:2rem;background:#dce3d5;width:3.25rem;min-height:1.9rem;padding:.2rem;display:flex;align-items:center;transition:background .2s}.toggle:before{content:'';width:1.5rem;height:1.5rem;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle[aria-checked=true]{background:var(--green)}.toggle[aria-checked=true]:before{transform:translateX(1.3rem)}.volume-control{width:100%;accent-color:var(--green);height:2rem;cursor:pointer}.settings-footer{display:flex;justify-content:center;margin-top:1rem}.how-steps{margin:1.5rem 0;display:grid;gap:1.3rem}.how-step{display:flex;gap:1rem;align-items:flex-start}.how-step>span{flex-shrink:0;width:2.1rem;height:2.1rem;display:grid;place-items:center;border-radius:.7rem;background:#eadff4;color:#7e659c;font:500 1.1rem Fredoka}.how-step:nth-child(2)>span{background:#fbe5ad;color:#9f8247}.how-step:nth-child(3)>span{background:#cce7df;color:#5d8d7c}.how-step strong{font-size:.9rem}.how-step p{font-size:.75rem;color:#89937f;margin-top:.15rem}.keyboard-hint{text-align:center;color:#8d9885;font-size:.65rem;margin-top:1rem}.modal .primary{width:100%;margin-top:.8rem}

.scare{--attack-scale:1.86;position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:#020202;overflow:hidden;isolation:isolate}
.scare img{display:none;position:absolute;inset:0;margin:auto;width:100%;height:100%;object-fit:contain;max-width:none;transform-origin:50% 53%;filter:contrast(1.45) saturate(.32) brightness(.94)}
.scare[data-phase=jump] img{display:block;transform:scale(calc(var(--attack-scale) + .06));animation:monster-attack 3.2s linear both;will-change:transform}
.scare-vignette{position:absolute;inset:0;z-index:3;pointer-events:none;background:radial-gradient(ellipse,transparent 27%,#16000065 65%,#000d);opacity:0}
.scare[data-phase=jump] .scare-vignette{opacity:1;animation:impact-shadow .18s ease-out both}
.scare[data-phase=after]{background:#020202}
@media(orientation:portrait){.scare{--attack-scale:1.3}}
.scare-exit{position:absolute;z-index:5;right:max(1rem,env(safe-area-inset-right));top:max(1rem,env(safe-area-inset-top));padding:.6rem .7rem;border:1px solid #ffffff30;border-radius:.6rem;background:#241b1bd9;color:#d3c1c1;display:flex;align-items:center;gap:.4rem;font-size:.7rem;min-height:44px}.scare-exit svg{width:.85rem;height:.85rem}.ending{min-height:calc(100dvh - 7rem);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 1rem 4rem}.app[data-screen=ending]{background:#19241e;color:#e4eadd}.app[data-screen=ending] .topbar .brand{color:#d5e0cc}.app[data-screen=ending] .icon-button{color:#bdcbb3;border-color:#53624d}.end-symbol{font:500 4rem Fredoka;position:relative;color:#aabc9c;margin-bottom:1rem}.end-symbol span{font:700 1rem Nunito;position:absolute;right:-.7rem;top:.8rem;transform:rotate(15deg)}.ending .eyebrow{color:#7c8c73;font-size:.62rem;letter-spacing:.2em}.ending h1{font-size:clamp(2.8rem,6vw,5.5rem);line-height:1.2;margin:.9rem 0}.ending>p:not(.eyebrow){color:#90a082;font-size:.9rem}.end-actions{display:flex;flex-direction:column;gap:.6rem;margin-top:2.2rem}.end-actions .text-button{color:#99aa8d}.end-actions .text-button:hover{background:#27362a}.end-footnote{font-size:.62rem;letter-spacing:.06em;color:#627358;margin-top:3rem}.particles{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:70}.noscript{position:fixed;bottom:1rem;left:1rem;right:1rem;background:#fff1ce;padding:1rem;border-radius:.8rem;text-align:center}.paused *{animation-play-state:paused!important}

@keyframes screen-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes scene-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes feedback-in{from{opacity:0;transform:translate(-50%,-50%) scale(.75)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes bob{50%{transform:translateY(-8px) rotate(5deg)}}@keyframes float-three{50%{transform:translateY(-10px) rotate(-8deg)}}@keyframes float-five{50%{transform:translateY(-8px) rotate(8deg)}}@keyframes nudge{25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}/* Two abrupt lunges, then a slow encroachment; only transforms animate. */
@keyframes monster-attack{
  0%{transform:scale(.8) translateY(5%)}
  2%{transform:scale(calc(var(--attack-scale) + .2)) rotate(-3deg)}
  5%{transform:scale(calc(var(--attack-scale) - .08)) translate(1.8%,-1%) rotate(1.4deg)}
  8%{transform:scale(calc(var(--attack-scale) + .08)) translate(-1.2%,.6%) rotate(-.9deg)}
  14%{transform:scale(var(--attack-scale)) translate(.4%,-.3%)}
  34%{transform:scale(calc(var(--attack-scale) + .04)) rotate(.4deg)}
  45%{transform:scale(calc(var(--attack-scale) - .08)) translateY(1%)}
  48%{transform:scale(calc(var(--attack-scale) + .27)) translate(-1%,-.5%) rotate(2deg)}
  51%{transform:scale(calc(var(--attack-scale) + .05)) translate(1%,.3%) rotate(-1.2deg)}
  55%{transform:scale(calc(var(--attack-scale) + .13)) translate(-.5%,-.3%) rotate(.7deg)}
  63%{transform:scale(var(--attack-scale))}
  100%{transform:scale(calc(var(--attack-scale) + .06))}
}
@keyframes impact-shadow{from{background-color:#45070760}to{background-color:transparent}}


@media(min-width:1600px){.welcome{min-height:35rem}.welcome-art{height:34rem}}
@media(max-width:1000px){.topbar{padding:0 2rem}.welcome{padding:1rem 2rem;gap:0}.welcome h1{font-size:3.8rem}.welcome-copy{padding-left:0}.welcome-art{height:31rem}.hero-scale{top:9.5rem;left:-9%;width:117%}.home-footer{padding:1.4rem 2rem}}
@media(max-width:720px){.topbar{height:5rem;padding:0 1.25rem}.brand{font-size:1.15rem}.brand-mark{width:2.3rem;height:2.3rem}.top-actions{gap:.35rem}.icon-button{min-width:2.65rem;min-height:2.65rem}.welcome{display:flex;flex-direction:column;padding:.5rem 1.5rem 1.5rem;min-height:0;gap:0}.welcome-copy{width:100%;text-align:center;padding:0}.eyebrow{justify-content:center;font-size:.57rem}.welcome h1{font-size:3.4rem;margin:1rem 0 1.2rem}.welcome-copy>p{font-size:.95rem;line-height:1.5}.welcome-copy>p br{display:none}.start-button{margin-top:1.5rem;min-width:14rem;min-height:3.5rem}.how-button{display:inline-flex;margin:.8rem 0 0;min-width:11rem}.welcome-note{justify-content:center;margin-top:.7rem;font-size:.64rem}.welcome-art{width:min(100%,27rem);height:21rem;margin-top:.4rem}.art-blob{inset:.6rem 0 1rem}.art-kicker{top:1.25rem;left:22%;font-size:.5rem}.hero-scale{top:5.5rem;left:-4%;width:107%}.sun{width:3.8rem;height:3.8rem;right:11%;top:2.3rem}.sun-face{top:1.3rem;gap:.65rem}.sun:after{top:1.9rem;left:.45rem;box-shadow:2.2rem 0 #eda95a;width:.65rem}.floating-number{width:3.6rem;height:4.2rem;font-size:2.7rem;border-radius:.8rem}.n-three{left:12%;top:3rem}.n-five{right:6%;bottom:5rem}.little-face{bottom:.4rem;font-size:.5rem}.little-face b{font-size:.7rem}.hello-sticker{right:12%;bottom:1rem;font-size:.6rem}.spark-one{top:8rem;right:0;font-size:1.5rem}.spark-two{bottom:4rem;font-size:1.3rem}.art-caption{font-size:.58rem;left:4%;bottom:0}.home-footer{padding:1rem 1.5rem;justify-content:center;margin:0}.home-footer>span{display:none}.home-footer>div{font-size:.6rem}.hud{gap:.7rem}.progress{gap:.3rem}.progress-step{width:1.1rem;height:1.1rem;font-size:.5rem;border-width:1px}.progress-step.active{border-width:1.5px}.score{font-size:.75rem}.score>span{display:none}.game{padding:0 1rem}.game-topline{margin-bottom:.4rem;gap:.4rem}.game-topline .take-time{display:none}.game-topline>span{font-size:.55rem}.puzzle-card{padding:1.1rem .8rem 1rem;border-radius:1.25rem}.question-heading h1{font-size:1.65rem;margin:.55rem 0 .45rem}.question-heading p{font-size:.76rem;max-width:21rem;margin:auto;padding:0 .3rem;line-height:1.45}.tag{font-size:.52rem}.play-stage{height:15rem;margin:.3rem -.4rem 0}.equation{font-size:1.5rem;gap:.7rem;margin:0 0 1rem}.answer-drop{width:3.4rem;height:3.4rem}.number-tray{gap:.75rem;min-height:4.3rem}.number-tile{width:3.6rem;height:3.7rem;font-size:1.9rem}.answer-bottom{flex-direction:column;gap:.8rem;margin-top:.75rem;padding-top:1rem}.answer-help{font-size:.63rem}.check-button{width:100%;min-height:3.2rem;font-size:.9rem}.garden-footer{font-size:.6rem;padding:1rem .2rem}.feedback{font-size:1.4rem}.app[data-screen=game] .brand>span+span{display:none}.app[data-screen=game] .fullscreen-button{display:none}.app[data-screen=game] .topbar{padding:0 1rem;gap:.5rem}.app[data-screen=game] .brand-mark{width:2.2rem;height:2.2rem}.scare[data-phase=jump] img{object-fit:cover}.modal{padding:2.2rem 1.5rem}.modal h2{font-size:1.8rem}}
@media(max-width:380px){.topbar{padding:0 1rem}.welcome{padding:.5rem 1rem}.welcome h1{font-size:3.1rem}.welcome .eyebrow{font-size:.5rem}.welcome-art{height:19rem}.floating-number{width:3.2rem;height:3.7rem;font-size:2.3rem}.n-five{bottom:4rem}.hello-sticker{right:8%;bottom:.8rem}.hero-scale{top:5rem}.progress{gap:.2rem}.progress-step{width:1rem;height:1rem}.score{gap:.15rem}.hud{gap:.4rem}.score svg{width:.9rem}.number-tray{gap:.6rem}.number-tile{width:3.35rem;height:3.5rem}.game{padding:0 .7rem}.play-stage{height:12.5rem}.question-heading h1{font-size:1.5rem}.game-topline{margin-bottom:.1rem}.garden-footer{font-size:.55rem}.question-heading p{font-size:.7rem}}
@media(min-width:721px) and (max-height:850px){.topbar{height:5rem}.welcome{min-height:31rem}.welcome-art{height:30rem}.home-footer{margin-top:0}.game-topline{margin-bottom:.2rem}.puzzle-card{padding-top:1.2rem}.play-stage{height:14.5rem}.question-heading h1{font-size:1.8rem}.garden-footer{padding:.6rem}}
/* Short landscape: the answer controls become a rail next to the scene. */
@media(orientation:landscape) and (max-height:650px){.topbar{height:3.8rem;padding:0 1.25rem}.brand{font-size:1rem}.brand-mark{height:2rem;width:2rem}.brand-mark svg{width:1.25rem}.top-actions{gap:.4rem}.icon-button{min-width:2.5rem;min-height:2.5rem}.welcome{display:grid;grid-template-columns:1fr 1fr;min-height:0;padding:.2rem 2rem .8rem;gap:1rem}.welcome-copy{text-align:left}.welcome .eyebrow{justify-content:flex-start;font-size:.48rem}.tiny-spark{font-size:1.2rem}.welcome h1{font-size:2.8rem;margin:.5rem 0 .75rem}.welcome-copy>p{font-size:.85rem;line-height:1.4}.welcome-copy>p br{display:none}.start-button{margin-top:1rem;min-height:2.8rem;padding:.6rem 1rem;min-width:10rem;font-size:.9rem}.how-button{display:inline-flex;margin:0 .2rem;width:auto;min-width:0;font-size:.72rem}.welcome-note{justify-content:flex-start;margin-top:.75rem;font-size:.56rem}.welcome-art{height:18rem;width:100%;margin:0}.art-blob{inset:.5rem 0}.hero-scale{top:5rem;left:-5%;width:110%}.art-kicker{top:1.2rem;font-size:.45rem}.sun{width:3.5rem;height:3.5rem;right:9%;top:2rem}.sun-face{top:1.2rem}.sun:after{top:1.9rem;left:.3rem;box-shadow:2.1rem 0 #eda95a;width:.7rem}.floating-number{width:3.4rem;height:3.7rem;font-size:2.4rem;border-radius:.7rem}.n-three{top:2.8rem;left:9%}.n-five{bottom:3.5rem}.spark-one{top:8rem}.spark-two{bottom:4rem}.hello-sticker{bottom:.7rem;font-size:.6rem}.art-caption{display:none}.home-footer{display:none}.game{width:100%;max-width:65rem;padding:0 1rem .7rem}.game-topline{display:none}.puzzle-card{display:grid;grid-template-columns:minmax(0,1fr) 14rem;grid-template-rows:auto 1fr;padding:1rem;gap:0 1.4rem;min-height:calc(100dvh - 4.5rem);border-radius:1.2rem}.question-heading{grid-column:1;grid-row:1}.question-heading h1{font-size:1.4rem;margin:.35rem 0}.question-heading p{font-size:.65rem;line-height:1.4}.tag{font-size:.48rem;padding:.15rem .6rem}.play-stage{grid-column:1;grid-row:2;height:clamp(9rem,39vh,14rem);width:100%;margin:0;align-self:center}.answer-area{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;justify-content:center;border-left:1px solid #e9edde;padding-left:1.3rem}.equation{font-size:1.2rem;gap:.55rem;margin:0 0 .75rem}.answer-drop{width:2.8rem;height:2.8rem}.answer-drop input{font-size:1.5rem}.number-tray{display:grid;grid-template-columns:repeat(2,3.2rem);gap:.7rem .8rem;min-height:0;margin-bottom:.5rem}.number-tile{width:3.2rem;height:3rem;font-size:1.7rem;border-radius:.65rem}.answer-bottom{display:flex;flex-direction:column;gap:.65rem;border:0;margin:0;padding-top:.5rem}.answer-help{font-size:.53rem;line-height:1.4}.answer-help svg{display:none}.check-button{width:100%;min-height:2.7rem;font-size:.72rem;padding:.6rem}.garden-footer{display:none}.feedback{left:34%;top:58%;font-size:1.3rem}.app[data-screen=game] .brand>span+span{display:block}.app[data-screen=game] .fullscreen-button{display:grid}.progress-step{width:1.3rem;height:1.3rem;font-size:.55rem}.hud{gap:.9rem}.ending{min-height:calc(100dvh - 3.8rem);padding:0 1rem 1.5rem}.end-symbol{font-size:2.4rem;margin:0}.ending h1{font-size:2.8rem;margin:.3rem 0}.end-actions{margin-top:1rem;flex-direction:row;align-items:center}.end-footnote{margin-top:1rem}}
@media(orientation:landscape) and (max-height:370px){.topbar{height:3.1rem}.welcome h1{font-size:2.3rem}.welcome-art{height:15rem}.welcome-note,.hello-sticker{display:none}.welcome-copy>p{font-size:.78rem}.welcome h1{margin:.4rem 0 .5rem}.start-button{margin-top:.6rem}.hero-scale{top:3.8rem}.n-three{top:2rem}.sun{top:1.5rem}.art-kicker{display:none}.puzzle-card{min-height:calc(100dvh - 3.6rem);padding:.6rem;grid-template-columns:minmax(0,1fr) 13rem;gap:0 .7rem}.answer-area{padding-left:.7rem}.question-heading h1{font-size:1.2rem;margin:.25rem 0}.question-heading .tag{display:none}.play-stage{height:9rem}.answer-help{display:none}.equation{margin-bottom:.5rem}.answer-drop{height:2.5rem;width:2.5rem}.number-tray{grid-template-columns:repeat(4,2.5rem);gap:.45rem}.number-tile{width:2.5rem;min-width:40px;height:2.75rem;font-size:1.4rem}.answer-bottom{padding-top:.4rem}.progress-step{width:1.1rem;height:1.1rem}.question-heading p{font-size:.6rem}.app[data-screen=game] .brand>span+span{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.scare[data-phase=jump] img{transform:scale(1.05)}}
html[data-reduced-motion=true] *,html[data-reduced-motion=true] *:before,html[data-reduced-motion=true] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-reduced-motion=true] .scare[data-phase=jump] img{transform:scale(1.05)}

/* Short screens preserve usable buttons while the illustration gives up space. */
#question-title:focus{outline:none}
.question-heading p{color:#75836c}
@media(min-width:721px) and (min-height:651px) and (max-height:850px){
  .app[data-screen=game] .topbar{height:4rem}
  .game-topline{display:none}
  .puzzle-card{padding-top:1rem;padding-bottom:1rem}
  .question-heading h1{font-size:1.7rem}
  .play-stage{height:clamp(9rem,26vh,14rem)}
}
@media(min-width:721px) and (min-height:651px) and (max-height:720px){
  .garden-footer{display:none}
  .puzzle-card{padding-top:.75rem;padding-bottom:.75rem}
  .question-heading h1{font-size:1.5rem}
}
@media(orientation:portrait) and (max-height:740px){
  .app[data-screen=game] .topbar{height:3.6rem}
  .game-topline{display:none}
  .puzzle-card{padding:.8rem .75rem}
  .question-heading h1{font-size:1.4rem;margin:.4rem 0}
  .question-heading p{font-size:.7rem}
  .play-stage{height:clamp(7rem,22vh,10rem);margin:.25rem auto}
  .equation{font-size:1.3rem;gap:.6rem;margin:0 0 .7rem}
  .answer-drop{width:2.8rem;height:2.8rem}
  .answer-drop input{font-size:1.6rem}
  .number-tile{width:3.2rem;height:3.2rem;font-size:1.65rem}
  .number-tray{min-height:3.6rem;gap:.8rem}
  .answer-bottom{margin-top:.5rem;padding-top:.6rem;gap:.5rem}
  .answer-help{display:none}
  .check-button{min-height:2.8rem;font-size:.85rem}
  .garden-footer{padding:.5rem;font-size:.55rem}
}
@media(orientation:portrait) and (max-height:620px){
  .question-heading .tag{display:none}
  .puzzle-card{padding:.6rem}
  .garden-footer{display:none}
  .play-stage{height:7rem}
}
@media(max-width:380px){.hud .score{display:none}}
@media(max-width:340px){
  .app[data-screen=game] .topbar{padding:0 .5rem;gap:.25rem}
  .app[data-screen=game] .brand-mark{width:2rem;height:2rem}
}
@media(orientation:landscape){.scare[data-phase=jump] img{object-fit:contain}}
