:root{font-family:ui-rounded,'Trebuchet MS',sans-serif;color:#244b3d;background:#f4f7ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:4px solid #e7a638;outline-offset:4px}button:disabled{cursor:default}main{max-width:1000px;margin:auto;padding:30px 40px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:36px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-size:25px;font-weight:800;letter-spacing:-1px}.brand small{display:block;font-size:10px;letter-spacing:2px;margin-top:4px;font-weight:600}.brand-icon{font-size:43px;color:#e49f40}.quiet{background:transparent;border-radius:16px;padding:12px 16px;font-size:18px}.quiet span{font-size:15px;margin-left:7px}.quiet:hover{background:#e7eddf}.play{max-width:780px;margin:auto;background:#fffefa;border:1px solid #e0e7d9;border-radius:32px;padding:24px 40px 10px;box-shadow:0 12px 0 #e6ecdf}.topline{display:flex;align-items:center;justify-content:space-between}.modes{display:flex;background:#eef2e8;border-radius:16px;padding:5px;gap:4px}.modes button{min-width:60px;height:44px;border-radius:12px;background:transparent;font-size:24px}.modes .selected{background:#245c48;color:white;box-shadow:0 3px 5px #173c2920}.round{color:#7d8e80;font-size:16px;font-variant-numeric:tabular-nums}.stars{display:flex;gap:9px;justify-content:center;margin-top:26px;color:#dfe7d9;font-size:24px}.stars .done{color:#e9aa42}.stars .miss{color:#9bbba9}.equation{display:flex;justify-content:center;align-items:center;gap:22px;font-size:clamp(48px,8vw,88px);font-weight:800;margin:32px 0 5px;font-variant-numeric:tabular-nums;letter-spacing:-3px}.operator{font-weight:400;color:#93a28f}.answer{display:flex;align-items:center;justify-content:center;width:110px;height:120px;border-radius:24px;background:#edf3e6;color:#54804b;border:2px dashed #cfddc5}.answer.good{background:#d5edd2;border:2px solid #80b57a}.feedback{text-align:center;min-height:30px;color:#8c6843;font-size:18px;margin-bottom:20px}.answers{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.answers button{height:76px;background:#f3f0e7;border:1px solid #e5e0d3;border-radius:18px;font-size:32px;font-weight:700;box-shadow:0 4px 0 #e1ddcf;transition:transform .15s,background .15s}.answers button:active{transform:translateY(4px);box-shadow:none}.answers button.wrong{background:#f8ded1;animation:shake .25s}.answers button.right{background:#cce8c7}.helper-tabs{display:flex;justify-content:center;gap:24px;margin:24px 0 8px}.helper-tabs .active{background:#e7eddf}footer{display:flex;align-items:center;justify-content:center;gap:26px;border-top:1px solid #eceee5;margin-top:12px;color:#78917a;font-size:16px}footer .quiet{margin-left:auto}footer span:first-child{margin-left:auto}footer b{font-weight:500}#helper{padding:15px 0 20px;border-top:1px solid #e5e9dc}.helper-note{text-align:center;font-size:16px;color:#6f846e;margin:0 0 16px}.piles{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pile{min-height:140px;border:2px dashed #c5d7bd;border-radius:20px;padding:15px;display:flex;align-content:center;justify-content:center;flex-wrap:wrap;gap:10px;position:relative}.dot{width:34px;height:34px;border-radius:50%;background:#eab358;box-shadow:inset 0 -4px 0 #cd8e32;touch-action:none;padding:0}.dot.blue{background:#82b9b0;box-shadow:inset 0 -4px 0 #599b91}.dot.dragging{position:fixed;z-index:30;pointer-events:none;transform:scale(1.15)}.pile.over{background:#e6f0df}.numberline{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;padding:18px 0}.numberline button{height:52px;border-radius:14px;background:#edf2e6;font-size:20px}.numberline .visited{background:#d8e5c7}.numberline .current{background:#245c48;color:white;transform:translateY(-10px);box-shadow:0 7px 0 #b8c99d}.step-controls{display:flex;justify-content:center;align-items:center;gap:20px}.step-controls button{background:#e6eddc;font-size:28px;border-radius:14px;width:70px;height:52px}.step-controls span{font-size:22px}dialog{border:1px solid #dce5d6;border-radius:28px;padding:32px;color:#244b3d;background:#fffefa;width:min(90vw,560px);max-height:90vh}dialog::backdrop{background:#203d3266;backdrop-filter:blur(5px)}h2{font-size:30px;margin:12px 0 24px}h3{font-size:18px}.close{float:right}.statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.statgrid div{padding:18px 8px;background:#edf2e6;border-radius:16px;text-align:center}.statgrid b{font-size:28px;display:block}.statgrid small{font-size:14px}.history-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e5eadf;font-size:18px}.note{font-size:14px;color:#78917a;line-height:1.5}.big-star{text-align:center;font-size:90px;color:#e5aa42}#break{text-align:center}.primary{background:#245c48;color:white;border-radius:18px;padding:18px 48px;font-size:32px}.celebration{position:fixed;inset:0;pointer-events:none;overflow:hidden}.confetti{position:absolute;left:50%;top:45%;font-size:30px;animation:burst 1s ease-out forwards}@keyframes burst{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@media(max-width:600px){main{padding:18px 14px}header{margin-bottom:22px}.brand{font-size:21px}.brand small{font-size:8px}.play{padding:18px 18px 6px;border-radius:26px}.equation{gap:12px;letter-spacing:-2px;margin-top:28px}.answer{width:80px;height:90px}.answers{gap:10px}.answers button{height:66px;font-size:27px}.helper-tabs{gap:2px}.quiet{padding:12px}.piles{gap:10px}.dot{width:30px;height:30px}.numberline button{font-size:17px;height:46px}.statgrid b{font-size:24px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.confetti{display:none}}@media(max-height:700px) and (min-width:700px){header{margin-bottom:16px}main{padding-top:16px}.stars{margin-top:14px}.equation{margin-top:16px}.answers button{height:60px}.helper-tabs{margin-top:16px}}

.numberline{padding-top:36px}.numberline button{position:relative}.numberline .start{outline:3px solid #e39b2f;outline-offset:2px}.numberline .start::before{content:'Старт';position:absolute;top:-27px;left:50%;transform:translateX(-50%);font-size:14px;font-weight:700;color:#925b0d;white-space:nowrap}.numberline .start:not(.current){background:#fff0cd;color:#714907}
