@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
:root{color-scheme:dark;font-family:'DM Sans',sans-serif;background:#10251f;color:#f1f0d9}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#254c3e,#10251f 75%)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;background:#263f34;border:1px solid #526151;border-radius:8px;padding:10px 14px}button:hover{background:#3b5745}button:focus-visible,a:focus-visible{outline:3px solid #e9b961;outline-offset:3px}#app{width:min(1280px,100%);padding:24px 40px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.brand{font-family:'Space Grotesk',sans-serif;display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:21px;font-weight:700;letter-spacing:2px}.logo{display:grid;place-items:center;background:#344b37;width:48px;height:48px;border:1px solid #65704b;border-radius:10px;font-size:27px}.brand small{display:block;color:#a4b29c;font-size:10px;letter-spacing:2.4px;margin-top:5px}.top-actions{display:flex;gap:10px;align-items:center;font-size:14px}.tag{color:#c4cdad;font-size:11px;letter-spacing:2px;margin-right:12px}.game-wrap{position:relative;border:5px solid #314c39;border-radius:14px;overflow:hidden;background:#749651;box-shadow:0 20px 60px #06160d66}canvas{display:block;width:100%;aspect-ratio:1.5;image-rendering:pixelated}.world-label{position:absolute;left:25px;top:24px;font-size:12px;letter-spacing:2px;color:#f7f0c3;text-shadow:0 2px 2px #16321f;font-weight:bold}.world-label small{display:block;font-size:12px;letter-spacing:0;font-weight:400;margin-top:6px;color:#d6e0b1}.sun{display:inline-block;width:9px;height:9px;background:#f2cd6b;margin-right:6px;box-shadow:0 0 15px #f4d57a}.score{position:absolute;right:22px;top:20px;padding:12px 18px;border:1px solid #f2e5b028;background:#173b2bcc;border-radius:9px;min-width:155px}.score small{font-size:10px;letter-spacing:1.7px;color:#c8d1b0}.score strong{display:block;font-family:'Space Grotesk',sans-serif;font-size:28px;margin-top:3px}.wood{color:#d8a567;font-size:23px}.coordinates{position:absolute;left:20px;bottom:15px;font-size:9px;letter-spacing:2px;color:#e3e9bd80}.toast{position:absolute;top:100px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:#183d2be8;color:#fce2a2;opacity:0;transition:opacity .2s;text-align:center;font-size:14px;pointer-events:none}.toast.show{opacity:1}.nearby{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);font-size:13px;color:#f8efd4;background:#173326df;border:1px solid #6a8158;border-radius:6px;padding:8px 15px;white-space:nowrap}.nearby:empty{display:none}footer{display:flex;align-items:center;padding:24px 3px 4px;gap:17px}.bag-icon{font-size:30px;border:1px solid #596349;background:#2d4332;color:#d6c18b;width:52px;height:56px;border-radius:9px;display:grid;place-items:center}.bag{width:290px}.bag-label{display:flex;justify-content:space-between;font-size:14px;margin-bottom:9px}.bag-label span{color:#b4c19e}.bag-label b{color:#f4d28e}.bar{height:8px;border-radius:3px;background:#304a38;overflow:hidden}#fill{height:100%;width:0;background:#e1b466;transition:width .2s}.bag small{display:block;font-size:11px;color:#98aa91;margin-top:8px}.controls{margin-left:auto;display:flex;gap:24px;color:#b7c2a9;font-size:12px}.controls span{display:flex;flex-direction:column;align-items:flex-start;gap:8px}kbd{font-family:'DM Sans',sans-serif;font-size:11px;background:#2a4132;border:1px solid #647255;border-bottom:3px solid #4b5f46;border-radius:4px;padding:4px 8px;color:#ecdfb6}dialog{width:min(470px,calc(100% - 32px));border:1px solid #73815a;border-radius:18px;background:#1b3529;color:#f3ecd0;padding:32px;text-align:center;box-shadow:0 30px 120px #07190caa}dialog::backdrop{background:#071c16a3;backdrop-filter:blur(5px)}.intro-art{font-size:35px;margin:0 0 20px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#b6c59a}h1{font:700 46px/1.1 'Space Grotesk',sans-serif;margin:15px 0}dialog p{font-size:14px;line-height:1.6;color:#becbb2}.instructions{text-align:left;margin:22px 0;padding:14px 0;border-top:1px solid #496044;border-bottom:1px solid #496044}.instructions p{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0;font-size:12px}.note{font-size:12px!important}.primary{background:#e3b86b;color:#253c2a;font-weight:bold;border:0;width:100%;padding:15px;margin-top:12px}.primary:hover{background:#f5cd85}.save-note{display:block;font-size:10px;color:#93a98a;margin-top:14px}.mobile-controls{display:none;position:absolute;bottom:22px;left:18px;right:18px;justify-content:space-between;align-items:end;pointer-events:none}.mobile-controls button{pointer-events:auto;touch-action:none;width:44px;height:44px;padding:0;background:#153b2bbb;border-color:#a7bc7d80;user-select:none}.dpad{display:grid;grid-template-columns:repeat(3,44px);gap:4px}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-row:2}.dpad button:nth-child(3){grid-row:2}.dpad button:nth-child(4){grid-row:2}.actions{display:flex;gap:9px}.actions button{width:55px;height:55px;background:#c69c50dc;color:#172b1c}.actions button:first-child{width:44px;height:44px}@media(pointer:coarse){.mobile-controls{display:flex}.nearby{bottom:125px}.controls{display:none}}@media(max-width:700px){#app{padding:14px 10px}.brand{font-size:15px;letter-spacing:1px}.brand small{font-size:8px;letter-spacing:1px}.logo{width:38px;height:38px;font-size:22px}.tag{display:none}.top-actions{gap:5px}.top-actions button{font-size:11px;padding:8px}header{margin-bottom:13px}canvas{aspect-ratio:1/1.2;object-fit:cover}.world-label{left:12px;top:14px;font-size:10px}.world-label small{font-size:10px}.score{top:10px;right:10px;padding:8px 10px;min-width:105px}.score small{font-size:8px}.score strong{font-size:21px}footer{padding:15px 2px;gap:12px}.bag{flex:1}.bag small{font-size:10px}.controls{display:none}.toast{width:85%;top:90px}.coordinates{display:none}}
@media(min-width:701px) and (min-height:540px){#app{width:min(1280px,100%,calc((100dvh - 214px)*1.5 + 80px))}.brand{font-size:16px}.brand small{font-size:8px;letter-spacing:1px}.tag{display:none}.controls{gap:12px;font-size:10px}.controls kbd{font-size:9px}.bag{width:240px}.top-actions{font-size:12px;gap:7px}}

button:disabled{cursor:default;opacity:.5}footer{flex-wrap:wrap}.controls{gap:16px}.shop-heading{display:flex;align-items:center;justify-content:space-between}.shop-heading button{padding:5px 10px}#workshop{text-align:left;width:min(520px,calc(100% - 24px));max-height:90dvh;overflow:auto}#workshop h2{font:700 32px/1.15 'Space Grotesk',sans-serif;margin:18px 0}#workshop p{font-size:14px}.wallet{display:flex;justify-content:space-between;background:#294b35;border-radius:8px;padding:14px;font-size:15px;margin:20px 0}.wallet strong{color:#f2ce87}.axe-tier{display:flex;align-items:center;gap:12px;border:1px solid #496044;border-radius:9px;padding:14px 10px;margin:9px 0}.axe-tier.equipped{border-color:#ddb76d;background:#334b32}.tier-icon{font-size:27px}.axe-tier strong{font-size:14px}.axe-tier small{display:block;color:#b2c4a1;font-size:12px;margin-top:5px}.tier-state{margin-left:auto;color:#e5c583;font-size:12px;white-space:nowrap}#shop-location{min-height:44px;color:#dfcf99!important}#workshop .save-note{text-align:center;line-height:1.6}.nearby{max-width:94%;white-space:normal;text-align:center}@media(max-width:700px){.brand small{display:none}.top-actions button{font-size:10px;padding:7px 6px}.brand{font-size:12px}.logo{width:30px;height:34px;font-size:20px}.top-actions{gap:4px}#app{padding:12px 6px}.brand{gap:6px}#workshop{padding:22px}.axe-tier{gap:8px;padding:12px 8px}.axe-tier strong{font-size:13px}.tier-state{font-size:11px}}

.economy-hud{display:flex;justify-content:space-between;gap:18px;font-size:12px;color:#e6c78a;margin-top:7px}.sell-box{padding:15px;border:1px solid #687a50;border-radius:9px;margin-bottom:20px}.sell-box h3{font-size:17px;margin:0}.sell-box p{font-size:13px!important}.sell-box label{font-size:14px}.sell-controls{display:flex;gap:8px;margin:9px 0}.sell-controls input{min-width:0;width:100%;font:inherit;border:1px solid #71815b;border-radius:6px;padding:10px;background:#122b20;color:#f3dfb6}#sell-wood{width:100%;background:#456444}#sell-status{margin-bottom:0;min-height:40px;color:#c0ccae}#workshop .wallet{margin:15px 0}#workshop .axe-tier{padding:10px}.score{min-width:170px}@media(max-width:700px){.score{min-width:125px}.economy-hud{font-size:10px;gap:10px}.toast{top:115px}}

/* World atlas and navigation. */
.mini-map{position:absolute;right:18px;bottom:18px;width:140px;padding:10px;background:#173b2be6;border:1px solid #7d94634d;border-radius:9px;pointer-events:none}.mini-title{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#d0d8b2;margin-bottom:7px}.map-board{position:relative}.map-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:2px}.map-cell{position:relative;aspect-ratio:1.5;background:var(--terrain);opacity:.42;box-shadow:inset 0 0 0 1px #123f2922}.map-cell.visited{opacity:1}.map-cell.here{outline:2px solid #f2d584;outline-offset:-2px;opacity:1;z-index:1}.hut-marker{position:absolute;left:20%;top:10%;color:#fff2c1;font-size:13px;text-shadow:0 1px 2px #203823}.player-marker{position:absolute;width:7px;height:7px;transform:translate(-50%,-50%);background:#ffe29a;box-shadow:0 0 0 2px #244331,0 0 8px #fff6cc;border-radius:50%;z-index:2;pointer-events:none}.home-direction{display:flex;gap:7px;justify-content:center;align-items:center;font-size:10px;color:#e3d3a7;margin-top:8px}#home-arrow{display:inline-block;font-size:12px;color:#f2ca79}.key-hint{font-size:10px;color:#c5c8a5;margin-left:5px}#world-map{width:min(720px,calc(100% - 24px));max-height:92dvh;overflow:auto;text-align:left}#world-map h2{font:700 30px 'Space Grotesk',sans-serif;margin:15px 0}.map-summary{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#bfcdac;margin:16px 0}.map-summary strong{color:#ecd291}.large-map{border:8px solid #142d21;border-radius:8px}.large-map .map-grid{gap:3px}.large-map .map-cell{padding:8px;aspect-ratio:1.45}.large-map .cell-label{font-size:14px;font-weight:bold;color:#f8f1d2;text-shadow:0 1px 2px #203823}.large-map .map-cell small{position:absolute;bottom:6px;left:6px;right:3px;color:#f1efcc;font-size:9px;text-shadow:0 1px 2px #203823}.large-map .hut-marker{left:auto;right:10px;top:4px;font-size:24px}.large-map .player-marker{width:10px;height:10px}.map-legend{display:flex;flex-wrap:wrap;gap:12px 20px;font-size:12px;color:#c5cfad;margin-top:16px}.map-legend span{display:flex;align-items:center;gap:7px}.legend-player{display:inline-block;width:9px;height:9px;border-radius:50%;background:#ffe29a}#world-map>p{font-size:13px;color:#aabf9e}.top-actions{flex-wrap:wrap;justify-content:flex-end}dialog{max-height:92dvh;overflow:auto}@media(max-width:900px){.tag{display:none}.brand{font-size:16px}.controls{gap:12px;font-size:10px}.controls kbd{font-size:9px}.bag{width:260px}.brand small{font-size:8px;letter-spacing:1px}}@media(pointer:coarse){.mini-map{bottom:105px;right:12px;width:116px}.nearby{bottom:112px;max-width:55%;left:12px;transform:none;text-align:left}.coordinates{display:none}}@media(max-width:700px){header{gap:8px;flex-wrap:wrap}.brand{font-size:13px}.top-actions{gap:5px}.top-actions button{font-size:11px;padding:8px}.key-hint{display:none}.mini-map{width:112px;padding:8px;right:10px;bottom:10px}.mini-title{font-size:8px}.large-map .map-cell{padding:5px}.large-map .map-cell small{display:none}.large-map .hut-marker{font-size:19px;right:4px;top:3px}.map-summary{font-size:12px}#world-map{padding:22px}.map-legend{font-size:11px}.world-label{max-width:49%;letter-spacing:1px}.world-label small{font-size:9px}.home-direction{font-size:9px}.nearby{max-width:60%;left:12px;transform:none;text-align:left}}@media(max-width:700px) and (pointer:coarse){.mini-map{bottom:106px}.nearby{bottom:110px}}

/* Menus keep a still game background, without a continuously composited blur. */
dialog::backdrop{backdrop-filter:none;background:#071c16bb}.plant-tools{display:flex;align-items:center;gap:12px;width:100%;font-size:13px;border-top:1px solid #456044;padding-top:12px;color:#cad6b5}.plant-tools label{white-space:nowrap}.plant-tools label b{color:#ecc781;margin-left:5px}.plant-tools small{margin-left:auto;font-size:11px;color:#adbd9c}.plant-tools kbd{font-size:10px}.plant-tools button{padding:8px 12px}.plant-tools select,.nursery select{font:inherit;color:#f0e4c3;background:#294631;border:1px solid #647951;border-radius:7px;padding:9px 30px 9px 12px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d7c48c' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.nursery select{display:block;width:100%;margin:10px 0}.nursery button{width:100%;background:#456444}.mobile-controls .actions button[data-key=f]{font-size:12px;width:44px;height:44px;background:#52704ddd;color:#f6eac3}@media(min-width:701px) and (min-height:540px){#app{width:min(1280px,100%,calc((100dvh - 274px)*1.5 + 80px))}header{gap:14px}.brand small{display:none}.controls{display:none}.bag{flex:1}.brand{font-size:14px;letter-spacing:1px}.top-actions button{padding:8px 10px}.logo{width:40px;height:40px}}@media(max-width:700px){.plant-tools{flex-wrap:wrap;gap:9px}.plant-tools small{width:100%;margin:0;font-size:10px}.plant-tools select{flex:1;min-width:100px}.plant-tools label{font-size:12px}.plant-tools button{font-size:12px;padding:8px}.actions{gap:6px}#intro{padding:22px}#intro h1{font-size:34px}.instructions p{font-size:11px}.instructions kbd{font-size:10px}}

#market-menu{width:min(500px,calc(100% - 24px));text-align:left;max-height:92dvh;overflow:auto}#market-menu h2{font:700 32px 'Space Grotesk',sans-serif;margin:15px 0}#market-menu>p{font-size:14px}#market-menu .sell-box{margin-bottom:10px}

#inventory{width:min(620px,calc(100% - 24px));text-align:left;max-height:92dvh;overflow:auto}#inventory h2{font:700 30px 'Space Grotesk',sans-serif;margin:17px 0 25px}.inventory-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:24px;margin-bottom:12px}.inventory-heading h3{font-size:16px;margin:0}.inventory-heading>span{font-size:12px;color:#b4c5a0}.inventory-heading>strong{font-size:14px;color:#e8ca8d}.wood-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.wood-item{display:flex;justify-content:space-between;gap:8px;background:#284631;border:1px solid #466044;border-radius:6px;padding:11px 12px;font-size:14px}.wood-item b{color:#e7c382}#inventory-fill{height:100%;background:#e1b466}.seed-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.seed-card{display:flex;flex-direction:column;align-items:center;gap:7px;padding:13px 8px;font-size:12px}.seed-card strong{font-size:14px}.seed-card small{font-size:10px;color:#b9caa7}.seed-card.selected{border-color:#d8bd76;background:#3c5738}.seed-glyph{font-size:37px;color:#a7cc75;line-height:1.2}.seed-kind-1{color:#d2e4a3}.seed-kind-3{color:#79ac91}#inventory>p{font-size:13px;line-height:1.7;color:#c6d2b4}canvas.planting{cursor:crosshair;touch-action:manipulation;user-select:none}.game-wrap .toast,.world-label,.score,.nearby,.coordinates{pointer-events:none}.top-actions{gap:6px}.top-actions button{padding:8px 9px;font-size:12px}@media(min-width:701px){.brand{font-size:12px}.logo{width:32px;height:36px;font-size:21px}.top-actions{gap:4px}.top-actions button{font-size:11px;padding:8px}}@media(max-width:700px){.seed-grid{grid-template-columns:1fr 1fr}#inventory{padding:22px}.inventory-heading>span{font-size:10px}.wood-item{font-size:12px}.plant-tools small{font-size:10px}.top-actions button{font-size:11px}}
