:root{color-scheme:light;--f3-green:#153b27;--f3-green2:#245a38;--f3-emerald:#0b2c1b;--f3-gold:#e2bd61;--f3-gold-hi:#fff0ad;--f3-ivory:#fff7df;--f3-cream:#f3e2b3;--f3-ink:#263329;--f3-muted:#718071;--f3-shadow:0 12px 32px #102b1b50;--f3-bevel:inset 0 1px 0 #fff9d8,inset 0 -3px 0 #a27d36,0 3px 0 #735623}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#173d27;font-family:Kanit,'Noto Sans Thai',sans-serif;color:var(--f3-ink)}button,a{font:inherit}button{cursor:pointer}.farm3d-app{position:relative;width:100%;height:100dvh;min-height:520px;overflow:hidden;isolation:isolate;background:linear-gradient(#b9d7d5,#d8e5bd 52%,#72965a)}.farm3d-scene{position:absolute;inset:0;z-index:0;touch-action:none;outline:none}.farm3d-scene canvas{display:block;width:100%;height:100%}
.f3-topbar{position:absolute;z-index:3;top:max(14px,env(safe-area-inset-top));left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}.f3-topbar>*{pointer-events:auto}.f3-brand{display:flex;align-items:center;gap:10px;min-width:235px;padding:6px 17px 6px 7px;border:2px solid var(--f3-gold);border-radius:18px;background:linear-gradient(155deg,#2c663f,#0c301d 72%);box-shadow:var(--f3-bevel),0 7px 24px #142c1d70;color:#fff4cb;text-decoration:none;text-shadow:0 2px 4px #082213}.f3-brand img{width:48px;height:48px;flex:none;object-fit:cover;border:2px solid var(--f3-gold);border-radius:13px;box-shadow:0 2px 8px #081a10}.f3-brand span{display:grid;line-height:1.1}.f3-brand b{font-family:Kanit,sans-serif;font-size:18px;font-weight:700}.f3-brand small{margin-top:3px;color:#f6e7bb;font-size:10px;white-space:nowrap}.f3-stats{display:flex;justify-content:center;gap:8px;min-width:0}.f3-stats>span{display:grid;min-width:75px;padding:7px 13px;border:1.5px solid #bb994e;border-radius:13px;background:linear-gradient(145deg,#224c32,#102d1c);box-shadow:inset 0 1px 0 #8fb07870,0 4px 12px #102b1b55;line-height:1.12}.f3-stats small{color:#e5d7aa;font-size:10px}.f3-stats b{color:#fff4d1;font-size:15px;font-weight:600}.f3-stats>span:nth-child(3) b{color:#f4d67c}.f3-top-actions{display:flex;gap:8px}.f3-icon-button{display:grid;place-items:center;width:43px;height:43px;border:1.5px solid var(--f3-gold);border-radius:13px;background:linear-gradient(145deg,#275c3a,#0d301d);box-shadow:var(--f3-bevel),0 4px 12px #102b1b50;color:var(--f3-gold-hi);text-decoration:none}.f3-icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.f3-icon-button:hover,.f3-world-actions button:hover{filter:brightness(1.12)}
.f3-location-label{position:absolute;z-index:2;top:91px;left:18px;display:flex;align-items:center;gap:9px;padding:8px 13px;border:1px solid #f9ecc9;border-radius:13px;background:#fff8e9ed;box-shadow:var(--f3-shadow);pointer-events:none}.f3-location-label div{display:grid;line-height:1.15}.f3-location-label b{color:var(--f3-green);font-size:13px}.f3-location-label small{color:var(--f3-muted);font-size:10px}.f3-live-dot{width:9px;height:9px;border-radius:50%;background:#57a960;box-shadow:0 0 0 4px #57a96027}.f3-crop-picker{position:absolute;z-index:3;top:91px;left:50%;display:flex;gap:4px;padding:4px;border:1.5px solid var(--f3-gold);border-radius:13px;background:linear-gradient(145deg,#fff9e9,#e8dbb6);box-shadow:var(--f3-bevel),0 4px 15px #102b1b30;transform:translateX(-50%)}.f3-crop-picker button{min-height:37px;padding:4px 13px;border:1px solid transparent;border-radius:9px;background:transparent;color:#52604d;font-size:11px}.f3-crop-picker button[aria-pressed="true"]{border-color:#f1d982;background:linear-gradient(145deg,#2b6942,#103721);box-shadow:inset 0 1px 0 #a7c890;color:#fff5d2}
.f3-inspector{position:absolute;z-index:3;top:145px;right:18px;width:min(300px,28vw);overflow:hidden;border:2px solid #f3e2b3;border-radius:20px;background:linear-gradient(150deg,#fff9e9,#f0e1bd);box-shadow:inset 0 1px 0 #fff,0 8px 25px #18321d40;transition:width .2s,transform .2s}.f3-inspector header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 15px 9px}.f3-inspector header span{display:grid;line-height:1.2}.f3-inspector header small{color:#887443;font-size:10px}.f3-inspector header b{color:var(--f3-green);font-size:15px}.f3-inspector header button,.f3-dialog header button{display:grid;place-items:center;flex:none;width:31px;height:31px;border:1px solid #c7ac68;border-radius:9px;background:linear-gradient(#fff7dc,#e2cf9d);color:var(--f3-green);font-size:18px}.f3-inspector-body{padding:0 15px 14px}.f3-inspector p{margin:0 0 10px;color:#4c5e4e;font-size:12px;line-height:1.5}.f3-growth{display:flex;align-items:center;gap:8px}.f3-growth i{height:8px;flex:1;overflow:hidden;border:1px solid #bcaa7b;border-radius:9px;background:#dfd5b9}.f3-growth i b{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#62a756,#e4be5b);transition:width .3s}.f3-growth strong{color:var(--f3-green);font-size:11px}.f3-meters{display:flex;justify-content:space-between;gap:5px;margin-top:11px}.f3-meters span{display:grid;color:#687462;font-size:10px}.f3-meters b{color:var(--f3-ink);font-size:13px}.f3-product-note{display:block;margin-top:9px;color:#78816f;font-size:9px}.f3-inspector.collapsed{width:min(300px,28vw)}.f3-inspector.collapsed .f3-inspector-body{display:none}.f3-inspector.collapsed header{padding-bottom:13px}.f3-inspector>.f3-next-step{margin:0 12px 12px}.f3-inspector.collapsed{width:min(300px,28vw)}
.f3-tools{position:absolute;z-index:3;bottom:max(18px,env(safe-area-inset-bottom));left:50%;display:grid;width:min(1020px,calc(100% - 250px));grid-template-columns:repeat(8,minmax(0,1fr));gap:9px;padding:7px;border:2px solid var(--f3-gold);border-radius:19px;background:linear-gradient(145deg,#fff8dfed,#dec98fe8);box-shadow:inset 0 1px 0 #fff,0 10px 28px #102b1b55;transform:translateX(-50%)}.f3-tools button{position:relative;display:flex;min-width:0;height:83px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px;border:1.5px solid #c2a154;border-radius:13px;background:linear-gradient(180deg,#fff9e6,#eee0b8);box-shadow:inset 0 1px 0 #fff9dd,0 2px 0 #a38445;color:var(--f3-green);font-size:12px;font-weight:500;transition:transform .12s,filter .12s}.f3-tools button::before{position:absolute;top:5px;right:5px;left:5px;height:48px;border:1px solid #598060;border-radius:9px;background:linear-gradient(145deg,#27613c,#0c301c);box-shadow:inset 0 1px 0 #9ab57c55;content:""}.f3-tools button svg{position:relative;z-index:1;width:38px;height:38px;fill:none;stroke:#f8eabf;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #07190e)}.f3-tools button span{position:relative;z-index:1;margin-top:auto;line-height:1.1;white-space:nowrap}.f3-tools button.active{border-color:#f3d576;background:linear-gradient(#f7e4a9,#debd69);box-shadow:inset 0 1px 0 #fff9d5,0 0 0 2px #315d3b,0 3px 0 #735623;color:#163c27}.f3-tools button.active::before{background:linear-gradient(145deg,#347047,#102f1d)}.f3-tools button:hover{transform:translateY(-2px);filter:brightness(1.05)}.f3-tools button:focus-visible,.f3-world-actions button:focus-visible,.f3-icon-button:focus-visible,.f3-mentor-prompt button:focus-visible{outline:3px solid #f3cf68;outline-offset:3px}
.f3-world-actions{position:absolute;z-index:3;top:177px;left:17px;display:flex;width:80px;flex-direction:column;gap:8px}.f3-world-actions button{display:flex;min-height:61px;flex:0 0 65px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 4px;border:1.5px solid var(--f3-gold);border-radius:14px;background:linear-gradient(145deg,#28613d,#0b2f1c);box-shadow:var(--f3-bevel),0 4px 12px #102b1b50;color:#fff1bf;font-size:10px}.f3-world-actions svg{width:25px;height:25px;fill:none;stroke:var(--f3-gold-hi);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.f3-world-actions span{line-height:1.1}.f3-move-hint{position:absolute;z-index:2;right:18px;bottom:116px;padding:7px 11px;border:1px solid #d1b864;border-radius:10px;background:#12351fe8;color:#fff6db;font-size:10px;pointer-events:none}.f3-move-hint span{margin-left:8px;color:#ead18e}.f3-joystick{position:absolute;z-index:2;bottom:150px;left:22px;display:none;width:106px;height:106px;border:1px solid #ffffffa0;border-radius:50%;background:#16392396;touch-action:none}.f3-joystick:before{position:absolute;inset:14px;border:1px solid #ffffff82;border-radius:50%;content:""}.f3-joystick span{position:absolute;top:50%;left:50%;width:42px;height:42px;margin:-21px;border:2px solid #fff1bf;border-radius:50%;background:#346342d9;box-shadow:0 4px 12px #102b1b80}
.f3-mentor-prompt{position:absolute;z-index:4;bottom:120px;left:50%;display:grid;min-width:215px;justify-items:center;gap:4px;padding:8px 12px;border:1.5px solid var(--f3-gold);border-radius:13px;background:linear-gradient(#fff9e9,#eadbb5);box-shadow:var(--f3-shadow);color:var(--f3-green);font-size:11px;text-align:center;pointer-events:none;transform:translateX(-50%)}.f3-mentor-prompt button{display:flex;align-items:center;gap:7px;padding:6px 11px;border:1px solid var(--f3-gold);border-radius:9px;background:linear-gradient(145deg,#28613d,#0c301c);color:#fff4d2;font-size:12px;pointer-events:auto}.f3-mentor-prompt kbd{min-width:22px;padding:1px 5px;border:1px solid #ffffff75;border-radius:5px;background:#ffffff1c;color:#f4dc9a;font:600 11px Kanit,sans-serif}.f3-toast{position:absolute;z-index:8;bottom:88px;left:50%;display:flex;max-width:min(420px,86vw);align-items:center;gap:8px;padding:11px 16px;border:1px solid #f3e2b3;border-radius:14px;background:#fff8eaf2;box-shadow:var(--f3-shadow);color:var(--f3-green);font-size:13px;text-align:center;pointer-events:none;transform:translateX(-50%)}.f3-toast button{flex:none;border:0;border-radius:8px;padding:1px 7px;background:#e9eee2;color:var(--f3-green);font-size:16px;pointer-events:auto}.f3-recovery{position:absolute;z-index:8;top:143px;left:50%;display:flex;max-width:min(650px,90vw);align-items:center;gap:12px;padding:10px 13px;border:1px solid #eed28f;border-radius:13px;background:#fff5d9;color:#604512;box-shadow:var(--f3-shadow);font-size:11px;transform:translateX(-50%)}.f3-recovery button{flex:none;border:0;border-radius:8px;padding:5px 9px;background:#e9d69f;color:#604512}.f3-disclaimer{position:absolute;z-index:2;right:14px;bottom:7px;margin:0;color:#fff8dd;text-shadow:0 1px 6px #1f3b1d;font-size:9px;pointer-events:none}.f3-joystick,.f3-mentor-prompt,.f3-toast,.f3-recovery{transition:opacity .16s}
.f3-dialog{position:absolute;z-index:7;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:#10261885;backdrop-filter:blur(4px)}.f3-dialog[aria-hidden="false"]{display:flex}.f3-dialog-card{width:min(600px,94vw);max-height:min(82dvh,720px);overflow:auto;padding:20px;border:2px solid #e1bd61;border-radius:20px;background:linear-gradient(145deg,#fff9e8,#eee0bb);box-shadow:inset 0 1px 0 #fff,0 24px 70px #10261870}.f3-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:12px;border-bottom:1px solid #d9c997}.f3-dialog header span{display:grid}.f3-dialog header small{color:#9c7934;font-size:10px}.f3-dialog h2{margin:1px 0 0;color:var(--f3-green);font-family:Kanit,sans-serif;font-size:21px}.f3-dialog-content{padding-top:15px;font-size:13px;line-height:1.6}.f3-dialog-content p{margin:0 0 12px}.f3-card-list{display:grid;gap:9px}.f3-card-row{display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:12px;padding:10px;border:1px solid #e0d5b7;border-radius:13px;background:#fffdf6}.f3-card-row img{width:54px;height:64px;object-fit:contain}.f3-card-row b{display:block;color:var(--f3-green)}.f3-card-row small{display:block;color:var(--f3-muted);font-size:10px}.f3-card-row button,.f3-primary,.f3-secondary{border:0;border-radius:10px;padding:8px 12px;background:linear-gradient(145deg,#2c6741,#123720);color:white;font-size:11px}.f3-card-row button:disabled{opacity:.45}.f3-secondary{border:1px solid #cfb669;background:#e9eee2;color:var(--f3-green)}.f3-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.f3-product-card{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:9px;padding:9px;border:1px solid #e0d5b7;border-radius:12px;background:#fffdf6;text-align:left;color:var(--f3-ink)}.f3-product-card img{width:46px;height:58px;grid-row:span 2;object-fit:contain}.f3-product-card b{align-self:end;color:var(--f3-green);font-size:12px}.f3-product-card small{align-self:start;color:var(--f3-muted);font-size:10px}.f3-form-row{display:flex;align-items:center;gap:8px;margin:12px 0}.f3-form-row input,.f3-form-row select{min-width:0;padding:9px;border:1px solid #d9cfb0;border-radius:10px;background:#fffdf6;font:inherit}.f3-setting-row{display:flex;align-items:center;gap:8px;margin:9px 0}.f3-load-error{position:absolute;top:50%;left:50%;width:min(360px,85vw);padding:25px;border:2px solid var(--f3-gold);border-radius:20px;background:var(--f3-ivory);color:var(--f3-green);text-align:center;box-shadow:var(--f3-shadow);transform:translate(-50%,-50%)}.f3-load-error strong{font-size:18px}.f3-load-error a{display:inline-block;padding:8px 14px;border-radius:10px;background:var(--f3-green);color:white;text-decoration:none}.f3-next-step{margin-top:10px;padding:8px 10px;border:1px solid #dce4d6;border-radius:12px;background:#f5f7ef}.f3-next-step summary{display:grid;gap:2px;cursor:pointer;list-style-position:inside;color:var(--f3-green)}.f3-next-step summary span{color:var(--f3-muted);font-size:9px}.f3-next-step summary b{font-size:12px;line-height:1.35}.f3-next-step summary:focus-visible,.f3-guide-category>summary:focus-visible{outline:3px solid #d6aa52;outline-offset:3px;border-radius:4px}.f3-next-step p{margin:7px 0 0;color:#465648;font-size:10px;line-height:1.45}.f3-guide-category{overflow:hidden;margin:8px 0;border:1px solid #e2e7dc;border-radius:13px;background:#fff}.f3-guide-category>summary{padding:11px 13px;color:var(--f3-green);font-weight:600;cursor:pointer}.f3-guide-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:7px;padding:0 8px 9px}.f3-guide-product{display:flex;min-width:0;align-items:center;gap:9px;padding:8px;border:1px solid #e6e9dd;border-radius:11px;background:#fffaf0}.f3-guide-product img{width:42px;height:52px;flex:none;object-fit:contain}.f3-guide-product div{min-width:0}.f3-guide-product b,.f3-guide-product small{display:block;overflow-wrap:anywhere}.f3-guide-product b{color:var(--f3-green)}.f3-guide-product small{color:var(--f3-muted);font-size:10px}.f3-mentor-next{margin-bottom:14px;padding:12px;border:1px solid #e0e6d8;border-radius:14px;background:#f4f7ee}.f3-mentor-next>small,.f3-mentor-next>b{display:block}.f3-mentor-next>small{color:var(--f3-muted);font-size:10px}.f3-mentor-next>b{margin-top:2px;color:var(--f3-green);font-size:15px}.f3-mentor-next p{margin:4px 0 9px}.f3-mentor-next div{display:flex;flex-wrap:wrap;gap:7px}
[hidden]{display:none!important}
@media(max-width:820px){
  .f3-topbar{top:max(8px,env(safe-area-inset-top));left:9px;right:9px;display:block;height:99px}
  .f3-brand{position:absolute;top:0;left:0;min-width:0;max-width:55%;gap:7px;padding:4px 9px 4px 5px;border-radius:14px}.f3-brand img{width:36px;height:36px;border-radius:10px}.f3-brand b{font-size:14px}.f3-brand small{font-size:8px}
  .f3-top-actions{position:absolute;top:1px;right:0;gap:5px}.f3-icon-button{width:36px;height:36px;border-radius:11px}.f3-icon-button svg{width:19px;height:19px}
  .f3-stats{position:absolute;top:47px;right:0;left:0;justify-content:space-between;gap:4px}.f3-stats>span{min-width:0;flex:1;padding:5px 7px;border-radius:9px}.f3-stats small{font-size:8px}.f3-stats b{font-size:12px}
  .f3-location-label{top:105px;left:9px;max-width:43vw;padding:6px 8px;border-radius:10px}.f3-location-label b{font-size:11px}.f3-location-label small{font-size:8px}.f3-live-dot{width:7px;height:7px}
  .f3-crop-picker{top:104px;right:8px;left:auto;gap:1px;padding:3px;border-radius:10px;transform:none}.f3-crop-picker button{min-height:33px;padding:3px 7px;font-size:9px}
  .f3-inspector,.f3-inspector.collapsed{top:151px;right:9px;bottom:auto;width:min(236px,59vw);border-radius:15px}.f3-inspector header{padding:9px 11px 6px}.f3-inspector header b{font-size:13px}.f3-inspector header small{font-size:9px}.f3-inspector header button{width:28px;height:28px}.f3-inspector-body{padding:0 11px 10px}.f3-inspector p{margin-bottom:6px;font-size:10px}.f3-inspector>.f3-next-step{margin:0 9px 9px}.f3-next-step{padding:7px 8px}.f3-next-step summary b{font-size:11px}.f3-next-step p{font-size:9px}
  .f3-world-actions{top:151px;right:auto;bottom:auto;left:8px;width:48px;gap:6px}.f3-world-actions button{min-height:48px;flex:0 0 48px;padding:4px;border-radius:11px}.f3-world-actions svg{width:23px;height:23px}.f3-world-actions span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .f3-tools{bottom:max(11px,env(safe-area-inset-bottom));left:50%;width:calc(100% - 16px);grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px;border-radius:15px}.f3-tools button{height:70px;gap:2px;padding:3px;border-radius:10px;font-size:11px}.f3-tools button::before{top:3px;right:3px;left:3px;height:42px;border-radius:7px}.f3-tools button svg{width:31px;height:31px;stroke-width:2.7}.f3-tools button span{max-width:100%;font-size:10px}
  .f3-joystick{bottom:180px;left:12px;display:block;width:88px;height:88px}.f3-joystick:before{inset:11px}.f3-joystick span{width:36px;height:36px;margin:-18px}
  .f3-mentor-prompt{right:10px;bottom:177px;left:auto;min-width:0;width:min(236px,61vw);padding:6px 8px;gap:3px;border-radius:11px;font-size:10px;transform:none}.f3-mentor-prompt button{padding:5px 9px;font-size:11px}
  .f3-toast{bottom:174px;max-width:55vw;padding:8px 10px;font-size:11px}.f3-recovery{top:200px;max-width:94vw;padding:7px 9px;font-size:9px}.f3-move-hint{display:none}.f3-disclaimer{display:none}.f3-dialog{padding:12px}.f3-dialog-card{max-height:84dvh;padding:15px;border-radius:17px}.f3-dialog h2{font-size:18px}
}
@media(max-width:440px){.f3-brand{max-width:58%}.f3-brand small{font-size:7.5px}.f3-top-actions{gap:4px}.f3-icon-button{width:33px;height:33px}.f3-stats>span:nth-child(4){display:none}.f3-stats>span:nth-child(2){min-width:72px}.f3-location-label{max-width:42vw}.f3-crop-picker button{padding-right:6px;padding-left:6px}.f3-world-actions{top:150px}.f3-tools{gap:4px}.f3-tools button{height:68px}.f3-joystick{bottom:177px}.f3-mentor-prompt{bottom:176px;width:min(225px,59vw)}}
@media(max-height:500px) and (orientation:landscape){
  .farm3d-app{min-height:0}.f3-topbar{top:5px;left:8px;right:8px;height:47px}.f3-brand{top:0;max-width:230px;padding:3px 8px 3px 4px}.f3-brand img{width:34px;height:34px}.f3-brand b{font-size:13px}.f3-brand small{font-size:8px}.f3-top-actions{top:1px;right:0}.f3-icon-button{width:32px;height:32px}.f3-stats{top:1px;right:140px;left:auto;gap:4px}.f3-stats>span{min-width:53px;padding:4px 7px}.f3-stats small{font-size:7px}.f3-stats b{font-size:11px}.f3-location-label{top:53px;left:8px;padding:4px 7px}.f3-crop-picker{top:52px;right:8px}.f3-crop-picker button{min-height:30px;padding:2px 7px}.f3-inspector,.f3-inspector.collapsed{top:94px;right:8px;width:225px}.f3-world-actions{top:94px;left:8px;display:grid;width:96px;grid-template-columns:repeat(2,44px);gap:4px}.f3-world-actions button{min-height:42px;flex:0 0 42px}.f3-world-actions svg{width:21px;height:21px}.f3-tools{right:8px;bottom:7px;left:98px;width:auto;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;transform:none}.f3-tools button{height:54px;padding:2px;border-radius:8px;font-size:9px}.f3-tools button::before{top:2px;right:2px;left:2px;height:32px;border-radius:6px}.f3-tools button svg{width:24px;height:24px;stroke-width:3}.f3-tools button span{font-size:9px}.f3-joystick{bottom:69px;left:9px;width:72px;height:72px}.f3-joystick:before{inset:9px}.f3-joystick span{width:30px;height:30px;margin:-15px}.f3-mentor-prompt{bottom:76px;left:50%;width:225px;min-width:0;padding:5px 8px;transform:translateX(-50%)}.f3-toast{bottom:70px;max-width:300px}.f3-recovery{top:92px}.f3-disclaimer{display:none}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
/* Thai labels keep room for tone marks at every target size. */
.f3-brand span,.f3-stats>span,.f3-location-label div,.f3-tools button span,.f3-world-actions span{line-height:1.55}
@media(max-height:500px) and (orientation:landscape){.f3-joystick{display:block}.f3-world-actions span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
@media(max-width:820px){.f3-toast{bottom:248px}}
/* Filled details give the tool symbols more weight at phone size. */
.f3-tools .icon-fill{stroke-width:1.7}.f3-tools .icon-gold{fill:#e9c566}.f3-tools .icon-cream{fill:#f5e7c4}.f3-tools .icon-leaf{fill:#7bbb58}.f3-tools .icon-fruit{fill:#ef9b39}
.f3-brand span,.f3-stats>span,.f3-location-label div,.f3-tools button span,.f3-world-actions span{line-height:1.55}
@media(max-width:820px) and (orientation:portrait){
  .f3-inspector,.f3-inspector.collapsed{top:auto;right:9px;bottom:180px}
  .f3-inspector.collapsed .f3-next-step{display:none}
  .f3-inspector:not(.collapsed){max-height:min(54dvh,calc(100dvh - 151px - 180px - 12px));overflow:auto}
  .f3-inspector:not(.collapsed) header{position:sticky;top:0;z-index:2;background:linear-gradient(150deg,#fff9e9,#f0e1bd)}
  .farm3d-app:has(.f3-mentor-prompt:not([hidden])) .f3-inspector{bottom:250px;max-height:min(48dvh,calc(100dvh - 250px - 180px - 12px))}
  .f3-mentor-prompt{bottom:177px}
}
@media(max-height:500px) and (orientation:landscape){
  .f3-crop-picker{right:8px;left:auto;width:max-content;transform:none}
  .f3-inspector,.f3-inspector.collapsed{max-height:calc(100dvh - 94px - 80px);overflow:auto}
  .f3-inspector header{position:sticky;top:0;z-index:2;background:linear-gradient(150deg,#fff9e9,#f0e1bd)}
}
/* Keep transient notices above the tool belt and away from interaction targets. */
.f3-toast{bottom:calc(max(18px,env(safe-area-inset-bottom)) + 112px)}
.farm3d-app:has(.f3-toast:not([hidden])) .f3-mentor-prompt{bottom:205px}
@media(max-width:820px) and (orientation:portrait){
  .f3-toast{top:auto;right:10px;bottom:calc(max(11px,env(safe-area-inset-bottom)) + 168px);left:auto;max-width:min(236px,61vw);transform:none}
  .farm3d-app:has(.f3-toast:not([hidden])) .f3-inspector{bottom:250px}
  .farm3d-app:has(.f3-toast:not([hidden])) .f3-mentor-prompt{bottom:245px}
  .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-mentor-prompt:not([hidden])) .f3-inspector{bottom:320px;max-height:min(36dvh,calc(100dvh - 151px - 320px - 12px))}
}
@media(max-height:500px) and (orientation:landscape){
  .f3-toast{top:57px;right:auto;bottom:auto;left:50%;max-width:min(300px,55vw);transform:translateX(-50%)}
  .farm3d-app:has(.f3-toast:not([hidden])) .f3-mentor-prompt{bottom:76px}
}
/* Small status emblems pair with live HUD values; they are decoration only. */
.f3-stats>span{position:relative;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto auto;column-gap:6px;align-items:center}.f3-stats>span>.f3-stat-icon{grid-row:1/3;width:24px;height:24px;filter:drop-shadow(0 1px 2px #06180d85)}.f3-stat-sun{fill:#e8b83f;stroke:#ffedb0;stroke-width:1.15;stroke-linecap:round}.f3-stat-energy{fill:#77c64b;stroke:#c7f296;stroke-width:1.1;stroke-linejoin:round}.f3-stat-coin{stroke:#fff0ad;stroke-width:1}.f3-stat-coin circle:first-child{fill:#d8a633;stroke:#f7db83}.f3-stat-coin circle:nth-child(2){fill:none;stroke:#fff0ad;stroke-width:1.1}.f3-stat-coin path{fill:#ffefac;stroke:#93671e;stroke-width:.45}.f3-stats small,.f3-stats b{grid-column:2;white-space:nowrap}.f3-stats small{overflow:hidden;text-overflow:clip}.f3-stats>span:nth-child(4){grid-template-columns:minmax(0,1fr);text-align:center}
.f3-stamina-card meter{grid-column:2;align-self:center;width:100%;height:9px;min-width:40px;appearance:none;border:1px solid #f2e7bd;border-radius:8px;background:#45634b;overflow:hidden}
.f3-stamina-card meter::-webkit-meter-bar{border:0;border-radius:8px;background:#45634b}
.f3-stamina-card meter::-webkit-meter-optimum-value{border-radius:8px;background:linear-gradient(90deg,#68bd50,#9bdd56)}
.f3-stamina-card meter::-moz-meter-bar{border-radius:8px;background:linear-gradient(90deg,#68bd50,#9bdd56)}
@media(max-width:820px){.f3-stats>span{grid-template-columns:20px minmax(0,1fr);column-gap:4px}.f3-stats>span>.f3-stat-icon{width:18px;height:18px}.f3-stats small{font-size:8px}.f3-stats b{font-size:12px}}
@media(max-width:440px){.f3-stats>span{grid-template-columns:18px minmax(0,1fr);column-gap:3px;padding-right:5px;padding-left:5px}.f3-stats>span>.f3-stat-icon{width:17px;height:17px}.f3-stats>span:nth-child(3) small{font-size:7px}}
@media(max-height:500px) and (orientation:landscape){.f3-stats>span{grid-template-columns:22px minmax(0,1fr);column-gap:4px}.f3-stats>span>.f3-stat-icon{width:20px;height:20px}}

/* Live crop meters in the expanded inspector. */
.f3-meter-field{min-width:0}
.f3-meter-field meter{width:100%;height:8px;appearance:none;border:1px solid #b9ad8d;border-radius:8px;background:#ddd4bd;overflow:hidden}
.f3-meter-field meter::-webkit-meter-bar{border:0;border-radius:8px;background:#ddd4bd}
#f3-water-meter::-webkit-meter-optimum-value{border-radius:8px;background:linear-gradient(90deg,#36a6d8,#69d3ee)}
#f3-water-meter::-moz-meter-bar{border-radius:8px;background:linear-gradient(90deg,#36a6d8,#69d3ee)}
#f3-quality-meter::-webkit-meter-optimum-value{border-radius:8px;background:linear-gradient(90deg,#69b447,#a5d45b)}
#f3-quality-meter::-moz-meter-bar{border-radius:8px;background:linear-gradient(90deg,#69b447,#a5d45b)}
/* Portrait HUD: a larger branded plaque, compact live status cards and labeled world actions. */
.f3-crop-picker button{display:flex;align-items:center;justify-content:center;gap:5px}
.f3-crop-picker button svg{width:19px;height:19px;flex:none;fill:#75a849;stroke:#183d27;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #fff8dc)}
.f3-crop-picker button span{line-height:1.55}
.f3-crop-picker button[aria-pressed="true"] svg{fill:#b6d772;stroke:#fff0b4}
@media(max-width:820px) and (orientation:portrait){
  .f3-topbar{height:95px}
  .f3-brand{max-width:54%;height:52px;gap:7px;padding:3px 8px 3px 4px}
  .f3-brand img{width:44px;height:44px;border-radius:11px}
  .f3-brand b{font-size:16px}
  .f3-brand small{font-size:8px}
  .f3-stats{top:0;right:0;left:55%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:35px 35px;gap:3px}
  .f3-stats>span{height:35px;min-width:0;padding:2px 4px;border-radius:10px;column-gap:3px;grid-template-columns:17px minmax(0,1fr);grid-template-rows:1fr 1fr;line-height:1.55}
  .f3-stats>span:nth-child(1){grid-column:1;grid-row:1}
  .f3-stats>span:nth-child(2){grid-column:1 / 3;grid-row:2;display:flex;justify-content:space-between;gap:5px;padding-right:8px;padding-left:8px}
  .f3-stats>span:nth-child(3){grid-column:2;grid-row:1}
  .f3-stats>span:nth-child(4){display:none}
  .f3-stats>span>.f3-stat-icon{width:16px;height:16px}
  .f3-stats small,.f3-stats b{grid-column:2;line-height:1.55}
  .f3-stats small{font-size:7px}
  .f3-stats b{font-size:10px}
  .f3-stats>span:nth-child(2) small,.f3-stats>span:nth-child(2) b{grid-column:auto;white-space:nowrap}
  .f3-stamina-card meter{flex:1;height:10px;min-width:36px}
  .f3-top-actions{top:57px;right:auto;left:0;gap:5px}
  .f3-icon-button{width:31px;height:31px;border-radius:10px}
  .f3-icon-button svg{width:17px;height:17px}
  .f3-location-label{top:104px;max-width:43vw}
  .f3-crop-picker{top:104px;min-height:39px;padding:3px 5px}
  .f3-crop-picker button{min-height:31px;gap:3px;padding:3px 6px;font-size:9px}
  .f3-crop-picker button svg{width:17px;height:17px}
  .f3-inspector.collapsed{bottom:238px}
  .f3-inspector-body{padding-bottom:12px}
  .f3-growth i{height:10px}
  .f3-world-actions{top:164px;left:8px;width:76px;gap:6px}
  .f3-world-actions button{min-height:53px;flex:0 0 53px;gap:2px;padding:4px 2px;border-radius:12px;font-size:9px}
  .f3-world-actions svg{width:22px;height:22px;filter:drop-shadow(0 1px 1px #07190e)}
  .f3-world-actions span{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;font-size:8px;line-height:1.55;text-align:center}
  .f3-tools{width:calc(100% - 16px);gap:5px;padding:6px}
  .f3-tools button{height:72px}
  .f3-tools button svg{width:33px;height:33px}
}

/* Final portrait proportions for the compact 3D farm HUD. */
@media(max-width:820px) and (orientation:portrait){
  .f3-brand{width:52vw;min-width:180px;max-width:230px}
  .f3-brand b{font-size:18px}
  .f3-crop-picker{top:104px;right:8px;left:8px;display:grid;width:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;transform:none}
  .f3-crop-picker button{min-width:0;min-height:44px;gap:5px;padding:4px 3px;font-size:14px;line-height:1.55}
  .f3-crop-picker button svg{width:21px;height:21px}
  .f3-location-label{top:159px;right:8px;left:auto;max-width:min(55vw,190px);padding:4px 7px}
  .f3-location-label b{font-size:10px}
  .f3-location-label small{font-size:8px}
  .f3-inspector,.f3-inspector.collapsed{top:auto;right:9px;bottom:185px;width:min(44vw,180px);min-width:158px}
  .f3-world-actions{top:205px;left:8px;width:56px;gap:5px}
  .f3-world-actions button{min-height:50px;flex-basis:50px;gap:2px;padding:3px 2px;font-size:9px}
  .f3-world-actions span{font-size:9px;line-height:1.55}
}
@media(max-height:500px) and (orientation:landscape){.f3-world-actions{top:100px}}

/* M1-06: preserve compact HUD proportions while making every control reachable. */
.f3-topbar{top:max(14px,env(safe-area-inset-top));left:max(16px,calc(env(safe-area-inset-left) + 8px));right:max(16px,calc(env(safe-area-inset-right) + 8px))}
.f3-location-label{left:max(18px,calc(env(safe-area-inset-left) + 8px))}
.f3-inspector{right:max(18px,calc(env(safe-area-inset-right) + 8px))}
.f3-world-actions{left:max(17px,calc(env(safe-area-inset-left) + 8px))}
.f3-tools{bottom:max(18px,calc(env(safe-area-inset-bottom) + 8px))}
.f3-icon-button{width:48px;height:48px}
.f3-crop-picker button,.f3-world-actions button{min-width:48px;min-height:48px}
.f3-inspector header button,.f3-dialog header button{display:grid;width:48px;height:48px;min-width:48px;min-height:48px;place-items:center}
.f3-toast button{display:grid;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;place-items:center;font-size:24px}
.f3-recovery button,.f3-mentor-prompt button,.f3-dialog-content button,.f3-dialog-content input,.f3-dialog-content select{min-height:48px}
.f3-setting-row{min-height:48px;gap:12px;padding:4px 8px;border-radius:10px}
.f3-setting-row input[type="checkbox"]{width:24px;height:24px;flex:none;accent-color:var(--f3-green2)}
.f3-next-step summary,.f3-guide-category>summary{min-height:48px}
.f3-dialog-card{width:min(600px,100%);max-height:min(82dvh,calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));overscroll-behavior:contain}
.f3-dialog-card>header{position:sticky;top:-20px;z-index:3;margin-top:-20px;padding:15px 0 12px;background:linear-gradient(145deg,#fff9e8,#f2e4c4)}
.f3-dialog-content{scroll-margin-top:64px}
.f3-dialog-content button,.f3-form-row button,.f3-card-row button,.f3-primary,.f3-secondary{padding-top:10px;padding-bottom:10px}
.f3-next-step summary,.f3-guide-category>summary{display:flex;align-items:center;padding-top:8px;padding-bottom:8px}

@media(max-width:820px) and (orientation:portrait){
  .farm3d-app{min-height:0}
  .f3-topbar{top:max(8px,env(safe-area-inset-top));right:max(8px,calc(env(safe-area-inset-right) + 8px));left:max(8px,calc(env(safe-area-inset-left) + 8px));height:108px}
  .f3-brand{top:0;left:0;width:min(52vw,230px);max-width:calc(100% - 160px);min-width:0;height:48px;gap:6px;padding:3px 7px 3px 4px}
  .f3-brand img{width:40px;height:40px}
  .f3-brand b{font-size:16px}
  .f3-brand small{font-size:7.5px}
  .f3-top-actions{top:0;right:0;left:auto;gap:4px}
  .f3-icon-button{width:48px;height:48px;border-radius:12px}
  .f3-icon-button svg{width:21px;height:21px}
  .f3-stats{top:54px;right:0;left:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:48px;gap:4px;max-width:600px}
  .f3-stats>span,.f3-stats>span:nth-child(1),.f3-stats>span:nth-child(2),.f3-stats>span:nth-child(3),.f3-stats>span:nth-child(4){display:grid;grid-column:auto;grid-row:auto;grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:3px;height:48px;min-width:0;padding:3px 5px;border-radius:10px}
  .f3-stats>span:nth-child(2){display:grid;justify-content:initial;gap:0;padding-right:5px;padding-left:5px}
  .f3-stats>span>.f3-stat-icon{grid-row:1/3;width:16px;height:16px}
  .f3-stats>span small,.f3-stats>span b,.f3-stats>span:nth-child(2) small,.f3-stats>span:nth-child(2) b{grid-column:2;line-height:1.55}
  .f3-stats small{font-size:7.5px}
  .f3-stats b{font-size:11px}
  .f3-location-label{display:none}
  .f3-crop-picker{top:calc(max(8px,env(safe-area-inset-top)) + 108px);right:max(8px,calc(env(safe-area-inset-right) + 8px));left:max(8px,calc(env(safe-area-inset-left) + 8px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:3px;transform:none}
  .f3-crop-picker button{min-width:48px;height:60px;min-height:60px;flex-direction:column;gap:1px;padding:3px 4px;font-size:13px}
  .f3-crop-picker button svg{width:20px;height:20px}
  .f3-inspector,.f3-inspector.collapsed{top:auto;right:max(8px,calc(env(safe-area-inset-right) + 8px));bottom:calc(174px + env(safe-area-inset-bottom));width:min(52vw,210px);min-width:min(180px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px));border-radius:15px}
  .f3-inspector header{min-height:60px;padding:6px 8px;gap:6px}
  .f3-inspector header span{min-width:0}
  .f3-inspector header b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .f3-inspector header button{width:48px;height:48px;min-width:48px;min-height:48px}
  .f3-inspector:not(.collapsed){max-height:min(40dvh,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 174px - 12px));overflow:auto}
  .f3-inspector:not(.collapsed) header{position:sticky;top:0;z-index:2;background:linear-gradient(150deg,#fff9e9,#f0e1bd)}
  .f3-inspector.collapsed .f3-next-step{display:none}
  .f3-next-step summary{min-height:48px;padding:6px}
  .f3-next-step summary b{font-size:11px;line-height:1.55}
  /* Four equal crop choices fit one row; keep world actions below that row. */
  .f3-world-actions{top:calc(max(8px,env(safe-area-inset-top)) + 184px);right:auto;bottom:auto;left:max(8px,calc(env(safe-area-inset-left) + 8px));display:flex;width:72px;flex-direction:column;gap:4px}
  .f3-world-actions button{display:flex;width:72px;min-width:48px;height:48px;min-height:48px;flex:0 0 48px;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:2px;border-radius:11px;font-size:8px}
  .f3-world-actions svg{width:20px;height:20px}
  .f3-world-actions span{position:static;display:block;width:auto;height:auto;overflow:visible;clip:auto;white-space:nowrap;font-size:8px;line-height:1.55;text-align:center}
  .f3-tools{right:max(8px,calc(env(safe-area-inset-right) + 8px));bottom:calc(env(safe-area-inset-bottom) + 8px);left:max(8px,calc(env(safe-area-inset-left) + 8px));width:auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px;border-radius:15px;transform:none}
  .f3-tools button{height:58px;min-height:48px;gap:1px;padding:3px;border-radius:10px;font-size:10px}
  .f3-tools button::before{top:2px;right:3px;left:3px;height:38px;border-radius:7px}
  .f3-tools button svg{width:27px;height:27px;stroke-width:2.7}
  .f3-tools button span{max-width:100%;font-size:10px;line-height:1.55}
  .f3-joystick{bottom:calc(174px + env(safe-area-inset-bottom));left:max(8px,calc(env(safe-area-inset-left) + 8px));width:88px;height:88px}
  .f3-joystick:before{inset:11px}
  .f3-joystick span{width:36px;height:36px;margin:-18px}
  .f3-mentor-prompt{right:max(10px,calc(env(safe-area-inset-right) + 10px));bottom:calc(174px + env(safe-area-inset-bottom));left:auto;width:min(225px,59vw);min-width:0;padding:6px 8px;transform:none}
  .f3-mentor-prompt button{min-height:48px;padding:6px 10px}
  .f3-toast{top:auto;right:max(10px,calc(env(safe-area-inset-right) + 10px));bottom:calc(180px + env(safe-area-inset-bottom));left:auto;max-width:min(420px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px));padding:5px 7px;font-size:11px;transform:none}
  .f3-toast-copy{min-width:0;flex:1}
  .f3-recovery{top:calc(max(8px,env(safe-area-inset-top)) + 166px);right:max(10px,calc(env(safe-area-inset-right) + 10px));left:max(10px,calc(env(safe-area-inset-left) + 10px));max-width:none;transform:none}
  .f3-move-hint,.f3-disclaimer{display:none}
  .f3-dialog{padding:max(12px,calc(env(safe-area-inset-top) + 12px)) max(12px,calc(env(safe-area-inset-right) + 12px)) max(12px,calc(env(safe-area-inset-bottom) + 12px)) max(12px,calc(env(safe-area-inset-left) + 12px))}
  .f3-dialog-card{max-height:min(84dvh,calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));padding:15px;border-radius:17px}
  .f3-dialog-card>header{top:-15px;margin-top:-15px;padding:12px 0 10px}
  .f3-dialog h2{font-size:18px}
  .f3-dialog header{gap:8px}
  .f3-dialog-content{padding-top:12px}
  .f3-dialog-content button,.f3-form-row button,.f3-card-row button,.f3-primary,.f3-secondary{width:100%;min-height:48px}
  .f3-form-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:8px}
  .f3-form-row label{display:grid;gap:5px}
  .f3-form-row input,.f3-form-row select{width:100%;min-height:48px}
  .f3-setting-row{min-height:48px;gap:12px;margin:6px 0;padding:5px 8px}
  .f3-guide-category>summary{min-height:48px;padding:8px 10px;line-height:1.55}
}

@media(max-width:440px) and (orientation:portrait){
  .f3-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .f3-stats>span:nth-child(4){display:none}
  .f3-stats>span:nth-child(2){min-width:0}
}

@media(max-height:500px) and (orientation:landscape){
  .farm3d-app{min-height:0}
  .f3-topbar{top:max(8px,env(safe-area-inset-top));right:max(8px,calc(env(safe-area-inset-right) + 8px));left:max(8px,calc(env(safe-area-inset-left) + 8px));display:flex;height:52px;align-items:flex-start;gap:6px}
  .f3-brand{position:relative;top:auto;left:auto;width:min(230px,27vw);max-width:min(230px,27vw);min-width:0;height:48px;gap:5px;padding:2px 6px 2px 3px}
  .f3-brand img{width:38px;height:38px}
  .f3-brand b{font-size:14px}
  .f3-brand small{font-size:7px}
  .f3-top-actions{position:relative;top:0;right:auto;left:auto;gap:4px}
  .f3-icon-button{width:48px;height:48px;border-radius:11px}
  .f3-icon-button svg{width:20px;height:20px}
  .f3-stats{position:relative;top:0;right:auto;left:auto;display:flex;flex:1;min-width:0;gap:4px}
  .f3-stats>span{display:grid;flex:1;grid-template-columns:19px minmax(0,1fr);grid-template-rows:auto auto;column-gap:3px;height:48px;min-width:0;padding:3px 5px;border-radius:10px}
  .f3-stats>span:nth-child(2){display:grid;justify-content:initial;gap:0;padding-right:5px;padding-left:5px}
  .f3-stats>span:nth-child(4){display:grid}
  .f3-stats>span>.f3-stat-icon{grid-row:1/3;width:17px;height:17px}
  .f3-stats small,.f3-stats b,.f3-stats>span:nth-child(2) small,.f3-stats>span:nth-child(2) b{grid-column:2;line-height:1.55}
  .f3-stats small{font-size:7px}
  .f3-stats b{font-size:10px}
  .f3-location-label{display:none}
  .f3-crop-picker{top:calc(max(8px,env(safe-area-inset-top)) + 56px);right:max(8px,calc(env(safe-area-inset-right) + 8px));left:auto;display:grid;width:328px;max-width:calc(100vw - 16px);grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:3px;transform:none}
  .f3-crop-picker button{min-width:48px;height:48px;min-height:48px;flex-direction:column;gap:0;padding:2px 4px;font-size:11px}
  .f3-crop-picker button svg{width:18px;height:18px}
  .f3-inspector,.f3-inspector.collapsed{top:calc(max(8px,env(safe-area-inset-top)) + 104px);right:max(8px,calc(env(safe-area-inset-right) + 8px));bottom:max(8px,calc(env(safe-area-inset-bottom) + 76px));width:min(230px,29vw);min-width:0;max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)) - 164px);overflow:auto}
  .f3-inspector header{position:sticky;top:0;z-index:2;min-height:60px;padding:5px 8px;background:linear-gradient(150deg,#fff9e9,#f0e1bd)}
  .f3-inspector header span{min-width:0}
  .f3-inspector header b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .f3-world-actions{top:calc(max(8px,env(safe-area-inset-top)) + 104px);right:auto;bottom:auto;left:max(8px,calc(env(safe-area-inset-left) + 8px));display:grid;width:260px;grid-template-columns:repeat(5,48px);grid-auto-rows:48px;gap:4px}
  .f3-world-actions button{width:48px;min-width:48px;height:48px;min-height:48px;flex:none;padding:1px}
  .f3-world-actions svg{width:18px;height:18px}
  .f3-world-actions span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .f3-tools{top:auto;right:max(8px,calc(env(safe-area-inset-right) + 8px));bottom:calc(env(safe-area-inset-bottom) + 8px);left:max(112px,calc(env(safe-area-inset-left) + 104px));width:auto;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;transform:none}
  .f3-tools button{height:52px;min-height:48px;padding:2px;border-radius:8px;font-size:9px}
  .f3-tools button::before{top:2px;right:2px;left:2px;height:34px;border-radius:6px}
  .f3-tools button svg{width:24px;height:24px;stroke-width:3}
  .f3-tools button span{font-size:9px;line-height:1.55}
  .f3-joystick{bottom:max(56px,calc(env(safe-area-inset-bottom) + 56px));left:max(8px,calc(env(safe-area-inset-left) + 8px));width:72px;height:72px}
  .f3-joystick:before{inset:9px}
  .f3-joystick span{width:30px;height:30px;margin:-15px}
  .f3-mentor-prompt{right:auto;bottom:max(76px,calc(env(safe-area-inset-bottom) + 76px));left:50%;width:min(225px,28vw);min-width:0;padding:5px 8px;transform:translateX(-50%)}
  .f3-mentor-prompt button{min-height:48px;padding:5px 9px}
  .f3-toast{top:calc(max(8px,env(safe-area-inset-top)) + 110px);right:auto;bottom:auto;left:calc(50% + (env(safe-area-inset-left) - env(safe-area-inset-right))/2);max-width:min(300px,34vw);padding:5px 7px;transform:translateX(-50%)}
  .f3-recovery{top:calc(max(8px,env(safe-area-inset-top)) + 106px);right:max(10px,calc(env(safe-area-inset-right) + 10px));left:max(10px,calc(env(safe-area-inset-left) + 10px));max-width:none;transform:none}
  .f3-dialog{padding:max(8px,calc(env(safe-area-inset-top) + 8px)) max(8px,calc(env(safe-area-inset-right) + 8px)) max(8px,calc(env(safe-area-inset-bottom) + 8px)) max(8px,calc(env(safe-area-inset-left) + 8px))}
  .f3-dialog-card{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);padding:12px}
  .f3-dialog-card>header{top:-12px;margin-top:-12px;padding:9px 0 8px}
  .f3-form-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:6px}
  .f3-form-row label{display:grid;gap:4px}
  .f3-form-row input,.f3-form-row select{width:100%;min-height:48px}
  .f3-dialog-content button,.f3-form-row button,.f3-card-row button,.f3-primary,.f3-secondary{width:100%;min-height:48px}
}

/* Full-width, color-coded crop meters stay readable in the expanded inspector. */
.f3-meters{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:12px;width:100%}
.f3-meters .f3-meter-field{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 8px;align-items:center;gap:2px 8px;width:100%;min-width:0}
.f3-meter-field>span{grid-column:1;grid-row:1;color:#687462;font-size:10px;white-space:nowrap}
.f3-meter-field>b{grid-column:2;grid-row:1;color:var(--f3-ink);font-size:12px;text-align:right;white-space:nowrap}
.f3-meter-field meter{grid-column:1/-1;grid-row:2;display:block;width:100%;max-width:none;height:8px;min-width:40px}
.f3-meters .f3-soil-field{display:flex;grid-column:1;align-items:center;gap:5px;width:100%;color:#687462;font-size:10px}
.f3-soil-field b{color:var(--f3-ink);font-size:12px}
@media(max-width:820px) and (orientation:portrait){
  .f3-inspector:not(.collapsed){width:min(62vw,238px);min-width:min(210px,calc(100vw - 20px))}
  .f3-inspector:not(.collapsed) .f3-inspector-body{padding-right:10px;padding-left:10px}
  .f3-meters .f3-meter-field{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
}

/* M1-06 final compact-state layout after legacy HUD overrides. */
@media(max-height:760px) and (max-width:820px) and (orientation:portrait){
  .f3-world-actions{display:grid;width:100px;grid-template-columns:repeat(2,48px);grid-auto-rows:48px;gap:4px;pointer-events:none}
  .f3-world-actions button{width:48px;min-width:48px;height:48px;flex:0 0 48px;pointer-events:auto}
  .f3-world-actions svg{width:20px;height:20px}
  .f3-world-actions span{font-size:8px;line-height:1.55}
  .f3-joystick{bottom:calc(152px + env(safe-area-inset-bottom))}
  .f3-inspector:not(.collapsed){width:min(52vw,203px);min-width:min(180px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px))}
}

@media(max-width:820px) and (orientation:portrait){
  .f3-inspector:not(.collapsed){max-height:min(40dvh,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 176px - 174px - 12px))}
  .farm3d-app:has(.f3-mentor-prompt:not([hidden])) .f3-inspector{bottom:calc(250px + env(safe-area-inset-bottom));max-height:min(34dvh,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 176px - 250px - 12px))}
  .farm3d-app:has(.f3-toast:not([hidden])) .f3-inspector{bottom:calc(250px + env(safe-area-inset-bottom));max-height:min(34dvh,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 176px - 250px - 12px))}
  .farm3d-app:has(.f3-toast:not([hidden])) .f3-mentor-prompt{bottom:calc(245px + env(safe-area-inset-bottom))}
  .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-mentor-prompt:not([hidden])) .f3-inspector{bottom:calc(320px + env(safe-area-inset-bottom));max-height:min(32dvh,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 176px - 320px - 12px))}
}

/* M1-07: compact the simultaneous toast, mentor action, and inspector stack on short portrait screens. */
@media(max-height:760px) and (max-width:820px) and (orientation:portrait){
 .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-mentor-prompt:not([hidden])) .f3-toast{bottom:calc(148px + env(safe-area-inset-bottom))}
 .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-mentor-prompt:not([hidden])) .f3-mentor-prompt{bottom:calc(212px + env(safe-area-inset-bottom));width:min(52vw,203px);padding:4px 6px;gap:0}
 .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-mentor-prompt:not([hidden])) .f3-mentor-prompt>span{display:none}
 .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-mentor-prompt:not([hidden])) .f3-inspector{bottom:calc(276px + env(safe-area-inset-bottom));max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 448px)}
}

/* U03: exact-product quick access stays a text-first, keyboard/touch-visible game action. */
.f3-world-actions #f3-quick-access{width:min(176px,calc(100vw - 116px));height:48px;min-height:48px;flex:0 0 48px;flex-direction:row;justify-content:center;padding:5px 9px;border-color:#e0b94f;background:linear-gradient(145deg,#735326,#46341d);color:#fff5d6;font-size:12px;font-weight:600;line-height:1.2;text-align:center}
.f3-world-actions #f3-quick-access span{position:static;display:block;width:100%;height:auto;overflow:visible;clip:auto;white-space:normal;overflow-wrap:anywhere;font-size:inherit;line-height:1.2;text-align:center}
.f3-world-actions #f3-quick-access[hidden]{display:none!important}
.f3-quick-slot-current{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 10px;margin:0 0 12px;padding:11px;border:1px solid #d8c58e;border-radius:12px;background:#fffdf6}
.f3-quick-slot-current>b{color:var(--f3-green);font-size:12px}
.f3-quick-slot-current>span{min-width:0;overflow-wrap:anywhere;color:var(--f3-ink)}
.f3-quick-slot-current>button{grid-column:1/-1}
.f3-quick-slot-options .f3-product-card{grid-template-columns:48px minmax(0,1fr)}
.f3-quick-slot-options .f3-product-card>img{grid-column:1;grid-row:1/3}
.f3-quick-slot-options .f3-product-card>b,.f3-quick-slot-options .f3-product-card>small{grid-column:2;min-width:0;overflow-wrap:anywhere}
.f3-quick-slot-options .f3-product-card>button{grid-column:1/-1}
@media(max-width:820px) and (orientation:portrait){
  .f3-world-actions #f3-quick-access{width:72px;max-width:72px;padding:4px 6px;font-size:11px}
}
@media(max-height:760px) and (max-width:820px) and (orientation:portrait){
  .f3-world-actions #f3-quick-access{grid-column:1;width:48px;max-width:48px;height:48px;min-height:48px;flex:0 0 48px;padding:2px 3px;font-size:10px}
  .f3-world-actions #f3-quick-access span{font-size:10px;line-height:1.08}
}
@media(max-width:820px) and (orientation:landscape){
  .f3-world-actions #f3-quick-access{grid-column:1 / span 5;width:260px;max-width:calc(100vw - 120px);justify-self:start;font-size:11px}
  .f3-world-actions #f3-quick-access span{position:static;display:block;width:100%;height:auto;overflow:visible;clip:auto;white-space:normal;font-size:11px;line-height:1.2}
}

@media(max-height:500px) and (orientation:landscape){
  .f3-world-actions{top:max(96px,calc(env(safe-area-inset-top) + 88px));right:auto;bottom:auto;left:max(8px,calc(env(safe-area-inset-left) + 8px));display:grid;width:260px;grid-template-columns:repeat(5,48px);grid-auto-rows:48px;gap:4px}
  .f3-world-actions button{width:48px;min-width:48px;height:48px;min-height:48px;flex:none;padding:1px}
  .f3-world-actions svg{width:18px;height:18px}
  .f3-world-actions span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .f3-world-actions #f3-quick-access{grid-column:1 / span 5;width:260px;max-width:calc(100vw - 120px);justify-self:start;font-size:11px}
  .f3-world-actions #f3-quick-access span{position:static;display:block;width:100%;height:auto;overflow:visible;clip:auto;white-space:normal;font-size:11px;line-height:1.2}
}

/* Recovery copy stays visible without blocking the farm controls on compact screens. */
.f3-recovery{z-index:6;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;box-sizing:border-box;max-height:min(132px,calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)) - 16px));padding:7px 8px}
.f3-recovery[hidden]{display:none!important}
#f3-recovery-copy{display:block;min-width:0;max-height:7em;overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere;overscroll-behavior:contain;font-size:14px;line-height:1.55}
.f3-recovery button{display:grid;min-width:48px;min-height:48px;place-items:center;padding:5px 7px;border-radius:9px;font-size:14px}
.f3-recovery button:focus-visible{outline:3px solid #1c6037;outline-offset:2px}
@media(min-width:821px){
  .f3-recovery{top:calc(max(8px,env(safe-area-inset-top)) + 158px);right:auto;left:50%;width:min(650px,90vw);transform:translateX(-50%)}
}
@media(max-width:820px) and (orientation:portrait){
  .f3-recovery{top:calc(max(8px,env(safe-area-inset-top)) + 176px);right:max(8px,calc(env(safe-area-inset-right) + 8px));left:calc(max(8px,env(safe-area-inset-left) + 8px) + 80px);width:auto;max-width:none;transform:none}
}
@media(max-height:760px) and (max-width:820px) and (orientation:portrait){
  .f3-recovery{left:calc(max(8px,env(safe-area-inset-left) + 8px) + 158px);right:max(8px,calc(env(safe-area-inset-right) + 8px));width:auto}
}
@media(max-width:820px) and (orientation:landscape){
  .f3-recovery{top:calc(max(8px,env(safe-area-inset-top)) + 108px);right:max(8px,calc(env(safe-area-inset-right) + min(230px,29vw) + 16px));left:calc(max(8px,env(safe-area-inset-left) + 8px) + 268px);width:auto;max-width:none;transform:none}
}
@media(max-height:500px) and (orientation:landscape){
  .f3-recovery{top:calc(max(8px,env(safe-area-inset-top)) + 108px);right:max(8px,calc(env(safe-area-inset-right) + min(230px,29vw) + 16px));left:calc(max(8px,env(safe-area-inset-left) + 8px) + 268px);width:auto;max-width:none;transform:none}
}
.f3-world-actions #f3-plot-drag-toggle[aria-pressed="true"]{border-color:#f4da78;background:linear-gradient(145deg,#806128,#46341d);box-shadow:var(--f3-bevel),0 0 0 2px #234e33;color:#fff6d7}
.f3-world-actions #f3-plot-drag-toggle[aria-pressed="true"] svg{stroke:#fff0aa}
.f3-plot-drag-status{position:absolute;z-index:6;right:16px;bottom:calc(125px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:min(460px,calc(100vw - 32px));padding:9px 14px;border:1px solid #e4c56d;border-radius:12px;background:#12371ff2;box-shadow:0 5px 18px #102b1b55;color:#fff4cb;font-size:13px;font-weight:600;line-height:1.55;text-align:center;pointer-events:none;transform:translateX(-50%)}
@media(max-width:820px){.f3-plot-drag-status{right:8px;bottom:calc(170px + env(safe-area-inset-bottom));left:50%;max-width:calc(100vw - 24px);padding:7px 11px;font-size:13px}}
@media(max-width:820px) and (orientation:landscape){.f3-plot-drag-status{bottom:calc(66px + env(safe-area-inset-bottom))}}
@media(max-height:500px) and (orientation:landscape){.f3-plot-drag-status{bottom:calc(66px + env(safe-area-inset-bottom))}}
/* Keep Thai drag feedback above tools and reserve a separate transient toast row. */
@media(max-width:820px) and (orientation:portrait){
  .f3-plot-drag-status{bottom:calc(146px + env(safe-area-inset-bottom));width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:3px 6px;font-size:13px;line-height:1.55}
  .farm3d-app:has(.f3-plot-drag-status:not([hidden])):has(.f3-toast:not([hidden])) .f3-toast{bottom:calc(196px + env(safe-area-inset-bottom))}
  .farm3d-app:has(.f3-plot-drag-status:not([hidden])):has(.f3-toast:not([hidden])) .f3-inspector{bottom:calc(266px + env(safe-area-inset-bottom))}
}

/* Authored jade/gold HUD artwork loads progressively over the existing usable controls. */
.farm3d-app{--f3-jade:#0b3c25;--f3-gold-edge:#d7ac4c}
.f3-ui-art{position:relative;z-index:1;display:none;flex:none;width:38px;height:38px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #071e14a0)}
.ui-art-ready>.f3-ui-art{display:block}
.ui-art-ready>svg{display:none}
.f3-world-actions button{position:relative}
.f3-world-actions button>svg,.f3-world-actions button>span{position:relative;z-index:1}
.f3-world-actions .f3-ui-art{width:32px;height:32px}
.f3-stats>span>.f3-ui-art{grid-column:1;grid-row:1/3;width:27px;height:27px;align-self:center}
.f3-tools{border-color:var(--f3-gold-edge);background:linear-gradient(145deg,#174d34f5,#082b1cf5);box-shadow:inset 0 1px 0 #e6cc8360,0 8px 24px #08251670}
.f3-tools button{background:linear-gradient(#164c32,#082b1d);border-color:#b99043;color:#fff7db;text-shadow:0 1px 2px #071b12,1px 0 1px #071b12,-1px 0 1px #071b12;box-shadow:inset 0 1px 0 #b6cb9470,0 2px 0 #735623}
.f3-tools button.active{border-color:#ffe08b;background:linear-gradient(#286441,#0b3c25);color:#fff4bb;box-shadow:0 0 0 2px #f3cf68,0 3px 0 #735623}
.f3-tools button span{font-size:12px;line-height:1.55}
.ui-frame-rectangle-ready .f3-tools button::before{inset:0;height:auto;border:12px solid transparent;border-radius:inherit;border-image:url('../minigame/ui/ts-jade-gold-v1/button-rectangle.png') 50 fill / 12px / 0 stretch;background:none;box-shadow:none}
.ui-frame-square-ready .f3-world-actions button::after,.ui-frame-square-ready .f3-icon-button::after{position:absolute;z-index:0;inset:0;border:10px solid transparent;border-image:url('../minigame/ui/ts-jade-gold-v1/button-square.png') 50 fill / 10px / 0 stretch;content:'';pointer-events:none}
.f3-icon-button{position:relative;min-width:48px;min-height:48px}
.f3-icon-button>svg{position:relative;z-index:1}
.f3-tools button.active::before{filter:brightness(1.12)}
.f3-tools button:disabled,.f3-world-actions button:disabled{opacity:.48;filter:saturate(.45);cursor:default;transform:none}
.f3-tools button:active:not(:disabled),.f3-world-actions button:active:not(:disabled){filter:brightness(.9);transform:translateY(1px)}
.f3-crop-picker{border-color:var(--f3-gold-edge);background:linear-gradient(#164d34,#0b3c25)}
.f3-crop-picker button{color:#f3e4b7;line-height:1.55}
.f3-crop-picker button[aria-pressed="true"]{background:linear-gradient(#e0bd65,#c79b43);color:#163c27;text-shadow:none;box-shadow:inset 0 1px 0 #fff4ba}
.f3-brand{background:linear-gradient(145deg,#175338,#0b3c25);border-color:var(--f3-gold-edge)}
.f3-brand img{border-radius:50%;object-fit:cover}
.f3-inspector,.f3-dialog-card{border-color:var(--f3-gold-edge)}
.f3-inspector header,.f3-inspector:not(.collapsed) header,.f3-dialog-card>header{background:linear-gradient(145deg,#175338,#0b3c25);color:#fff5d5}
.f3-inspector header small,.f3-dialog header small{color:#e4c680;line-height:1.55}
.f3-inspector header b,.f3-dialog h2{color:#fff5d5;line-height:1.55}
.f3-inspector header button,.f3-dialog header button{border-color:#c79b43;background:linear-gradient(#27613f,#0b3c25);color:#fff1ba}
.f3-inspector p,.f3-inspector header span,.f3-next-step p,.f3-next-step summary b,#f3-recovery-copy,.f3-world-actions #f3-quick-access span{line-height:1.55}
.f3-inspector.collapsed{top:auto;bottom:calc(134px + env(safe-area-inset-bottom));width:min(260px,28vw)}
.f3-inspector.collapsed .f3-next-step{display:none}
.f3-inspector.collapsed header{padding-bottom:6px;min-height:60px}
.f3-inspector:not(.collapsed){max-height:calc(100dvh - 145px - 134px - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}
.f3-toast,.f3-plot-drag-status{border-color:#d7ac4c;background:#0b3c25f5;color:#fff5d5;line-height:1.55}
.f3-toast button{background:#1d573b;color:#fff0b7}
.f3-dialog button:focus-visible,.f3-inspector button:focus-visible,.f3-toast button:focus-visible,.f3-crop-picker button:focus-visible{outline:3px solid #e3b955;outline-offset:2px}
@media(max-width:820px) and (orientation:portrait){
  .f3-tools .f3-ui-art{width:29px;height:29px}
  .f3-tools button span{font-size:12px;line-height:1.55}
  .f3-world-actions .f3-ui-art{width:25px;height:25px}
  .f3-world-actions span{font-size:11px;line-height:1.55}
  .f3-stats>span>.f3-ui-art{width:19px;height:19px}
  .f3-inspector.collapsed{bottom:calc(174px + env(safe-area-inset-bottom));width:min(52vw,210px)}
  .f3-inspector:not(.collapsed){max-height:min(40dvh,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 176px - 174px - 12px))}
}
@media(max-height:500px) and (orientation:landscape){
  .f3-tools .f3-ui-art{width:27px;height:27px}
  .f3-tools button span{font-size:10px;line-height:1.55}
  .f3-world-actions .f3-ui-art{width:25px;height:25px}
  .f3-world-actions span{position:relative;display:block;width:auto;height:auto;overflow:visible;clip:auto;white-space:nowrap;font-size:10px;line-height:1.55}
  .f3-world-actions button{display:flex;flex-direction:column;gap:0;padding:2px}
  .f3-stats>span>.f3-ui-art{width:19px;height:19px}
  .f3-inspector.collapsed{top:auto;bottom:calc(74px + env(safe-area-inset-bottom));width:min(230px,29vw);max-height:76px;overflow:hidden}
  .f3-inspector:not(.collapsed){top:calc(max(8px,env(safe-area-inset-top)) + 120px);bottom:calc(74px + env(safe-area-inset-bottom));width:min(230px,29vw);max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 194px);overflow:auto}
  .f3-inspector:not(.collapsed) header{position:sticky;top:0;z-index:2}
}
@media(prefers-reduced-motion:reduce){
  .f3-tools button,.f3-inspector,.f3-growth i b,.f3-toast,.f3-recovery,.f3-mentor-prompt{transition:none}
  .f3-tools button:hover,.f3-tools button:active:not(:disabled),.f3-world-actions button:active:not(:disabled){transform:none}
}
/* Short portrait screens reserve the full two-column world menu before expanded details. */
@media(max-height:760px) and (max-width:820px) and (orientation:portrait){
  .f3-inspector:not(.collapsed){left:calc(max(8px,calc(env(safe-area-inset-left) + 8px)) + 158px);right:max(8px,calc(env(safe-area-inset-right) + 8px));width:auto;min-width:0}
}
.farm3d-app:has(.f3-inspector.collapsed) .f3-move-hint{display:none}
/* Crop plaques and secondary commands share the authored HUD icon proportions. */
.f3-crop-picker .f3-ui-art{width:30px;height:30px;filter:drop-shadow(0 1px 2px #08251690)}
.f3-crop-picker button{gap:7px;font-weight:600}
.f3-crop-picker button span{line-height:1.55}
.f3-icon-button .f3-ui-art{width:28px;height:28px}
.farm3d-app input,.farm3d-app select,.farm3d-app textarea{font-family:inherit}
@media(max-width:820px) and (orientation:portrait){
  .f3-crop-picker .f3-ui-art{width:27px;height:27px}
  .f3-crop-picker button{gap:5px;font-size:13px}
}
@media(max-height:500px) and (orientation:landscape){
  .f3-crop-picker .f3-ui-art{width:26px;height:26px}
  .f3-crop-picker button{gap:5px}
}
/* Long upgrade and purchase copy keeps its reading column; commands get their own row. */
.f3-card-row>div{min-width:0;overflow-wrap:break-word;line-height:1.55}
@media(max-width:900px),(max-height:500px) and (orientation:landscape){
  .f3-card-row{grid-template-columns:48px minmax(0,1fr);align-items:start;gap:8px 10px}
  .f3-card-row>img,.f3-card-row>span:first-child{grid-column:1;grid-row:1;align-self:start}
  .f3-card-row>img{width:48px;height:58px;object-fit:contain}
  .f3-card-row>span:first-child{display:grid;min-height:48px;place-items:center;font-size:24px;line-height:1.55}
  .f3-card-row>div{grid-column:2;min-width:0}
  .f3-card-row>div>b{font-size:14px;line-height:1.55}
  .f3-card-row>div>small{font-size:12px;line-height:1.55;overflow-wrap:break-word}
  .f3-card-row>button{grid-column:1/-1;width:100%;min-width:0;min-height:48px;white-space:normal;font-size:12px;line-height:1.55}
  .f3-card-row>span:last-child:not(:first-child){grid-column:2;font-size:12px;line-height:1.55}
}

/* Short inventory commands retain a usable target at every dialog width. */
.f3-dialog-content button{min-width:48px}

/* Rest stays inside the modal focus boundary and remains reachable while scrolling. */
.f3-dialog header .f3-dialog-heading{flex:1;min-width:0;overflow-wrap:anywhere}
.f3-dialog-actions{display:flex;flex:none;align-items:center;gap:8px}
.f3-dialog header .f3-dialog-sleep{grid-template-columns:24px auto;gap:4px;width:auto;min-width:76px;min-height:48px;padding:8px;font-family:Kanit,sans-serif;font-size:13px}
.f3-dialog-sleep img{display:block;width:24px;height:24px;object-fit:contain;pointer-events:none}
.f3-dialog-sleep:active{filter:brightness(1.18)}
/* The exit action shares the reachable48px target with modal rest on phones. */
#f3-dialog-close{width:48px;height:48px;min-width:48px;min-height:48px;font-size:26px;touch-action:manipulation}
#f3-dialog-close:focus-visible{outline:3px solid var(--f3-gold-hi);outline-offset:3px}
.f3-dialog-actions{align-self:flex-start}
.f3-decor-level{display:inline-block;padding:2px 8px;border:1px solid #d8b85e;border-radius:7px;background:#103a28;color:#ffe4a0;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.f3-decor-row{grid-template-columns:48px minmax(0,1fr);align-items:start}
.f3-decor-row>.f3-decor-actions{grid-column:1/-1}
.f3-decor-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.f3-decor-actions button{flex:1 1 150px;min-height:48px;white-space:normal;line-height:1.55}
.f3-decor-max{color:#d9b767;font-size:13px;line-height:1.55}
.f3-decor-actions button:disabled{cursor:default;opacity:.55}

/* The two explicit camera views reserve a compact HUD slot outside the tool rail. */
.f3-camera-controls{position:absolute;z-index:4;top:max(85px,calc(env(safe-area-inset-top) + 72px));right:max(18px,calc(env(safe-area-inset-right) + 8px));display:flex;gap:3px;padding:3px;border:1px solid var(--f3-gold);border-radius:12px;background:#0b3c25f5;box-shadow:0 3px 10px #08251660}
.f3-camera-controls button{min-width:76px;min-height:48px;padding:4px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#f3e4b7;font-size:12px;line-height:1.55;letter-spacing:0;word-break:keep-all}
.f3-camera-controls button[aria-pressed="true"]{border-color:#ffe08b;background:linear-gradient(#e0bd65,#c79b43);color:#163c27}
.f3-camera-controls button:focus-visible{outline:3px solid #fff0ad;outline-offset:2px}
.f3-camera-controls button:active:not(:disabled){filter:brightness(.88)}
.f3-camera-controls button:disabled{opacity:.52;cursor:default}
@media(max-width:820px) and (orientation:portrait){
  .f3-camera-controls{top:calc(max(8px,env(safe-area-inset-top)) + 232px);right:max(8px,calc(env(safe-area-inset-right) + 8px))}
  .f3-recovery{top:calc(max(8px,env(safe-area-inset-top)) + 296px)}
}
@media(max-height:500px) and (orientation:landscape){
  .f3-camera-controls{top:auto;right:auto;bottom:calc(80px + env(safe-area-inset-bottom));left:calc(max(8px,env(safe-area-inset-left)) + 104px)}
}
/* Short landscape keeps camera controls beside the wide navigation row. */
@media(max-height:380px) and (orientation:landscape){
  .f3-camera-controls{left:calc(max(8px,env(safe-area-inset-left)) + 268px)}
}
/* Open details keep their sticky collapse target below the camera slot on short phones. */
@media(max-height:760px) and (max-width:820px) and (orientation:portrait){
  .f3-inspector:not(.collapsed){top:calc(max(8px,env(safe-area-inset-top)) + 296px);min-height:64px;max-height:max(64px,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 470px));overflow:auto}
}

/* Native HUD art decorates the existing live controls without growing their reserved slots. */
.f3-stats>span[data-ui-art]{position:relative;isolation:isolate;grid-template-columns:27px minmax(0,1fr);column-gap:6px}
.f3-stats>span[data-ui-art]>*{position:relative;z-index:1}
.f3-stats>span[data-ui-art]>.f3-ui-art,.f3-stats>span[data-ui-art]>.f3-stat-icon{grid-column:1;grid-row:1/3;width:27px;height:27px;align-self:center;pointer-events:none}
.f3-stats>span.f3-stamina-card[data-ui-art]>.f3-ui-art,.f3-stats>span.f3-stamina-card[data-ui-art]>.f3-stat-icon{grid-row:1/4}
.f3-stats b{font-variant-numeric:tabular-nums}
.ui-frame-rectangle-ready .f3-stats>span[data-ui-art]::before,.ui-frame-rectangle-ready .f3-inspector header::before{content:"";position:absolute;inset:0;z-index:0;border:6px solid transparent;border-image:url('../minigame/ui/ts-jade-gold-v1/button-rectangle.png') 50 fill / 6px / 0 stretch;pointer-events:none}
.f3-inspector header{position:relative;isolation:isolate}
.f3-inspector header>*{position:relative;z-index:1}
.f3-inspector header::after{content:"";position:absolute;top:4px;right:68px;z-index:0;width:52px;height:52px;background:var(--f3-selected-crop-art,none) center / contain no-repeat;opacity:.08;pointer-events:none}
.farm3d-app:has(.f3-crop-picker [data-crop="palm"][aria-pressed="true"]){--f3-selected-crop-art:url('../minigame/ui/ts-jade-gold-v2/palm.png')}
.farm3d-app:has(.f3-crop-picker [data-crop="rubber"][aria-pressed="true"]){--f3-selected-crop-art:url('../minigame/ui/ts-jade-gold-v2/rubber.png')}
.farm3d-app:has(.f3-crop-picker [data-crop="durian"][aria-pressed="true"]){--f3-selected-crop-art:url('../minigame/ui/ts-jade-gold-v2/durian.png')}
.f3-stamina-card meter{border-color:#e2bd61;background:#123b2b}
.f3-stamina-card meter::-webkit-meter-bar{background:#123b2b}
.f3-stamina-card meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#27875a,#9fcd6a)}
.f3-stamina-card meter::-moz-meter-bar{background:linear-gradient(90deg,#27875a,#9fcd6a)}
@media(max-width:820px) and (orientation:portrait){
  .f3-stats>span[data-ui-art]{grid-template-columns:25px minmax(0,1fr);column-gap:4px}
  .f3-stats>span[data-ui-art]>.f3-ui-art,.f3-stats>span[data-ui-art]>.f3-stat-icon{width:25px;height:25px}
  .f3-stats>span[data-ui-art] small,.f3-stats small{font-size:9px}
  .f3-stats b{font-size:12px}
  .f3-stats>span.f3-stamina-card[data-ui-art]{grid-template-rows:auto 6px auto}
  .f3-stamina-card meter{height:6px}
}
@media(max-height:500px) and (orientation:landscape){
  .f3-stats>span[data-ui-art]{grid-template-columns:23px minmax(0,1fr);column-gap:3px}
  .f3-stats>span[data-ui-art]>.f3-ui-art,.f3-stats>span[data-ui-art]>.f3-stat-icon{width:23px;height:23px}
  .f3-stats>span[data-ui-art] small,.f3-stats small{font-size:9px}
  .f3-stats b{font-size:12px}
  .f3-stats>span.f3-stamina-card[data-ui-art]{grid-template-rows:auto 6px auto}
  .f3-stamina-card meter{height:6px}
}

/* A lone recovery notice keeps expanded details and both dismiss targets reachable. */
#f3-recovery-copy:focus-visible{outline:2px solid #1c6037;outline-offset:-2px}
@media(max-width:820px) and (orientation:portrait){
  .f3-recovery:not([hidden]){max-height:64px}
  #f3-recovery-copy{max-height:48px}
  .farm3d-app:has(.f3-recovery:not([hidden])):not(:has(.f3-toast:not([hidden]),.f3-mentor-prompt:not([hidden]),.f3-plot-drag-status:not([hidden]))) .f3-inspector:not(.collapsed){top:calc(max(8px,env(safe-area-inset-top)) + 368px);bottom:calc(174px + env(safe-area-inset-bottom));min-height:64px;max-height:max(64px,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 542px));overflow:auto}
  /* Any recovery coexistence keeps the expanded header below64px notice +8px gap.
     Existing toast/mentor footer slots still control the panel bottom. */
  .farm3d-app:has(.f3-recovery:not([hidden])):has(.f3-inspector:not(.collapsed)) .f3-inspector:not(.collapsed){top:calc(max(8px,env(safe-area-inset-top)) + 368px);min-height:64px;max-height:max(64px,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 542px));overflow:auto}
}

/* On short portrait screens, a lone toast reserves room for scrollable details and movement. */
@media(max-width:820px) and (min-height:640px) and (max-height:760px) and (orientation:portrait){
  .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-inspector:not(.collapsed)):not(:has(.f3-mentor-prompt:not([hidden]),.f3-recovery:not([hidden]),.f3-plot-drag-status:not([hidden]))) .f3-inspector:not(.collapsed){top:calc(max(8px,env(safe-area-inset-top)) + 296px);bottom:calc(220px + env(safe-area-inset-bottom));min-height:64px;max-height:max(64px,calc(100dvh - max(8px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 516px));overflow:auto}
  .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-inspector:not(.collapsed)):not(:has(.f3-mentor-prompt:not([hidden]),.f3-recovery:not([hidden]),.f3-plot-drag-status:not([hidden]))) .f3-toast{top:auto;right:max(10px,calc(env(safe-area-inset-right) + 10px));bottom:calc(152px + env(safe-area-inset-bottom));left:calc(max(8px,calc(env(safe-area-inset-left) + 8px)) + 96px);box-sizing:border-box;width:auto;min-width:0;max-width:none;height:60px;padding:5px 7px;transform:none}
  .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-inspector:not(.collapsed)):not(:has(.f3-mentor-prompt:not([hidden]),.f3-recovery:not([hidden]),.f3-plot-drag-status:not([hidden]))) #f3-toast-copy{min-width:0;flex:1;max-height:48px;overflow-y:auto;overflow-x:hidden;overflow-wrap:anywhere;overscroll-behavior:contain;pointer-events:auto}
  .farm3d-app:has(.f3-toast:not([hidden])):has(.f3-inspector:not(.collapsed)):not(:has(.f3-mentor-prompt:not([hidden]),.f3-recovery:not([hidden]),.f3-plot-drag-status:not([hidden]))) #f3-toast-copy:focus-visible{outline:2px solid #fff0ad;outline-offset:-2px}
}
/* Crop-specific guidance reuses catalog art; controls stay reachable on phones. */
.f3-mentor-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.f3-mentor-crop{display:grid;justify-items:center;align-content:start;gap:6px;min-width:0;min-height:148px;padding:12px 8px;border:1px solid #af9456;border-radius:15px;background:linear-gradient(150deg,#173e29,#092219);color:#fff0c9;font:inherit;line-height:1.55;text-align:center}
.f3-mentor-crop img{width:100%;height:76px;object-fit:contain;filter:drop-shadow(0 5px 4px #0006)}
.f3-mentor-crop span{font-size:12px;color:#d5d9bf}
.f3-mentor-crop:focus-visible,.f3-voice-controls button:focus-visible,.f3-brochure-actions button:focus-visible{outline:3px solid #eccb75;outline-offset:3px}
.f3-mentor-crop:hover{background:linear-gradient(150deg,#245438,#102d21)}
.f3-mentor-crop:active{transform:translateY(1px)}
.f3-mentor-heading{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:14px}
.f3-mentor-heading>img{width:100%;max-height:126px;object-fit:contain}
.f3-mentor-heading ul,.f3-stage-context{padding-left:20px;margin:8px 0;line-height:1.65}
.f3-brochure{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:18px;align-items:start}
.f3-brochure-visual{position:relative;min-height:210px;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at 50% 65%,#366847,#0b281d 70%);box-shadow:inset 0 0 0 1px #d5b76866}
.f3-brochure-visual::after{position:absolute;right:12%;bottom:7%;left:12%;height:16px;border-radius:50%;background:#020d09;filter:blur(7px);content:''}
.f3-brochure-visual img{position:absolute;z-index:1;object-fit:contain;filter:drop-shadow(0 7px 5px #0008)}
.f3-brochure-bag{left:8%;bottom:10%;width:43%;height:80%}
.f3-brochure-crop{right:3%;bottom:9%;width:51%;height:63%}
.f3-brochure-copy{min-width:0;line-height:1.65;overflow-wrap:anywhere}
.f3-brochure-copy h3{margin:6px 0;font-size:clamp(19px,3vw,25px)}
.f3-brochure-copy h4{margin:14px 0 5px}
.f3-brochure-copy ul{padding-left:20px}
.f3-stage-context li{margin-bottom:10px}
.f3-stage-context span{display:block;margin-top:2px}
.f3-voice-controls,.f3-brochure-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.f3-voice-controls button,.f3-brochure-actions button,.f3-mentor-next>button{min-height:48px;padding:9px 12px;font:inherit;line-height:1.55;white-space:normal}
.f3-voice-status{min-height:1.65em;margin:7px 0;font-size:13px;line-height:1.65}
.f3-game-note{font-size:12px;line-height:1.65;opacity:.85}
@media(max-width:600px){
  .f3-brochure{grid-template-columns:minmax(0,1fr);gap:12px}
  .f3-brochure-visual{min-height:0;aspect-ratio:1.75;max-width:380px;width:100%;justify-self:center}
  .f3-mentor-choices{gap:6px}
  .f3-mentor-crop{padding:10px 4px;font-size:14px}
  .f3-mentor-crop img{height:66px}
  .f3-mentor-heading{grid-template-columns:72px minmax(0,1fr);gap:10px}
  .f3-brochure-actions>button{flex:1 1 130px}
  .f3-voice-controls>button{flex:1 1 100px;font-size:13px}
}

@media(max-height:500px) and (orientation:landscape){
  .f3-brochure{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:14px}
  .f3-brochure-visual{min-height:156px}
  .f3-brochure-copy h3{font-size:20px;line-height:1.55}
  .f3-voice-controls>button{width:auto;flex:1 1 100px}
  .f3-brochure-actions>button{width:auto;flex:1 1 160px}
}

/* Area progression remains inside the existing dialog and focus boundary. */
.f3-garden-area-list{display:grid;gap:12px;margin:16px 0}
.f3-garden-area-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;align-items:center;padding:16px;border:1px solid #b7904f70;border-radius:16px;background:linear-gradient(135deg,#173d2c,#102c23);box-shadow:inset 0 1px #e1bd681c}
.f3-garden-area-card img{width:80px;height:80px;object-fit:contain}
.f3-garden-area-card div{display:grid;gap:6px;min-width:0}
.f3-garden-area-card b{color:#f1d48b;font-size:1.1rem;line-height:1.5;overflow-wrap:anywhere}
.f3-garden-area-card small{color:#c4d0b6}
.f3-garden-area-card span{color:#e6e8d6;font-size:.9rem}
.f3-garden-area-card button,.f3-area-preview button{min-height:48px;white-space:normal;width:100%;line-height:1.5}
.f3-area-preview{display:grid;gap:14px;text-align:center}
.f3-area-preview>img{width:112px;height:112px;object-fit:contain;margin:0 auto}
.f3-area-preview h3,.f3-area-preview p{margin:0;line-height:1.6}
.f3-area-requirements{list-style:none;padding:0;margin:0;display:grid;gap:10px;text-align:left}
.f3-area-requirements li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:4px 8px;line-height:1.6;padding:10px 12px;border-radius:10px;background:#0a231b}
.f3-area-requirements li>span{color:#e4c378;grid-row:span 2}
.f3-area-requirements small{grid-column:2;color:#bbcbb7}
@media(max-width:380px){.f3-garden-area-card{grid-template-columns:58px minmax(0,1fr);padding:12px;gap:10px}.f3-garden-area-card img{width:58px;height:64px}.f3-garden-area-card b{font-size:1rem}}

/* Catalog dialogs use the same jade body, gold rim and warm light as tool art. */
.f3-dialog-card{background:linear-gradient(150deg,#143f2c,#091f18);box-shadow:inset 0 1px 0 #f6dc8d38,inset 0 -3px 0 #061a13,0 24px 70px #0008}
.f3-dialog-content{color:#e8eddb;font-size:14px;line-height:1.6}
.f3-dialog-content h3,.f3-dialog-content h4{color:#f0d38a;line-height:1.55}
.f3-dialog-content .f3-card-row,.f3-guide-category,.f3-guide-product,.f3-mentor-next{border-color:#b4955266;background:linear-gradient(145deg,#1b4932,#0e3023)}
.f3-dialog-content .f3-card-row b,.f3-guide-product b,.f3-guide-category>summary{color:#f7df99}
.f3-dialog-content .f3-card-row small,.f3-guide-product small,.f3-mentor-next>small{color:#c5d3b8;font-size:12px;line-height:1.6}
.f3-stock-note{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #d0ac5266;border-radius:14px;background:linear-gradient(135deg,#20543a,#103525);box-shadow:inset 0 1px #f4de9733}
.f3-stock-note img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 3px 3px #0006)}
.f3-stock-note span{display:grid;gap:3px;min-width:0}.f3-stock-note b{color:#f5dc95;font-size:16px}.f3-stock-note small{color:#d2dec4;font-size:12px;line-height:1.6}
.f3-stock-category{margin:18px 0}.f3-stock-category>h3{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;font-size:16px}.f3-stock-category>h3 small{color:#bbcdb0;font-size:12px;font-weight:400}
.f3-stock-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:10px}
.f3-dialog-content .f3-stock-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:112px;min-width:0;padding:14px;border:1px solid #bc995866;border-radius:15px;background:linear-gradient(135deg,#20583b,#0b3323);box-shadow:inset 0 1px #ffe7a336,inset 0 -3px #051d16,0 5px 12px #0003;color:#eaf0df;text-align:left;white-space:normal}
.f3-stock-card>img{width:64px;height:84px;object-fit:contain;filter:drop-shadow(2px 5px 4px #0007)}
.f3-stock-copy{display:grid;gap:3px;min-width:0}.f3-stock-copy b{font-size:19px;line-height:1.55;color:#ffe5a0;overflow-wrap:anywhere}.f3-stock-copy small{font-size:12px;line-height:1.6;color:#c4d7bb}
.f3-stock-action{display:flex;align-items:center;gap:5px;font-size:12px;color:#e9cc7e}.f3-stock-action i{font-size:24px;font-style:normal}
.f3-stock-card>button{grid-column:2/4;min-height:48px}.f3-stock-card:focus-visible,.f3-content-details>summary:focus-visible{outline:3px solid #f0ce78;outline-offset:3px}
button.f3-stock-card:hover{border-color:#e6c269;background:linear-gradient(135deg,#2a6b46,#11412d)}button.f3-stock-card:active{transform:translateY(1px)}
.f3-content-details{margin-top:12px;border-top:1px solid #bca05266;padding-top:8px}.f3-content-details>summary{cursor:pointer;min-height:48px;display:list-item;padding:12px 0;color:#f3d487;font-weight:500}
.f3-content-details ul{margin:4px 0 12px;padding-left:20px}.f3-brochure-copy,.f3-game-note{color:#d9e5cd}.f3-brochure-copy h3,.f3-brochure-copy h4{color:#f5da93}
.f3-mentor-next>b,.f3-dialog-content .f3-stage-context b{color:#f5da93}.f3-dialog-content .f3-stage-context li{background:#133b2a;border-color:#b9954c66}.f3-dialog-content .f3-stage-context span{color:#d2dfc5}
@media(max-width:420px){.f3-stock-grid{grid-template-columns:minmax(0,1fr)}.f3-dialog-content .f3-stock-card{grid-template-columns:58px minmax(0,1fr) auto;padding:12px;gap:10px}.f3-stock-card>img{width:58px;height:78px}.f3-stock-copy b{font-size:18px}}

/* Earned development stays inside existing disclosure/dialog, clear of touch controls. */
.f3-development-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;margin:0 0 18px;padding:14px;border:1px solid #b99a5666;border-radius:15px;background:linear-gradient(145deg,#1b4932,#0e3023);box-shadow:inset 0 1px #f4da8d30}
.f3-development-card>img{width:58px;height:68px;object-fit:contain;filter:drop-shadow(0 4px 4px #0005)}
.f3-development-card>div,.f3-development-inline{display:grid;gap:7px;min-width:0}
.f3-development-card small,.f3-development-inline small{color:#cad8bd;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.f3-development-card b,.f3-development-inline b{color:#f5da93;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.f3-development-card p,.f3-inspector .f3-development-inline p{margin:0;color:#d7e3ca;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.f3-development-card button,.f3-development-inline button{width:100%;min-height:48px;padding:9px 12px;font:inherit;font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
.f3-development-card button:focus-visible,.f3-development-inline button:focus-visible{outline:3px solid #f1d283;outline-offset:2px}
.f3-development-card progress,.f3-development-inline progress{width:100%;min-width:0;height:8px;border:0;border-radius:6px;overflow:hidden;background:#071e15;accent-color:#d8b258}
.f3-development-card progress::-webkit-progress-bar,.f3-development-inline progress::-webkit-progress-bar{background:#071e15;border-radius:6px}
.f3-development-card progress::-webkit-progress-value,.f3-development-inline progress::-webkit-progress-value{background:linear-gradient(90deg,#71a45b,#dfba63);border-radius:6px}
.f3-development-card progress::-moz-progress-bar,.f3-development-inline progress::-moz-progress-bar{background:#dfba63;border-radius:6px}
.f3-development-inline{padding:12px;border-top:1px solid #b99a5655;border-radius:0 0 12px 12px;background:#103523}
.f3-inspector .f3-next-step[open]{max-height:min(48dvh,360px);overflow:auto;overscroll-behavior:contain}
@media(max-width:380px){.f3-development-card{grid-template-columns:46px minmax(0,1fr);padding:12px;gap:9px}.f3-development-card>img{width:46px;height:56px}}

/* GAME88: a single notice surface, distinct Lord captions and a compact new-day cue. */
.f3-toast #f3-toast-copy{min-width:0;overflow-wrap:anywhere;flex:1}
.f3-toast #f3-toast-portrait{width:38px;height:44px;flex:none;object-fit:contain;filter:drop-shadow(0 2px 4px #0008)}
.f3-toast #f3-toast-missions{width:auto;min-width:64px;min-height:48px;padding:6px 8px;background:linear-gradient(145deg,#ecd08a,#b58a37);color:#11281a;font:600 12px Kanit,sans-serif;border:1px solid #f3dda2}
.f3-toast[data-tone="lord"]{border-color:#bd984e;background:linear-gradient(130deg,#153827f5,#0b2019f5);color:#f4e5bd;text-align:left}
.f3-toast[data-tone="mission"]{border-color:#d4b76c;background:linear-gradient(130deg,#143a27f7,#0a2118f7);color:#f6edcd}
.f3-toast img[hidden],.f3-toast button[hidden]{display:none}
.f3-icon-button.has-new-day{position:relative}
.f3-icon-button.has-new-day:after{content:'';position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:50%;background:#f1ca69;border:2px solid #183822;box-shadow:0 0 5px #d5a74880;pointer-events:none}
.f3-lord-caption{padding:10px 12px;border-left:3px solid #c9a656;background:#173a2866;color:#f2deb0;font-size:13px;line-height:1.6}
.f3-lord-caption:empty{display:none}
@media(max-width:390px){.f3-toast[data-tone="mission"]{flex-wrap:wrap;justify-content:flex-end}.f3-toast[data-tone="mission"] #f3-toast-copy{flex-basis:100%;text-align:left}.f3-toast[data-tone="lord"] #f3-toast-portrait{width:30px;height:38px}}

/* GAME94: four crop choices retain touch target size. */
.f3-crop-picker button{min-height:48px;min-width:48px}

/* GAME103: rice uses an inlet gate; other crops retain the watering can. */
.f3-tools button[data-rice-release="true"] .f3-ui-art{display:none}
.f3-tools button[data-rice-release="true"] svg{display:block;opacity:1;visibility:visible}

.f3-tools .f3-rice-gate-art{display:none;width:39px;height:39px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #08251670)}
.f3-tools button[data-rice-release="true"][data-rice-gate-art="ready"] .f3-rice-gate-art{display:block}
.f3-tools button[data-rice-release="true"][data-rice-gate-art="ready"] svg{display:none}
@media(max-width:820px) and (orientation:portrait){.f3-tools .f3-rice-gate-art{width:29px;height:29px}}

/* Crop glyphs keep their authored aspect and a compact vertical touch layout. */
@media(max-width:820px) and (orientation:portrait){.f3-crop-picker button span{white-space:nowrap}.f3-crop-picker .f3-ui-art{width:27px;height:27px}}
@media(max-height:500px) and (orientation:landscape){.f3-crop-picker button span{white-space:nowrap}.f3-crop-picker .f3-ui-art{width:24px;height:24px}}

/* GAME113: keep short-landscape controls at48px while opening a continuous
   centre world region for the warrior, bed and work presentation. */
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
  .f3-world-actions{top:64px;left:max(8px,env(safe-area-inset-left));width:208px;grid-template-columns:repeat(4,48px);gap:4px}
  .f3-world-actions button{width:48px;height:48px;min-height:48px}
  .f3-world-actions #f3-quick-access{grid-column:3/5;width:auto;min-width:0;height:48px;min-height:48px;font-size:12px;line-height:1.2;white-space:normal}
  .f3-camera-controls{top:172px;bottom:auto;left:max(8px,env(safe-area-inset-left));right:auto}
  .farm3d-app:not(:has(.f3-inspector:not(.collapsed))) .f3-toast{top:128px;right:max(8px,env(safe-area-inset-right));bottom:auto;left:auto;width:230px;max-width:230px;max-height:78px;box-sizing:border-box;transform:none;overflow:auto}
}

/* Current objective stays before development and daily rewards in the dialog. */
.f3-current-mission{display:grid;gap:8px;margin:0 0 16px;padding:14px;border:1px solid #bda654;border-radius:16px;background:#153d2c;line-height:1.6;overflow-wrap:break-word;min-width:0}
.f3-current-mission h3,.f3-current-mission p{margin:0}
.f3-current-mission h3{font-size:1.08rem;color:#f1d47e}
.f3-current-mission small{display:block;color:#cad8bd;line-height:1.6}
.f3-current-mission .f3-mission-destination{color:#fff2bc}
.f3-current-mission button{min-height:48px;width:100%;white-space:normal;line-height:1.6;padding:10px 12px}
.f3-current-mission .f3-primary{background:linear-gradient(var(--f3-gold-hi),var(--f3-gold));color:var(--f3-emerald);font-size:14px;font-weight:600;border:1px solid var(--f3-gold);box-shadow:var(--f3-bevel)}
.f3-current-mission .f3-primary:active{filter:brightness(.94);transform:translateY(1px)}
.f3-current-mission .f3-primary:disabled{box-shadow:none;opacity:.65;cursor:default;transform:none}
.f3-current-mission button:focus-visible{outline:3px solid #fff2bc;outline-offset:3px}

/* Rain offer comparison stays outside the primary action target. */
.f3-decor-actions .f3-price-breakdown{flex:1 0 100%;line-height:1.6;color:#d2dec4}

/* Read-only level preview; one fixed stage makes the increasing silhouettes comparable. */
.f3-decor-detail{text-align:center}.f3-decor-detail-stage{height:300px;display:flex;align-items:flex-end;justify-content:center;background:radial-gradient(ellipse at bottom,#36533b,transparent 70%);margin:12px 0}.f3-decor-detail-stage img{width:calc(100% * var(--decor-w));height:calc(100% * var(--decor-h));object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 7px #0005)}.f3-decor-level-tabs{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.f3-decor-level-tabs button{flex:1;min-width:74px;min-height:48px}.f3-decor-level-tabs [aria-pressed=true]{border-color:#f4d67b;color:#fff2bc;background:#31563c}.f3-decor-detail>button{display:block;width:100%;min-height:48px;margin:8px 0}.f3-decor-detail p{line-height:1.65}@media(max-height:500px){.f3-decor-detail-stage{height:160px}}

/* Produce cards: the same approved crop illustrations as the garden selector. */
.f3-produce-section{margin:0 0 22px}
.f3-produce-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.f3-produce-heading h3{margin:0;font-size:18px}.f3-produce-heading>span{font-size:12px;color:#c6d3b9}
.f3-produce-list{display:grid;gap:10px}.f3-produce-row{display:grid;grid-template-columns:72px minmax(0,1fr) minmax(110px,auto);align-items:center;gap:8px 14px;padding:14px;border:1px solid #bda25a80;border-radius:16px;background:radial-gradient(ellipse at 8% 10%,#3a715047,transparent 68%),linear-gradient(140deg,#1a4b33,#0c2d21);box-shadow:inset 0 1px #f4da8d24,0 5px 12px #0002;min-width:0;scroll-margin-top:94px}
.f3-produce-art{display:grid;place-items:center;width:72px;height:72px;grid-row:span 2;background:radial-gradient(ellipse,#dcb65c25,transparent 70%)}
.f3-produce-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 4px #0005)}
.f3-produce-copy{min-width:0;grid-row:span 2}.f3-dialog-content .f3-produce-copy h4{margin:0 0 3px;font-size:17px;color:#f9e4a9;line-height:1.55}
.f3-produce-copy p{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.f3-produce-copy strong{font-size:21px;color:#fff6d8;font-weight:600}.f3-produce-copy span{color:#d6e2cc}
.f3-produce-return{min-width:0;text-align:right;line-height:1.55}.f3-produce-return>span{display:block;font-size:12px;color:#c5d6ba}.f3-produce-return b{display:block;font-size:24px;font-weight:600;color:#f6d27c;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.f3-produce-return small{font-size:13px;font-weight:400;color:#e5d3a5}.f3-produce-return>.f3-produce-bonus{font-size:12px;color:#dcdf9d}
.f3-produce-row>button{grid-column:3;min-height:48px;min-width:48px;width:100%;font-size:14px;line-height:1.55;background:linear-gradient(145deg,#e5c87b,#ba9248);color:#172d20;font-weight:600;box-shadow:inset 0 1px #fff0bb80,0 3px 0 #745924}
.f3-produce-row.is-empty{grid-template-columns:44px minmax(0,1fr);padding:9px 14px;gap:10px;border-color:#8a9c6b4d;background:linear-gradient(140deg,#173b2c,#0e2d22);box-shadow:inset 0 1px #f4da8d12}.f3-produce-row.is-empty .f3-produce-art{width:44px;height:44px;grid-row:auto}.f3-produce-row.is-empty .f3-produce-copy{grid-row:auto}.f3-dialog-content .f3-produce-row.is-empty h4{font-size:15px;margin:0;color:#d9dfc3}.f3-produce-empty{font-size:12px!important;color:#b5c6ad}.f3-produce-empty-note{padding:10px 12px;border-left:2px solid #c9a95c;background:#e3c77a0a;color:#cbd8bf;font-size:13px;line-height:1.6}
.f3-produce-row:focus{outline:2px solid #f2d78f;outline-offset:3px}
@media(max-width:620px){.f3-produce-row{grid-template-columns:62px minmax(0,1fr);padding:12px;gap:8px 12px}.f3-produce-art{width:62px;height:72px;grid-row:1/3}.f3-produce-copy{grid-column:2;grid-row:1}.f3-produce-return{grid-column:2;grid-row:2;text-align:left;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px}.f3-produce-return b{font-size:23px}.f3-produce-return>.f3-produce-bonus{flex-basis:100%}.f3-produce-row>button{grid-column:1/-1;grid-row:3}.f3-produce-row.is-empty{padding:8px 12px}.f3-produce-heading{gap:2px 8px}.f3-produce-heading h3{font-size:17px}}

/* Keep game time/weather visible in the existing compact brand footprint. */
#f3-mobile-weather{display:none}
@media(max-width:820px) and (orientation:portrait),(max-height:500px) and (orientation:landscape){
 .f3-brand .f3-brand-motto{display:none}
 .f3-brand #f3-mobile-weather{display:block;color:#f4dfaa;font-size:12px;line-height:1.55;white-space:nowrap}
 .f3-brand span{min-width:0}
}
@media(max-width:360px) and (orientation:portrait){.f3-brand{gap:4px;padding-right:4px}.f3-brand img{width:30px;height:34px;object-fit:contain}.f3-brand b{font-size:14px}}

/* GAME167: one compact gameplay owner. Navigation is an explicit user drawer;
   it never calls the activity-cancelling game dialog. Original art/IDs remain. */
.f3-context-stack{display:contents}
#farm3d-app .f3-toast-actions{display:flex;flex:none;align-items:center;justify-content:flex-end;gap:4px;min-height:48px}
#farm3d-app .f3-toast-actions>button{flex:none;min-width:48px;min-height:48px}
#farm3d-app #f3-toast-missions{width:48px;min-width:48px;padding:2px;font-size:11px;white-space:normal}
#farm3d-app #f3-toast-copy{min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;pointer-events:auto}
#farm3d-app .f3-inspector{touch-action:pan-y;overscroll-behavior:contain}
.f3-garden-menu-toggle{position:absolute;z-index:5;left:18px;top:145px;display:flex;align-items:center;justify-content:center;gap:8px;width:128px;height:48px;border:1.5px solid var(--f3-gold);border-radius:12px;background:linear-gradient(145deg,#28613d,#0b2f1c);box-shadow:var(--f3-bevel);color:var(--f3-gold-hi);font-size:14px}
.f3-garden-menu-toggle>span{font-size:20px}
.f3-menu-scrim{position:absolute;z-index:9;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#0c261633;box-shadow:none}
.f3-garden-menu{position:absolute;z-index:10;left:18px;top:198px;display:grid;gap:8px;width:min(344px,calc(100vw - 36px));max-height:calc(100dvh - 218px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:8px;border:2px solid var(--f3-gold);border-radius:16px;background:linear-gradient(145deg,#16482f,#082b1d);box-shadow:0 12px 32px #08251688;color:#fff4d2}
.f3-garden-menu[hidden],.f3-menu-scrim[hidden]{display:none}
.f3-garden-menu>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px}
.f3-garden-menu>header b{font-size:16px}
.f3-garden-menu>header button{flex:none;width:48px;height:48px;border:1px solid var(--f3-gold);border-radius:9px;background:#205638;color:#fff0ad;font-size:22px}
#farm3d-app .f3-menu-fullscreen{min-height:48px;width:100%;padding:8px 12px;border:1px solid var(--f3-gold);border-radius:10px;background:linear-gradient(145deg,#285e3d,#0b301e);color:#fff0c5;text-align:center}
#farm3d-app .f3-fullscreen-status{margin:0;padding:4px 8px;color:#fff0c5;font-size:13px;line-height:1.5}
#farm3d-app .f3-fullscreen-status[hidden]{display:none}
#farm3d-app #f3-garden-menu .f3-camera-controls{position:relative;inset:auto;transform:none;display:flex;gap:4px;width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none}
#farm3d-app #f3-garden-menu .f3-camera-controls>button{flex:1;min-width:48px;min-height:48px;height:48px;font-size:13px}
#farm3d-app #f3-garden-menu .f3-world-actions{position:relative;inset:auto;display:grid;grid-template-columns:repeat(3,minmax(48px,1fr));grid-auto-rows:minmax(56px,auto);gap:6px;width:100%;margin:0;pointer-events:auto}
#farm3d-app #f3-garden-menu .f3-world-actions>button{position:relative;inset:auto;grid-column:auto;grid-row:auto;display:flex;min-width:48px;width:100%;max-width:none;min-height:56px;height:auto;flex:none;padding:4px;font-size:12px;white-space:normal}
#farm3d-app #f3-garden-menu .f3-world-actions>#f3-quick-access{grid-column:1/-1;min-height:48px;height:48px;max-width:none}
#farm3d-app #f3-garden-menu .f3-world-actions>button[hidden]{display:none}
.f3-garden-menu button:focus-visible,.f3-garden-menu-toggle:focus-visible{outline:3px solid var(--f3-gold-hi);outline-offset:-3px}
@media (min-width:821px) and (min-height:501px){
 #farm3d-app #f3-toast{bottom:calc(184px + env(safe-area-inset-bottom));max-width:min(460px,calc(100vw - 500px));max-height:124px;flex-flow:row nowrap;text-align:left}
 #farm3d-app #f3-toast-copy{max-height:96px}
}
@media (max-width:820px) and (orientation:portrait){
 #farm3d-app .f3-topbar{top:max(8px,env(safe-area-inset-top));left:8px;right:8px;display:flex;height:48px;gap:4px;align-items:center}
 #farm3d-app .f3-brand{flex:1;min-width:0;height:48px;padding:2px 5px;gap:4px;border-radius:12px}
 #farm3d-app .f3-brand img{width:30px;height:34px;min-width:30px;border-width:1px}
 #farm3d-app .f3-brand b{font-size:14px;line-height:1.2}
 #farm3d-app .f3-brand #f3-mobile-weather{font-size:10px;line-height:1.4}
 #farm3d-app .f3-top-actions{gap:4px;flex:none}
 #farm3d-app .f3-top-actions>.f3-icon-button{width:48px;height:48px}
 #farm3d-app .f3-stats{position:absolute;top:56px;left:0;right:0;display:flex;height:28px;gap:4px;pointer-events:none}
 #farm3d-app .f3-stats>span{display:flex;flex:1;align-items:center;gap:3px;min-width:0;min-height:28px;padding:2px 4px;border-radius:8px;line-height:1.2}
 #farm3d-app .f3-stats>span small{font-size:10px}
 #farm3d-app .f3-stats>span b{font-size:12px;white-space:nowrap}
 #farm3d-app .f3-stats .f3-stat-icon,#farm3d-app .f3-stats .f3-ui-art{position:static;width:18px;height:18px;flex:none;margin:0;transform:none}
 #farm3d-app .f3-stats .f3-stamina-card meter{display:none}
 #farm3d-app .f3-stats .f3-level{display:none}
 #farm3d-app .f3-crop-picker{top:calc(max(8px,env(safe-area-inset-top)) + 92px);left:8px;right:8px;width:auto;min-height:56px;padding:2px;gap:2px;transform:none}
 #farm3d-app .f3-crop-picker>button{flex:1;min-width:48px;min-height:48px;padding:1px 3px;font-size:11px}
 #farm3d-app .f3-crop-picker .f3-ui-art{width:24px;height:24px}
 #farm3d-app .f3-garden-menu-toggle{left:8px;top:calc(max(8px,env(safe-area-inset-top)) + 156px);width:88px;gap:4px;font-size:12px}
 #farm3d-app .f3-garden-menu{left:8px;top:calc(max(8px,env(safe-area-inset-top)) + 212px);width:min(344px,calc(100vw - 16px));max-height:calc(100dvh - 236px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 #farm3d-app .f3-inspector,#farm3d-app .f3-inspector.collapsed{top:calc(max(8px,env(safe-area-inset-top)) + 156px);left:104px;right:8px;bottom:auto;width:auto;min-width:0;min-height:100px;max-height:100px;overflow-y:auto;transform:none;transition:none}
 #farm3d-app .f3-inspector:not(.collapsed){height:max(100px,min(176px,calc(100dvh - 524px - env(safe-area-inset-top) - env(safe-area-inset-bottom))));max-height:max(100px,min(176px,calc(100dvh - 524px - env(safe-area-inset-top) - env(safe-area-inset-bottom))))}
 #farm3d-app .f3-inspector>header{position:relative;top:auto;display:flex;min-height:48px;height:48px;padding:0 4px;gap:2px}
 #farm3d-app .f3-inspector>header span{min-width:0;line-height:1.2}
 #farm3d-app .f3-inspector>header small{font-size:9px;line-height:1.3}
 #farm3d-app .f3-inspector>header b{font-size:12px;line-height:1.3}
 #farm3d-app .f3-inspector>header button{width:48px;height:48px;min-width:48px;min-height:48px}
 #farm3d-app .f3-inspector>.f3-next-step,#farm3d-app .f3-inspector.collapsed>.f3-next-step{display:block;margin:0;padding:0;border:0;border-radius:0}
 #farm3d-app .f3-inspector>.f3-next-step>summary{display:grid;gap:0;min-height:48px;padding:3px 6px;line-height:1.3}
 #farm3d-app .f3-inspector>.f3-next-step>summary span{font-size:9px;line-height:1.3}
 #farm3d-app .f3-inspector>.f3-next-step>summary b{font-size:13px;line-height:1.4}
 #farm3d-app .f3-inspector-body{padding:6px}
 #farm3d-app #f3-toast{position:absolute;top:auto;right:8px;bottom:calc(184px + env(safe-area-inset-bottom));left:auto;transform:none;display:flex;flex-flow:column nowrap;align-items:stretch;width:min(198px,calc(100vw - 114px));min-height:82px;max-height:100px;padding:6px;gap:2px;text-align:left}
 #farm3d-app #f3-toast[hidden]{display:none}
 #farm3d-app #f3-toast-copy{flex:1 1 auto;min-height:18px;max-height:36px}
 #farm3d-app #f3-toast-portrait{position:absolute;top:6px;left:6px;width:24px;height:32px}
 #farm3d-app #f3-toast:has(#f3-toast-portrait:not([hidden]))>#f3-toast-copy{padding-left:30px}
 #farm3d-app #f3-mentor-prompt{position:absolute;left:auto;right:8px;bottom:calc(184px + env(safe-area-inset-bottom));top:auto;transform:none;width:168px;min-width:0;padding:0;gap:0}
 #farm3d-app #f3-mentor-prompt>span{display:none}
 #farm3d-app:has(#f3-toast:not([hidden])) #f3-mentor-prompt{z-index:9;right:auto;left:calc(100vw - min(198px,calc(100vw - 114px)) - 1px);bottom:calc(191px + env(safe-area-inset-bottom));width:50px;min-width:50px}
 #farm3d-app #f3-mentor-prompt>button{width:100%;min-width:48px;min-height:48px;padding:2px;font-size:10px;line-height:1.2;white-space:normal}
 #farm3d-app:has(#f3-mentor-prompt:not([hidden])) #f3-toast>.f3-toast-actions{padding-left:54px}
 #farm3d-app #f3-mentor-prompt kbd{display:none}
 #farm3d-app .f3-hud-layout #f3-recovery{top:156px;left:96px;right:0;bottom:auto;width:auto;max-width:none;min-height:50px;max-height:50px;padding:0 4px;gap:6px;transform:none;pointer-events:auto}
 #farm3d-app:has(#f3-recovery:not([hidden])) .f3-inspector{top:calc(max(8px,env(safe-area-inset-top)) + 210px)}
 #farm3d-app #f3-recovery-copy{min-width:0;max-height:46px;overflow-y:auto;touch-action:pan-y;pointer-events:auto}
 #farm3d-app #f3-recovery-dismiss{flex:none;width:64px;min-width:64px;height:48px;min-height:48px;padding:2px;font-size:14px}
}

@media (max-height:700px) and (max-width:820px) and (orientation:portrait){
 #farm3d-app #f3-toast{width:calc(100vw - 114px);min-height:60px;max-height:60px;flex-flow:row nowrap;align-items:center;gap:6px;padding:5px 6px}
 #farm3d-app #f3-toast-copy{min-height:18px;max-height:48px;padding-left:0}
 #farm3d-app #f3-toast-portrait{position:static;flex:none;width:24px;height:32px}
 #farm3d-app #f3-toast:has(#f3-toast-portrait:not([hidden]))>#f3-toast-copy{padding-left:0}
 #farm3d-app:has(#f3-mentor-prompt:not([hidden])) #f3-toast{flex-flow:column nowrap;align-items:stretch;min-height:82px;max-height:82px;gap:2px;padding:6px}
 #farm3d-app:has(#f3-mentor-prompt:not([hidden])) #f3-toast-copy{min-height:18px;max-height:18px}
 #farm3d-app:has(#f3-mentor-prompt:not([hidden])) #f3-mentor-prompt{left:113px}
}
@media (max-height:500px) and (orientation:landscape){
 #farm3d-app .f3-topbar{top:max(8px,env(safe-area-inset-top));left:8px;right:8px;height:48px;gap:8px}
 #farm3d-app .f3-brand{flex:none;min-width:0;width:164px;height:48px;padding:2px 5px;gap:4px}
 #farm3d-app .f3-brand img{width:30px;height:34px}
 #farm3d-app .f3-brand b{font-size:14px}
 #farm3d-app .f3-brand #f3-mobile-weather{font-size:10px}
 #farm3d-app .f3-top-actions{gap:4px}
 #farm3d-app .f3-top-actions>.f3-icon-button{width:48px;height:48px}
 #farm3d-app .f3-stats{position:absolute;top:0;left:172px;right:160px;display:flex;height:48px;gap:4px;pointer-events:none}
 #farm3d-app .f3-stats>span{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;flex-wrap:wrap;gap:1px 3px;padding:2px;font-size:10px}
 #farm3d-app .f3-stats>span small{font-size:10px}
 #farm3d-app .f3-stats>span b{font-size:12px}
 #farm3d-app .f3-stats .f3-stat-icon,#farm3d-app .f3-stats .f3-ui-art{position:static;width:18px;height:18px;margin:0;transform:none}
 #farm3d-app .f3-stats .f3-stamina-card meter,#farm3d-app .f3-stats .f3-level{display:none}
 #farm3d-app .f3-garden-menu-toggle{left:8px;top:64px;width:112px}
 #farm3d-app .f3-crop-picker{left:128px;right:184px;top:64px;width:auto;min-height:48px;transform:none;padding:0;gap:2px}
 #farm3d-app .f3-crop-picker>button{flex:1;min-width:48px;min-height:48px;padding:1px 2px;font-size:10px}
 #farm3d-app .f3-crop-picker .f3-ui-art{width:20px;height:20px}
 #farm3d-app .f3-context-stack{position:absolute;z-index:4;left:auto;right:8px;top:64px;bottom:calc(76px + env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:flex-start;gap:4px;width:168px;min-height:0;pointer-events:none}
 #farm3d-app .f3-inspector,#farm3d-app .f3-inspector.collapsed,#farm3d-app .f3-inspector:not(.collapsed){position:relative;inset:auto;transform:none;flex:0 0 100px;width:100%;min-width:0;height:100px;min-height:100px;max-height:100px;overflow-y:auto;pointer-events:auto;transition:none}
 #farm3d-app .f3-inspector>header{position:relative;top:auto;display:flex;min-height:48px;height:48px;padding:0 4px;gap:2px}
 #farm3d-app .f3-inspector>header span{min-width:0;line-height:1.2}
 #farm3d-app .f3-inspector>header small{font-size:9px;line-height:1.2}
 #farm3d-app .f3-inspector>header b{font-size:12px;line-height:1.3}
 #farm3d-app .f3-inspector>header button{width:48px;min-width:48px;height:48px;min-height:48px}
 #farm3d-app .f3-inspector>.f3-next-step,#farm3d-app .f3-inspector.collapsed>.f3-next-step{display:block;margin:0;padding:0;border:0;border-radius:0}
 #farm3d-app .f3-inspector>.f3-next-step>summary{display:grid;gap:0;min-height:48px;padding:3px 6px;line-height:1.3}
 #farm3d-app .f3-inspector>.f3-next-step>summary span{font-size:9px;line-height:1.3}
 #farm3d-app .f3-inspector>.f3-next-step>summary b{font-size:13px;line-height:1.4}
 #farm3d-app .f3-inspector-body{padding:6px}
 #farm3d-app #f3-toast{position:relative;inset:auto;transform:none;flex:0 0 74px;display:flex;flex-flow:column nowrap;align-items:stretch;width:100%;min-width:0;min-height:74px;max-height:74px;padding:2px 6px;gap:2px;text-align:left}
 #farm3d-app #f3-toast[hidden]{display:none}
 #farm3d-app #f3-toast-copy{flex:1 1 auto;min-height:18px;max-height:18px}
 #farm3d-app #f3-toast-portrait{position:absolute;top:2px;left:6px;width:24px;height:32px}
 #farm3d-app #f3-toast:has(#f3-toast-portrait:not([hidden]))>#f3-toast-copy{padding-left:30px}
 #farm3d-app #f3-mentor-prompt{position:relative;inset:auto;transform:none;flex:none;width:100%;min-width:0;padding:0;gap:0;pointer-events:none}
 #farm3d-app #f3-mentor-prompt>span,#farm3d-app #f3-mentor-prompt kbd{display:none}
 #farm3d-app #f3-mentor-prompt>button{width:100%;min-height:48px;padding:2px;font-size:10px;line-height:1.2;white-space:normal}
 #farm3d-app:has(#f3-toast:not([hidden])) #f3-mentor-prompt{position:absolute;z-index:9;left:7px;right:auto;top:126px;bottom:auto;width:50px;min-width:50px;border-width:1px}
 #farm3d-app:has(#f3-mentor-prompt:not([hidden])) #f3-toast>.f3-toast-actions{padding-left:54px}
 #farm3d-app .f3-tools{left:96px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto;transform:none;grid-template-columns:repeat(8,minmax(48px,1fr));gap:4px;padding:4px;border-width:2px}
 #farm3d-app .f3-tools>button{height:48px;min-height:48px;padding:1px;font-size:10px;gap:0}
 #farm3d-app .f3-tools>button .f3-ui-art,#farm3d-app .f3-tools>button svg,#farm3d-app .f3-tools>button .f3-rice-gate-art{width:27px;height:27px}
 #farm3d-app .f3-tools>button:before{top:2px;left:2px;right:2px;height:28px}
 #farm3d-app #f3-joystick{left:8px;bottom:calc(8px + env(safe-area-inset-bottom));width:72px;height:72px}
 #farm3d-app .f3-garden-menu{left:96px;right:184px;top:64px;bottom:calc(76px + env(safe-area-inset-bottom));width:auto;max-height:none}
 #farm3d-app #f3-garden-menu .f3-world-actions{grid-auto-rows:minmax(48px,auto)}
 #farm3d-app #f3-garden-menu .f3-world-actions>button{min-height:48px;font-size:11px}
 #farm3d-app .f3-hud-layout #f3-recovery{position:relative;inset:auto;grid-area:2/2/3/3;align-self:start;justify-self:stretch;width:auto;max-width:none;min-height:50px;max-height:50px;padding:0 4px;gap:6px;transform:none;pointer-events:auto}
 #farm3d-app #f3-recovery-copy{min-width:0;max-height:46px;overflow-y:auto;touch-action:pan-y;pointer-events:auto}
 #farm3d-app #f3-recovery-dismiss{flex:none;width:64px;min-width:64px;height:48px;min-height:48px;padding:2px;font-size:14px}
}

/* Shared feedback belongs to the dialog's scroll flow while a panel is open. */
#farm3d-app #f3-dialog[aria-hidden="false"] #f3-toast{
 position:relative;inset:auto;z-index:auto;transform:none;display:flex;flex:0 0 auto;
 flex-flow:row wrap;align-items:center;gap:8px;width:100%;min-width:0;max-width:none;
 height:auto;min-height:0;max-height:none;margin:0 0 16px;padding:12px;
 overflow:visible;text-align:left;pointer-events:auto;box-sizing:border-box;
}
#farm3d-app #f3-dialog[aria-hidden="false"] #f3-toast[hidden]{display:none}
#farm3d-app #f3-dialog[aria-hidden="false"] #f3-toast #f3-toast-copy{
 flex:1 1 140px;min-width:0;height:auto;min-height:0;max-height:none;padding:0;
 overflow:visible;line-height:1.6;font-size:13px;overflow-wrap:anywhere;
}
#farm3d-app #f3-dialog[aria-hidden="false"] #f3-toast #f3-toast-portrait{
 position:static;inset:auto;flex:none;width:36px;height:44px;
}
#farm3d-app #f3-dialog[aria-hidden="false"] #f3-toast>.f3-toast-actions{
 flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;
 width:auto;min-width:0;max-width:100%;margin-left:auto;padding:0;
}
#farm3d-app #f3-dialog[aria-hidden="false"] .f3-dialog-card{scroll-padding-block:110px 16px}

/* Status values get their own row; these readouts are not touch targets. */
@media (max-width:820px) and (orientation:portrait), (max-height:500px) and (orientation:landscape){
 #farm3d-app .f3-stats{display:grid;grid-template-columns:minmax(48px,.6fr) minmax(66px,.85fr) minmax(138px,1.55fr);grid-template-rows:minmax(0,1fr);gap:4px}
 #farm3d-app .f3-stats>span[data-ui-art]{display:grid;grid-template-columns:18px max-content;grid-template-rows:15.5px 17px;align-content:center;justify-content:center;gap:0 3px;min-height:0;height:100%;padding:0 4px;box-sizing:border-box}
 #farm3d-app .f3-stats>span[data-ui-art]>.f3-ui-art,#farm3d-app .f3-stats>span[data-ui-art]>.f3-stat-icon{grid-column:1;grid-row:1;width:16px;height:16px}
 #farm3d-app .f3-stats>span[data-ui-art]>small{grid-column:2;grid-row:1;overflow:visible;line-height:1.55}
 #farm3d-app .f3-stats>span[data-ui-art]>b{grid-column:1/-1;grid-row:2;justify-self:center;line-height:1.4}
}
@media (max-width:820px) and (orientation:portrait){
 #farm3d-app .f3-stats{height:36px}
}
@media (max-height:500px) and (orientation:landscape){
 #farm3d-app .f3-brand{width:124px}
 #farm3d-app .f3-stats{left:132px}
}
/* Keep the title whole on narrow phones without changing modal focus order. */
@media (max-width:480px) and (orientation:portrait){
 #farm3d-app .f3-dialog-card>header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center}
 #farm3d-app .f3-dialog header .f3-dialog-heading{display:contents}
 #farm3d-app #f3-dialog-kicker{grid-column:1;grid-row:1;line-height:1.55}
 #farm3d-app .f3-dialog-actions{grid-column:2;grid-row:1}
 #farm3d-app #f3-dialog-title{grid-column:1/-1;grid-row:2;margin:0;line-height:1.55;overflow-wrap:break-word}
}
/* Short landscape phones keep all eight tools visible, including rest. */
@media (min-width:480px) and (max-width:567px) and (max-height:500px) and (orientation:landscape){
 #farm3d-app .f3-brand{position:relative;width:64px;justify-content:center;padding:2px 3px 14px}
 #farm3d-app .f3-brand img{width:28px;height:28px}
 #farm3d-app .f3-brand>span{display:contents}
 #farm3d-app .f3-brand b{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #farm3d-app .f3-brand #f3-mobile-weather{position:absolute;left:0;right:0;bottom:1px;font-size:8px;line-height:1.55;text-align:center;white-space:nowrap}
 #farm3d-app .f3-stats{left:72px;grid-template-columns:minmax(48px,.6fr) minmax(66px,.85fr) minmax(110px,1.55fr)}
 #farm3d-app .f3-stats>span:nth-child(3){grid-template-columns:18px minmax(0,1fr);grid-template-rows:15.5px auto}
 #farm3d-app .f3-stats>span:nth-child(3)>b{width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.15;text-align:center}
 #farm3d-app .f3-crop-picker{left:8px;right:184px}
 #farm3d-app .f3-garden-menu-toggle{top:120px}
 #farm3d-app .f3-tools{left:8px}
 #farm3d-app #f3-joystick{bottom:calc(76px + env(safe-area-inset-bottom))}
}

/* The canvas keeps viewport coordinates. Only the HUD follows the safe rectangle. */
.f3-hud-layout{display:contents}

@media (max-width:820px) and (orientation:portrait), (max-height:500px) and (orientation:landscape){
 #farm3d-app .f3-hud-layout{position:absolute;z-index:3;inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;gap:6px 8px;container:f3-hud / inline-size;pointer-events:none}
 #farm3d-app .f3-hud-layout .f3-topbar{grid-area:1/1/2/-1;position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;align-items:stretch;width:auto;height:auto;min-height:48px}
 #farm3d-app .f3-hud-layout .f3-brand{position:relative;inset:auto;display:flex;min-width:0;width:auto;max-width:none;height:auto;min-height:48px;padding:2px 5px;gap:4px;pointer-events:auto}
 #farm3d-app .f3-hud-layout .f3-brand>span{display:grid;min-width:0}
 #farm3d-app .f3-hud-layout .f3-brand b{position:static;width:auto;height:auto;clip-path:none;white-space:normal;line-height:1.55}
 #farm3d-app .f3-hud-layout .f3-brand #f3-mobile-weather{position:static;inset:auto;white-space:normal;line-height:1.55}
 #farm3d-app .f3-hud-layout .f3-top-actions{align-items:center;gap:4px}
 #farm3d-app .f3-hud-layout .f3-top-actions>.f3-icon-button{width:48px;height:48px}
 #farm3d-app .f3-hud-layout .f3-stats{grid-column:1/-1;position:static;inset:auto;display:grid;grid-template-columns:minmax(60px,.6fr) minmax(66px,.85fr) minmax(126px,1.55fr);grid-template-rows:auto;width:auto;height:auto;min-height:36px;gap:4px}
 #farm3d-app .f3-hud-layout .f3-stats>span[data-ui-art]{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;justify-content:normal;min-height:36px;height:auto;padding:2px 4px;gap:0 3px}
 #farm3d-app .f3-hud-layout .f3-stats>span[data-ui-art]>small{line-height:1.55;white-space:normal;overflow-wrap:anywhere}
 #farm3d-app .f3-hud-layout .f3-stats>span[data-ui-art]>b{width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4;text-align:center}
 #farm3d-app .f3-hud-layout .f3-crop-picker{grid-area:2/1/3/-1;position:relative;inset:auto;transform:none;display:grid;grid-template-columns:repeat(4,minmax(48px,1fr));width:auto;min-width:0;min-height:48px;height:auto;padding:0;gap:2px;pointer-events:auto}
 #farm3d-app .f3-hud-layout .f3-crop-picker>button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:48px;height:auto;padding:1px 2px;gap:0}
 #farm3d-app .f3-hud-layout .f3-crop-picker>button>span{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.55}
 #farm3d-app .f3-hud-layout .f3-context-stack{grid-area:3/2/4/3;position:relative;inset:auto;display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;gap:6px;width:auto;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;pointer-events:none}
 #farm3d-app .f3-hud-layout .f3-inspector,#farm3d-app .f3-hud-layout .f3-inspector.collapsed,#farm3d-app .f3-hud-layout .f3-inspector:not(.collapsed){position:relative;inset:auto;transform:none;flex:0 0 auto;width:100%;height:auto;min-height:100px;max-height:180px;pointer-events:auto}
 #farm3d-app .f3-hud-layout .f3-inspector>header{height:auto;min-height:48px;gap:2px}
 #farm3d-app .f3-hud-layout .f3-inspector>header span{line-height:1.55}
 #farm3d-app .f3-hud-layout .f3-inspector>header small,#farm3d-app .f3-hud-layout .f3-inspector>header b{line-height:1.55;overflow-wrap:anywhere}
 #farm3d-app .f3-hud-layout .f3-inspector>.f3-next-step>summary{height:auto;min-height:48px}
 #farm3d-app .f3-hud-layout .f3-garden-menu-toggle{grid-area:3/1/4/2;position:relative;inset:auto;align-self:start;justify-self:start;width:88px;min-width:48px;min-height:48px;height:auto;padding:4px;gap:4px;line-height:1.55;pointer-events:auto}
 #farm3d-app .f3-hud-layout #f3-joystick{grid-area:3/1/4/2;position:relative;inset:auto;align-self:end;justify-self:start;width:72px;height:72px;pointer-events:auto}
 #farm3d-app .f3-hud-layout .f3-tools{grid-area:4/1/5/-1;position:relative;inset:auto;transform:none;display:grid;grid-template-columns:repeat(4,minmax(48px,1fr));width:auto;min-width:0;gap:4px;padding:4px;border-width:2px;pointer-events:auto}
 #farm3d-app .f3-hud-layout .f3-tools>button{height:auto;min-height:48px;min-width:0;padding:2px;gap:0}
 #farm3d-app .f3-hud-layout .f3-tools>button>span{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.55}
 #farm3d-app .f3-hud-layout .f3-tools>button .f3-ui-art,#farm3d-app .f3-hud-layout .f3-tools>button svg{width:32px;height:32px}
 #farm3d-app .f3-hud-layout #f3-toast{position:relative;inset:auto;transform:none;flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;min-height:74px;max-height:none;padding:6px;gap:4px;pointer-events:auto}
 #farm3d-app .f3-hud-layout #f3-toast[hidden]{display:none}
 #farm3d-app .f3-hud-layout #f3-toast-copy{flex:none;min-height:18px;max-height:96px;line-height:1.55}
 #farm3d-app .f3-hud-layout #f3-toast>.f3-toast-actions{padding:0;flex-wrap:wrap;gap:4px}
 #farm3d-app .f3-hud-layout #f3-mentor-prompt{position:relative;inset:auto;transform:none;flex:0 0 auto;width:100%;min-width:0;pointer-events:auto}
 #farm3d-app .f3-hud-layout #f3-mentor-prompt>button{height:auto;min-height:48px;line-height:1.55}
 #farm3d-app .f3-hud-layout .f3-garden-menu{inset:0;bottom:auto;align-self:start;width:min(420px,100%);max-height:100%;pointer-events:auto}
 #farm3d-app .f3-hud-layout .f3-menu-scrim{position:fixed;inset:0;pointer-events:auto}
}
/* Short landscape reserves a world band; longer text scrolls instead of collapsing it. */
@media (max-height:500px) and (orientation:landscape){
 #farm3d-app .f3-hud-layout{grid-template-columns:64px minmax(136px,1fr) 168px;grid-template-rows:auto minmax(80px,1fr) auto;gap:4px 8px}
 #farm3d-app .f3-hud-layout .f3-topbar{grid-template-columns:max-content minmax(0,1fr) auto}
 #farm3d-app .f3-hud-layout .f3-brand{display:grid;grid-template-columns:1fr;grid-template-rows:24px auto;justify-items:center;align-content:center;min-width:60px;padding:2px 3px;gap:0}
 #farm3d-app .f3-hud-layout .f3-brand img{width:24px;height:24px}
 #farm3d-app .f3-hud-layout .f3-brand>span{display:contents}
 #farm3d-app .f3-hud-layout .f3-brand b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #farm3d-app .f3-hud-layout .f3-brand #f3-mobile-weather{position:static;font-size:10px;white-space:nowrap;line-height:1.55}

 #farm3d-app .f3-hud-layout .f3-stats{grid-column:auto;pointer-events:auto;display:flex;justify-content:flex-start;align-items:stretch;min-width:0;min-height:48px;gap:4px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:var(--f3-gold) #0b3c25}
 #farm3d-app .f3-hud-layout .f3-stats>span[data-ui-art]{flex:0 0 auto;min-width:max-content;grid-template-columns:18px max-content;grid-template-rows:auto auto;min-height:48px}
 #farm3d-app .f3-hud-layout .f3-stats>span[data-ui-art]>small,#farm3d-app .f3-hud-layout .f3-stats>span[data-ui-art]>b{width:auto;max-width:none;white-space:nowrap;overflow:visible;overflow-wrap:normal;line-height:1.55}
 #farm3d-app .f3-hud-layout .f3-stats:focus-visible{outline:3px solid var(--f3-gold-hi);outline-offset:1px}
 #farm3d-app .f3-hud-layout .f3-context-stack{grid-area:2/3/3/4;justify-content:flex-start;pointer-events:none}
 #farm3d-app .f3-hud-layout .f3-inspector.collapsed{height:auto;min-height:48px;max-height:none}
 #farm3d-app .f3-hud-layout .f3-inspector.collapsed>.f3-next-step{display:none}
 #farm3d-app .f3-hud-layout .f3-garden-menu-toggle{grid-area:2/1/3/2;align-self:start;justify-self:start;width:56px;height:48px;min-height:48px;padding:0;font-size:0;line-height:1}
 #farm3d-app .f3-hud-layout .f3-garden-menu-toggle>span{font-size:24px;line-height:1}
 #farm3d-app .f3-hud-layout #f3-joystick{grid-area:3/1/4/2;align-self:end;justify-self:start;margin:0;width:56px;height:56px}
 /* One touch-scroll row gives the garden more room without shrinking its tools. */
 #farm3d-app .f3-hud-layout .f3-tools{grid-area:3/2/4/4;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(80px,1fr);grid-template-rows:minmax(48px,1fr);height:72px;min-height:72px;padding:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scroll-padding-inline:6px;scrollbar-width:thin;scrollbar-color:var(--f3-gold) #0b3c25}
 #farm3d-app .f3-hud-layout .f3-tools::-webkit-scrollbar{height:6px}
 #farm3d-app .f3-hud-layout .f3-tools::-webkit-scrollbar-thumb{border-radius:6px;background:var(--f3-gold)}
 #farm3d-app .f3-hud-layout .f3-tools::-webkit-scrollbar-track{background:#0b3c25}
 #farm3d-app .f3-hud-layout .f3-tools>button{padding:0 2px;scroll-margin-inline:6px}
 #farm3d-app .f3-hud-layout .f3-tools>button .f3-ui-art,#farm3d-app .f3-hud-layout .f3-tools>button svg{width:24px;height:24px}
 #farm3d-app .f3-hud-layout #f3-toast{flex:0 0 auto;min-height:74px;padding:2px 6px;gap:2px}
 #farm3d-app .f3-hud-layout #f3-toast-copy{min-height:1.55em;max-height:1.55em;overflow-y:auto;touch-action:pan-y}
 #farm3d-app .f3-hud-layout #f3-toast>.f3-toast-actions{flex-wrap:nowrap}
 #farm3d-app .f3-hud-layout #f3-menu-crops .f3-crop-picker{grid-area:auto;width:100%;margin:0}

 #farm3d-app .f3-hud-layout .f3-garden-menu>header{position:sticky;top:0;z-index:2;background:#0b3c25}
}

/* Narrow portrait retains reading space when Thai labels grow to two lines. */
.f3-startup-status{z-index:8;max-height:calc(100dvh - 32px);overflow:auto;line-height:1.6}
.f3-startup-status[hidden],.f3-startup-status [hidden]{display:none}
.f3-startup-status small{display:block;margin:8px 0;color:var(--f3-muted)}
.f3-startup-status button{min-height:48px;padding:8px 16px;border:1px solid var(--f3-gold);border-radius:10px;background:var(--f3-green);color:white}
.f3-startup-status a{display:block;margin-top:10px;background:transparent;color:var(--f3-green);text-decoration:underline}
.f3-startup-status button:focus-visible,.f3-startup-status a:focus-visible{outline:3px solid var(--f3-gold);outline-offset:3px}
@media (max-width:359px) and (orientation:portrait){
 #farm3d-app .f3-hud-layout .f3-stats{grid-template-columns:minmax(60px,.6fr) minmax(max-content,.85fr) minmax(126px,1.55fr)}
 #farm3d-app .f3-hud-layout #f3-stamina{white-space:nowrap}
 #farm3d-app .f3-hud-layout .f3-tools{padding:2px}
 #farm3d-app .f3-hud-layout .f3-tools>button{padding:0 2px}
 #farm3d-app .f3-hud-layout .f3-tools>button .f3-ui-art,#farm3d-app .f3-hud-layout .f3-tools>button svg{width:24px;height:24px}
 #farm3d-app .f3-hud-layout #f3-toast-copy{min-height:1.55em;max-height:1.55em;overflow-y:auto;touch-action:pan-y}
}

@media (max-width:359px) and (max-height:650px) and (orientation:portrait){
 #farm3d-app .f3-hud-layout .f3-tools{display:flex;flex-wrap:nowrap;max-width:100%;padding:4px;gap:4px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scroll-padding:4px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#d4ad4c #0b3c25}
 #farm3d-app .f3-hud-layout .f3-tools>button{flex:0 0 88px;min-width:88px;min-height:72px;height:auto;scroll-snap-align:start}
 #farm3d-app .f3-hud-layout .f3-tools::-webkit-scrollbar{height:6px}
 #farm3d-app .f3-hud-layout .f3-tools::-webkit-scrollbar-track{background:#0b3c25;border-radius:4px}
 #farm3d-app .f3-hud-layout .f3-tools::-webkit-scrollbar-thumb{background:#d4ad4c;border-radius:4px}
 #farm3d-app .f3-hud-layout .f3-inspector.collapsed{height:auto;min-height:48px;max-height:none}
 #farm3d-app .f3-hud-layout .f3-inspector.collapsed>.f3-next-step{display:none}
}
