*,*: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%}.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}.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-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;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}}@media(min-width:900px){.hud-top-dock{position:relative}.carriage-tray{position:absolute;top:0;left:50%;transform:translate(-50%)}}
