/* MER-02 only — pixel-art viewport, physical crop and crate sprites. */
body.mer02-full{overflow:hidden;background:#263d32}body.mer02-full>header{display:none}body.mer02-full #app{width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:0;overflow:hidden}.h2scene{--ink:#35462f;--edge:#5f482f;--paper:#f3e5be;position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;background:#a3ba8b url('../../assets/environments/greenhouse.png') center/cover no-repeat;color:var(--ink);font-family:ui-monospace,Consolas,'Courier New',monospace;line-height:1.15;user-select:none}.h2scene *{min-width:0;box-sizing:border-box}.h2scene img{image-rendering:pixelated;pointer-events:none;-webkit-user-drag:none}.h2scene button{font:inherit;font-weight:800;color:var(--ink);background:#ead7a8;border:2px solid #785d3d;border-radius:0;box-shadow:inset 0 2px #fff0c9,inset 0 -3px #b89a66,0 2px #4f402b;padding:5px;min-height:0;overflow-wrap:anywhere;touch-action:manipulation}.h2scene button:disabled{opacity:.62;filter:none}.h2scene button:focus-visible{outline:3px solid #ffdd88;outline-offset:-3px}.h2top{display:grid;grid-template-columns:80px 1fr 80px;align-items:center;gap:5px;text-align:center;background:#304e3d;border-bottom:4px solid #20392c;color:#fff1c9;padding:5px 9px;flex:none}.h2top>button{justify-self:start}.h2top>div{display:flex;justify-content:flex-end;gap:4px}.h2top button{width:34px;height:32px;background:#63845a;border-color:#263f30;color:#fff4d2;box-shadow:inset 0 2px #9db58a,inset 0 -3px #45654b;padding:0}.h2top strong{font-size:clamp(12px,2vw,20px);overflow-wrap:anywhere}.h2hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#496347;color:#e8ecd1;flex:none;border-bottom:3px solid #2d4837}.h2hud>span{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px;font-size:clamp(10px,1.5vw,14px);border-right:2px solid #354d37}.h2hud b{font-size:clamp(16px,2.7vw,26px);color:#ffe09b;font-variant-numeric:tabular-nums}.h2field{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.9fr) minmax(240px,1fr);gap:clamp(7px,2vw,22px);padding:clamp(6px,1.5vh,16px) clamp(6px,2vw,24px);overflow:hidden}.h2garden,.h2work{display:flex;flex-direction:column;min-height:0;gap:clamp(4px,1vh,8px);padding:7px;border:3px solid #705638;background:#dcc59a;box-shadow:inset 0 0 0 2px #f4e1b2,0 4px #4e4230}.h2garden{background:#bac99a url('../../assets/environments/greenhouse.png') center/100% 100% no-repeat;border-color:#527252;box-shadow:inset 0 0 0 2px #d8e2b8,0 4px #40553b}.h2label{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:none;color:#fff2d0;background:#466349;border:2px solid #304b36;box-shadow:inset 0 2px #8da479;padding:5px 7px;font-weight:800;font-size:clamp(10px,1.5vw,15px)}.h2label span{font-size:.82em;text-align:right;overflow-wrap:anywhere}.h2beds{flex:1;min-height:0;display:grid;grid-auto-rows:minmax(0,1fr);gap:clamp(7px,2vh,20px);padding:clamp(3px,1vw,10px) 0}.h2bed{display:flex;flex-direction:column;min-height:0;position:relative;padding:3px 5px 5px;background:repeating-linear-gradient(102deg,#8d6747 0 2px,#9f7951 2px 13px,#a58156 13px 15px);border:3px solid #664a32;box-shadow:inset 0 2px #c5a175,inset 0 -4px #795738,0 4px #61794c}.h2bedname{flex:none;color:#fff0c9;font-size:clamp(9px,1.1vw,13px);font-weight:900;text-shadow:1px 1px #5d432d;letter-spacing:.07em;margin:0 3px}.h2plants{flex:1;min-height:0;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px;align-items:stretch}.h2scene .h2crop{position:relative;min-height:0;min-width:0;overflow:visible;padding:0;border:0;box-shadow:none;background:none;touch-action:none;display:flex;align-items:center;justify-content:center;filter:none}.h2crop:active:not(:disabled){transform:none}.h2crop:disabled{opacity:1!important}.h2plantart{width:100%;height:100%;max-height:142px;position:relative;display:block;pointer-events:none}.h2plantart>img{position:absolute;width:100%;height:90%;object-fit:contain;left:0;top:0}.h2plantart>.h2foliage{height:100%;object-position:center bottom;transform-origin:center bottom;animation:h2sway 3s ease-in-out infinite alternate}.h2crop:nth-child(3n) .h2foliage{animation-delay:-1s}.h2crop:nth-child(3n+1) .h2foliage{animation-delay:-2s}.h2crop.vine .h2vegetable{height:58%;width:72%;left:14%;top:36%;filter:drop-shadow(1px 2px #513c2e88)}.h2crop.root .h2vegetable{height:94%;width:90%;left:5%;top:0;object-position:center top;clip-path:inset(0 0 52% 0)}.h2crop.root .h2soilcover{position:absolute;left:9%;right:9%;top:46%;height:11%;background:#98704d;clip-path:polygon(0 45%,20% 22%,33% 30%,51% 0,74% 20%,100% 45%,100% 100%,0 100%)}.h2leafcover{display:none;position:absolute;inset:19% 4% 0;z-index:2}.h2leafcover img{width:100%;height:100%;object-fit:contain}.h2crop[data-state=hidden] .h2leafcover{display:block}.h2crop[data-state=hidden] .h2vegetable{visibility:hidden}.h2crop[data-state=gone] .h2vegetable,.h2crop.dragging .h2vegetable{visibility:hidden}.h2crop[data-state=gone].root .h2soilcover{top:46%;background:#573d2b;height:10%}.h2crop[data-state=gone] .h2state{display:none}.h2crop.h2selected:not(:disabled),.h2crop:focus-visible{outline:2px dashed #fff0b6;outline-offset:-2px}.h2crop .h2state{position:absolute;right:1px;bottom:2px;z-index:3;min-width:13px;text-align:center;font-weight:900;font-size:clamp(10px,1.6vw,17px);color:#fff6cc;text-shadow:1px 1px #55402e}.h2crop[data-state=bad] .h2state{background:#853f35}.h2crop[data-state=green] .h2state{background:#506c37}.h2crop[data-state=needed] .h2state{color:#ffe49b}.h2crop[data-state=needed]:not(:disabled):hover .h2vegetable{filter:drop-shadow(0 0 2px #fff3ab)}.h2ticket{background:#fbf0cd;border:2px solid #9d8055;padding:6px;box-shadow:inset 0 2px #fff7e2;display:flex;flex-direction:column;gap:4px;flex:none}.h2ticket>strong{font-size:clamp(12px,1.6vw,18px);color:#3e6240;overflow-wrap:anywhere}.h2req{display:grid;gap:3px}.h2req>span{display:grid;grid-template-columns:clamp(22px,3vw,34px) minmax(0,1fr) auto;align-items:center;gap:5px;background:#e9d7a9;padding:2px 4px;border:1px solid #c1a06d;font-size:clamp(10px,1.3vw,14px)}.h2req>span.complete{background:#d4e5b3;border-color:#82a066}.h2req img{width:100%;height:clamp(22px,4vh,36px);object-fit:contain}.h2req b{font-variant-numeric:tabular-nums}.h2choices{display:flex;gap:4px}.h2choices:empty{display:none}.h2choices button{flex:1}.h2scene .h2held{display:flex;align-items:center;gap:5px;flex:none;text-align:left;padding:4px;font-size:clamp(10px,1.3vw,14px);background:#f2e3b8}.h2held>span:first-child{width:clamp(24px,4vw,42px);height:clamp(24px,5vh,42px);flex:none;display:grid;place-items:center}.h2held img{width:100%;height:100%;object-fit:contain}.h2held>span:nth-child(2){flex:1}.h2held small{font-size:10px}.h2held.occupied{border-color:#7b9a5b}.h2scene .h2crate{flex:1;min-height:48px;position:relative;background:#c4a675;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0 5px 18px}.h2crateart{width:95%;height:100%;object-fit:fill;max-width:320px}.h2slots{position:absolute;left:12%;right:12%;top:23%;height:45%;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;align-items:center;pointer-events:none}.h2slots>span{height:100%;display:grid;place-items:center;background:#4a332733;border:1px dashed #e5c28a88}.h2slots img{width:100%;height:100%;object-fit:contain}.h2crate #h2cratehint{position:absolute;bottom:2px;left:3px;right:3px;background:#f0dfaf;font-size:clamp(10px,1.3vw,14px);padding:2px;overflow-wrap:anywhere}.h2crate.ready{border-color:#5e844f;background:#c6d49c}.h2scene .h2ship{min-height:36px;flex:none;background:#577c4d;color:#fff1ca;border-color:#35533b;box-shadow:inset 0 2px #a7bd82,inset 0 -3px #3c6342,0 2px #344a31;font-size:clamp(12px,1.6vw,17px)}.h2ship.ready{outline:2px solid #fce09a;outline-offset:-5px}.h2crate.shipping .h2crateart,.h2crate.shipping .h2slots{opacity:0}.h2tutorial,.h2status{flex:none;background:#314e3b;color:#fff0c8;padding:5px 9px max(5px,env(safe-area-inset-bottom));border-top:3px solid #20392c;font-size:clamp(10px,1.4vw,14px);overflow-wrap:anywhere}.h2steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-bottom:5px}.h2steps>span{background:#425d43;border:1px solid #78936b;padding:3px;text-align:center;font-size:clamp(9px,1.2vw,12px)}.h2steps .done{background:#74945c;color:#fff7dc}.h2steps .current{background:#f2d489;color:#493b2b;border-color:#f8e6b4}.h2lesson{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}.h2lesson button{flex:none;padding:3px 8px}.h2lesson button[hidden]{display:none}.h2notice{position:absolute;z-index:8;top:15%;left:50%;transform:translate(-50%,-8px);max-width:min(88%,360px);background:#3e6143;color:#fff2c7;border:2px solid #d4c184;box-shadow:0 3px #3d4031;padding:6px 10px;font-size:clamp(11px,1.6vw,16px);font-weight:800;overflow-wrap:anywhere;text-align:center;pointer-events:none;opacity:0;transition:opacity .12s,transform .12s}.h2notice.visible{opacity:1;transform:translate(-50%,0)}.h2notice[data-kind=warn]{background:#8a4e38}.h2flight{position:absolute;width:clamp(42px,6vw,70px);height:clamp(42px,7vh,76px);z-index:10;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(2px 3px #3c342966)}.h2flight img{width:100%;height:100%;object-fit:contain}.h2dirt{position:absolute;width:4px;height:4px;background:#c8a06e;border-bottom:1px solid #65462b;z-index:9;pointer-events:none}.h2dispatch{position:absolute!important;z-index:9;transform:translate(-50%,-50%);pointer-events:none;opacity:1!important;display:flex!important;align-items:center;justify-content:center;overflow:hidden}.h2dispatch .h2crateart{width:95%;height:90%}.h2dispatch #h2cratehint{display:none}.inflight img{visibility:hidden}.h2pause{position:absolute;inset:0;display:grid;place-items:center;background:#253a30bb;z-index:20}.h2pause[hidden]{display:none}.h2pause>div,.h2sign,.h2result{display:grid;gap:10px;padding:14px;background:#f1e3bc;border:4px solid #805f3d;box-shadow:inset 0 0 0 2px #c3a374,0 4px #4d3c2b;text-align:center}.h2menubody{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;padding:12px}.h2sign{display:block;width:min(95%,400px)}.h2sign>img{width:48px;height:50px;object-fit:contain}.h2sign small{display:block;font-weight:800}.h2sign h1{font-size:clamp(24px,5vw,42px);color:#426744;margin:6px 0 12px}.h2modes,.h2actions{display:flex;gap:6px}.h2modes button,.h2actions button{flex:1;padding:7px}.h2modes button[aria-pressed=true]{background:#71965e;color:#fff0c6}.h2levels{display:flex;gap:6px;justify-content:center;width:min(98%,940px)}.h2levels button{flex:1;display:flex;flex-direction:column;gap:5px;text-align:left;max-width:230px;padding:8px}.h2levels b{font-size:17px;color:#577c4e}.h2levels small{font-size:11px}.h2result{margin:auto;width:min(94%,500px);max-height:calc(100% - 48px);overflow:auto;justify-items:center}.h2result>img{height:65px;width:100px;object-fit:contain}.h2result h1{font-size:clamp(21px,4vw,33px);color:#456946}.h2medal{padding:5px 15px;border:2px solid #9d8055;background:#e3cc8b;font-weight:900}.h2medal.prata{background:#d2dfd6}.h2medal.bronze{background:#d6a276}.h2score{font-size:25px}.h2stats{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;width:100%}.h2stats span{background:#e2d3a9;padding:6px;font-size:12px;display:grid;gap:3px}.h2stats b{font-size:19px}.h2actions{width:100%}@keyframes h2sway{to{transform:rotate(1.8deg)}}
@media(max-width:700px) and (orientation:portrait){.h2top{grid-template-columns:65px 1fr 65px;padding:3px 5px}.h2top button{width:29px;height:29px}.h2hud>span{flex-direction:column;gap:1px;padding:3px 1px}.h2field{grid-template-columns:1fr;grid-template-rows:minmax(0,1.1fr) minmax(0,1fr);gap:5px;padding:4px}.h2garden,.h2work{gap:3px;padding:4px;border-width:2px}.h2beds{gap:5px;padding:2px 0}.h2bed{padding:1px 2px 2px;border-width:2px}.h2plants{gap:1px}.h2bedname{font-size:9px}.h2plantart{max-height:95px}.h2label{padding:3px 5px}.h2work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;align-items:stretch}.h2work>.h2label:first-child{grid-column:1}.h2ticket{grid-column:1;grid-row:2/5;overflow:auto;padding:4px}.h2work>.h2label:nth-of-type(3){grid-column:2;grid-row:1}.h2work #h2held{grid-column:2;grid-row:3;min-height:26px}.h2work #h2crate{grid-column:2;grid-row:2;min-height:0}.h2work #h2ship{grid-column:2;grid-row:4;min-height:30px}.h2req>span{font-size:10px;grid-template-columns:22px 1fr auto;gap:2px}.h2req img{height:23px}.h2held>span:first-child{width:24px;height:24px}.h2held small{font-size:9px}.h2steps{gap:2px;margin-bottom:3px}.h2steps>span{font-size:9px;padding:2px}.h2tutorial{padding:4px}.h2lesson{font-size:10px;min-height:26px}.h2levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:410px}.h2levels button{max-width:none}.h2menubody{gap:8px;justify-content:safe center}.h2sign{padding:7px}.h2sign>img{height:32px;width:32px}}
@media(max-height:480px) and (orientation:landscape){.h2top{padding:2px 5px}.h2top button{height:26px;width:28px}.h2hud>span{padding:2px;font-size:10px}.h2hud b{font-size:16px}.h2field{padding:4px;gap:5px}.h2garden,.h2work{padding:3px;gap:3px;border-width:2px}.h2label{padding:2px 4px}.h2beds{gap:4px;padding:1px}.h2bed{padding:1px 3px;border-width:2px}.h2req img{height:20px}.h2ticket{padding:3px;gap:2px}.h2req{gap:1px}.h2req>span{padding:0 3px}.h2held>span:first-child{height:22px;width:22px}.h2scene .h2held{padding:2px}.h2scene .h2ship{min-height:24px;padding:2px}.h2tutorial,.h2status{padding:3px}.h2steps{margin-bottom:2px}.h2steps>span{padding:1px}.h2lesson{min-height:19px}.h2menubody{gap:6px}.h2sign>img{height:22px;width:22px}.h2sign{padding:5px}.h2sign h1{font-size:24px;margin:3px}.h2levels button{padding:4px}}
body.reduce .h2foliage,.h2scene:has(.h2pause:not([hidden])) .h2foliage{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.h2foliage{animation:none}}

.h2dispatch>span:last-child{display:none}.h2dispatch .h2slots{display:grid}.h2crateart{object-fit:contain}.h2crop[data-state=gone].root .h2soilcover{clip-path:polygon(0 35%,30% 0,72% 8%,100% 42%,81% 87%,22% 100%)}
