@font-face{font-family:Nunito;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/nunito-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Nunito;font-style:normal;font-weight:800;font-display:swap;src:url(fonts/nunito-cyrillic-800-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Nunito;font-style:normal;font-weight:900;font-display:swap;src:url(fonts/nunito-cyrillic-900-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Nunito;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/nunito-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Nunito;font-style:normal;font-weight:800;font-display:swap;src:url(fonts/nunito-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Nunito;font-style:normal;font-weight:900;font-display:swap;src:url(fonts/nunito-latin-900-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* VOICE: тёплая, игривая, «кондитерская» — праздник без агрессии.
   IDEA: коробка свежих моти на праздничном столе; поле — подарочный лоток.
   PICTURE: само поле с моти-персонажами, нарисованными кодом (форма + цвет + мордочка).
   COLOUR and TYPE: розовый крем, сливочно-белый, акцент — лимонный жёлтый; Nunito 800–900.
   LAYOUT: цели и ходы сверху, поле по центру, бустеры снизу; один экран, без скролла. */
:root{--ink:#5b1d47;--pink:#ff4f9a;--sh:#f2a3c7}
*{box-sizing:border-box;min-width:0}
html,body{height:100%;margin:0}
body{font-family:Nunito,system-ui,sans-serif;color:var(--ink);overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;
background:
 radial-gradient(circle at 12px 12px,#ff9ccb 2.5px,transparent 3.5px) 0 0/52px 52px,
 radial-gradient(circle at 38px 30px,#8fd8ff 2.5px,transparent 3.5px) 0 0/52px 52px,
 radial-gradient(circle at 24px 44px,#ffd84d 2px,transparent 3px) 0 0/52px 52px,
 linear-gradient(170deg,#ffd6ea 0%,#ffecdc 55%,#e2f3ff 100%)}
#app{height:100%;height:100dvh;max-width:600px;margin:0 auto;display:flex;flex-direction:column;gap:8px;padding:max(10px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom))}
.top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
.card{background:#fff;border-radius:20px;box-shadow:0 4px 0 var(--sh),0 10px 22px rgba(160,40,110,.14);padding:6px 12px}
.lbl{font-size:13px;font-weight:800;opacity:.65}
.goals{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.goal{display:flex;align-items:center;gap:2px;font-weight:900;font-size:19px}
.goal canvas{width:36px;height:36px}
.goal.done b{color:#2fb35a}
.mv{text-align:center;min-width:72px}
.moves{font-size:32px;font-weight:900;color:var(--pink);line-height:1.05}
.moves.low{animation:pulse .8s infinite}
.ib{width:48px;border:0;border-radius:16px;background:#fff;box-shadow:0 4px 0 var(--sh);display:grid;place-items:center;color:var(--ink);cursor:pointer;padding:0}
.ib:focus-visible,.bt:focus-visible,.btn:focus-visible,.lv:focus-visible{outline:3px solid #ffc531;outline-offset:2px}
.sub{display:flex;align-items:center;gap:10px;font-weight:800;font-size:14px;white-space:nowrap}
.sub b{font-size:17px;color:var(--pink)}
.party{flex:1;display:flex;align-items:center;gap:6px}
.pbar{flex:1;height:16px;border-radius:10px;background:#fff;border:2px solid #fff;box-shadow:0 2px 0 var(--sh);overflow:hidden}
.pbar i{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(90deg,#ff8fc0,#ffd84d,#7fdc6a,#6cc7ff,#b48cff);transition:width .3s}
.pbar.hot{animation:pulse .6s infinite}
#wrap{flex:1;min-height:0;position:relative}
#cv{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
#tip{position:absolute;left:50%;top:4px;transform:translateX(-50%);background:var(--ink);color:#fff;font-weight:800;font-size:14px;padding:7px 16px;border-radius:999px;opacity:0;transition:opacity .2s;pointer-events:none;white-space:nowrap;z-index:2}
#tip.on{opacity:1}
.tools{display:flex;justify-content:center;gap:16px;padding-bottom:4px}
.bt{position:relative;width:60px;height:60px;border-radius:50%;border:0;background:radial-gradient(circle at 35% 30%,#fff,#ffe1ee);box-shadow:0 5px 0 var(--sh),0 10px 18px rgba(160,40,110,.18);cursor:pointer;display:grid;place-items:center;padding:0;transition:transform .15s}
.bt svg{width:34px;height:34px}
.bt.on{transform:translateY(3px) scale(1.08);box-shadow:0 2px 0 var(--sh),0 0 0 4px #ffc531}
.bt .n{position:absolute;right:-4px;bottom:-4px;min-width:24px;height:24px;border-radius:12px;background:var(--pink);color:#fff;font-weight:900;font-size:14px;display:grid;place-items:center;border:2px solid #fff}
.bt.empty{opacity:.45}
#ov{position:fixed;inset:0;display:none;place-items:center;padding:16px;background:rgba(91,29,71,.4);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);z-index:5}
#ov.on{display:grid}
.pn{width:min(400px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:28px;padding:20px 18px;text-align:center;box-shadow:0 8px 0 var(--sh),0 24px 50px rgba(91,29,71,.35);animation:popin .38s cubic-bezier(.2,1.6,.4,1)}
.pn h2{font-size:32px;line-height:1.05;margin:4px 0 8px;font-weight:900;color:var(--pink);text-wrap:balance}
.pn p{font-size:16px;font-weight:700;margin:6px 0 12px}
.logo{font-weight:900;line-height:.9;margin:2px 0 0}
.logo .a{display:block;font-size:58px;color:#ff4f9a;-webkit-text-stroke:4px #fff;paint-order:stroke fill;text-shadow:0 5px 0 #c22d74,0 12px 20px rgba(194,45,116,.3)}
.logo .b{display:inline-block;font-size:66px;color:#ffc531;-webkit-text-stroke:4px #fff;paint-order:stroke fill;transform:rotate(-6deg);text-shadow:0 5px 0 #e07a12,0 12px 20px rgba(224,122,18,.3);animation:wob 2.4s ease-in-out infinite}
#logoCv{width:100%;height:92px;display:block;margin:4px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border:0;border-radius:999px;background:linear-gradient(#ff8cc0,#ff4f9a);color:#fff;font:900 19px Nunito,system-ui,sans-serif;box-shadow:0 5px 0 #c22d74;cursor:pointer;margin:5px}
.btn.alt{background:linear-gradient(#ffe58a,#ffc531);color:#6b3a00;box-shadow:0 5px 0 #d6900f}
.btn.ghost{background:#fff1f7;color:var(--ink);box-shadow:0 5px 0 #f2c3d8}
.btn:active{transform:translateY(3px)}
.lvls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 12px}
.lv{border:0;border-radius:18px;padding:10px 6px;background:#fff1f7;box-shadow:0 4px 0 #f2c3d8;font-family:inherit;color:var(--ink);cursor:pointer;display:grid;gap:1px;min-height:44px}
.lv b{font-size:26px;color:var(--pink);line-height:1}
.lv small{font-size:13px;font-weight:800}
.lv .st{color:#ffb800;font-size:16px;letter-spacing:2px}
.lv:disabled{opacity:.45;filter:grayscale(.7);cursor:default}
.how{text-align:left;background:#fff7fb;border-radius:18px;padding:8px 14px;font-size:15px;font-weight:700}
.how summary{font-weight:900;cursor:pointer;font-size:16px;padding:6px 0}
.how ul{list-style:none;margin:4px 0;padding:0}
.how li{display:flex;gap:10px;align-items:center;margin:7px 0;line-height:1.3}
.how canvas{width:40px;height:40px;flex:none}
.gl{display:flex;justify-content:center;gap:16px;margin:10px 0 14px;font-weight:900;font-size:22px}
.gl span{display:flex;align-items:center;gap:4px}
.gl canvas{width:46px;height:46px}
.stars{display:flex;justify-content:center;gap:6px;font-size:58px;line-height:1;margin:4px 0 6px}
.stars span{color:#f3d6e4;animation:starin .5s both}
.stars span.on{color:#ffc531;text-shadow:0 4px 0 #e0900f}
@keyframes popin{from{transform:scale(.6);opacity:0}}
@keyframes starin{from{transform:scale(0) rotate(-120deg)}}
@keyframes bump{50%{transform:scale(1.4)}}
@keyframes pulse{50%{transform:scale(1.1)}}
@keyframes wob{50%{transform:rotate(4deg) scale(1.05)}}
.bump{animation:bump .3s}
@media (max-width:400px){.goal canvas{width:30px;height:30px}.goal{font-size:17px}.mv{min-width:62px}}
@media (max-height:660px){.bt{width:50px;height:50px}.bt svg{width:28px;height:28px}.moves{font-size:26px}.goal canvas{width:30px;height:30px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
