/* ID Federal Halloween v2.1: lua cheia cinematografica, sem olhos ou boca. */
body.idf-halloween-active #idf-hw-moon-stage {
  position:fixed!important; inset:0!important; z-index:18!important;
  overflow:hidden!important; pointer-events:none!important;
  isolation:isolate!important; background:transparent!important;
}
body.idf-halloween-active #idf-hw-moon-stage .idf-hw-moon-art {
  position:absolute!important;
  top:clamp(65px,9vh,125px)!important;
  right:clamp(-54px,-1.5vw,-15px)!important;
  width:clamp(260px,27vw,400px)!important;
  height:auto!important;
  aspect-ratio:1!important;
  display:block!important;
  opacity:.94!important;
  object-fit:contain!important;
  filter:drop-shadow(0 0 23px rgba(255,178,97,.24)) drop-shadow(0 0 67px rgba(243,141,69,.15))!important;
  mix-blend-mode:normal!important;
}
/* Evita lua duplicada na v1.9. O fundo continua escuro. */
body.idf-halloween-active .idf-hw-portal-root {
  background-image:radial-gradient(circle at 91% 10%,rgba(251,161,65,.13),transparent 36%),linear-gradient(145deg,#1e172a,#15101e)!important;
  background-size:cover,cover!important;background-position:center,center!important;
}
body.idf-hw-demo {
  background-image:radial-gradient(circle at 90% 13%,rgba(251,161,65,.14),transparent 36%),linear-gradient(145deg,#20162d,#100c1a)!important;
  background-size:cover,cover!important;background-position:center,center!important;
}
/* Formularios, cards e controles devem ficar acima da lua. */
body.idf-halloween-active :is(.login-card,.auth-card,.form-card,.signin-card,.partner-login,.login-form,.auth-panel,.portal-card,.portal-panel,.marketing-panel,.marketing-card,.dashboard-card,.sidebar-card,.art-card,.central-wrap,.sign-panel,.art-tile,.demo-login,.demo-sidebar,.demo-art,.card) {
  position:relative;z-index:20;
}
body.idf-hw-demo .previewer {position:relative!important;z-index:20!important;}
body.idf-hw-demo .demo-shell {position:relative!important;z-index:20!important;}
/* Bruxas continuam no plano da frente, sem capturar clique. */
body.idf-halloween-active #idf-halloween-scene[data-idf-version="2.1"] {pointer-events:none!important;}
@media(max-width:700px){
  body.idf-halloween-active #idf-hw-moon-stage .idf-hw-moon-art {
    width:clamp(172px,44vw,230px)!important;
    right:-35px!important;top:122px!important;opacity:.89!important;
  }
}

/* O movimento respeita as preferencias de acessibilidade dos usuarios. */
@media (prefers-reduced-motion:reduce){body.idf-halloween-active .idf-hw-moon-art{filter:drop-shadow(0 0 17px rgba(255,178,97,.2))!important;}}
