/* V9.9.54 — fechamento padronizado e foco exclusivo no English Duel. */
/* O X oficial já é usado pelo mapa; não substituir handlers. */
html body #ca-hall #hall-modal-close,
html body #ca-inventory-modal #ca-inv-close{
 appearance:none!important;
 background:transparent url('ca-x-v9943.png') center / contain no-repeat!important;
 background-color:transparent!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 width:60px!important;height:42px!important;
 min-width:46px!important;min-height:34px!important;
 max-width:60px!important;max-height:42px!important;
 padding:0!important;
 color:transparent!important;font-size:0!important;line-height:0!important;text-shadow:none!important;
 transform:none!important;animation:none!important;transition:none!important;
 cursor:pointer!important;
}
html body #ca-hall #hall-modal-close:hover,
html body #ca-inventory-modal #ca-inv-close:hover{background:transparent url('ca-x-v9943.png') center / contain no-repeat!important;transform:none!important;}
/* Loja: remover animações de zoom/brilho/rotação apenas do X. */
html body #ca-shop-modal #ca-shop-close,
html body #ca-shop-modal #ca-shop-close:hover,
html body #ca-shop-modal #ca-shop-close:focus,
html body #ca-shop-modal #ca-shop-close:active{
 animation:none!important;transition:none!important;transform:none!important;
 filter:none!important;scale:1!important;
 box-shadow:none!important;
 background:transparent url('ca-x-v9943.png') center / contain no-repeat!important;
}
/* O cabeçalho e HUD ficam ocultos somente enquanto o painel do duelo estiver aberto. */
body:has(#candido-arena:not([hidden]) #arena-game:not([hidden])) #candido-arena header.top,
body:has(#candido-arena:not([hidden]) #arena-game:not([hidden])) #candido-arena .arena-island-nav,
body:has(#candido-arena:not([hidden]) #arena-game:not([hidden])) #ca-v9914-ui,
body:has(#candido-arena:not([hidden]) #arena-game:not([hidden])) #candido-arena .arena-speech-controls{
 opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
body:has(#candido-arena:not([hidden]) #arena-game:not([hidden])) #candido-arena #arena-game{
 top:clamp(8px,2vh,18px)!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;
}
@media (max-width:700px){
 html body #ca-hall #hall-modal-close,html body #ca-inventory-modal #ca-inv-close{width:50px!important;height:36px!important;min-width:42px!important;min-height:32px!important;}
}
