/* A small garden game: glass ant jars, wooden docks and tactile controls. */
body{background:radial-gradient(ellipse at 12% 15%,#81b89d80 0,transparent 36%),radial-gradient(ellipse at 88% 85%,#b9ca7580 0,transparent 40%),linear-gradient(160deg,#c4e1c2,#e7edc4 52%,#b8d1a5);background-attachment:fixed}
.app{max-width:640px;padding:0 20px}.topbar{height:54px;padding:0 7px}.brand{font-size:14px;color:#345e43}.brand img{width:27px;height:27px}.brand-sub{font-size:9px;color:#5d7b59}.top-actions{gap:8px}.icon-button,.text-button{background:linear-gradient(#fffce6,#e8e9c3);border:2px solid #faffdf;box-shadow:0 3px 0 #89a174,0 4px 7px #48633420;color:#416741}.icon-button:active,.text-button:active{transform:translateY(2px);box-shadow:0 1px 0 #89a174}
.game-layout{gap:10px;height:min(1040px,calc(100dvh - 66px))}.stage-panel{padding:13px 18px 3px;border:3px solid #fffbe5;border-radius:28px;background:linear-gradient(160deg,#fcf5d9,#f1f5d9 60%,#e7efcd);box-shadow:0 5px 0 #98a57a,0 10px 25px #3e633a1b}.game-title{display:flex;align-items:center;gap:10px}.title-emblem{display:grid;place-items:center;width:43px;height:46px;flex:none;transform:rotate(-8deg);border:2px solid #fff9d4;border-radius:16px 16px 20px 20px;background:linear-gradient(#e0ecaa,#a4c987);box-shadow:0 3px 0 #90aa69}.title-emblem svg{width:33px;height:33px}.stage-heading #title{font-family:"Trebuchet MS","Microsoft YaHei",system-ui,sans-serif;font-size:29px;font-weight:900;letter-spacing:-1.5px;color:#325839;text-shadow:0 2px 0 #fffef1}.eyebrow{font-size:8px;letter-spacing:.13em;color:#8b975a;font-weight:800;margin-bottom:4px}.level-button{padding:6px 9px 6px 6px;gap:7px;background:linear-gradient(#fff5c7,#f4dca1);border:2px solid #fff9dd;box-shadow:0 3px 0 #ccb277,0 4px 8px #9d8b5620;border-radius:13px;font-weight:700;color:#775d35}.level-button:active{transform:translateY(2px);box-shadow:0 1px 0 #ccb277}#level-number{height:29px;min-width:29px;border:1px solid #d7bc79;border-radius:9px;background:#fff8da;color:#887032;font-size:14px;text-shadow:0 1px #fff}.progress-row{font-size:10px;margin:9px 0 5px;color:#75845a}#percent{color:#578048}.progress-track{height:10px;border:2px solid #d3ddac;background:#cbd6ac;box-shadow:inset 0 2px 2px #70865230;overflow:hidden}.progress-track span{background:repeating-linear-gradient(120deg,#87b454 0 8px,#99c461 8px 16px);box-shadow:inset 0 2px 0 #c3e48b}
.canvas-wrap{margin:4px -7px 0}.stage-tools{top:3px;right:4px;height:27px}.small-button{background:linear-gradient(#fffce8,#e8e9c3);border:1px solid #d4d5a8;box-shadow:0 2px 0 #c1c494;border-radius:10px;font-size:10px;font-weight:750;color:#587044;padding:5px 9px}.small-button:active{transform:translateY(1px);box-shadow:0 1px 0 #c1c494}.stage-foot{font-size:10px;min-height:25px;color:#71835b}.live-dot{background:#81a84c;box-shadow:0 0 0 3px #bed29555}
.departure-zone{left:7px;right:7px;padding:7px 7px 0;border-top:0;border-radius:15px 15px 10px 10px;background:linear-gradient(#e3cf95,#e9d9aa);box-shadow:inset 0 2px 0 #fff2c2,inset 0 -2px 0 #d2be87}.departure-zone .section-heading{margin:5px 1px 3px}.departure-zone h2{font-size:10px;color:#887245}.departure-zone .section-heading>span{font-size:9px;color:#887245}.slots{gap:5px}.departure-zone .slot{height:77px;border:1px solid #cbb680;border-radius:10px;background:linear-gradient(#cabb8e,#e4d4a6);box-shadow:inset 0 3px 5px #76633a19,0 1px 0 #fff0c6;justify-content:flex-start;padding:0;overflow:visible}.departure-zone .slot.active{background:linear-gradient(#dfd19e,#f3e5be);border-color:#bba66d;padding-top:0}.empty-cradle{display:block;width:37px;height:45px;margin-top:12px;border:2px dashed #a99b6c66;border-radius:9px 9px 12px 12px;box-shadow:0 3px 0 #b6a16b22}.empty-cradle::after{content:attr(data-place);display:grid;place-items:center;height:100%;font-size:13px;font-weight:800;color:#a18e5b66}.empty-mark{display:none}.team-caption{position:absolute;bottom:4px;font-size:8px;margin:0;color:#8b7852}.slot.working .team-caption{color:#5d8441}.team-progress{height:3px;opacity:.8}.departure-zone .team-progress{border-radius:0 0 8px 8px}
.ant-jar{position:relative;display:block;width:76px;height:83px;flex:none;isolation:isolate;pointer-events:none;filter:drop-shadow(0 3px 1px #6248271a)}.jar-cap{position:absolute;top:2px;left:12%;right:12%;height:15px;border:2px solid color-mix(in srgb,var(--cube) 74%,#55704b);border-radius:6px 6px 4px 4px;background:repeating-linear-gradient(90deg,#ffffff35 0 3px,transparent 3px 8px),linear-gradient(color-mix(in srgb,var(--cube) 60%,#fff8d9),var(--cube));box-shadow:inset 0 2px 0 #fff9ce88,0 2px 0 #5b70433b;z-index:3;transform-origin:8% 90%;transition:transform .2s}.jar-cap::after{content:'•••';position:absolute;top:-7px;left:0;right:0;text-align:center;font-size:16px;letter-spacing:5px;padding-left:4px;color:color-mix(in srgb,var(--cube) 45%,#38523a)}.jar-vessel{position:absolute;top:14px;bottom:4px;left:9%;right:9%;border:2px solid #92ada78c;border-radius:4px 4px 15px 15px;background:linear-gradient(100deg,#ffffffbf,#f6fff249 34%,#e2f3e549 72%,#ffffffa1);box-shadow:inset 3px 0 0 #ffffffc2,inset -3px 0 0 #94b4ac24,inset 0 -8px 0 color-mix(in srgb,var(--cube) 38%,#fff7d9);overflow:hidden}.jar-vessel::after{content:'';position:absolute;top:7px;bottom:14px;left:5px;width:4px;border-radius:8px;background:#fffdf5bb;transform:rotate(3deg)}.jar-count{position:absolute;top:3px;left:7%;right:7%;text-align:center;font-family:"Trebuchet MS",system-ui,sans-serif;font-size:25px;line-height:1.1;font-weight:900;color:#344c3d;text-shadow:0 1px #fffdf0;z-index:2;font-variant-numeric:tabular-nums}.jar-swarm{position:absolute;left:5px;right:4px;height:23px;bottom:7px}.jar-ant{position:absolute;width:20px;height:14px;color:var(--cube);filter:drop-shadow(0 1px 0 #fff9);animation:jar-wander 2.5s ease-in-out infinite alternate}.jar-ant:nth-child(1){left:0;top:1px;transform:rotate(-21deg)}.jar-ant:nth-child(2){right:0;top:6px;animation-delay:-1.4s;transform:rotate(29deg)}.jar-ant:nth-child(3){left:13px;top:13px;animation-delay:-.8s;transform:rotate(-8deg)}.jar-foot{position:absolute;bottom:0;left:13%;right:13%;height:6px;border-radius:3px 3px 9px 9px;background:color-mix(in srgb,var(--cube) 58%,#e4d5a8);box-shadow:inset 0 1px 0 #fff8}.ant-jar.open .jar-cap{transform:translate(-5px,-3px) rotate(-24deg)}.slot .ant-jar{width:56px;height:64px;margin-top:-1px}.slot .jar-cap{height:10px;top:1px}.slot .jar-cap::after{font-size:11px;top:-5px;letter-spacing:3px}.slot .jar-vessel{top:10px;bottom:4px;border-radius:4px 4px 10px 10px}.slot .jar-count{font-size:20px;top:4px}.slot .jar-swarm{height:15px;bottom:6px;left:3px;right:3px}.slot .jar-ant{width:14px;height:10px}.slot .jar-ant:nth-child(3){left:10px;top:7px}.slot .jar-ant:nth-child(2){top:1px}.slot.arriving .ant-jar{opacity:0}.jar-transfer{position:fixed!important;margin:0!important;z-index:100;transform-origin:top left;pointer-events:none!important}.jar-transfer .jar-ant{animation-play-state:paused}
.control-panel{height:clamp(181px,27dvh,265px);padding:11px 16px 8px;border:3px solid #fff5d3;border-radius:24px;background:linear-gradient(#f1dfad,#e3c993);box-shadow:0 5px 0 #ad915d,0 10px 24px #49643716}.control-panel .section-heading{margin-bottom:9px}.control-panel h2{font-size:13px;font-weight:850;color:#755e36}.control-panel .section-heading>span{font-size:9px;color:#968153}.queues{gap:12px;padding:3px 4px 12px;mask-image:linear-gradient(#000 calc(100% - 8px),transparent);scrollbar-color:#b59d63 transparent}.box-stack{align-items:center;gap:3px;border-radius:12px;background:linear-gradient(#b09b6220,#fff0);padding:2px 0}.color-box{width:100%;height:88px;min-height:88px;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;display:grid;place-items:center;transition:transform .12s,filter .12s}.color-box.ready{outline:0;top:0;background:linear-gradient(#f6e9bded,#ead39de8);box-shadow:inset 0 2px 0 #fff4d2;border:1px solid #cdb37c;z-index:3}.color-box.ready::before{content:'';position:absolute;width:20px;height:5px;border-radius:50%;bottom:1px;top:auto;right:calc(50% - 10px);background:#a58a4a22}.color-box.ready:hover{filter:brightness(1.04);transform:translateY(-2px)}.color-box.ready:hover .jar-cap{transform:translateY(-2px) rotate(-4deg)}.color-box.ready:active{transform:translateY(2px) scale(.97)}.color-box.locked{height:65px;min-height:65px;opacity:.8;background:transparent;box-shadow:none}.color-box.locked .ant-jar{width:59px;height:64px}.color-box.locked .jar-vessel{top:12px}.color-box.locked .jar-cap{height:12px}.color-box.locked .jar-cap::after{font-size:12px;top:-5px;letter-spacing:4px}.color-box.locked .jar-count{font-size:19px}.color-box.locked .jar-swarm{transform:scale(.75);transform-origin:bottom center;bottom:6px}.color-box.locked::after{content:none}.color-box.hinted{outline:3px solid #86a348;outline-offset:0;animation:hint-pulse .8s ease-in-out 3}.stack-end{color:#ad965f;font-size:21px;min-height:70px}.bottom-actions{border-top:1px solid #bba16966;padding-top:7px;margin-top:4px}.bottom-actions p{font-size:9px;color:#947c4b}.secondary-button{background:linear-gradient(#fff4cc,#ecd49a);border:1px solid #c2a46a;border-radius:12px;box-shadow:0 3px 0 #b59b65;color:#7c623a;font-size:11px;font-weight:750;padding:8px 12px}.secondary-button:active{transform:translateY(2px);box-shadow:0 1px 0 #b59b65}.primary-button{background:linear-gradient(#85ad55,#527f3e);border:2px solid #9fc078;box-shadow:0 4px 0 #3f6334;color:#fffbe4;text-shadow:0 1px #3b5d31;font-weight:850}.modal{border:3px solid #fff2cd;background:linear-gradient(#fff7da,#eef0cd);box-shadow:0 7px 0 #8c9a68,0 28px 100px #173c3440}.modal h2{color:#426b40}.modal::backdrop{background:#24463180}.level-card{border-color:#d4c38f;background:#f3e8bc;box-shadow:0 3px 0 #ceb985}.level-card.current{border-color:#829e52}.result-actions{gap:14px}.pattern-link{color:#65814a}.paused-label{border-radius:14px;background:#edf2cf88;color:#4c7146}
@keyframes jar-wander{from{translate:-1px -1px;rotate:-6deg}to{translate:2px 1px;rotate:7deg}}
@media(max-width:740px){.app{padding:0 10px;max-width:550px}.topbar{height:49px}.brand{font-size:13px}.brand img{width:24px;height:24px}.brand-sub{font-size:8px}.icon-button,.text-button{height:29px;width:29px}.game-layout{height:calc(100dvh - 59px - env(safe-area-inset-bottom));gap:9px}.stage-panel{padding:11px 13px 3px;border-radius:23px}.title-emblem{width:34px;height:38px;border-radius:13px;flex:none}.title-emblem svg{width:27px;height:27px}.game-title{gap:7px}.stage-heading #title{font-size:25px;letter-spacing:-1.3px}.eyebrow{font-size:7px}.level-button{font-size:9px;padding:4px 6px 4px 4px;gap:5px}#level-number{height:24px;min-width:24px;font-size:12px}.progress-row{font-size:9px;margin:8px 0 4px}.progress-track{height:8px}.canvas-wrap{margin-top:3px}.stage-foot{font-size:9px;min-height:25px}.departure-zone{padding:6px 5px 0;left:4px;right:4px}.departure-zone .slot{height:69px}.slot .ant-jar{width:51px;height:58px}.slot .jar-count{font-size:18px}.slot .jar-swarm{bottom:5px}.slot .jar-ant{width:13px;height:9px}.slot .jar-cap{height:9px}.team-caption{font-size:7px;bottom:3px}.departure-zone h2{font-size:9px}.departure-zone .section-heading>span{font-size:8px}.departure-zone .section-heading{margin-top:4px}.empty-cradle{width:30px;height:39px}.control-panel{height:clamp(174px,25dvh,230px);padding:9px 11px 7px;border-radius:21px}.control-panel .section-heading{margin-bottom:7px}.control-panel h2{font-size:12px}.control-panel .section-heading>span{font-size:8px}.queues{gap:8px;padding:2px 2px 10px}.color-box{height:78px;min-height:78px}.color-box .ant-jar{height:74px;width:64px}.color-box .jar-cap{height:13px}.color-box .jar-vessel{top:12px}.color-box .jar-count{font-size:23px}.color-box .jar-swarm{transform:scale(.85);transform-origin:bottom center;bottom:6px}.color-box.locked{height:59px;min-height:59px}.color-box.locked .ant-jar{height:58px;width:51px}.color-box.locked .jar-count{font-size:17px}.color-box.locked .jar-cap{height:10px}.color-box.locked .jar-vessel{top:10px}.color-box.locked .jar-swarm{transform:scale(.65)}.secondary-button{font-size:10px;padding:7px 10px}.bottom-actions{padding-top:5px;margin-top:3px}.bottom-actions p{font-size:8px}}
@media(max-width:360px){.title-emblem{width:28px;height:32px}.title-emblem svg{width:24px;height:24px}.game-title{gap:5px}.stage-heading #title{font-size:22px}.stage-heading .eyebrow{font-size:6px}.brand-sub{display:none}.level-button{gap:3px;font-size:8px}.slot .ant-jar{width:43px;height:55px}.slot .jar-count{font-size:17px}.slot .jar-ant:nth-child(3){display:none}.slot .jar-vessel{border-width:1.5px}.departure-zone .slot{height:65px}.team-caption{font-size:6px}.color-box .ant-jar{width:58px}.queues{gap:7px}.departure-zone .section-heading>span{font-size:7px}}
@media(max-height:700px){.topbar{height:43px}.game-layout{height:calc(100dvh - 53px - env(safe-area-inset-bottom));gap:7px}.stage-panel{padding-top:8px}.stage-heading .eyebrow{display:none}.title-emblem{width:28px;height:30px}.title-emblem svg{width:24px;height:24px}.stage-heading #title{font-size:23px}.progress-row{margin:5px 0 3px}.progress-track{height:7px}.stage-foot{font-size:8px;min-height:22px}.departure-zone .slot{height:58px}.slot .ant-jar{width:45px;height:49px}.slot .jar-cap{height:8px}.slot .jar-vessel{top:8px}.slot .jar-count{font-size:16px;top:2px}.slot .jar-swarm{height:12px;bottom:5px}.slot .jar-ant{width:12px;height:8px}.team-caption{font-size:6px;bottom:3px}.empty-cradle{height:31px;width:27px;margin-top:9px}.departure-zone{padding-top:5px}.departure-zone .section-heading{margin-top:3px}.departure-zone h2,.departure-zone .section-heading>span{font-size:8px}.control-panel{height:160px;padding:7px 10px 6px}.control-panel .section-heading{margin-bottom:4px}.control-panel h2{font-size:11px}.control-panel .section-heading>span{font-size:8px}.color-box{height:66px;min-height:66px}.color-box .ant-jar{height:63px;width:57px}.color-box .jar-count{font-size:21px}.color-box .jar-cap{height:11px}.color-box .jar-vessel{top:10px}.color-box .jar-swarm{transform:scale(.7)}.color-box.locked{height:50px;min-height:50px}.color-box.locked .ant-jar{height:49px;width:45px}.color-box.locked .jar-count{font-size:16px}.color-box.locked .jar-swarm{transform:scale(.55)}.control-panel .bottom-actions{padding-top:4px;margin-top:2px}.bottom-actions .secondary-button{padding:6px 9px;font-size:9px}.bottom-actions p{font-size:7px}}
#level-name{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:740px){html[lang="en"] .stage-heading #title{font-size:21px;letter-spacing:-1px}#level-name{max-width:82px}}
@media(max-width:360px){html[lang="en"] .stage-heading #title{font-size:18px}#level-name{max-width:70px}}
/* Use the actual pixel color on broad labels rather than a faint glass tint. */
.jar-cap{background:linear-gradient(#ffffff28,#00000008),var(--cube);border-color:color-mix(in srgb,var(--cube) 80%,#40523d)}
.jar-count{top:4px;left:4%;right:4%;padding:1px 0 2px;border:1px solid #31482e35;border-radius:5px;background:var(--cube);color:var(--cube-ink);text-shadow:0 1px #00000012;box-shadow:inset 0 2px 0 #ffffff46,0 1px 0 #ffffff8c;line-height:1.02}
.jar-foot{height:8px;left:10%;right:10%;background:var(--cube);border:1px solid #3b523c40;box-shadow:inset 0 2px 0 #ffffff44}
.jar-vessel{box-shadow:inset 3px 0 0 #ffffffc2,inset -3px 0 0 #94b4ac24,inset 0 -9px 0 color-mix(in srgb,var(--cube) 64%,#fff7d9)}
.color-box.locked{opacity:1}.color-box.ready{border-color:color-mix(in srgb,var(--cube) 65%,#b49c69)}
.jar-ant{width:23px;height:16px}.jar-ant:nth-child(3){top:12px;left:14px}
.slot .jar-count{top:3px;padding:1px 0 2px}.slot .jar-ant{width:16px;height:11px}.slot .jar-foot{height:6px}
@media(max-width:740px){.color-box .jar-count{top:3px}.slot .jar-ant{width:15px;height:10px}.slot .jar-count{top:2px}}
@media(max-width:360px){.slot .jar-ant{width:13px;height:9px}.slot .jar-count{left:2%;right:2%;padding:1px 0}}
@media(max-height:700px){.slot .jar-ant{width:13px;height:9px}.slot .jar-count{top:2px;padding:0 0 1px}.jar-foot{height:6px}}
/* Prioritize the board while keeping all four waiting stacks directly below. */
.topbar{height:45px}.game-layout{height:calc(100dvh - 57px);gap:8px;max-height:1100px}.stage-panel{padding:8px 15px 2px}.stage-heading .eyebrow{display:none}.title-emblem{height:34px;width:34px}.title-emblem svg{height:28px;width:28px}.stage-heading #title{font-size:26px}.progress-row{margin:5px 0 4px}.canvas-wrap{margin-top:2px}.stage-foot{min-height:21px;font-size:9px}.control-panel{position:relative;height:clamp(160px,22dvh,230px);padding-top:8px}.control-panel .section-heading{margin-bottom:5px}.departure-zone .slot{height:65px}.slot .ant-jar{height:53px;width:49px}.slot .jar-count{font-size:18px}.slot .jar-swarm{bottom:5px;height:14px}.slot .jar-ant{height:10px;width:14px}.team-caption{font-size:7px;bottom:3px}.departure-zone .section-heading{margin-top:3px}.departure-zone{padding-top:5px}
.bottom-actions{align-items:center;gap:7px}.bottom-actions .stage-tools{position:static;height:auto;display:flex;gap:6px;margin:0 auto}.stage-tools .small-button{min-width:31px;height:29px;padding:4px 7px;font-size:11px}.bottom-actions .secondary-button{white-space:nowrap}.color-box{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.color-box.previewed{outline:3px solid #497b43;outline-offset:0;filter:brightness(1.07)}.color-box.previewed .jar-cap{transform:translateY(-2px)}
.dispatch-preview{position:absolute;z-index:12;bottom:calc(100% + 5px);left:50%;translate:-50% 0;width:min(310px,calc(100% - 16px));padding:10px 12px;display:flex;align-items:center;gap:10px;border:2px solid #fff8db;border-radius:15px;background:#fff8dff5;box-shadow:0 3px 0 #9ba478,0 7px 18px #30462e28;pointer-events:none;color:#35583b}.dispatch-preview::after{content:'';position:absolute;bottom:-7px;left:calc(50% - 5px);height:10px;width:10px;rotate:45deg;background:#fff8df;border-right:2px solid #9ba478;border-bottom:2px solid #9ba478}.preview-color{height:29px;width:29px;flex:none;background:var(--cube);border:1px solid #294a3455;border-radius:7px;box-shadow:inset 0 3px #ffffff45,inset 0 -4px #00000012}.dispatch-preview strong{display:block;font-size:12px;font-weight:850}.dispatch-preview p{font-size:10px;margin:4px 0 0;line-height:1.4;color:#7a805b}.dispatch-preview[data-state="blocked"] strong,.dispatch-preview[data-state="full"] strong{color:#a46931}
.departure-zone .slot.cleared{background:linear-gradient(#e2f1ac,#c3dc88);border-color:#8ba450;animation:slot-clear-glow .7s ease-out}.slot.cleared .empty-cradle{opacity:.25}.slot.cleared::after{content:attr(data-complete);position:absolute;inset:0;display:grid;place-items:center;color:#4c7a3d;font-size:12px;font-weight:850;text-shadow:0 1px #fff7}.jar-complete{filter:drop-shadow(0 0 5px #e4ffc2)}
@keyframes slot-clear-glow{0%{box-shadow:0 0 0 2px #e9ffc5,inset 0 0 12px #e9ffc5}100%{box-shadow:inset 0 0 3px #e9ffc5}}
@media(max-width:740px){.topbar{height:42px}.game-layout{height:calc(100dvh - 52px - env(safe-area-inset-bottom));gap:8px}.stage-panel{padding:8px 12px 2px}.title-emblem{width:29px;height:31px}.title-emblem svg{width:25px;height:25px}.stage-heading #title{font-size:24px}.progress-row{margin:5px 0 3px}.control-panel{height:clamp(160px,22dvh,210px)}.departure-zone .slot{height:61px}.slot .ant-jar{height:51px;width:46px}.slot .jar-count{font-size:17px}.stage-foot{font-size:8px;min-height:21px}.slot.cleared::after{font-size:10px}.bottom-actions{gap:6px}.stage-tools .small-button{height:27px;min-width:29px;font-size:10px}.bottom-actions .secondary-button{font-size:9px;padding:6px 9px}.dispatch-preview{padding:8px 10px}.dispatch-preview strong{font-size:11px}.dispatch-preview p{font-size:9px}}
@media(max-width:360px){.title-emblem{width:25px;height:28px}.title-emblem svg{width:22px;height:22px}.stage-heading #title{font-size:22px}.slot .ant-jar{width:40px;height:49px}.slot .jar-count{font-size:16px}.slot .jar-ant{width:12px;height:8px}.slot.cleared::after{font-size:9px}.dispatch-preview{width:calc(100% - 12px)}}
@media(max-height:700px){.topbar{height:37px}.game-layout{height:calc(100dvh - 47px - env(safe-area-inset-bottom));gap:7px}.stage-panel{padding-top:6px}.title-emblem{width:25px;height:27px}.title-emblem svg{height:22px;width:22px}.stage-heading #title{font-size:22px}.level-button{padding-top:3px;padding-bottom:3px}.progress-row{margin:4px 0 3px}.departure-zone .slot{height:53px}.slot .ant-jar{height:44px;width:40px}.slot .jar-count{font-size:15px;top:1px}.slot .jar-swarm{height:10px;bottom:4px}.slot .jar-ant{height:8px;width:11px}.team-caption{font-size:6px;bottom:2px}.control-panel{height:146px}.control-panel .section-heading{margin-bottom:3px}.color-box{height:61px;min-height:61px}.color-box .ant-jar{height:59px;width:53px}.color-box .jar-count{font-size:20px}.color-box.locked{height:47px;min-height:47px}.color-box.locked .ant-jar{height:46px;width:42px}.color-box.locked .jar-count{font-size:15px}.stage-tools .small-button{height:24px;min-width:28px}.stage-foot{min-height:20px}.bottom-actions .secondary-button{font-size:9px;padding:5px 8px}.bottom-actions{gap:5px}.slot.cleared::after{font-size:9px}}
@media(max-width:740px){html[lang="en"] .stage-heading #title{font-size:21px}}@media(max-width:360px){html[lang="en"] .stage-heading #title{font-size:18px}}
.secondary-button:disabled{opacity:.45;cursor:default;transform:none;box-shadow:none}.slot[data-reason="blocked"] .team-caption,.slot[data-reason="reserved"] .team-caption{color:#9a6c30}.slot[data-reason="delivering"] .team-caption{color:#42716b}.level-group{grid-column:1/-1;font-size:12px;color:#6f8250;margin:8px 0 0;letter-spacing:.04em}.level-group:first-child{margin-top:0}.blocked-analysis{margin:15px 0 20px;padding:12px;border-radius:12px;background:#eee9cc;text-align:left}.blocked-analysis h3{font-size:11px;color:#7a7656;margin:0 0 8px}.blocked-analysis h3:not(:first-child){margin-top:13px}.color-chips{display:flex;flex-wrap:wrap;gap:6px}.color-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #d7d3b5;border-radius:8px;background:#fffbea;font-size:10px;font-weight:750;color:#5a674a}.color-chip i{display:block;height:15px;width:15px;border:1px solid #314c3544;border-radius:4px;box-shadow:inset 0 2px 0 #ffffff55}.result.stuck h2{font-size:21px;margin-top:12px}.result.stuck .modal-note{text-align:left}.result.stuck .result-actions{gap:10px}.result.stuck .result-actions button{font-size:12px;line-height:1.5}
@media(max-width:740px){.bottom-actions{gap:4px}.bottom-actions .stage-tools{gap:4px}}
@media(max-width:360px){.bottom-actions .secondary-button{padding:5px 6px;font-size:8px}.stage-tools .small-button{min-width:25px;padding:4px 5px}.result.stuck h2{font-size:19px}.blocked-analysis{padding:10px}.color-chip{font-size:9px;padding:4px 5px}}
@media(prefers-reduced-motion:reduce){.jar-ant{animation:none}.jar-cap{transition:none}.slot.cleared{animation:none}}
/* All four stacks scroll as one list; front jars never cover upcoming jars. */
.settings-modal{max-width:420px}.settings-modal h2{margin-bottom:18px}.settings-group{font-size:11px;color:#75824f;font-weight:800;margin:19px 0 5px;letter-spacing:.04em}.setting-row{display:flex;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid #b9b88455;cursor:pointer}.setting-row>span{flex:1;min-width:0}.setting-row strong{display:block;font-size:13px;color:#405d39}.setting-row small{display:block;font-size:11px;color:#7a805e;line-height:1.65;margin-top:5px}.setting-row input{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:42px;height:25px;margin:0;border:1px solid #a6aa85;border-radius:20px;background:#c5c7a9;cursor:pointer;transition:background .15s}.setting-row input::after{content:'';position:absolute;width:19px;height:19px;border-radius:50%;left:2px;top:2px;background:#fffbe9;box-shadow:0 1px 3px #50603d40;transition:transform .15s}.setting-row input:checked{background:#628d45;border-color:#587d40}.setting-row input:checked::after{transform:translateX(17px)}.setting-row input:focus-visible{outline:3px solid #c77b3b;outline-offset:3px}.settings-note{margin:16px 0 0}.settings-modal .primary-button{margin-top:16px!important}.settings-modal .eyebrow{padding-right:22px}#settings svg{display:block}
.queues{flex:1;min-height:0;align-items:start;overflow-x:hidden;overflow-anchor:none;scrollbar-gutter:stable;touch-action:pan-y}.queues:focus-visible{outline:2px solid #829e52;outline-offset:1px;border-radius:10px}.box-stack{overflow-anchor:none}.queue-top{border:0;border-radius:6px;background:#fff4cf;color:#6e6637;font-size:10px;font-weight:700;line-height:1.2;padding:0 5px;min-height:16px}.queue-top:hover{background:#fff9df}.control-panel .section-heading{min-height:16px;flex:none}.queue-top:focus-visible{outline:2px solid #829e52;outline-offset:2px}@media(max-width:740px){.queue-top{font-size:9px}}@media(max-height:700px){.control-panel .section-heading{min-height:14px}.queue-top{min-height:14px;font-size:8px}}
.level-label{display:flex;flex-direction:column;gap:3px;text-align:left;min-width:0}#level-size{font-size:9px;font-weight:500;color:#708054;white-space:nowrap}.level-card img{display:block;width:86px;height:86px;object-fit:contain;margin:0 auto 9px;image-rendering:pixelated}.level-card small{line-height:1.7}.level-filters{position:sticky;top:-32px;z-index:5;background:#fff7da;padding:10px 0 1px;box-shadow:0 7px 10px #fff7da}#level-search{width:100%;min-width:0;border:1px solid #c8c89e;background:#fffdf1;border-radius:10px;padding:10px 12px;color:#34553c;font:inherit;font-size:12px}#level-search:focus-visible{outline:2px solid #769451;outline-offset:2px}.size-filters{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.size-chip{flex:1;white-space:nowrap;border:1px solid #c7c69a;border-radius:20px;padding:8px 9px;background:#f3edcb;font-size:11px}.size-chip[aria-pressed="true"]{background:#587f40;border-color:#587f40;color:#fffbea}.level-filters .modal-note{margin:9px 0}.level-empty{grid-column:1/-1;font-size:12px;color:#738175;line-height:1.7}.level-card strong{overflow-wrap:anywhere}@media(max-width:740px){.level-filters{top:-25px}.size-chip{padding:8px 6px;font-size:10px}#level-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(max-width:360px){#level-name{max-width:96px}}
