/* V9.9.51 — alinhamento dos cliques em Plaza/Salão e X oficial, sem mudar eventos. */
/* A marcação da estrela da Global Tree ocupa o troféu e pedestal central. */
#ca-hall #hall-tree{
 clip-path:polygon(12% 1%,88% 1%,100% 19%,100% 86%,85% 100%,14% 100%,0 86%,0 18%)!important;
 border-radius:20px!important;
}
/* Destacar as bordas da porta da Loja e da placa seta, sem invadir o piso ou a vitrine. */
#ca-adventure-plaza #plaza-shop{
 clip-path:polygon(17% 0,84% 0,100% 11%,100% 98%,0 98%,0 10%)!important;
 border-radius:12px!important;
}
#ca-adventure-plaza #plaza-arena-arrow{
 clip-path:polygon(12% 3%,91% 3%,100% 18%,100% 84%,88% 99%,11% 99%,0 84%,0 18%)!important;
 border-radius:12px!important;
}
/* A arte ca-x-v9943.png já é a mesma do fechamento do Mapa; reutilizá-la. */
/* The Global Tree + Guia das Estrelas (Hall), Porto das Aventuras (Plaza),
   Biblioteca + Central + Mural (Central), Postcards e Loja. */
html body #ca-hall #hall-modal-close,
html body #ca-adventure-plaza #plaza-modal-close,
html body #ca-center-backdrop #ca-center .ca-head > button.ca-close,
html body #ca-center .ca-head > button.ca-close,
html body #postcardOverlay #postcardBook #closePostcards,
html body #postcardBook #closePostcards,
html body #ca-shop-modal .ca-shop-wrap header #ca-shop-close,
html body #ca-shop-modal #ca-shop-close{
 appearance:none!important;
 display:block!important;
 box-sizing:border-box!important;
 width:60px!important;height:40px!important;
 min-width:48px!important;min-height:32px!important;
 max-width:60px!important;max-height:40px!important;
 padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent url('ca-x-v9943.png') center / contain no-repeat!important;
 color:transparent!important;text-shadow:none!important;font-size:0!important;line-height:0!important;
 overflow:visible!important;flex-shrink:0!important;
 cursor:pointer!important;
 transform:none!important;
 opacity:1!important;visibility:visible!important;
}
/* Do not affect positioning supplied by the modal header itself. */
html body #ca-shop-modal .ca-shop-wrap header #ca-shop-close{position:absolute!important;top:12px!important;right:12px!important;z-index:5!important}
html body #ca-center .ca-head > button.ca-close,
html body #postcardBook #closePostcards{position:absolute!important;top:0!important;right:0!important;z-index:5!important}
/* Existing listener remains responsible for closing the dialog; no onclick is replaced. */
html body :is(#hall-modal-close,#plaza-modal-close,#closePostcards,#ca-shop-close) > *,
html body #ca-center .ca-head > button.ca-close > *{visibility:hidden!important}
@media(max-width:700px){
 html body #ca-hall #hall-modal-close,
 html body #ca-adventure-plaza #plaza-modal-close,
 html body #ca-center .ca-head > button.ca-close,
 html body #postcardBook #closePostcards,
 html body #ca-shop-modal #ca-shop-close{
  width:52px!important;height:34px!important;max-width:52px!important;max-height:34px!important;
  min-width:44px!important;min-height:32px!important;
 }
}
