*{box-sizing:border-box}:root{font-family:'Arial Rounded MT Bold','Trebuchet MS',Arial,sans-serif;background:#8569ed;color:#fff;--tray:clamp(85px,16vh,145px);--hud:clamp(.72,.14vw + .72,1.1)}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff878;outline-offset:4px}#game{position:relative;width:100%;height:100dvh;min-height:360px;overflow:hidden;background:#8768f1}#world{display:block;width:100%;height:100%;touch-action:none;outline:none}.scoreboard{position:absolute;left:clamp(12px,1.5vw,25px);top:clamp(25px,7vh,62px);pointer-events:none;min-width:110px;text-align:center;font-weight:900;filter:drop-shadow(0 1px 1px #46354b44)}.money-pill{display:flex;align-items:center;justify-content:center;border-radius:40px;height:clamp(43px,7vh,66px);padding:0 10px 0 20px;background:#6c5c8580;gap:14px}.money-pill strong{font-size:clamp(30px,4.4vh,48px);font-style:italic;line-height:1;-webkit-text-stroke:1.2px #302b3e;paint-order:stroke fill;text-shadow:1px 2px #302b3e}.money-pill img{width:clamp(44px,7.7vh,72px);height:clamp(44px,7.7vh,72px);margin-right:-16px}.score-line{margin-top:7px;width:92px}.score-line b{display:block;font-size:clamp(14px,2.1vh,20px);line-height:1.1;-webkit-text-stroke:.7px #3c2f49;paint-order:stroke fill;text-shadow:1px 1px #3c2f49}.score-line strong{display:block;background:#67587880;border-radius:22px;font-size:clamp(18px,2.7vh,26px);line-height:1.1;margin-top:1px;-webkit-text-stroke:.8px #3c2f49;paint-order:stroke fill}.right-controls{position:absolute;right:clamp(13px,2vw,30px);top:8px;display:flex;align-items:center;flex-direction:column;gap:7px}.circle-button{background:#5d42af88;border:0;border-radius:50%;width:clamp(34px,5.5vh,50px);height:clamp(34px,5.5vh,50px);padding:8px}.circle-button svg{width:100%;height:100%;fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.circle-button.large{width:clamp(45px,8vh,72px);height:clamp(45px,8vh,72px);padding:12px}.circle-button.large svg{fill:#fff;stroke:none}.circle-button.large circle{fill:#6e51c1}.follow-button{position:relative;width:clamp(44px,7.7vh,70px);height:clamp(46px,8vh,72px);border:2px solid #25243c;border-radius:22px;background:#8f97f6;margin-top:22px;padding:8px 5px}.follow-button b{position:absolute;left:0;right:0;top:2px;color:#ff748d;font-size:16px;-webkit-text-stroke:.5px #7a416f;paint-order:stroke fill}.follow-button svg{fill:#e0edff;width:100%;height:100%;margin-top:8px}.follow-button .slash{position:absolute;left:8%;top:48%;width:88%;height:6px;background:#fff;transform:rotate(-51deg);box-shadow:0 1px #5557a6}.follow-button[aria-pressed=true]{background:#8ad5c1}.follow-button[aria-pressed=true] b{color:#fff}.follow-button[aria-pressed=true] .slash{display:none}.zoom-controls{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:12px}.zoom-controls button{background:none;border:0;font-size:35px;font-weight:900;line-height:30px;-webkit-text-stroke:1px #4b3d6e;paint-order:stroke fill}.zoom-controls input{writing-mode:vertical-lr;direction:rtl;width:18px;height:clamp(110px,23vh,210px);accent-color:#fff;cursor:ns-resize;filter:drop-shadow(1px 1px 0 #322b48)}.play-button{margin-top:clamp(9px,4vh,37px);background:none;border:0;font-size:28px;font-weight:900;text-shadow:1px 2px #4b3d6e}.tray-wrap{position:absolute;bottom:25px;left:0;right:0;height:var(--tray);background:#63507866;border-top:2px solid #6a538e66}.tools{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;gap:7px;padding:0 9px 2px;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-x}.tools::-webkit-scrollbar{display:none}.tool{position:relative;flex:0 0 calc(var(--tray) - 3px);height:calc(var(--tray) - 3px);background:#aaa2b6;border:3px solid #70677b;border-radius:34% 34% 26% 26%;padding:5px 11px 23px;box-shadow:inset 0 2px #d4cadc55;user-select:none;touch-action:none}.tool img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(1px 2px #42365333)}.tool[aria-pressed=true]{background:#fff;border-color:#30273b}.tool:hover{background:#c4b9d0}.tool[aria-pressed=true]:hover{background:#fff}.price{position:absolute;bottom:-1px;left:15%;right:10%;height:25%;display:flex;align-items:center;justify-content:center;gap:3px;background:#75e5eb;border-radius:5px;font-size:clamp(15px,2.7vh,25px);font-weight:900;-webkit-text-stroke:.6px #49627b;paint-order:stroke fill;text-shadow:1px 1px #49627b}.price img{height:110%;width:30%;filter:none}.tool.extra{background:#bea7d9}.tool[aria-disabled=true]{cursor:grab}#tutorial{position:absolute;left:calc(var(--tray)*.22);bottom:calc(100% - 6px);width:clamp(43px,7vw,72px);height:90px;pointer-events:none;z-index:3;animation:tap 1.2s ease-in-out infinite}#tutorial svg{height:100%;width:100%}@keyframes tap{50%{transform:translateY(-8px)}}.footer{position:absolute;bottom:0;left:0;right:0;height:25px;background:#6c51c966;display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:#fff9;font-size:10px}.footer a{color:#fff;text-decoration:none;font-size:12px;font-weight:900;letter-spacing:-.8px}.footer button{border:0;background:transparent;font-size:16px;font-weight:bold;line-height:1;padding:2px 7px}.footer span{margin-left:auto;margin-right:15px}#selection{position:absolute;display:flex;gap:5px;z-index:4}#selection button{border:2px solid #51416c;border-radius:50%;background:#fff;color:#6e4dc2;width:34px;height:34px;font-size:25px;line-height:24px;box-shadow:0 2px 0 #49336866}#paused{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);font-weight:900;letter-spacing:2px;font-size:34px;-webkit-text-stroke:1px #4e377c;paint-order:stroke fill;pointer-events:none}#notice{position:absolute;top:17px;left:50%;transform:translateX(-50%);background:#4b367bd9;border:1px solid #b5a1e5;border-radius:12px;padding:10px 16px;font-size:14px;max-width:65%;text-align:center;pointer-events:none;z-index:10}dialog{width:calc(100% - 36px);max-width:420px;border:3px solid #554475;border-radius:25px;background:#c5b3df;color:#fff;padding:26px;box-shadow:0 12px 50px #2d1b5c66}dialog::backdrop{background:#28184688}dialog h1{margin:4px 0 22px;text-align:center;font-size:30px;-webkit-text-stroke:.8px #4e3d6c;paint-order:stroke fill}dialog p{font-size:16px;line-height:1.6;color:#3c2f51}dialog p.fine{font-size:13px}dialog button:not(.close){display:block;margin:12px 0;width:100%;border:2px solid #7b6b98;border-radius:12px;background:#a18cc8;padding:12px;font-weight:bold;font-size:16px}dialog button.primary{background:#7862bb;border-color:#604995}dialog label{display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:bold;margin:18px 0;color:#49375f}dialog input[type=checkbox]{width:22px;height:22px;accent-color:#7955c6}.close{float:right;border:0;border-radius:50%;width:30px;height:30px;font-size:28px;line-height:20px;background:#8065b3}[hidden]{display:none!important}@media(max-width:600px){:root{--tray:100px}.scoreboard{top:23px;left:10px}.money-pill{height:42px;padding-left:12px;gap:6px}.money-pill strong{font-size:30px}.money-pill img{width:48px;height:48px;margin-right:-10px}.score-line{width:75px}.score-line b{font-size:14px}.score-line strong{font-size:18px}.right-controls{right:10px}.circle-button{width:34px;height:34px}.circle-button.large{width:45px;height:45px;padding:8px}.follow-button{width:44px;height:48px;border-radius:14px;margin-top:12px}.follow-button b{font-size:12px}.follow-button .slash{height:4px}.zoom-controls{margin-top:5px}.zoom-controls input{height:130px;width:16px}.zoom-controls button{font-size:29px}.play-button{margin-top:10px}.price{font-size:18px}.tool{border-width:2px;padding:5px 9px 21px}.tools{gap:4px;padding-left:5px}.footer span{font-size:8px}#tutorial{width:45px;height:65px}.footer a{font-size:10px}.footer{padding:0 8px}#notice{top:12px;max-width:55%;font-size:12px;padding:8px}#selection button{width:31px;height:31px}}@media(prefers-reduced-motion:reduce){#tutorial{animation:none}}

.tool[aria-disabled=false],.tool[aria-disabled=false]:hover{background:#fff}.tool[aria-disabled=true],.tool[aria-disabled=true]:hover{background:#aaa2b6;border-color:#70677b}.tool[aria-pressed=true][aria-disabled=false]{border-color:#30273b;box-shadow:inset 0 0 0 2px #30273b}

/* A drop target appears only while an existing obstacle is held. */
.trash{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:76px;height:82px;border:3px solid #70677b;border-radius:20px;background:#ece4f4;color:#6a4c9e;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;pointer-events:none}.trash svg{width:32px;height:38px;stroke:currentColor;flex:none}.trash span{font-size:13px;font-weight:900}.trash.over{background:#ef769f;color:#fff;border-color:#fff}
#home-link{position:absolute;top:12px;left:16px;z-index:8;display:block;line-height:0;touch-action:manipulation}#home-link img{display:block;width:145px;height:auto}.scoreboard{top:72px}@media(max-width:600px){#home-link{left:10px;top:10px}#home-link img{width:125px}.scoreboard{top:70px}}
