*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;touch-action:manipulation}body{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:#173e52;background:#b9d5e7;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}button{font:inherit;color:inherit;cursor:pointer;border:0}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}#scene{position:absolute;left:0;top:0;width:100%;height:100%;touch-action:none}.shade{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;background:linear-gradient(180deg,rgba(207,229,228,.04),transparent 15%,transparent 75%,rgba(216,235,233,.35))}#app{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;max-width:650px;margin:auto}#app button{pointer-events:auto}.hud{position:absolute;top:14px;top:calc(14px + var(--safe-area-inset-top,env(safe-area-inset-top,0px)));left:18px;right:18px;height:88px;display:flex;align-items:flex-start;justify-content:space-between;background:rgba(247,253,253,.91);border:1px solid rgba(255,255,255,.9);border-radius:17px;padding:9px 10px;box-shadow:0 4px 20px rgba(19,58,79,.1)}.icon-button{width:36px;height:38px;border-radius:11px;background:transparent;color:#20546b;font-size:18px}.upgrade-goal{text-align:center}.upgrade-goal small{display:block;font-size:10px;color:#658491;line-height:16px}.upgrade-goal strong{display:block;font-size:21px;color:#153e58;line-height:28px;font-variant-numeric:tabular-nums}.water-meter{position:absolute;left:12px;right:12px;height:19px;bottom:8px;border-radius:10px;overflow:hidden;background:#c7dee5;text-align:center}.water-meter i{position:absolute;left:0;top:0;bottom:0;width:100%;background:linear-gradient(90deg,#39a9df,#79d2e9);transition:width .35s}.water-meter span{position:relative;font-size:10px;line-height:19px;color:#133c57;font-weight:700}.bottom{position:absolute;left:24px;right:24px;bottom:16px;bottom:calc(16px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));pointer-events:none}.fill{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:100%;height:61px;padding:0 17px;border:1px solid #e6a52c;border-radius:18px;background:linear-gradient(#ffe78b,#ffcd4c);box-shadow:0 5px #b98525,0 8px 20px rgba(111,92,40,.13);color:#604913;transition:transform .08s;white-space:nowrap}.fill img{width:27px;height:46px;object-fit:contain;margin-right:12px}.fill b{font-size:20px;letter-spacing:.3px}.fill strong{font-size:14px;margin-left:auto}.fill:active,.fill.pressed{transform:translateY(4px);box-shadow:0 1px #b98525}.handling{display:flex;margin-top:15px}.handling button{flex:1;display:flex;align-items:center;justify-content:center;background:rgba(247,253,253,.94);border:1px solid #a5c7d3;border-radius:12px;height:43px;box-shadow:0 3px #7babb9;font-size:13px;font-weight:700}.handling button+button{margin-left:10px}.handling small{font-size:10px;margin-left:8px;font-weight:500}.handling button.ready{background:#e4f7fd;border-color:#4e9fbd;color:#185574}.handling button:active{transform:translateY(2px);box-shadow:0 1px #7babb9}.speech{position:absolute;left:50%;top:23%;transform:translateX(-50%);color:#22566d;font-size:12px;font-weight:600;white-space:nowrap;background:rgba(244,253,254,.87);padding:8px 13px;border-radius:20px;transition:opacity .4s;pointer-events:none}.speech.fade{opacity:0}#floaters{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden;pointer-events:none}.floater{position:absolute;top:56%;left:52%;font-size:23px;font-weight:800;color:white;text-shadow:0 2px 3px #235c86;animation:float .95s ease-out forwards}@keyframes float{0%{transform:translateY(8px) scale(.8)}20%{transform:translateY(0) scale(1.1)}100%{transform:translateY(-70px);opacity:0}}.guide-art{height:145px;display:block;max-width:100%;margin:0 auto 14px;object-fit:contain}.guide-product{height:170px}.guide-row{display:flex;align-items:center;margin:13px 0;padding:10px 0;border-bottom:1px solid #cfdfdf}.guide-row b{background:#d6edf4;color:#1c6b87;border-radius:50%;width:27px;height:27px;text-align:center;line-height:27px;margin-right:12px}.guide-row span{font-size:13px}.guide-row small{display:block;font-size:10px;color:#708c95;margin-top:4px}.player-id{font-size:11px;color:#688797;text-align:center;margin:15px 0 0}.cinematic{position:fixed;top:0;bottom:0;left:0;right:0;z-index:50;overflow:hidden;background:linear-gradient(155deg,rgba(16,69,104,.96),rgba(7,29,61,.98));display:flex;align-items:center;justify-content:center;flex-direction:column;color:white;pointer-events:auto}.cinematic-glow{position:absolute;left:-40%;right:-40%;top:15%;height:75%;background:radial-gradient(ellipse,rgba(93,211,255,.32),transparent 64%);transform:rotate(-15deg)}#cinematicImage{position:absolute;object-fit:contain;width:88%;max-width:660px;height:42%;top:25%;filter:drop-shadow(0 16px 20px rgba(0,0,0,.2))}.cinematic.truck #cinematicImage{animation:truck-trip 4s cubic-bezier(.22,.61,.36,1) both}.cinematic.upgrade #cinematicImage{animation:product-rise 2.8s ease-out both;width:60%;height:45%;top:20%}.cinematic.scene #cinematicImage{height:33%;top:27%;width:62%;animation:product-rise 2.5s ease-out both}.cinematic-copy{position:absolute;left:20px;right:20px;bottom:18%;text-align:center}.cinematic-copy small{font-size:11px;letter-spacing:2px;color:#83d9fc}.cinematic-copy h2{font-size:29px;margin:10px 0;color:#fff1a0}.cinematic-copy p{font-size:12px;color:#cbebff;margin:0;line-height:1.7}.cinematic-track{position:absolute;bottom:9%;left:30%;right:30%;height:3px;border-radius:3px;background:rgba(255,255,255,.15);overflow:hidden}.cinematic-track i{display:block;height:100%;background:#ffe38a;width:0}.flying-carton{position:absolute;width:48px;height:38px;object-fit:contain;left:15%;top:68%;animation:crate-load 1.1s ease-in both}@keyframes truck-trip{0%{transform:translateX(-120vw) scale(.9)}25%,66%{transform:translateX(0) scale(1)}100%{transform:translateX(125vw) scale(1)}}@keyframes crate-load{to{transform:translate(130px,-210px) rotate(-15deg) scale(.1);opacity:0}}@keyframes product-rise{0%{transform:translateY(55px) scale(.6) rotate(-8deg);opacity:0}35%{transform:translateY(0) scale(1.05);opacity:1}65%,100%{transform:translateY(0) scale(1)}}.boot-mascot{height:170px;width:170px;object-fit:contain}.certificate-meta{font-size:10px;color:#738a94;text-align:center}.certificate{width:100%}.rankrow{font-variant-numeric:tabular-nums}
.modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:30;background:rgba(4,37,64,0.65882);display:flex;align-items:center;justify-content:center;padding:20px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.sheet{position:relative;border:4px solid #194f7c;border-radius:24px;background:#eefaff;box-shadow:0 8px #103657;width:100%;max-width:420px;max-height:88vh;overflow-y:auto;overscroll-behavior:contain;padding:22px 18px;color:#19496c;-webkit-overflow-scrolling:touch}.sheet h2{font-size:24px;color:#164a77;font-weight:1000;margin:7px 20px 12px 0}.sheet p{font-size:12px;line-height:1.85;color:#46728b}.sheet .label{font-size:10px;font-weight:900;color:#2a9cba;letter-spacing:2px}.close{position:absolute;right:9px;top:8px;border:2px solid #2a648f;border-radius:50%;background:#d3f2ff;color:#275f89;width:31px;height:31px;font-size:23px;font-weight:800;z-index:2}.game-button,.wide{width:100%;border:3px solid #8c5c18;border-radius:13px;box-shadow:0 4px #68461c;background:linear-gradient(#ffe883,#ffc13f);color:#71440f;font-weight:900;font-size:13px;padding:11px;margin-top:12px}.wide.secondary{background:linear-gradient(#e8fcff,#b7e8fa);color:#235a7b;border-color:#3c7ca5;box-shadow:0 4px #235271}.item{display:flex;align-items:center;border-bottom:1px solid #baddea;padding:11px 1px}.item .details{flex:1;margin-left:9px}.item b{display:block;font-size:13px}.item small{display:block;color:#5b8297;font-size:10px;margin-top:4px}.badge{font-size:10px;font-weight:900;border:2px solid #79adbf;background:#e3f9ff;padding:5px 7px;border-radius:9px;color:#2a6d87}.locked{opacity:.5}.bottle-icon{background:linear-gradient(#e7fdff 25%,#55bbdd 25%,#55bbdd 65%,#d8faff 65%);border:2px solid #1882a8;border-top:7px solid #276db5;border-radius:7px 7px 9px 9px;width:25px;height:47px;flex-shrink:0}.tabs{display:flex;border:2px solid #497d9b;border-radius:9px;overflow:hidden;margin:12px 0}.tabs button{flex:1;padding:9px 0;font-size:11px;color:#396480;background:#d7edf8}.tabs button.active{background:#24689b;color:white}.rankrow{display:flex;align-items:center;border-bottom:1px solid #c2dfeb;padding:11px 0;font-size:12px}.rankrow span:nth-child(2){flex:1;margin:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rankrow span:last-child{font-weight:900;color:#16849c}.certificate{width:100%;display:block;border-radius:5px;box-shadow:0 3px 12px rgba(51,85,107,0.21961)}#toast{position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);padding:12px 16px;background:rgba(17,60,99,0.94118);border:2px solid #bdeeff;color:white;border-radius:13px;z-index:90;font-size:12px;font-weight:700;line-height:1.7;max-width:90%;opacity:0;pointer-events:none}#toast.on{opacity:1}#celebration{position:fixed;left:0;right:0;top:0;bottom:0;z-index:80;pointer-events:none;overflow:hidden}.confetti{position:absolute;width:9px;height:18px;top:-20px;animation:fall 2.8s ease-in forwards}@keyframes fall{to{transform:translateY(110vh) rotate(720deg)}}.boot{position:fixed;left:0;right:0;top:0;bottom:0;z-index:100;background:radial-gradient(ellipse at 50% 40%,#33bcce,#126c9c);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:28px}.boot h2{font-size:43px;letter-spacing:3px;margin:8px;text-shadow:0 4px #124574,2px 0 #124574,-2px 0 #124574}.boot p{font-size:12px;line-height:1.8;color:#e4fcff}.boot-drop{width:95px;height:95px;font-size:64px;animation:bob 1s ease-in-out infinite alternate}.boot-track{width:180px;height:9px;border:2px solid #bbf5ff;border-radius:9px;overflow:hidden;margin-top:12px}.boot-track i{display:block;height:100%;width:40%;background:#ffdb66;animation:load 1s infinite alternate}@keyframes load{to{transform:translateX(150%)}}@keyframes bob{to{transform:translateY(-12px)}}.boot.error{z-index:110}.boot.error h2{font-size:25px}.boot .game-button{max-width:280px}button:focus{outline:3px solid #fff5a2;outline-offset:3px}button:focus-visible{outline:3px solid #fff5a2;outline-offset:3px}@media(max-width:355px){.hud{left:12px;right:12px}.upgrade-goal strong{font-size:19px}.bottom{left:16px;right:16px}.fill{padding:0 11px}.fill b{font-size:18px}.fill strong{font-size:13px}.handling button{font-size:12px}.handling small{font-size:9px;margin-left:5px}}@media(max-height:700px){.hud{top:9px;height:80px}.upgrade-goal strong{font-size:18px}.water-meter{height:17px;bottom:7px}.water-meter span{line-height:17px}.bottom{bottom:12px}.fill{height:53px}.handling{margin-top:12px}.handling button{height:38px}.guide-art{height:100px}.sheet{padding:17px 15px}}@media(prefers-reduced-motion:reduce){.floater,.confetti,.boot-drop{animation-duration:.01ms!important}.cinematic.truck #cinematicImage{animation:none}.cinematic.upgrade #cinematicImage,.cinematic.scene #cinematicImage{animation:none}}
.round-controls{display:flex;align-items:flex-end;justify-content:space-around;left:30px;right:30px;bottom:15px;bottom:calc(15px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}.control{width:82px;text-align:center;position:relative;pointer-events:none}.control.primary{width:98px}.round-control,.round-control.fill{display:block;pointer-events:auto;padding:0;margin:0 auto;border:0;background:transparent;width:70px;height:70px;min-height:0;max-height:none;border-radius:50%;box-shadow:none;color:inherit;transition:transform .09s,filter .15s}.round-control.fill{width:86px;height:86px}.round-control img,.round-control.fill img{display:block;width:100%;height:100%;margin:0;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(9,42,69,.22))}.round-control:active,.round-control.fill:active{transform:translateY(2px) scale(.95);box-shadow:none}.round-control:disabled{opacity:.6;filter:grayscale(.7)}.round-control.ready{filter:drop-shadow(0 0 5px rgba(72,196,255,.7))}.control>small,.control>strong{display:inline-block;font-size:11px;color:#173c55;font-weight:700;line-height:18px;margin-top:5px;padding:1px 7px;border-radius:10px;background:rgba(241,251,253,.85);white-space:nowrap}.control.primary>strong{color:#73501b;font-size:12px}.sr-only{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important;clip:rect(0,0,0,0)!important}@media(max-width:355px){.round-controls{left:20px;right:20px}.round-control{width:64px;height:64px}.round-control.fill{width:78px;height:78px}.control{width:74px}.control.primary{width:88px}.control>small{font-size:10px}}
.suspended #cinematicImage,.suspended .flying-carton{animation-play-state:paused}

.dj-hit{transform:rotate(-16deg) scale(1.18);color:#cf7a17!important}.icon-button{transition:transform .1s,color .1s}
/* One safe rectangle serves HUD, controls and every modal, including native chrome. */
.safe-probe{position:fixed;visibility:hidden;pointer-events:none;padding:0;padding-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px));padding-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));padding-left:var(--safe-area-inset-left,env(safe-area-inset-left,0px));padding-right:var(--safe-area-inset-right,env(safe-area-inset-right,0px))}
#app{height:var(--view-height,100%);width:var(--view-width,100%);top:var(--view-top,0px);left:var(--view-left,0px);right:0;bottom:auto}
.hud{top:calc(var(--safe-top,0px) + 8px);left:calc(var(--safe-left,0px) + 12px);right:calc(var(--safe-right,0px) + 12px);height:102px;background:transparent url('./assets/hud-panel.webp') center center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;padding:14px 16px 0;align-items:flex-start}
.hud:before{content:none}.hud img{pointer-events:none;-webkit-user-drag:none}.icon-button{width:44px;height:44px;flex:0 0 44px;padding:0;font-size:22px;border-radius:50%}#ranking img{width:100%;height:100%;display:block;object-fit:contain}#sound{background:rgba(208,238,250,.8);border:1px solid #78b5cf;box-shadow:inset 0 1px 1px #fff}
.upgrade-goal{flex:1;min-width:0;padding:0 4px}.upgrade-goal small{line-height:15px}.upgrade-goal strong{font-size:20px;line-height:26px;white-space:nowrap}.water-meter{left:13%;right:13%;bottom:22px;height:16px;background:#c8e5ed}.water-meter span{font-size:10px;line-height:16px}
.round-controls{left:calc(var(--safe-left,0px) + 16px);right:calc(var(--safe-right,0px) + 16px);bottom:calc(var(--safe-bottom,0px) + 10px)}
.round-control img{pointer-events:none;-webkit-user-drag:none}.speech{top:calc(var(--safe-top,0px) + 116px);max-width:90%;white-space:normal;text-align:center}
.modal,.boot,.cinematic{height:var(--view-height,100%);width:var(--view-width,100%);top:var(--view-top,0px);left:var(--view-left,0px);right:auto;bottom:auto}
.modal,.boot{padding:12px;padding-top:calc(var(--safe-top,0px) + 10px);padding-bottom:calc(var(--safe-bottom,0px) + 12px);padding-left:calc(var(--safe-left,0px) + 12px);padding-right:calc(var(--safe-right,0px) + 12px)}
.sheet{max-height:100%;padding:50px 15px 15px;overflow:hidden;display:flex;flex-direction:column;min-height:0;width:100%;max-width:420px;border-width:3px;border-radius:20px}
#sheetContent{display:flex;flex-direction:column;min-height:0;overflow:hidden;width:100%}.sheet-scroll{min-height:0;flex:1 1 auto;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:0 2px 3px}.sheet-actions{display:flex;flex-wrap:wrap;flex:0 0 auto;padding-bottom:4px}.sheet-actions .wide{flex:1 1 100%;margin:8px 0 0;min-height:44px;padding:8px;font-size:13px;line-height:18px}.close{width:44px;height:44px;right:5px;top:3px;line-height:36px}
.sheet h2{font-size:21px;margin:3px 0 9px;line-height:1.35}.sheet p{line-height:1.6;margin:8px 0}.guide-step{text-align:center}.guide-counter{font-size:11px;color:#4c839d;display:block;margin:0 0 8px}.guide-step .guide-art{height:92px;margin:0 auto 12px}.guide-step p{font-size:13px;max-width:300px;margin:8px auto}.tabs button{min-height:44px}.certificate{max-height:none;height:auto}.guide-art{height:100px;max-width:100%}
.compact-ui .hud{height:90px;padding-top:10px}.compact-ui .water-meter{bottom:18px}.compact-ui .speech{top:calc(var(--safe-top,0px) + 102px)}.compact-ui .sheet{padding:47px 12px 10px}.compact-ui .sheet h2{font-size:19px}.compact-ui .guide-step .guide-art{height:66px;margin-bottom:8px}.compact-ui .sheet-actions .wide{flex-basis:calc(50% - 4px)}.compact-ui .sheet-actions .wide+button{margin-left:8px}.compact-ui .sheet-actions .wide:last-child:nth-child(odd){flex-basis:100%;margin-left:0}.compact-ui .sheet-scroll .guide-art{height:65px}.compact-ui .round-control{width:62px;height:62px}.compact-ui .round-control.fill{width:76px;height:76px}
.short-ui .guide-step .guide-art{height:42px}.short-ui .guide-counter{margin-bottom:3px}.short-ui .guide-step p{font-size:12px;margin:4px auto}.short-ui .sheet h2{font-size:17px;margin-bottom:4px}.short-ui .hud{height:82px;padding-top:7px}.short-ui .water-meter{bottom:15px}.short-ui .round-control{width:52px;height:52px}.short-ui .round-control.fill{width:62px;height:62px}.short-ui .speech{display:none}.short-ui .control>small,.short-ui .control>strong{margin-top:2px;font-size:10px;line-height:16px}
.narrow-ui .hud{left:calc(var(--safe-left,0px) + 8px);right:calc(var(--safe-right,0px) + 8px);padding-left:12px;padding-right:12px}.narrow-ui .upgrade-goal strong{font-size:17px}.narrow-ui .upgrade-goal small{font-size:10px}.narrow-ui .round-controls{left:calc(var(--safe-left,0px) + 8px);right:calc(var(--safe-right,0px) + 8px)}.narrow-ui .control{width:74px}.narrow-ui .control.primary{width:88px}.narrow-ui .control>small{font-size:10px}
/* Fill the generated plate's transparent export margins without cropping the label. */
.hud{background-size:100% 142%}.water-meter{bottom:9px}.compact-ui .water-meter{bottom:8px}.short-ui .water-meter{bottom:7px}
.desktop-hint{display:none}.desktop-ui #app{max-width:none}.desktop-ui .hud{left:50%;right:auto;width:460px;transform:translateX(-50%)}.desktop-ui .round-controls{left:50%;right:auto;width:420px;transform:translateX(-50%);bottom:calc(var(--safe-bottom,0px) + 24px)}.desktop-ui .round-control{width:78px;height:78px}.desktop-ui .round-control.fill{width:94px;height:94px}.desktop-ui .control{width:105px}.desktop-ui .control.primary{width:120px}.desktop-ui .desktop-hint{display:block;position:absolute;bottom:calc(var(--safe-bottom,0px) + 158px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:7px 15px;border-radius:15px;background:rgba(240,250,255,.85);color:#315b75;font-size:12px;pointer-events:none}.desktop-ui .sheet{max-width:460px}.desktop-ui .speech{top:calc(var(--safe-top,0px) + 126px)}body{-webkit-text-size-adjust:100%}

#scene{width:var(--view-width,100%);height:var(--view-height,100%);left:var(--view-left,0px);top:var(--view-top,0px)}
