:root{--safe-top:env(safe-area-inset-top,12px);--safe-bottom:env(safe-area-inset-bottom,12px);--safe-left:env(safe-area-inset-left,12px);--safe-right:env(safe-area-inset-right,12px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}html,body{touch-action:none;overscroll-behavior:none;background:#87d6ff;width:100%;height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,SF Pro Rounded,Nunito,Segoe UI,sans-serif;overflow:hidden}#app{width:100vw;height:100dvh;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}#game-canvas{touch-action:none;width:100%;height:100%;display:block}.toy-btn{cursor:pointer;border:3px solid #ffffffe6;outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:transform .12s cubic-bezier(.34,1.56,.64,1),box-shadow .12s,filter .12s;display:inline-flex;position:relative}.toy-btn:active{transform:translateY(4px)scale(.95)}.toy-btn-round{border-radius:50%;width:50px;height:50px;font-size:24px}.toy-btn-pill{border-radius:23px;min-width:54px;height:46px;padding:0 12px;font-size:24px}.toy-btn-huge{border-radius:32px;width:110px;height:110px;font-size:52px}.btn-emoji{filter:drop-shadow(0 2px 2px #0003);line-height:1}.toy-blue{background:linear-gradient(#5cc8ff 0%,#2b9eff 100%);box-shadow:0 6px #1672c9,0 10px 18px #00000038}.toy-blue:active{box-shadow:0 2px #1672c9,0 4px 8px #0003}.toy-purple{background:linear-gradient(#c785ff 0%,#9b4dff 100%);box-shadow:0 6px #6b24c7,0 10px 18px #00000038}.toy-purple:active{box-shadow:0 2px #6b24c7,0 4px 8px #0003}.toy-teal{background:linear-gradient(#54e8d2 0%,#19bfa6 100%);box-shadow:0 6px #0e8a77,0 10px 18px #00000038}.toy-teal:active{box-shadow:0 2px #0e8a77,0 4px 8px #0003}.toy-yellow{background:linear-gradient(#ffe259 0%,#ffb829 100%);box-shadow:0 6px #cc8400,0 10px 18px #00000038}.toy-yellow:active{box-shadow:0 2px #cc8400,0 4px 8px #0003}.toy-pink{background:linear-gradient(#ff85c8 0%,#ff47a3 100%);box-shadow:0 6px #c2186e,0 10px 18px #00000038}.toy-pink:active{box-shadow:0 2px #c2186e,0 4px 8px #0003}.toy-red{background:linear-gradient(#ff7b7b 0%,#ff3d3d 100%);box-shadow:0 6px #bf1b1b,0 10px 18px #00000038}.toy-red:active{box-shadow:0 2px #bf1b1b,0 4px 8px #0003}.toy-green{background:linear-gradient(#68eb7b 0%,#2ac744 100%);box-shadow:0 6px #17912b,0 10px 18px #00000038}.toy-green:active{box-shadow:0 2px #17912b,0 4px 8px #0003}.toy-coral{background:linear-gradient(#ff9a76 0%,#ff6242 100%);box-shadow:0 6px #c7381a,0 10px 18px #00000038}.toy-coral:active{box-shadow:0 2px #c7381a,0 4px 8px #0003}.toy-orange{background:linear-gradient(#ffb457 0%,#f81 100%);box-shadow:0 6px #c95d00,0 10px 18px #00000038}.toy-orange:active{box-shadow:0 2px #c95d00,0 4px 8px #0003}.toy-btn.muted{filter:grayscale(.7)opacity(.75)}.toy-btn.active{outline-offset:2px;outline:4px solid #fff;transform:scale(1.06)}.hud-top-left{top:max(14px, var(--safe-top));left:max(14px, var(--safe-left));z-index:20;gap:12px;display:flex;position:fixed}.hud-top-center{top:max(14px, var(--safe-top));z-index:20;pointer-events:none;position:fixed;left:50%;transform:translate(-50%)}.star-pill{-webkit-backdrop-filter:blur(12px);color:#3a3052;background:#ffffffe0;border:3px solid #fff;border-radius:999px;align-items:center;gap:8px;padding:8px 20px;font-size:26px;font-weight:800;transition:transform .2s cubic-bezier(.34,1.56,.64,1);display:flex;box-shadow:0 8px 20px #00000026}.star-pill.pop{transform:scale(1.2)}.hud-top-right{top:max(14px, var(--safe-top));right:max(14px, var(--safe-right));z-index:20;gap:12px;display:flex;position:fixed}.hud-bottom{bottom:max(10px, var(--safe-bottom));left:max(10px, var(--safe-left));-webkit-backdrop-filter:blur(18px);z-index:20;background:#ffffffd1;border:3px solid #fffffff2;border-radius:24px;flex-direction:column;gap:8px;width:-moz-fit-content;width:fit-content;max-width:calc(100vw - 20px);padding:8px 12px 10px;display:flex;position:fixed;box-shadow:0 12px 30px #18345c33}.dock-controls{flex-wrap:wrap;align-items:center;gap:8px;padding:2px;display:flex}.dock-divider{background:#3c466429;border-radius:2px;flex-shrink:0;width:3px;height:30px;margin:0 2px}.category-tabs{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.cat-tab{cursor:pointer;background:#ffffffd9;border:3px solid #0000;border-radius:21px;flex-shrink:0;justify-content:center;align-items:center;min-width:48px;height:42px;padding:0 10px;font-size:21px;transition:transform .15s cubic-bezier(.34,1.56,.64,1),background .15s;display:inline-flex;box-shadow:0 4px #0000001a}.cat-tab:active{transform:scale(.92)}.cat-tab.active{background:#fff;border-color:#3bb2ff;transform:translateY(-2px);box-shadow:0 4px #3bb2ff,0 6px 12px #3bb2ff47}.shape-tray{flex-wrap:wrap;align-items:center;gap:6px;padding:2px;display:flex}.shape-tray.hidden{display:none}.shape-card{cursor:pointer;background:#ffffffe6;border:2px solid #fffffff2;border-radius:13px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;padding:3px;transition:transform .14s cubic-bezier(.34,1.56,.64,1);display:flex;box-shadow:0 3px #648cbe59}.shape-card:active{transform:scale(.9)}.shape-card.selected{background:#fff6c2;border-color:#299eff;transform:translateY(-2px)scale(1.06);box-shadow:0 4px #1672c9}.shape-card img{object-fit:contain;pointer-events:none;width:100%;height:100%}.block-tray{flex-wrap:wrap;align-items:center;gap:7px;padding:2px;display:flex}.block-card{cursor:pointer;background:linear-gradient(#fff 0%,#edf6ff 100%);border:3px solid #fffffff2;border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;width:50px;height:50px;padding:4px;transition:transform .16s cubic-bezier(.34,1.56,.64,1),box-shadow .16s;display:flex;box-shadow:0 4px #789bc373,0 6px 10px #0000001a}.block-card:active{transform:scale(.92)translateY(2px)}.block-card.selected{background:linear-gradient(#fffbe0 0%,#ffe680 100%);border-color:#ff9d00;transform:translateY(-2px)scale(1.06);box-shadow:0 5px #e07b00,0 8px 14px #ff9d0052}.block-card canvas,.block-card img{object-fit:contain;pointer-events:none;width:100%;height:100%}.modal-backdrop{-webkit-backdrop-filter:blur(8px);z-index:50;background:#14234173;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.modal-backdrop.hidden{display:none}.modal-card{background:#fffffff2;border:5px solid #fff;border-radius:40px;flex-direction:column;align-items:center;gap:24px;padding:28px 36px;animation:.25s cubic-bezier(.34,1.56,.64,1) popIn;display:flex;box-shadow:0 24px 60px #0000004d}.modal-emoji{font-size:64px;line-height:1}.modal-actions{gap:28px;display:flex}@keyframes popIn{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@media (max-width:640px){.hud-bottom{width:calc(100vw - 20px)}.toy-btn-round{width:44px;height:44px;font-size:20px}.toy-btn-pill{min-width:48px;height:42px;font-size:20px}.cat-tab{min-width:46px;height:40px;font-size:20px}.block-card{border-radius:16px;width:54px;height:54px}.star-pill{padding:6px 12px;font-size:18px}}
