.phone-action-top{display:none}
body.phone-arena-focus .game-layout{gap:3px!important;padding:2px max(4px,var(--sar,0px)) 2px max(4px,var(--sal,0px))!important}
body.phone-arena-focus .game-stage.play-surface{grid-template-columns:clamp(136px,18vw,160px) minmax(0,1fr) clamp(136px,23vw,196px)!important;grid-template-rows:minmax(0,1fr)!important;gap:6px!important}
body.phone-arena-focus .play-arena{grid-template-rows:30px minmax(0,1fr)!important;gap:2px;min-height:0;min-width:0}
body.phone-arena-focus .play-viewport{width:var(--phone-arena-edge,100%)!important;height:var(--phone-arena-edge,100%)!important;max-width:100%;max-height:100%;aspect-ratio:1;justify-self:center;align-self:center}
body.phone-arena-focus #play-status{width:var(--phone-arena-edge,100%);max-width:100%;height:30px;justify-self:center}
body.phone-arena-focus .play-navigation{display:grid!important;grid-template-rows:64px minmax(0,1fr) 132px;gap:5px;grid-column:1;grid-row:1;justify-items:center}
body.phone-arena-focus #game-hud{grid-row:1!important;grid-column:1!important;position:relative!important;inset:auto!important;width:100%!important;height:64px!important;min-height:64px!important;max-height:64px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:24px 16px 16px!important;padding:3px 6px!important;gap:0!important;border-radius:8px!important}
body.phone-arena-focus #game-hud .hud-score{grid-column:1/-1!important;grid-row:1!important;flex-direction:row!important;justify-content:flex-start!important;gap:6px!important}
body.phone-arena-focus #game-hud .hud-score>span:not(.hud-label){font-size:21px!important}
body.phone-arena-focus #game-hud .hud-best{grid-column:1/-1!important;grid-row:2!important;flex-direction:row!important;justify-content:flex-start!important;gap:5px!important}
body.phone-arena-focus #game-hud .hud-best>span:not(.hud-label){font-size:10px!important}
body.phone-arena-focus #game-hud .hud-wave{grid-column:1!important;grid-row:3!important;flex-direction:row!important;gap:4px!important;justify-content:flex-start!important}
body.phone-arena-focus #game-hud .hud-bombs{grid-column:2!important;grid-row:3!important;flex-direction:row!important;gap:4px!important;justify-content:flex-end!important}
body.phone-arena-focus #game-hud :is(.hud-wave,.hud-bombs)>span:not(.hud-label){font-size:12px!important}
body.phone-arena-focus #game-hud .hud-label{font-size:8px!important;letter-spacing:.3px!important}
body.phone-arena-focus #game-hud .hud-power{display:none!important}
body.phone-arena-focus #play-radar-slot{grid-column:1!important;grid-row:2!important;align-self:center!important;width:min(124px,100%);max-width:124px;height:clamp(72px,26vh,124px)}
body.phone-arena-focus #play-radar-slot .tactical-map{grid-template-rows:11px minmax(0,1fr) 18px auto;padding:3px!important}
body.phone-arena-focus #play-radar-slot .tactical-map .map-key{font-size:7px;gap:1px 4px;line-height:1.1}
body.phone-arena-focus .play-surface :is(#joystick-zone,#dpad-zone){grid-column:1!important;grid-row:3!important;width:132px!important;height:132px!important;align-self:end!important}
body.phone-arena-focus .play-actions{display:flex!important;grid-column:3;grid-row:1;gap:6px;justify-content:space-between;overflow:hidden;--phone-action-size:clamp(44px,17vh,64px)}
body.phone-arena-focus .phone-action-top{display:flex;align-items:center;gap:2px;min-height:44px;width:100%;pointer-events:auto;flex:none}
body.phone-arena-focus .phone-action-top #play-view-switch{flex:1;min-width:0;width:auto;max-width:none;height:44px}
body.phone-arena-focus #play-view-switch>span,body.phone-arena-focus #play-view-switch>small{display:none!important}
body.phone-arena-focus #play-view-switch>div{display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));gap:2px}
body.phone-arena-focus #play-view-switch button{height:44px!important;min-height:44px!important;min-width:44px;padding:0;font-size:12px}
body.phone-arena-focus .phone-action-top #btn-pause{position:static!important;inset:auto!important;transform:none!important;margin:0!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:none;pointer-events:auto;border-radius:7px}
body.phone-arena-focus #power-belt{display:flex;flex-direction:column;gap:4px;width:100%;max-width:100%;height:auto;min-height:0;flex:none;padding:0;overflow:hidden}
body.phone-arena-focus #power-belt .power-pack{display:block;width:100%}
body.phone-arena-focus #power-belt .pack-caption{display:none}
body.phone-arena-focus #power-belt .power-slots{display:grid;grid-template-columns:repeat(auto-fit,44px);gap:4px;justify-content:center;width:100%}
body.phone-arena-focus #power-belt .power-status{flex:0 0 36px;width:100%;grid-template-rows:18px 16px;gap:2px}
body.phone-arena-focus #active-power-effect{padding:1px 3px;font-size:8px;gap:3px;line-height:15px}
body.phone-arena-focus #active-power-effect strong{font-size:9px}
body.phone-arena-focus #active-power-effect b{font-size:11px}
body.phone-arena-focus #power-belt #game-toast{height:16px;line-height:14px;font-size:9px;padding:1px 3px!important}
body.phone-arena-focus #power-belt #game-toast strong{font-size:9px}
body.phone-arena-focus #power-belt #game-toast span{display:none}
body.phone-arena-focus .play-surface #action-cluster{width:calc(var(--phone-action-size)*2 + 6px)!important}
body.phone-arena-focus .play-surface .action-main{grid-template-columns:repeat(2,var(--phone-action-size))!important;grid-template-rows:repeat(2,var(--phone-action-size))!important;gap:6px!important}
/* Old floating layouts remain saved, but cannot cover the dedicated phone regions. */
body.phone-arena-focus .play-surface #action-cluster .action-btn{width:var(--phone-action-size)!important;height:var(--phone-action-size)!important;min-width:44px;min-height:44px;position:relative!important;inset:auto!important;margin:0!important}
body.phone-arena-focus #play-status #boss-vitals{display:grid;grid-template-columns:repeat(var(--boss-total,var(--boss-count)),minmax(0,1fr));gap:3px;height:30px;min-height:0;align-items:stretch}
body.phone-arena-focus #play-status .boss-vital{height:30px;min-height:0;padding:2px 4px;box-sizing:border-box;border-radius:5px;display:grid;grid-template-rows:11px 4px 8px;gap:1px}
body.phone-arena-focus #play-status .boss-vital-heading{margin:0;gap:3px;line-height:11px;min-width:0}
body.phone-arena-focus #play-status .boss-vital-heading strong{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.phone-arena-focus #play-status .boss-vital-heading small{font-size:7px}
body.phone-arena-focus #play-status .boss-vital-heading b{font-size:11px}
body.phone-arena-focus #play-status .boss-vital-track{height:4px;min-height:0}
body.phone-arena-focus #play-status .boss-vital-numbers{font-size:8px;line-height:8px;margin:0}
body.phone-arena-focus #play-status #boss-warning{font-size:10px!important;line-height:1.1!important;padding:4px!important;max-height:30px}
body.phone-arena-focus #play-status .arena-caption{height:26px;padding:3px 6px!important;font-size:10px}
body.phone-arena-focus #play-status .arena-caption :is(small,span){font-size:8px}
body.phone-arena-focus #boost-status{width:min(420px,100%)!important;height:4px!important;min-height:4px!important;padding:0!important;margin:0 auto!important}
body.phone-arena-focus #boost-status:before{display:none!important}
body.phone-arena-focus #boost-gauge-track{height:3px!important}
@media(max-height:320px){body.phone-arena-focus .play-navigation{grid-template-rows:56px minmax(0,1fr) 132px;gap:3px}body.phone-arena-focus #game-hud{height:56px!important;min-height:56px!important;max-height:56px!important;grid-template-rows:22px 13px 15px!important}body.phone-arena-focus #play-radar-slot{height:72px}}
.power-notice-space{display:grid}.power-notice-space>*{grid-area:1/1;min-width:0}.power-selected-copy{align-self:center;color:#a9bdcc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:16px}.power-notice-space:has(#game-toast.show) .power-selected-copy{visibility:hidden}

/* One tap switches cameras; the hit area includes both labels and the track. */
body #play-view-toggle{display:grid!important;grid-template-columns:18px minmax(28px,1fr) 18px;align-items:center;gap:4px;width:100%;height:44px;min-height:44px;border-radius:999px!important;padding:5px 6px!important;border:1px solid #536777!important;background:#13212d!important;color:#8ba0b4;font:700 11px var(--ui-font,system-ui);box-shadow:none;touch-action:manipulation}
#play-view-toggle>span{font-size:11px;line-height:1;text-align:center}.view-switch-track{display:block;position:relative;height:20px;min-width:28px;background:#263b4a;border:1px solid #667d8d;border-radius:20px}.view-switch-track i{position:absolute;left:2px;top:2px;width:14px;height:14px;background:#e4b45b;border-radius:50%;box-shadow:0 1px 4px #0008;transition:left .15s ease}
#play-view-toggle[aria-checked=true] .view-switch-track i{left:calc(100% - 16px)}#play-view-toggle[aria-checked=false] .view-label-2d,#play-view-toggle[aria-checked=true] .view-label-3d{color:#f5d390}
body.phone-arena-focus .play-arena{grid-template-rows:minmax(0,1fr)!important;gap:0}
body.phone-arena-focus .play-navigation{grid-template-rows:52px auto minmax(64px,1fr) 132px;gap:4px}
body.phone-arena-focus #game-hud{height:52px!important;min-height:52px!important;max-height:52px!important;grid-template-rows:22px 12px 12px!important;padding:3px 6px!important}
body.phone-arena-focus #play-status{grid-column:1;grid-row:2;width:100%;height:auto;min-height:20px;align-self:center;overflow:hidden}
body.phone-arena-focus #play-radar-slot{grid-row:3!important;height:clamp(64px,25vh,112px)}
body.phone-arena-focus .play-surface :is(#joystick-zone,#dpad-zone){grid-row:4!important;position:relative!important}
body.phone-arena-focus #play-status #boss-vitals{display:flex;flex-direction:column;height:auto;gap:2px;width:100%}
body.phone-arena-focus #play-status .boss-vital{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:20px;height:20px;padding:0 3px;gap:0;align-items:center}
body.phone-arena-focus #play-status .boss-vital-heading{display:contents}
body.phone-arena-focus #play-status .boss-vital-heading strong{grid-column:1;grid-row:1;font-size:10px;line-height:17px;padding-right:3px}
body.phone-arena-focus #play-status .boss-vital-heading :is(small,b){display:none}
body.phone-arena-focus #play-status .boss-vital-numbers{grid-column:2;grid-row:1;font-size:8px;line-height:17px;color:#dce9f4;white-space:nowrap}
body.phone-arena-focus #play-status .boss-vital-track{position:absolute;bottom:0;left:2px;right:2px;height:2px}
body.phone-arena-focus #play-status .arena-caption{height:22px;min-height:0;font-size:9px;padding:2px 4px!important;justify-content:center}
body.phone-arena-focus #play-status .arena-caption>small{display:none}
body.phone-arena-focus #play-status #arena-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.phone-arena-focus #play-status #boss-warning{font-size:9px!important;line-height:1.2!important;padding:3px!important;max-height:none}
@media(max-height:399px){body.phone-arena-focus .play-navigation{grid-template-rows:42px auto minmax(64px,1fr) 132px;gap:3px}body.phone-arena-focus #game-hud{height:42px!important;min-height:42px!important;max-height:42px!important;grid-template-rows:20px 9px 11px!important;padding:1px 4px!important}body.phone-arena-focus #game-hud .hud-score>span:not(.hud-label){font-size:18px!important}body.phone-arena-focus #game-hud :is(.hud-best,.hud-wave,.hud-bombs)>span:not(.hud-label){font-size:10px!important}body.phone-arena-focus #game-hud .hud-label{font-size:7px!important}body.phone-arena-focus #play-radar-slot{height:80px}body.phone-arena-focus #play-status .boss-vital{height:16px;grid-template-rows:16px}body.phone-arena-focus #play-status .boss-vital-heading strong{font-size:9px;line-height:14px}body.phone-arena-focus #play-status .boss-vital-numbers{font-size:8px;line-height:14px}}
@media(max-height:340px){body.phone-arena-focus #play-radar-slot{height:64px}body.phone-arena-focus #play-status .boss-vital{height:14px;grid-template-rows:14px}body.phone-arena-focus #play-status .boss-vital-heading strong,body.phone-arena-focus #play-status .boss-vital-numbers{line-height:12px}}
@media(prefers-reduced-motion:reduce){.view-switch-track i{transition:none}}

/* Camera changes keep controls fixed: overhead is square, perspective widens. */
body.phone-arena-focus .game-stage.play-surface{grid-template-columns:clamp(136px,15vw,152px) minmax(0,1fr) clamp(136px,15vw,152px)!important}
body.phone-arena-focus[data-game-view="angled"] .play-viewport{width:100%!important;height:var(--phone-arena-edge,100%)!important;aspect-ratio:auto}
#account-toast{display:none;position:fixed;left:50%;bottom:max(20px,var(--sab,0px));transform:translate(-50%,12px);max-width:min(640px,calc(100vw - 32px));padding:11px 18px;border:1px solid #b38a43;border-radius:8px;background:#101922f5;color:#e8ecf4;font:600 13px/1.5 var(--ui-font,system-ui);text-align:center;z-index:20000;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}#account-toast.toast-show{opacity:1;transform:translate(-50%,0)}#account-toast.toast-error{border-color:#f26b58;color:#ffb8aa}

@media(max-height:340px){body.phone-arena-focus .play-navigation{grid-template-rows:42px auto minmax(60px,1fr) 132px;gap:2px}body.phone-arena-focus #play-radar-slot{height:60px}}

@media(orientation:portrait) and (max-width:700px){
 body .play-arena:has(#boss-vitals[data-count="3"]),body .play-arena:has(#boss-vitals[data-count="4"]){grid-template-rows:66px minmax(0,1fr)}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:30px;height:63px;gap:3px}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]) .boss-vital{height:30px;min-height:30px;max-height:30px;box-sizing:border-box;padding:2px 5px;display:grid;grid-template-rows:11px 4px 9px;gap:0}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]) .boss-vital-heading{margin:0;line-height:11px;gap:4px}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]) .boss-vital-heading strong{font-size:9px}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]) .boss-vital-heading b{font-size:11px}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]) .boss-vital-heading small{font-size:7px}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]) .boss-vital-track{height:4px}
 body #play-status #boss-vitals:is([data-count="3"],[data-count="4"]) .boss-vital-numbers{font-size:8px;line-height:9px;margin:0}
}

/* The artwork remains legible inside the existing separate touch targets. */
body #action-cluster .control-icon{width:36px;height:36px;flex:none;filter:drop-shadow(0 2px 2px #0008)}
body #action-cluster .action-btn{gap:2px!important;padding:4px!important}
body #power-belt .power-slot{padding:4px}
body #power-belt .power-slot img{width:34px;height:34px}

body.phone-arena-focus #game-hud .hud-item{min-height:0!important;height:auto!important;line-height:1!important;align-items:center!important;margin:0!important;overflow:hidden}
body.phone-arena-focus #game-hud .hud-item>span{line-height:1!important;margin:0!important}
body.phone-arena-focus #game-hud{grid-template-rows:22px 11px 11px!important}
@media(max-height:399px){body.phone-arena-focus .play-navigation{grid-template-rows:48px auto minmax(60px,1fr) 132px}body.phone-arena-focus #game-hud{height:48px!important;min-height:48px!important;max-height:48px!important;grid-template-rows:22px 10px 12px!important}}

body #play-view-toggle, body #power-belt .power-slot{touch-action:none;user-select:none;-webkit-user-select:none}
