/* Hunting occupies the application viewport. Battles retain the global modal. */
body.is-hunting{overflow:hidden;overscroll-behavior:none;background:#95b878}
body.is-hunting>.topbar,body.is-hunting>footer{display:none}
body.is-hunting #app{position:fixed;inset:0;z-index:20;width:100%;height:100vh;height:100dvh;max-width:none;min-height:0;margin:0;padding:0;overflow:hidden}
body.is-hunting #app>.shell{display:block;width:100%;height:100%;margin:0;padding:0}
body.is-hunting .sidebar,body.is-hunting .player-info{display:none}
.adventure-page.adventure-fullscreen{position:relative;width:100%;height:100%;max-width:none;min-height:0;margin:0;padding:0;overflow:hidden}
.adventure-fullscreen .world-viewport{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none;touch-action:manipulation;overscroll-behavior:none}
/* The wider view shares the field ground color beyond the tree border. */
.adventure-fullscreen .world-viewport{background:#a8c788}
.adventure-fullscreen .world-viewport:focus-visible{outline:none}
.adventure-fullscreen .world-layer{transform-origin:0 0}
.hunting-exit{position:absolute;z-index:5;top:max(14px,env(safe-area-inset-top,0px));right:max(14px,env(safe-area-inset-right,0px));display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 17px;border:1px solid #ffffffb3;border-radius:13px;background:#fffffff2;color:#304a38;box-shadow:0 4px 16px #17362526;font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap;touch-action:manipulation}
.hunting-exit:hover{background:#fff}.hunting-exit:focus-visible{outline:3px solid #dba060;outline-offset:3px}
.hunting-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Leave room for the exit control without covering the encounter actions. */
.adventure-fullscreen .map-encounter-choice{padding:max(72px,calc(env(safe-area-inset-top,0px) + 58px)) max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));touch-action:pan-y}
.adventure-fullscreen .ongoing-battle,.adventure-fullscreen .pending-capture{height:auto;max-height:100%;display:flex;flex-direction:column;gap:12px;overflow:auto}
@media(max-width:600px){.hunting-exit{font-size:12px;min-height:44px;padding:10px 14px;top:max(10px,env(safe-area-inset-top,0px));right:max(10px,env(safe-area-inset-right,0px))}}
@media(max-height:520px) and (orientation:landscape){.adventure-fullscreen .map-encounter-choice{padding-top:max(62px,calc(env(safe-area-inset-top,0px) + 52px))}.adventure-fullscreen .encounter-decision{max-height:100%;overflow-y:auto;grid-template-rows:auto auto minmax(100px,1fr) auto}.hunting-exit{top:max(8px,env(safe-area-inset-top,0px));min-height:44px;padding:8px 13px}}

/* The shop building itself is the entry; no persistent HUD is added. */
.map-actors{pointer-events:none}
.map-building.map-shop{pointer-events:auto;appearance:none;padding:0;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}
.map-building.map-shop:focus-visible{outline:3px solid #fff6ce;outline-offset:5px;filter:drop-shadow(0 0 7px #795b35)}
.map-building.map-shop:hover>span{background:#fff9e8;border-color:#b2955d}

/* Settled grid position stays readable above scenery, independent of camera scale. */
.adventure-fullscreen .map-coordinates{position:absolute;z-index:3;right:max(12px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));padding:7px 11px;border:1px solid #ffffffc9;border-radius:10px;background:#fffffff0;color:#304a38;box-shadow:0 3px 12px #17362526;font-size:12px;font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
