@charset "UTF-8";
:root{--green:#315f3d;--leaf:#6a8d43;--ink:#334c30;--cream:#fffcf0;--gold:#f6cb56;--border:#dfd8b8}*{box-sizing:border-box}body{margin:0;background:#d3e8b9;color:var(--ink);font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.5;cursor:default}button:focus-visible{outline:3px solid #e4a122;outline-offset:3px}[hidden]{display:none!important}#landing{min-height:100svh;background:#9bdcee;display:grid;place-items:center}.landing-art{position:relative;width:min(100vw,calc(100svh * 1671 / 941));aspect-ratio:1671/941}.landing-art>img{width:100%;height:100%;display:block}.image-start{position:absolute;left:37%;top:80%;width:26%;height:15%;background:transparent;border:0;border-radius:90px}.image-start:hover{box-shadow:0 0 0 4px #fff8,0 0 28px #ffe17c}#game{height:100svh;display:flex;flex-direction:column;overflow:hidden}.hud{height:78px;flex-shrink:0;padding:10px 26px;background:linear-gradient(#fffef5,#f6f0d9);display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:3px solid #bbcf97;box-shadow:0 3px 20px #223c3222;z-index:3}.brand strong{font-size:26px;letter-spacing:-1px;display:block}.brand small{font-size:11px;letter-spacing:2px;color:#7c8c67}.hud-stats{display:flex;align-items:center;gap:9px}.pill{display:inline-flex;border-radius:22px;background:#ebefd9;border:1px solid #d0d9b1;padding:9px 15px;font-size:13px;font-weight:bold;white-space:nowrap}.money{background:#fff1b7;border-color:#e2bf5d}.subtle,.status-bar button{border:0;background:transparent;font-size:12px;text-decoration:underline;text-underline-offset:4px}.farm-stage{position:relative;flex:1;min-height:0;background:#a6d999;overflow:hidden}.scene-scroll{width:100%;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.scene{position:relative;width:max(100%,1000px);min-height:100%;aspect-ratio:1672/941;isolation:isolate}.scene>img,#clear-layers>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.scene-heading{position:absolute;top:20px;left:24px;max-width:410px;background:#fffef0ed;border:1px solid #ffffffc9;border-radius:18px;padding:15px 22px;box-shadow:0 6px 24px #2b532c25;pointer-events:none}.eyebrow{display:block;color:#81905f;font-size:10px;font-weight:bold;letter-spacing:2px}.scene-heading h1{font-size:23px;margin:6px 0;letter-spacing:-1px}.scene-heading p{font-size:12px;line-height:1.7;margin:0;color:#6b7851}.zone-toggle{position:absolute;right:24px;bottom:24px;background:linear-gradient(#ffe286,#efbc38);border:2px solid #fff4bd;box-shadow:0 5px 0 #b4812c,0 8px 24px #223d3240;border-radius:20px;padding:15px 23px;font-weight:bold;font-size:15px;color:#644318}.map-message{position:absolute;bottom:28px;left:24px;background:#fffdf1ef;border:1px solid #e3d9ad;border-radius:14px;padding:11px 16px;max-width:min(58%,560px);font-size:12px;line-height:1.7;box-shadow:0 4px 20px #24402325}.map-message:empty{display:none}.hotspot{position:absolute;transform:translate(-50%,-50%);background:linear-gradient(#fff9df,#f0dfab);border:2px solid #fff7d8;box-shadow:0 4px 0 #9d804a88,0 7px 22px #3b4b3944;border-radius:22px;padding:10px 14px;font-size:13px;font-weight:bold;white-space:nowrap;z-index:2}.hotspot.ready{background:linear-gradient(#ffe799,#f5c647)}.hotspot.done{background:#e0efb7;border-color:#f6ffdc;color:#466930}.hotspot small{display:block;font-size:10px;font-weight:normal;margin-top:4px}.decoration{position:absolute;transform:translate(-50%,-50%);width:11%;aspect-ratio:110/105;filter:drop-shadow(0 5px 3px #42633255);pointer-events:none}.decoration svg{width:100%;height:100%}.bottom-nav{height:76px;flex-shrink:0;background:linear-gradient(#fffef4,#eee6c9);border-top:2px solid #fff9e1;display:flex;justify-content:center;gap:8px;padding:5px 15px;z-index:3}.nav{position:relative;min-width:105px;border:0;background:transparent;border-radius:13px;padding:5px 18px;font-size:12px;font-weight:bold;color:#79805c}.nav>span{font-size:24px;line-height:1.2;display:block;margin-bottom:3px}.nav.active{background:#dfeac8;box-shadow:inset 0 0 0 1px #c5d4a8;color:#36572e}.nav b{display:inline-grid;place-items:center;background:#dc823a;color:white;border-radius:12px;min-width:18px;height:18px;font-size:10px;position:absolute;right:10px;top:2px}.nav b:empty{display:none}.status-bar{height:29px;flex-shrink:0;background:#e5ebcf;display:flex;align-items:center;gap:16px;padding:0 22px;font-size:10px;color:#6d7b57}.status-bar>span{margin-right:auto}.status-bar button{font-size:10px}dialog{width:min(96vw,650px);max-height:94svh;border:1px solid #fff6df;border-radius:24px;padding:0;background:var(--cream);color:var(--ink);box-shadow:0 18px 80px #1b3d3b77;overflow-y:auto}dialog::backdrop{background:#133e3166;backdrop-filter:blur(2px)}.panel-head{position:sticky;top:0;z-index:6;background:linear-gradient(#fffdf1,#f4edcf);border-bottom:1px solid #e4dbb7;padding:14px 20px;display:flex;justify-content:space-between;align-items:center}.panel-head h2{font-size:22px;letter-spacing:-1px;margin:4px 0 0}.close{width:36px;height:36px;border:1px solid #d8dcb7;border-radius:50%;background:#eef1dd;font-size:24px}.panel-body{padding:14px 20px 8px}.panel-message{position:sticky;bottom:0;background:#fff6dceb;border-top:1px solid #e4d9b8;font-size:12px;line-height:1.7;padding:10px 20px;min-height:40px;z-index:5}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row.center{justify-content:center}.button{border:1px solid #2d603b;background:linear-gradient(#54804f,#34683e);box-shadow:0 3px 0 #234e30;border-radius:12px;color:#fffdf1;padding:11px 17px;font-size:13px;font-weight:bold;min-height:43px}.button.gold{background:linear-gradient(#ffe18b,#efbe46);border-color:#d1a23c;box-shadow:0 3px 0 #ad8130;color:#64481c}.button.secondary{background:#edf0dc;border:1px solid #cdd5b0;box-shadow:0 2px 0 #c3ccaa;color:#547040}.button.small{min-height:34px;padding:7px 11px;font-size:12px}.callout{background:#f3edcf;border:1px solid #e2d9b1;border-radius:13px;padding:10px 13px;font-size:12px;line-height:1.7;margin-bottom:10px}.callout strong{color:#56793d}.tool-types{display:flex;gap:5px;margin-bottom:10px}.type-button{flex:1;min-width:0;border:1px solid #d2d6b7;border-radius:12px;background:#f2f1de;padding:3px 1px 6px;font-size:11px}.type-button.active{background:#e5edc6;outline:2px solid #77944e}.tool-sprite{display:block;width:55px;height:48px;background-image:url('assets/tools-atlas-v4.webp');background-size:500% 300%;background-repeat:no-repeat;margin:auto;pointer-events:none}.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:min(100%,340px,43svh);aspect-ratio:1;background:#d6dfbe;border:3px solid #c7d0a6;border-radius:16px;padding:7px;margin:12px auto;touch-action:none}.cell{min-width:0;aspect-ratio:1;border:1px solid #ccd2b2;border-radius:11px;background:linear-gradient(#fffdf2,#eeefda);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;touch-action:none;user-select:none;padding:2px}.cell .tool-sprite{width:100%;height:calc(100% - 13px);margin:0}.cell small{font-size:9px;line-height:1.1;pointer-events:none;color:#5e7445}.cell.selected{outline:3px solid #deab3a;background:#fff1bb}.cell.complete{border:2px solid #d0a245;background:#fff0ba}.crop-icon{font-size:27px;pointer-events:none}.board-actions{position:sticky;top:0;background:#fffdf0ed;z-index:4;padding:5px 0}.hint{font-size:11px;color:#7f8968;line-height:1.7;margin:8px 0}.use-button{width:100%;margin:0 0 10px}.plots{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:10px 0}.plot{border:2px solid #b4945a;background:repeating-linear-gradient(0deg,#8c6338 0 9px,#a97c45 9px 15px);border-radius:15px;min-height:100px;box-shadow:inset 0 0 0 3px #ffffff20;color:#fff8dc}.plot span{display:block;font-size:34px;margin:7px}.plot strong{display:block;font-size:11px;background:#3e622fbd;border-radius:10px;margin:8px;padding:5px}.mission{border:1px solid #ddd7b8;background:#fffef7;border-radius:15px;padding:13px;margin:9px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.mission h3{font-size:14px;margin:0 0 6px}.mission p{font-size:11px;color:#7b8564;margin:0;line-height:1.7}.reward{font-size:12px;color:#a67b29;font-weight:bold}.decor-card{background:#fffef7;border:1px solid #e1d7b7;border-radius:16px;padding:13px;margin:10px 0}.decor-card h3{font-size:15px;margin:0 0 10px}.decor-options{display:flex;gap:6px;margin-bottom:10px}.decor-option{flex:1;padding:8px 3px;background:#f3f2e0;border:1px solid #d5d8b8;border-radius:10px;font-size:11px}.decor-option svg{width:70px;max-width:100%;height:60px;display:block;margin:0 auto 5px}.decor-option.active{outline:2px solid #829b54;background:#e9edce}.journal{font-size:12px;line-height:1.8;padding-left:24px}.journal li{margin-bottom:8px}.confirm-panel{padding:24px;max-width:380px}.confirm-panel h2{font-size:19px}.confirm-panel p{font-size:13px;line-height:1.8}#phaser-host{width:min(100%,340px,43svh);aspect-ratio:1;margin:12px auto}#phaser-host canvas{display:block!important;width:100%!important;height:100%!important;margin:0!important}#engine-status{font-size:10px;color:#8c9377;margin-top:6px}.engine-toggle{font-size:10px;background:none;border:0;text-decoration:underline;color:#6f7e52}
@media(min-aspect-ratio:18/9){.scene{min-height:100%;aspect-ratio:auto;height:100%;width:100%}}
@media(max-width:650px){.hud{height:70px;padding:8px 12px}.brand strong{font-size:21px}.brand small{font-size:9px}.hud-stats{gap:5px}.pill{font-size:11px;padding:8px 10px}#growth{max-width:96px;white-space:normal;line-height:1.4}.subtle{font-size:10px}.bottom-nav{gap:1px;height:72px;padding:5px}.nav{min-width:0;flex:1;font-size:10px;padding:5px 1px}.nav>span{font-size:22px}.nav b{right:4px}.scene-heading{left:12px;top:12px;padding:10px 14px;max-width:280px}.scene-heading h1{font-size:18px}.scene-heading p{font-size:10px}.zone-toggle{right:12px;bottom:16px;padding:12px 15px;font-size:12px}.map-message{left:12px;bottom:78px;max-width:calc(100% - 24px);font-size:11px}.status-bar{padding:0 10px;gap:10px}.panel-head{padding:11px 14px}.panel-head h2{font-size:20px}.panel-body{padding:10px 13px 5px}.panel-message{padding:8px 13px}.scene{width:1000px}.hotspot{font-size:12px;padding:9px 11px}.button{padding:10px 12px}.mission{padding:11px}.type-button .tool-sprite{width:45px;height:40px}}@media(max-height:550px){.hud{height:55px}.bottom-nav{height:60px}.nav>span{font-size:20px}.scene-heading{top:10px;padding:8px 14px}.scene-heading h1{font-size:17px}.scene-heading p{display:none}.board,#phaser-host{width:min(100%,260px,40svh)}.panel-head{padding:9px 14px}.tool-types{margin-bottom:5px}.type-button .tool-sprite{width:35px;height:30px}.callout{padding:7px 10px}}

.field-effect{position:absolute;z-index:9;transform:translate(-50%,-50%);pointer-events:none;background:#fff6ca;border:2px solid #e4be5f;border-radius:22px;padding:12px 18px;font-size:15px;font-weight:bold;box-shadow:0 5px 20px #38502b55;animation:field-clear 1.5s ease-out forwards}@keyframes field-clear{0%{opacity:0;transform:translate(-50%,-30%) scale(.8)}20%{opacity:1;transform:translate(-50%,-60%) scale(1.05)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-120%) scale(1)}}

.field-target{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;display:flex;align-items:flex-end;justify-content:center;padding:0;z-index:2;border-radius:24px}.object-label{display:block;background:linear-gradient(#fff9df,#f0dfab);border:2px solid #fff7d8;box-shadow:0 4px 0 #9d804a88,0 7px 22px #3b4b3944;border-radius:22px;padding:10px 14px;font-size:13px;font-weight:bold;white-space:nowrap}.object-label small{display:block;font-size:10px;font-weight:normal;margin-top:4px}.field-target.ready .object-label{background:linear-gradient(#ffe799,#f5c647)}.field-target.done .object-label{background:#e0efb7;color:#466930}.field-target:hover{background:#fff8cf15;outline:2px solid #fff6bd88}

.energy{background:#e6f1d6;border-color:#a9c37e;color:#527439}.work-track{display:block;width:100%;height:6px;margin-top:7px;border-radius:9px;background:#d5d9bc;overflow:hidden}.work-fill{display:block;height:100%;background:#c69c2e;transition:width .25s}.field-target.in-progress .object-label{background:#fff0b2}.working-hit{animation:hit-shake .35s ease-in-out}@keyframes hit-shake{0%,100%{translate:0 0}25%{translate:-7px 0}65%{translate:6px 0}}
#story{position:relative;min-height:100svh;display:grid;place-items:center;padding:22px;isolation:isolate;background:#2f5a41}.story-backdrop{position:absolute;inset:0;z-index:-2;background:url('assets/farm-finished-v4.webp') center/cover;filter:blur(4px) brightness(.65)}.story-shell{width:min(96vw,680px);background:#fffbedee;border:2px solid #fff3cc;border-radius:25px;padding:20px;box-shadow:0 20px 80px #183a3255;text-align:center}.story-top{display:flex;justify-content:space-between;font-size:12px;font-weight:bold;color:#64814e;padding:0 8px 15px}.story-stage{display:flex;align-items:center;justify-content:center;gap:12px;touch-action:pan-y}.story-frame{width:min(60vw,340px,48svh);overflow:hidden;border-radius:20px;box-shadow:0 6px 16px #38532a30;border:3px solid #fff}.story-crop{position:relative;overflow:hidden;width:100%}.story-crop img{position:absolute;max-width:none;height:auto;display:block;pointer-events:none;user-select:none}.story-arrow{width:43px;height:52px;border:1px solid #d2c48c;background:linear-gradient(#ffe48c,#f0c14d);box-shadow:0 3px 0 #ad8737;border-radius:14px;font-size:35px;line-height:1;color:#735323;flex-shrink:0}.story-arrow:disabled{opacity:.3}.story-shell h1{font-size:22px;margin:18px 0 12px}.story-dots{display:flex;justify-content:center;gap:8px}.story-dot{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:#d1d9b8}.story-dot.active{background:#739047;width:25px;border-radius:9px}.story-help{font-size:11px;color:#82916b;margin:11px 0 15px}.story-shell>.button{min-width:200px}.hud-stats{flex-wrap:wrap}.field-target.ready .object-label{box-shadow:0 0 0 3px #fff4c577,0 5px 12px #69502033}
@media(max-width:650px){.hud{height:86px}.hud-stats{max-width:240px;gap:4px}.pill{padding:6px 8px;font-size:10px}#growth{max-width:90px}.story-shell{padding:14px 9px}.story-stage{gap:7px}.story-arrow{width:33px;height:45px;font-size:29px}.story-frame{width:min(65vw,340px,48svh)}.story-shell h1{font-size:19px}.story-top{padding-bottom:12px}.story-shell>.button{font-size:12px}}@media(max-height:550px){#story{padding:10px}.story-shell{padding:12px 20px;width:min(96vw,680px);display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:center}.story-top{grid-column:1/-1;padding:0}.story-stage{grid-row:2/6;grid-column:1;gap:5px}.story-frame{width:min(200px,45svh)}.story-shell h1{grid-column:2;font-size:17px;margin:6px}.story-shell>.button{min-width:0;grid-column:2}.story-dots,.story-help{grid-column:2;margin:5px}.story-arrow{width:26px;height:38px;font-size:27px}.hud{height:65px}}

.quiet-target:not(:focus-visible):not(:hover) .object-label{opacity:.25;transform:scale(.9)}.first-task .object-label{border-color:#fff1b3;box-shadow:0 0 0 4px #ffdd7266,0 7px 22px #3b4b3944}.first-task .object-label::before{content:'첫 작업';display:block;font-size:10px;letter-spacing:1px;color:#9b7624;margin-bottom:4px}.field-target .object-label{transition:opacity .15s,transform .15s}.scene-heading h1{font-size:21px}.scene-heading{max-width:370px}
@media(max-width:650px){.scene-heading{max-width:270px}.scene-heading h1{font-size:17px}.quiet-target:not(:focus-visible):not(:hover) .object-label{opacity:0}.hud-stats .energy{font-size:11px}}

/* Preserve the supplied village image; only cover the restaurant's name in UI. */
#landing{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;background:#eaf2df;min-height:100svh}.landing-art.reference-village{position:relative;width:min(100vw,calc((100svh - 72px) * 1671 / 690));aspect-ratio:1671/690;overflow:hidden}.landing-art.reference-village>img{position:absolute;inset:0 auto auto 0;display:block;width:100%;height:auto;max-width:none}.restaurant-name{position:absolute;left:50.65%;top:36%;width:7.4%;height:4.5%;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:#fff4d9;color:#17140d;font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:clamp(10px,1.65vw,28px);font-weight:900;line-height:1;letter-spacing:-1px;border-radius:8px}.landing-controls{height:72px;display:flex;align-items:center;justify-content:center;gap:18px;width:100%;background:linear-gradient(#fffdf1,#f0e4ba);border-top:2px solid #fff5cc;padding:10px}.reference-start{font-size:19px;min-width:230px;min-height:48px;border-radius:24px}.landing-controls>span{font-size:12px;color:#75805c}@media(max-width:650px){.landing-controls{height:auto;min-height:100px;flex-direction:column;gap:8px}.landing-art.reference-village{width:100vw}.restaurant-name{font-size:clamp(8px,1.65vw,12px);letter-spacing:-.4px;border-radius:3px}.reference-start{font-size:16px;min-height:44px}.landing-controls>span{font-size:10px}}

.scene.reference-overview{aspect-ratio:1671/690;min-height:0;overflow:hidden}.scene.reference-overview>img{height:auto;object-fit:initial}.overview-name{top:36%;height:4.5%;z-index:1;font-size:clamp(14px,1.65vw,28px)}


.game-logo-replacement{position:absolute;left:0%;top:5.8%;width:19.5%;height:14.9%;display:block;pointer-events:none}.game-logo-replacement svg{display:block;width:100%;height:100%;overflow:visible}

/* Clear, restrained guidance over the detailed illustration. */
.object-label{background:#fffdf8f5;border:1px solid #ced7c7;box-shadow:none;border-radius:7px;padding:8px 12px;color:#304b35;font-size:12px}.object-label small{color:#64755d;font-size:10px}.field-target.ready .object-label,.field-target.in-progress .object-label{background:#edf4e7;border-color:#6f9567;box-shadow:none}.first-task .object-label{border:2px solid #73976b;box-shadow:none}.first-task .object-label::before{color:#6d8763;font-size:9px;margin-bottom:3px}.field-target:hover{outline:none;background:#ffffff0a}.field-target:focus-visible{outline:3px solid #76986d}.scene-heading{border-radius:9px;padding:12px 16px;background:#fffef8f2;border:1px solid #d6ddcf;box-shadow:none;max-width:350px}.scene-heading .eyebrow{letter-spacing:1px;font-size:9px}.scene-heading h1{font-size:18px;font-weight:700}.scene-heading p{font-size:11px}.map-message{border-radius:7px;border:0;border-left:3px solid #71946a;background:#fffef8ef;padding:9px 12px;box-shadow:none;font-size:11px;max-width:min(57%,500px)}.field-effect{background:#fffef5f5;border:1px solid #b8c9ac;border-radius:8px;padding:9px 14px;font-size:13px;box-shadow:none}.work-track{height:4px}.work-fill{background:#779768}.panel-head{background:#faf9f1;border-bottom:1px solid #dbe1d1}.panel-wallet{display:flex;gap:8px;margin-top:9px;font-size:12px;font-weight:bold}.panel-wallet>span{padding:6px 10px;border-radius:8px;background:#edf2e6;border:1px solid #d5dfcb}.gems{background:#eef0fa;border-color:#cbd0e4;color:#5d6590}.energy-action-hint{font-size:11px;color:#65805c;text-align:center;margin:7px 0}.pill{box-shadow:none}.hud{background:#fcfbf5;border-bottom:1px solid #cad7bd;box-shadow:none}.panel-message{background:#f4f6ed;border-color:#d8dfcc;color:#526749;border-radius:0}.hud-stats{gap:7px}.hud .pill{padding:8px 12px}.close{background:#eff2e8;border:1px solid #d8dfcc}
@media(max-width:650px){.hud{height:92px}.hud-stats{max-width:250px;gap:4px}.hud .pill{padding:6px 8px;font-size:10px}.brand strong{font-size:19px}.brand small{font-size:8px}.panel-wallet{font-size:11px;margin-top:7px}.scene-heading{max-width:270px;padding:10px 12px}.scene-heading h1{font-size:16px}.map-message{max-width:calc(100% - 24px);font-size:10px}.object-label{padding:7px 10px}.panel-head h2{font-size:19px}}

.clearing-patch{animation:patch-reveal .35s ease-out}.field-motion{position:absolute;z-index:8;pointer-events:none;width:120px;height:120px;transform:translate(-50%,-50%);animation:motion-life .85s linear forwards}.motion-tool{position:absolute;width:95px;height:95px;left:0;top:-35px;transform-origin:25% 85%;animation:tool-strike .5s ease-in-out}.motion-tool .tool-sprite{width:95px;height:95px}.motion-impact{position:absolute;left:35px;top:55px;width:50px;height:14px;border-radius:50%;background:#e5cda0a6;animation:dust-ring .6s ease-out}.motion-particle{position:absolute;left:55px;top:57px;width:9px;height:8px;border-radius:45%;background:#c6ac7c;animation:chip-scatter .65s ease-out forwards}.motion-hoe .motion-particle{background:#71934b;border-radius:0 70% 0 70%;width:12px;height:7px}.motion-axe .motion-particle{background:#9e784e;border-radius:2px;width:11px;height:5px}.motion-pick .motion-particle{background:#9ba29a;clip-path:polygon(10% 15%,80% 0,100% 70%,30% 100%)}.motion-hammer .motion-particle{background:#a79172;border-radius:1px}.motion-tractor .motion-tool{animation:tractor-push .65s ease-in-out}.motion-hoe .motion-tool{animation:hoe-scoop .55s ease-in-out}.motion-axe .motion-tool{animation:axe-chop .5s ease-in-out}.removed-object{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;animation:object-clear .55s ease-in forwards}.removed-axe{animation:tree-tip .65s ease-in forwards}.removed-hammer{animation:house-collapse .6s ease-in forwards}.removed-pick{animation:rock-scatter .55s ease-in forwards}
@keyframes patch-reveal{from{opacity:.25}to{opacity:1}}@keyframes motion-life{0%,90%{opacity:1}100%{opacity:0}}@keyframes tool-strike{0%{rotate:-45deg;translate:0 -22px}40%{rotate:18deg;translate:10px 15px}60%{rotate:8deg;translate:4px 8px}100%{rotate:-22deg;translate:0 -8px;opacity:0}}@keyframes hoe-scoop{0%{rotate:-35deg;translate:-15px -15px}40%{rotate:15deg;translate:10px 20px}75%{rotate:-15deg;translate:-22px 5px}100%{rotate:-30deg;translate:-30px -7px;opacity:0}}@keyframes axe-chop{0%{rotate:-65deg;translate:-20px -15px}45%{rotate:35deg;translate:18px 10px}100%{rotate:-10deg;translate:5px -10px;opacity:0}}@keyframes tractor-push{0%{translate:-45px 0}60%{translate:23px 0}100%{translate:40px 0;opacity:0}}@keyframes chip-scatter{0%{translate:0 0;rotate:0deg;opacity:0}20%{opacity:1}100%{translate:var(--dx) var(--dy);rotate:var(--turn);opacity:0}}@keyframes dust-ring{0%{scale:.3;opacity:0}30%{opacity:.8}100%{scale:2.5;opacity:0}}@keyframes object-clear{to{opacity:0;scale:.94;translate:0 10px}}@keyframes tree-tip{0%{rotate:0deg;opacity:1}50%{opacity:.8}100%{rotate:12deg;translate:16px 12px;opacity:0}}@keyframes house-collapse{0%{scale:1;opacity:1}20%{translate:-3px 0}40%{translate:3px 1px}100%{scale:1 .68;translate:0 20px;opacity:0}}@keyframes rock-scatter{to{scale:.75;translate:15px 10px;opacity:0}}
@media(prefers-reduced-motion:reduce){.field-motion,.removed-object,.clearing-patch{animation-duration:.1s}.motion-tool,.motion-particle,.motion-impact{animation-duration:.1s}}

.field-target.target-selected{border:2px solid #95b481;background:#eaf4d71a;box-shadow:inset 0 0 0 2px #fff8;outline:0}.target-selected .object-label{opacity:1!important;transform:none!important;background:#edf5e8;border-color:#75976a}.target-tap-mark{position:absolute;z-index:7;width:58px;height:58px;border:3px solid #efffd9;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;animation:target-ring .35s ease-out forwards;box-shadow:0 0 0 2px #73936555}.target-tap-ghost{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;animation:target-object-tap .3s ease-out forwards}@keyframes target-ring{from{scale:.45;opacity:1}to{scale:1.65;opacity:0}}@keyframes target-object-tap{0%{translate:0 0;opacity:1}25%{translate:-4px -2px;opacity:1}55%{translate:4px 0;opacity:1}80%{translate:-2px 1px;opacity:.6}100%{translate:0 0;opacity:0}}@media(prefers-reduced-motion:reduce){.target-tap-ghost{animation:none;opacity:0}.target-tap-mark{animation-duration:.1s}}

/* Every tool is an independent transparent image, never a cropped background tile. */
img.tool-sprite{background:none!important;object-fit:contain;object-position:center;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none;flex-shrink:0}.cell img.tool-sprite{width:100%;height:calc(100% - 13px);min-height:0;max-width:100%;background:none!important}.motion-tool img.tool-sprite{width:100%;height:100%;object-fit:contain;max-width:none;max-height:none;background:none!important}.motion-tool{overflow:visible}.field-motion{overflow:visible}.type-button img.tool-sprite{object-fit:contain;background:none!important}

/* Complete standalone story illustrations: never crop or stretch. */
.story-shell{width:min(96vw,1120px)}.story-frame{width:min(82vw,950px);border-radius:16px}.story-crop{aspect-ratio:1672/941;background:#f6efdc}.story-crop img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain}.story-dots{flex-wrap:wrap}.story-shell h1{font-size:21px}
@media(max-width:650px){#story{padding:10px}.story-frame{width:calc(100vw - 110px)}.story-stage{gap:5px}.story-shell h1{font-size:18px;line-height:1.5}.story-dot{width:8px;height:8px}.story-dots{gap:6px}}
@media(max-height:550px){.story-shell{width:min(97vw,1120px);grid-template-columns:minmax(0,2fr) minmax(180px,1fr)}.story-frame{width:100%}.story-stage{min-width:0}.story-shell h1{font-size:17px}.story-crop{max-height:72svh}.story-crop img{object-fit:contain}}

#landing .landing-farm-sign{position:absolute;left:47%;top:76.4%;width:12.8%;height:5.9%;pointer-events:none}#landing .landing-farm-sign svg{display:block;width:100%;height:100%}
/* Illustrated cleanup workbench */
#panel.merge-panel{width:min(98vw,1050px);max-height:98svh;border:3px solid #e3c788;border-radius:24px;background:linear-gradient(#163b32a0,#244c36b0),url('assets/farm-expansion.webp') center/cover;color:#fff9e4}
.merge-panel .panel-head{background:linear-gradient(100deg,#fff9e9f5,#e3efdaf2);color:#315338;border-bottom:3px solid #b7904d}
.merge-panel .panel-body{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(280px,1.2fr);gap:9px 24px;padding:14px 22px 18px;align-items:start}
.cleanup-orders{grid-column:1/-1;display:flex;gap:8px;overflow-x:auto;padding:3px 3px 10px;scrollbar-width:thin}
.cleanup-order{flex:1;min-width:105px;position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center;gap:2px;padding:8px 6px 6px;border:2px solid #f7e5b7;border-radius:15px;background:linear-gradient(#fffdf2,#eee1bd);box-shadow:0 4px 0 #70562980;color:#4c512f}
.cleanup-order.current{border-color:#fff2a3;box-shadow:0 0 0 3px #eebd42,0 5px 12px #142e2744}
.cleanup-order.done{background:linear-gradient(#efffdc,#b9d9a2)}
.cleanup-order strong{grid-column:1/-1;font-size:12px}
.target-illustration{width:58px;height:48px;grid-column:1/-1;border-radius:10px;background-image:url('assets/farm-expansion.webp');background-size:420% 250%;box-shadow:inset 0 0 0 1px #fff8}
.target-hoe{background-position:8% 83%}.target-hammer{background-position:97% 28%}.target-axe{background-position:0% 18%}.target-pick{background-position:100% 82%}.target-tractor{background-position:48% 100%}
.order-tool{display:flex;align-items:center;grid-column:1/-1;gap:5px}.order-tool .tool-sprite{width:30px;height:27px}.order-tool small{font-size:10px;font-weight:bold}.order-reward{grid-column:1/-1;color:#946a1e;font-size:11px;font-weight:bold}
.workshop-hero{grid-column:1;grid-row:2/9;position:relative;align-self:stretch;min-height:390px;border-radius:20px;overflow:hidden;background:linear-gradient(0deg,#243e2cd9,transparent 75%),url('assets/farm-expansion.webp') 18% center/cover;border:1px solid #ebdda77a;box-shadow:inset 0 0 40px #19372b44}
.workshop-crew{position:absolute;bottom:82px;left:6%;width:88%;height:calc(100% - 100px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 5px #163b3250)}
.workshop-copy{position:absolute;bottom:0;padding:16px;background:linear-gradient(transparent,#173b2cf0 22%);width:100%}.workshop-label{font-size:10px;letter-spacing:.4px;font-weight:bold;color:#d9e9bb}.workshop-copy strong{display:block;font-size:20px;line-height:1.4;margin:5px 0}.workshop-copy p{font-size:12px;line-height:1.6;margin:0;color:#eaf2db}
.merge-panel .panel-body>.callout,.merge-panel .tool-types,.merge-panel .board-actions,.merge-panel .energy-action-hint,.merge-panel .tool-evolution,.merge-panel .board,.merge-panel #phaser-host,.merge-panel #engine-status,.merge-panel #engine-toggle,.merge-panel .use-button,.merge-panel .panel-body>.button{grid-column:2}
.merge-panel .callout{margin:0;background:#fff8dfed;color:#455c32;border-color:#dfca88;padding:8px 12px;font-size:12px}
.merge-panel .tool-types{margin:0;gap:7px}.merge-panel .type-button{background:linear-gradient(#fffdf4,#e6ebd3);border:2px solid #e8d6a4;border-radius:12px;box-shadow:0 3px 0 #33523866;color:#435838}.merge-panel .type-button.active{background:linear-gradient(#ffec9c,#f6cc61);outline:2px solid #fff6c5}.merge-panel .type-button .tool-sprite{width:48px;height:45px}
.merge-panel .board-actions{position:static;background:none;padding:0;gap:6px}.merge-panel .board-actions>.button:first-child{flex:1;min-height:45px;font-size:14px}.merge-panel .board-actions>.button.small{font-size:10px;padding:6px;min-height:32px}
.merge-panel .energy-action-hint{color:#edf4d4;margin:0;font-size:10px}.tool-evolution{display:flex;justify-content:center;align-items:center;gap:14px;padding:3px 10px;background:#f8f7dcdf;border-radius:12px;color:#607446}.evolution-step{display:flex;align-items:center;gap:4px}.evolution-step .tool-sprite{width:39px;height:36px}.evolution-step small{font-size:10px}
.merge-panel .board,.merge-panel #phaser-host{width:min(100%,440px,49svh);margin:0 auto;border:6px solid #cba663;border-radius:17px;box-shadow:0 7px 0 #73502d,0 10px 25px #142f2b66;overflow:hidden;background:#568b70}
.merge-panel .board{gap:3px;padding:6px}.merge-panel .cell{border:1px solid #88baa0;border-radius:9px;background:linear-gradient(145deg,#c4e1c9,#a4cdb9);box-shadow:inset 0 2px 2px #f9ffe340}.merge-panel .cell:empty::after{content:'✧';font-size:19px;color:#80ac9180}.merge-panel .cell.complete{background:linear-gradient(#fff6bc,#f5d47c);border-color:#e6bd51}.merge-panel .cell.selected{outline-color:#fff1a4;background:#f3e6a4}.merge-panel .cell small{color:#355a43;font-weight:bold}
.merge-panel #engine-status,.merge-panel #engine-toggle{font-size:9px;color:#d1e4c3;margin:0;text-align:center}.merge-panel .use-button{margin:4px 0 0;min-height:44px}.merge-panel .panel-message{background:#fff9e9f5;color:#45603b;border-top:2px solid #c4b27f}
.work-talk{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center;padding:25px;background:#112d2838}.work-talk-card{position:relative;display:flex;align-items:flex-end;width:min(920px,96vw);min-height:230px;background:linear-gradient(105deg,#f9f6e7f5,#fffdf4);border:2px solid #d1b479;border-radius:20px;box-shadow:0 12px 50px #16332666;padding:28px 28px 24px 310px}.talk-crew{position:absolute;bottom:0;left:20px;width:270px;height:340px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 6px 5px #163b3233)}.talk-copy{width:100%}.talk-copy .workshop-label{color:#7a8f5b}.talk-copy h2{font-size:23px;line-height:1.5;margin:8px 0;color:#34543d}.talk-copy p{font-size:14px;line-height:1.8;margin:8px 0 18px;color:#657359}.work-talk-close{position:absolute;right:10px;top:8px;width:32px;height:32px;border:0;background:#e8eddc;border-radius:50%;font-size:23px;color:#536b44}.talk-copy .button{min-width:190px}
@media(max-width:650px){#panel.merge-panel{width:100vw;max-width:100vw;max-height:100svh;margin:auto 0;border-radius:18px 18px 0 0}.merge-panel .panel-head{padding:9px 12px}.merge-panel .panel-head h2{font-size:19px}.merge-panel .panel-body{display:flex;flex-direction:column;gap:8px;padding:9px 11px 15px}.merge-panel .panel-body>*{width:100%}.cleanup-orders{gap:6px;padding:3px 3px 8px}.cleanup-order{min-width:85px;padding:5px 4px;border-radius:12px}.target-illustration{height:35px;width:48px}.cleanup-order strong{font-size:10px}.order-tool .tool-sprite{width:22px;height:21px}.order-reward{font-size:10px}.workshop-hero{min-height:100px;height:100px;flex-shrink:0;overflow:visible;background-position:50% 37%}.workshop-crew{bottom:0;left:6px;width:95px;height:126px}.workshop-copy{position:static;padding:13px 9px 10px 109px;background:linear-gradient(90deg,transparent,#193f30dc 29%);height:100%;border-radius:20px}.workshop-copy strong{font-size:16px;margin:3px 0}.workshop-copy p{font-size:10px}.workshop-label{font-size:9px}.merge-panel .type-button .tool-sprite{height:35px;width:39px}.merge-panel .type-button{font-size:10px}.merge-panel .tool-evolution{gap:12px;padding:0 5px}.evolution-step .tool-sprite{width:28px;height:28px}.merge-panel .board,.merge-panel #phaser-host{width:min(100%,43svh);flex-shrink:0}.merge-panel .board-actions{order:5;position:sticky;bottom:0;background:#234b39ee;border-radius:12px;padding:7px;z-index:4}.merge-panel .energy-action-hint{order:6}.merge-panel .use-button{order:7}.merge-panel .panel-body>.button{order:8}.merge-panel #engine-status,.merge-panel #engine-toggle{display:none}.work-talk{padding:12px}.work-talk-card{padding:20px 16px 18px 120px;min-height:230px}.talk-crew{left:-6px;width:135px;height:245px}.talk-copy h2{font-size:17px;margin:8px 0}.talk-copy p{font-size:12px;margin:6px 0 13px}.talk-copy .button{min-width:0;font-size:12px}.talk-copy .workshop-label{font-size:9px}}
@media(max-height:550px) and (min-width:651px){.merge-panel .panel-body{gap:7px 18px}.workshop-hero{min-height:320px}.merge-panel .board,.merge-panel #phaser-host{width:min(100%,52svh)}.cleanup-order{min-width:95px;padding:4px}.target-illustration{height:32px}.workshop-copy strong{font-size:17px}.work-talk-card{min-height:180px;padding:15px 25px 15px 230px}.talk-crew{height:240px;width:200px}.talk-copy h2{font-size:19px}.talk-copy p{font-size:12px;margin:5px 0 10px}}
@media(prefers-reduced-motion:no-preference){.work-talk-card{animation:crew-enter .25s ease-out}.merge-panel .cell.complete.just-made{animation:tool-ready .4s ease-out}@keyframes crew-enter{from{transform:translateY(22px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes tool-ready{50%{filter:brightness(1.2);transform:scale(1.06)}}}


@media(max-width:650px) and (min-height:551px){.merge-panel .workshop-hero{min-height:82px;height:82px}.merge-panel .workshop-crew{height:106px;width:84px}.merge-panel .workshop-copy{padding:9px 8px 8px 96px}.merge-panel .workshop-copy strong{font-size:14px}.merge-panel .workshop-copy p{font-size:10px}.merge-panel .board,.merge-panel #phaser-host{width:min(100%,39svh)}.merge-panel .panel-body{gap:6px}.merge-panel .type-button .tool-sprite{height:30px}}
/* Illustrated progression shelf and completion reward flow */
.journey-caption{flex-shrink:0;background:#f8f5e8;border-top:1px solid #d5cba8;padding:5px 18px;font-size:10px;color:#6d7d5b;text-align:center}
.bottom-nav.journey-nav{height:116px;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;gap:12px;padding:6px max(15px,calc((100vw - 900px)/2));scrollbar-width:thin;background:linear-gradient(#fffaf0,#e8dfbe)}
.journey-nav .nav{flex:0 0 104px;min-width:104px;padding:0 5px 4px;scroll-snap-align:center;transition:opacity .25s,filter .25s,background .25s;border:1px solid transparent}
.journey-icon{display:block;width:68px;height:65px;object-fit:contain;margin:0 auto;pointer-events:none}
.journey-nav strong{font-size:11px;display:block;white-space:nowrap}.journey-nav small{display:block;font-size:9px;margin-top:4px;color:#8b8c73}
.journey-nav .nav.active{border-color:#c4a658;background:#fff0c4;box-shadow:inset 0 0 0 2px #fff9e7}
.journey-nav .future-locked{opacity:.47;filter:saturate(.45)}.journey-nav .future-locked:hover,.journey-nav .future-locked:focus-visible{opacity:.8}
.journey-nav .completed{opacity:.4;filter:saturate(.25)}.journey-nav .next-ready{background:linear-gradient(#f5ffdd,#cbe5a9);border:2px solid #91b85b;box-shadow:0 0 16px #d8efad}
.journey-nav .next-ready small{color:#4f7e35;font-weight:bold}
.side-shelf{position:absolute;right:10px;top:14px;bottom:86px;z-index:6;display:flex;flex-direction:column;gap:6px;overflow-y:auto;scrollbar-width:none;padding:4px}
.side-shortcut{position:relative;width:76px;flex-shrink:0;padding:3px 4px 5px;background:#fffaf0e8;border:1px solid #dbc994;border-radius:15px;color:#49633d;box-shadow:0 3px 8px #274c2d22}
.side-shortcut img{display:block;width:51px;height:45px;object-fit:contain;margin:0 auto;pointer-events:none}.side-shortcut span{display:block;font-size:10px;font-weight:bold;white-space:nowrap}.side-shortcut small{position:absolute;right:-1px;top:0;font-size:8px;padding:2px 4px;background:#f5ecd0;border-radius:8px;color:#9b8c66}.side-shortcut b{position:absolute;top:0;right:0;background:#d79635;color:white;border-radius:50%;font-size:10px;min-width:17px;padding:2px}.side-shortcut b:empty{display:none}.preview-shortcut img{opacity:.85}
.milestone-panel,.future-panel{width:min(92vw,440px);text-align:center;padding:28px 25px;background:radial-gradient(ellipse at top,#fff4bb,#fffcf0 70%);border:3px solid #e0be6c;overflow:visible}
.milestone-kicker{display:block;font-size:11px;color:#8a9665}.milestone-panel>img,.future-panel>img{display:block;width:142px;height:130px;object-fit:contain;margin:5px auto 10px;filter:drop-shadow(0 5px 5px #ab8b3c33)}.milestone-panel h2,.future-panel h2{font-size:25px;line-height:1.4;margin:12px 0;color:#446339}.milestone-panel p,.future-panel p{font-size:14px;line-height:1.8;color:#71805b}.milestone-panel>strong{display:block;background:#fff0bb;border:1px solid #e3ca83;border-radius:14px;padding:14px;font-size:20px;color:#a57729;margin:18px 0}.milestone-panel>.button,.future-panel>.button{display:block;width:100%;margin-top:20px}.future-panel small{display:block;font-size:11px;line-height:1.7;color:#8c947c}
@media(max-width:650px){.bottom-nav.journey-nav{height:105px;padding:5px 9px;gap:7px}.journey-nav .nav{flex-basis:86px;min-width:86px}.journey-icon{width:58px;height:57px}.journey-nav strong{font-size:10px}.journey-nav small{font-size:8px}.journey-caption{font-size:9px;padding:4px 8px}.side-shelf{right:5px;top:8px;bottom:76px;gap:5px;padding:2px}.side-shortcut{width:59px;padding:2px 3px 4px;border-radius:12px}.side-shortcut img{width:40px;height:36px}.side-shortcut span{font-size:8px}.side-shortcut small{font-size:7px}.zone-toggle{right:75px;max-width:calc(100% - 95px)}.milestone-panel h2{font-size:22px}.milestone-panel p,.future-panel p{font-size:13px}}
@media(max-height:550px){.bottom-nav.journey-nav{height:88px}.journey-icon{width:49px;height:45px}.journey-caption{padding:2px 10px}.side-shelf{flex-direction:row;right:8px;top:8px;bottom:auto;max-width:50%;overflow-x:auto}.side-shortcut{width:55px}.side-shortcut img{width:35px;height:30px}.side-shortcut span{font-size:8px}.side-shortcut small{font-size:7px}.milestone-panel,.future-panel{padding:14px 22px;max-height:96svh;overflow-y:auto}.milestone-panel>img,.future-panel>img{width:80px;height:70px}.milestone-panel h2,.future-panel h2{font-size:20px;margin:7px}.milestone-panel>strong{padding:8px;margin:10px 0}}

/* Home is scenery, never an active work screen. */
#game.home-overview .side-shelf,#game.home-overview #map-message,#game.home-overview .scene-heading,#game.home-overview .journey-nav,#game.home-overview .journey-caption,#game.home-overview .status-bar,#game.home-overview .hud-stats>.pill,#game.home-overview .hotspot{display:none!important}
#game.home-overview .zone-toggle{background:#fffdf2ed;border:1px solid #cbd5bd;box-shadow:none;border-radius:9px;padding:10px 16px;font-size:12px;color:#526747;bottom:14px;right:18px}
#landing .side-shelf,#landing .field-target,#landing .map-message{display:none!important}
#panel.rewards-panel{width:min(94vw,760px);background:linear-gradient(#f9f5e8ed,#f3f0dceb),url('assets/farm-expansion.webp') center/cover;border:3px solid #dcc389}
.rewards-panel .panel-head{background:#fffdf0ee;border-bottom:2px solid #e4d19a}.rewards-banner{position:relative;min-height:115px;border-radius:17px;padding:25px 15px 20px 125px;background:linear-gradient(100deg,#e6edcb,#fff2c5);border:1px solid #dac898;margin-bottom:14px}.rewards-banner .journey-icon{position:absolute;left:10px;bottom:5px;width:108px;height:108px}.rewards-banner>strong{display:block;font-size:20px;color:#45623b}.rewards-banner>span{display:block;font-size:12px;margin-top:8px;color:#7e8661}
.rewards-panel .mission{background:linear-gradient(110deg,#fffff5,#f7edcc);border:1px solid #d9c99a;box-shadow:0 4px 0 #d9d0ad44;padding:12px;gap:14px}.rewards-panel .mission .target-illustration{width:76px;height:66px;flex-shrink:0;border:3px solid #fff8de;border-radius:14px;box-shadow:0 3px 8px #6a824533}.rewards-panel .mission>div{flex:1}.rewards-panel .mission .reward{display:inline-block;margin-top:7px;padding:4px 10px;border-radius:14px;background:#fff0b8;color:#aa7925}.rewards-panel .callout{font-size:11px;background:#fffdf0a0;border-color:#ded7b7}
.milestone-panel{isolation:isolate;overflow:hidden;width:min(94vw,560px);padding:29px 30px;background:linear-gradient(#fffaf0e8,#fbf0d8f5),url('assets/farm-finished-v4.webp') center/cover;border:4px solid #e3c276;box-shadow:0 0 0 5px #fff7d433,0 20px 90px #153c3280}
.milestone-panel::before{content:'✦  ✧  ✦';position:absolute;top:35px;left:12px;right:12px;white-space:pre;color:#d8ad42;font-size:31px;letter-spacing:25px;z-index:-1}.milestone-kicker{font-size:11px;letter-spacing:1px;color:#8a8558}.reward-sunburst{position:absolute;z-index:-1;left:50%;top:85px;width:240px;height:240px;transform:translate(-50%,-25%);border-radius:50%;background:repeating-conic-gradient(#f8d97838 0deg 12deg,transparent 12deg 25deg);mask-image:radial-gradient(black,transparent 70%)}.milestone-panel>img{width:185px;height:166px;margin:12px auto 4px;filter:drop-shadow(0 7px 9px #ab893d44)}.milestone-panel h2{font-size:28px;color:#547142;text-shadow:0 2px #fffdf0}.milestone-panel>strong{font-size:25px;background:linear-gradient(#fff6cf,#f7dda0);border:2px solid #e9c46d;box-shadow:inset 0 0 0 3px #fff7d4;color:#a67725;padding:17px}.milestone-seals{display:flex;justify-content:center;gap:9px;margin:20px 0 8px}.completion-seal{display:flex;flex-direction:column;align-items:center;gap:5px}.completion-seal .target-illustration{width:60px;height:50px;border:2px solid #fffcdf;box-shadow:0 3px 7px #5b764033}.completion-seal small{font-size:10px;font-weight:bold;color:#72905b}.milestone-panel>.button{font-size:16px;min-height:51px;border-radius:15px}
@media(max-width:650px){.rewards-banner{padding:22px 10px 20px 95px;min-height:100px}.rewards-banner .journey-icon{width:82px;height:90px}.rewards-banner>strong{font-size:17px}.rewards-banner>span{font-size:10px}.rewards-panel .mission{gap:8px}.rewards-panel .mission .target-illustration{width:49px;height:51px}.rewards-panel .mission h3{font-size:12px}.rewards-panel .mission p{font-size:10px}.milestone-panel{padding:22px 17px}.milestone-panel>img{width:145px;height:134px}.milestone-panel h2{font-size:23px}.milestone-seals{gap:5px}.completion-seal .target-illustration{width:44px;height:41px}.completion-seal small{font-size:8px}.milestone-panel>strong{font-size:22px}}
@media(max-height:550px){.milestone-panel{max-height:96svh;overflow-y:auto;padding:15px 22px}.milestone-panel>img{width:90px;height:80px;margin:4px auto}.milestone-panel h2{font-size:21px;margin:6px}.milestone-seals{margin:8px 0;gap:8px}.completion-seal .target-illustration{width:42px;height:32px}.milestone-panel>strong{font-size:20px;padding:10px;margin:10px 0}.milestone-panel>.button{margin-top:10px;min-height:42px}.milestone-panel p{margin:6px}}

/* Fit the whole farm to the actual browser viewport, never stretch its art. */
#game{height:100dvh;max-height:100dvh}
.scene-scroll{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#8bb16b}
.scene,.scene.reference-overview{flex:0 0 auto;width:100%;min-height:0!important;height:auto;aspect-ratio:1672/941;max-width:none}
.scene>img,#clear-layers>img{object-fit:fill}
.field-dock{display:flex;justify-content:center;gap:6px;flex-shrink:0;padding:5px 9px;background:#f5f0dc;border-top:1px solid #d7cba4}
.field-jump{display:flex;align-items:center;gap:5px;min-height:44px;min-width:88px;padding:3px 8px;border:1px solid #d4d6b7;border-radius:10px;background:#fffdf2;font-size:11px;font-weight:bold}
.field-jump .target-illustration{width:34px;height:31px;flex-shrink:0}.field-jump small{font-size:9px;color:#899173}.field-jump.ready{border:2px solid #83a650;background:#eaf4d4}.field-jump.done{opacity:.5}
#game.home-overview .field-dock{display:none}.story-stage{touch-action:pan-y;user-select:none}.story-arrow,.story-continue{touch-action:manipulation}.story-crop img{pointer-events:none}
@media(max-width:650px){.hud{height:65px;padding:5px 9px}.brand strong{font-size:17px}.brand small{font-size:8px}.hud-stats{max-width:235px;gap:3px}.hud .pill{padding:4px 6px;font-size:9px}.hud-stats .subtle{font-size:9px}#growth{max-width:none;white-space:nowrap}.field-dock{gap:3px;padding:4px}.field-jump{flex:1;min-width:0;padding:3px;flex-direction:column;gap:0;font-size:9px;min-height:55px}.field-jump .target-illustration{width:30px;height:25px}.field-jump small{font-size:7px}.bottom-nav.journey-nav{height:83px}.journey-nav .nav{min-width:75px;flex-basis:75px}.journey-icon{width:45px;height:42px}.journey-nav strong{font-size:9px}.journey-nav small{margin-top:1px}.journey-caption{padding:3px;font-size:8px}.status-bar{height:23px;font-size:8px}.status-bar button{font-size:8px}.side-shelf{top:6px;bottom:auto;right:4px;gap:3px}.side-shortcut{width:43px;border-radius:9px;padding:2px}.side-shortcut img{width:27px;height:25px}.side-shortcut span{font-size:7px}.side-shortcut small{display:none}.object-label{padding:4px 6px;font-size:9px}.object-label small{font-size:7px}.zone-toggle{font-size:9px;padding:7px 10px;bottom:5px;right:52px}.map-message{font-size:9px;padding:5px 8px;bottom:5px;max-width:65%}.scene-heading{top:5px;left:7px;padding:6px 9px;max-width:220px}.scene-heading h1{font-size:12px}.scene-heading p{font-size:9px}.field-motion{scale:.65}}
@media(orientation:landscape) and (max-height:600px){.hud{height:42px;padding:3px 10px}.brand strong{font-size:17px}.brand small{display:none}.hud-stats{max-width:none;gap:5px}.hud .pill{padding:4px 7px;font-size:9px}.hud-stats .subtle{font-size:9px}.bottom-nav.journey-nav{height:65px;padding:2px 8px;gap:7px}.journey-nav .nav{min-width:78px;flex-basis:78px;padding:0 4px}.journey-icon{width:37px;height:34px}.journey-nav strong{font-size:9px}.journey-nav small{font-size:7px;margin:0}.journey-caption{display:none}.status-bar{height:19px;font-size:8px}.status-bar button{font-size:8px}.field-dock{padding:3px;gap:5px}.field-jump{min-height:34px;padding:2px 7px;flex-direction:row;font-size:9px;min-width:85px;flex:0 1 125px}.field-jump .target-illustration{width:29px;height:26px}.field-jump small{font-size:7px}.side-shelf{top:5px;right:5px;bottom:auto;max-width:40%;flex-direction:row;gap:3px}.side-shortcut{width:40px;padding:2px;border-radius:8px}.side-shortcut img{width:25px;height:23px}.side-shortcut span{font-size:6px}.side-shortcut small{display:none}.object-label{padding:3px 6px;font-size:9px;border-radius:6px}.object-label small{font-size:7px}.scene-heading{top:6px;left:7px}.scene-heading h1{font-size:12px}.zone-toggle{right:8px;bottom:5px;max-width:40%;font-size:9px;padding:6px 9px}.map-message{font-size:9px;bottom:5px;padding:5px 8px;max-width:55%}.story-shell{width:96vw;padding:8px 12px;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:5px}.story-stage{grid-row:2/6}.story-frame{width:min(100%,calc((100dvh - 60px)*1.6))}.story-crop{max-height:calc(100dvh - 60px)}.story-shell h1{font-size:14px}.story-help{display:none}.story-top{font-size:10px;padding:0}.story-shell>.button{font-size:11px;min-height:37px}.story-arrow{width:30px;min-height:44px}.field-motion{scale:.6}}

/* One game viewport. All HUD elements sit inside the illustrated world. */
#game{position:relative;display:block;isolation:isolate;height:100dvh;max-height:100dvh;overflow:hidden;background:#597a40}
#game .farm-stage{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:hidden}
.scene-scroll{position:absolute;inset:0;display:block;overflow:hidden;touch-action:none;background:#597a40}
.scene,.scene.reference-overview{position:absolute;left:0;top:0;margin:0;min-height:0!important;flex:none;aspect-ratio:1672/941;will-change:transform;transform-origin:0 0}
#game .hud{position:absolute;z-index:15;top:0;left:0;right:0;width:100%;height:56px;padding:6px 14px;background:linear-gradient(#fff9e8f0,#fff9e8bc);border:0;box-shadow:0 2px 15px #24442a22;border-radius:0 0 18px 18px}
#game .brand strong{font-size:20px}#game .brand small{font-size:8px;letter-spacing:1px}#game .hud-stats{max-width:none;gap:5px}#game .hud .pill{font-size:11px;padding:6px 9px;background:#fffbeeee;border:1px solid #ddcf9a}#game .hud .subtle{font-size:10px}
#game .side-shelf{position:absolute;z-index:10;right:8px;top:70px;bottom:180px;display:flex;flex-direction:column;max-width:none;gap:5px;padding:0;overflow-y:auto}
#game .side-shortcut{width:56px;padding:3px;background:#fffdf0d9;border:1px solid #fff8d9;border-radius:13px;box-shadow:0 3px 8px #24462b33}
#game .side-shortcut img{width:38px;height:35px}#game .side-shortcut span{font-size:8px}#game .side-shortcut small{display:none}
#game .journey-caption{display:none}
#game .journey-nav{position:absolute;z-index:13;left:10px;right:10px;bottom:22px;height:85px;width:auto;margin:0;justify-content:flex-start;gap:6px;padding:4px 7px;border:1px solid #fff7d5aa;border-radius:18px;background:linear-gradient(#fffdf0dd,#f4e5b8e8);box-shadow:0 3px 16px #24462b33;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
#game .journey-nav::-webkit-scrollbar{display:none}#game .journey-nav .nav{min-width:82px;flex:0 0 82px;padding:0 4px 3px;border-radius:12px}#game .journey-icon{width:47px;height:45px}#game .journey-nav strong{font-size:10px}#game .journey-nav small{font-size:8px;margin-top:2px}
#game .field-dock{position:absolute;z-index:12;bottom:116px;left:50%;transform:translateX(-50%);width:min(570px,calc(100% - 24px));display:flex;gap:5px;padding:0;background:none;border:0;box-shadow:none}
#game .field-jump{flex:1;min-width:0;min-height:49px;padding:3px 5px;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:4px;border:1px solid #fff6d2;background:#fffbe9e3;border-radius:12px;box-shadow:0 2px 7px #24462b33;font-size:10px}
#game .field-jump .target-illustration{width:30px;height:30px}#game .field-jump small{display:none}
#game .status-bar{position:absolute;bottom:0;left:0;right:0;z-index:14;height:20px;padding:0 12px;background:#23452c99;border:0;color:#fff6db;font-size:8px}#game .status-bar button{font-size:8px;color:#fff6db}
#game .zone-toggle{z-index:11;top:68px;left:10px;bottom:auto;right:auto;max-width:210px;padding:7px 11px;font-size:10px;border-radius:12px;background:#fff9dce0;box-shadow:0 2px 5px #24442a22;border:1px solid #fff8dd;color:#566c39}
#game .map-message{z-index:9;left:12px;bottom:175px;max-width:65%;padding:5px 9px;font-size:10px;background:#fffcf0d9}
#game .scene-heading{z-index:8;top:108px;left:10px;max-width:240px;padding:7px 10px;background:#fffdf0dc}#game .scene-heading h1{font-size:14px}#game .scene-heading p{font-size:10px}
#game .object-label{padding:6px 9px;font-size:11px;background:#fffdf0e8;border:1px solid #f9edc8;box-shadow:0 3px 8px #24462b33}
#game .object-label small{font-size:9px}#game .field-target.quiet-target .object-label{opacity:.7}#game .field-target.quiet-target:hover .object-label{opacity:1}
#game.home-overview .hud{background:transparent;box-shadow:none}
@media(max-width:650px){#game .hud{height:66px;padding:5px 8px;align-items:flex-start;border-radius:0 0 13px 13px}#game .brand strong{font-size:17px;margin-top:3px}#game .brand small{font-size:7px}#game .hud-stats{max-width:235px;gap:3px;justify-content:flex-end}#game .hud .pill{font-size:9px;padding:4px 6px}#game .hud .subtle{font-size:9px}#game .side-shelf{right:6px;top:80px;bottom:185px;gap:5px}#game .side-shortcut{width:48px;border-radius:12px}#game .side-shortcut img{width:32px;height:31px}#game .side-shortcut span{font-size:7px}#game .journey-nav{left:6px;right:6px;bottom:20px;height:79px;border-radius:15px;padding:3px 4px}#game .journey-nav .nav{min-width:69px;flex-basis:69px}#game .journey-icon{width:43px;height:41px}#game .journey-nav strong{font-size:9px}#game .journey-nav small{font-size:7px}#game .field-dock{bottom:108px;width:calc(100% - 12px);gap:4px}#game .field-jump{min-height:53px;flex-direction:column;gap:0;font-size:9px;padding:2px}#game .field-jump .target-illustration{width:28px;height:27px}#game .map-message{bottom:169px;font-size:9px}#game .zone-toggle{top:79px;font-size:9px;max-width:165px}#game .scene-heading{top:115px;max-width:210px}#game .scene-heading h1{font-size:12px}}
@media(orientation:landscape) and (max-height:600px){#game .hud{height:41px;padding:3px 10px;border-radius:0 0 13px 13px}#game .brand strong{font-size:16px}#game .brand small{display:none}#game .hud .pill{font-size:9px;padding:4px 7px}#game .hud .subtle{font-size:9px}#game .side-shelf{top:50px;right:7px;bottom:92px;gap:3px;flex-direction:column}#game .side-shortcut{width:42px;padding:2px;border-radius:9px}#game .side-shortcut img{width:28px;height:25px}#game .side-shortcut span{font-size:6px}#game .journey-nav{left:8px;right:8px;bottom:16px;height:61px;gap:7px;padding:2px 7px;border-radius:13px}#game .journey-nav .nav{min-width:74px;flex-basis:74px}#game .journey-icon{height:31px;width:35px}#game .journey-nav strong{font-size:8px}#game .journey-nav small{font-size:6px;margin:0}#game .status-bar{height:15px;font-size:7px}#game .status-bar button{font-size:7px}#game .field-dock{bottom:85px;width:480px;max-width:calc(100% - 130px);gap:4px}#game .field-jump{min-height:33px;flex-direction:row;font-size:8px;padding:2px 4px;gap:3px;border-radius:9px}#game .field-jump .target-illustration{width:25px;height:24px}#game .zone-toggle{top:51px;left:8px;padding:5px 8px;font-size:8px;max-width:155px}#game .map-message{bottom:126px;padding:4px 7px;font-size:8px;max-width:230px}#game .scene-heading{top:79px;padding:5px 8px;max-width:200px}#game .scene-heading h1{font-size:11px}#game .scene-heading .eyebrow{font-size:7px}#game .object-label{font-size:9px;padding:4px 7px}#game .object-label small{font-size:7px}}

/* Floating controls: generous touch areas, no page-sized navigation panels. */
#game .hud{background:none;border:0;box-shadow:none;border-radius:0;height:76px;pointer-events:none;align-items:flex-start;padding:8px 12px}
#game .hud button,#game .hud .pill{pointer-events:auto}
#game .brand strong{font-size:20px;color:#284c31;letter-spacing:-1px;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;padding-top:3px}
#game .brand small{display:none}
#game .hud-stats{justify-content:flex-end;gap:5px;max-width:440px}
#game .hud .pill{font-size:12px;padding:7px 10px;border:2px solid #fff4cc;background:linear-gradient(#fffcf3,#f5e9c8);box-shadow:0 2px 5px #29482c26;color:#436037;border-radius:18px}
#game .hud .subtle{min-height:36px;font-size:11px;font-weight:bold;text-decoration:none;background:#fffcf0dc;border:1px solid #f3e7c3;border-radius:12px;padding:5px 10px;box-shadow:0 2px 4px #29482c22}
#game .journey-nav{height:87px;bottom:21px;left:12px;right:12px;width:auto;padding:0;gap:7px;border:0;border-radius:0;box-shadow:none;background:none;backdrop-filter:none;align-items:flex-end}
#game .journey-nav .nav{height:85px;min-width:74px;flex:0 0 74px;padding:2px 3px 3px;border:0;background:none;box-shadow:none;border-radius:15px}
#game .journey-icon{width:50px;height:50px;filter:drop-shadow(0 3px 2px #24452e50)}
#game .journey-nav strong{font-size:11px;line-height:1.3;color:#2f4d29;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;margin-top:1px}
#game .journey-nav small{font-size:9px;color:#3b6532;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;margin-top:2px;font-weight:bold}
#game .journey-nav .nav.active,#game .journey-nav .nav.next-ready{background:radial-gradient(ellipse at center,#fff3b8f0 10%,#ffedac77 65%,transparent 72%);box-shadow:none;border:0}
#game .journey-nav .future-locked{opacity:.63;filter:saturate(.45)}
#game .journey-nav .completed{opacity:.5}
#game .side-shelf{right:8px;top:83px;bottom:190px;gap:5px;overflow-y:auto;padding:0;align-items:center}
#game .side-shortcut{width:61px;min-height:65px;padding:0 2px 4px;background:none;border:0;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center}
#game .side-shortcut img{width:48px;height:48px;padding:2px;filter:drop-shadow(0 2px 2px #24452e44);background:radial-gradient(ellipse,#fffbe7d9 0 57%,#fffbe733 65%,transparent 72%)}
#game .side-shortcut span{font-size:10px;color:#2e4e2d;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;font-weight:bold;line-height:1.3}
#game .field-dock{bottom:116px;width:min(480px,calc(100% - 22px));padding:0;gap:7px;background:none;box-shadow:none;border:0;align-items:flex-end}
#game .field-jump{flex:1;min-height:62px;min-width:48px;padding:3px 3px 4px;flex-direction:column;gap:2px;border:1px solid #fff4d9bd;background:#fff9e2c9;border-radius:14px;box-shadow:0 2px 5px #24462b26;font-size:11px;color:#375331}
#game .field-jump .target-illustration{width:42px;height:36px;border-radius:10px;border:1px solid #fff6d8}
#game .field-jump.ready{background:#f0f8d6e6;border:2px solid #afcc6c}
#game .field-jump.done{opacity:.5}
#game .status-bar{background:none;height:19px;color:#2f5031;text-shadow:0 1px 2px #fff;font-size:8px;padding:0 12px}
#game .status-bar button{color:#2f5031;text-shadow:0 1px 2px #fff;font-size:9px}
#game .zone-toggle{top:84px;left:10px;min-height:42px;padding:8px 12px;font-size:11px;background:#fffcf0d9;box-shadow:0 2px 5px #284c3126}
#game .map-message{bottom:189px;font-size:11px;max-width:min(68%,350px);border:0;background:#fffbe8d9;border-radius:12px;box-shadow:0 2px 5px #29482c22;padding:7px 11px}
#game .scene-heading{top:139px;left:10px;max-width:230px;background:#fffcf0db}
#game .field-target:not(.first-task):not(.target-selected) .object-label{opacity:0}
#game .field-target.target-selected .object-label,#game .field-target.first-task .object-label{opacity:1}
#game .scene{transition:transform .22s ease-out}
#game .scene.camera-dragging{transition:none}
@media(max-width:650px){#game .hud{height:78px;padding:7px 8px}#game .brand strong{font-size:18px}#game .hud-stats{max-width:252px;gap:3px}#game .hud .pill{font-size:10px;padding:5px 6px;border-width:1px}#game .hud .subtle{font-size:10px;min-height:32px;padding:4px 8px}#game .side-shelf{top:88px;bottom:190px;right:5px;gap:4px}#game .side-shortcut{width:57px;min-height:61px}#game .side-shortcut img{width:44px;height:44px}#game .side-shortcut span{font-size:9px}#game .journey-nav{height:84px;left:6px;right:6px;bottom:21px;gap:5px}#game .journey-nav .nav{height:82px;min-width:72px;flex-basis:72px}#game .journey-icon{width:48px;height:48px}#game .journey-nav strong{font-size:10px}#game .journey-nav small{font-size:8px}#game .field-dock{bottom:114px;width:calc(100% - 14px);gap:5px}#game .field-jump{min-height:61px;font-size:10px}#game .field-jump .target-illustration{width:40px;height:36px}#game .zone-toggle{top:89px;max-width:165px;font-size:10px}#game .scene-heading{top:140px;max-width:220px}#game .scene-heading h1{font-size:13px}#game .map-message{bottom:187px;font-size:10px}#game .object-label{font-size:11px;padding:6px 8px}#game .object-label small{font-size:9px}}
@media(orientation:landscape) and (max-height:600px){#game .hud{height:53px;padding:5px 10px}#game .brand strong{font-size:18px}#game .hud-stats{max-width:600px;gap:5px}#game .hud .pill{font-size:11px;padding:5px 8px}#game .hud .subtle{font-size:10px;min-height:34px;padding:4px 8px}#game .side-shelf{top:60px;bottom:98px;right:6px;display:grid;grid-template-columns:repeat(2,56px);align-content:start;gap:1px 2px;max-width:116px}#game .side-shortcut{width:56px;min-height:59px}#game .side-shortcut img{width:44px;height:43px}#game .side-shortcut span{font-size:8px}#game .journey-nav{height:79px;left:8px;right:8px;bottom:18px;max-width:600px;gap:4px}#game .journey-nav .nav{height:78px;min-width:74px;flex-basis:74px}#game .journey-icon{width:48px;height:46px}#game .journey-nav strong{font-size:10px}#game .journey-nav small{font-size:8px}#game .field-dock{bottom:108px;left:10px;transform:none;width:330px;max-width:calc(100% - 145px);gap:5px}#game .field-jump{min-height:57px;font-size:10px;padding:2px;flex-direction:column;gap:1px}#game .field-jump .target-illustration{width:40px;height:34px}#game .zone-toggle{top:60px;left:10px;min-height:36px;font-size:10px;padding:6px 10px}#game .scene-heading{top:107px;max-width:220px}#game .scene-heading h1{font-size:12px}#game .map-message{bottom:177px;max-width:270px;font-size:10px;padding:5px 9px}#game .status-bar{height:16px;font-size:7px}#game .status-bar button{font-size:8px}#game .object-label{font-size:10px;padding:5px 8px}#game .object-label small{font-size:8px}}
@media(prefers-reduced-motion:reduce){#game .scene{transition:none}}


/* Readable floating labels and short in-app-browser landscape. */
#game .side-shortcut span,#game .journey-nav strong{background:#fff9e7db;border-radius:6px;padding:2px 4px;text-shadow:none}
@media(orientation:landscape) and (max-height:330px){
 #game .side-shelf{grid-template-columns:repeat(3,56px);max-width:174px;top:55px;bottom:98px;gap:1px 2px}
 #game .side-shortcut{min-height:59px}
}

/* Keep the field open; target shortcuts appear only when requested. */
#game .field-target,#game .field-target.target-selected,#game .field-target:hover{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important}
#game .field-target:focus-visible .object-label{outline:3px solid #f4cc53}
#game .field-target:not(.target-selected) .object-label{opacity:0!important;pointer-events:none}
#game .field-target .object-label{font-size:11px;padding:5px 9px;min-width:56px;border:1px solid #fff4ce;border-radius:12px;box-shadow:0 2px 7px #30442333}
#game .field-target .object-label::before{display:none}
#game .field-target .object-label small{font-size:9px}
#game .scene{transition:none;touch-action:none}
#game .scene-scroll{touch-action:none;overscroll-behavior:none}
#game .field-dock{display:none!important}
#game.targets-open .field-dock{display:flex!important;left:12px;bottom:158px;transform:none;width:min(380px,calc(100% - 88px));max-width:none;padding:9px;background:#fff9e9f5;border:1px solid #e8d69f;border-radius:18px;box-shadow:0 6px 24px #29482c44;z-index:12}
#game .field-jump{background:transparent;border:0;box-shadow:none;min-height:62px}
#game .field-jump .target-illustration{width:44px;height:40px}
#game .target-picker{position:absolute;z-index:9;left:12px;bottom:107px;min-height:48px;padding:8px 16px;border:2px solid #fff5cd;border-radius:16px;background:linear-gradient(#fff9de,#f3df9c);font-weight:bold;font-size:12px;color:#385230;box-shadow:0 3px 7px #29482c33}
#game .zoom-controls{position:absolute;z-index:8;left:12px;top:145px;display:flex;flex-direction:column;gap:3px}
#game .zoom-controls button{width:48px;min-height:48px;padding:0;border:1px solid #fff1c9;border-radius:13px;background:#fff9e5ed;color:#365337;font-size:25px;box-shadow:0 2px 5px #29482c33}
#game #zoom-reset{font-size:11px;font-weight:bold}
#game .zoom-controls button:disabled{opacity:.6}
#game .journey-nav{right:auto;width:min(580px,calc(100% - 20px));max-width:none;height:78px;bottom:22px;gap:8px}
#game .journey-nav .nav{flex:0 0 76px;min-width:76px;height:75px}
#game .journey-nav small{display:none}
#game .journey-icon{width:48px;height:48px}
#game .journey-nav strong{font-size:10px;display:inline-block;padding:3px 5px;max-width:76px;white-space:nowrap}
#game .journey-nav .future-locked{opacity:.6}
#game .status-bar #save-status{display:none}
#game .status-bar{justify-content:flex-end;pointer-events:none}
#game .status-bar button{pointer-events:auto;padding:3px 7px;background:#fff9e5e8;border-radius:5px;font-size:10px}
#game .side-shelf{top:92px;bottom:115px;right:9px;max-width:66px;display:flex;flex-direction:column;gap:6px;overflow-y:auto}
#game .side-shortcut{width:62px;min-height:64px}
#game .side-shortcut img{width:48px;height:46px}
#game .side-shortcut span{font-size:10px}
#game .zone-toggle{min-height:38px;top:91px;padding:6px 10px}
#game .map-message{bottom:164px;max-width:250px}
#game.home-overview .zoom-controls{display:flex}
#game.home-overview .target-picker{display:none}
@media(orientation:landscape) and (max-height:600px){
 #game .zoom-controls{top:auto;left:auto;right:12px;bottom:19px;flex-direction:row;gap:4px}
 #game .zoom-controls button{width:48px;min-height:48px}
 #game .journey-nav{width:calc(100% - 190px);max-width:590px;bottom:19px}
 #game .target-picker{bottom:104px;left:12px}
 #game.targets-open .field-dock{bottom:156px;left:12px;width:360px;max-width:calc(100% - 195px)}
 #game .side-shelf{top:57px;bottom:98px;max-width:190px;display:grid;grid-template-columns:repeat(3,60px);gap:2px 3px;align-content:start}
 #game .side-shortcut{width:60px;min-height:61px}
 #game .side-shortcut img{width:46px;height:44px}
 #game .side-shortcut span{font-size:9px}
 #game .zone-toggle{top:57px;min-height:38px}
}

/* Clear icon hierarchy: current action, next stage, then one quiet preview menu. */
#game .journey-nav{width:270px;max-width:calc(100% - 100px);gap:8px;height:88px;bottom:23px;overflow:hidden}
#game .journey-nav .nav{flex:0 0 80px;min-width:80px;height:84px;padding:4px;border:1px solid #fff6d8;border-radius:16px;background:#fff9e9f2;box-shadow:0 3px 8px #26422c33;opacity:1;filter:none}
#game .journey-nav .nav.active{background:linear-gradient(#fff4b9,#f3cf68);border:2px solid #fff9df;box-shadow:0 3px 8px #26422c44}
#game .journey-nav .nav.future-locked{background:#eeeaddf2}
#game .journey-nav .nav.future-locked img{filter:saturate(.5);opacity:.8}
#game .journey-nav .journey-icon{width:48px;height:48px;filter:drop-shadow(0 2px 1px #36512b33)}
#game .journey-nav strong{color:#27432e;background:none;text-shadow:none;font-size:11px;font-weight:800;padding:2px 0;margin:0;white-space:nowrap}
#game .side-shelf{gap:7px;max-width:68px;right:9px;top:91px;bottom:125px}
#game .side-shortcut{width:64px;min-height:65px;padding:3px 2px;background:#fff9e9f2;border:1px solid #fff2c9;border-radius:15px;box-shadow:0 2px 6px #2b432c33}
#game .side-shortcut img{width:46px;height:42px;background:none;padding:0}
#game .side-shortcut span{font-size:10px;color:#27432e;font-weight:800;background:none;padding:1px 0;text-shadow:none}
#game .target-picker{bottom:121px}
#game.targets-open .field-dock{bottom:173px}
#game .future-drawer{position:absolute;z-index:14;left:12px;bottom:118px;width:286px;max-width:calc(100% - 90px);padding:12px;background:#fff9eafc;border:2px solid #fff0c2;border-radius:20px;box-shadow:0 8px 30px #203f3450}
#game .future-drawer header{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#315039;margin-bottom:8px}
#game .future-drawer header button{width:48px;height:48px;font-size:25px;border:0;border-radius:12px;background:#ecebdc;color:#315039}
#game .future-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
#game .future-grid .nav{display:flex;align-items:center;flex-direction:column;gap:2px;min-height:78px;padding:5px;border:1px solid #dfdccb;background:#f2eee4;border-radius:12px;opacity:1;filter:none}
#game .future-grid img{width:48px;height:44px;opacity:.8;filter:saturate(.55)}
#game .future-grid strong{font-size:11px;color:#52614f}
#game .future-grid small{display:none}
#game.home-overview .future-drawer{display:none}
@media(orientation:landscape) and (max-height:600px){
 #game .journey-nav{width:270px;height:84px;max-width:calc(100% - 185px)}
 #game .side-shelf{top:57px;bottom:105px;max-width:200px;gap:4px;grid-template-columns:repeat(3,62px)}
 #game .side-shortcut{width:62px;min-height:59px;padding:2px}
 #game .side-shortcut img{width:44px;height:38px}
 #game .side-shortcut span{font-size:9px}
 #game .target-picker{bottom:119px}
 #game .future-drawer{left:294px;bottom:20px;width:328px;max-width:calc(100% - 465px);max-height:calc(100% - 80px);overflow-y:auto}
 #game .future-grid{grid-template-columns:repeat(2,1fr)}
}
.sound-toggle{min-width:36px;padding:5px 8px;line-height:1}
/* Fullscreen merge workbench: the board slot takes every pixel left over; extra UI is compacted (portrait) or moved to a side column (landscape). */
#panel.merge-panel{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:hidden}
#panel.merge-panel[open]{display:flex;flex-direction:column}
.merge-panel .panel-head{flex:0 0 auto;position:static;padding:4px 8px}
.merge-panel .panel-head>div{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;min-width:0}
.merge-panel .panel-head .eyebrow{display:none}
.merge-panel .panel-head h2{font-size:17px;margin:0}
.merge-panel .panel-wallet{margin:0;gap:4px;font-size:11px}
.merge-panel .panel-wallet>span{padding:4px 7px}
.merge-panel .panel-head .close,.merge-panel .panel-head .sound-toggle{flex:0 0 auto;width:40px;height:40px;padding:0}
.merge-panel .panel-head .sound-toggle{margin:0 6px 0 auto;border:1px solid #d8dfcc;border-radius:50%;background:#eff2e8;font-size:18px;line-height:1}
.merge-panel .panel-body{flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:5px;padding:5px 4px;overflow-y:auto}
.merge-panel .panel-body>*{width:100%}
.merge-panel .workshop-hero{display:none}
.merge-panel .cleanup-orders{gap:4px;padding:1px 1px 3px;flex:0 0 auto}
.merge-panel .cleanup-order{min-width:62px;min-height:44px;padding:3px;gap:0;border-radius:10px;grid-template-columns:1fr}
.merge-panel .cleanup-order .target-illustration,.merge-panel .cleanup-order .order-reward{display:none}
.merge-panel .cleanup-order strong{font-size:10px}
.merge-panel .callout{padding:3px 8px;font-size:11px;line-height:1.35}
.merge-panel .tool-types{gap:4px;flex:0 0 auto}
.merge-panel .type-button .tool-sprite{width:34px;height:30px}
.merge-panel .tool-evolution{padding:0 8px;gap:10px;flex:0 0 auto}
.merge-panel .evolution-step .tool-sprite{width:26px;height:24px}
.merge-panel .energy-action-hint{display:none}
.merge-panel .board-actions{order:5;position:static;flex:0 0 auto;padding:0}
.merge-panel .board-actions>.button:first-child{min-height:44px}
.merge-panel .board-actions>.button.small{min-height:44px}
.merge-panel .use-button{order:7;min-height:44px;margin:0}
.merge-panel .panel-body>.button{order:8;min-height:40px}
.merge-panel #engine-status,.merge-panel #engine-toggle{display:none}
.merge-panel .panel-message{position:static;flex:0 0 auto;padding:4px 10px;min-height:0;font-size:11px;line-height:1.4}
.merge-panel .board-slot{flex:1 1 0;min-height:0;width:100%;container-type:size;display:flex;align-items:center;justify-content:center}
.merge-panel .board,.merge-panel #phaser-host{width:min(100cqw,100cqh,880px);max-width:none;flex:0 0 auto;margin:0;border-width:4px}
.merge-panel .board{padding:4px;gap:3px}
@media(max-height:740px){.merge-panel .callout,.merge-panel .tool-evolution{display:none}}
@media(min-aspect-ratio:11/10){
 #panel.merge-panel{--left:clamp(320px,calc(100vw - 100dvh - 12px),440px)}
 #panel.merge-panel[open]{display:grid;grid-template-columns:var(--left) minmax(0,1fr);grid-template-rows:repeat(9,auto) 1fr auto}
 .merge-panel .panel-body{display:contents}
 .merge-panel .panel-head{grid-column:1;grid-row:1}
 .merge-panel .panel-body>*:not(.board-slot){grid-column:1;width:auto;margin:0 6px 5px}
 .merge-panel .board-slot{grid-column:2;grid-row:1/-1;width:auto;padding:4px}
 .merge-panel .panel-message{grid-column:1;grid-row:11}
 .merge-panel #engine-status,.merge-panel #engine-toggle{grid-column:1;margin:0 6px 3px}
 .merge-panel .callout,.merge-panel .tool-evolution{display:none}
 .merge-panel .board-actions,.merge-panel .use-button,.merge-panel .panel-body>.button{order:0}
}
@media(min-aspect-ratio:11/10) and (min-height:561px){
 .merge-panel .callout,.merge-panel .tool-evolution{display:block}
 .merge-panel .tool-evolution{display:flex}
 .merge-panel .type-button .tool-sprite{width:38px;height:34px}
 .merge-panel #engine-status{display:block}
 .merge-panel #engine-toggle{display:inline-block}
}
@media(min-aspect-ratio:11/10) and (max-height:380px){
 .merge-panel .panel-head h2{font-size:15px}
 .merge-panel .panel-body>*:not(.board-slot){margin-bottom:3px}
 .merge-panel .type-button .tool-sprite{width:28px;height:24px}
 .merge-panel .type-button{font-size:9px}
 .merge-panel .board-actions>.button:first-child,.merge-panel .board-actions>.button.small,.merge-panel .use-button{min-height:40px}
 .merge-panel .panel-body>.button{min-height:36px}
}
.decor-card .button.lack{opacity:.6}
.panel-head .sound-toggle{flex:0 0 auto;width:40px;height:40px;margin:0 6px 0 auto;padding:0;border:1px solid #d8dfcc;border-radius:50%;background:#eff2e8;font-size:18px;line-height:1}
.decoration svg{display:block}
#game.home-overview .zone-toggle{bottom:auto}
