/* Compact HUD: reserve the middle of the screen for the shop. */
.farm-home .farm-topbar{inset:calc(10px + env(safe-area-inset-top)) 16px auto;gap:8px}
.farm-home .farm-topbar .farm-brand{flex:0 1 270px;max-width:32%;min-height:54px;padding:6px 12px;gap:8px;border-radius:18px}
.farm-home .farm-brand strong{font-size:19px}.farm-home .farm-brand small{display:none}.farm-home .farm-brand .brand-mark{width:31px;height:33px}
.farm-home .farm-topbar .farm-toolbar{display:block;min-height:54px;padding:3px 5px;border-radius:16px;backdrop-filter:none}
.farm-home .farm-topbar #farm-filter-toggle{display:block;min-width:44px;min-height:44px;padding:4px 7px;margin:0;position:static;width:auto;border:0;border-radius:12px;box-shadow:none;background:#e8edd6;color:#596e48;font-size:11px;font-weight:700}
.farm-home .farm-topbar #farm-filter-body{position:absolute;top:calc(100% + 6px);right:0;left:auto;width:min(420px,100%);max-height:calc(100dvh - 210px);overflow:auto;margin:0;padding:12px;background:#fff9eafa;border:2px solid #fffced;border-radius:17px;box-shadow:0 4px 0 #b6a67d}
.farm-home .farm-topbar .category-tabs a{min-height:44px}.farm-home .farm-topbar .farm-context-row{padding-right:0}
.farm-home .farm-topbar .header-link{min-height:44px;padding:10px;border-radius:14px;font-size:12px}
.farm-home .farm-sidebar,.farm-home .farm-screen:not([data-view="3d"]) .farm-sidebar{left:16px;right:16px;gap:6px;align-items:center;grid-template-columns:minmax(130px,1fr) 152px minmax(252px,1.3fr) 64px 48px;grid-template-areas:"weather clock floors tools background"}
.farm-home .farm-screen:not([data-view="3d"]) .farm-sidebar{grid-template-columns:minmax(130px,1fr) 152px 48px;grid-template-areas:"weather clock background"}
.farm-home .farm-sidebar .farm-weather-card,.farm-home .farm-sidebar .farm-day-card,.farm-home .farm-sidebar .farm-background-trigger{min-height:46px;height:46px;padding:4px 9px;gap:6px;border-radius:14px;box-shadow:0 2px 0 #b6a67d}
.farm-home .farm-weather-copy{flex:0 1 auto}.farm-home .farm-weather-copy>span,.farm-home .farm-weather-copy small{display:none}.farm-home .farm-weather-copy strong{font-size:11px}.farm-home .farm-weather-temperature{font-size:21px;margin-left:auto}
.farm-home .farm-sidebar .farm-weather-icon{display:grid;width:24px;height:27px}
.farm-home .farm-sidebar .farm-day-card{font-size:10px;justify-content:center}.farm-home .farm-sidebar .farm-day-card small{font-size:11px}.farm-home .farm-sidebar .farm-day-card svg{width:22px;height:24px}
.farm-home .farm-season-label,.farm-home .farm-time-zone{display:none}
.farm-home .farm-sidebar .store-floor-bar{min-height:46px;height:46px;padding:0 3px;gap:3px;border-radius:14px;box-shadow:0 2px 0 #b6a67d;justify-content:center}
.farm-home .farm-sidebar .floor-step{height:44px;min-height:44px;width:44px;min-width:44px;border-radius:11px}
.farm-home .farm-sidebar .floor-choice select{height:42px;min-height:42px;width:104px;padding:6px;font-size:12px;border-radius:11px}
.farm-home .farm-sidebar .floor-guide{display:none}
.farm-home .floor-effect-toggle{flex:0 0 46px;min-width:46px;min-height:44px;height:44px;padding:3px;border-radius:11px}.farm-home .floor-effect-toggle>span{font-size:8px}
.farm-home .farm-sidebar .farm-background-trigger{gap:0;font-size:8px;padding:2px}.farm-home .farm-background-trigger .background-preview{width:21px;height:20px}
.scene-tools-toggle{grid-area:tools;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;height:46px;min-width:44px;padding:2px;border:2px solid #fffced;border-radius:14px;background:#fff9eaf7;box-shadow:0 2px 0 #b6a67d;color:#566c4d;font-size:9px;font-weight:700;cursor:pointer}
.scene-tools-toggle>span:first-child{font-size:20px;line-height:1.1}.scene-tools-toggle[aria-expanded=true]{background:#dce8c7}
.scene-tools-toggle>span:last-child{white-space:nowrap;font-size:8px}
.scene-tools-toggle[hidden],.farm-screen:not([data-view="3d"]) .scene-tools-toggle{display:none}
.scene-tools-panel{position:absolute;z-index:9;top:var(--farm-content-top,128px);right:16px;width:310px;max-width:calc(100% - 24px);max-height:calc(100% - var(--farm-content-top,128px) - var(--farm-dock-space,90px));overflow:auto;padding:10px 12px;background:#fff9eafc;border:2px solid #fffced;border-radius:20px;box-shadow:0 4px 0 #b6a67d,0 10px 25px #31482f20;color:#566c4d}
.scene-tools-panel[hidden]{display:none}
.scene-tools-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px}.scene-tools-heading button{min-height:44px;min-width:60px;padding:4px 8px;font-size:11px;border:0;border-radius:10px;background:#edf0dc;color:#566c4d}
.farm-home #scene-stage .scene-tools-panel .scene-views{position:static;inset:auto;transform:none;display:flex;width:100%;max-width:none;gap:4px;margin:8px 0;padding:3px;border:0;border-radius:12px;background:#eeecd6;box-shadow:none}
.farm-home .scene-tools-panel .scene-views button{flex:1;min-width:0;min-height:44px;padding:4px;border:0;border-radius:9px;background:transparent;color:#68734f;font-size:11px;font-weight:700}
.farm-home .scene-tools-panel .scene-views button[aria-pressed=true]{background:#7f9b6d;color:#fffdf3}
.farm-home #scene-stage .scene-tools-panel .scene-controls{position:static;inset:auto;transform:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:none;max-height:none;gap:6px;margin:0;padding:0;overflow:visible}
.farm-home #scene-stage .scene-tools-panel .scene-controls button,.farm-home #scene-stage .scene-tools-panel .scene-controls #npc-pause{width:100%;height:44px;min-width:44px;min-height:44px;border-radius:12px;box-shadow:0 2px 0 #bbab7a}
.scene-tools-tip{font-size:10px;line-height:1.6;margin:10px 0 0;color:#858064}
.farm-home .farm-bottom-bar{bottom:calc(8px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);width:max-content}
.farm-home .farm-bottom-bar #scene-status{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.farm-home .farm-dock{gap:4px;padding:4px 6px;border-radius:20px}
.farm-home .farm-dock>a{flex-direction:column;gap:3px;min-width:76px;min-height:58px;padding:3px 7px;font-size:10px;border-radius:13px}
.farm-home .farm-menu-icon{width:29px;height:28px;border-radius:10px}.farm-home .farm-menu-icon svg{width:25px;height:25px}
.farm-home .farm-dock .dock-view-switch{flex:0 0 70px;justify-content:center;gap:1px;padding:2px;margin-left:2px;border-radius:12px}
.farm-home .dock-view-switch:before{content:'보기 전환';font-size:8px;color:#7b795c;line-height:1.2}
.farm-home .farm-dock .dock-view-switch button{flex:0 0 auto;min-height:44px;padding:4px;font-size:10px;background:#dce8c7;border-radius:9px}
.farm-home .dock-view-switch button[aria-pressed=true]{display:none}
.farm-home #customer-board-link,.farm-home #checkout-counter-link{min-height:44px;padding:5px 8px;font-size:10px;border-radius:12px;box-shadow:0 2px #b49a6b}
.farm-home #customer-board-link svg{width:21px;height:21px}.farm-home #checkout-counter-link{min-width:100px}
.farm-home .npc-bubble{width:180px;padding:6px 9px;font-size:11px;border-radius:14px 14px 14px 4px}.farm-home .npc-message{-webkit-line-clamp:2}
.farm-home .elevator-sign{top:calc(var(--farm-content-top,128px) + 18px)}
@media(max-width:1000px){
 .farm-home .farm-topbar .farm-brand{flex-basis:230px}.farm-home .farm-brand strong{font-size:17px}
 .farm-home .farm-sidebar{grid-template-columns:minmax(120px,1fr) 125px minmax(246px,1.3fr) 54px 44px}.farm-home .farm-sidebar .farm-weather-icon{display:none}
 .farm-home .farm-dock>a{min-width:66px;padding-inline:4px}
}
@media(max-width:700px){
 .farm-home .farm-topbar{left:8px;right:8px;gap:6px;top:calc(8px + env(safe-area-inset-top))}
 .farm-home .farm-topbar .farm-brand{flex:0 0 102px;max-width:102px;min-height:52px;padding:5px 6px;gap:5px}.farm-home .farm-brand strong{font-size:11px}.farm-home .farm-brand .brand-mark{width:23px;height:26px}
 .farm-home .farm-topbar .farm-toolbar{min-height:52px;padding:2px 4px}.farm-home .farm-topbar .catalog-search{gap:3px}.farm-home .farm-topbar .catalog-search input{font-size:16px;padding:5px}.farm-home .farm-topbar .catalog-search button{font-size:10px;padding:4px}
 .farm-home .farm-topbar #farm-filter-toggle{font-size:10px;padding:3px;min-width:36px}
 .farm-home .farm-topbar #farm-filter-body{left:0;right:0;width:auto}
 .farm-home .farm-sidebar,.farm-home .farm-screen:not([data-view="3d"]) .farm-sidebar{left:8px;right:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px 44px;grid-template-areas:"weather clock clock clock" "floors floors tools background";gap:4px}
 .farm-home .farm-screen:not([data-view="3d"]) .farm-sidebar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;grid-template-areas:"weather clock background"}
 .farm-home .farm-sidebar .farm-weather-card,.farm-home .farm-sidebar .farm-day-card{height:44px;min-height:44px;padding:3px 8px;border-radius:12px;box-shadow:none}
 .farm-home .farm-sidebar .farm-weather-card{border-color:transparent;background:#fff9eae8}.farm-home .farm-weather-temperature{font-size:18px}.farm-home .farm-weather-copy strong{font-size:10px}
 .farm-home .farm-sidebar .farm-day-card{border-color:transparent;background:#fff9eae8;justify-content:flex-end}.farm-home .farm-sidebar .farm-day-card>span{display:flex;align-items:center;gap:6px}.farm-home .farm-sidebar .farm-day-card small{font-size:10px}.farm-home .farm-sidebar .farm-day-card svg{width:18px;height:20px}.farm-home #farm-date{font-size:9px}
 .farm-home .farm-sidebar .store-floor-bar{justify-content:space-between}.farm-home .farm-sidebar .floor-choice{flex:1;min-width:0}.farm-home .farm-sidebar .floor-choice select{width:100%;min-width:70px;font-size:11px}
 .farm-home .floor-effect-toggle{flex-basis:44px;min-width:44px}.farm-home .farm-sidebar .floor-step{min-width:44px;width:44px}
 .farm-home .farm-bottom-bar{width:calc(100% - 12px);max-width:calc(100% - 12px);bottom:calc(6px + env(safe-area-inset-bottom))}
 .farm-home .farm-dock{grid-template-columns:repeat(7,minmax(0,1fr)) minmax(42px,1fr);gap:0;padding:3px 2px;border-radius:17px}
 .farm-home .farm-dock>a{min-width:0;min-height:58px;padding:3px 0;font-size:9px;gap:3px}.farm-home .farm-dock>a>span:last-child{letter-spacing:-.5px}
 .farm-home .farm-dock .dock-view-switch{min-width:0;margin:0 0 0 2px;padding:2px}.farm-home .view-label-wide{display:none}.farm-home .view-label-small{display:inline}
 .scene-tools-panel{right:8px}.farm-home #stall-list{left:8px;right:8px}
}
@media(max-width:370px){
 .farm-home .farm-topbar .farm-brand{flex-basis:76px;max-width:76px}.farm-home .farm-brand .brand-mark{display:none}
 .farm-home .farm-sidebar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 40px}.farm-home #farm-date{display:none}
 .farm-home .farm-sidebar .floor-step{display:none}.farm-home .farm-sidebar .floor-choice select{min-width:70px;font-size:11px}.farm-home .floor-effect-toggle{min-width:44px;flex-basis:44px}
 .farm-home .farm-dock>a{font-size:8px}.farm-home .farm-menu-icon{width:27px;height:27px}.farm-home .farm-dock>a>span:last-child{letter-spacing:-.7px}
}
@media(max-height:500px) and (min-width:701px){
 .farm-home .farm-topbar{top:6px}.farm-home .farm-topbar .farm-brand{min-height:48px}.farm-home .farm-topbar .farm-toolbar{min-height:48px;padding:0 4px}.farm-home .farm-top-actions{display:none}
 .farm-home .farm-dock>a{min-width:65px;min-height:44px;flex-direction:row;font-size:9px}.farm-home .farm-dock .dock-view-switch{flex-basis:58px}.farm-home .dock-view-switch:before{display:none}
 .farm-home .farm-dock .dock-view-switch button{min-height:44px}.farm-home .farm-bottom-bar{max-width:calc(100% - 24px);width:max-content}
}
