*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:Fredoka,system-ui,sans-serif;color:#eef0ff;background:linear-gradient(#1f2348,#2f3566 60%,#3a3f78);overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font-family:inherit;color:inherit;cursor:pointer}.screen{position:fixed;inset:0;display:none;flex-direction:column;align-items:center}.screen.show{display:flex}#menu{justify-content:center;padding:24px}.menu-card{width:min(380px,100%);text-align:center}.title{font-size:58px;letter-spacing:-1px;line-height:1}.title span{color:#ff5d7a}.menu-balloons{display:flex;justify-content:center;gap:8px;margin:18px 0 8px;height:70px}.menu-balloons i{width:34px;height:42px;border-radius:50%;background:var(--c);box-shadow:inset -6px -8px #0000001f,inset 6px 6px #ffffff40;position:relative;animation:bob 2.4s ease-in-out infinite;animation-delay:var(--d)}.menu-balloons i:after{content:"";position:absolute;left:50%;top:100%;width:1.5px;height:26px;background:#ffffff80}@keyframes bob{50%{transform:translateY(-8px)}}.tagline{color:#c9ccf2;font-size:18px;margin:10px 0 26px}.choose{color:#9599c4;margin-bottom:10px}.langs{display:grid;gap:12px}.lang{display:grid;gap:2px;padding:16px;border:0;border-radius:20px;background:#3a3e78;box-shadow:0 5px #23265a;text-align:center}.lang b{font-size:24px}.lang span{font-size:14px;color:#b7bbe6}.lang.last{background:#ff5d7a;box-shadow:0 5px #c03553}.lang.last span{color:#ffe4ea}.lang:active{transform:translateY(3px);box-shadow:0 2px #23265a}#play{padding:env(safe-area-inset-top) 0 calc(8px + env(safe-area-inset-bottom))}.hud{width:min(520px,100%);display:flex;align-items:center;gap:10px;padding:10px 14px 0}.chip{border:0;border-radius:12px;background:#0f0c288c;padding:8px 12px;font-weight:700;font-size:15px}.chip.hint{background:#ffd34d;color:#3a2a00;box-shadow:0 3px #c9a227;font-size:17px;padding:7px 14px}.chip.hint:active{transform:translateY(2px);box-shadow:0 1px #c9a227}.chip.hint:disabled{background:#0f0c288c;color:#6a6e9e;box-shadow:none;cursor:default}.chip.hint.glow{animation:glow 1s ease-in-out infinite}@keyframes glow{50%{box-shadow:0 3px #c9a227,0 0 16px 4px #ffd34db3;transform:scale(1.06)}}.stat{margin-left:auto;text-align:right;line-height:1.05}.stat+.stat{margin-left:18px}.stat span{display:block;font-size:12px;color:#9599c4}.stat b{font-size:24px}.dots{display:flex;gap:3px;justify-content:flex-end;margin-top:3px}.dots b{width:8px;height:8px;border-radius:50%;background:#ffffff2e}.dots b.on{background:#ffd34d}.scene{position:relative;z-index:2;width:min(520px,100%);flex:1 1 auto;min-height:180px}.scene svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.scene.shake{animation:shake .3s}@keyframes shake{25%{transform:translate(-6px)}75%{transform:translate(6px)}}.stars circle{fill:#fff}.stars .spark{fill:#fff6d8}.tw{animation:twinkle 3.2s ease-in-out infinite}@keyframes twinkle{0%,to{opacity:.85}50%{opacity:.25}}.shooting{stroke:#fff;stroke-width:1.4;stroke-linecap:round;opacity:0;animation:shoot 9s linear infinite 3s}@keyframes shoot{0%{opacity:0;transform:translate(0)}2%{opacity:1}6%{opacity:0;transform:translate(120px,-40px)}to{opacity:0;transform:translate(120px,-40px)}}.moon{animation:moonbob 8s ease-in-out infinite}@keyframes moonbob{50%{transform:translateY(2px)}}.cloud{fill:rgba(190,196,255,var(--a, .12));animation:drift var(--dur, 30s) ease-in-out infinite}.cloud .rim{fill:none;stroke:#fff6d838;stroke-width:1.5;stroke-linecap:round}@keyframes drift{50%{transform:translate(var(--dx, 30px))}}.hill.far{fill:#1f2548}.far-trees{fill:#181d3d}.house .wall{fill:#3a4677}.house .wall-shade{fill:#313c69}.house .roof{fill:#6b3a52}.house .eave{fill:none;stroke:#4e2a3d;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.house .chimney{fill:#5a4a6a}.house .chimney-top{fill:#4a3c58}.house .door{fill:#2a1f3d}.house .knob,.house .win{fill:#ffd34d}.house .bars{stroke:#8a6a1a;stroke-width:1}.smoke circle{fill:#dce1ff8c;opacity:0;animation:smoke 4.8s linear infinite}@keyframes smoke{0%{transform:translate(0) scale(.5);opacity:0}8%{opacity:.85}25%{transform:translate(3px,-10px) scale(1)}50%{transform:translate(-1px,-22px) scale(1.6);opacity:.6}75%{transform:translate(9px,-34px) scale(2.2);opacity:.35}to{transform:translate(20px,-46px) scale(2.9);opacity:0}}.smoke circle{transform-box:fill-box;transform-origin:center}.blades{fill:none;stroke:#57a983;stroke-width:1.4;stroke-linecap:round}.flower path{stroke:#3f8a6e;stroke-width:1}.fly{fill:#e9ff8a;filter:drop-shadow(0 0 2px #e9ff8a);animation:fly 4s ease-in-out infinite}@keyframes fly{0%,to{transform:translate(0);opacity:.2}30%{opacity:1}50%{transform:translate(8px,-10px);opacity:.9}80%{transform:translate(-6px,-4px);opacity:.3}}#rig{--sink: 0px;transform:translateY(calc(var(--sink) - 46px));transition:transform .6s cubic-bezier(.3,1.4,.5,1)}#rig>g{animation:float 3s ease-in-out infinite}@keyframes float{50%{transform:translateY(-5px)}}#rig.fall #kid{transform-box:fill-box;transform-origin:center;animation:fall 1.2s cubic-bezier(.55,0,.9,.45) forwards .2s}#rig.fall>g{animation:none}@keyframes fall{0%{transform:translateY(0) rotate(0)}15%{transform:translateY(-14px) rotate(-12deg)}to{transform:translateY(900px) rotate(320deg)}}.string{fill:none;stroke:#ebeeffb3;stroke-width:1.1;stroke-linecap:round}.string.gone{display:none}.string.pop{animation:fade .3s forwards}.string.inflate{animation:fade .4s reverse}.tie{fill:#eef0ff}#rig.empty .tie{display:none}.balloon .burst{opacity:0;stroke-width:3;stroke-linecap:round}.balloon.gone{display:none}.balloon.pop .skin{animation:popskin .25s forwards}.balloon.pop .burst{animation:burst .38s forwards}@keyframes popskin{40%{transform:scale(1.25)}to{transform:scale(1.5);opacity:0}}@keyframes burst{0%{opacity:1;transform:scale(.6)}to{opacity:0;transform:scale(1.4)}}@keyframes fade{to{opacity:0}}.balloon.inflate .skin{animation:inflate .5s cubic-bezier(.3,1.6,.5,1)}@keyframes inflate{0%{transform:scale(.1)}}#kid .body{fill:#5a8dff}#kid .star{fill:#ffd34d}#kid .sleeve{fill:#4a7aeb}#kid .shorts{fill:#2c2f5c}#kid .scarf,#kid .scarf-tail{fill:#ff5d7a}#kid .scarf-tail{transform-origin:150px 245px;animation:flap .9s ease-in-out infinite}@keyframes flap{50%{transform:rotate(-10deg) scaleX(1.08)}}#kid .head,#kid .ear{fill:#ffd9b8}#kid .ear{stroke:#f2bf98;stroke-width:1}#kid .hair{fill:#4a3326}#kid .brow{fill:none;stroke:#4a3326;stroke-width:1.6;stroke-linecap:round}#kid .eye{fill:#1b1530}#kid .glint{fill:#fff}#kid .nose{fill:none;stroke:#d9956f;stroke-width:1.2;stroke-linecap:round}#kid .mouth{fill:none;stroke:#4a2a20;stroke-width:2;stroke-linecap:round}#kid .blush{fill:#ff789673}#kid .arm,#kid .leg{fill:none;stroke:#ffd9b8;stroke-width:5;stroke-linecap:round}#kid .sock{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round}#kid .shoe{fill:#c0394b}#kid .sole{fill:#fff}#kid .hand{fill:#ffd9b8}.toast{position:absolute;left:50%;top:30%;transform:translate(-50%) scale(.6);opacity:0;padding:8px 18px;border-radius:999px;background:#8fd16a;color:#1b2a12;font-size:22px;font-weight:700;white-space:nowrap;pointer-events:none}.toast.gold{background:#ffd34d;color:#3a2a00}.toast.big{font-size:30px;padding:10px 24px}.toast.show{animation:toast 1.2s forwards}@keyframes toast{15%{opacity:1;transform:translate(-50%,-10px) scale(1.05)}70%{opacity:1;transform:translate(-50%,-18px) scale(1)}to{opacity:0;transform:translate(-50%,-30px) scale(1)}}.clue{margin:6px 0 10px;padding:6px 14px;border-radius:999px;background:#0f0c2873;font-size:17px;font-weight:600;color:#d9dcff}.word{--n: 6;--size: min(44px, calc((100vw - 28px) / var(--n) - 6px));display:flex;gap:6px;justify-content:center;margin-bottom:14px;min-height:calc(var(--size) * 1.2)}.word.enter .slot{animation:slotin .35s backwards}.word.enter .slot:nth-child(2n){animation-delay:.04s}.word.enter .slot:nth-child(3n){animation-delay:.08s}@keyframes slotin{0%{transform:translateY(14px);opacity:0}}.slot{width:var(--size);height:calc(var(--size) * 1.2);border-radius:10px;display:grid;place-items:center;font-size:calc(var(--size) * .66);font-weight:700;background:#ffffff14;border-bottom:4px solid #6a6fb0}.slot.on{background:#eef0ff;color:#2a2d5c;border-color:#b7bbe6;animation:flip .3s}.slot.hinted{background:#fff3c4;color:#6a4a00;border-color:#ffd34d}.slot.missed{background:#ff9fb0;color:#5a1022;border-color:#ff5d7a}.word.solved .slot{background:#8fd16a;color:#1b2a12;border-color:#5e9a45;animation:hop .5s}.word.solved .slot:nth-child(2n){animation-delay:.05s}@keyframes flip{0%{transform:rotateX(90deg)}}@keyframes hop{40%{transform:translateY(-10px)}}.keyboard{width:min(520px,100%);padding:0 6px;display:grid;gap:7px}.row{display:flex;justify-content:center;gap:5px}.key{flex:1 1 0;max-width:46px;height:52px;border:0;border-radius:10px;background:#4a4f8f;box-shadow:0 3px #2e3168;font-size:20px;font-weight:700}.key:active{transform:translateY(2px);box-shadow:0 1px #2e3168}.key.hit{background:#8fd16a;color:#1b2a12;box-shadow:0 3px #5e9a45}.key.miss{background:#2a2d55;color:#6a6e9e;box-shadow:none}.key:disabled{cursor:default}.key.nudge{animation:shake .25s}.overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:#0e0c2699;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.overlay.show{display:flex;animation:fadein .2s}@keyframes fadein{0%{opacity:0}}.panel{width:min(360px,100%);padding:24px 22px;border-radius:24px;background:#2c2f5c;text-align:center;box-shadow:0 6px #1d1f45,0 20px 50px #0006;animation:pop .25s cubic-bezier(.2,1.4,.4,1)}@keyframes pop{0%{transform:scale(.85)}}.panel h2{font-size:28px}.was{color:#9599c4;margin-top:10px}.reveal{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:6px 0 14px}.reveal span{min-width:28px;padding:4px;border-radius:8px;background:#eef0ff;color:#2a2d5c;font-size:22px;font-weight:700}.reveal span.missed{background:#ff9fb0;color:#5a1022}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats div{display:grid;padding:10px 4px;border-radius:14px;background:#ffffff0f}.stats b{font-size:24px}.stats span{font-size:13px;color:#b7bbe6}.newbest{color:#ffd34d;min-height:1.4em;margin:10px 0 4px;font-weight:600}.btn{display:block;width:100%;margin-top:10px;padding:14px;border:0;border-radius:16px;background:#ff5d7a;color:#fff;font-size:20px;font-weight:700;box-shadow:0 4px #c03553}.btn.ghost{background:transparent;color:#b7bbe6;box-shadow:inset 0 0 0 2px #4b4f8a}.btn:active{transform:translateY(3px)}@media(min-height:760px){.key{height:58px}}
