*,*:before,*:after{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:none;background:#2b9bf0;font-family:Fredoka,Nunito,Avenir Next Rounded,UI Rounded,system-ui,-apple-system,sans-serif}#app{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;touch-action:none}#game-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}#hud-root{position:fixed;inset:0;pointer-events:none;z-index:10}.hud-overlay{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:max(14px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));pointer-events:none}.coin-pop-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:20}.floating-coin-pop{position:absolute;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:8px;padding:8px 20px 8px 11px;border-radius:999px;background:linear-gradient(180deg,#fff073,#f5a600);border:3.5px solid #fffce6;box-shadow:0 5px #b86c00,0 0 22px #ffe047cc,0 10px 22px #0028506b;color:#fff;font-size:32px;font-weight:900;text-shadow:0 3px 0 #8a4b00,-1.5px -1.5px 0 #8a4b00,1.5px -1.5px 0 #8a4b00,-1.5px 1.5px 0 #8a4b00,1.5px 1.5px 0 #8a4b00;animation:coin-float-pop 1.4s cubic-bezier(.22,1,.36,1) forwards}.floating-coin-pop svg{width:38px;height:38px}.flying-coin{position:absolute;width:40px;height:40px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 0 10px rgba(255,225,70,.9)) drop-shadow(0 4px 6px rgba(0,35,80,.35))}.flying-coin svg{width:100%;height:100%}.hud-top-dock{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;pointer-events:none}.hud-top-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%}.hud-top-group{display:inline-flex;align-items:center;gap:10px;pointer-events:none}.coin-pill{position:relative;pointer-events:auto;display:inline-flex;align-items:center;gap:10px;min-height:64px;padding:8px 20px 8px 10px;border-radius:20px;background:linear-gradient(180deg,#ffe24d,#f7b810 62%,#e69c00);border:3.5px solid #fff3a3;box-shadow:0 6px #b87000,0 10px 20px #002a5c52,inset 0 2px 3px #ffffffb3;transition:transform .14s cubic-bezier(.34,1.56,.64,1);flex-shrink:0}.coin-pill.pop{animation:pill-pop .24s cubic-bezier(.34,1.56,.64,1)}.coin-pill.bump{animation:pill-bump .36s cubic-bezier(.34,1.56,.64,1)}.coin-pill.shake{animation:pill-shake .38s ease-in-out}.coin-icon{width:44px;height:44px;flex-shrink:0;display:inline-flex;filter:drop-shadow(0 2px 2px rgba(130,68,0,.4))}.coin-icon svg{width:100%;height:100%}.coin-value{font-size:28px;font-weight:900;letter-spacing:.5px;color:#fff;text-shadow:0 2.5px 0 #945200,-1.5px -1.5px 0 #945200,1.5px -1.5px 0 #945200,-1.5px 1.5px 0 #945200,1.5px 1.5px 0 #945200;font-variant-numeric:tabular-nums}.coin-delta{position:absolute;right:16px;top:100%;margin-top:6px;font-size:20px;font-weight:900;opacity:0;transform:translateY(-6px);transition:opacity .2s ease,transform .28s ease;pointer-events:none;text-shadow:0 2px 3px rgba(0,0,0,.45)}.coin-delta.show{opacity:1;transform:translateY(2px)}.coin-delta.spend{color:#ffe48f}.coin-delta.gain{color:#a6ff8c}.toy-btn{pointer-events:auto;position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:68px;min-height:68px;width:74px;height:74px;padding:8px;border-radius:22px;border:3.5px solid rgba(255,255,255,.88);cursor:pointer;touch-action:manipulation;flex-shrink:0;transition:transform .16s cubic-bezier(.34,1.56,.64,1),box-shadow .16s ease,filter .16s ease}.toy-btn:active:not(:disabled){transform:translateY(4px) scale(.95)}.toy-btn-icon{width:52px;height:52px;display:inline-flex;align-items:center;justify-content:center;filter:drop-shadow(0 2px 2px rgba(0,0,0,.26))}.toy-btn-icon svg,.toy-btn-undo svg{width:100%;height:100%}.toy-btn-undo{width:70px;height:70px;background:linear-gradient(180deg,#5cc4ff,#2492eb 65%,#1677cf);box-shadow:0 6px #0d5091,0 10px 18px #002a5c4d,inset 0 2px 3px #ffffffa6}.toy-btn-undo:disabled{opacity:.45;filter:grayscale(.55);cursor:default;box-shadow:0 4px #3f5c78,0 6px 10px #001e412e}.toy-btn-expand{flex-direction:column;gap:1px;width:auto;min-width:78px;height:70px;padding:4px 12px;background:linear-gradient(180deg,#5be38c,#24b85b 65%,#168f42);box-shadow:0 6px #0d5e2b,0 10px 18px #002a5c4d,inset 0 2px 3px #ffffffa6}.toy-btn-expand .expand-icon{width:40px;height:40px;display:inline-flex}.toy-btn-expand .expand-icon svg{width:100%;height:100%}.expand-price-tag{display:inline-flex;align-items:center;gap:3px;font-size:13px;font-weight:900;color:#fff;text-shadow:0 1.5px 0 #0e5225;line-height:1}.expand-price-tag svg{width:14px;height:14px}.toy-btn-expand.is-sparkling{border-color:#fff580;animation:expand-sparkle 1.35s ease-in-out infinite}.toy-btn-expand.is-maxed{opacity:.52;filter:saturate(.45);cursor:default}.toy-btn-parent{width:64px;height:64px;min-width:64px;min-height:64px;padding:0;border-radius:50%;background:linear-gradient(180deg,#7298bdd9,#4d6e91e6);border:2.5px solid rgba(255,255,255,.78);box-shadow:0 4px #233a54a6,0 8px 14px #00204440}.toy-btn-parent.is-holding{transform:scale(1.08);border-color:#ffe44d}.parent-hold-ring{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);pointer-events:none}.parent-gear-icon{width:30px;height:30px;display:inline-flex;pointer-events:none}.parent-gear-icon svg{width:100%;height:100%}.hud-bottom-dock{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;pointer-events:none}.picture-tray{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:8px 12px;border-radius:24px;background:#ffffffe0;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:3px solid rgba(255,255,255,.96);box-shadow:0 6px #0e48823d,0 12px 24px #00265647;animation:tray-pop .2s cubic-bezier(.34,1.56,.64,1)}.picture-tray[hidden]{display:none}.carriage-tray{flex-direction:column;gap:8px;padding:10px 14px}.carriage-header-row{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.carriage-engine-badge{width:48px;height:48px;border-radius:14px;background:linear-gradient(180deg,#fff5d6,#ffe08a);border:2.5px solid #ffb700;padding:4px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.carriage-engine-badge svg{width:100%;height:100%}.carriage-slots{display:inline-flex;align-items:center;gap:8px}.carriage-slot-chip{position:relative;min-width:64px;min-height:64px;width:64px;height:64px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;padding:6px}.carriage-slot-chip.empty{border:2.5px dashed #a7bfd6;background:#dcecfa8c}.carriage-slot-chip.filled{border:3px solid #ffffff;background:linear-gradient(180deg,#fff4cc,#ffd773);box-shadow:0 4px #c28d22;cursor:pointer;touch-action:manipulation}.carriage-slot-chip.filled svg{width:100%;height:100%}.chip-minus{position:absolute;right:-6px;top:-6px;width:24px;height:24px;border-radius:50%;background:#ed4245;color:#fff;font-size:16px;font-weight:900;line-height:20px;text-align:center;border:2px solid #ffffff;box-shadow:0 2px 4px #00000040}.tray-mini-btn{min-width:64px;min-height:64px;width:64px;height:64px;border-radius:18px;border:3px solid #ffffff;display:inline-flex;align-items:center;justify-content:center;padding:12px;cursor:pointer;touch-action:manipulation}.tray-mini-btn svg{width:100%;height:100%}.btn-close{min-width:64px;min-height:64px;width:64px;height:64px;background:linear-gradient(180deg,#9fb4c7,#6d8399);box-shadow:0 4px #485b6e}.tray-items-row{display:inline-flex;align-items:center;gap:8px}.tray-scroll-row{max-width:min(560px,calc(100vw - 44px));overflow-x:auto;touch-action:pan-x;-webkit-overflow-scrolling:touch;padding:6px 4px;scrollbar-width:none}.tray-scroll-row::-webkit-scrollbar{display:none}.decor-tray-shell{max-width:calc(100vw - 20px);padding:4px 8px;gap:6px}.decor-tray{display:flex;align-items:center;gap:10px;overflow-x:auto;touch-action:pan-x;-webkit-overflow-scrolling:touch;padding:10px 6px;scrollbar-width:none;scroll-behavior:smooth}.decor-tray::-webkit-scrollbar{display:none}.tray-scroll-chevron{min-width:44px;min-height:64px;border-radius:16px;border:2.5px solid #cde0f5;background:linear-gradient(180deg,#fff,#e6f2ff);color:#2563a8;font-size:18px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;touch-action:manipulation;box-shadow:0 3px #b0c9e3}.tray-scroll-chevron-gold{border-color:#f5c342;background:linear-gradient(180deg,#fffbe0,#ffe899);color:#9c5800;box-shadow:0 3px #c99420}.tray-divider{width:3px;height:52px;border-radius:99px;background:linear-gradient(180deg,#ffd447,#f59e0b);flex-shrink:0;margin:0 2px}.landmark-shop-btn{border-color:#f5c342;background:linear-gradient(180deg,#fffdf0,#ffefc2);box-shadow:0 4px #c99420}.shop-lock-badge{display:none;position:absolute;top:-6px;right:-6px;width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid #94a3b8;box-shadow:0 2px 5px #00000040;align-items:center;justify-content:center;padding:3px;pointer-events:none}.shop-lock-badge svg{width:100%;height:100%}.is-locked{filter:grayscale(.85) brightness(.92);opacity:.72}.is-locked .shop-lock-badge{display:inline-flex}.tray-item-btn.is-full{opacity:.5;filter:grayscale(.6)}.wiggle{animation:gentle-no-wiggle .36s ease-in-out}.tray-item-btn{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:68px;min-height:68px;padding:5px 8px;border-radius:18px;border:3px solid #d5e5f5;background:linear-gradient(180deg,#fff,#eef6ff);box-shadow:0 4px #b7cde3;cursor:pointer;touch-action:manipulation;flex-shrink:0;transition:transform .14s cubic-bezier(.34,1.56,.64,1),border-color .14s ease,box-shadow .14s ease}.tray-item-btn:active:not(:disabled){transform:translateY(3px) scale(.95)}.tray-item-btn:disabled{opacity:.42;filter:grayscale(.7);cursor:default}.tray-item-btn.is-selected{border-color:#ffb700;background:linear-gradient(180deg,#fffbe0,#ffe680);transform:translateY(-4px) scale(1.06);box-shadow:0 5px #c98600,0 0 0 3px #ffe047b3}.tray-item-icon{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}.tray-item-icon svg{width:100%;height:100%}.tray-price-tag{display:inline-flex;align-items:center;gap:3px;font-size:13px;font-weight:900;color:#6b4300;line-height:1}.tray-price-tag svg{width:14px;height:14px}.hud-toolbar{display:flex;align-items:flex-end;justify-content:center;gap:14px;width:100%;pointer-events:none}.btn-blue{background:linear-gradient(180deg,#4db4ff,#1c88eb 65%,#126ec7);box-shadow:0 7px #0b4c8f,0 12px 22px #00265657,inset 0 2px 3px #ffffffa6}.btn-purple{background:linear-gradient(180deg,#b873ff,#8e42e8 65%,#732bc7);box-shadow:0 7px #4f1c8f,0 12px 22px #0026564d,inset 0 2px 3px #ffffff80}.btn-orange{background:linear-gradient(180deg,#ffa840,#f57c14 65%,#d96206);box-shadow:0 7px #943f00,0 12px 22px #0026564d,inset 0 2px 3px #ffffff8c}.btn-green{background:linear-gradient(180deg,#6bd94a,#44b526 65%,#329418);box-shadow:0 5px #1f630d,0 8px 16px #00265647,inset 0 2px 3px #ffffff8c}.btn-coral{background:linear-gradient(180deg,#ff7d78,#ed4c4c 65%,#cf3232);box-shadow:0 7px #8c1a1a,0 12px 22px #00265657,inset 0 2px 3px #fff9}.toy-tool-btn.is-active{transform:translateY(-8px) scale(1.08);border-color:#fff68f;box-shadow:0 10px #0030608c,0 0 0 5px #fff58ad9,0 18px 28px #0023506b,inset 0 2px 4px #fffc}@keyframes pill-pop{0%{transform:scale(1)}45%{transform:scale(1.09)}to{transform:scale(1)}}@keyframes pill-bump{0%{transform:scale(1)}35%{transform:scale(1.19);box-shadow:0 6px #b87000,0 0 26px #ffe85cf2,0 10px 22px #002a5c5c}70%{transform:scale(.95)}to{transform:scale(1)}}@keyframes pill-shake{0%,to{transform:translate(0)}20%{transform:translate(-7px)}40%{transform:translate(7px)}60%{transform:translate(-5px)}80%{transform:translate(5px)}}@keyframes tray-pop{0%{opacity:0;transform:translateY(10px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes coin-float-pop{0%{opacity:0;transform:translate(-50%,-10%) scale(.42)}16%{opacity:1;transform:translate(-50%,-68%) scale(1.22)}28%{opacity:1;transform:translate(-50%,-80%) scale(1.04)}74%{opacity:1;transform:translate(-50%,-120%) scale(1.04)}to{opacity:0;transform:translate(-50%,-155%) scale(.82)}}@media(max-width:520px){.hud-toolbar{gap:8px}.toy-btn{min-width:64px;min-height:64px;width:66px;height:66px;border-radius:18px}.toy-btn-icon{width:44px;height:44px}.coin-value{font-size:22px}.tray-item-btn{min-width:64px;min-height:64px}}@media(min-width:768px){.hud-toolbar{gap:18px}.toy-tool-btn{width:82px;height:82px;border-radius:24px}.toy-btn-icon{width:58px;height:58px}.toy-btn-undo{width:72px;height:72px}}.parent-modal-backdrop{position:fixed;inset:0;z-index:40;pointer-events:auto;background:#0c223e85;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}.parent-modal-backdrop[hidden]{display:none}.parent-modal-card{width:min(360px,100%);border-radius:24px;background:#fff;border:3px solid #d5e6f7;box-shadow:0 18px 40px #001c4061;padding:18px 20px 20px;color:#1e324a}.parent-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.parent-modal-header h2{margin:0;font-size:20px;font-weight:800}.parent-close-btn{width:44px;height:44px;border-radius:14px;border:none;background:#7b93ab;padding:10px;cursor:pointer}.parent-close-btn svg{width:100%;height:100%}.parent-modal-actions{display:flex;flex-direction:column;gap:10px}.parent-action-btn{width:100%;min-height:52px;padding:10px 16px;border-radius:14px;border:2px solid #cbdbe8;background:#f4f9ff;color:#1e324a;font-family:inherit;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.parent-topup-btn{border-color:#f5c342;background:#fff9e0;color:#7a4b00}.parent-reset-btn{border-color:#f5a6a6;background:#fff0f0;color:#b52020;justify-content:center}.parent-reset-confirm-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:14px;background:#fff0f0;border:2px solid #f29494}.parent-reset-confirm-row[hidden]{display:none}.parent-confirm-label{font-size:13px;font-weight:700;color:#8f1d1d;flex:1}.parent-confirm-yes,.parent-confirm-no{padding:8px 12px;border-radius:10px;border:none;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer}.parent-confirm-yes{background:#dc2626;color:#fff}.parent-confirm-no{background:#cbd5e1;color:#1e293b}.hand-hint{position:fixed;inset:0;pointer-events:none;z-index:25}.hand-hint[hidden]{display:none}.hand-hint-cursor{position:absolute;left:calc(50% - 208px);bottom:92px;width:68px;height:68px;filter:drop-shadow(0 6px 10px rgba(0,35,78,.35));animation:hand-hint-drag 2.6s ease-in-out infinite}@media(max-width:520px){.hand-hint-cursor{left:calc(50% - 165px)}}.hand-hint-cursor svg{width:100%;height:100%}@keyframes expand-sparkle{0%,to{transform:scale(1);box-shadow:0 6px #0d5e2b,0 0 12px #ffe85ca6,0 10px 18px #002a5c4d}50%{transform:scale(1.07);box-shadow:0 6px #0d5e2b,0 0 28px #fff06efa,0 12px 22px #002a5c59}}@keyframes gentle-no-wiggle{0%,to{transform:translate(0)}20%{transform:translate(-6px) rotate(-3deg)}45%{transform:translate(6px) rotate(3deg)}70%{transform:translate(-4px) rotate(-2deg)}88%{transform:translate(4px) rotate(1deg)}}@keyframes hand-hint-drag{0%{opacity:0;transform:translateY(26px) scale(.95)}15%{opacity:1;transform:translate(0) scale(.9)}30%{opacity:1;transform:translate(0) scale(1)}70%{opacity:1;transform:translate(120px,-175px) scale(.92)}88%{opacity:.9;transform:translate(185px,-175px) scale(1)}to{opacity:0;transform:translate(195px,-165px) scale(1.05)}}@media(min-width:1280px){.hud-top-dock{position:relative}.carriage-tray{position:absolute;top:0;left:50%;transform:translate(-50%);animation:carriage-tray-pop .2s cubic-bezier(.34,1.56,.64,1)}}@keyframes carriage-tray-pop{0%{opacity:0;transform:translate(-50%) translateY(-8px) scale(.92)}to{opacity:1;transform:translate(-50%) translateY(0) scale(1)}}
