:root{color-scheme:dark;--bg:#14231f;--ink:#e5e6d7;--muted:#98a89a;--gold:#d6b778;--line:#ffffff16}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px system-ui,-apple-system,sans-serif;overflow:hidden}button{font:inherit;color:inherit;border:1px solid var(--line);background:#ffffff05;cursor:pointer;border-radius:5px;min-height:38px}button:hover,button.active{background:#d4b77c1a;border-color:#d4b77c77;color:#e6c587}button:focus-visible{outline:2px solid #f4d390;outline-offset:2px}header{height:76px;display:flex;align-items:center;padding:0 25px;border-bottom:1px solid var(--line);gap:40px}.brand{display:flex;gap:12px;align-items:center;min-width:245px}.crest{border:1px solid #b29b65;width:32px;height:39px;display:grid;place-items:center;font:26px Georgia;color:var(--gold);border-radius:2px 2px 14px 14px}.brand strong{font:22px Georgia;letter-spacing:5px}.brand small{display:block;font-size:8px;letter-spacing:2.7px;margin-top:5px;color:var(--muted)}.worldname{display:flex;align-items:center;gap:10px;font-size:12px;color:#d5dece}.worldname i{width:6px;height:6px;border-radius:50%;background:#a2bf86}.worldname span{margin-left:15px;font-size:9px;color:var(--muted);letter-spacing:2px}header>button{margin-left:auto;padding:0 13px}main{display:flex;height:calc(100dvh - 76px)}aside{width:290px;flex-shrink:0;padding:26px 24px 16px;overflow:auto;scrollbar-width:thin}.eyebrow{font-size:9px;color:var(--gold);letter-spacing:2px}h1{font:30px/1.15 Georgia;margin:12px 0;color:#f0ead8;letter-spacing:-.5px}.intro{color:var(--muted);font-size:12px;line-height:1.7}.rule{height:1px;background:var(--line);margin:21px 0}.section-label{font-size:9px;letter-spacing:1.3px;color:#b9c6b8;display:flex;justify-content:space-between;margin-bottom:12px}.section-label span{font-size:9px;color:#72897b}#mini{display:block;width:100%;aspect-ratio:1;border:1px solid #c2b98844;border-radius:3px;cursor:crosshair}.legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:12px;font-size:9px;color:#aab8a8}.legend i{display:inline-block;width:6px;height:6px;margin-right:5px}.forest{background:#315b38}.water{background:#77a6a8}.rock{background:#abb0a0}.gold{background:#d8b95d}#tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}#tools button{text-align:left;padding:8px 10px;color:#b6c5b5;font-size:18px}#tools span{font-size:11px;margin-left:6px}.note{font-size:10px;line-height:1.6;color:#849b8c;margin:15px 0}.quiet{font-size:10px;border:0;color:#a7b5a3;background:none;padding:0;min-height:24px}footer{border-top:1px solid var(--line);margin-top:25px;padding-top:15px;font-size:8px;letter-spacing:1px;color:#728b7b;display:flex;justify-content:space-between}#viewport{position:relative;flex:1;min-width:0;overflow:hidden;background:#65815b}#map{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#map:active{cursor:grabbing}.map-title{position:absolute;left:30px;top:27px;pointer-events:none;text-shadow:0 2px 12px #233d28}.map-title .eyebrow{color:#fff2c2}.map-title b{display:block;font:29px Georgia;color:#fff6dc;margin:6px 0}.map-title>span:last-child{font-size:10px;color:#f5f0d4}.map-badge{position:absolute;right:25px;top:29px;background:#172c24cf;border:1px solid #d6d0a63b;border-radius:4px;padding:9px 12px;color:#dedbc0;font-size:11px;pointer-events:none}#info{position:absolute;left:25px;bottom:62px;width:245px;background:#16271ff0;border:1px solid #c9b57644;border-radius:6px;padding:17px 19px;box-shadow:0 6px 25px #0b211a33;pointer-events:none}#info h2{font:23px Georgia;margin:8px 0}#info p{font-size:11px;line-height:1.6;color:#a8bba7;margin:0 0 12px}#infoMeta{font-size:10px;color:#d4c294;border-top:1px solid var(--line);padding-top:10px}.map-controls{position:absolute;bottom:22px;right:25px;display:flex;align-items:center;gap:3px;background:#16271ff2;border:1px solid #c9b57644;border-radius:6px;padding:4px}.map-controls button{border:0;background:none;width:36px;font-size:21px}.map-controls button.on{color:var(--gold)}.map-controls span{height:19px;width:1px;background:var(--line);margin:0 3px}.map-controls output{font-size:10px;min-width:42px;text-align:center}.coords{position:absolute;bottom:25px;left:25px;color:#e6e8d4;background:#172b21ba;padding:7px 10px;border-radius:3px;font:10px monospace}#toast{position:absolute;top:110px;left:50%;transform:translateX(-50%);background:#14231ff2;border:1px solid #d6b77866;border-radius:5px;padding:12px 18px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:80%;text-align:center}#toast.show{opacity:1}#helpPanel{position:absolute;z-index:4;top:50%;left:50%;transform:translate(-50%,-50%);background:#14231ff7;border:1px solid #d6b77866;padding:26px;width:min(420px,90%);box-shadow:0 20px 100px #0008;border-radius:8px}#helpPanel h2{font:27px Georgia;color:#ead9b5}#helpPanel p{font-size:12px;line-height:1.7;color:#b4c6b3}#closeHelp{width:100%;color:var(--gold);margin-top:8px}@media(max-height:850px) and (min-width:761px){aside{padding-top:20px}h1{font-size:26px}.intro{display:none}#mini{max-width:190px;margin:auto}.rule{margin:17px 0}footer{margin-top:15px}}@media(max-width:760px){header{height:60px;padding:0 15px;gap:12px}.brand{min-width:0}.brand strong{font-size:18px}.brand small{font-size:7px}.crest{width:26px;height:32px}.worldname{display:none}header>button span{display:none}main{height:calc(100dvh - 60px);flex-direction:column}aside{width:100%;padding:9px 12px;border-bottom:1px solid var(--line);overflow:visible}aside> :not(#tools){display:none}#tools{display:flex;gap:5px}#tools button{flex:1;min-width:0;text-align:center;padding:5px 2px;font-size:16px}#tools span{display:block;font-size:8px;margin:2px 0 0}.map-title{left:16px;top:18px}.map-title b{font-size:24px}.map-title>span:last-child{display:none}.map-badge{right:12px;top:20px;padding:8px}.map-badge span{display:none}#info{left:12px;bottom:75px;width:210px;padding:12px 14px}#info h2{font-size:20px}#info p{font-size:10px;margin-bottom:8px}.map-controls{right:12px;bottom:16px}.coords{bottom:73px;left:auto;right:12px;font-size:9px}.map-controls button{width:32px}.map-controls output{min-width:36px}}

#info{pointer-events:auto}#produce{width:100%;margin-top:12px;padding:8px;font-size:11px;color:var(--gold);border-color:#d6b77866}#produce:disabled{opacity:.65;cursor:wait}.map-badge{pointer-events:auto}#builderCount{font-weight:500;color:#e4c582}#tools button:last-child{grid-column:auto}@media(max-width:760px){#tools{flex-wrap:wrap}#tools button{flex:1 1 11%;}#tools span{font-size:8px}#builderCount{display:block}}

[hidden]{display:none!important}#info{max-height:48%;overflow:auto;scrollbar-width:thin}#partActions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:12px}#partActions button{font-size:10px;padding:7px 5px;min-height:34px}#partActions #removePart{grid-column:1/-1;color:#cda98e}#deposit,#withdraw{grid-column:1/-1}#buildPanel{position:absolute;z-index:3;right:20px;top:83px;width:310px;max-height:calc(100% - 160px);overflow:auto;scrollbar-width:thin;background:#14251ff5;border:1px solid #cab27166;border-radius:7px;padding:17px;box-shadow:0 12px 40px #13231c55}.build-heading{display:flex;align-items:center;justify-content:space-between}.build-heading button{min-height:25px;width:26px;border:0;font-size:20px}#buildPanel h2{font:23px/1.2 Georgia;margin:8px 0 10px}.build-intro{font-size:11px;color:#b0c1af;line-height:1.6}.build-palette{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:14px}.build-palette button{font-size:22px;min-height:62px;color:#d7bc7b}.build-palette span{display:block;font-size:10px;margin-top:5px;color:#c2ceba}#buildHint{font-size:10px;color:#ddc792;line-height:1.6}#buildSummary{border-top:1px solid var(--line);padding:10px 0;font-size:10px;color:#a7c8ae}.security-test{background:#ffffff05;padding:12px;border-radius:4px;border:1px solid var(--line);margin:8px 0 14px}.security-test b{font-size:11px;font-weight:500}.security-test p{font-size:10px;line-height:1.6;color:#adbfac}.security-test button{width:100%;font-size:11px;color:#e3c488}#buildPanel small{font-size:9px;color:#8ba18e;line-height:1.6}#openBuild{border-color:#cbb47777;color:#e6ca8c}.map-controls{z-index:2}@media(max-width:760px){#buildPanel{top:68px;right:10px;width:265px;max-height:calc(100% - 140px);padding:12px}#buildPanel h2{font-size:20px}.build-palette button{min-height:51px;font-size:18px}.build-intro{font-size:10px}.security-test{padding:9px}#info{max-height:37%;max-width:calc(100% - 24px)}#tools button{flex-basis:10%}#tools span{font-size:7px}.map-controls{bottom:12px}}

header{gap:20px}header #openPack{margin-left:auto;padding:0 13px;font-size:12px}header #help{margin-left:0}#packCount{font-size:10px;margin-left:7px;color:var(--gold);font-weight:500}#openBuild,#gatherResource{width:100%;margin-top:10px;padding:8px;font-size:11px}#packPanel{position:absolute;z-index:5;right:20px;top:20px;width:360px;max-height:calc(100% - 40px);overflow:auto;background:#14251ff7;border:1px solid #cab27166;border-radius:7px;padding:18px;scrollbar-width:thin;box-shadow:0 12px 40px #13231c55}#packPanel h2{font:25px Georgia;margin:10px 0}.pack-explanation{font-size:11px;line-height:1.6;color:#a9beac}.equipped-tool{font-size:9px;letter-spacing:1px;padding:10px 0;color:#8d9e8c}.equipped-tool b{margin-left:10px;font-size:11px;color:#e0c78d;letter-spacing:0}#packSlots{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:10px 0 15px}.pack-slot{position:relative;aspect-ratio:1;min-height:49px;padding:3px;background:#ffffff08;border-color:#9cad9b33;display:flex;flex-direction:column;align-items:center;justify-content:center}.pack-slot span{font-size:23px;color:#d2bd8e}.pack-slot small{font-size:6px;max-width:100%;line-height:1.2}.pack-slot b{position:absolute;bottom:3px;right:4px;font-size:9px;color:#e1e9d5}.pack-slot.equipped{background:#d4b77c23;border-color:#d4b77ca0}.pack-slot.empty{font-size:9px;color:#536b58}#makePickaxe,#toggleAuto{width:100%;font-size:11px;margin-bottom:10px;padding:8px}.harvest-controls{border-top:1px solid var(--line);padding-top:15px}.harvest-controls label{font-size:10px;color:#b8c8b2;display:block;margin-bottom:7px}.harvest-controls select{width:100%;min-height:35px;padding:5px 10px;border:1px solid #d4b77c55;border-radius:4px;background:#20382a;color:#e0e6d3;font:12px system-ui}.harvest-controls p{font-size:10px;line-height:1.6;color:#9fb69f}#harvestState{color:#d8c78e}.map-title>span:last-child{max-width:240px}@media(max-width:760px){header{gap:8px}header #openPack{padding:0 8px;font-size:11px}#openPack>span{display:none}#packPanel{width:min(340px,calc(100% - 20px));right:10px;top:10px;padding:14px;max-height:calc(100% - 20px)}#buildPanel{max-height:calc(100% - 135px)}#info{max-height:35%}#tools button{flex:1 1 13%}}

header #quickBuild{margin-left:auto;padding:0 12px;color:#e8ce92;font-size:12px;border-color:#d6b77855}header #openPack{margin-left:0}.iron{background:#b77c4f}.fiber{background:#b4ca85}.legend{justify-content:flex-start;gap:10px 13px}.inventory-label{font-size:9px;letter-spacing:1px;color:#c7bb92;margin:10px 0}.inventory-label>span{letter-spacing:0;color:#99b59b}#packPanel.with-chest{width:min(730px,calc(100% - 40px))}.storage-layout{display:grid;grid-template-columns:1fr;gap:20px}.with-chest .storage-layout{grid-template-columns:1fr 1fr}#chestSlots{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:10px 0 15px}#chestSecurity{font-size:10px;color:#d5bf8a;line-height:1.5}#closeChest{width:100%;font-size:11px}.clothing{border-top:1px solid var(--line);padding-top:8px;margin-bottom:15px}#wornClothes{font-size:11px;color:#b9cab4}.clothing-crafts{display:grid;grid-template-columns:1fr 1fr;gap:6px}.clothing-crafts button{font-size:10px;padding:8px}.clothing-crafts small{display:inline-block;margin-top:5px;font-size:9px;color:#bda776}#packSlots .pack-slot small,#chestSlots .pack-slot small{font-size:7px}.with-chest .pack-slot{min-height:48px}.with-chest #packExplanation{color:#e7d19d}.with-chest .harvest-controls{margin-top:10px}.with-chest .clothing{margin-top:10px}@media(max-width:760px){header #quickBuild{padding:0 8px}#quickBuild>span{display:none}#packPanel.with-chest{width:calc(100% - 20px)}.with-chest .storage-layout{grid-template-columns:1fr;gap:8px}.with-chest #chestInventory{border-top:1px solid var(--line);padding-top:10px}}
