/* V14.47 — máscaras fornecidas pelo usuário em MASKS.zip.
   Os 8 PNGs são copiados byte a byte, com 1670×942 e alfa original.
   Todas as silhuetas luminosas vêm de máscara PNG, sem PNG sobreposto colorido,
   sem efeitos retangulares, sem GIF e sem alterar a ação dos cliques. */

/* ÚNICA camada de luz por objeto; não interferir no mouse nem nos atores. */
html body :is(#ca-adventure-plaza,#ca-hall,#candido-arena) .ca-official-mask,
html body #ca-adventure-interiors .ci-highlight {
 position:absolute!important;inset:0!important;pointer-events:none!important;
 background:rgba(255,221,118,.50)!important;mix-blend-mode:screen!important;
 -webkit-mask-mode:alpha!important;mask-mode:alpha!important;
 -webkit-mask-size:100% 100%!important;mask-size:100% 100%!important;
 -webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;
 -webkit-mask-position:center center!important;mask-position:center center!important;
 transition:opacity .18s ease!important;
}
/* Mesmo sistema de proximidade/hover/teclado já existente no jogo. */
html body :is(#ca-adventure-plaza,#ca-hall,#candido-arena) .ca-official-mask {
 opacity:0!important;visibility:visible!important;display:block!important;z-index:590!important;
}
html body #ca-adventure-interiors .ci-highlight{
 opacity:0!important;visibility:visible!important;z-index:700!important;
}
html body #ca-adventure-plaza .ca-official-mask-plaza{
 -webkit-mask-image:url('plaza.png?v=1447')!important;mask-image:url('plaza.png?v=1447')!important;
}
html body #ca-hall .ca-official-mask-hall{
 -webkit-mask-image:url('hall.png?v=1447')!important;mask-image:url('hall.png?v=1447')!important;
}
html body #candido-arena .ca-official-mask-arena{
 -webkit-mask-image:url('arena.png?v=1447')!important;mask-image:url('arena.png?v=1447')!important;
}
html body .ca-official-mask-plaza[data-mask-for="plaza-center"]{clip-path:inset(28.5563% 78.9222% 56.2633% 15.8084%)!important}
html body .ca-official-mask-plaza[data-mask-for="plaza-postcards"]{clip-path:inset(29.0870% 64.2515% 60.9342% 29.6407%)!important}
html body .ca-official-mask-plaza[data-mask-for="plaza-hall"]{clip-path:inset(26.4331% 43.4731% 57.1125% 46.5269%)!important}
html body .ca-official-mask-plaza[data-mask-for="plaza-mural"]{clip-path:inset(26.9639% 24.8503% 61.7834% 66.4072%)!important}
html body .ca-official-mask-plaza[data-mask-for="plaza-shop"]{clip-path:inset(30.9979% 16.2874% 53.3970% 78.0838%)!important}
html body .ca-official-mask-plaza[data-mask-for="plaza-arena-arrow"]{clip-path:inset(35.0318% 0.0000% 55.2017% 93.8323%)!important}
html body .ca-official-mask-plaza[data-mask-for="plaza-port-boats"]{clip-path:inset(64.7558% 58.7425% 7.8556% 24.7904%)!important}
html body .ca-official-mask-hall[data-mask-for="hall-stars"]{clip-path:inset(37.7919% 76.8263% 33.4395% 8.9820%)!important}
html body .ca-official-mask-hall[data-mask-for="hall-tree"]{clip-path:inset(37.0488% 44.0120% 48.9384% 43.3533%)!important}
html body .ca-official-mask-hall[data-mask-for="hall-library"]{clip-path:inset(36.4119% 3.0539% 33.2272% 77.1257%)!important}
html body .ca-official-mask-arena[data-mask-for="arena-plaza-arrow"]{clip-path:inset(42.5690% 90.5988% 47.8769% 2.5150%)!important}
html body .ca-official-mask-arena[data-mask-for="arena-dance-entry"]{clip-path:inset(13.2696% 3.2934% 37.6858% 71.0778%)!important}
html body .ca-official-mask-arena[data-mask-for="arena-table-0"]{clip-path:inset(59.1295% 38.3832% 14.6497% 39.8802%)!important}
html body .ca-official-mask-arena[data-mask-for="arena-table-1"]{clip-path:inset(59.1295% 38.3832% 14.6497% 39.8802%)!important}
html body .ca-official-mask-arena[data-mask-for="arena-table-2"]{clip-path:inset(59.1295% 38.3832% 14.6497% 39.8802%)!important}
html body .ca-official-mask-arena[data-mask-for="arena-table-3"]{clip-path:inset(59.1295% 38.3832% 14.6497% 39.8802%)!important}

/* O próprio hover ou a aproximação do objeto clicável ativa só a máscara dele. */
html body #ca-adventure-plaza:has(#plaza-center:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="plaza-center"]{opacity:1!important}
html body #ca-adventure-plaza:has(#plaza-postcards:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="plaza-postcards"]{opacity:1!important}
html body #ca-adventure-plaza:has(#plaza-hall:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="plaza-hall"]{opacity:1!important}
html body #ca-adventure-plaza:has(#plaza-mural:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="plaza-mural"]{opacity:1!important}
html body #ca-adventure-plaza:has(#plaza-shop:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="plaza-shop"]{opacity:1!important}
html body #ca-adventure-plaza:has(#plaza-arena-arrow:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="plaza-arena-arrow"]{opacity:1!important}
html body #ca-adventure-plaza:has(#plaza-port-boats:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="plaza-port-boats"]{opacity:1!important}
html body #ca-hall:has(#hall-stars:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="hall-stars"]{opacity:1!important}
html body #ca-hall:has(#hall-tree:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="hall-tree"]{opacity:1!important}
html body #ca-hall:has(#hall-library:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="hall-library"]{opacity:1!important}
html body #candido-arena:has(#arena-plaza-arrow:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="arena-plaza-arrow"]{opacity:1!important}
html body #candido-arena:has(#arena-dance-entry:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="arena-dance-entry"]{opacity:1!important}
html body #candido-arena:has(#arena-table-0:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="arena-table-0"]{opacity:1!important}
html body #candido-arena:has(#arena-table-1:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="arena-table-1"]{opacity:1!important}
html body #candido-arena:has(#arena-table-2:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="arena-table-2"]{opacity:1!important}
html body #candido-arena:has(#arena-table-3:is(:hover,.near,:focus-visible)) .ca-official-mask[data-mask-for="arena-table-3"]{opacity:1!important}

/* Porto: somente o barco da máscara oficial. A placa permanece clicável, sem luz.
   Anula o brilho de ::after das versões anteriores (sem criar um segundo realce). */
html body #ca-adventure-plaza .plaza-scene button#plaza-port-boats::after,
html body #ca-adventure-plaza .plaza-scene button#plaza-port-boats:is(:hover,.near,:focus-visible)::after{
 display:none!important;content:none!important;opacity:0!important;
 background:none!important;box-shadow:none!important;filter:none!important;
}
html body #ca-adventure-plaza .plaza-scene button#plaza-port-sign::after{
 display:none!important;content:none!important;opacity:0!important;
}
/* V14.37/V14.41 escondiam a camada da máscara dos barcos.
   Esta regra possui maior especificidade, sem reativar os efeitos antigos. */
html body #ca-adventure-plaza .plaza-scene .ca-official-mask.ca-official-mask-plaza[data-mask-for="plaza-port-boats"]{
 display:block!important;visibility:visible!important;
}
/* O único alvo dos barcos acompanha o enquadramento da nova máscara. */
html body #ca-adventure-plaza .plaza-scene button#plaza-port-boats{
 left:24.79%!important;top:64.76%!important;width:16.47%!important;height:27.39%!important;
 clip-path:inset(0)!important;
}
html body #ca-adventure-interiors .ci-highlight[data-room="central"][data-mask-for="ci-left"]{
 -webkit-mask-image:url('../adventure-interiors/masks/mask-central-left.png?v=1447')!important;
 mask-image:url('../adventure-interiors/masks/mask-central-left.png?v=1447')!important;
}
html body #ca-adventure-interiors .ci-highlight[data-room="central"][data-mask-for="ci-center"]{
 -webkit-mask-image:url('../adventure-interiors/masks/mask-central-center.png?v=1447')!important;
 mask-image:url('../adventure-interiors/masks/mask-central-center.png?v=1447')!important;
}
html body #ca-adventure-interiors .ci-highlight[data-room="central"][data-mask-for="ci-right"]{
 -webkit-mask-image:url('../adventure-interiors/masks/mask-central-right.png?v=1447')!important;
 mask-image:url('../adventure-interiors/masks/mask-central-right.png?v=1447')!important;
}
html body #ca-adventure-interiors .ci-highlight[data-room="shop"][data-mask-for="ci-center"]{
 -webkit-mask-image:url('../adventure-interiors/masks/mask-loja-counter.png?v=1447')!important;
 mask-image:url('../adventure-interiors/masks/mask-loja-counter.png?v=1447')!important;
}
html body #ca-adventure-interiors .ci-highlight[data-room="shop"][data-mask-for="ci-right"]{
 -webkit-mask-image:url('../adventure-interiors/masks/mask-loja-door.png?v=1490')!important;
 mask-image:url('../adventure-interiors/masks/mask-loja-door.png?v=1490')!important;
}
html body #ca-adventure-interiors[data-room="central"]:has(#ci-left:is(:hover,.near,:focus-visible)) .ci-highlight[data-room="central"][data-mask-for="ci-left"]{opacity:1!important}
html body #ca-adventure-interiors[data-room="central"]:has(#ci-center:is(:hover,.near,:focus-visible)) .ci-highlight[data-room="central"][data-mask-for="ci-center"]{opacity:1!important}
html body #ca-adventure-interiors[data-room="central"]:has(#ci-right:is(:hover,.near,:focus-visible)) .ci-highlight[data-room="central"][data-mask-for="ci-right"]{opacity:1!important}
html body #ca-adventure-interiors[data-room="shop"]:has(#ci-center:is(:hover,.near,:focus-visible)) .ci-highlight[data-room="shop"][data-mask-for="ci-center"]{opacity:1!important}
html body #ca-adventure-interiors[data-room="shop"]:has(#ci-right:is(:hover,.near,:focus-visible)) .ci-highlight[data-room="shop"][data-mask-for="ci-right"]{opacity:1!important}

/* Nenhum brilho de retângulo legado na Central ou na Loja. */
html body #ca-adventure-interiors .ci-spot::after{display:none!important;content:none!important}
html body #ca-adventure-interiors .ci-spot:is(:hover,.near,:focus-visible){background:transparent!important;box-shadow:none!important;filter:none!important}
html body #ca-adventure-interiors[data-room="central"] .ci-highlight[data-room="shop"],
html body #ca-adventure-interiors[data-room="shop"] .ci-highlight[data-room="central"]{display:none!important;opacity:0!important}
/* Deixar jogadores acima dos efeitos luminosos. */
html body #ca-adventure-interiors #ci-actors,html body #ca-adventure-plaza #plaza-actors,
html body #ca-hall #hall-actors{z-index:1250!important;pointer-events:none!important}
@media(prefers-reduced-motion:reduce){
 html body :is(#ca-adventure-plaza,#ca-hall,#candido-arena) .ca-official-mask,
 html body #ca-adventure-interiors .ci-highlight{transition:none!important}
}

/* Enquadramentos de clique: mesmas posições dos PNGs, sem interferir nas ações. */
html body #ca-adventure-interiors[data-room="central"] .ci-scene #ci-left{left:0%!important;top:14.8%!important;width:30.2%!important;height:62.6%!important}
html body #ca-adventure-interiors[data-room="central"] .ci-scene #ci-center{left:32.45%!important;top:44.9%!important;width:34.9%!important;height:32.2%!important}
html body #ca-adventure-interiors[data-room="central"] .ci-scene #ci-right{left:70.2%!important;top:16.5%!important;width:29.8%!important;height:63.1%!important}
html body #ca-adventure-interiors[data-room="shop"] .ci-scene #ci-center{left:33.2%!important;top:48.5%!important;width:31.9%!important;height:24.0%!important}
html body #ca-adventure-interiors[data-room="shop"] .ci-scene #ci-right{left:65.3%!important;top:25.3%!important;width:10.4%!important;height:36.3%!important}   /* V14.90: a porta de saída da Loja na ARTE OFICIAL (arco + folha: x 1092→1266, y 238→580 em 1672×941). V14.88 media a arte antiga (65.2/28.9/8.2/34) */

/* V14.47 — aplicar somente a máscara PNG; não sobrepor glow retangular antigo. */
html body #ca-adventure-plaza .plaza-scene .plaza-hotspot::before,
html body #ca-adventure-plaza .plaza-scene .plaza-hotspot::after,
html body #ca-hall .hall-scene .hall-hotspot::before,
html body #ca-hall .hall-scene .hall-hotspot::after{
 background:none!important;filter:none!important;box-shadow:none!important;
 content:none!important;display:none!important;
}
html body #ca-adventure-plaza .plaza-scene .ca-official-mask.ca-official-mask-plaza,
html body #ca-hall .hall-scene .ca-official-mask.ca-official-mask-hall{
 display:block!important;visibility:visible!important;
 background:rgba(255,222,117,.48)!important;
 mix-blend-mode:screen!important;
}
