/* Native Legacy action hierarchy. Every equipped action has a stable place. */
.release08 #actions{padding:19px 18px 13px;gap:8px;justify-content:center;align-items:center;overflow-x:auto}
.release08 #actions .action{flex:0 0 132px;min-width:110px;max-width:142px;height:124px;padding:11px 9px 9px;background-image:url('assets/legacy/button-steel.svg');background-size:100% 100%;border:0}
.release08 #actions .action img{width:94px;height:78px;object-fit:contain;margin:0;flex-shrink:0}
.release08 #actions .action span{font-size:17px;line-height:1.05;white-space:normal;max-width:100%}
.release08 #actions .action em{font-size:13px;line-height:1.1}
.release08 #actions .action[data-fire]:not([data-fire=leg]) img{height:65px}
.release08 #actions .action.mode{filter:drop-shadow(0 0 5px #55cbff)}
.release08 #battleCameraControls{bottom:18px;right:18px;gap:10px}
.release08 #battleCameraControls button{height:46px;min-width:48px;padding:4px 10px}
.release08 #battleCameraControls [data-camera]{width:52px;padding:4px;background:transparent;border:0;box-shadow:none}
.release08 #battleCameraControls [data-camera] img{width:100%;height:100%;object-fit:contain}
.release08 #battleCameraControls #battleEndTurn{font-size:20px;background:#102c3c;border:2px solid #467589;border-radius:5px}
.release08 #battleResult{left:50%;top:50%;bottom:auto;margin:0;transform:translate(-50%,-50%);max-height:85%;overflow:auto;animation:combat-result0811 .22s ease-out both}
.release08 #battleResult[hidden]{display:none!important}
@keyframes combat-result0811{from{opacity:0;transform:translate(-50%,-50%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.release08.reduced-motion #battleResult{animation:none}
@media(prefers-reduced-motion:reduce){.release08 #battleResult{animation:none}}
.release08.bot-battle #toggleCombatChat,.release08.bot-battle #battleChat{display:none!important}


.release08.starry-controls.halloween-touch-controls #battle{grid-template-rows:minmax(0,1fr) 216px!important}
.release08.starry-controls.halloween-touch-controls #actions{height:216px!important}
.release08.starry-controls.halloween-touch-controls .starry-art{transform:scale(1);margin-left:-1024px;top:-367px}
/* Match the enlarged mobile controls with the same uniformly fitted panel artwork. */
.release08.starry-controls.halloween-touch-controls #actions::before{width:128%;left:-14%}
