/* Keep long presses from opening Copy/Select on gameplay controls. */
#world canvas,.touchpad,.touchpad *,footer button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#world canvas{touch-action:none}
.touchpad button{touch-action:none;min-width:48px;min-height:48px}
footer button{touch-action:manipulation}
#run,#jump{touch-action:none}
@media(pointer:coarse){.touchpad{display:block!important}.touchpad button{width:48px;height:48px;padding:4px;margin:2px}.touchpad button:active{background:#356348;border-color:var(--accent)}#run,#jump{min-width:54px;min-height:44px}}
@media(pointer:coarse) and (max-height:500px){.touchpad button{width:44px;height:44px;min-width:44px;min-height:44px;margin:1px}.touchpad{bottom:calc(var(--game-controls-height) + 4px)!important}}

#nearbyDoor,#venueDoor,#leaveVenue,#gather,#talkOpen{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}

/* Stop pull-to-refresh and scroll chaining on the game page. */
html,body{overscroll-behavior-y:none}
dialog{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}

/* Keep indoor movement and the exit reachable without opening the menu. */
body.indoors #gather,body.indoors #mineNearby{display:none!important}
body.indoors #leaveVenue{position:fixed;right:10px;bottom:calc(var(--game-controls-height) + 12px);z-index:9;max-width:calc(100vw - 170px);min-height:44px;white-space:normal;margin:0}
body.indoors #venueActions{max-height:min(30dvh,calc(100dvh - var(--game-header-height) - var(--game-controls-height) - 36px));overscroll-behavior-y:contain;padding:10px}
body.indoors #venueTitle{margin:0 0 6px}
body.indoors #venueLine{margin:6px 0;font-size:12px;line-height:1.45}
body.venue-adventure #venueActions label,body.venue-adventure #venueActions small,body.venue-adventure #coupleNames{display:none}
footer{overscroll-behavior-y:contain}

body.indoors #talkOpen{bottom:calc(var(--game-controls-height) + 64px)!important;z-index:8;min-height:44px}

#ambientTalk{position:fixed;left:50%;bottom:calc(var(--game-controls-height) + 116px);transform:translateX(-50%);z-index:7;width:min(580px,calc(100vw - 24px));padding:6px 10px;color:#f4fff8;text-align:center;font-size:14px;line-height:1.5;text-shadow:0 1px 3px #000,0 0 8px #000;pointer-events:none;background:linear-gradient(90deg,transparent,#071511c9 15%,#071511c9 85%,transparent)}
#ambientTalk strong{color:#9ef0c9}
@media(max-height:500px){#ambientTalk{bottom:calc(var(--game-controls-height) + 94px);font-size:12px;line-height:1.35}}
