:root{--sky:#b9eff3;--blue:#24aaca;--blue2:#147f9c;--cream:#fff7dc;--ink:#193c4a;--orange:#ff9b32;--green:#55ce77;--red:#ef6a66;--shelf:#b97943;--shelfDark:#88502e;--box:#d99a58;--boxDark:#a86432}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#143f50;font-family:Arial Rounded MT Bold,Arial,sans-serif;color:var(--ink)}
button{font:inherit;border:0;cursor:pointer;touch-action:manipulation}
#game{width:100%;height:100%;max-width:560px;margin:auto;display:grid;grid-template-rows:auto minmax(0,1fr) minmax(190px,34vh);background:linear-gradient(#bdf1f4 0 62%,#f4d997 62%);position:relative;overflow:hidden;box-shadow:0 0 40px #082936}
.hud{position:relative;min-height:60px;padding:max(10px,env(safe-area-inset-top)) 12px 10px;display:flex;align-items:center;gap:10px;background:linear-gradient(#43c7df,#22a9c9);border-bottom:4px solid #16849f;z-index:8}
.level-pill,.coin-pill{height:auto;min-width:auto;border:0;background:transparent;border-radius:0;display:flex;align-items:flex-end;justify-content:center;gap:4px;box-shadow:none;padding:0}
.level-pill{margin-right:2px}.level-pill span{color:#dcfbff;font-size:11px;letter-spacing:1px;line-height:1.2}.level-pill b{font-size:31px;line-height:1;color:#fff;text-shadow:0 3px 0 #14839c}
.coin-pill{margin-left:2px;gap:5px;align-items:center;color:#fff}.coin-pill b{font-size:30px;line-height:1;text-shadow:0 3px 0 #14839c}.coin-pill .coin-mini{color:#ffd84d;font-size:20px;line-height:1;text-shadow:0 2px 0 #c27d09}.coin-large{color:#ffd84d;border:3px solid #e59b13;border-radius:50%;line-height:.65;text-shadow:none;box-shadow:inset 0 0 0 2px #fff0a2}
.level-progress{height:16px;flex:1;border:3px solid #fff;background:#137f9d;border-radius:12px;overflow:hidden;box-shadow:0 3px 0 #167488}
.level-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#72e873,#d6fb59);border-radius:8px;transition:width .35s ease;box-shadow:inset 0 -3px 0 #4fbd53}
.shift-timer{display:none;position:relative;flex:0 0 46px;width:46px;height:46px;align-items:center;justify-content:center}
.shift-timer.visible{display:flex}
.shift-timer i{position:absolute;inset:0;display:block;border-radius:50%;border:3px solid #fff;background:conic-gradient(#72e873 0 var(--timer-angle,360deg),#ffffff33 var(--timer-angle,360deg) 360deg),repeating-conic-gradient(from -90deg,#ffffff66 0 2deg,transparent 2deg 45deg);box-shadow:0 3px 0 #167488}
.shift-timer i:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#22a9c9;box-shadow:inset 0 0 0 2px #ffffff55}
.shift-timer b{position:relative;z-index:2;font-size:14px;line-height:1;color:#fff;text-shadow:0 2px 0 #14768e}
.shift-timer.danger i{background:conic-gradient(#ff5a52 0 var(--timer-angle,360deg),#ffffff22 var(--timer-angle,360deg) 360deg),repeating-conic-gradient(from -90deg,#ffffff66 0 2deg,transparent 2deg 45deg);box-shadow:0 0 10px #ff342f,0 3px 0 #a63a37}
.shift-timer.danger b{animation:timerDanger .45s infinite}
.round-button{width:28px;height:28px;border-radius:0;background:transparent;color:#fff;font-size:28px;box-shadow:none;padding:0;line-height:1}
.round-button:active{transform:translateY(2px)}.round-button.muted{color:#9bafb5}.round-button.subtle{font-size:25px}
.music-volume-panel{display:none;position:absolute;z-index:60;right:34px;top:54px;width:230px;height:54px;padding:7px 10px;border:3px solid #fff;border-radius:18px;background:#137f9df2;box-shadow:0 5px 0 #0d6177,0 8px 18px #063b4870;align-items:center;gap:8px}.music-volume-panel.show{display:flex}.music-volume-panel button{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#25aeca;color:#fff;font-size:23px;line-height:1;box-shadow:inset 0 0 0 2px #ffffff88}.music-volume-panel input{min-width:0;flex:1;accent-color:#83eb72;touch-action:manipulation}.music-volume-panel b{flex:0 0 42px;color:#fff;font-size:12px;text-align:right;text-shadow:0 2px 0 #0d6177}.music-volume-panel.muted button{color:#9db8be}.music-volume-panel.muted b{opacity:.7}

.warehouse{min-height:0;position:relative;padding:118px 8px 7px;background:linear-gradient(135deg,#c8f4f3,#a9e8ed);overflow:hidden}
.warehouse:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 49%,#ffffff30 50%,transparent 51%),linear-gradient(0deg,transparent 49%,#ffffff25 50%,transparent 51%);background-size:55px 55px}
.warehouse-sign{display:none}.tiny-logo{display:none}.packing-brand{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:4;display:flex;align-items:center;justify-content:center;width:min(500px,92vw);height:auto;aspect-ratio:2093/581;padding:0;overflow:visible;background:transparent;border:0;box-shadow:none;pointer-events:auto;touch-action:manipulation;cursor:pointer}.packing-brand-logo{display:block;width:100%!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center center;filter:drop-shadow(0 3px 0 rgba(6,38,79,.62)) drop-shadow(0 6px 10px rgba(0,0,0,.18));pointer-events:none}
.wildcard-pill{position:absolute;top:5px;left:8px;z-index:6;height:39px;min-width:78px;padding:0 11px;border:4px solid #fff;border-radius:22px;background:linear-gradient(#829eff,#5878e5);color:#fff;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 4px 0 #354da0,0 0 14px #fff8}.wildcard-pill .shield-icon{font-size:25px;filter:drop-shadow(0 2px 0 #30458f);animation:shieldAlive 1.5s ease-in-out infinite}.wildcard-pill b{font-size:21px;text-shadow:0 2px 0 #30458f}.wildcard-pill.bump{animation:shieldBump .32s ease-out}.wildcard-pill.empty{filter:grayscale(1);opacity:.65}
.category-tabs{position:absolute;z-index:5;top:40px;left:6px;right:6px;height:80px;display:flex;align-items:flex-start;justify-content:center;gap:7px;overflow-x:auto;overflow-y:visible;padding:6px 6px 0 6px;scrollbar-width:none;-ms-overflow-style:none}.category-tabs::-webkit-scrollbar{display:none}.category-button{flex:0 0 61px;height:60px;padding:0;border:3px solid #fff;border-radius:18px 18px 7px 7px;background:#7ba1aa;font-size:37px;line-height:52px;box-shadow:0 5px 0 #486b73;filter:saturate(.72);transition:.15s}.category-button.active{height:66px;background:#ffbd4c;box-shadow:0 5px 0 #b97020;filter:none;transform:translateY(-2px)}.category-button:active{transform:translateY(2px)}
.category-button.new-category-attention{position:relative;z-index:8;animation:newCategoryBlink .62s ease-in-out infinite;filter:none}
.category-button.new-category-attention:after{content:"NEW";position:absolute;left:50%;top:-6px;transform:translateX(-50%);padding:2px 5px;border:2px solid #fff;border-radius:8px;background:#ff5a52;color:#fff;font-size:9px;line-height:1;font-weight:bold;letter-spacing:.5px;box-shadow:0 2px 0 #a93530;pointer-events:none}
@keyframes newCategoryBlink{0%,100%{transform:translateY(0) scale(1);box-shadow:0 5px 0 #486b73,0 0 0 0 rgba(255,235,80,0)}50%{transform:translateY(-3px) scale(1.09);box-shadow:0 5px 0 #b97020,0 0 0 8px rgba(255,235,80,.48),0 0 22px #fff15b}}

.shelves{height:100%;position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(65px,1fr);gap:15px 9px;padding:9px 9px 12px;border-left:12px solid var(--shelfDark);border-right:12px solid var(--shelfDark);background:linear-gradient(90deg,#e6b06f 0 4%,#ffcf8b 4% 96%,#e6b06f 96%);box-shadow:0 6px 0 #66391f,0 11px 14px #386c6a66}
.shelves:after{content:"";position:absolute;left:-10px;right:-10px;bottom:-4px;height:11px;background:var(--shelfDark);box-shadow:0 -4px 0 var(--shelf)}
.product{position:relative;min-width:0;border:0;background:linear-gradient(#fffefa,#f2e7ce);border-radius:15px;box-shadow:0 6px 0 #d2a86b,0 8px 6px #70431b44;display:flex;align-items:center;justify-content:center;font-size:clamp(52px,13vw,78px);transition:transform .12s,filter .12s;overflow:visible}
.product:before{content:"";position:absolute;inset:5px;border:2px solid #fff;border-radius:9px;pointer-events:none}.product:active{transform:translateY(4px) scale(.96);box-shadow:0 1px 0 #d2a86b}.product.wrong{animation:wrong .35s}.shelves.tornadoing{pointer-events:none}.shelves.tornadoing:before{content:"🌪️";position:absolute;z-index:20;left:50%;top:50%;font-size:66px;line-height:1;pointer-events:none;filter:drop-shadow(0 5px 4px #295b6688);animation:tornadoCore .33s ease-in-out both}.product.tornado-item{z-index:15;transition:none;animation:tornadoItem .33s cubic-bezier(.35,.02,.3,1) var(--tornado-delay,0ms) both}
.floor-decoration{display:none}
.packing-zone{position:relative;z-index:3;min-height:190px;background:linear-gradient(#efd28d,#ddba69);border-top:5px solid #c18b48;padding:48px 8px max(5px,env(safe-area-inset-bottom));overflow:visible}
.belt{position:absolute;left:-20px;right:-20px;top:34px;height:66%;border-top:8px solid #596b72;border-bottom:8px solid #44545a;background:repeating-linear-gradient(90deg,#8b9ba0 0 24px,#b8c3c5 24px 48px);transform:skewY(-1deg);box-shadow:0 8px 0 #b17d42}.belt:before,.belt:after{content:"";position:absolute;bottom:-18px;width:18px;height:22px;background:#45555a;border-radius:4px}.belt:before{left:12%}.belt:after{right:12%}.belt-lines{height:100%;background:linear-gradient(#ffffff30,transparent 20%,transparent 80%,#00000020);animation:belt 2s linear infinite}
.orders{height:100%;position:relative;display:flex;align-items:flex-end;justify-content:center;gap:4px;z-index:2;padding:0 4px}
.order{height:108px;flex:1 1 0;max-width:112px;min-width:0;position:relative;background:linear-gradient(180deg,#e4b88a,#c78f5d);border:4px solid #95623a;border-radius:20px 20px 28px 28px;box-shadow:inset 0 0 0 3px #f8dfb2,0 8px 0 #744b35,0 11px 10px #61401e55;display:flex;flex-direction:column;padding:16px 7px 12px;animation:orderIn .5s cubic-bezier(.2,1.4,.4,1);filter:saturate(.72) brightness(.9);transform:none;transform-origin:50% 100%;background-image:linear-gradient(180deg,#e4b88a,#c78f5d),repeating-linear-gradient(90deg,transparent 0 18px,#ffffff16 18px 20px);background-blend-mode:normal,screen}.order.active{height:min(178px,95%);flex:1.65 1 0;max-width:184px;filter:none;transform:none;box-shadow:inset 0 0 0 3px #fff5bc,0 8px 0 #77503e,0 0 0 5px #fff,0 0 24px #fff875;z-index:6;padding:20px 8px 14px}
.order:before{content:"";position:absolute;left:27%;top:-24px;width:46%;height:34px;border:6px solid #8b613a;border-bottom:0;border-radius:38px 38px 0 0;background:transparent;box-shadow:inset 0 2px 0 #c99a6e}.order:after{content:"";position:absolute;left:10%;right:10%;bottom:5px;height:8px;border-radius:50%;background:#8e5c3c55;box-shadow:inset 0 2px 0 #f5d5a3}.order.golden{background:linear-gradient(180deg,#ffe46c,#eaaa25);border-color:#a96a08;box-shadow:inset 0 0 0 3px #fff3a5,0 8px 0 #8b580c,0 0 18px #fff46c}.order.big{border-style:double;border-width:6px}.special-badge{position:absolute;z-index:3;top:-26px;left:50%;transform:translateX(-50%);font-size:24px;filter:drop-shadow(0 2px 1px #84502b)}
.queue-number{position:absolute;z-index:5;left:-8px;top:-24px;width:28px;height:28px;border:3px solid #fff;border-radius:50%;background:#71828a;color:#fff;font-size:15px;line-height:22px;text-align:center;box-shadow:0 3px 0 #46545a}.order.active .queue-number{background:#50c96c;box-shadow:0 3px 0 #278d45}
.order-items{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:stretch;justify-items:stretch;grid-auto-rows:1fr;gap:6px;margin-top:6px;padding:2px 2px 6px;height:100%}.order.items-1 .order-items{grid-template-columns:1fr;grid-template-rows:1fr;align-content:stretch;padding:6px 12px 10px}.order.items-1 .need{width:70%;height:70%;align-self:center;justify-self:center}.order.items-2 .order-items{grid-template-columns:1fr;grid-template-rows:repeat(2,1fr);align-content:stretch;gap:8px;padding:4px 14px 8px}.order.items-3 .order-items,.order.items-4 .order-items{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,1fr);align-content:stretch;gap:7px;padding:4px 2px 8px}.order.items-3 .need:last-child{grid-column:1 / span 2;justify-self:center;width:72%}.order.items-5 .order-items,.order.items-6 .order-items{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,1fr);align-content:stretch;gap:5px;padding:2px 2px 8px}.order.items-5 .need:last-child{grid-column:1 / span 2;justify-self:center;width:72%}.order.items-7 .order-items,.order.items-8 .order-items{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,1fr);align-content:stretch;gap:4px;padding:2px 2px 6px}.order.items-7 .need:last-child{grid-column:1 / span 2;justify-self:center;width:72%}.need{position:relative;min-height:0;height:100%;background:#fff9e5;border:2px solid #a86639;border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 -3px 0 #ead8af}.need span{display:block;font-size:24px;line-height:1;transform:translateY(1px)}.order.items-5 .need,.order.items-6 .need{border-radius:9px}.order.items-7 .need,.order.items-8 .need{border-radius:8px}.need.done{filter:saturate(.3);opacity:.55}.need.done:after{content:"✓";position:absolute;color:#3ab963;font-size:27px;text-shadow:0 2px #fff}.need-count{position:absolute;right:-3px;bottom:-4px;min-width:28px;height:28px;padding:0 5px;background:#ed5e52;color:#fff;border:2px solid #fff;border-radius:14px;font-size:17px;line-height:23px;text-align:center;box-shadow:0 2px 0 #9a3e38}.order.items-3 .need-count,.order.items-4 .need-count{min-width:23px;height:23px;font-size:14px;line-height:19px}.order.items-5 .need-count,.order.items-6 .need-count{min-width:22px;height:22px;padding:0 3px;font-size:14px;line-height:18px}.order.items-7 .need-count,.order.items-8 .need-count{min-width:20px;height:20px;padding:0 2px;font-size:12px;line-height:16px}.need.done .need-count{background:#4bc36d}
.urgent-bar{height:9px;margin-top:5px;border:2px solid #854630;border-radius:6px;background:#f7d9aa;overflow:hidden}.urgent-bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#f05a53,#ffd23f,#55d471);transform-origin:left;transition:transform .1s linear}
.flying-product{position:fixed;z-index:30;pointer-events:none;font-size:48px;filter:drop-shadow(0 5px 4px #0005);transition:transform .48s cubic-bezier(.2,.85,.3,1.18),opacity .48s}.spark{position:fixed;z-index:29;pointer-events:none;font-size:20px;animation:spark .65s forwards}
.order.sealing{filter:brightness(1.08)}.order.depart:not(.hand-grab){animation:depart .7s ease-in forwards}
.coin-fly{position:fixed;z-index:40;color:#ffd943;font-size:28px;text-shadow:0 2px 0 #b36d00;animation:coinFly .8s forwards;pointer-events:none}
.overlay{display:none;position:fixed;z-index:100;inset:0;background:#164d5bc7;align-items:center;justify-content:center;padding:18px}.overlay.visible{display:flex;animation:fade .25s}
.start-card,.complete-card,.settings-card,.fail-card{position:relative;width:min(390px,94vw);border:5px solid #fff;border-radius:34px;background:linear-gradient(#bff5ef,#73d8e2);box-shadow:0 12px 0 #116d81,0 20px 35px #052b35aa;text-align:center;padding:28px 20px;overflow:hidden}.start-card:before,.complete-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 20%,#fff8 0 5px,transparent 6px),radial-gradient(circle at 85% 35%,#fff8 0 7px,transparent 8px);pointer-events:none}.logo-box{font-size:95px;filter:drop-shadow(0 7px 0 #926238);position:relative}.logo-box i{position:absolute;width:85px;height:16px;background:#f2cc54;left:50%;top:50%;transform:translate(-50%,-15%) rotate(-5deg);opacity:.8}.start-card h1{font-size:42px;line-height:.82;margin:12px 0 22px;color:#fff;text-shadow:0 4px 0 #14859e,0 6px 4px #0d6577}.start-card h1 em{font-style:normal;color:#ffd64d;text-shadow:0 4px 0 #bd7210}
.play-button,.next-button{position:relative;width:92px;height:92px;border-radius:50%;background:linear-gradient(#80ed6e,#3cbe61);color:#fff;font-size:45px;padding-left:10px;border:5px solid #fff;box-shadow:0 8px 0 #208c49,0 12px 14px #175f5b66;animation:pulse 1.8s infinite}.play-button:active,.next-button:active{transform:translateY(6px);box-shadow:0 2px 0 #208c49}
.complete-card{background:linear-gradient(#fff1a1,#ffbd52);padding:18px 18px 20px}.result-level{display:inline-flex;align-items:center;gap:8px;background:#fff;border:4px solid #ed9634;border-radius:19px;padding:4px 14px;color:#258ba5;box-shadow:0 4px 0 #c66b24}.result-level span{font-size:15px}.result-level b{font-size:30px;color:#f07b2b}.result-stars{height:72px;display:flex;justify-content:center;align-items:flex-end;gap:7px;margin-top:2px}.result-stars span{font-size:58px;color:#d8aa58;text-shadow:0 4px 0 #9b6725;transform:scale(0);animation:starPop .45s forwards}.result-stars span.on{color:#fff349;text-shadow:0 4px 0 #d78312,0 0 12px #fff}.result-stars span:nth-child(2){font-size:70px;animation-delay:.18s}.result-stars span:nth-child(3){animation-delay:.36s}.result-score-row{display:flex;align-items:flex-end;justify-content:center;gap:18px;margin:4px auto 10px}.result-score{display:flex;align-items:flex-end;justify-content:center;gap:9px;margin:0;color:#704316}.result-score span{font-size:18px;font-weight:bold;letter-spacing:.5px}.result-score b{font-size:44px;line-height:.9;color:#fff;text-shadow:0 4px 0 #bf6c1f,0 0 6px #fff4}.result-coins{display:inline-flex;align-items:center;gap:5px;margin-bottom:2px;color:#704316}.result-coins b{font-size:26px;line-height:1;color:#8b5315;text-shadow:0 1px 0 #fff5}.result-coins .coin-large{font-size:24px;color:#f2a617;border:0;box-shadow:none;text-shadow:0 2px 0 #b87508}.unlock-panel{display:none;margin:2px auto 10px;width:min(320px,96%);padding:9px 12px 10px;border:3px solid #fff;border-radius:18px;background:linear-gradient(#6be3d2,#34bfc1);box-shadow:0 4px 0 #18888e;color:#fff;text-align:center}.unlock-panel.show{display:block;animation:starPop .4s}.unlock-panel>b{display:block;font-size:17px;letter-spacing:.8px;color:#fff76b;text-shadow:0 2px 0 #18888e;margin-bottom:6px}.unlock-content{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:34px;line-height:1.05}.unlock-category{display:inline-flex;align-items:center;gap:7px;padding:3px 8px;border-radius:10px;background:#ffffff30;font-size:15px;font-weight:bold}.unlock-products{font-size:36px;letter-spacing:3px}.buy-shield-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:auto;min-width:210px;height:44px;padding:0 8px;margin:0 auto 12px;border:0;border-radius:0;background:transparent;color:#5b3b16;box-shadow:none;font-weight:bold;line-height:1}.buy-shield-button .shield-price{display:inline-flex;align-items:center;gap:5px}.buy-shield-button .shield-price b{font-size:23px}.buy-shield-button .coin-symbol{font-style:normal;color:#f2a617;font-size:25px;text-shadow:0 2px 0 #b87508}.buy-shield-button .shield-arrow{font-size:27px;color:#8a571b}.buy-shield-button .shield-result{font-size:32px;filter:drop-shadow(0 2px 0 #354da0)}.buy-shield-button:active{transform:scale(.96)}.buy-shield-button:disabled{filter:grayscale(.85);opacity:.42;cursor:default;transform:none}.next-button{width:82px;height:82px;font-size:39px;display:block;margin:auto}
.settings-card{background:#fff6dc;color:var(--ink)}.settings-title{font-size:55px;margin-bottom:10px}.studio-credit{margin:0 auto 12px;text-align:center;line-height:1.2}.studio-line{display:block}.studio-producer{font-size:20px;font-weight:bold;letter-spacing:1.1px;color:#6f5737}.studio-tester{margin-top:3px;font-size:13px;color:#a08460}.close-button{position:absolute;right:13px;top:10px;width:43px;height:43px;border-radius:50%;background:#ef6a66;color:#fff;font-size:30px}.wide-button,.reset-button{width:85%;height:58px;margin:8px;border-radius:16px;background:#35b9d3;color:#fff;font-size:22px;box-shadow:0 5px 0 #197f97}.reset-button{background:#e9d7b7;color:#8a654c;box-shadow:0 5px 0 #bfa17b;font-size:15px}.settings-card small{display:block;color:#ae9a79;margin-top:12px}.credits-block{margin:14px auto 0;padding-top:10px;width:88%;border-top:1px solid #d7c6a5;color:#9a805d;font-size:12px;line-height:1.45}.credits-title{font-weight:bold;letter-spacing:.7px;color:#7e6749;margin-bottom:4px}.credits-block a{color:#258ba5;text-decoration:underline;user-select:text}
.level-intro{display:none;position:fixed;z-index:90;inset:0;align-items:center;justify-content:center;pointer-events:none;background:#164d5b55}.level-intro.visible{display:flex;animation:fade .15s}.level-card{width:150px;height:150px;border-radius:35px;border:6px solid #fff;background:linear-gradient(#ffdb53,#ff9b32);box-shadow:0 10px 0 #b45a1c,0 15px 30px #133d46aa;display:flex;align-items:center;justify-content:center;gap:6px;animation:levelPop .9s both}.level-card span{font-size:48px;color:#fff55b;text-shadow:0 4px #b86b17}.level-card b{font-size:72px;color:#fff;text-shadow:0 5px #bf691c}
.fail-card{background:linear-gradient(#ffde7a,#f58c52)}.fail-clock{font-size:100px;filter:drop-shadow(0 6px 0 #a75232);animation:wrong .6s}.fail-score{display:flex;align-items:flex-end;justify-content:center;gap:10px;margin:2px auto 0;color:#704316}.fail-score span{font-size:18px;font-weight:bold;letter-spacing:.7px}.fail-score b{font-size:42px;line-height:.9;color:#fff;text-shadow:0 4px 0 #bf6c1f,0 0 6px #fff4}.retry-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:196px;height:72px;padding:0 22px;border-radius:24px;border:5px solid #fff;background:linear-gradient(#7be770,#3dbd60);color:#fff;font-weight:bold;letter-spacing:.5px;box-shadow:0 8px 0 #258a47;margin-top:20px;text-shadow:0 2px 0 #258a47;white-space:nowrap;overflow:hidden}.retry-icon{flex:0 0 auto;font-size:34px;line-height:1}.retry-label{flex:0 0 auto;font-size:27px;line-height:1}.retry-button:active{transform:translateY(5px);box-shadow:0 3px 0 #258a47}
.ad-button{display:none;width:210px;height:94px;margin:20px auto 0;border:5px solid #fff;border-radius:22px;background:linear-gradient(#ffe680,#f1b13a);color:#7a470d;box-shadow:0 8px 0 #af6419;text-align:left;padding:0 18px 0 16px;position:relative}.ad-button span{position:absolute;left:14px;top:24px;color:#fff;font-size:31px;line-height:1}.ad-button b{display:block;margin-left:40px;margin-top:16px;font-size:24px;line-height:1;font-weight:bold;letter-spacing:.3px}.ad-button small{display:block;margin-left:40px;margin-top:6px;font-size:15px;line-height:1.05;color:#8d5c17;font-weight:bold;letter-spacing:.3px}.ad-button:active{transform:translateY(5px);box-shadow:0 3px 0 #af6419}.ad-overlay{background:#17343ef2}.ad-card{width:220px;height:220px;border:6px solid #fff;border-radius:30px;background:linear-gradient(145deg,#2ab6d1,#6757d9);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;box-shadow:0 12px 0 #102c37}.ad-card b{font-size:64px;letter-spacing:5px}.ad-card span{margin-top:20px;width:58px;height:58px;line-height:58px;border-radius:50%;background:#fff;color:#3856a7;font-size:30px}
.wildcard-lost{display:none;position:fixed;z-index:180;inset:0;pointer-events:none;align-items:center;justify-content:center}.wildcard-lost.show{display:flex}.wildcard-lost span{position:relative;z-index:2;font-size:132px;filter:drop-shadow(0 8px 0 #33488f);animation:shieldBreak .9s both}.wildcard-lost i{position:absolute;font-style:normal;font-size:210px;animation:disasterBurst .9s both}.wildcard-lost b{position:absolute;z-index:3;margin-top:138px;padding:8px 18px;border:4px solid #fff;border-radius:22px;background:linear-gradient(#ff746a,#db433f);color:#fff;font-size:62px;line-height:1;text-shadow:0 4px 0 #9e2427;box-shadow:0 6px 0 #9e2427;white-space:nowrap;letter-spacing:1px;animation:lossNumber .9s both}
.order-reward{display:none;position:fixed;z-index:175;left:50%;top:42%;text-align:center;pointer-events:none;transform:translate(-50%,-50%)}.order-reward.show{display:block;animation:rewardPopQuick .46s both}.order-reward strong{display:block;color:#fff86a;font-size:clamp(42px,11vw,64px);line-height:1;font-weight:bold;text-shadow:0 3px 0 #cf6d22,0 0 12px #fff;white-space:nowrap}
.toast{position:fixed;z-index:200;left:50%;top:18%;transform:translate(-50%,-20px);font-size:54px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes tornadoItem{0%{transform:translate(0,0) rotate(0) scale(1);opacity:1;filter:none}42%{transform:translate(var(--tornado-x),var(--tornado-y)) rotate(var(--tornado-spin)) scale(.72);opacity:1;filter:brightness(1.18)}78%{transform:translate(var(--tornado-x),var(--tornado-y)) rotate(var(--tornado-spin)) scale(.52);opacity:.75;filter:blur(.4px) brightness(1.25)}100%{transform:translate(var(--tornado-x),var(--tornado-y)) rotate(var(--tornado-spin)) scale(.22);opacity:0;filter:blur(1px)}}@keyframes tornadoCore{0%{transform:translate(-50%,-50%) scale(.15) rotate(-35deg);opacity:0}35%{transform:translate(-50%,-50%) scale(1.15) rotate(8deg);opacity:1}75%{transform:translate(-50%,-50%) scale(.9) rotate(-8deg);opacity:1}100%{transform:translate(-50%,-50%) scale(.2) rotate(35deg);opacity:0}}@keyframes shieldAlive{0%,100%{transform:scale(1) rotate(-3deg)}50%{transform:scale(1.14) rotate(3deg);filter:drop-shadow(0 2px 0 #30458f) drop-shadow(0 0 7px #fff)}}@keyframes shieldBump{50%{transform:scale(1.09)}}@keyframes wrong{20%{transform:translateX(-7px) rotate(-4deg)}40%{transform:translateX(7px) rotate(4deg)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}@keyframes belt{to{background-position:48px 0}}@keyframes orderIn{from{transform:translateX(150%) scale(.8);opacity:0}}@keyframes seal{50%{transform:scale(1.06)}100%{transform:scale(.96)}}@keyframes tape{to{transform:scaleY(1)}}@keyframes depart{to{transform:translateX(-170%) rotate(-5deg);opacity:0}}@keyframes spark{to{transform:translate(var(--sx),var(--sy)) scale(0) rotate(180deg);opacity:0}}@keyframes coinFly{to{transform:translate(var(--cx),var(--cy)) scale(.45) rotate(540deg);opacity:.2}}@keyframes fade{from{opacity:0}}@keyframes pulse{50%{transform:scale(1.06)}}@keyframes starPop{60%{transform:scale(1.25) rotate(8deg)}100%{transform:scale(1)}}@keyframes levelPop{0%{transform:scale(.2) rotate(-12deg);opacity:0}35%{transform:scale(1.14) rotate(4deg);opacity:1}75%{transform:scale(1)}100%{transform:scale(.7);opacity:0}}@keyframes timerDanger{50%{opacity:.45}}@keyframes shieldBreak{0%{transform:scale(.2);opacity:0}25%{transform:scale(1.35) rotate(-8deg);opacity:1}55%{transform:scale(1) rotate(10deg)}100%{transform:scale(.15) translateY(180px) rotate(40deg);opacity:0}}@keyframes disasterBurst{0%{transform:scale(.1);opacity:0}35%{transform:scale(1.2);opacity:1}100%{transform:scale(1.7);opacity:0}}@keyframes lossNumber{0%,25%{transform:scale(0);opacity:0}45%{transform:scale(1.35);opacity:1}100%{transform:translateY(-35px);opacity:0}}@keyframes rewardPopQuick{0%{transform:translate(-50%,-50%) scale(.25);opacity:0}35%{transform:translate(-50%,-58%) scale(1.25);opacity:1}100%{transform:translate(-50%,-82%) scale(.92);opacity:0}}


.cart-crash-cart{display:none;position:absolute;z-index:39;left:-105px;top:48%;font-size:72px;line-height:1;pointer-events:none;filter:drop-shadow(0 8px 4px #0005)}.cart-crash-cart i{position:absolute;display:block;right:-18px;top:-22px;font-style:normal;font-size:42px;opacity:0}.cart-crash-cart.show{display:block;animation:runawayCart .9s cubic-bezier(.2,.72,.28,1) both}.cart-crash-cart.show i{animation:cartImpact .9s both}@keyframes runawayCart{0%{left:-105px;transform:rotate(-8deg)}64%{left:54%;transform:rotate(5deg)}75%{left:51%;transform:rotate(-14deg) scale(1.08)}100%{left:51%;transform:rotate(-4deg) scale(.92);opacity:0}}@keyframes cartImpact{0%,60%{opacity:0;transform:scale(.2)}72%{opacity:1;transform:scale(1.35)}100%{opacity:0;transform:scale(1.8)}}.cart-crash-layer{display:none;position:absolute;z-index:24;left:14px;right:14px;top:112px;bottom:8px;pointer-events:none;overflow:hidden}.cart-crash-layer.active{display:block}.crash-product{position:absolute;left:0;top:0;width:72px;height:72px;border:3px solid #fff;border-radius:18px;background:linear-gradient(#fffef8,#f1dfb9);box-shadow:0 7px 0 #9f6537,0 10px 14px #0005;display:flex;align-items:center;justify-content:center;font-size:48px;line-height:1;pointer-events:auto;touch-action:none;will-change:transform;transition:opacity .16s,filter .16s}.crash-product span{filter:drop-shadow(0 4px 2px #0003)}.crash-product:active{filter:brightness(1.12);box-shadow:0 3px 0 #9f6537}.crash-product.wrong{animation:wrong .35s}.crash-product.caught{opacity:0;filter:brightness(1.6);pointer-events:none}.cart-crash-banner{display:none;position:absolute;z-index:41;left:50%;top:22%;transform:translate(-50%,-50%);white-space:nowrap;padding:10px 16px;border:4px solid #fff;border-radius:18px;background:#e65236;color:#fff7b2;font-size:clamp(27px,8vw,43px);font-weight:bold;letter-spacing:.5px;text-shadow:0 3px 0 #80301f;box-shadow:0 6px 0 #742b1c;pointer-events:none}.cart-crash-banner.show{display:block;animation:cartCrashAlert 1s both}.cart-crash-active .shelves .product{opacity:.28;filter:saturate(.45);pointer-events:none}.cart-crash-active .category-tabs{opacity:.96}@keyframes cartCrashAlert{0%{transform:translate(-50%,-50%) translateX(-120%) rotate(-8deg) scale(.65);opacity:0}28%{transform:translate(-50%,-50%) translateX(5%) rotate(4deg) scale(1.12);opacity:1}45%{transform:translate(-50%,-50%) translateX(0) rotate(-2deg) scale(1);opacity:1}78%{transform:translate(-50%,-50%) scale(1);opacity:1}100%{transform:translate(-50%,-65%) scale(.9);opacity:0}}
.blackout-layer{display:none;position:absolute;z-index:25;left:0;right:0;top:60px;bottom:0;pointer-events:none;--fx:50%;--fy:42%;background:radial-gradient(circle 160px at var(--fx) var(--fy),rgba(0,0,0,0) 0 91px,rgba(0,0,0,.18) 121px,rgba(0,0,0,.70) 168px,rgba(0,0,0,.95) 232px);transition:opacity .18s ease}.blackout-layer.active{display:block}.flashlight-handle{position:absolute;z-index:26;left:var(--fx);top:var(--fy);width:68px;height:68px;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ffffffcc 0 10px,#bde8ff88 11px 24px,#3a5b7000 25px),linear-gradient(145deg,#fff8c7,#f2c94f);box-shadow:0 0 0 4px #fff8,0 0 18px #fff6,0 6px 16px #0008}.flashlight-handle span{display:block;font-size:36px;line-height:1;transform:rotate(28deg);filter:drop-shadow(0 2px 1px #0006)}.blackout-banner{display:none;position:absolute;z-index:40;left:50%;top:19%;transform:translate(-50%,-50%);padding:10px 18px;border:4px solid #fff;border-radius:18px;background:#19252d;color:#ffe85b;font-size:clamp(30px,9vw,46px);font-weight:bold;letter-spacing:1px;text-shadow:0 3px 0 #7d6200;box-shadow:0 6px 0 #080d10;pointer-events:none}.blackout-banner.show{display:block;animation:blackoutAlert .85s both}.hud{z-index:35}.blackout-active .product{filter:brightness(.92)}.flood-layer{display:none;position:absolute;z-index:24;left:8px;right:8px;top:118px;bottom:7px;pointer-events:none;overflow:hidden;border-radius:0;--flood-fill-dur:2s}.flood-layer.active{display:block;pointer-events:none}.flood-layer:before{content:"";position:absolute;left:-8%;right:-8%;bottom:0;height:100%;background:linear-gradient(180deg,rgba(145,239,255,.18) 0%,rgba(91,207,248,.38) 20%,rgba(52,157,230,.56) 58%,rgba(27,105,194,.78) 100%);border-top:5px solid rgba(255,255,255,.65);box-shadow:inset 0 15px 30px rgba(255,255,255,.18);transform:translateY(101%);animation:floodRiseGrid var(--flood-fill-dur) linear forwards}.flood-layer:after{content:"";position:absolute;left:-12%;right:-12%;top:-14px;height:30px;background:radial-gradient(circle at 18px 10px,rgba(255,255,255,.9) 0 8px,transparent 9px),radial-gradient(circle at 62px 18px,rgba(255,255,255,.5) 0 6px,transparent 7px),linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.08));border-radius:50%;opacity:0;animation:floodSurfaceGrid var(--flood-fill-dur) linear forwards,floodWave 2.1s linear var(--flood-fill-dur) infinite}.flood-layer.refill:before{animation:none;transform:translateY(101%)}.flood-layer.refill:after{animation:none;opacity:0}.flood-layer.refill.active:before{animation:floodRiseGrid var(--flood-fill-dur) linear forwards}.flood-layer.refill.active:after{animation:floodSurfaceGrid var(--flood-fill-dur) linear forwards,floodWave 2.1s linear var(--flood-fill-dur) infinite}.flood-banner{display:none;position:absolute;z-index:40;left:50%;top:19%;transform:translate(-50%,-50%);padding:10px 18px;border:4px solid #fff;border-radius:18px;background:#1f83ce;color:#f8ffcb;font-size:clamp(30px,9vw,46px);font-weight:bold;letter-spacing:1px;text-shadow:0 3px 0 #0f4d81;box-shadow:0 6px 0 #0d4c74;pointer-events:none}.flood-banner.show{display:block;animation:floodAlert .95s both}.flood-active .product{animation:floodFloat var(--flood-dur,1.9s) ease-in-out var(--flood-delay,0s) infinite alternate;z-index:26;position:relative}.flood-active .category-tabs{z-index:27}.flood-active .product span{filter:drop-shadow(0 5px 3px rgba(0,0,0,.22))}.flood-active .shelves{filter:saturate(1.02)}@keyframes floodRiseGrid{0%{transform:translateY(101%)}100%{transform:translateY(0)}}@keyframes floodSurfaceGrid{0%{transform:translateY(1000%);opacity:0}82%{opacity:.25}100%{transform:translateY(0);opacity:.92}}@keyframes floodWave{0%{transform:translateX(-6%)}100%{transform:translateX(6%)}}@keyframes floodFloat{0%{transform:translate(0,0) rotate(0deg)}50%{transform:translate(var(--flood-x,8px),calc(var(--flood-y,12px)*-.45)) rotate(calc(var(--flood-rot,3deg)*-.45))}100%{transform:translate(calc(var(--flood-x,8px)*-1),var(--flood-y,12px)) rotate(var(--flood-rot,3deg))}}@keyframes floodAlert{0%{transform:translate(-50%,-50%) scale(.3) rotate(-10deg);opacity:0}28%{transform:translate(-50%,-50%) scale(1.12) rotate(3deg);opacity:1}75%{transform:translate(-50%,-50%) scale(1);opacity:1}100%{transform:translate(-50%,-68%) scale(.92);opacity:0}}
@keyframes blackoutAlert{0%{transform:translate(-50%,-50%) scale(.25);opacity:0}25%{transform:translate(-50%,-50%) scale(1.15);opacity:1}75%{transform:translate(-50%,-50%) scale(1);opacity:1}100%{transform:translate(-50%,-70%) scale(.9);opacity:0}}

.start-cover{padding:0;background:#0b3942;overflow:hidden}.start-cover.visible{display:flex}.cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;user-select:none;-webkit-user-drag:none}.cover-play{position:absolute;left:50%;bottom:max(28px,calc(env(safe-area-inset-bottom) + 18px));transform:translateX(-50%);z-index:3;width:88px;height:88px;border-radius:50%;border:5px solid #fff;background:linear-gradient(#ffd84f,#f39b21);color:#fff;font-size:44px;line-height:1;box-shadow:0 8px 0 #a85b13,0 0 24px #ffffffaa;text-shadow:0 3px 0 #a85b13}.cover-play:active{transform:translate(-50%,5px);box-shadow:0 3px 0 #a85b13,0 0 18px #ffffff88}.cover-credit{display:none}
@media(max-height:670px){.music-volume-panel{top:49px;right:29px;width:210px;height:50px}.cover-play{width:72px;height:72px;font-size:36px;bottom:max(18px,calc(env(safe-area-inset-bottom) + 10px))}.cart-crash-layer{top:100px;left:10px;right:10px}.crash-product{width:64px;height:64px;font-size:43px}.blackout-layer{top:56px;background:radial-gradient(circle 138px at var(--fx) var(--fy),rgba(0,0,0,0) 0 80px,rgba(0,0,0,.18) 104px,rgba(0,0,0,.72) 148px,rgba(0,0,0,.95) 202px)}.flood-layer{top:104px;left:8px;right:8px;bottom:7px}.flood-layer:after{top:-12px;height:24px}.flashlight-handle{width:58px;height:58px}.flashlight-handle span{font-size:31px}#game{grid-template-rows:auto minmax(0,1fr) 190px}.hud{min-height:56px;padding-top:max(6px,env(safe-area-inset-top))}.level-pill b,.coin-pill b{font-size:26px}.round-button{font-size:24px;width:24px;height:24px}.shift-timer{width:40px;height:40px;flex-basis:40px}.product{font-size:clamp(46px,11vw,68px)}.warehouse{padding-top:104px}.packing-brand{top:7px;width:min(420px,90vw);height:auto}.category-tabs{top:35px;left:4px;right:4px;height:72px}.category-button{flex-basis:55px;height:54px;font-size:33px;line-height:46px}.category-button.active{height:60px}.order{height:94px;max-width:98px;padding:13px 6px 10px}.order.active{height:155px;max-width:162px;padding:14px 8px 12px}.need span{font-size:22px}.order.items-2 .order-items{padding:4px 12px 8px}.order.items-3 .order-items,.order.items-4 .order-items{padding:3px 2px 7px}.order.items-5 .order-items,.order.items-6 .order-items{padding:2px 2px 7px}.order.items-7 .order-items,.order.items-8 .order-items{padding:2px 2px 5px}.order.items-3 .need-count,.order.items-4 .need-count{min-width:22px;height:22px;font-size:13px;line-height:18px}.order.items-5 .need-count,.order.items-6 .need-count{min-width:20px;height:20px;font-size:13px;line-height:16px}.order.items-7 .need-count,.order.items-8 .need-count{min-width:18px;height:18px;font-size:11px;line-height:14px}.ad-button{width:194px;height:86px}.ad-button b{font-size:21px;margin-top:14px}.ad-button small{font-size:13px;margin-top:5px}.start-card{transform:scale(.85)}.complete-card{transform:scale(.88)}.result-score-row{gap:12px;margin-bottom:7px}.result-score b{font-size:38px}.result-score span{font-size:15px}.result-coins b{font-size:22px}.result-coins .coin-large{font-size:21px}.unlock-panel{margin-bottom:6px;padding:5px 8px}.buy-shield-button{height:40px;margin-bottom:8px}.buy-shield-button .shield-price b{font-size:20px}.buy-shield-button .coin-symbol{font-size:22px}.buy-shield-button .shield-arrow{font-size:24px}.buy-shield-button .shield-result{font-size:29px}}
@media(min-width:700px){body{background:radial-gradient(circle,#28738a,#103b4b)}#game{height:min(900px,100%);top:50%;transform:translateY(-50%);border-radius:24px}.start-cover{inset:auto;left:50%;top:50%;width:min(560px,calc(100vw - 40px));height:min(900px,calc(100vh - 32px));transform:translate(-50%,-50%);border-radius:30px;border:4px solid #fff;box-shadow:0 22px 46px #041f28c7,0 0 0 10px #ffffff12;background:#0b3942;overflow:hidden;padding:0;display:none}.start-cover.visible{display:block}.start-cover .cover-image{inset:0;width:100%;height:100%;border-radius:26px;object-fit:cover;object-position:center top;background:#0b3942}.start-cover .cover-play{left:50%;bottom:56px;width:80px;height:80px;font-size:40px;z-index:3}.start-cover .cover-credit{display:block;position:absolute;left:0;right:0;bottom:6px;z-index:4;text-align:center;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px;text-shadow:0 2px 4px #00222d;padding:6px 0 8px;background:linear-gradient(180deg,rgba(8,39,49,0),rgba(8,39,49,.82) 40%,rgba(8,39,49,.92) 100%)}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.dev-console{z-index:260;background:#07171dcc}.dev-console.visible{display:flex}.dev-card{position:relative;width:min(92vw,420px);padding:24px 18px 18px;border:4px solid #fff;border-radius:22px;background:#173d49;color:#fff;box-shadow:0 9px 0 #08242c}.dev-title{text-align:center;font-size:25px;font-weight:bold;letter-spacing:2px;color:#ffe85b}.dev-help{margin:13px 0 15px;text-align:center;font-size:12px;line-height:1.5;color:#d8f7ff}.dev-card form{display:flex;gap:8px}.dev-card input{min-width:0;flex:1;height:48px;padding:0 12px;border:3px solid #fff;border-radius:12px;background:#0c2932;color:#fff;font:700 17px Arial,sans-serif;text-transform:uppercase;outline:none;user-select:text}.dev-card input:focus{border-color:#ffe85b}.dev-card form button{height:48px;padding:0 16px;border:3px solid #fff;border-radius:12px;background:#ff9b32;color:#fff;font-weight:bold;box-shadow:0 4px 0 #a85d18}.dev-close{position:absolute;right:9px;top:7px;width:36px;height:36px;background:transparent;color:#fff;font-size:30px}.dev-status{min-height:22px;margin-top:12px;text-align:center;font-size:13px;color:#98f3aa}.dev-status.error{color:#ffaaa5}

50%{opacity:1;transform:translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1.15)}}

.product.tutorial-target{animation:tutorialProductBlink .55s ease-in-out infinite!important;z-index:20!important;outline:6px solid #fff45f;outline-offset:-4px;box-shadow:0 6px 0 #d2a86b,0 0 0 7px #fff,0 0 30px 14px #fff45f!important}
.category-button.tutorial-target{animation:tutorialCategoryBlink .62s ease-in-out infinite;z-index:12;filter:none}
@keyframes tutorialProductBlink{0%,100%{transform:scale(.96);filter:brightness(.9)}50%{transform:scale(1.12);filter:brightness(1.45)}}
@keyframes tutorialCategoryBlink{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.1);box-shadow:0 5px 0 #b97020,0 0 0 7px #fff15b88,0 0 20px #fff15b}}
.bag-hand{position:absolute;z-index:30;left:50%;top:-92px;transform:translateX(-50%) translateY(-45px) rotate(-8deg) scale(.7);font-size:72px;line-height:1;opacity:0;pointer-events:none;filter:drop-shadow(0 5px 4px #0005)}.order.hand-grab .bag-hand{animation:bagHandGrab .72s ease-out forwards}.order.hand-grab{animation:bagLift .72s .32s ease-in forwards!important}@keyframes bagHandGrab{0%{opacity:0;transform:translateX(-50%) translateY(-45px) rotate(-8deg) scale(.7)}30%{opacity:1;transform:translateX(-50%) translateY(18px) rotate(2deg) scale(1)}70%,100%{opacity:1;transform:translateX(-50%) translateY(20px) rotate(0) scale(1)}}@keyframes bagLift{0%{transform:scale(1.19) translateY(0);opacity:1}100%{transform:scale(1.19) translateY(-220px) rotate(-6deg);opacity:0}}
.complete-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:2px}.scoreboard-button{width:62px;height:62px;border-radius:50%;border:4px solid #fff;background:linear-gradient(#ffe06c,#f2ad22);font-size:30px;box-shadow:0 6px 0 #b66a16}.scoreboard-button:active{transform:translateY(4px);box-shadow:0 2px 0 #b66a16}.scoreboard-card{position:relative;width:min(420px,94vw);max-height:86vh;overflow:hidden;border:5px solid #fff;border-radius:30px;background:linear-gradient(#fff4bd,#ffc95e);box-shadow:0 12px 0 #a86922,0 20px 35px #052b35aa;padding:24px 14px 16px;text-align:center;display:flex;flex-direction:column}.scoreboard-title{flex:none;font-size:27px;font-weight:bold;color:#7a4a14;text-shadow:0 2px 0 #fff;margin:4px 0 12px}.scoreboard-list{display:grid;gap:6px;overflow-y:auto;overscroll-behavior:contain;min-height:80px;max-height:62vh;padding:3px 4px 8px;scrollbar-width:thin}.score-row{display:grid;grid-template-columns:46px minmax(0,1fr) 92px;align-items:center;min-height:43px;padding:4px 8px;border-radius:13px;background:#fff9df;border:2px solid #e5b45c;color:#704316}.score-row.you{background:#dfffd5;border-color:#62c968;box-shadow:0 0 0 2px #fff}.score-rank{font-size:18px;font-weight:bold}.score-info{text-align:left;min-width:0}.score-info b{display:flex;align-items:center;gap:7px;min-width:0;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-flag{flex:none;font-size:20px;line-height:1}.score-points{font-size:18px;font-weight:bold;color:#e67b24;text-align:right}.score-empty{padding:25px 8px;color:#9b774b;font-size:15px}.scoreboard-player{flex:none;padding:8px 4px 0}.score-player-label{padding:7px 0 5px;border-top:2px dashed #c98a32;color:#80501a;font-size:11px;font-weight:bold;letter-spacing:1.2px}.world-name-panel{z-index:290}.world-name-card{width:min(340px,88vw);padding:26px 20px 22px;border:5px solid #fff;border-radius:28px;background:linear-gradient(#fff4bd,#ffc95e);box-shadow:0 12px 0 #a86922,0 20px 35px #052b35aa;text-align:center}.world-name-title{font-size:26px;font-weight:bold;color:#7a4a14;text-shadow:0 2px 0 #fff}.world-name-text{margin:12px 0 9px;color:#80501a;font-size:13px;font-weight:bold;letter-spacing:.8px}.world-name-input{display:block;width:100%;height:54px;box-sizing:border-box;padding:0 12px;border:4px solid #e2a845;border-radius:15px;background:#fffdf1;color:#5f3b13;text-align:center;font:700 20px Arial,sans-serif;outline:none;text-transform:none}.world-name-input:focus{border-color:#f47d2e;box-shadow:0 0 0 3px #fff}.world-name-input.invalid{border-color:#e64f42;animation:wrong .35s}.world-name-save{width:150px;height:50px;margin-top:14px;border:4px solid #fff;border-radius:16px;background:linear-gradient(#68d86f,#2fad4b);color:#fff;font-size:18px;font-weight:bold;box-shadow:0 5px 0 #197a35;text-shadow:0 2px 0 #197a35}.world-name-save:active{transform:translateY(3px);box-shadow:0 2px 0 #197a35}@media(max-height:670px){.scoreboard-card{padding:18px 12px 12px}.scoreboard-title{font-size:22px;margin-bottom:7px}.scoreboard-list{max-height:58vh}.score-row{min-height:36px}.score-info b{font-size:14px}.score-flag{font-size:17px}.score-points{font-size:16px}.world-name-card{padding:20px 18px 18px}.world-name-input{height:48px}}

/* v1.76 ranking record + 7-category rail */
.category-tabs.many-categories{justify-content:flex-start}
.fail-record{display:block;margin-top:3px;color:#fff7b2;font-size:13px;font-weight:bold;letter-spacing:.5px;line-height:1.15;text-shadow:0 2px 0 #9e2427}

/* v1.77 world record feedback + clean preview baskets */
.scoreboard-status{display:flex;flex:none;align-items:center;justify-content:center;gap:9px;min-height:0;margin:-4px 4px 8px;color:#80501a;font-size:12px;font-weight:bold;letter-spacing:.5px}.scoreboard-status:empty{display:none}.scoreboard-status b{padding:5px 9px;border-radius:12px;background:#39bd59;color:#fff;font-size:14px;letter-spacing:.7px;text-shadow:0 1px 0 #16762c;box-shadow:0 2px 0 #16762c}.scoreboard-status span{white-space:nowrap}.scoreboard-status strong{font-size:16px;color:#e56f1f}.order:not(.active) .need-count{display:none!important}

/* v1.79 ranking result overlay */
#scoreboardPanel{z-index:320}

@keyframes recordFlash{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(1.08)}}
.fail-record.new-record,.scoreboard-status .new-record-flash{animation:recordFlash .65s ease-in-out infinite;display:inline-block}

/* v100 record/restart */
.fail-new-record{display:none;margin:-7px auto 8px;color:#fff;font-size:25px;font-weight:900;letter-spacing:1.4px;text-shadow:0 3px 0 #b65b1f,0 0 12px #fff7}
.fail-new-record.show{display:block;animation:recordFlash .65s ease-in-out infinite}
.fail-card.record-win .fail-clock{animation:recordCup .8s ease-in-out infinite alternate;filter:drop-shadow(0 6px 0 #a75232) drop-shadow(0 0 14px #fff8)}
.fail-card.record-win .fail-score{margin-top:0}
.fail-card.record-win .fail-record{display:none!important}
.retry-button:disabled{opacity:.8;pointer-events:none;filter:saturate(.75)}
@keyframes recordCup{from{transform:scale(1) rotate(-3deg)}to{transform:scale(1.08) rotate(3deg)}}

.ranking-error{display:none;box-sizing:border-box;width:100%;max-height:96px;overflow:auto;margin:14px auto -4px;padding:9px 10px;border:2px solid #b62d24;border-radius:10px;background:#fff5e9;color:#8f211a;font:700 11px/1.28 Arial,sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:0 3px 0 #a64b2b55}.ranking-error.show{display:block}.score-error{margin:10px 4px;padding:12px;border:2px solid #c84a3b;border-radius:12px;background:#fff1e6;color:#9d2e25;font:700 11px/1.35 Arial,sans-serif;text-align:left;overflow-wrap:anywhere}


/* v1.12 - mobile logo fallback; JS config applies exact inline size */
@media (max-width:600px){.packing-brand{width:200px!important;max-width:92vw!important;top:-12px!important}}


/* Lucky Spin event */
.lucky-spin-layer{display:none;position:absolute;z-index:70;inset:0;background:rgba(5,17,29,.82);backdrop-filter:blur(3px);align-items:center;justify-content:center;padding:74px 14px 18px;pointer-events:auto}.lucky-spin-layer.active{display:flex;animation:luckyFadeIn .18s ease-out}.lucky-spin-card{width:min(390px,94vw);display:flex;flex-direction:column;align-items:center;gap:10px}.lucky-spin-title{padding:8px 18px;border:4px solid #fff;border-radius:18px;background:linear-gradient(#ffb832,#f07821);color:#fff7c8;font-size:clamp(27px,8vw,42px);font-weight:900;letter-spacing:.5px;text-shadow:0 3px 0 #8c3a13;box-shadow:0 7px 0 #742c13,0 12px 24px #0008;white-space:nowrap}.lucky-wheel-wrap{position:relative;width:min(330px,82vw);aspect-ratio:1/1;margin-top:8px;filter:drop-shadow(0 12px 12px rgba(0,0,0,.45))}.lucky-wheel{display:block;width:100%;height:100%;border-radius:50%;background:#173850;border:8px solid #fff;box-sizing:border-box;will-change:transform}.lucky-wheel-pointer{position:absolute;z-index:4;left:50%;top:-18px;transform:translateX(-50%);font-size:47px;line-height:1;color:#fff43f;text-shadow:0 3px 0 #8b3c11,0 0 4px #000;filter:drop-shadow(0 3px 1px #0008);pointer-events:none}.lucky-spin-result{min-height:48px;padding:8px 17px;border-radius:15px;font-size:clamp(22px,6.5vw,32px);font-weight:900;letter-spacing:.4px;opacity:0;transform:scale(.65);transition:opacity .16s,transform .2s;text-align:center}.lucky-spin-result.show{opacity:1;transform:scale(1.08)}.lucky-spin-result.win{background:#e9fff0;color:#13743a;border:4px solid #fff;box-shadow:0 5px 0 #188a49}.lucky-spin-result.coins{background:#fff2a6;color:#8a5300;border:4px solid #fff;box-shadow:0 5px 0 #bf7c08}.lucky-spin-result.shield{background:#dfffea;color:#116b36;border:4px solid #fff;box-shadow:0 5px 0 #2a9a53}.lucky-spin-result.levels{background:#eee7ff;color:#513094;border:4px solid #fff;box-shadow:0 5px 0 #7353bd}.lucky-spin-result.lose{background:#111820;color:#fff;border:4px solid #fff;box-shadow:0 5px 0 #000}.lucky-bonus-pill{display:none;position:absolute;z-index:48;left:50%;top:max(66px,calc(env(safe-area-inset-top) + 62px));transform:translateX(-50%);padding:7px 13px;border:3px solid #fff;border-radius:20px;background:#ff9a28;color:#fff;font-size:18px;font-weight:900;white-space:nowrap;text-shadow:0 2px 0 #8b3c11;box-shadow:0 4px 0 #a84416,0 7px 12px #0004;pointer-events:none}.lucky-bonus-pill.show{display:block;animation:luckyBonusPulse .75s ease-in-out infinite alternate}@keyframes luckyFadeIn{from{opacity:0}to{opacity:1}}@keyframes luckyBonusPulse{from{transform:translateX(-50%) scale(.96)}to{transform:translateX(-50%) scale(1.04)}}
@media(max-height:670px){.lucky-spin-layer{padding-top:60px}.lucky-spin-title{font-size:27px;padding:6px 14px}.lucky-wheel-wrap{width:min(270px,70vw)}.lucky-spin-result{font-size:22px;min-height:40px;padding:6px 13px}.lucky-bonus-pill{top:max(58px,calc(env(safe-area-inset-top) + 54px));font-size:16px}}

/* Lucky Spin 2 - high risk event */
.lucky-spin-layer.lucky2{background:rgba(9,0,2,.9)}.lucky-spin-layer.lucky2 .lucky-spin-title{background:linear-gradient(#bd2028,#4d0508);color:#fff;border-color:#ffdd66;text-shadow:0 3px 0 #250002;box-shadow:0 7px 0 #270103,0 12px 24px #000b}.lucky-spin-layer.lucky2 .lucky-wheel-pointer{color:#ffdf48}.lucky-spin-result.death{background:#09090b;color:#fff;border:4px solid #d2242d;box-shadow:0 5px 0 #4c0004;animation:luckyDeathPulse .35s ease-in-out infinite alternate}@keyframes luckyDeathPulse{from{transform:scale(1.02)}to{transform:scale(1.12)}}

/* v1.88: desktop keeps the original 560x900 proportion; freezer is an isolated overlay */
@media(min-width:700px){#game{width:min(560px,calc((100vh - 32px)*.622222));height:auto;aspect-ratio:28/45;max-height:calc(100vh - 32px);top:50%;transform:translateY(-50%)}}
.freezer-layer{display:none;position:absolute;z-index:38;left:14px;right:14px;top:112px;bottom:8px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);pointer-events:none;overflow:hidden;border-radius:12px}
.freezer-layer.active{display:grid}
.freezer-zone{position:relative;display:block;width:100%;height:100%;padding:0;margin:0;border:1px solid rgba(255,255,255,.45);border-radius:5px;background:radial-gradient(circle at 28% 25%,rgba(255,255,255,.92),rgba(220,248,255,.78) 34%,rgba(159,221,238,.72) 72%,rgba(232,252,255,.86));box-shadow:inset 0 0 18px rgba(255,255,255,.9),inset 0 0 4px #5bb4ce;pointer-events:auto;touch-action:manipulation;overflow:hidden}
.freezer-zone:before,.freezer-zone:after{content:"";position:absolute;left:50%;top:50%;width:0;height:2px;background:#4c91ad;transform-origin:left center;opacity:0;box-shadow:0 0 2px #fff}
.freezer-zone.hit1:before{width:54%;opacity:.9;transform:rotate(28deg)}
.freezer-zone.hit2:before{width:65%;opacity:1;transform:rotate(28deg)}
.freezer-zone.hit2:after{width:58%;opacity:1;transform:rotate(-38deg)}
.freezer-zone.breaking{opacity:0;transform:scale(1.08);transition:opacity .12s,transform .12s;pointer-events:none}
.freezer-zone.thawed{opacity:0;pointer-events:none;transition:opacity .18s}
.freezer-banner{display:none;position:absolute;z-index:45;left:50%;top:22%;transform:translate(-50%,-50%);white-space:nowrap;padding:10px 16px;border:4px solid #fff;border-radius:18px;background:#72d9ee;color:#fff;font-size:clamp(27px,8vw,43px);font-weight:bold;text-shadow:0 3px 0 #267f9b;box-shadow:0 6px 0 #267f9b;pointer-events:none}.freezer-banner.show{display:block;animation:cartCrashAlert 1s both}
@media(max-height:670px){.freezer-layer{top:100px;left:10px;right:10px;bottom:7px}}

/* RUSH event */
.rush-banner{display:none;position:absolute;z-index:60;left:50%;top:25%;transform:translate(-50%,-50%);padding:10px 24px;border:4px solid #fff;border-radius:18px;background:#ff493d;color:#fff;font-size:clamp(38px,11vw,64px);font-weight:900;letter-spacing:2px;text-shadow:0 4px 0 #9b1d18;box-shadow:0 7px 0 #9b1d18;pointer-events:none}.rush-banner.show{display:block;animation:rushBannerPop 1s both}.shift-timer.rush{animation:rushClockShake .18s infinite}.shift-timer.rush i{box-shadow:0 0 13px rgba(255,70,50,.9),0 3px 0 #a63a37}
@keyframes rushBannerPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}28%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.08)}}
@keyframes rushClockShake{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(-2px,1px) rotate(-4deg)}50%{transform:translate(2px,-1px) rotate(4deg)}75%{transform:translate(-1px,-1px) rotate(-3deg)}}
/* BurgerRush theme */
body{background:#24120d}
.warehouse{background:linear-gradient(135deg,#fff1c7,#ffd27a)}
.warehouse:before{background:linear-gradient(90deg,transparent 49%,#b6402520 50%,transparent 51%),linear-gradient(0deg,transparent 49%,#b6402518 50%,transparent 51%);background-size:55px 55px}
.category-button{background:#b52b24;box-shadow:0 6px 0 #711813,0 9px 13px #0004}
.category-button.active{background:#f4a621;box-shadow:0 7px 0 #a96509,0 10px 14px #0004}
.product{background:linear-gradient(#fffdf4,#ffe6a5);box-shadow:0 7px 0 #a76025,0 10px 13px #0003}
.packing-zone{background:linear-gradient(#b52b24,#781b17);border-top:5px solid #f5ad28}
.belt{background:#332d2b;border-color:#161211}

/* BurgerRush v0.2 - fast food dispenser */
.packing-brand{top:3px!important;width:min(235px,44vw)!important;aspect-ratio:2093/581!important;z-index:5!important}
.packing-zone{padding-top:35px!important}
.category-tabs{top:45px!important;left:14px!important;right:14px!important;height:70px!important;gap:8px!important;padding:5px!important;background:linear-gradient(#5c2119,#32120e)!important;border:4px solid #f0c06a!important;border-radius:16px!important;box-shadow:0 6px 0 #1e0b08,0 10px 18px #0004!important;overflow:visible!important}
.category-button{flex:1 1 50%!important;max-width:none!important;height:54px!important;border-radius:10px!important;font-size:25px!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;background:linear-gradient(#c8432f,#92291f)!important;box-shadow:inset 0 0 0 2px #e77a59,0 4px 0 #56150f!important;color:#fff!important}
.category-button span{font-size:29px}.category-button b{font:900 14px Arial,sans-serif;letter-spacing:.7px}.category-button.active{height:54px!important;transform:none!important;background:linear-gradient(#ffbd38,#e88116)!important;color:#51210b!important;box-shadow:inset 0 0 0 2px #ffe49a,0 4px 0 #9a4b09!important}
.warehouse{padding-top:124px!important;background:linear-gradient(180deg,#f6d48f 0 18%,#d9b270 18% 20%,#f1c979 20% 100%)!important}
.shelves{border-left:10px solid #5e2c18!important;border-right:10px solid #5e2c18!important;background:linear-gradient(90deg,#8c4c25 0 3%,#d9954b 3% 97%,#8c4c25 97%)!important;box-shadow:0 6px 0 #431b0e,0 11px 14px #0004!important}
.product{background:linear-gradient(#fff8dc,#f2d38f)!important;border-radius:13px!important;box-shadow:0 6px 0 #8b5428,0 8px 6px #0003!important}
@media(max-height:670px){.packing-brand{width:min(205px,42vw)!important;top:2px!important}.packing-zone{padding-top:31px!important}.category-tabs{top:40px!important;height:64px!important}.category-button,.category-button.active{height:49px!important}.warehouse{padding-top:110px!important}}
@media(max-width:600px){.packing-brand{width:210px!important;max-width:44vw!important;top:3px!important}.category-tabs{left:10px!important;right:10px!important}.category-button b{font-size:12px!important}}

/* BurgerRush v0.3 - split counter: fixed drink dispenser + food display */
.category-tabs{display:none!important}
.warehouse{padding-top:58px!important}
.shelves{display:grid!important;grid-template-columns:36% 64%!important;grid-template-rows:1fr!important;gap:8px!important;padding:8px!important;border-left:8px solid #5e2c18!important;border-right:8px solid #5e2c18!important;overflow:hidden!important}
.shelves:after{z-index:10}
.drink-dispenser,.food-display{position:relative;min-width:0;height:100%;padding:35px 6px 8px;border-radius:12px;overflow:hidden}
.station-title{position:absolute;top:7px;left:7px;right:7px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:7px;font:900 12px Arial,sans-serif;letter-spacing:1px;color:#fff;text-shadow:0 2px 0 #0005}
.drink-dispenser{background:linear-gradient(90deg,#393b3d,#62676a 48%,#35383a);border:3px solid #222;box-shadow:inset 0 0 0 2px #8f979a,0 5px 0 #1b1c1d}
.drink-dispenser .station-title{background:#232526;border:1px solid #777}
.drink-grid{height:100%;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,1fr);gap:7px}
.drink-product{position:relative!important;width:100%!important;height:100%!important;min-height:0!important;border:2px solid #e5e5e5!important;border-radius:8px!important;background:linear-gradient(#f5f5f5,#bfc4c6)!important;box-shadow:inset 0 0 0 2px #777,0 3px 0 #171819!important}
.drink-product span{font-size:clamp(28px,7vw,43px)!important;filter:drop-shadow(0 2px 1px #0003)}
.drink-nozzle{position:absolute;right:7px;bottom:5px;width:12px;height:8px;border-radius:2px;background:#252728;box-shadow:inset 0 2px #777}
.food-display{background:linear-gradient(90deg,#8c4c25 0 4%,#d9954b 4% 96%,#8c4c25 96%);border:3px solid #6a351a;box-shadow:inset 0 0 0 2px #e5b46d,0 5px 0 #431b0e}
.food-display .station-title{background:linear-gradient(#c8432f,#92291f);border:1px solid #e77a59}
.food-grid{height:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(62px,1fr);gap:8px}
.food-product{width:100%!important;height:100%!important;min-height:0!important}
@media(max-height:670px){.warehouse{padding-top:52px!important}.shelves{grid-template-columns:35% 65%!important;gap:6px!important;padding:6px!important}.drink-dispenser,.food-display{padding-top:31px!important}.drink-grid,.food-grid{gap:5px!important}.station-title{top:5px;height:22px}}

/* BurgerRush v0.4 - real drinks machine + serving trays */
.drink-dispenser{padding:36px 8px 9px!important;background:linear-gradient(90deg,#24282b,#596166 16%,#343a3e 50%,#596166 84%,#24282b)!important}
.drink-machine{height:100%;display:flex;flex-direction:column;gap:7px;min-height:0}
.drink-cup-bay{position:relative;flex:1 1 38%;min-height:74px;border:3px solid #17191a;border-radius:10px;background:linear-gradient(#16191b 0 28%,#34393c 28% 100%);box-shadow:inset 0 0 0 2px #747d81;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;overflow:hidden}
.drink-cup-bay:before{content:"";position:absolute;top:8px;left:50%;transform:translateX(-50%);width:34px;height:14px;border-radius:3px;background:#111;box-shadow:0 4px 0 #080909}
.machine-cup{position:relative;width:42px;height:53px;background:linear-gradient(90deg,#f8f8f8,#fff,#d8dde0);clip-path:polygon(8% 0,92% 0,82% 100%,18% 100%);box-shadow:inset 0 0 0 2px #b9bec1}
.machine-cup:before{content:"";position:absolute;left:4px;right:4px;top:5px;height:9px;border-radius:50%;background:#d9dde0}
.machine-cup:after{content:"";position:absolute;left:9px;right:9px;bottom:5px;height:25px;background:linear-gradient(#6d351d,#3d160e);opacity:.85;border-radius:0 0 5px 5px}
.drink-buttons{flex:1 1 62%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:7px;min-height:0}
.drink-product{display:flex!important;flex-direction:column!important;gap:1px!important;padding:3px!important;border:2px solid #d9dcde!important;border-radius:9px!important;background:linear-gradient(#666d71,#353a3d)!important;box-shadow:inset 0 0 0 2px #181a1b,0 3px 0 #151617!important;color:#fff!important;text-shadow:0 1px 1px #000!important}
.drink-product span{font-size:clamp(22px,5.2vw,32px)!important;line-height:1!important}
.drink-product b{display:block;font:900 clamp(7px,1.8vw,10px) Arial,sans-serif;line-height:1;letter-spacing:.2px;color:#fff}
.drink-product:active{transform:translateY(3px) scale(.96)!important}
.drink-nozzle{display:none!important}
.drink-product[data-product="cola"]{background:linear-gradient(#bf3430,#6f1816)!important}
.drink-product[data-product="orange"]{background:linear-gradient(#ffae32,#dc7014)!important}
.drink-product[data-product="lemon"]{background:linear-gradient(#e8d94a,#a99b16)!important}
.drink-product[data-product="water"]{background:linear-gradient(#4ab9e8,#1679ae)!important}

.order,.order.active{border-radius:13px!important;background:linear-gradient(#d9dde0,#aeb5b9)!important;border:4px solid #737b80!important;box-shadow:inset 0 0 0 3px #f5f7f8,0 7px 0 #4d5458,0 10px 10px #0004!important;padding-top:9px!important}
.order.active{box-shadow:inset 0 0 0 3px #fff,0 7px 0 #4d5458,0 0 0 5px #fff,0 0 24px #fff875!important}
.order:before{display:none!important}
.order:after{left:6%!important;right:6%!important;bottom:5px!important;height:5px!important;background:#70787d66!important;box-shadow:none!important}
.order.golden{background:linear-gradient(#ffe46c,#eaaa25)!important;border-color:#a96a08!important}
.order-items{margin-top:0!important}
.need{background:#fff8df!important;border-color:#7d8589!important;box-shadow:inset 0 -3px 0 #d6dadd!important}

/* BurgerRush v0.5 - press-and-hold drink dispenser */
.drink-machine{display:flex!important;flex-direction:column!important;gap:8px!important}
.drink-buttons{order:1!important;flex:0 0 31%!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;grid-template-rows:1fr!important;gap:4px!important}
.drink-product{min-width:0!important;padding:3px 1px!important;border-radius:7px!important;touch-action:none;user-select:none}
.drink-product span{display:block;width:18px;height:8px;border-radius:5px;box-shadow:inset 0 1px #fff8,0 1px 2px #0005}
.drink-product b{font-size:clamp(6px,1.45vw,9px)!important;letter-spacing:-.2px!important}
.drink-product.pressed{transform:translateY(3px) scale(.96)!important;filter:brightness(1.18)}
.drink-product[data-product="cola"] span{background:#54251d}.drink-product[data-product="orange"] span{background:#ff8b16}.drink-product[data-product="lemon"] span{background:#e6d928}.drink-product[data-product="water"] span{background:#56c9f2}
.drink-cup-bay{order:2!important;flex:1 1 auto!important;min-height:0!important;padding-bottom:8px!important;overflow:hidden!important}
.drink-nozzle-main{position:absolute;z-index:5;top:8px;left:50%;transform:translateX(-50%);width:40px;height:17px;border-radius:4px;background:linear-gradient(#303437,#080909);box-shadow:inset 0 2px #747b7e,0 3px 0 #050505}
.drink-nozzle-main:after{content:"";position:absolute;left:14px;top:14px;width:12px;height:12px;border-radius:0 0 4px 4px;background:#111}
.drink-stream{position:absolute;z-index:3;left:50%;top:34px;transform:translateX(-50%);width:7px;height:0;border-radius:0 0 5px 5px;opacity:0;transition:opacity .08s;background:#7bd8f4;box-shadow:0 0 4px #fff8}
.drink-cup-bay.filling .drink-stream{height:calc(100% - 80px);opacity:.92}
.drink-cup-bay.flavor-cola .drink-stream,.drink-cup-bay.flavor-cola .cup-liquid{background:#633126}.drink-cup-bay.flavor-orange .drink-stream,.drink-cup-bay.flavor-orange .cup-liquid{background:#ff941e}.drink-cup-bay.flavor-lemon .drink-stream,.drink-cup-bay.flavor-lemon .cup-liquid{background:#eadc35}.drink-cup-bay.flavor-water .drink-stream,.drink-cup-bay.flavor-water .cup-liquid{background:#62ccef}
.machine-cup{position:relative!important;z-index:4;width:54px!important;height:64px!important;overflow:hidden!important;transition:transform .28s ease,opacity .28s ease!important;background:linear-gradient(90deg,#f5f5f5,#fff 50%,#dedede)!important;clip-path:polygon(8% 0,92% 0,82% 100%,18% 100%)!important;border-radius:2px 2px 9px 9px!important;box-shadow:inset 0 0 0 2px #c8c8c8,0 3px 4px #0005!important}
.machine-cup:before{content:"";position:absolute;z-index:5;left:4px;right:4px;top:5px;height:5px;border-radius:50%;background:#c7c7c7;box-shadow:0 1px #fff}
.machine-cup em{position:absolute;z-index:6;left:7px;right:7px;top:21px;height:15px;border-radius:3px;background:#c52222;transform:skewY(-3deg)}
.cup-liquid{position:absolute;z-index:2;left:7px;right:7px;bottom:4px;height:0%;border-radius:0 0 7px 7px;transition:height .04s linear;background:#62ccef;opacity:.9}
.machine-cup.cup-ready{animation:cupReady .18s ease 2}
.machine-cup.cup-drop{transform:translateY(78px) scale(.72)!important;opacity:0!important}
@keyframes cupReady{50%{transform:scale(1.06)}}
/* BurgerRush v0.6 - drink overflow */
.drink-cup-bay.overflowing:after{content:"";position:absolute;z-index:7;left:50%;bottom:7px;width:92px;height:15px;transform:translateX(-50%);border-radius:50%;background:currentColor;opacity:.8;animation:drinkSpill .5s ease-out forwards}
.drink-cup-bay.flavor-cola.overflowing{color:#633126}.drink-cup-bay.flavor-orange.overflowing{color:#ff941e}.drink-cup-bay.flavor-lemon.overflowing{color:#eadc35}.drink-cup-bay.flavor-water.overflowing{color:#62ccef}
.machine-cup.cup-overflow{animation:cupOverflow .14s linear 3}
@keyframes cupOverflow{0%,100%{transform:translateX(0)}50%{transform:translateX(4px)}}
@keyframes drinkSpill{0%{transform:translateX(-50%) scale(.2);opacity:.95}100%{transform:translateX(-50%) scale(1.45);opacity:0}}

/* BurgerRush v1.0 - custom soda artwork */
.drink-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #0005)}
.drink-product span{width:100%!important;height:30px!important;background:none!important;box-shadow:none!important;display:flex!important;align-items:center;justify-content:center;overflow:visible}
.drink-product .drink-art{width:31px;height:31px}
.need .drink-art{width:100%;height:100%;object-fit:contain}
.flying-product .drink-art{width:48px;height:48px;object-fit:contain}

/* BurgerRush v1.2 - truly empty dispenser cup */
.machine-cup{background:linear-gradient(90deg,rgba(245,245,245,.72),rgba(255,255,255,.38) 50%,rgba(222,222,222,.72))!important}
.machine-cup:after{display:none!important;content:none!important}
.machine-cup em{display:none!important}
.machine-cup:before{background:rgba(215,221,224,.75)!important}
.cup-liquid{height:0%;opacity:.92}

/* BurgerRush v1.3 - drink icons sized correctly inside serving trays */
.need .drink-art{width:52px!important;height:52px!important;max-width:62%!important;max-height:72%!important;object-fit:contain!important;transform:none!important}
.order.items-1 .need .drink-art{width:58px!important;height:58px!important;max-width:58%!important;max-height:68%!important}
.order.items-5 .need .drink-art,.order.items-6 .need .drink-art,.order.items-7 .need .drink-art,.order.items-8 .need .drink-art{width:38px!important;height:38px!important;max-width:58%!important;max-height:68%!important}

/* BurgerRush v1.4 - food icons scaled to fit cleanly inside each slot */
.food-product{font-size:clamp(34px,8.5vw,51px)!important}
.food-product span{font-size:1em!important;line-height:1!important;display:flex;align-items:center;justify-content:center;max-width:72%;max-height:72%}

/* BurgerRush v1.5 - selectable food families + genuinely smaller food artwork */
.food-display{padding-top:62px!important}
.food-family-tabs{position:absolute;z-index:4;top:34px;left:6px;right:6px;height:25px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.food-family-tab{min-width:0;padding:0 2px;border:1px solid #fff7;border-radius:5px;background:#7b301f;color:#fff;font:900 8px/21px Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:clip;box-shadow:0 2px 0 #4b1b12}
.food-family-tab.active{background:#f4a62c;color:#4b2411;border-color:#fff3b0}
.food-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;grid-auto-rows:0!important;align-content:stretch!important}
.food-product{font-size:30px!important;overflow:hidden!important;padding:4px!important}
.food-product span{font-size:30px!important;line-height:1!important;max-width:none!important;max-height:none!important;white-space:nowrap!important;transform:scale(.82)!important;transform-origin:center!important}
@media(max-height:670px){.food-display{padding-top:56px!important}.food-family-tabs{top:31px;height:22px}.food-family-tab{font-size:7px;line-height:18px}.food-product,.food-product span{font-size:27px!important}}
\n/* BurgerRush v1.6 - icon family selector like original supermarket */
.food-display{padding-top:74px!important}
.food-display .station-title{top:7px!important}
.food-family-tabs{position:absolute!important;top:36px!important;left:7px!important;right:7px!important;height:42px!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0 2px 5px!important;scrollbar-width:none!important;-ms-overflow-style:none!important;z-index:8!important}
.food-family-tabs::-webkit-scrollbar{display:none!important}
.food-family-tab{flex:0 0 43px!important;width:43px!important;height:38px!important;min-width:43px!important;padding:0!important;border:2px solid #fff4d2!important;border-radius:9px!important;background:linear-gradient(#c94330,#92291f)!important;box-shadow:0 3px 0 #5e190f!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;line-height:1!important;touch-action:manipulation!important}
.food-family-tab span{display:block!important;font-size:24px!important;line-height:1!important;filter:drop-shadow(0 2px 1px #0004)!important;transform:none!important}
.food-family-tab.active{background:linear-gradient(#ffc13e,#ee8b18)!important;border-color:#fff!important;box-shadow:0 3px 0 #a95408!important;transform:translateY(-1px)!important}
.food-family-tab.active span{transform:scale(1.08)!important}
.food-grid{height:100%!important;padding-top:8px!important}
@media(max-width:430px){.food-family-tabs{gap:4px!important}.food-family-tab{flex-basis:39px!important;width:39px!important;min-width:39px!important}.food-family-tab span{font-size:22px!important}}

/* BurgerRush v1.7 */
.discard-cup{position:absolute;right:7px;bottom:7px;z-index:10;width:34px;height:34px;border:2px solid #e6e6e6;border-radius:8px;background:linear-gradient(#d94a43,#8e1d1a);box-shadow:0 3px 0 #111;color:#fff;font-size:18px;line-height:28px;padding:0;cursor:pointer}.discard-cup:active{transform:translateY(2px)}
.machine-cup.cup-discard{animation:cupDiscard .2s ease}
@keyframes cupDiscard{50%{transform:translateX(-10px) rotate(-8deg);opacity:.35}100%{transform:none;opacity:1}}
.fries-icon{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}.fries-icon>b{position:absolute;right:-5px;bottom:-5px;display:flex;width:17px;height:17px;align-items:center;justify-content:center;border-radius:50%;background:#fff;color:#9b231c;border:2px solid #c52d24;font:900 9px Arial;box-shadow:0 1px 2px #0004}.fries-s{font-size:.72em!important}.fries-m{font-size:.88em!important}.fries-l{font-size:1em!important}.need .fries-icon,.flying-product .fries-icon{font-size:1em!important}

/* BurgerRush v1.8 - fries sizes are visibly different everywhere */
.product .fries-s{font-size:.46em!important}.product .fries-m{font-size:.78em!important}.product .fries-l{font-size:1.18em!important}
.need .fries-s,.flying-product .fries-s{font-size:.52em!important}.need .fries-m,.flying-product .fries-m{font-size:.78em!important}.need .fries-l,.flying-product .fries-l{font-size:1.08em!important}

/* BurgerRush v2.0 - stronger full-cup warning, visible overflow and +70% fries */
.machine-cup.cup-near-full{animation:cupNearFull .085s linear infinite!important;filter:drop-shadow(0 0 5px #ffd84a)}
.machine-cup.cup-critical{animation:cupCritical .045s linear infinite!important;filter:drop-shadow(0 0 8px #ff4b32)}
@keyframes cupNearFull{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-3px) rotate(-1.5deg)}75%{transform:translateX(3px) rotate(1.5deg)}}
@keyframes cupCritical{0%,100%{transform:translate(0,0) rotate(0)}20%{transform:translate(-5px,-1px) rotate(-2deg)}40%{transform:translate(4px,1px) rotate(2deg)}60%{transform:translate(-4px,1px) rotate(-1.5deg)}80%{transform:translate(5px,-1px) rotate(1.5deg)}}
.drink-cup-bay.overflowing .drink-stream{height:calc(100% - 66px)!important;opacity:1!important}
.drink-cup-bay.overflowing:before{content:"";position:absolute;z-index:8;left:50%;bottom:48px;width:76px;height:34px;transform:translateX(-50%);border-radius:50%;background:currentColor;opacity:.9;box-shadow:-31px 9px 0 -10px currentColor,31px 8px 0 -11px currentColor,-20px 24px 0 -12px currentColor,22px 25px 0 -12px currentColor;animation:overflowSplash .62s ease-out forwards;pointer-events:none}
.drink-cup-bay.overflowing:after{bottom:5px!important;width:112px!important;height:20px!important;opacity:.9!important;animation:drinkSpill .65s ease-out forwards!important}
@keyframes overflowSplash{0%{transform:translateX(-50%) scale(.35,.15);opacity:0}18%{transform:translateX(-50%) scale(1.05,.8);opacity:1}65%{transform:translateX(-50%) translateY(18px) scale(1.22,.65);opacity:.85}100%{transform:translateX(-50%) translateY(37px) scale(1.45,.35);opacity:0}}
.product .fries-s{font-size:.782em!important}.product .fries-m{font-size:1.326em!important}.product .fries-l{font-size:2.006em!important}
.need .fries-s,.flying-product .fries-s{font-size:.884em!important}.need .fries-m,.flying-product .fries-m{font-size:1.326em!important}.need .fries-l,.flying-product .fries-l{font-size:1.836em!important}

/* BurgerRush v2.2 - customers belong to the serving trays */
.packing-zone{padding-top:62px}
.order{margin-top:34px}
.customer-face{position:absolute;z-index:8;left:50%;top:-58px;transform:translateX(-50%);width:54px;height:54px;border:3px solid #fff;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(#fff7dd,#f2c993);box-shadow:0 4px 0 #79513a,0 6px 9px #0004;font-size:38px;line-height:1;overflow:hidden;pointer-events:none}
.order.active .customer-face{width:64px;height:64px;top:-69px;font-size:46px;box-shadow:0 4px 0 #79513a,0 0 0 4px #fff5a5,0 7px 12px #0004}
.order .queue-number{z-index:10}
@media(max-height:720px){.packing-zone{padding-top:55px}.order{margin-top:28px}.customer-face{width:46px;height:46px;top:-49px;font-size:32px}.order.active .customer-face{width:54px;height:54px;top:-58px;font-size:39px}}

/* BurgerRush v2.3 - logo as background behind customers */
.packing-zone{isolation:isolate}
.packing-brand{top:4px!important;width:min(360px,68vw)!important;max-width:68vw!important;z-index:0!important;opacity:.42!important;pointer-events:none!important;filter:saturate(.85)!important}
.packing-brand-logo{filter:none!important}
.belt{position:relative;z-index:2}
.order{z-index:3}
.order.active{z-index:6}
.customer-face{z-index:8}
@media(max-height:720px){.packing-brand{top:2px!important;width:min(320px,65vw)!important}}

/* BurgerRush v2.4 - background logo must never alter packing layout */
.packing-zone{isolation:isolate}
.packing-brand{position:absolute!important;left:50%!important;top:4px!important;transform:translateX(-50%)!important;z-index:0!important;pointer-events:none!important}
.belt{position:absolute!important;left:-20px!important;right:-20px!important;top:34px!important;z-index:1!important}
.orders{position:relative!important;z-index:3!important}
.order{z-index:3}
.order.active{z-index:6}
.customer-face{z-index:8}

/* BurgerRush v2.5 - remove conveyor band and raise customers/trays */
.belt{display:none!important}
.packing-zone{padding-top:68px!important;background:linear-gradient(#c52a22 0 34%,#e2b96b 34% 100%)!important;border-top:5px solid #f0c34a!important;overflow:hidden!important}
.orders{height:100%!important;align-items:flex-start!important;padding:0 4px!important}
.order{margin-top:0!important}
.packing-brand{top:4px!important;width:min(360px,68vw)!important;opacity:.42!important}
@media(max-height:720px){.packing-zone{padding-top:60px!important}.order{margin-top:0!important}.packing-brand{top:2px!important}}
/* v2.6 - official BurgerRush 500x100 background logo */
.packing-brand{width:min(500px,92%)!important;max-width:500px!important;aspect-ratio:5/1!important;top:2px!important;opacity:.36!important;z-index:0!important;overflow:hidden!important}
.packing-brand-logo{width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important}
.orders{position:relative!important;z-index:2!important}
@media(max-height:720px){.packing-brand{width:min(470px,90%)!important;top:1px!important}}

/* BurgerRush v2.7 - fries larger in FOOD selector */
.product .fries-s{font-size:1.25em!important}
.product .fries-m{font-size:1.65em!important}
.product .fries-l{font-size:2.05em!important}

/* BurgerRush v2.8 - logo moved to the free upper kitchen strip */
.warehouse .top-brand{display:flex!important;position:absolute!important;left:50%!important;top:3px!important;transform:translateX(-50%)!important;width:min(300px,54vw)!important;max-width:300px!important;height:54px!important;aspect-ratio:auto!important;z-index:4!important;opacity:1!important;overflow:hidden!important;pointer-events:auto!important;filter:none!important}
.warehouse .top-brand .packing-brand-logo{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 2px 2px #0003)!important}
.packing-zone>.packing-brand{display:none!important}
@media(max-height:670px){.warehouse .top-brand{top:2px!important;width:min(265px,50vw)!important;height:50px!important}}

/* BurgerRush v2.9 - user supplied transparent logo, 20% smaller and right aligned */
.warehouse .top-brand{left:auto!important;right:8px!important;transform:none!important;width:min(300px,54vw)!important;max-width:300px!important;height:54px!important;justify-content:flex-end!important;overflow:visible!important}
.warehouse .top-brand .packing-brand-logo{width:100%!important;height:100%!important;object-fit:contain!important;object-position:right center!important;filter:none!important}
@media(max-height:670px){.warehouse .top-brand{left:auto!important;right:7px!important;transform:none!important;width:min(265px,50vw)!important;height:50px!important}}


/* BurgerRush v3.2 - suelo diner ajedrezado */
.ordersArea,.orders-area,.customersArea,.customers-area,.bottomArea,.bottom-area{
  background-color:#f3f3f3!important;
  background-image:
    linear-gradient(45deg,#242424 25%,transparent 25%,transparent 75%,#242424 75%,#242424),
    linear-gradient(45deg,#242424 25%,transparent 25%,transparent 75%,#242424 75%,#242424)!important;
  background-size:64px 64px!important;
  background-position:0 0,32px 32px!important;
}

/* BurgerRush v3.3 - suelo real aportado por el usuario */
.packing-zone{
  background-image:url("../assets/floor_checker.webp")!important;
  background-size:cover!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
  border-top:5px solid #c18b48!important;
}
.packing-zone:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:transparent!important;
  pointer-events:none!important;
  z-index:0!important;
}
.orders{position:relative!important;z-index:3!important}

/* BurgerRush v3.4 - logo superior más alto, conservando proporción */
.brand-logo,.top-logo,.header-logo,.restaurant-logo,
img[src*="logo500x100"]{
  width:auto!important;
  height:58px!important;
  max-width:330px!important;
  object-fit:contain!important;
  object-position:right center!important;
}

/* BurgerRush v3.5 - logo largo aportado por el usuario */
.brand-logo,.top-logo,.header-logo,.restaurant-logo,
img[src*="logo500x100"]{
  width:450px!important;
  max-width:calc(100% - 115px)!important;
  height:60px!important;
  object-fit:contain!important;
  object-position:right center!important;
}

/* Tik Burger v3.6 */
img[src*="logo500x100"]{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  top:-2px!important;
  transform:translateX(-50%)!important;
  width:690px!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  z-index:9999!important;
  pointer-events:none!important;
}
.tik-tik-warning{
  position:absolute;
  left:50%;
  top:105px;
  transform:translate(-50%,-50%) scale(.7);
  z-index:20000;
  padding:8px 22px;
  border:4px solid #fff;
  border-radius:18px;
  background:#d71920;
  color:#ffd52a;
  font:900 34px/1 Arial,sans-serif;
  letter-spacing:1px;
  text-shadow:0 3px 0 #7b1010,0 0 8px rgba(255,255,255,.7);
  box-shadow:0 5px 0 #7b1010,0 8px 20px rgba(0,0,0,.35);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.tik-tik-warning.show{
  visibility:visible;
  opacity:1;
}
.tik-tik-warning.beat{
  animation:tikTikBeat .32s ease-out;
}
@keyframes tikTikBeat{
  0%{transform:translate(-50%,-50%) scale(.72)}
  45%{transform:translate(-50%,-50%) scale(1.18)}
  100%{transform:translate(-50%,-50%) scale(1)}
}

/* Tik Burger v3.9 - bebidas en 2 filas e iconos adaptativos */

/* 4 sabores: 2 columnas x 2 filas */
.drink-buttons{
  flex:0 0 43%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;
}
.drink-product{
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
.drink-product span{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.drink-product .drink-art{
  width:clamp(30px,7.5vw,48px)!important;
  height:clamp(30px,7.5vw,48px)!important;
  max-width:82%!important;
  max-height:82%!important;
  object-fit:contain!important;
}

/* FOOD: aprovechar el hueco, pero reducir automáticamente en pantallas pequeñas */
.food-product{
  font-size:clamp(36px,9.5vw,56px)!important;
  padding:3px!important;
}
.food-product span{
  font-size:1em!important;
  max-width:94%!important;
  max-height:90%!important;
  transform:scale(.96)!important;
  transform-origin:center!important;
}

/* Las patatas conservan diferencias S/M/L, ahora con mayor tamaño base */
.food-product .fries-s{font-size:.58em!important}
.food-product .fries-m{font-size:.88em!important}
.food-product .fries-l{font-size:1.18em!important}

@media(max-width:430px),(max-height:670px){
  .drink-buttons{gap:4px!important}
  .drink-product .drink-art{
    width:clamp(27px,7vw,40px)!important;
    height:clamp(27px,7vw,40px)!important;
  }
  .food-product{font-size:clamp(32px,8.5vw,47px)!important}
  .food-product span{transform:scale(.9)!important}
}

/* Tik Burger v4.0
   PARA AMPLIAR/REDUCIR EL LOGO CAMBIA SOLO --tik-logo-width
   Ejemplos: 450px / 500px / 550px */
:root{
  --tik-logo-width:450px;
}

.packing-brand.top-brand{
  position:absolute!important;
  width:var(--tik-logo-width)!important;
  height:auto!important;
  aspect-ratio:500/100!important;
  max-width:none!important;
  max-height:none!important;
  right:52px!important;
  left:auto!important;
  top:9px!important;
  overflow:visible!important;
  z-index:12!important;
  transform:none!important;
}

.packing-brand.top-brand img,
.packing-brand.top-brand img[src*="logo500x100"]{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  transform:none!important;
  object-fit:contain!important;
  object-position:right center!important;
  z-index:12!important;
  pointer-events:none!important;
}

/* Tik Burger v4.1 - custom product artwork */
.product-art{
  display:block!important;
  width:clamp(42px,10vw,64px)!important;
  height:clamp(42px,10vw,64px)!important;
  max-width:94%!important;
  max-height:94%!important;
  object-fit:contain!important;
  margin:auto!important;
}
.need .product-art{width:42px!important;height:42px!important;max-width:100%!important;max-height:100%!important}
.flying-product .product-art{width:52px!important;height:52px!important;object-fit:contain!important}


/* Tik Burger v4.6 - CART CRASH solo afecta a FOOD; DRINKS sigue operativo */
.cart-crash-active .food-display .product{
  opacity:.28!important;
  filter:saturate(.45)!important;
  pointer-events:none!important;
}
.cart-crash-active .drink-dispenser,
.cart-crash-active .drink-dispenser .product,
.cart-crash-active .drink-product{
  opacity:1!important;
  filter:none!important;
  pointer-events:auto!important;
}
.cart-crash-layer .product-art{
  width:88%!important;
  height:88%!important;
  object-fit:contain!important;
  display:block!important;
}

.cart-crash-active .shelves .drink-product{opacity:1!important;filter:none!important;pointer-events:auto!important}

/* Tik Burger v4.7 - NEW UNLOCKED muestra el icono/imagen del producto */
.unlock-products .product-art{
  width:64px!important;
  height:64px!important;
  object-fit:contain!important;
  display:inline-block!important;
  vertical-align:middle!important;
}

/* Tik Burger v4.9 - papelera más pequeña y algo más abajo */
.discard-cup{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  font-size:15px!important;
  padding:0!important;
  transform:translateY(7px)!important;
}

/* Tik Bonus por multitarea durante el llenado */
.tik-bonus{
  position:fixed;
  left:50%;
  top:42%;
  transform:translate(-50%,-50%) scale(.72);
  z-index:9999999;
  padding:9px 16px;
  border:3px solid #fff;
  border-radius:14px;
  background:#d71920;
  color:#ffd52a;
  font:900 22px/1 Arial,sans-serif;
  white-space:nowrap;
  text-shadow:0 2px 0 #7b1010;
  box-shadow:0 5px 0 #7b1010,0 8px 20px rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease,transform .18s ease;
}
.tik-bonus.show{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}


/* Tik Burger v5.4 - familias visibles solo al desbloquearse y rail ajustado */
.food-family-tabs{
  left:1px!important;
  right:1px!important;
  gap:3px!important;
  padding-left:0!important;
  padding-right:0!important;
}
.food-family-tab{
  flex:0 0 37px!important;
  width:37px!important;
  min-width:37px!important;
}
.food-family-tab span{font-size:21px!important}
@media(max-width:430px){
  .food-family-tabs{left:0!important;right:0!important;gap:2px!important}
  .food-family-tab{flex-basis:35px!important;width:35px!important;min-width:35px!important}
  .food-family-tab span{font-size:20px!important}
}


/* Tik Burger v5.7 - adaptive product cards by visible family size */
.food-grid{min-height:0!important;overflow:hidden!important;align-content:stretch!important}
.food-grid.food-count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.food-grid.food-count-6{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:6px!important}
.food-grid.food-count-9{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:5px!important}
.food-grid.food-count-12{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:4px!important}
.food-grid.food-count-6 .food-product{font-size:clamp(27px,7vw,42px)!important;padding:2px!important}
.food-grid.food-count-9 .food-product{font-size:clamp(23px,6vw,36px)!important;padding:2px!important}
.food-grid.food-count-12 .food-product{font-size:clamp(20px,5vw,31px)!important;padding:1px!important}
.food-grid.food-count-6 .food-product span{transform:scale(.88)!important}
.food-grid.food-count-9 .food-product span{transform:scale(.80)!important}
.food-grid.food-count-12 .food-product span{transform:scale(.72)!important}
.food-grid.food-count-6 .product-art{max-width:76%!important;max-height:76%!important}
.food-grid.food-count-9 .product-art{max-width:70%!important;max-height:70%!important}
.food-grid.food-count-12 .product-art{max-width:64%!important;max-height:64%!important}

/* Tik Burger v5.8 - iconos grandes dentro del grid adaptativo */
.food-grid.food-count-4 .food-product span{font-size:56px!important;transform:none!important;max-width:96%!important;max-height:94%!important}
.food-grid.food-count-6 .food-product span{font-size:52px!important;transform:none!important;max-width:94%!important;max-height:92%!important}
.food-grid.food-count-9 .food-product span{font-size:48px!important;transform:none!important;max-width:92%!important;max-height:90%!important}
.food-grid.food-count-12 .food-product span{font-size:44px!important;transform:none!important;max-width:90%!important;max-height:88%!important}
.food-grid.food-count-4 .product-art{width:76%!important;height:76%!important;max-width:76%!important;max-height:76%!important}
.food-grid.food-count-6 .product-art{width:74%!important;height:74%!important;max-width:74%!important;max-height:74%!important}
.food-grid.food-count-9 .product-art{width:72%!important;height:72%!important;max-width:72%!important;max-height:72%!important}
.food-grid.food-count-12 .product-art{width:70%!important;height:70%!important;max-width:70%!important;max-height:70%!important}
.food-grid .food-product .fries-s{font-size:.82em!important}
.food-grid .food-product .fries-m{font-size:1em!important}
.food-grid .food-product .fries-l{font-size:1.16em!important}

/* Tik Burger - etiqueta S/M/L de patatas: letra +60% (9px -> 14.4px).
   Solo cambia la letra, no el tamano del producto ni la casilla. */
.fries-icon > b { font-size:14.4px!important; line-height:1!important; }

/* TABLE CLEANING: 60-second special event */
.table-clean-layer{position:fixed;inset:0;z-index:9998;display:none;align-items:center;justify-content:center;background:rgba(14,15,19,.90);padding:12px;box-sizing:border-box;touch-action:manipulation}
.table-clean-layer.active{display:flex}
.table-clean-panel{width:min(100%,560px);max-height:96dvh;overflow:auto;text-align:center;background:linear-gradient(155deg,#fff4cc,#ffcf72);border:5px solid #74320d;border-radius:24px;padding:14px;box-sizing:border-box;box-shadow:0 12px 45px #0008;color:#50220b;font-family:system-ui,sans-serif}
.table-clean-panel h2{margin:0;font-size:clamp(22px,6vw,35px);font-weight:1000}
.table-clean-panel p{margin:5px 0 10px;font-size:clamp(10px,2.7vw,14px);font-weight:900}
.table-clean-stats{display:flex;justify-content:space-between;font-size:23px;margin-bottom:6px}
.table-clean-track{height:16px;border:2px solid #78360e;border-radius:15px;background:#fff;overflow:hidden;margin-bottom:10px}
#tableCleanBar{height:100%;width:0;background:#30bc5b;transition:width .12s}
.table-clean-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.table-clean-table{background:radial-gradient(ellipse,#bb8051,#784021);border:5px solid #532b15;border-radius:45% / 30%;padding:8px 4px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-height:145px;align-content:center;box-shadow:inset 0 5px 8px #ffda9855,0 6px 0 #49260e}
.table-clean-table-name{grid-column:1/-1;color:#fff4d1;font-size:12px;font-weight:1000;text-shadow:0 2px 2px #000}
.table-clean-trash{background:transparent;border:0;padding:0;min-width:0;min-height:42px;font-size:clamp(24px,6vw,37px);cursor:pointer;touch-action:manipulation;filter:drop-shadow(1px 3px 2px #0006);transition:transform .12s,opacity .12s}
.table-clean-trash.removed{opacity:0;transform:scale(.15);pointer-events:none}
@media(max-height:650px){.table-clean-table{min-height:95px}.table-clean-trash{min-height:30px;font-size:26px}}

/* Table recycling mini-game: drag-and-drop, three bags */
.table-clean-layer{touch-action:none}
.table-clean-panel{max-height:98dvh;padding:10px;overflow:auto}
.table-clean-panel p{font-size:clamp(10px,2.3vw,12px)}
.table-clean-tables{gap:6px}
.table-clean-table{min-height:105px;padding:4px;gap:1px}
.table-clean-trash{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;min-height:34px;font-size:clamp(23px,5vw,32px)}
.table-clean-trash.dragging{opacity:.25}
.clean-drag-ghost{position:fixed;z-index:10005;pointer-events:none;transform:translate(-50%,-50%) scale(1.35);font-size:43px;filter:drop-shadow(0 5px 4px #0009)}
.clean-bag-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}
.clean-bag{border:3px solid #3a2618;border-radius:10px 10px 23px 23px;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#191919;box-shadow:inset 0 -10px 0 #0002;transition:transform .12s,opacity .2s;touch-action:none}
.clean-bag.yellow{background:#ffdc22}.clean-bag.blue{background:#4ab2f5}.clean-bag.brown{background:#b47a45}
.clean-bag.hover{transform:scale(1.06);outline:4px solid white}
.clean-bag.full{box-shadow:inset 0 -10px 0 #0002,0 0 0 4px #f33}
.clean-bag.closing{transform:scale(.1);opacity:0}
.clean-bag-symbol{font-size:23px}.clean-bag strong{font-size:clamp(10px,2.7vw,14px)}.clean-bag-fill{font-weight:900;font-size:16px}
.clean-bag-close{font:900 11px system-ui,sans-serif;background:#fff;border:2px solid #30231a;border-radius:7px;padding:5px 3px;cursor:pointer;color:#23190f}
.clean-bag-close:disabled{opacity:.35;cursor:default}
@media(max-height:680px){.table-clean-table{min-height:75px}.table-clean-trash{min-height:26px;font-size:23px}.clean-bag{min-height:90px}.table-clean-panel h2{font-size:21px}}

/* Recycling: one large table at a time, with larger draggable items */
.table-clean-tables{display:flex;justify-content:center;align-items:center;min-height:205px;gap:0}
.table-clean-table{width:100%;max-width:480px;min-height:205px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 15px;border-width:7px}
.table-clean-table-name{font-size:19px}
.table-clean-trash{min-height:60px;font-size:clamp(36px,9vw,53px)}
@media(max-height:680px){.table-clean-tables{min-height:140px}.table-clean-table{min-height:140px;padding:8px;gap:4px}.table-clean-trash{min-height:40px;font-size:clamp(30px,7vw,43px)}}

/* Recycling failure: acknowledge the reason before leaving the event. */
.table-clean-panel{position:relative}
.clean-failure-modal{display:none;position:absolute;inset:0;z-index:100;align-items:center;justify-content:center;padding:15px;background:rgba(35,16,8,.67);border-radius:19px}
.clean-failure-modal.visible{display:flex}
.clean-failure-card{width:100%;max-width:410px;padding:22px 14px;border-radius:20px;border:4px solid #922a16;background:#fff0c7;box-shadow:0 12px 35px #0008;text-align:center}
.clean-failure-card h3{font-size:clamp(23px,6vw,32px);color:#ac1b13;margin:0 0 10px}
.clean-failure-card p{font-size:clamp(15px,4vw,19px);margin:10px 0;font-weight:900}
#cleanFailureContinue{font-size:22px;font-weight:1000;background:#2eaf4c;color:white;border:3px solid #165e2a;border-radius:14px;padding:12px 32px;margin-top:10px;cursor:pointer}

/* V5: Recycling event occupies the full game viewport and uses the same diner floor. */
.table-clean-layer{
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  padding:0!important;
  margin:0!important;
  background:#ddd url("../assets/floor_checker.webp") center center / cover no-repeat!important;
  align-items:stretch!important;
  justify-content:stretch!important;
}
.table-clean-panel{
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  max-height:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom))!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:space-between!important;
  overflow:auto!important;
}
.table-clean-panel > h2,.table-clean-panel > p,.table-clean-stats,.table-clean-track{
  text-shadow:0 1px 3px #fff,0 0 7px #fff;
}
.table-clean-tables{flex:1 1 auto;min-height:170px!important;max-height:52dvh;}
.table-clean-table{width:min(100%,580px);max-width:580px;}
.clean-bag-row{width:min(100%,650px);align-self:center;flex:0 0 auto;}
@media(max-height:650px){.table-clean-tables{min-height:110px!important}.table-clean-table{min-height:110px}}

/* Recycling v6: restaurant tables and visibly filling sacks */
.table-clean-table{position:relative!important;display:block!important;min-height:240px!important;height:min(42dvh,340px)!important;max-width:630px!important;border-radius:48% / 36%!important;background:radial-gradient(ellipse at 30% 20%,#f9c783 0%,#d18a48 35%,#925024 80%,#542809 100%)!important;box-shadow:inset 0 0 0 6px #efb878,inset 0 0 20px #47220e,0 14px 0 #583011,0 22px 20px #0007!important}
.table-clean-table:before{content:"";position:absolute;inset:14px;border:2px solid #ffe3ad77;border-radius:48% / 36%;pointer-events:none}
.table-clean-table-name{position:absolute!important;top:8px;left:0;right:0;font-size:clamp(15px,3vw,20px)!important;pointer-events:none;z-index:20}
.table-clean-trash{position:absolute!important;width:clamp(55px,13vw,83px)!important;height:clamp(55px,13vw,83px)!important;min-height:0!important;font-size:clamp(39px,9vw,62px)!important;transform:rotate(var(--tilt))!important;filter:drop-shadow(4px 7px 3px #3218)!important;text-shadow:0 2px 2px #fff7;line-height:1;touch-action:none!important}
.table-clean-trash.half-eaten{filter:drop-shadow(4px 7px 3px #3218) saturate(.8)!important}
.table-clean-trash.removed{opacity:0!important;transform:scale(.1) rotate(90deg)!important}
.clean-bag{position:relative!important;isolation:isolate;overflow:hidden;min-height:clamp(112px,20dvh,175px)!important;border-radius:17px 17px 30px 30px!important;border:4px solid #342414!important;background:linear-gradient(100deg,#fff8,#fff1 22%,#0001 75%,#0003)!important;box-shadow:inset 9px 0 12px #fff6,inset -12px 0 12px #0003,0 8px 8px #0004!important}
.clean-bag:before{content:"";position:absolute;top:0;left:8%;right:8%;height:12px;background:#3b281b;border-radius:50%;z-index:2}
.clean-bag.yellow{background-color:#f8d83b!important}.clean-bag.blue{background-color:#48a7ee!important}.clean-bag.brown{background-color:#b17a45!important}
.clean-bag-level{position:absolute;bottom:0;left:0;right:0;height:0;background:repeating-linear-gradient(15deg,#402b2177 0 12px,#fff8 13px 16px,#61412977 17px 25px);transition:height .25s;z-index:-1}
.clean-bag-symbol,.clean-bag strong,.clean-bag-fill,.clean-bag-close{position:relative;z-index:2;text-shadow:0 1px #fff8}
.clean-bag-fill{font-size:20px!important;background:#fffd;border-radius:9px;padding:2px 8px}
.clean-bag.danger{animation:cleanBagShake .16s infinite alternate;outline:4px solid #ff4e28}
.clean-bag.exploding{animation:cleanBagPop .9s forwards!important}
@keyframes cleanBagShake{from{transform:translateX(-4px) rotate(-3deg)}to{transform:translateX(4px) rotate(3deg)}}
@keyframes cleanBagPop{0%{transform:scale(1)}25%{transform:scale(1.3)}50%{transform:scale(1.6);opacity:1}60%{transform:scale(.2);opacity:0}100%{opacity:0}}
.clean-explosion-piece{position:fixed;z-index:10050;pointer-events:none;font-size:clamp(27px,6vw,47px);animation:cleanFly 1.05s ease-out forwards}
@keyframes cleanFly{0%{transform:translate(-50%,-50%) scale(.5) rotate(0);opacity:1}100%{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--spin)) scale(1.4);opacity:0}}
@media(max-height:670px){.table-clean-table{min-height:135px!important;height:28dvh!important}.table-clean-trash{width:50px!important;height:50px!important;font-size:38px!important}.clean-bag{min-height:90px!important}.table-clean-panel>p{font-size:10px!important}}

/* Recycling v7: instruction gate, larger trash, animated bags */
.clean-intro{position:absolute;inset:0;z-index:80;display:none;align-items:center;justify-content:center;background:#120b06bd;padding:18px;box-sizing:border-box}
.clean-intro.visible{display:flex}
.clean-intro-card{width:min(100%,460px);background:linear-gradient(155deg,#fff5d5,#ffcf77);border:5px solid #683314;border-radius:25px;padding:24px 18px;box-shadow:0 18px 50px #0009;color:#4c260e;text-align:center;font-family:system-ui,sans-serif}
.clean-intro-card h3{font-size:clamp(23px,6vw,34px);margin:0 0 12px;font-weight:1000}
.clean-intro-demo{font-size:clamp(24px,5vw,34px);margin:10px 0;white-space:nowrap}
.clean-intro-demo span{color:#ad4200;font-weight:1000}
.clean-intro-card p{font-size:clamp(15px,3.6vw,19px);line-height:1.35;font-weight:700}
#cleanIntroStart{border:3px solid #542400;border-radius:16px;background:#f65b22;color:#fff;padding:13px 25px;font-size:22px;font-weight:1000;cursor:pointer;box-shadow:0 5px 0 #8c2609}
.table-clean-trash{width:clamp(68px,15vw,99px)!important;height:clamp(68px,15vw,99px)!important;font-size:clamp(49px,11vw,75px)!important}
.clean-bag:not(.danger):not(.closing):not(.exploding){animation:cleanBagBreath 2.3s ease-in-out infinite}
.clean-bag:nth-child(2){animation-delay:.45s!important}.clean-bag:nth-child(3){animation-delay:.9s!important}
.clean-bag.danger{animation:cleanBagShake .105s infinite alternate!important;outline:5px solid #ff3a1c!important;filter:drop-shadow(0 0 9px #f30)}
@keyframes cleanBagBreath{0%,100%{transform:rotate(-1deg) scale(1)}50%{transform:rotate(1deg) scale(1.025)}}
@media(max-height:670px){.table-clean-trash{width:55px!important;height:55px!important;font-size:45px!important}.clean-intro-card{padding:12px}.clean-intro-card p{font-size:14px}}

/* V8: Same restaurant backdrop and upper counter composition as gameplay. */
.table-clean-layer{background:transparent!important;isolation:isolate}
.table-clean-layer:before{content:"";position:absolute;inset:0;background:url("../assets/floor_checker.webp") center top / cover no-repeat;z-index:-2}
.table-clean-layer:after{content:"";position:absolute;left:0;right:0;top:0;height:37%;background:linear-gradient(180deg,#c83226 0%,#91221c 82%,#f2bd55 82%,#c18b48 100%);z-index:-1;border-bottom:5px solid #c18b48;box-sizing:border-box}
.table-clean-panel{position:relative;z-index:1}
.table-clean-tables{max-height:56dvh!important;display:flex;align-items:center;justify-content:center}
.table-clean-table{width:min(92vw,630px)!important}
.clean-bag{overflow:visible!important}
.clean-bag-close{position:absolute!important;right:-8px;top:-12px;width:35px;height:35px;border-radius:50%!important;background:#f43b2d!important;color:#fff!important;border:3px solid white!important;box-shadow:0 2px 5px #0008;font-size:23px!important;line-height:25px;padding:0!important;z-index:8!important}
.clean-bag-close:disabled{opacity:.35}
.clean-drag-hint{display:none;pointer-events:none;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);z-index:40;align-items:center;gap:12px;font-size:clamp(26px,7vw,50px);padding:8px 16px;border-radius:40px;background:#fff9;box-shadow:0 5px 18px #0005;white-space:nowrap}
.clean-drag-hint.visible{display:flex;animation:cleanHintBlink .65s ease-in-out infinite alternate}
.clean-hint-arrows{font-weight:1000;color:#ef5b15;letter-spacing:-6px}
@keyframes cleanHintBlink{from{opacity:.4;transform:translate(-50%,-50%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1.06)}}

/* Recycling V9: preserve EXACT gameplay backdrop, including its floor and upper scene. */
body.clean-scene #game .shelves,body.clean-scene #game .category-tabs,body.clean-scene #game .orders,body.clean-scene #game .belt,body.clean-scene #game .floor-decoration{visibility:hidden!important}
body.clean-scene #game .packing-brand{visibility:visible!important}
.table-clean-layer,.table-clean-layer:before,.table-clean-layer:after{background:transparent!important;border:0!important}
.table-clean-layer:before,.table-clean-layer:after{display:none!important}
.table-clean-panel{background:transparent!important;box-shadow:none!important;justify-content:space-between!important;padding:0 10px max(14px,env(safe-area-inset-bottom))!important;overflow:hidden!important}
.table-clean-panel>h2,.table-clean-panel>p{display:none!important}
.table-clean-stats{position:absolute;top:calc(max(8px,env(safe-area-inset-top)) + 80px);left:14px;right:14px;z-index:5;pointer-events:none}
#tableCleanTimer{display:none!important}
.table-clean-track{position:absolute;top:calc(max(8px,env(safe-area-inset-top)) + 112px);left:15px;right:15px;z-index:5}
.clean-event-top{position:absolute;top:max(7px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:8}
.clean-event-clock.shift-timer{display:flex!important;width:86px!important;height:86px!important;flex-basis:86px!important;filter:drop-shadow(0 5px 5px #0008)}
.clean-event-clock.shift-timer b{font-size:29px!important}
.table-clean-tables{margin-top:clamp(128px,21dvh,205px)!important;min-height:0!important;max-height:none!important;flex:1 1 auto!important}
.table-clean-table{height:min(38dvh,350px)!important;min-height:140px!important}
.clean-bag-row{margin-bottom:clamp(6px,3dvh,28px)!important}
@media(max-height:680px){.table-clean-tables{margin-top:118px!important}.table-clean-table{height:30dvh!important}.clean-bag{min-height:85px!important}}

/* V10: event belongs to the original game viewport, not the browser viewport. */
#game{isolation:isolate}
body.clean-scene #game>.hud{z-index:40!important}
body.clean-scene #game>.warehouse{z-index:1!important}
body.clean-scene #game>.packing-zone{z-index:1!important}
#game>.table-clean-layer{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 max-width:100%!important;max-height:100%!important;z-index:25!important;
 padding:0!important;margin:0!important;box-sizing:border-box!important;
 overflow:hidden!important;align-items:stretch!important;justify-content:stretch!important;
}
#game>.table-clean-layer .table-clean-panel{
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:100%!important;max-height:100%!important;box-sizing:border-box!important;
 padding:75px 8px max(8px,env(safe-area-inset-bottom))!important;
 display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
#game>.table-clean-layer .clean-event-top{top:76px!important;left:50%!important}
#game>.table-clean-layer .clean-event-clock.shift-timer{width:70px!important;height:70px!important;flex-basis:70px!important}
#game>.table-clean-layer .table-clean-stats{top:155px!important;left:12px!important;right:12px!important}
#game>.table-clean-layer .table-clean-track{top:183px!important;left:12px!important;right:12px!important}
#game>.table-clean-layer .table-clean-tables{
 margin-top:125px!important;min-width:0!important;width:100%!important;
 max-height:none!important;min-height:0!important;flex:1 1 auto!important;
}
#game>.table-clean-layer .table-clean-table{
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:min(36dvh,300px)!important;min-height:145px!important;
 box-sizing:border-box!important;
}
#game>.table-clean-layer .clean-bag-row{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 gap:6px!important;margin:6px 0 5px!important;box-sizing:border-box!important;
}
#game>.table-clean-layer .clean-bag{
 min-width:0!important;min-height:clamp(95px,16dvh,145px)!important;
 box-sizing:border-box!important;
}
#game>.table-clean-layer .clean-bag strong{font-size:clamp(9px,2.6vw,13px)!important}
#game>.table-clean-layer .clean-bag-close{right:0!important;top:-8px!important}
#game>.table-clean-layer .table-clean-trash{
 width:clamp(48px,15vw,76px)!important;height:clamp(48px,15vw,76px)!important;
 font-size:clamp(38px,11vw,64px)!important;
}
#game>.table-clean-layer .clean-failure-modal{position:absolute!important;inset:0!important}
@media(max-height:690px){
 #game>.table-clean-layer .table-clean-panel{padding-top:62px!important}
 #game>.table-clean-layer .clean-event-top{top:65px!important}
 #game>.table-clean-layer .table-clean-stats{top:130px!important}
 #game>.table-clean-layer .table-clean-track{top:155px!important}
 #game>.table-clean-layer .table-clean-tables{margin-top:105px!important}
 #game>.table-clean-layer .table-clean-table{min-height:110px!important;height:29dvh!important}
 #game>.table-clean-layer .clean-bag{min-height:80px!important}
}

/* V11 — readable point gain/loss feedback at the recycling bags */
#game>.table-clean-layer .clean-points-popup{
 position:absolute;z-index:92;pointer-events:none;display:flex;flex-direction:column;
 align-items:center;justify-content:center;gap:0;
 min-width:104px;padding:5px 12px 7px;
 border:3px solid #fff;border-radius:19px;
 background:linear-gradient(170deg,rgba(17,50,24,.98),rgba(3,23,13,.98));
 color:#73ff86;box-shadow:0 5px 0 #0007,0 9px 18px #0009;
 transform:translate(-50%,-15%);transform-origin:center;
 animation:cleanPointsFloat 1.5s cubic-bezier(.2,.7,.2,1) forwards;
 font-family:system-ui,Arial,sans-serif;text-align:center;
 white-space:nowrap;
}
#game>.table-clean-layer .clean-points-popup.loss,
#game>.table-clean-layer .clean-points-popup.explosion{
 color:#fff;background:linear-gradient(165deg,#e72820,#8e0908);border-color:#ffecb8;
 box-shadow:0 5px 0 #430400,0 9px 20px #000b;
}
#game>.table-clean-layer .clean-points-popup b{
 display:block;font-size:clamp(34px,8vw,49px);font-weight:1000;
 line-height:1;letter-spacing:-1.5px;
 -webkit-text-stroke:1px #071b0b;text-shadow:0 3px 0 #0008,0 0 10px #0008;
 font-variant-numeric:tabular-nums;
}
#game>.table-clean-layer .clean-points-popup.loss b,
#game>.table-clean-layer .clean-points-popup.explosion b{
 -webkit-text-stroke:1px #640000;text-shadow:0 3px 0 #5e0505,0 0 8px #000b;
}
#game>.table-clean-layer .clean-points-popup small{
 display:block;color:#fff;font-size:clamp(11px,2.8vw,14px);font-weight:1000;
 letter-spacing:1.5px;text-shadow:0 2px 2px #000;
}
#game>.table-clean-layer .clean-points-popup .clean-points-symbol{
 font-size:clamp(18px,4vw,24px);line-height:1;
}
@keyframes cleanPointsFloat{
 0%{transform:translate(-50%,12%) scale(.75);opacity:0}
 12%{transform:translate(-50%,-20%) scale(1.13);opacity:1}
 26%{transform:translate(-50%,-35%) scale(1);opacity:1}
 78%{transform:translate(-50%,-58%) scale(1);opacity:1}
 100%{transform:translate(-50%,-92%) scale(.94);opacity:0}
}
#game>.table-clean-layer .clean-bag.clean-points-hit:not(.danger):not(.exploding){
 filter:drop-shadow(0 0 9px #fff);outline:3px solid #fff9;
}
#game>.table-clean-layer .clean-failure-penalty{
 display:block;font-size:clamp(26px,6vw,35px)!important;
 padding:9px 5px;border-radius:14px;background:#b52318;color:#fff;
 text-shadow:0 2px 2px #550c06;box-shadow:0 4px 0 #6c1209;
}
@media (max-width:390px){
 #game>.table-clean-layer .clean-points-popup{min-width:86px;padding:5px 6px 7px}
 #game>.table-clean-layer .clean-points-popup b{font-size:36px}
}

/* V12: Recycling-only messages are small and stay outside the middle of the table. */
#game>.clean-event-notice{
 position:absolute;z-index:80;right:12px;top:202px;
 max-width:calc(100% - 24px);box-sizing:border-box;
 padding:6px 10px;border-radius:9px;
 background:rgba(28,70,35,.92);border:1px solid rgba(212,255,205,.75);
 color:#f3ffe9;font-family:system-ui,Arial,sans-serif;
 font-size:clamp(11px,2.8vw,14px);font-weight:850;line-height:1.15;
 letter-spacing:.1px;text-align:right;white-space:nowrap;
 pointer-events:none;box-shadow:0 3px 8px #0005;
 opacity:1;transform:translateY(0);transition:opacity .24s ease,transform .24s ease;
}
#game>.clean-event-notice.out{opacity:0;transform:translateY(-7px)}
@media(max-height:680px){#game>.clean-event-notice{top:173px}}
