.mobile-toolbar{display:flex;justify-content:flex-end;margin:6px 0}.mobile-toolbar button{min-height:44px;border-radius:10px;padding:8px 14px;background:#f5eddc;color:#294334;border:1px solid #b9ad97;touch-action:manipulation}.mobile-play canvas{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.mobile-play button{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.mobile-play{overscroll-behavior:contain}.game-expanded{overflow:hidden}
.mobile-play:fullscreen,.mobile-play.expanded{box-sizing:border-box;background:#f5eddc;position:fixed;inset:0;z-index:10000;width:100%;height:100dvh;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;gap:0}
.mobile-play:is(:fullscreen,.expanded) .game,.mobile-play:is(:fullscreen,.expanded) .arena{flex:none;max-width:100%;margin:0;min-height:0;position:relative;border-radius:10px}
.mobile-play:is(:fullscreen,.expanded) canvas{display:block;margin:0 auto;max-width:none;max-height:none;aspect-ratio:auto!important;flex:none}
.mobile-play:is(:fullscreen,.expanded) .stage{position:relative;display:flex;justify-content:center;min-height:0}
.mobile-play:is(:fullscreen,.expanded) .hud{height:42px;padding:5px 12px;flex:none}.mobile-play:is(:fullscreen,.expanded) .hud b{font-size:17px;margin-top:2px}.mobile-play:is(:fullscreen,.expanded) .hud span{font-size:8px}.mobile-play:is(:fullscreen,.expanded) .bottom-bar{height:30px;padding:4px 10px}.mobile-play:is(:fullscreen,.expanded) .controls,.mobile-play:is(:fullscreen,.expanded) .combat{flex:none;width:100%;max-width:1000px;margin:5px 0;padding:0;gap:6px;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap}.mobile-play:is(:fullscreen,.expanded) .controls p,.mobile-play:is(:fullscreen,.expanded) .desktop-hint,.mobile-play:is(:fullscreen,.expanded) .mobile-hint{display:none}.mobile-play:is(:fullscreen,.expanded) .controls>div{display:flex;gap:6px}.mobile-play:is(:fullscreen,.expanded) .controls button,.mobile-play:is(:fullscreen,.expanded) .combat button{min-height:44px;min-width:44px;padding:8px;font-size:11px;margin:0;flex:1}.mobile-play:is(:fullscreen,.expanded) .dpad{display:grid;grid-template-columns:repeat(3,44px);gap:3px}.mobile-play:is(:fullscreen,.expanded) .dpad button{height:40px;min-height:40px;font-size:22px;padding:0}.mobile-play:is(:fullscreen,.expanded) .mobile-toolbar{flex:none;margin:2px 0;width:100%;justify-content:flex-end}.mobile-play:is(:fullscreen,.expanded) .mobile-toolbar button{min-height:32px;font-size:11px;padding:5px 12px}.mobile-play:is(:fullscreen,.expanded) .cast,.mobile-play:is(:fullscreen,.expanded) .card small{display:none}.mobile-play:is(:fullscreen,.expanded) #overlay,.mobile-play:is(:fullscreen,.expanded) .overlay{overflow:auto;padding:10px;align-items:safe center}.mobile-play:is(:fullscreen,.expanded) .card h2{font-size:22px;margin:6px 0}.mobile-play:is(:fullscreen,.expanded) .card p{font-size:11px;margin:6px auto}.mobile-play:is(:fullscreen,.expanded) .card{padding:10px;max-height:100%;overflow:auto}.mobile-play:is(:fullscreen,.expanded) .primary{padding:10px 20px}.mobile-play:is(:fullscreen,.expanded) .upgrade-options{display:flex;flex-wrap:wrap;justify-content:center;margin-top:10px}.mobile-play:is(:fullscreen,.expanded) .upgrade-options button{width:auto;max-width:170px;padding:10px;flex:1}.mobile-play:is(:fullscreen,.expanded) .upgrade-options span{margin-top:4px}
@media(pointer:coarse){.mobile-play .controls button,.mobile-play .combat button{min-height:52px;min-width:48px}.mobile-play .controls{gap:8px}.mobile-play .dpad button{min-width:48px}.mobile-play .combat{flex-wrap:wrap}.mobile-play .combat button{flex:1 1 20%}}
.mobile-play:is(:fullscreen,.expanded) .game>#overlay{inset:42px 0 30px}.mobile-play:is(:fullscreen,.expanded) .stage>#overlay{inset:0}.mobile-play:is(:fullscreen,.expanded) .arena .overlay{inset:0 0 6px}
