/* Brown notices sit directly below the current farm title in both HUD modes. */
#toast{top:var(--hud-notice-top,90px)!important;left:var(--hud-notice-left,50%)!important;bottom:auto!important;height:auto!important;width:max-content;max-width:min(440px,calc(100vw - 24px));overflow:hidden;background:#6e503b;color:#fff9ec;transform:translate(-50%,-6px);z-index:1500}
#toast.show{transform:translate(-50%,0)}
/* Travel controls belong to the screen, clear of the HUD and camera transforms. */
#world-links{position:absolute;inset:0;z-index:9;pointer-events:none}
#world-links .area-path{left:max(12px,env(safe-area-inset-left));top:var(--hud-world-links-top,116px);min-height:44px;max-width:calc(100vw - 100px);pointer-events:auto;touch-action:manipulation}
.compact-hud-panel{display:contents}.compact-hud-button[hidden]{display:none!important}
.compact-hud-button{background:none!important;border:0!important;box-shadow:none!important;touch-action:none!important;user-select:none;-webkit-user-select:none}
.compact-hud-arrow{position:absolute;right:-3px;bottom:0;color:#fff;font-size:24px;font-weight:900;line-height:1;text-shadow:0 1px 3px #49341c,0 0 2px #49341c;pointer-events:none}
.compact-hud .topbar>.compact-hud-group{position:relative}
.compact-hud .compact-hud-panel{display:none!important}
.compact-hud .compact-hud-button{min-width:48px!important;width:54px!important;height:54px!important;min-height:48px!important;flex:none!important}
.compact-hud .compact-hud-button .hud-painted-art{width:48px!important;height:48px!important}
.compact-hud .compact-hud-group.is-expanded>.compact-hud-panel{position:absolute;display:flex!important;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;justify-content:flex-end;align-items:center;gap:6px!important;padding:6px;right:64px;width:max-content;max-width:min(var(--compact-panel-width,100vw),calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 88px));z-index:32;isolation:isolate;filter:drop-shadow(0 2px 3px #30200f55)}
.compact-hud [data-compact-group="top"].is-expanded>.compact-hud-panel{top:var(--compact-control-y,27px);transform:translateY(-50%)}
.compact-hud .farm-hud{justify-content:flex-end!important;flex-direction:row!important;min-height:64px;gap:0!important}
.compact-hud .farm-hud.is-expanded>.compact-hud-panel{top:var(--compact-control-y,37px);bottom:auto;transform:translateY(-50%);right:max(76px,calc(env(safe-area-inset-right) + 64px));width:min(410px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 100px));display:flex!important;justify-content:flex-start}
.compact-hud .farm-hud .mode-switch,.compact-hud .farm-hud .hud-actions{display:contents!important}
.compact-hud .farm-hud .hud-painted{min-width:44px!important;min-height:48px!important;width:48px!important;height:48px!important;flex:none!important}
.compact-hud .farm-hud #farm-play-button{position:relative!important;inset:auto!important;transform:none!important;margin:0!important}
.compact-hud .farm-hud #farm-play-button .hud-painted-art{width:48px!important;height:48px!important}
.compact-hud .build-tray{bottom:calc(env(safe-area-inset-bottom) + 70px)!important}
.compact-hud #side-panel{bottom:calc(env(safe-area-inset-bottom) + 70px)!important}
.compact-offer{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid #d8bc91;border-radius:19px;padding:20px;background:#fff8e9;color:#513c26;line-height:1.45}.compact-offer::backdrop{background:#30200f70}.compact-offer h2{font-size:21px;margin:0}.compact-offer p{font-size:14px}.compact-offer #compact-later{margin-top:8px}
.compact-setting{margin:8px 0 12px;padding:10px 0;border-bottom:1px solid #dfceb1}.compact-setting label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.compact-setting input{width:26px;height:26px;accent-color:#936737}.compact-setting p{margin:3px 0;font-size:12px;line-height:1.4;color:#77634c}
.compact-hud .is-expanded>.compact-hud-button .compact-hud-arrow{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){#toast{transition:none}}

.compact-hud .compact-hud-panel .hud-painted{touch-action:pan-x!important;flex-shrink:0!important}.compact-hud .compact-hud-panel{scrollbar-width:none}

.compact-hud.compact-top-expanded .top-hud-farm{visibility:hidden}
.compact-hud.compact-top-expanded #eastbank-town-road{visibility:hidden;pointer-events:none}
/* Native dialog top layers otherwise hide the farm's global status toast. */
.dialog-action-notice{position:absolute;top:60px;left:12px;right:12px;z-index:10000;width:max-content;max-width:calc(100% - 24px);margin:0 auto;padding:9px 13px;border-radius:10px;background:#6e503b;color:#fff9ec;box-shadow:0 3px 12px #30200f44;font:600 13px/1.35 system-ui;text-align:center;pointer-events:none}
