/* First Session & Direct Play. Art and hit geometry stay independent. */
#mobile-farm-name,.mobile-level{display:none}
.farm-tools{display:none}
.onboarding{position:absolute!important;inset:10px auto auto 10px!important;transform:none!important;display:flex;align-items:center;gap:3px;width:390px;max-width:calc(100% - 75px);min-height:60px;max-height:76px;padding:0 4px 0 10px!important;border:1px solid #ad965c;border-radius:12px;background:#f2e4c4f5;color:#3b4939;z-index:63;box-shadow:0 5px 18px #153c2424;text-align:left;pointer-events:auto}
.onboarding:empty{display:none!important}
.guide-main{flex:1;min-width:0;min-height:54px!important;padding:6px 3px;background:none;text-align:left;line-height:1.25;font-size:11px}
.guide-main b{display:block;font:600 15px Georgia,serif;white-space:normal;margin:0 0 3px}
.guide-main small{display:block;font-size:10px}
.guide-main .guide-count{float:right;font:600 11px 'Trebuchet MS',sans-serif;margin:2px 5px 0}
.guide-close{background:none;font-size:23px;min-width:48px!important;min-height:48px!important;border-radius:9px;padding:0}
.guide-close:hover{background:#d9c99e}
.farm-notice{position:absolute;inset:8px auto auto 8px;width:390px;max-width:calc(100% - 16px);padding:9px 12px;border:1px solid #ba9d59;background:#f3e6c9fa;color:#3e4e39;border-radius:12px;z-index:64;font-size:11px;box-shadow:0 5px 20px #132f2b30}
.farm-notice b{font:600 16px Georgia,serif}.farm-notice p{margin:4px 0;line-height:1.35}
.farm-notice .notice-actions{display:flex;gap:8px}.notice-actions button{min-height:48px;flex:1;padding:5px 9px;font-size:11px}
.ready-bubble{position:absolute;transform:translate(-50%,-100%);z-index:61;border:2px solid #e8bf64;background:#f6df9f;color:#3e513b;border-radius:50% 50% 50% 8px;width:48px;height:48px;display:grid;place-items:center;box-shadow:0 3px 12px #1b302943}
.ready-bubble .item-art{width:32px;height:32px}.ready-bubble .bubble-count{position:absolute;bottom:-5px;right:-5px;background:#344d3b;color:#fff0c4;border-radius:50%;width:21px;height:21px;font-size:11px;display:grid;place-items:center}
.ready-bubble:focus-visible{outline:3px solid #fff0ba;outline-offset:3px}
.object.field,.object.field>.field-hit{touch-action:none}
.object.field.browser-edge,.object.field.browser-edge>.field-hit,.world.editing .object.field,.world.editing .object.field>.field-hit{touch-action:pan-x pan-y pinch-zoom}
.object.gesture-selected>svg{filter:brightness(1.25) drop-shadow(0 0 4px #ffe08a)}
.object.gesture-selected .field-outline{opacity:1;stroke:#ffe39a;stroke-width:2}
.object.tutorial-target>svg{filter:drop-shadow(0 0 5px #f7d18180)}
.object.working .mill-sails{animation:mill-turn 12s linear infinite}
.object.field.ready>svg{animation:ripe-glow 5s ease-in-out infinite}
@keyframes mill-turn{to{transform:rotate(360deg)}}@keyframes ripe-glow{50%{filter:brightness(1.09)}}
.bottom-nav button{position:relative;min-height:48px!important}
.nav-badge{position:absolute;right:13%;top:2px;min-width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#426047;color:#fff1b7;font-size:10px}
.nav-badge.dot{width:9px;min-width:9px;height:9px;top:7px;background:#ab7538}
.map-action-badge{position:absolute;transform:translate(-50%,-100%);z-index:30;pointer-events:none;width:26px;height:26px;background:#eed18b;color:#354d3d;border-radius:50%;display:grid;place-items:center;font-size:12px;box-shadow:0 0 14px #fbd78455}
.level-up{position:absolute;left:50%;top:90px;transform:translateX(-50%);z-index:65;display:flex;align-items:center;gap:9px;pointer-events:none;background:#f7df9a;color:#354d3d;padding:9px 18px;border-radius:16px;box-shadow:0 3px 25px #302b3244}
.level-up .item-art{width:42px;height:42px}.level-up b,.level-up small{display:block;white-space:nowrap}
.capacity-hint{position:absolute;right:8px;bottom:76px;z-index:62;background:#f1dcac;color:#624c2d;border:1px solid #bda263;border-radius:10px;font-size:10px;padding:6px}
.production-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin:0 0 12px}
.production-summary button{min-height:48px;padding:7px 10px;font-size:12px}
.queue-strip{display:flex;gap:7px;overflow-x:auto;padding:1px 0 5px}
.queue-slot{flex:1 0 78px;min-width:78px;border:1px solid #c8b889;border-radius:11px;background:#e7ddbf;padding:6px;text-align:center;display:flex;align-items:center;flex-direction:column;font-size:11px}
.queue-slot .item-art{width:36px;height:36px}.queue-slot small{font-size:10px}.queue-slot.ready{background:#e0deb0;border-color:#9a9958}.queue-slot.empty{justify-content:center;color:#8b8064;background:#eee5cf}.queue-slot.empty>span{font-size:23px}
.recipe-list{display:grid;gap:9px}.recipe-button{display:flex;align-items:center;gap:10px;width:100%;min-height:80px;padding:12px;text-align:left;border:1px solid #aab179;border-radius:13px;background:#f9f0d9;color:#40503c}
.recipe-button>.item-art{width:45px;height:45px;flex-shrink:0}.recipe-button>span:nth-child(2){flex:1;min-width:0}
.recipe-button b{font:600 19px Georgia,serif}.recipe-button small{display:block;font-size:11px;margin-top:3px}
.recipe-button.unavailable{border-color:#c5b89a;background:#e9e0cd;color:#6e6753}
.recipe-plus{font-size:30px;color:#557849}.recipe-reason{font-size:10px!important;color:#796748}
.production-options{margin-top:14px}.production-options>button{margin:5px 0;width:100%}
#sheet[data-panel=building] .sheet-header{position:sticky;top:-25px;background:var(--paper);z-index:3;padding-top:5px}
.scenario-preview{margin-top:10px}.more-templates{margin-top:12px}
.order-card .primary,.crop-choice{min-height:48px!important;min-width:48px!important}
@media(max-width:600px){
 .app{padding:env(safe-area-inset-top) 8px 0;height:100dvh;min-height:0}
 .topbar{height:52px;gap:2px;flex-shrink:0;border:0}
 .portal-link{width:44px;min-width:44px}.wordmark{font-size:20px;letter-spacing:-.7px;flex:1;position:relative}
 .wordmark>small,.brand-leaf{display:none}
 #mobile-farm-name{display:block;position:absolute;inset:-5px 0 auto;width:100%;height:48px;background:none;padding:29px 0 0;font:10px 'Trebuchet MS',sans-serif;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .header-actions{gap:4px}.header-actions .icon-button{width:44px;height:44px}
 .main{padding:0!important;min-height:0}.farm-heading,.farm-footer,.hud .inventory-button{display:none}
 .hud{gap:5px;margin:0 0 4px;min-height:44px;height:44px}
 .mobile-level{display:flex;align-items:center;gap:4px;background:#dce1c1;border:1px solid #b3bc8c;border-radius:11px;padding:4px 8px;min-height:44px}
 .mobile-level b{font:24px Georgia,serif}.mobile-level small{font-size:8px}
 .wallet{flex:1;padding:4px 7px;gap:5px;min-height:44px;height:44px;border-radius:11px}
 .wallet .token{width:24px;height:24px}.wallet b{font-size:14px}.wallet small{display:block;font-size:7px}.wallet.seed small{font-size:6.5px;letter-spacing:0}
 .farm-stage{margin:0;border-radius:14px;min-height:90px;height:auto;flex:1}
 .viewport{inset:0!important;width:auto}
 .weather{display:none}
 .onboarding{inset:8px 8px auto!important;width:auto;max-width:none;min-height:60px;max-height:76px}
 .guide-main b{font-size:14px}.guide-main small{font-size:10px}
 .camera-button{inset:auto 8px 72px auto!important;width:44px;height:44px;z-index:62}
 .crop-toolbar{display:block;inset:auto 8px 9px!important;transform:none!important;width:auto;max-width:none;padding:4px;border-radius:12px}
 .seed-toggle{display:flex;align-items:center;gap:7px;min-height:48px!important;width:100%;padding:3px 8px;text-align:left;background:transparent;font-size:11px}
 .seed-toggle svg{width:29px;height:32px}.seed-toggle span:nth-child(2){flex:1}
 .seed-options{display:none}.seed-options.expanded{display:flex;overflow-x:auto;padding-top:4px;scrollbar-width:thin}
 .seed-options .toolbar-label{display:none}.seed-options .crop-choice{flex:0 0 48px;min-height:58px}
 .bottom-nav{margin:0 -8px;padding:3px 5px max(3px,env(safe-area-inset-bottom));gap:0;min-height:54px}
 .bottom-nav button{min-height:48px;flex-direction:column;gap:1px;padding:4px 0;font-size:9px}.bottom-nav .icon{width:20px;height:20px}
 .toast{bottom:120px;padding:9px 14px}
 .capacity-hint{left:8px;right:auto;bottom:72px}
 #sheet[data-panel=building]{inset:auto 0 0;margin:0;width:100vw;max-width:100vw;max-height:70dvh;min-height:50dvh;height:auto;padding:16px 16px max(16px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
 #sheet[data-panel=building] .sheet-header{top:-16px;margin-bottom:12px}
 #sheet[data-panel=building] .sheet-header h2{font-size:25px}
 #sheet[data-panel=building] .sheet-header .eyebrow{display:none}
 .recipe-button{padding:9px;min-height:82px}
 .production-summary{font-size:11px}.production-summary button{font-size:10px}
}
@media(max-height:500px) and (min-width:601px) and (max-width:950px){
 .app{padding:env(safe-area-inset-top) 10px 0}.topbar{height:48px}.farm-heading,.farm-footer{display:none}
 .main{padding:0!important}.hud{position:absolute;top:-48px;left:120px;right:155px;height:44px;margin:0;justify-content:center}
 .hud .inventory-button{display:none}.hud .wallet{padding:3px 8px;min-height:40px}.wordmark{visibility:hidden}
 .mobile-level{display:flex;gap:5px;align-items:center;border-radius:10px;padding:4px 8px;background:#e1d9bc}.mobile-level small{font-size:8px}
 .farm-stage{margin:0;min-height:80px}.onboarding{display:flex;width:290px;max-width:calc(100% - 160px);inset:6px auto auto 6px!important;min-height:54px}.guide-main{min-height:50px!important}
 .farm-notice{width:340px}.bottom-nav{padding:2px;min-height:52px}.bottom-nav button{min-height:48px!important;padding:4px 12px}
 .level-up{top:73px}.farm-notice{font-size:10px}.bottom-nav{margin:0 -10px}
 .viewport{right:167px}.camera-button{right:173px}.seed-options{grid-template-columns:repeat(3,48px)}.seed-options .crop-choice{width:48px}
}
@media(prefers-reduced-motion:reduce){.object.working .mill-sails,.object.field.ready>svg{animation:none!important}.level-up{transition:none}}
.guide-dock{flex-shrink:0}.guide-dock:empty{display:none}
.guide-dock .onboarding,.guide-dock .farm-notice{position:relative!important;inset:auto!important;transform:none!important;width:100%;max-width:none;max-height:none;margin-bottom:5px}
