:root{font-family:ui-rounded,'Avenir Next',system-ui,sans-serif;color:#304a3d;background:#f5f3e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:980px;padding:35px 30px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#73836a}h1{font-family:Georgia,serif;font-size:44px;letter-spacing:-2px;margin:5px 0}h1 span{color:#8a9c70;font-style:italic}.flower-mark{font-size:35px;padding-left:15px;color:#d8946a}h2{font-size:14px;margin:0;font-weight:650}.wallet{background:#fffdf5;border:1px solid #e5dfc8;border-radius:18px;display:grid;grid-template-columns:27px auto;padding:12px 20px;min-width:132px}.wallet strong{font-size:24px}.wallet small{grid-column:1/3;color:#8a826e;font-size:10px;text-align:center}.coin{color:#dcb052;font-size:24px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 13px}.section-heading>span{font-size:11px;color:#7d8775}#orders{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}.order{background:#fffdf6;border:1px solid #e8e3d2;border-top:4px solid #d5b58a;padding:13px 15px;border-radius:5px 5px 12px 12px}.order strong{font-family:Georgia,serif;font-size:16px}.order p{font-size:12px;margin:9px 0}.order small{font-size:10px;color:#7b8370;display:flex;justify-content:space-between}.garden-frame{background:#e8ebda;border:1px solid #d8ddc8;border-radius:18px;overflow:hidden;box-shadow:0 8px 0 #e8e6db}.garden-title{display:flex;justify-content:space-between;padding:15px 20px;font-size:9px;letter-spacing:1.8px;font-weight:700}.live-dot{letter-spacing:0;color:#637d62}#garden{position:relative;aspect-ratio:760/440;overflow:hidden}canvas{width:100%;height:100%;display:block;image-rendering:pixelated}#targets{position:absolute;inset:0}.target{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;min-height:56px;min-width:60px;cursor:pointer;color:#3f533e;font:inherit;touch-action:manipulation;display:flex;align-items:flex-end;justify-content:center;padding:0 0 2px}.target span{background:#fff9e8ed;padding:4px 9px;border-radius:6px;font-size:11px;white-space:nowrap;box-shadow:0 2px 0 #78835825}.target:hover span,.target:focus-visible span{background:#fff;outline:2px solid #6a8b61}.target.ready span{background:#faf0ac}.target.thirsty span{background:#dcecf2}.status-line{display:flex;align-items:center;gap:12px;padding:13px 20px;background:#f6f6e9;min-height:61px}.status-line p{font-size:12px;margin:0}.robot-dot{font-size:25px;color:#719c8c}.workbar{display:grid;grid-template-columns:1fr 210px;gap:20px;margin-top:27px;padding-bottom:20px;border-bottom:1px solid #e2e2d5}.workbar h2{font-size:11px;color:#899480}.workbar h2 span{font-size:14px;color:#304a3d;margin-left:7px}.workbar p{font-size:11px;color:#79836e;margin:7px 0 12px}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid #467e79;outline-offset:3px}#seeds{display:flex;gap:8px;flex-wrap:wrap}.seed{border:1px solid #d9dec9;background:#fffdf6;border-radius:9px;min-height:46px;padding:8px 12px;color:#38533b;font-size:12px;display:flex;align-items:center;gap:8px}.seed small{color:#87907d;font-size:10px}.seed i{width:14px;height:14px;border:3px solid var(--petal);background:#a98850;display:inline-block;box-shadow:2px 2px 0 #dedccb}.carrying{border-left:1px solid #e0e0d2;padding-left:22px}.carrying span{font-size:10px;color:#8d927f}.queue-section{padding:22px 0}.text-button{background:none;border:0;color:#7c8870;font-size:11px;text-decoration:underline;min-height:36px}#queue{font-size:12px;color:#7b8772;display:flex;gap:6px;flex-wrap:wrap;min-height:35px;align-items:center}.task{background:#e8eddd;border-radius:6px;padding:7px 10px}.task.active{background:#3f6351;color:#fff}.upgrades{padding:22px 0;border-top:1px solid #e2e2d5}#upgrades{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.upgrade{border:1px solid #dce1cf;border-radius:12px;padding:16px;background:#ecefe2}.upgrade h3{font-family:Georgia,serif;font-size:18px;margin:0 0 8px}.upgrade p{font-size:11px;line-height:1.5;min-height:34px;color:#74836b}.upgrade button{background:#496b50;color:#fff;border:0;border-radius:7px;padding:10px 14px;width:100%;font-size:12px;min-height:44px}.upgrade button:disabled{background:#d9dfce;color:#7a856e;cursor:default}details{font-size:12px;line-height:1.8;color:#6b7d64;padding:12px 0}summary{cursor:pointer}footer{display:flex;justify-content:space-between;margin-top:23px;padding-top:20px;border-top:1px solid #e3e2d5;font-size:9px;letter-spacing:1px;color:#949a86}footer span{letter-spacing:0;font-family:Georgia,serif;font-style:italic;font-size:12px}@media(max-width:600px){main{padding:20px 12px}h1{font-size:34px}.eyebrow{font-size:8px;letter-spacing:1px}.flower-mark{display:none}header{gap:10px}.wallet{padding:10px 13px;min-width:100px}.section-heading>span{font-size:9px;max-width:110px;text-align:right}h2{font-size:12px}#orders{gap:6px}.order{padding:10px 8px}.order strong{font-size:14px}.order p{font-size:10px;line-height:1.6}.order small{font-size:9px;flex-direction:column;gap:3px}.garden-title{padding:13px 12px;font-size:8px;letter-spacing:.7px}.live-dot{font-size:8px}.target span{font-size:9px;padding:3px 5px}.workbar{grid-template-columns:1fr;gap:14px}.carrying{border-left:0;padding:12px 0 0;border-top:1px solid #e0e0d2;display:flex;justify-content:space-between;align-items:center;gap:10px}.carrying p{margin:0}#upgrades{gap:7px}.upgrade{padding:11px 9px}.upgrade h3{font-size:15px}.upgrade p{font-size:10px;min-height:45px}.upgrade button{font-size:10px;padding:8px 4px}footer span{display:none}.status-line{padding:10px 12px}.status-line p{font-size:11px}}

@media(max-width:600px){#garden{aspect-ratio:760/540}.target{min-width:44px;min-height:44px}.target span{font-size:9px;padding:3px 4px}}
#seed-picker{width:min(380px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #d8ddc8;border-radius:18px;padding:24px;background:#fffdf5;color:#304a3d;box-shadow:0 18px 60px #253e3540}#seed-picker::backdrop{background:#253e3560}#seed-picker h2{font:24px Georgia,serif}#seed-picker p{font-size:12px;line-height:1.6;color:#74836b}#seed-options{display:grid;gap:10px;margin:18px 0}.seed-choice{width:100%;display:grid;grid-template-columns:20px 1fr;text-align:left;padding:14px;min-height:64px}.seed-choice small{grid-column:2}.seed-choice:hover{background:#edf1e2}.seed-picker-cancel{width:100%;min-height:44px;border:1px solid #d8ddc8;border-radius:9px;background:#ecefe2;color:#304a3d}

#upgrades{grid-template-columns:repeat(2,minmax(0,1fr))}#queue-count{font-size:11px;font-weight:400;color:#79836e}

.order-section{margin-top:24px}

.garden-title{display:block;padding:8px 12px}.garden-title .live-dot{display:none}.queue-section{padding:0}.queue-section .section-heading{margin:0}#queue{flex-wrap:nowrap;overflow:auto;font-size:10px;min-height:28px}.task{white-space:nowrap;padding:5px 8px}.game-buttons{position:absolute;bottom:8px;right:8px;left:8px;display:flex;justify-content:space-between;z-index:3}.game-buttons button,.game-panel button{min-height:40px;border:1px solid #a3b291;border-radius:8px;background:#fffbed;color:#304a3d;padding:8px 12px}.game-panel{position:absolute;inset:0;z-index:5;background:#f5f3e9;overflow:auto;padding:16px}.game-panel[hidden]{display:none}.game-panel h2{margin:14px 0}.game-panel label{display:block;margin:14px 0}.game-panel input{display:block;padding:10px;width:100%;font:inherit;border:1px solid #a3b291;border-radius:6px}#color-presets{display:flex;flex-wrap:wrap;gap:8px}.upgrades{border:0;padding:14px 0}.garden-frame #garden{padding-bottom:0}

.game-buttons{position:relative;inset:auto;padding:8px 12px;background:#e8ebda}

.control-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;background:#e8ebda;font-size:11px}.control-bar button,.control-bar select,#chat-form button{min-height:40px;border:1px solid #b4c1a3;border-radius:7px;background:#fffbed;color:#304a3d;padding:7px}.control-bar #profile-label{flex:1}#controller-status{font-size:10px;padding:4px 12px;color:#687b60;background:#e8ebda}.world-target{position:absolute;transform:translate(-50%,-50%);min-width:44px;min-height:40px;border:0;border-radius:8px;background:#fff9e8b0;color:#3f533e;font-size:10px;padding:3px 6px;touch-action:manipulation}#targets{touch-action:none}.world-target:hover{background:#fff9e8}#chat-form{display:flex;align-items:center;gap:8px;margin:14px 0;font-size:12px}#chat-input{min-width:0;flex:1;padding:12px;border:1px solid #c5cfb6;border-radius:8px}dialog{width:min(400px,calc(100vw - 24px));max-height:85vh;overflow:auto;border:1px solid #bdc9ae;border-radius:16px;padding:24px;background:#fffbed;color:#304a3d}dialog::backdrop{background:#253e3570}dialog p{font-size:13px;line-height:1.6}dialog input{width:100%;padding:12px;margin:10px 0;border:1px solid #bdc9ae;border-radius:7px}dialog button{min-height:44px;padding:10px 15px;margin:4px;border:1px solid #bdc9ae;border-radius:7px;background:#e8eddf;color:#304a3d}.profile-note{color:#85735b}#bed-options{display:grid;grid-template-columns:1fr 1fr}.garden-title{letter-spacing:0}.game-panel{z-index:10}@media(max-width:600px){#garden{aspect-ratio:760/540}.world-target{font-size:9px;min-height:34px}#chat-form label{display:none}.control-bar #profile-label{flex-basis:100%;order:4}}

/* Refined garden chrome: comfortable targets with small, quiet captions. */
main{max-width:960px;padding-top:28px}header{margin-bottom:22px}h1{font-weight:600}.garden-frame{border-radius:20px;border-color:#d8dfca;box-shadow:0 5px 0 #e5e5d8}.control-bar{padding:10px 16px 6px;gap:8px;background:#eef0e2}.control-bar label{display:flex}.control-bar select,.control-bar button{background:#fafbf2;border:1px solid #dbe1cf;border-radius:20px;min-height:34px;font-size:11px;padding:6px 12px}.control-bar #profile-label{text-align:right;font-size:10px;color:#86917c}.control-bar #switch-profile{background:transparent;border-color:transparent;color:#78866d;padding-right:0}#follow[aria-pressed=true]{background:#dce8d1;color:#446344}.garden-title{padding:6px 16px 10px;background:#eef0e2}.queue-section .section-heading{margin:0;min-height:26px}.queue-section h2{font-size:11px;font-weight:650;color:#63765a}#queue-count{font-size:10px;color:#8a947e;margin-left:6px}.text-button{font-size:10px;min-height:26px;color:#89937f}#queue{min-height:30px;font-size:11px;color:#8b967f;gap:5px}.task{font-size:10px;background:#e2e8d8;color:#64785b;border-radius:6px;padding:6px 9px}.task.active{background:#648268;color:#fff}#controller-status{padding:5px 16px;font-size:10px;background:#eef0e2}#controller-status[hidden]{display:none}
.world-target{background:transparent;min-width:60px;min-height:48px;border-radius:8px;padding:0;display:flex;align-items:center;justify-content:center}.world-target[hidden]{display:none}.world-target span{display:block;white-space:nowrap;background:#fff9e8e8;border:1px solid #d3d8bd;border-radius:6px;box-shadow:0 2px 0 #71815d24;padding:4px 8px;font-size:10px;color:#5b704f;transition:background .12s}.world-target:hover{background:transparent}.world-target:hover span,.world-target:focus-visible span{background:#fffdf4;border-color:#8da579}.world-target:active span{transform:translateY(1px)}
.pocket-bar{display:flex;align-items:center;gap:8px;padding:10px 16px 4px;background:#f7f7ec;font-size:11px;color:#6d8062}.pocket-icon{color:#82a38a;font-size:17px}.pocket-bar #stats{margin-left:auto;font-size:10px;color:#959c88}.game-buttons{background:#f7f7ec;padding:8px 16px 10px;gap:10px}.game-buttons button{min-height:38px;border-radius:9px;font-size:11px;padding:8px 15px;background:#fffdf4;border:1px solid #dce0cc;box-shadow:0 2px 0 #e2e5d5}.game-buttons #open-upgrades{background:#5d7b60;color:#fff;border-color:#5d7b60}.status-line{padding:8px 16px 12px;background:#f7f7ec;min-height:38px;border-top:1px solid #e8ebdb}.status-line p{font-size:11px;color:#7d8a71}.status-line .robot-dot{font-size:18px;color:#93ab8b}
#chat-form{background:#eeefe4;border:1px solid #e2e5d6;border-radius:12px;padding:6px 8px;margin:18px 0 20px;gap:8px}#chat-form label{color:#86927b;font-size:11px;padding-left:5px}#chat-input{border:0;background:transparent;padding:9px;font-size:12px;color:#52694b;outline-offset:0}#chat-input::placeholder{color:#9ba38e}#chat-form button{border:0;background:#dde6d4;min-height:34px;color:#57734e;font-size:11px;padding:7px 14px;border-radius:8px}.order-section{margin-top:18px}.order{border-top-width:3px;background:#fffdf5;box-shadow:0 2px 0 #eeeadd}.order strong{font-weight:400;font-size:16px}.order small{font-size:10px;color:#93a083}.order p{color:#6c7d60;line-height:1.5}.game-panel{background:#faf8ee;padding:22px}.game-panel>button{background:transparent;border:0;padding:0;color:#81906f;font-size:12px}.game-panel h2{font-family:Georgia,serif;font-size:23px;font-weight:400}.game-panel .upgrade{background:#edf0e2;border-color:#dfe5cf;padding:18px}.game-panel .upgrade button{background:#5d7b60;border:0;color:#fff}.game-panel .upgrade button:disabled{background:#dfe5d4;color:#97a087}.game-panel label{font-size:12px;color:#738365}.game-panel input{background:#fffdf5;border-color:#dae0cd}.game-panel #color-presets button{border-radius:20px;font-size:11px}.game-panel #robot-form>button{background:#5d7b60;color:white;min-width:130px;border:0}
@media(max-width:600px){main{padding:18px 12px}header{margin-bottom:18px}.eyebrow{font-size:7px;letter-spacing:1.2px}h1{font-size:33px}.wallet{padding:8px 12px}.wallet strong{font-size:22px}.control-bar{padding:8px 10px 3px;gap:5px}.control-bar button,.control-bar select{font-size:10px;padding:5px 8px;min-height:34px}.control-bar #profile-label{flex:1;order:0;font-size:8px;text-align:right}.control-bar #switch-profile{font-size:9px;min-width:40px}.garden-title{padding:3px 10px 8px}.queue-section h2{font-size:10px}#queue-count{font-size:9px}.world-target{min-width:44px;min-height:44px}.world-target span{font-size:8px;padding:3px 5px;max-width:100px}.pocket-bar{padding:8px 10px 2px;font-size:10px}.pocket-bar #stats{font-size:8px}.game-buttons{padding:6px 10px 8px}.status-line{padding:8px 10px;min-height:38px}.status-line p{font-size:10px}.game-panel{padding:14px}.game-panel .upgrade{padding:12px}.game-panel .upgrade h3{font-size:16px}.order strong{font-size:14px}#chat-form{margin:14px 0}.order-section .section-heading h2{font-size:12px}}

#music-toggle{margin-right:auto;background:#eef2e6;color:#4f6c54;border-color:#d4ddca}#music-toggle[aria-pressed=true]{background:#e5e5dc;color:#777}#wheelbarrow-status{border:0;background:transparent;color:#6d8062;padding:0;text-decoration:underline;font-size:inherit}.game-buttons{align-items:center}.game-buttons button{white-space:nowrap}

/* The browser viewport is the game window. */
html,body{width:100%;height:100%;overflow:hidden;background:#dce5ca}body{overscroll-behavior:none}main{width:100%;height:100svh;max-width:none;margin:0;padding:0}.garden-frame{position:relative;width:100%;height:100%;max-width:none;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;background:#eef0e2}.game-hud{display:flex;align-items:center;gap:12px;min-height:50px;padding:7px 14px;background:#f7f7ec;border-bottom:1px solid #dfe4d4}.game-brand{display:flex;align-items:center;gap:7px;font-family:Georgia,serif;font-size:20px;color:#415f4b}.brand-flower{color:#d38c70}.game-hud #profile-label{margin-left:auto;color:#7d8a71;font-size:10px}.game-hud #fullscreen{width:38px;height:38px;border:1px solid #dce0cc;border-radius:9px;background:#fffdf4;color:#58705b;font-size:20px}.game-hud .wallet{display:flex;align-items:center;gap:4px;min-width:auto;padding:5px 10px;border-radius:10px}.game-hud .wallet strong{font-size:18px}.game-hud .coin{font-size:17px}#stage-slot{flex:1;min-height:180px;display:block;overflow:hidden;background:#bacb96}#garden{position:relative;width:100%;height:100%;min-height:0;aspect-ratio:auto;overflow:hidden}.garden-title{flex:0 0 auto}.pocket-bar,.game-buttons,.status-line,#chat-form{flex:0 0 auto}#chat-form{margin:0;border-radius:0;border-width:1px 0 0;padding:5px 10px;padding-bottom:max(5px,env(safe-area-inset-bottom))}.game-panel{position:fixed;inset:0;z-index:30;padding:18px max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#faf8ee;overflow:auto}.game-panel .upgrades{max-width:900px;margin:auto}#robot-form{width:min(680px,100%);margin:auto}#robot-preview{width:180px;height:180px;margin:0 auto 14px;border:1px solid #cfd9bf;border-radius:14px;image-rendering:pixelated}.shape-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.shape-choice{padding:8px 4px!important;min-height:40px!important;font-size:10px}.shape-choice[aria-pressed=true]{background:#5d7b60!important;color:#fff!important;border-color:#5d7b60!important}.control-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #dce2cf;border-radius:12px;padding:12px}.control-settings legend{font-size:12px;color:#738365}.control-settings label{margin:0}.control-settings select{width:100%;min-height:42px;border:1px solid #d4ddca;border-radius:8px;background:#fffdf4;padding:8px}.control-settings #controller-status{grid-column:1/-1;background:transparent;padding:5px 0}#touch-controls{position:absolute;z-index:8;left:max(10px,env(safe-area-inset-left));bottom:10px;width:150px;height:132px;pointer-events:none}#touch-controls[hidden]{display:none}#touch-controls button{position:absolute;width:46px;height:46px;border:1px solid #496552;background:#fffdebd9;color:#405b48;border-radius:50%;font-weight:700;pointer-events:auto;box-shadow:0 2px 0 #526c4c55;touch-action:none}#touch-controls [data-dir=up]{left:39px;top:0}#touch-controls [data-dir=left]{left:0;top:43px}#touch-controls [data-dir=right]{left:78px;top:43px}#touch-controls [data-dir=down]{left:39px;top:86px}#touch-controls [data-action=interact]{right:0;top:43px;background:#dce8b9}.game-fullscreen main,.garden-frame:fullscreen{height:100dvh;width:100vw}.garden-frame:fullscreen{background:#eef0e2}
@media(max-width:600px){.game-hud{min-height:44px;padding:5px 8px}.game-brand{font-size:16px}.game-hud #profile-label{display:none}.game-hud #fullscreen{width:34px;height:34px}.game-hud .wallet{padding:4px 8px}.garden-title{padding:2px 8px 5px}.queue-section .section-heading{min-height:22px}#queue{min-height:25px}.pocket-bar{min-height:28px;padding:4px 8px;font-size:8px;overflow-x:auto}.game-buttons{padding:5px 7px;gap:5px}.game-buttons button{min-height:34px;padding:6px 8px;font-size:9px}.status-line{min-height:28px;padding:4px 8px}.status-line .robot-dot{display:none}#chat-form{padding:3px 6px;padding-bottom:max(3px,env(safe-area-inset-bottom))}#chat-input{padding:7px;font-size:11px}#chat-form button{min-height:32px;padding:5px 10px}.shape-options{gap:4px}.shape-choice{font-size:8px!important;padding:5px 2px!important}.control-settings{grid-template-columns:1fr}}

/* All HUD chrome floats inside the game instead of taking space away from it. */
.garden-frame{isolation:isolate;display:block}.garden-frame #stage-slot{position:absolute;inset:0;z-index:0;min-height:0}.game-hud,.garden-title,.pocket-bar,.game-buttons,.status-line,#chat-form{position:absolute;z-index:12;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 3px 14px #304a3d20}.game-hud{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));min-height:46px;border:1px solid #dce2d0;border-radius:14px;background:#f8f8eddf}.garden-title{top:62px;left:max(8px,env(safe-area-inset-left));width:min(680px,calc(100% - 16px));padding:5px 10px 8px;border:1px solid #dce2d0;border-radius:12px;background:#eef1e3d9}.pocket-bar{left:max(8px,env(safe-area-inset-left));bottom:62px;max-width:calc(50% - 12px);padding:8px 11px;border:1px solid #e0e4d5;border-radius:12px;background:#faf9efdc}.game-buttons{right:max(8px,env(safe-area-inset-right));bottom:62px;width:auto;padding:6px;border:1px solid #e0e4d5;border-radius:12px;background:#faf9efdc}.status-line{left:max(8px,env(safe-area-inset-left));bottom:112px;max-width:min(620px,calc(100% - 16px));min-height:34px;padding:6px 10px;border:1px solid #e0e4d5;border-radius:12px;background:#faf9efdc}.status-line p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#chat-form{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));width:auto;margin:0;padding:5px 7px;border:1px solid #dfe4d4;border-radius:12px;background:#f4f5eadf}.game-buttons #music-toggle{margin-right:8px}
@media(max-width:600px){.game-hud{top:max(4px,env(safe-area-inset-top));left:4px;right:4px;min-height:40px}.garden-title{top:49px;left:4px;width:calc(100% - 8px);padding:3px 7px 5px}.status-line{left:4px;bottom:132px;max-width:calc(100% - 8px);min-height:28px}.pocket-bar{left:4px;bottom:94px;max-width:calc(100% - 8px);padding:4px 7px}.game-buttons{left:4px;right:4px;bottom:52px;justify-content:space-between;padding:4px}.game-buttons #music-toggle{margin-right:auto}#chat-form{left:4px;right:4px;bottom:max(4px,env(safe-area-inset-bottom));padding:3px 5px}.world-target span{max-width:86px;overflow:hidden;text-overflow:ellipsis}}

/* Compact lower HUD after removing chat. */
.game-buttons{bottom:max(8px,env(safe-area-inset-bottom))}.pocket-bar{bottom:max(8px,env(safe-area-inset-bottom))}.status-line{bottom:58px}
@media(max-width:600px){.game-buttons{bottom:max(4px,env(safe-area-inset-bottom))}.pocket-bar{bottom:46px}.status-line{bottom:82px}}

/* The queue behaves like a compact command feed: newest above, active oldest below. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.garden-title{top:auto;right:auto;bottom:58px;left:max(8px,env(safe-area-inset-left));width:min(300px,calc(100% - 16px));max-height:290px;padding:8px;border-radius:14px;background:#eef1e3df}.queue-section .section-heading{min-height:24px;margin:0 0 4px}.queue-section h2{font-size:10px}#queue{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-end;align-items:stretch;gap:4px;max-height:235px;min-height:0;overflow:hidden}#queue .task{display:block;flex:0 0 auto;padding:6px 8px;border-radius:9px;background:#f9f8eddd;box-shadow:0 2px 5px #304a3d18;animation:command-in .18s ease-out}#queue .task.active{background:#5f7e63;color:#fff}@keyframes command-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(max-width:600px){.garden-title{top:auto;bottom:82px;left:4px;width:min(220px,calc(100% - 8px));max-height:230px;padding:6px}#queue{max-height:180px}.queue-section h2{font-size:9px}#queue .task{font-size:9px;padding:5px 7px}}

/* Slim command feed. */
.garden-title{width:min(210px,calc(100% - 16px));padding:5px 6px;border-radius:10px}.queue-section .section-heading{min-height:18px;margin-bottom:2px}.queue-section h2,#queue-count,.text-button{font-size:8px}.text-button{min-height:18px;padding:0 2px}#queue{gap:2px;max-height:180px;font-size:9px}#queue .task{padding:3px 6px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.garden-title{width:min(165px,calc(100% - 8px));padding:4px 5px}.queue-section .section-heading{min-height:16px}#queue{max-height:145px;font-size:8px}#queue .task{font-size:8px;padding:3px 5px}}

/* Keep full-screen menus clear of the floating HUD and phone safe areas. */
.game-panel{z-index:50;padding-top:max(84px,calc(env(safe-area-inset-top) + 56px));padding-bottom:max(160px,calc(env(safe-area-inset-bottom) + 130px));scroll-padding-top:84px;scroll-padding-bottom:160px}.game-panel form{padding-bottom:36px}
@media(max-width:600px){.game-panel{padding-top:max(72px,calc(env(safe-area-inset-top) + 52px));padding-bottom:max(190px,calc(env(safe-area-inset-bottom) + 160px));scroll-padding-bottom:190px}}
.game-panel > .back-to-garden{display:block;width:min(100%,680px);min-height:54px;margin:28px auto 12px;padding:15px 24px;border:2px solid #754033;border-radius:14px;background:#a44f3d;color:#fffaf0;font-size:16px;font-weight:750;text-align:center;box-shadow:0 4px 0 #753c2f;transition:background .15s,transform .15s}
.game-panel > .back-to-garden:hover{background:#8c4031}
.game-panel > .back-to-garden:active{transform:translateY(2px);box-shadow:0 2px 0 #753c2f}
.game-panel > .back-to-garden:focus-visible{outline:3px solid #315b43;outline-offset:4px}
#drop-hand[hidden],#drop-hand2[hidden]{display:none!important}
/* One flow layout lets inventory grow without covering the queue or controls. */
.bottom-hud{position:absolute;z-index:12;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;pointer-events:none}
.bottom-hud>.garden-title,.bottom-hud>.pocket-bar,.bottom-hud>.game-buttons{position:static;inset:auto;pointer-events:auto;min-width:0;margin:0}
.bottom-hud>.garden-title{grid-column:1/-1;width:min(210px,100%);max-height:180px}
.bottom-hud>.pocket-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%;width:fit-content;overflow:visible;white-space:normal}
.bottom-hud>.game-buttons{display:flex;flex-wrap:wrap;gap:6px;width:auto;max-width:100%}
.bottom-hud .pocket-bar button{min-height:36px;padding:6px 10px}
.bottom-hud #stats{flex-basis:100%;margin:0}
@media(max-width:700px){.bottom-hud{grid-template-columns:minmax(0,1fr);gap:6px;left:max(4px,env(safe-area-inset-left));right:max(4px,env(safe-area-inset-right));bottom:max(4px,env(safe-area-inset-bottom))}.bottom-hud>.garden-title{width:min(165px,100%)}.bottom-hud>.pocket-bar,.bottom-hud>.game-buttons{width:100%;max-width:100%}.bottom-hud>.game-buttons{justify-content:space-between}.bottom-hud #queue{max-height:min(145px,20svh)}}
.controller-hints{grid-column:1/-1;padding:9px 12px;border:1px solid #b7c9a8;border-radius:10px;background:#304f42ed;color:#fff6d9;font-size:12px;line-height:1.7;white-space:pre-wrap;pointer-events:none}
.controller-hints[hidden],.menu-controller-hints[hidden]{display:none!important}
.menu-controller-hints{position:sticky;top:0;z-index:2;padding:10px 12px;border-radius:9px;background:#304f42;color:#fff6d9!important;font-size:12px!important;line-height:1.6;box-shadow:0 2px 7px #243c3233}
.using-controller .controller-selected{outline:4px solid #ce8b32!important;outline-offset:3px;box-shadow:0 0 0 7px #fff6d9!important}
.using-controller .controller-near{outline:3px solid #d6a443;background:#fff4c9;box-shadow:0 0 0 4px #ffffff77}
.using-controller .controller-hand{background:#f6dfaa;border-radius:5px;padding:4px 6px;outline:2px solid #bd8735}
@media(max-width:700px){.controller-hints{font-size:10px;padding:6px 8px}}
#wheelbarrow-status[hidden]{display:none!important}
/* Compact upgrade rows retain generous touch targets. */
#upgrades{grid-template-columns:1fr;gap:6px}
.game-panel .upgrades{max-width:680px}
.game-panel .upgrade{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 12px;border-radius:10px}
.upgrade-icon{font-size:25px;text-align:center}
.game-panel .upgrade h3{font-family:inherit;font-weight:600;margin:0;font-size:14px}
.game-panel .upgrade p{min-height:0;margin:3px 0 0;font-size:11px;line-height:1.4}
.game-panel .upgrade button{width:auto;min-width:86px;min-height:44px;padding:8px;font-size:11px}
#tutorial-guide{position:absolute;z-index:20;top:max(66px,calc(env(safe-area-inset-top) + 60px));left:50%;transform:translateX(-50%);width:min(400px,calc(100% - 24px));padding:14px 18px;border:2px solid #cfab65;border-radius:16px;background:#fffbedf5;box-shadow:0 6px 24px #304a3d33;color:#304a3d}
#tutorial-guide[hidden]{display:none}
#tutorial-progress{font-size:10px;letter-spacing:1px;color:#7d7152}
#tutorial-title{font:22px Georgia,serif;margin:6px 0}
#tutorial-copy{font-size:12px;line-height:1.5;margin:6px 0 12px}
#tutorial-action{width:100%;min-height:44px;border:0;border-radius:9px;background:#4b7356;color:white;font-weight:600;padding:10px}
#tutorial-action:disabled{background:#7e9176;cursor:wait}
.learning .world-target span{background:#fff2b7;outline:3px solid #c99935}
.learning .garden-title,.learning .pocket-bar,.learning #open-upgrades,.learning #open-customise{display:none!important}
.learning .bottom-hud{display:flex;justify-content:flex-end}
.garden-frame:has(.game-panel:not([hidden])) .bottom-hud{visibility:hidden}
#garden-reward{position:absolute;z-index:25;top:max(72px,calc(env(safe-area-inset-top) + 64px));left:50%;transform:translateX(-50%);width:min(430px,calc(100% - 24px));padding:16px 20px;border:2px solid #d3ac53;border-radius:14px;background:#fff5ce;color:#38533b;font-size:15px;font-weight:650;text-align:center;box-shadow:0 5px 22px #304a3d30;pointer-events:none}
#garden-reward[hidden]{display:none}
#controls-guide{width:min(480px,calc(100vw - 24px));max-height:calc(100svh - 32px);overflow:auto;overscroll-behavior:contain;border:2px solid #bac9a6;border-radius:18px;padding:22px;background:#fffbed;color:#304a3d;box-shadow:0 12px 50px #243c3244}
#controls-guide::backdrop{background:#253e3577}
#controls-guide>small{font-size:10px;letter-spacing:1.5px;color:#7a8568}
#controls-guide h2{font:26px Georgia,serif;margin:8px 0 18px}
.controls-lessons{list-style:none;padding:0;margin:0;display:grid;gap:15px}
.controls-lessons li{display:grid;grid-template-columns:30px 1fr;gap:10px}
.controls-lessons li>span{font-size:24px;text-align:center;color:#64866b}
.controls-lessons strong{font-size:14px}
.controls-lessons p,.controls-first-flower{font-size:12px;line-height:1.5;margin:4px 0 0;color:#61745c}
.controls-first-flower{padding:12px;background:#edf0df;border-radius:9px;margin:18px 0 12px}
#controls-guide-done{width:100%;min-height:48px;padding:12px;border:0;border-radius:10px;background:#4b7356;color:#fff;font-weight:650}
.game-hud,.bottom-hud,#targets{transition:opacity .15s ease}
.ui-idle .game-hud,.ui-idle .bottom-hud,.ui-idle #targets{opacity:0;transition-duration:.8s}
#edit-mode[hidden]{display:none!important}
#edit-mode[aria-pressed=true]{background:#a44f3d;color:white;border-color:#754033}
.editing #targets{outline:3px dashed #c99935;outline-offset:-5px}
#queue .task{position:relative;text-align:left;border:0;font:inherit;isolation:isolate;min-height:24px}
#queue button.task{padding-right:19px;cursor:pointer}
#queue button.task::after{content:'×';position:absolute;right:5px;top:3px;opacity:.65}
.task-progress{position:absolute;inset:auto auto 0 0;height:4px;z-index:0;background:#f5d67a;pointer-events:none;transition:width .1s linear}
#queue .task.active{padding-bottom:8px}
.task-progress[hidden]{display:none}
.upgrade-group{margin:20px 0 6px!important;padding-top:14px;border-top:1px solid #dce2cf;font-size:19px!important}
.game-panel>.back-to-garden{margin:0 auto 18px;min-height:44px;padding:10px 20px}
#sell-bed-confirm,#barrow-options,#store-options{width:min(460px,calc(100vw - 24px));max-height:80svh;overflow:auto;border:1px solid #b5c7a6;border-radius:16px;padding:20px;background:#fffbed;color:#304a3d}
#sell-bed-confirm p{font-size:14px;line-height:1.5}
#sell-bed-confirm button,#barrow-options button,#store-options button{margin:8px 0 0;width:100%}
.game-hud .wallet{margin-left:auto}
@media(max-width:600px) and (orientation:portrait){#tutorial-guide{max-height:calc(50svh - 130px);overflow:auto;padding:10px 12px}#tutorial-title{font-size:18px;margin:4px 0}#tutorial-copy{margin:4px 0 8px;font-size:11px}#tutorial-action{min-height:40px;padding:8px}}
@media(max-height:500px){#tutorial-guide{left:auto;right:12px;transform:none;width:280px;padding:10px}#tutorial-title{font-size:18px}}
