/* V9.9.14 — Todas as transições usam somente logo e medalhão animado, 3s. */
#ca-v9914-loading[hidden]{display:none!important}
#ca-v9914-loading{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(14px,3vh,33px);background:#164b80 url('../imagens/ilhas/fundo-arquipelago-candido.png') center/cover no-repeat;pointer-events:all}
#ca-v9914-loading .ca-v9914-loading-logo{width:min(62vw,360px);height:auto;max-height:34vh;object-fit:contain;filter:drop-shadow(0 8px 12px #002f5ea8)}
#ca-v9914-loading .ca-v9914-loading-gif{width:clamp(96px,16vw,165px);height:clamp(96px,16vw,165px);object-fit:contain;image-rendering:auto;filter:drop-shadow(0 6px 12px #0005)}
/* Preserve the original 3-second boot, but replace its text with the same animated emblem. */
#ca-v50-boot>span,#ca-v50-boot .ca-spinner,#ca-v50-boot .spinner{display:none!important}
#ca-v50-boot:not(.ca-finished)::after{content:'';display:block;width:clamp(96px,16vw,165px);height:clamp(96px,16vw,165px);background:url('medalhao-carregamento.gif') center/contain no-repeat}
/* Legacy screen overlays remain responsible for their original lifecycle,
   but have no visible text or spinners behind the unified 3-second animation. */
#ca-login-transition .ca-spinner,#ca-login-transition p,
#ca-arena-transition .ca-spinner,#ca-arena-transition p,
#ca-hall-transition .ha-spinner,#ca-hall-transition span,
#ca-halloween-transition .ha-spinner,#ca-halloween-transition span,
#ca-minigame-loading .ca-minigame-spinner,#ca-minigame-loading strong,#ca-minigame-loading span{display:none!important}
/* Prevent a shorter legacy overlay flashing after the unified overlay completes. */
#ca-login-transition.ca-show,#ca-arena-transition.ca-show,#ca-hall-transition.ca-show,
#ca-halloween-transition.ca-show,#ca-minigame-loading.ca-show{visibility:hidden!important;pointer-events:none!important}
@media(max-height:420px){#ca-v9914-loading{flex-direction:row;gap:20px}#ca-v9914-loading .ca-v9914-loading-logo{width:min(40vw,270px)}#ca-v9914-loading .ca-v9914-loading-gif{width:clamp(75px,16vh,115px);height:clamp(75px,16vh,115px)}}
/* V9.9.15: mesmo eixo vertical em desktop, tablet e mobile horizontal. */
@media(max-height:420px){#ca-v9914-loading{flex-direction:column!important;gap:clamp(4px,2vh,12px)!important}#ca-v9914-loading .ca-v9914-loading-logo{width:min(37vw,270px);max-height:41vh}#ca-v9914-loading .ca-v9914-loading-gif{width:clamp(48px,19vh,85px);height:clamp(48px,19vh,85px)}}
