/* Landscape play on touch devices, without changing the device's orientation. */
.adventure-rotate{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));text-align:center;background:#e7f2e7;color:#184d40}
.adventure-rotate>div{width:min(100%,360px);padding:30px 24px;border:1px solid #d9e4cf;border-radius:24px;background:#fffdf3;box-shadow:0 14px 40px #174d4320}
.adventure-rotate svg{width:64px;height:64px;fill:none;stroke:#278060;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.adventure-rotate h2{margin:12px 0 8px;font-size:24px;line-height:1.2}.adventure-rotate p{margin:0 0 20px;font-size:15px;line-height:1.5}.adventure-rotate button{min-height:44px;padding:10px 20px;border:1px solid #cbdccc;border-radius:999px;background:#fff;color:#184d40;font-weight:800}
@media (orientation:landscape) and (pointer:coarse){body.adventure-mode.arcade-phone .adventure-hud{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top))}body.adventure-mode.arcade-phone .adventure-heading{right:max(12px,env(safe-area-inset-right));top:calc(65px + env(safe-area-inset-top))}body.adventure-mode.arcade-phone .adventure-controls{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}}
/* Mobile users use the device Back gesture; mouse and keyboard retain an on-screen exit. */
body.adventure-mode.arcade-phone #adventureExit,body.adventure-mode.arcade-phone #adventureFullscreen{display:none!important}

/* The Flutter phone shell can draw the landscape game under cutouts and the
   Android gesture area. Keep touch controls and HUD inside the real insets. */
@media (orientation:landscape){
 html.jejak-app body.adventure-mode.arcade-phone .adventure-hud{left:calc(12px + var(--jejak-app-inset-left,0px));right:calc(12px + var(--jejak-app-inset-right,0px))}
 html.jejak-app body.adventure-mode.arcade-phone .adventure-heading{right:calc(12px + var(--jejak-app-inset-right,0px))}
 html.jejak-app body.adventure-mode.arcade-phone .adventure-controls{left:calc(12px + var(--jejak-app-inset-left,0px));right:calc(12px + var(--jejak-app-inset-right,0px));bottom:calc(12px + var(--jejak-app-inset-bottom,0px))}
}
