:root{--ink:#3b2a20;--wood:#c98a4a;--wood-d:#a86a30;--wall:#fff1cf;--font:ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;font-family:var(--font);color:var(--ink);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;overscroll-behavior:none;background:#ffb347;margin:0;position:fixed;inset:0;overflow:hidden}button{color:inherit;cursor:pointer;touch-action:manipulation;font-family:inherit}#stage{--shop:calc(100% - 410px);transform-origin:0 0;background:var(--wall);border-radius:0;width:1180px;height:820px;position:fixed;top:0;left:0;overflow:hidden}.scr{position:absolute;inset:0}.hidden{display:none!important}.big-btn{border:6px solid var(--ink);box-shadow:0 10px 0 var(--ink);background:#4ecdc4;border-radius:36px;align-items:center;gap:24px;padding:24px 48px;font-size:44px;font-weight:900;display:inline-flex}.big-btn:active{box-shadow:0 2px 0 var(--ink);transform:translateY(8px)}.big-btn.alt{background:#ffd93b}.link-btn{background:0 0;border:0;padding:16px;font-size:26px;text-decoration:underline}#scr-start{background:linear-gradient(#8fd3ff,#c8ecff 60%,#7cc47c 60%);flex-direction:column;justify-content:center;align-items:center;gap:40px;display:flex}.start-shop{width:420px;height:300px}.start-shop svg{width:100%;height:100%}#btn-open{background:#ffd93b;padding:28px 64px;font-size:52px}#btn-open .door{width:64px;height:80px;display:inline-block}.wall{background:repeating-linear-gradient(90deg,#fff1cf 0 60px,#ffe8b8 60px 120px);position:absolute;inset:0}.awning{border-bottom:6px solid var(--ink);background:repeating-linear-gradient(90deg,#ff6b6b 0 70px,#fff 70px 140px);border-radius:0 0 30px 30px;height:44px;position:absolute;top:0;left:0;right:0}.shelf{left:calc(var(--shop) / 2 - 155px);border-bottom:16px solid var(--wood-d);justify-content:space-around;align-items:flex-end;width:520px;height:110px;padding:0 10px;display:flex;position:absolute;top:70px}.shelf:after{content:"";background:var(--ink);border-radius:3px;height:6px;position:absolute;bottom:-22px;left:-6px;right:-6px}.shelf .deco{width:76px;height:76px}.shelf .deco svg{width:100%;height:100%}.hud{border:5px solid var(--ink);background:#fff;border-radius:30px;align-items:center;gap:10px;min-width:130px;padding:6px 20px 6px 8px;font-size:40px;font-weight:900;display:flex;position:absolute;top:56px}.hud .ico{width:60px;height:60px;display:inline-block}.hud .ico svg{width:100%;height:100%}#hud-stars{left:20px}#hud-piggy{top:56px;right:250px}#hud-piggy.bump{animation:.4s bump}@keyframes bump{50%{transform:scale(1.2)}}.gear{opacity:.5;background:0 0;border:0;width:54px;height:54px;padding:0;position:absolute;top:58px;right:14px}.gear svg{width:100%;height:100%}#queue{width:200px;height:260px;position:absolute;top:230px;left:6px}#queue .q{opacity:.85;filter:saturate(.8);width:110px;height:143px;position:absolute;bottom:0}#queue .q svg{width:100%;height:100%}.customer{left:calc(var(--shop) / 2 - 125px);width:230px;height:300px;transition:transform .7s cubic-bezier(.3,1.3,.5,1),opacity .5s;position:absolute;top:200px}.customer svg{width:100%;height:100%}.customer.out{opacity:0;transform:translate(-420px)}.customer.leave{opacity:0;transform:translate(600px)}.customer.happy .mouth{d:path("M80 104 C 90 126, 110 126, 120 104")}.customer.talk{animation:.5s infinite talk}@keyframes talk{50%{transform:translateY(-6px)rotate(-1deg)}}.bubble{left:calc(var(--shop) / 2 + 115px);border:5px solid var(--ink);background:#fff;border-radius:36px;justify-content:center;align-items:center;gap:8px;min-width:120px;max-width:260px;min-height:100px;padding:10px 24px;font-size:70px;font-weight:900;animation:.3s pop;display:flex;position:absolute;top:160px}.bubble:before,.bubble:after{content:"";border-style:solid;width:0;height:0;position:absolute}.bubble:before{border-width:18px 36px 18px 0;border-color:transparent var(--ink) transparent transparent;bottom:14px;left:-34px}.bubble:after{border-width:12px 26px 12px 0;border-color:#0000 #fff #0000 #0000;bottom:20px;left:-24px}.bubble .eur{color:#2f7de0}.bubble .letter{color:#ef3b3b;font-size:110px;line-height:1}@keyframes pop{0%{opacity:0;transform:scale(.2)}}.counter{width:calc(var(--shop) - 10px);background:linear-gradient(var(--wood-d) 0 26px, var(--ink) 26px 32px, transparent 32px), repeating-linear-gradient(90deg, var(--wood) 0 90px, #d09452 90px 180px);border-top:6px solid var(--ink);border-right:6px solid var(--ink);position:absolute;top:470px;bottom:0;left:0}#items{width:calc(var(--shop) - 30px);justify-content:center;align-items:flex-start;gap:14px;display:flex;position:absolute;top:432px;bottom:6px;left:10px}.item{flex-direction:column;align-items:center;width:238px;animation:.5s cubic-bezier(.3,1.4,.5,1) both drop;display:flex}@keyframes drop{0%{opacity:0;transform:translateY(-200px)}}.item .art{width:96px;height:96px}.item .art svg{width:100%;height:100%}.item.say .art{animation:.5s 2 wiggle}@keyframes wiggle{25%{transform:rotate(-10deg)scale(1.1)}75%{transform:rotate(10deg)scale(1.1)}}.tag{border:5px solid var(--ink);background:#fff;border-radius:22px;flex-direction:column;align-items:center;width:100%;margin-top:4px;padding:2px 12px 8px;display:flex}.lbl{letter-spacing:1px;font-size:26px;font-weight:900}.lbl-big{color:#ef3b3b;font-size:44px}.price{flex-direction:column;align-items:center;gap:6px;display:flex}.price .num{font-size:68px;font-weight:900;line-height:1}.price .num small{color:#2f7de0;margin-left:2px;font-size:36px}.blocks{flex-wrap:nowrap;align-items:flex-end;gap:4px;display:flex}.blk{width:calc(var(--cols) * var(--b));flex-wrap:wrap-reverse;transition:transform .3s,filter .3s;display:flex}.blk i{width:var(--b);height:var(--b);border:2px solid #00000073;transition:transform .3s;display:block}.blk-ten i{background:#fff;border-color:#ff3b30}.blk.lit,.blk i.lit{filter:drop-shadow(0 0 6px #ffd93b);z-index:1;transform:scale(1.25)}.blk-hundred{grid-template-columns:repeat(10, var(--h));width:auto;display:grid}.blk-hundred i{width:var(--h);height:var(--h);background:#fff;border:1px solid #ff3b30}#register{border:6px solid var(--ink);width:384px;box-shadow:0 10px 0 var(--ink);background:#4ecdc4;border-radius:34px;flex-direction:column;gap:14px;padding:16px;display:flex;position:absolute;top:140px;bottom:14px;right:18px}#register.off{filter:grayscale(.8)brightness(.9);pointer-events:none}#display{border:5px solid var(--ink);color:#8dff8d;font-variant-numeric:tabular-nums;text-shadow:0 0 12px #8dff8d99;white-space:nowrap;background:#1d3b2a;border-radius:18px;justify-content:flex-end;align-items:center;height:112px;padding:0 16px;font-size:84px;font-weight:900;display:flex;overflow:hidden}#display.wrong{color:#ff8d8d;animation:.4s shake}#display.right{color:#fff;background:#2a8a3a}#display.ghost #display-n{opacity:.55}@keyframes shake{20%,60%{transform:translate(-12px)}40%,80%{transform:translate(12px)}}#keys{flex:1;grid-template-rows:repeat(4,1fr);grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.key{border:5px solid var(--ink);box-shadow:0 7px 0 var(--ink);background:#fff;border-radius:22px;justify-content:center;align-items:center;padding:0;font-size:58px;font-weight:900;display:flex}.key:active,.key.down{box-shadow:0 1px 0 var(--ink);transform:translateY(6px)}.key.del{background:#ffd93b;font-size:48px}.key.ok{background:#5cc35c;font-size:46px}#challenge{left:calc(var(--shop) / 2 - 365px);border:6px solid var(--ink);background:#fff8e6;border-radius:30px;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:730px;animation:.3s pop;display:flex;position:absolute;top:440px;bottom:20px}#challenge .row{justify-content:center;align-items:center;gap:14px;display:flex}#challenge .pat{width:84px;height:84px}#challenge .pat svg{width:100%;height:100%}#challenge .pat.q{border:5px dashed var(--ink);background:#fff;border-radius:20px;justify-content:center;align-items:center;font-size:60px;font-weight:900;display:flex}#challenge .choice{border:5px solid var(--ink);width:150px;height:150px;box-shadow:0 7px 0 var(--ink);background:#fff;border-radius:26px;flex-direction:column;align-items:center;padding:12px;display:flex}#challenge .choice svg{width:100%;height:100%}#challenge .choice:active{box-shadow:0 1px 0 var(--ink);transform:translateY(6px)}#challenge .choice.nope{animation:.4s shake}#challenge .choice.yes{background:#b8f5b8}#challenge.letters .choice{height:190px}#challenge .choice .lbl{font-size:18px}#challenge .choice .lbl-big{font-size:34px}#fx{pointer-events:none;position:absolute;inset:0}.fx-coin{width:56px;height:56px;position:absolute}.fx-coin.big{width:70px;height:70px}.fx-coin svg,.fx-star svg{width:100%;height:100%}.fx-star{width:160px;height:160px;position:absolute}#scr-closed{background:linear-gradient(#1d2b5a,#3b4a8a)}.closed-art{position:absolute;inset:0}.moon{background:#fff6b0;border-radius:50%;width:120px;height:120px;position:absolute;top:70px;right:140px;box-shadow:inset 30px -10px #2b3a72}.shutter{background:repeating-linear-gradient(#9aa3b5 0 30px,#7d879b 30px 36px);border:8px solid #1a1a2a;border-radius:20px 20px 0 0;width:600px;height:480px;position:absolute;top:230px;left:calc(50% - 300px)}.closed-sign{color:#fff;background:#ef3b3b;border:8px solid #1a1a2a;border-radius:50%;justify-content:center;align-items:center;width:200px;height:200px;font-size:150px;font-weight:900;line-height:1;display:flex;position:absolute;top:330px;left:calc(50% - 100px)}.adult-btn{opacity:.6;background:0 0;border:0;width:70px;height:70px;padding:0;position:absolute;bottom:20px;right:20px}.adult-btn svg{width:100%;height:100%}#scr-code,#scr-adult{background:#2b3a72;justify-content:center;align-items:center;display:flex}.code-box{border:6px solid var(--ink);background:#fff;border-radius:30px;flex-direction:column;align-items:center;width:640px;padding:24px 40px;display:flex}.code-help{margin:0 0 8px;font-size:22px}.code-words{text-align:center;color:#2f7de0;margin:0 0 12px;font-size:42px;font-weight:900}.code-display{border:4px solid var(--ink);letter-spacing:6px;border-radius:16px;justify-content:center;align-items:center;width:100%;height:80px;margin-bottom:14px;font-size:56px;font-weight:900;display:flex}.code-display.wrong{animation:.4s shake}#code-keys{grid-template-columns:repeat(3,120px);gap:10px;display:grid}#code-keys .key{height:78px;font-size:40px}.adult-menu{flex-direction:column;align-items:center;gap:30px;display:flex}.adult-menu .link-btn{color:#fff}#scr-settings{-webkit-overflow-scrolling:touch;background:#f4f1ea;overflow-y:auto}.settings{-webkit-user-select:text;user-select:text;max-width:900px;margin:0 auto;padding:30px 40px 80px;font-size:22px}.settings h1{margin:0 0 10px;font-size:36px}.settings h2{border-bottom:3px solid var(--ink);margin:26px 0 8px;font-size:24px}.settings label{justify-content:space-between;align-items:center;gap:20px;padding:8px 0;display:flex}.settings input,.settings select{border:3px solid var(--ink);background:#fff;border-radius:10px;width:260px;padding:6px 10px;font-family:inherit;font-size:22px}.settings input[type=checkbox]{width:34px;height:34px}.settings .hint{color:#6a5a50;margin:0;font-size:16px}.settings .actions{flex-wrap:wrap;gap:20px;margin-top:30px;display:flex}.settings .actions button{border:4px solid var(--ink);background:#5cc35c;border-radius:16px;padding:14px 26px;font-size:24px;font-weight:800}.settings .actions button.sec{background:#fff}.settings .actions button.danger{background:#ff8a8a}.help-overlay{z-index:50;background:#28190f8c;justify-content:center;align-items:center;animation:.3s fade;display:flex;position:absolute;inset:0}@keyframes fade{0%{opacity:0}}.help-panel{border:8px solid var(--ink);width:1000px;height:680px;box-shadow:0 14px 0 var(--ink);background:#fff8e6;border-radius:44px;flex-direction:column;justify-content:center;align-items:center;gap:30px;padding:30px 60px;animation:.35s pop;display:flex;position:relative}.h-lines{--fs:84px;flex-direction:column;align-items:flex-start;gap:14px;display:flex}.h-lines.long{--fs:64px;gap:6px}.h-line{font-size:var(--fs);align-items:center;gap:16px;font-weight:900;line-height:1.15;display:flex}.h-line .eqs{width:calc(var(--fs) * .7);color:#2f7de0;text-align:center}.h-line .op{color:#2f7de0}.h-line .t{border:5px solid #0000;border-radius:20px;padding:0 14px;transition:background .3s,border-color .3s}.h-line .t.fresh{background:#dff1ff}.h-line .t.hl{border-color:var(--ink);background:#ffe27a}.h-line .t.res{color:#fff;border-color:var(--ink);background:#5cc35c}.h-close{color:#fff;border:7px solid var(--ink);width:110px;height:110px;box-shadow:0 7px 0 var(--ink);background:#ef3b3b;border-radius:50%;justify-content:center;align-items:center;padding:0;font-size:64px;font-weight:900;animation:1.4s 1s infinite nudge;display:flex;position:absolute;top:-30px;right:-30px}.h-close:active{box-shadow:0 1px 0 var(--ink);transform:translateY(6px)}@keyframes nudge{0%,70%,to{transform:scale(1)}80%{transform:scale(1.15)}90%{transform:scale(.95)}}.rotate{display:none}@media (orientation:portrait) and (pointer:coarse) and (width<=900px){.rotate{z-index:99;background:#ffb347;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.rotate-ico{transform-origin:50%;width:180px;height:180px;animation:2.4s ease-in-out infinite turn}}@keyframes turn{0%,20%{transform:rotate(0)}50%,80%{transform:rotate(-90deg)}to{transform:rotate(0)}}
