#forest-hud{position:fixed;inset:0;pointer-events:none;color:#fff4dc;z-index:35;text-shadow:0 1px 3px #17281d}#forest-hud>strong{position:absolute;top:calc(14px + env(safe-area-inset-top));left:16px;font-size:14px}#forest-objective{position:absolute;top:calc(39px + env(safe-area-inset-top));left:16px;font-size:12px;max-width:calc(100% - 130px);line-height:1.5}#forest-note{position:absolute;top:calc(79px + env(safe-area-inset-top));left:16px;font-size:11px;max-width:calc(100% - 130px)}#forest-map{position:absolute;right:12px;top:calc(60px + env(safe-area-inset-top));width:96px;height:120px;border:1px solid #d1b97988;border-radius:10px}#forest-hud>button,#forest-enter,#forest-request{min-height:42px;padding:9px 13px;background:#203f35;color:#fff2d9;border:1px solid #bca46e;border-radius:12px;font-size:12px;pointer-events:auto}#forest-hud>button svg{width:18px;height:18px}#forest-camera{position:absolute;top:calc(10px + env(safe-area-inset-top));right:12px;width:42px}#forest-collect{position:absolute;bottom:calc(140px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}#forest-exit{position:absolute;bottom:calc(140px + env(safe-area-inset-bottom));right:14px}#forest-enter,#forest-request{position:absolute;bottom:140px;left:50%;transform:translateX(-50%)}#forest-quest{box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-height:calc(100svh - 24px);overflow:auto;padding:22px;border:1px solid #bca46e;border-radius:16px;background:#fff7e8;color:#263d35}#forest-quest h2{font-size:19px}#forest-quest p{font-size:13px;line-height:1.7}#forest-quest-reward{color:#755e2f}#forest-quest button{min-height:44px;padding:10px 16px;border:0;border-radius:9px;background:#203f35;color:#fff2d9;margin:4px}#forest-quest::backdrop{background:#122a2699}#forest-hud[hidden],#forest-hud [hidden],#forest-enter[hidden],#forest-request[hidden],#forest-quest [hidden]{display:none!important}@media(max-height:500px){#forest-map{width:64px;height:80px}#forest-collect{bottom:16px}#forest-exit{bottom:84px}#forest-objective{font-size:11px}#forest-note{top:65px}#forest-quest{padding:12px 18px}}

#forest-quest-hud{display:none!important}

#forest-lookout{position:absolute;bottom:calc(145px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}#forest-view-back{position:absolute;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}#forest-hud:has(#forest-view-back:not([hidden])) #touch-controls,#forest-hud:has(#forest-view-back:not([hidden])) #forest-map,#forest-hud:has(#forest-view-back:not([hidden])) #forest-camera{display:none!important}@media(max-height:500px){#forest-lookout{bottom:74px}}

/* Forest shares the city action pad and combat buttons. */
#forest-hud #btnTouchDeliver,#forest-hud #btnTouchInteract,#forest-hud #btn-lockon{display:none!important}
/* v0.47 foraging */
#forest-forage{position:absolute;bottom:calc(140px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#2d4a2c!important;border-color:#d9c07e!important}
#forest-forage[hidden]{display:none!important}
#forest-bag{position:absolute;top:calc(100px + env(safe-area-inset-top));left:16px;font-size:11px;padding:4px 8px;border-radius:8px;background:#17281dcc;max-width:calc(100% - 140px)}
@media(max-height:500px){#forest-forage{bottom:16px}#forest-bag{top:84px}}
#forage-deliver{position:absolute;bottom:calc(196px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);min-height:44px;padding:9px 14px;background:#2d4a2c;color:#fff2d9;border:1px solid #d9c07e;border-radius:12px;font-size:12px;pointer-events:auto;z-index:30}
#forage-deliver[hidden]{display:none!important}#forage-deliver svg{width:18px;height:18px}
#forage-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100svh - 24px);overflow:auto;padding:20px;border:1px solid #bca46e;border-radius:16px;background:#fff7e8;color:#263d35}
#forage-dialog::backdrop{background:#122a2699}#forage-dialog h2{font-size:18px;margin:0 0 6px}#forage-dialog p{font-size:13px;line-height:1.7;margin:6px 0}
.forage-order{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:10px 0;border-top:1px solid #e3d6b8}
.forage-order strong{font-size:14px}.forage-order span{grid-column:1;font-size:12px;color:#5a5140}.forage-order button{grid-column:2;grid-row:1/3}
.forage-order.done strong{color:#7c8a80}
#forage-dialog button{min-height:44px;padding:10px 14px;border:0;border-radius:9px;background:#203f35;color:#fff2d9;font-size:13px}
#forage-dialog button:disabled{background:#b9b2a0;color:#4d4a42}
#forage-bag{font-size:12px;margin:10px 0;color:#403a2d}.forage-actions{display:flex;gap:8px;flex-wrap:wrap}#forage-status{color:#6b5424;font-size:12px}
@media(orientation:portrait) and (max-width:650px){#forest-forage,#forest-collect{bottom:calc(250px + env(safe-area-inset-bottom))}#forage-deliver{bottom:calc(250px + env(safe-area-inset-bottom))}}
