.action-rotate-hint{display:none}
@media(pointer:coarse){
.action-landscape{position:fixed!important;inset:0!important;width:100dvw!important;height:100dvh!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;background:#163047!important}
.action-landscape .game-arena{background:linear-gradient(#12213944,#12213966),var(--scene-art) center/cover!important}
.action-landscape .game-title-screen,.action-landscape .game-character-screen{inset:0!important;width:100%!important;height:100%!important;max-height:none!important;padding:0!important;background:var(--scene-art) center/cover!important;overflow:hidden!important}
.action-landscape .game-title-picture,.action-landscape .game-selection-art{inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
.action-landscape .game-title-screen h3{inset:65px 3% auto auto!important;width:40%!important;font-size:clamp(24px,4vw,40px)!important;line-height:1.15!important;margin:0!important;padding:8px!important}
.action-landscape .game-title-start{inset:auto 5% 8% auto!important;width:36%!important;min-height:44px!important;margin:0!important}
.action-landscape .game-character-select{position:absolute!important;inset:70px 4% 38px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:20px!important;align-items:stretch!important;max-width:none!important;width:auto!important;margin:0!important}
.action-landscape .game-character-select button{position:relative!important;min-height:0!important;max-height:100%!important;padding:4px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:end!important;overflow:hidden!important;background:linear-gradient(transparent,#102239e0)!important}
.action-landscape .game-character-select canvas{position:static!important;width:auto!important;height:calc(100% - 35px)!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;flex:1;min-height:0}
.action-landscape .game-character-name{position:static!important;min-height:30px!important;line-height:30px!important;font-size:22px!important}
.action-landscape .game-character-feedback{position:absolute!important;bottom:4px!important;margin:0!important;width:100%!important}
.action-landscape.game-instructions-pending .game-retro-instructions{inset:60px 4% 8px!important;width:auto!important;height:auto!important;padding:10px 18px!important;max-height:none!important;display:flex!important;justify-content:safe center!important;gap:6px!important;overflow:auto!important;background:linear-gradient(#122239df,#122239e8),var(--scene-art) center/cover!important}
.action-landscape .game-retro-instructions p{font-size:15px!important;line-height:1.35!important;margin:4px 0!important}
.action-landscape .game-instructions-title{font-size:23px!important;margin:0!important}.action-landscape .game-instructions-start{min-height:44px!important;margin:4px auto!important}
.action-landscape .game-hud{top:58px!important;right:10px!important;max-width:60%!important;padding:4px 8px!important;font-size:13px!important}
.action-landscape .game-over-panel{inset:62px 3% 8px!important;max-height:none!important;padding:10px!important;overflow:auto!important;gap:6px!important}
.action-landscape .game-over-panel h3{font-size:24px!important;margin:4px!important}.action-landscape .game-over-actions{display:flex!important;gap:8px!important}.action-landscape .game-over-panel button{min-height:40px!important;padding:6px 15px!important}
.action-landscape .arcade-toolbar{top:5px!important}.action-landscape .arcade-toolbar button{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}
}
@media(pointer:coarse) and (orientation:portrait){
.action-landscape{inset:auto!important;left:50%!important;top:50%!important;width:100dvh!important;height:100dvw!important;transform:translate(-50%,-50%) rotate(90deg)!important;transform-origin:center!important}
.action-landscape .action-rotate-hint{display:block;position:absolute;left:10px;bottom:10px;width:54px;height:54px;z-index:100;pointer-events:none;background:#102139cc;border:2px solid #e8c785;border-radius:8px}.action-rotate-hint svg{width:100%;height:100%;animation:phone-turn 2s ease-in-out infinite}
}
@keyframes phone-turn{50%{transform:rotate(-25deg)}}
@media(prefers-reduced-motion:reduce){.action-rotate-hint svg{animation:none}}

/* Phone-only geometry: retain full artwork proportions and separate HUD controls. */
@media(pointer:coarse) and (max-width:950px){
 .action-landscape .game-arena .game-canvas{width:100%!important;height:100%!important;object-fit:contain!important;image-rendering:pixelated}
 .action-landscape .game-title-picture,.action-landscape .game-selection-art{object-fit:contain!important;object-position:center!important}
 .action-landscape .game-title-screen,.action-landscape .game-character-screen{background:linear-gradient(#14223688,#14223688),var(--scene-art) center/cover!important}
 .action-landscape .game-title-screen h3{top:60px!important;left:50%!important;right:auto!important;transform:translateX(-50%);width:max-content!important;max-width:70%!important;font-size:clamp(18px,3vw,28px)!important;padding:5px 12px!important}
 .action-landscape .game-arena .arcade-toolbar{top:8px!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important}
 .action-landscape .game-hud{top:60px!important;left:50%!important;right:auto!important;transform:translateX(-50%);max-width:50%!important;font-size:13px!important;margin:0!important}
 .action-landscape .game-arena-timer{top:96px!important;left:50%!important;right:auto!important;transform:translateX(-50%);max-width:45%!important}
 .action-landscape.food-game .food-hud-stack{top:60px!important}
 .action-landscape .game-arena-pause{top:60px!important}
}
