@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@500;700;800;900&display=swap');
*{box-sizing:border-box} :root{font-family:Nunito,Arial,sans-serif;color:#303763;background:#fff4d7;--ink:#303763;--purple:#7258d9;--green:#2bb78a}body{margin:0;min-height:100dvh;background:radial-gradient(circle at 9% 10%,#fff 0 3px,transparent 4px),radial-gradient(circle at 85% 70%,#ffe5a5 0 5px,transparent 6px),#fff4d7;background-size:43px 43px,67px 67px}button{font:inherit;font-weight:900;color:inherit;cursor:pointer;touch-action:manipulation;border:0;min-height:52px;transition:transform .15s; -webkit-tap-highlight-color:transparent}button:active{transform:scale(.96)}button:focus-visible{outline:4px solid #563ac9;outline-offset:3px}button:disabled{cursor:default}.shell{max-width:540px;margin:auto;padding:14px 16px 20px;min-height:100dvh;display:flex;flex-direction:column}header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.brand span{font-size:11px;font-weight:900;letter-spacing:2px;color:#8d6a43}.brand strong{display:block;font-family:'Baloo 2',Arial,sans-serif;font-size:35px;line-height:1;color:#7258d9;letter-spacing:-1.2px}.brand i{font-style:normal;color:#ed8245}.tools{display:flex;gap:8px}.tools button,.speaker{width:52px;border:3px solid white;border-radius:18px;background:#fff9e9;box-shadow:0 4px 0 #e7c98e;font-size:23px}.hero{background:#fde39f;border:4px solid white;border-radius:30px;padding:20px;text-align:center;box-shadow:0 6px 0 #e6bd6b;position:relative;overflow:hidden}.hero h1,h2,h3{font-family:'Baloo 2',Arial,sans-serif;line-height:1.12;margin:0}.hero h1{font-size:30px}.hero p{margin:8px 0;font-weight:800}.mascot{font-size:65px;display:block;filter:drop-shadow(0 5px 0 #fff);animation:bob 3s infinite}.levels{display:grid;gap:12px;margin-top:20px}.level{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 14px;border:4px solid #fff;border-radius:23px;background:var(--bg);box-shadow:0 5px 0 var(--shadow);min-height:83px}.level .badge{display:grid;place-items:center;width:53px;height:53px;border-radius:17px;background:white;font-size:29px;flex:none}.level b{font-family:'Baloo 2',Arial,sans-serif;font-size:23px;line-height:1.1;display:block}.level small{font-size:12px;display:block}.level .status{margin-left:auto;font-size:23px}.stage{background:#fffdf7;border:4px solid white;border-radius:28px;box-shadow:0 6px 0 #e6cf9f;padding:16px}.progress{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:900;margin-bottom:12px}.dots{display:flex;gap:4px}.dots span{width:13px;height:13px;border-radius:50%;background:#e7e4f3}.dots .done{background:#2bb78a}.dots .now{background:#f7b950;outline:2px solid #f7b950;outline-offset:2px}.question{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px}.question h2{font-size:23px;flex:1}.speaker{flex:none;background:#eee9ff;box-shadow:0 4px 0 #c8b9f9}.visual{background:#fff2d7;border-radius:22px;min-height:175px;padding:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;overflow:hidden}.objects{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;max-width:100%}.object{width:43px;height:43px;display:grid;place-items:center;font-size:32px;background:#fff;border:2px solid #fff;border-radius:12px;box-shadow:0 3px 0 #e8d6ad;transition:transform .25s,background .25s,opacity .25s;position:relative}.object.mark,.stone.mark{background:#ffce52;transform:scale(1.13);z-index:1;outline:3px solid #ef9f29}.object.removed{opacity:.35;transform:scale(.82)}.object.removed:after{content:'×';position:absolute;color:#e34c68;font-size:44px;font-weight:900;line-height:1}.object.extra{background:#dbf5e7}.groups{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}.group{background:#fff9ee;padding:8px;border-radius:16px;max-width:100%;text-align:center;font-weight:900}.group label{display:block;font-size:13px;margin-bottom:5px}.group.merge{animation:merge .65s both}.group.merge:last-child{animation-name:mergeRight}.ten{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;background:#d3c4a7;padding:5px;border-radius:11px;width:min(100%,260px)}.ten .object,.ten .empty{width:100%;aspect-ratio:1;height:auto;min-width:0;font-size:25px;box-shadow:none;border-radius:6px}.empty{background:#fff9ed;border:1px dashed #d5b997}.equation{font-size:21px;font-weight:900;letter-spacing:2px}.line{display:flex;gap:5px;width:100%;justify-content:center;align-items:center}.stone{width:23%;min-width:0;text-align:center;background:#cce8ff;border:3px solid #fff;border-radius:16px;padding:8px 2px;font:800 28px 'Baloo 2',Arial;box-shadow:0 4px 0 #91bee4;transition:transform .2s}.stone.missing{background:#ffd77e;border:3px dashed #f2a33a}.stone-pics{display:flex;flex-wrap:wrap;justify-content:center;gap:1px;font-size:10px;line-height:1.2;min-height:24px}.answers{display:flex;gap:10px;margin:16px 0 10px}.answer{flex:1;min-width:0;min-height:78px;font:800 38px 'Baloo 2',Arial;border:4px solid white;border-radius:20px;background:#bce4ff;box-shadow:0 5px 0 #82bde7}.answer:nth-child(2){background:#ffdb8b;box-shadow:0 5px 0 #e7b75a}.answer:nth-child(3){background:#d9c8ff;box-shadow:0 5px 0 #b49ae8}.answer.correct{background:#b8f1d8;box-shadow:0 5px 0 #70cca6}.answer.shake{animation:shake .4s}.hint{width:100%;background:#e6f4e4;border:3px solid white;border-radius:17px;box-shadow:0 4px 0 #b7d6b5;font-size:17px}.feedback{min-height:27px;text-align:center;font-weight:900;color:#267e65;margin-top:12px}.primary{background:#7258d9;color:white;border:4px solid white;box-shadow:0 5px 0 #4e39a9;border-radius:19px;width:100%;font-size:21px;margin-top:12px;padding:12px}.center{text-align:center;padding:25px 16px}.center .big{font-size:84px;display:block;margin:12px 0}.center p{font-size:18px;font-weight:800;line-height:1.5}.center h2{font-size:32px}.secondary{background:#ffda89;border:3px solid white;border-radius:18px;width:100%;margin-top:13px;font-size:19px;box-shadow:0 4px 0 #e8b659}.confetti{position:fixed;top:-20px;pointer-events:none;font-size:24px;z-index:99;animation:fall 1.5s ease-in forwards}footer{text-align:center;font-size:12px;color:#8d6a43;font-weight:800;margin-top:auto;padding-top:25px}@keyframes fall{to{transform:translateY(110vh) rotate(540deg);opacity:0}}@keyframes shake{25%,75%{transform:translateX(-6px)}50%{transform:translateX(6px)}}@keyframes bob{50%{transform:translateY(-5px)}}@keyframes merge{from{transform:translateX(-35px)}to{transform:translateX(0)}}@keyframes mergeRight{from{transform:translateX(35px)}to{transform:translateX(0)}}@media(max-width:370px){.shell{padding:10px}.stage{padding:11px}.object{width:36px;height:36px;font-size:27px}.question h2{font-size:20px}.dots span{width:10px;height:10px}.brand strong{font-size:30px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
