:root{font:14px ui-monospace,Consolas,monospace;color-scheme:dark;background:#172b28;color:#eee0b6;--ink:#172b28;--panel:#294338;--edge:#718461;--gold:#d6b474}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;min-height:44px;min-width:44px;padding:8px 12px;border:2px solid #75856a;border-radius:0;background:#304c3c;box-shadow:inset 2px 2px #8b9a722e,inset -2px -2px #132c2b66;cursor:pointer;user-select:none}button:hover{background:#435c43;border-color:#d6c791}button:active{transform:translateY(1px);box-shadow:inset 2px 2px #142c28}button:disabled{opacity:.43;cursor:default;transform:none}button:focus-visible,a:focus-visible{outline:2px solid #ead08d;outline-offset:3px}a{color:#ddc996}header{height:57px;max-width:1440px;margin:auto;padding:5px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid #5b7252}header a{text-decoration:none;color:#bec9a4;font-size:11px;min-height:44px;display:flex;align-items:center}header>b{font:bold 23px ui-monospace,monospace;letter-spacing:3px;text-shadow:2px 2px #102522}header>b span{color:#dbba78}nav{display:flex;gap:6px}main{max-width:1440px;height:calc(100dvh - 57px);min-height:380px;margin:auto;display:grid;grid-template-rows:46px minmax(230px,1fr);gap:4px;padding:0 8px 8px}.hud{display:flex;align-items:center;gap:10px}.hud #region{flex:1;text-align:start;background:transparent;border:0;box-shadow:none;font-size:12px;padding:5px}.hud #coins{color:#e2c17c;white-space:nowrap}.hud #bag{min-width:106px;font-size:12px}#map{font-size:22px;padding:4px 10px}#scene{position:relative;overflow:hidden;border:3px solid #70825d;outline:2px solid #102725;background:#36533b}#world{display:block;width:100%;height:100%;touch-action:none;image-rendering:pixelated;image-rendering:crisp-edges}#project{position:absolute;inset-inline-start:12px;top:12px;width:210px;text-align:start;color:#e9ddb4;background:#233b30ef;border:2px solid #a8aa78;box-shadow:4px 4px #142a2780;padding:9px 11px}#project small{display:block;color:#b3c18d;font-size:9px;letter-spacing:.4px}#project b{display:block;font-size:13px;margin:5px 0}#project>span{display:block;font-size:11px;line-height:1.7;color:#cad1a7}#billMini{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}#billMini span{font-size:9px;padding:3px 5px;background:#40563c;color:#e4d7a5}.camera-tools{position:absolute;inset-inline-end:12px;top:12px;display:grid;gap:7px}.camera-tools button{background:#243e30e8;font-size:23px;border-color:#849774}.controls{position:absolute;left:14px;right:14px;bottom:max(14px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:end;pointer-events:none;direction:ltr}.controls>*{pointer-events:auto}#stick{width:112px;height:108px;position:relative;background:#203d2f99;border:3px solid #9baa7c;box-shadow:3px 3px #132c2780;touch-action:none;clip-path:polygon(18% 0,82% 0,100% 18%,100% 82%,82% 100%,18% 100%,0 82%,0 18%)}#thumb{position:absolute;width:40px;height:40px;left:33px;top:31px;background:#d7c88caa;border:3px solid #f0dfa666;pointer-events:none}.action-buttons{display:flex;gap:7px;align-items:end}.action-buttons button{touch-action:none;background:#284532ed;font-size:12px;min-width:65px;min-height:54px;box-shadow:3px 3px #102a25}.action-buttons #cut{min-height:76px;min-width:100px;background:#d7b974;color:#233c2e;border-color:#f0d695;font-weight:bold;font-size:15px;box-shadow:4px 4px #665438}.primary{background:#d7b974!important;color:#243c2d!important;font-weight:bold;border-color:#f0d695!important}#toast{position:absolute;bottom:120px;left:50%;transform:translateX(-50%);max-width:85%;background:#1c352bea;border:2px solid #8b9b6b;box-shadow:3px 3px #14292188;padding:9px 12px;text-align:center;font-size:12px;pointer-events:none;opacity:0}#toast.show{opacity:1}#toast:empty{display:none}#cover{position:absolute;inset:0;display:flex;align-items:center;padding:32px;background:#122b2166}#cover[hidden]{display:none}#cover article{max-width:440px;padding:28px;background:#203a2bf5;border:3px solid #adb080;box-shadow:7px 7px #132a2799}#cover article>small{display:block;color:#a7bc8b;font-size:9px;letter-spacing:1px}#cover h1{font:bold clamp(28px,4vw,45px) ui-monospace,monospace;letter-spacing:2px;margin:19px 0;color:#efd7a0;text-shadow:3px 3px #101f1d}#cover p{font-size:13px;line-height:1.9;color:#c7d1a6}#cover button{font-size:12px;margin:8px 6px 0 0}#cover #coverNote{font-size:10px;letter-spacing:0;line-height:1.8;margin-top:17px}dialog{width:min(850px,94vw);max-height:88dvh;color:#e9e0ba;background:#243e2f;border:3px solid #a6af7e;box-shadow:8px 8px #10292299;padding:18px;border-radius:0}dialog::backdrop{background:#102a22df}.dialog-head{position:sticky;top:-18px;z-index:4;background:#243e2f;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 11px;border-bottom:2px solid #72845b}.dialog-head h2{font-size:21px;margin:0;outline:none}#body{margin-top:14px}#body p{font-size:12px;line-height:1.9;color:#bccda3}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.tabs button{flex:1;font-size:11px}.tabs button:disabled{opacity:1;background:#65764f;color:#f4dfaa;border-color:#c7c48d}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.card{background:#304b36;border:2px solid #627b50;padding:12px;box-shadow:2px 2px #142f25}.card h3{font-size:13px;margin:5px 0}.card p{font-size:11px!important;margin:7px 0}.card small{display:block;color:#b7c899;font-size:10px;line-height:1.9}.card button{width:100%;font-size:11px;margin-top:7px}.bill{display:grid;grid-template-columns:1fr;gap:5px;line-height:1.9;font-size:12px;margin:12px 0}.bill .ok{color:#cedc9b}.bill .missing{color:#d8b38a}.inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.job{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #6c8055;padding:9px 0;font-size:11px}.job button{font-size:10px}.help{font-size:12px;line-height:1.9}.help>button{margin:5px}.help label{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0}.help input{width:50%;accent-color:#c3b576}#atlas{image-rendering:pixelated;border:2px solid #8b9b6b}html[dir=rtl]{font-family:Tahoma,Arial,sans-serif}html[dir=rtl] button{font-family:Tahoma,Arial,sans-serif}html[dir=rtl] header>b{direction:ltr}
@media(max-width:600px){header{height:51px;padding:4px 8px;gap:6px}header>b{font-size:17px;letter-spacing:1px}header a{font-size:10px}nav{gap:4px}main{height:calc(100dvh - 51px);padding:0 4px 4px;grid-template-rows:43px minmax(230px,1fr);gap:2px}.hud{gap:5px}.hud #region{font-size:10px}.hud #coins{font-size:12px}.hud #bag{min-width:88px;font-size:10px;padding:6px}#map{min-width:40px;padding:5px}#project{top:8px;inset-inline-start:8px;width:157px;padding:7px 8px}#project b{font-size:11px}#project small{font-size:8px}#project>span{font-size:10px}#billMini span{font-size:8px}.camera-tools{inset-inline-end:8px;top:8px;gap:5px}.camera-tools button{font-size:20px;padding:4px;min-width:40px;min-height:40px}.controls{left:8px;right:8px;bottom:max(10px,env(safe-area-inset-bottom))}#stick{width:92px;height:90px}#thumb{left:24px;top:23px;width:38px;height:38px}.action-buttons{gap:5px}.action-buttons button{min-width:46px;min-height:48px;padding:6px;font-size:10px}.action-buttons #cut{min-width:74px;min-height:68px;font-size:13px}#toast{bottom:115px;font-size:11px;max-width:90%}#cover{padding:14px}#cover article{padding:21px;max-width:335px}#cover h1{font-size:31px}#cover p{font-size:12px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.inventory{grid-template-columns:repeat(2,1fr)}.card{padding:9px}.card h3{font-size:12px}.tabs button{padding:6px;font-size:10px}.dialog-head h2{font-size:18px}.bill{font-size:11px}}
@media(max-height:500px) and (min-width:600px){header{height:40px}main{height:calc(100dvh - 40px);min-height:260px;grid-template-rows:37px minmax(210px,1fr)}#project{width:180px;top:7px;padding:6px 9px}#project b{font-size:11px}#billMini{display:none}#stick{width:82px;height:78px}#thumb{left:20px;top:18px;width:36px;height:36px}.controls{bottom:8px}.action-buttons #cut{min-height:54px;min-width:85px}.action-buttons button{min-height:44px}#cover article{padding:14px 21px}#cover h1{font-size:29px;margin:8px 0}#cover #coverNote{display:none}.camera-tools{display:flex}}

.material-icon{width:24px;height:24px;image-rendering:pixelated;vertical-align:middle;margin-inline-end:7px;border:1px solid #6e805a}.bill span{min-height:26px}
/* Crisp text is independent of the pixel-world buffer. */
#worldLabels{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}#worldLabels span{position:absolute;left:0;top:0;white-space:nowrap;font:600 14px/1.5 Arial,Tahoma,sans-serif;color:#fff0c8;background:#193329df;padding:2px 7px;border:1px solid #8fa06e;box-shadow:2px 2px #14292077;text-shadow:0 1px #152c21}#worldLabels span[hidden]{display:none}#project,.camera-tools,.controls,#toast{z-index:2}#cover{z-index:4}#project small{font-size:11px}#project b{font-size:15px}#project>span{font-size:13px}#billMini span{font-size:11px}.card h3{font-size:15px}.card small{font-size:12px}#body p{font-size:14px}.bill{font-size:14px}.tabs button{font-size:13px}.card button{font-size:13px}header a{font-size:12px}.hud #region{font-size:14px}#body{line-height:1.7}.material-icon{width:28px;height:28px}.card{padding:14px}#worldLabels span{max-width:220px;overflow:hidden;text-overflow:ellipsis}#project{width:224px}#toast{font-size:14px}
@media(max-width:600px){#project{width:170px}#project small{font-size:9px}#project b{font-size:12px}#project>span{font-size:11px}#billMini span{font-size:10px}.hud #region{font-size:11px}.card h3{font-size:13px}.card small{font-size:11px}.card{padding:10px}.card button{font-size:12px}.bill,#body p{font-size:13px}.tabs button{font-size:12px}#worldLabels span{font-size:12px;max-width:155px;padding:1px 5px}#toast{font-size:12px}}

.axe-preview{display:block;width:120px;height:72px;image-rendering:pixelated;margin:0 auto 8px;border:1px solid #7f9669}#fieldTask{position:absolute;z-index:2;left:50%;bottom:18px;transform:translateX(-50%);max-width:210px;background:#203b30ec;border-color:#a9ae78;font-size:12px;line-height:1.5;padding:8px 10px}#fieldTask[hidden]{display:none}@media(max-width:600px){#fieldTask{bottom:112px;max-width:200px;font-size:11px}#toast{bottom:165px}}

/* Spatial HUD order stays the same in both languages: money at the far right. */
.hud{display:grid;direction:ltr;grid-template-columns:44px minmax(0,1fr) minmax(162px,auto) minmax(66px,auto);column-gap:8px}.hud #map{grid-column:1;grid-row:1;min-width:44px}.hud #region{grid-column:2;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}.hud #bag{grid-column:3;grid-row:1;display:grid;align-content:center;gap:1px;min-width:0;height:44px;padding:3px 9px;text-align:center}.hud #bagAmount{font-size:14px;font-weight:bold;line-height:18px;direction:ltr}.hud #bagLabel{display:block;font-size:11px;line-height:15px;white-space:nowrap;color:#c9d1ad}.hud #bag.full{border-color:#e6c27e}.hud #bag.full #bagAmount{color:#f0ce8d}.hud #coins{grid-column:4;grid-row:1;display:grid;align-content:center;min-height:44px;max-width:112px;overflow:hidden;text-overflow:ellipsis;font-size:15px;text-align:center;white-space:nowrap;direction:ltr}html[dir=rtl] .hud #region{direction:rtl;text-align:right}html[dir=rtl] #bagLabel{direction:rtl}
@media(max-width:600px){.hud{grid-template-columns:44px minmax(0,1fr) 128px minmax(54px,auto);column-gap:4px}.hud #bag{padding:2px 4px;min-width:0}.hud #bagAmount{font-size:13px}.hud #bagLabel{font-size:10px;line-height:14px}.hud #coins{font-size:13px;max-width:86px}.hud #region{font-size:10px;padding:2px 0}}
