/* Cândido Adventure V100.4 — ajustes isolados de nomes e hover.
   O Hall continua como referência de identificação de professores nas salas. */

/* Arena e Halloween: suas regras genéricas de span posicionavam o selo Prof.
   como uma segunda etiqueta absoluta, em vez de prefixo ao lado do nome. */
#candido-arena .arena-actor > span,
#ca-ha .ha-actor > span {white-space:nowrap!important;}
#candido-arena .arena-actor > span .ca-professores-label,
#ca-ha .ha-actor > span .ca-professores-label {
  position:static!important;
  inset:auto!important;
  top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  float:none!important;transform:none!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  margin:0 4px 0 0!important;
  padding:1px 5px!important;
  vertical-align:baseline!important;
  line-height:1.1!important;
  font-size:inherit!important;
  white-space:nowrap!important;
  background:linear-gradient(135deg,#ffe7a0,#e6a83b)!important;
  color:#533208!important;
  border:2px solid #fff0b9!important;
  border-radius:8px!important;
  box-shadow:0 0 9px #ffd64a99!important;
  text-shadow:none!important;
  font-weight:900!important;
}

/* Hall: copiar exatamente os valores visuais do destaque .ha-booth de
   Halloween Mysteries, mantendo os alvos transparentes quando inativos. */
#ca-hall .hall-scene .hall-hotspot:is(:hover,:focus-visible,.near){
  border:0!important;
  background:radial-gradient(ellipse,#ffe28905 36%,#ffe08c25 75%,#ffe08c50 100%)!important;
  box-shadow:0 0 22px 7px #ffe8a77c,inset 0 0 17px 5px #ffe8a755!important;
  filter:drop-shadow(0 0 7px #ffdf8b)!important;
  border-radius:20%!important;
  transition:background .2s,box-shadow .2s,filter .2s!important;
}
@media(prefers-reduced-motion:reduce){
 #ca-hall .hall-scene .hall-hotspot{transition:none!important}
}

/* V100.5 — Prof. imediatamente antes do nome; remove margem extra sem mudar etiqueta. */
.ca-professores-label,
#candido-arena .arena-actor > span .ca-professores-label,
#ca-ha .ha-actor > span .ca-professores-label,
#ca-hall .hall-actor .ca-professores-label,
#ca-dream-rooms .ha-actor .ca-professores-label {
  margin-right:0!important;
}

/* V100.8 — cabeçalhos únicos para Hall, Halloween e Imagination.
   As três salas MOVEM o cabeçalho original do site. Aplicar as mesmas
   medidas calculadas pela Arena (não tocar no header da tela inicial).
   Este bloco substitui as regras conflitantes V100.7 para o Hall. */
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms)>header.top{
 position:absolute!important;left:auto!important;right:8px!important;top:7px!important;
 z-index:4600!important;width:max-content!important;height:auto!important;
 max-width:calc(100% - 155px)!important;min-width:0!important;
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 gap:0!important;flex-wrap:nowrap!important;margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;backdrop-filter:none!important;filter:none!important;
 outline:none!important;overflow:visible!important;
}
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms)>header.top::before,
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms)>header.top::after{content:none!important;display:none!important}
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms)>header.top .brand{display:none!important}
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms)>header.top>.flex{
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 flex:0 0 auto!important;flex-wrap:nowrap!important;gap:4px!important;
 width:auto!important;max-width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;background:transparent!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 backdrop-filter:none!important;overflow:visible!important;
}
/* Neutraliza os wrappers históricos de mobile sem deslocar Música/SFX. */
html body #ca-hall header.top.hall-shared-header .hall-mobile-actions{display:contents!important}
/* Música e efeitos: copiar largura e altura da Arena (48 desktop/38 mobile). */
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) :is(#music,#sfx){
 position:static!important;box-sizing:border-box!important;display:flex!important;
 align-items:center!important;justify-content:center!important;
 width:48px!important;min-width:0!important;max-width:48px!important;
 height:48px!important;min-height:48px!important;max-height:48px!important;
 flex:0 0 48px!important;margin:0!important;padding:5px 7px!important;
 font-size:16px!important;line-height:1!important;
}
/* Todos os contadores continuam usando os MESMOS elementos e cores da Arena. */
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) .global-online-counter{
 box-sizing:border-box!important;position:static!important;display:flex!important;
 align-items:center!important;justify-content:center!important;gap:5px!important;
 min-width:0!important;width:auto!important;max-width:none!important;
 height:48px!important;min-height:48px!important;max-height:48px!important;
 flex:0 0 auto!important;margin:0!important;padding:5px 7px!important;
 font:900 11px 'Trebuchet MS',Arial,sans-serif!important;
}
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) .ca-stars-counter{
 box-sizing:border-box!important;position:static!important;display:flex!important;
 align-items:center!important;justify-content:center!important;gap:5px!important;
 min-width:64px!important;width:auto!important;max-width:none!important;
 height:48px!important;min-height:48px!important;max-height:48px!important;
 flex:0 0 auto!important;margin:0!important;padding:8px 12px!important;
 font:900 16px 'Trebuchet MS',Arial,sans-serif!important;
}
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) #logout{
 box-sizing:border-box!important;position:static!important;
 min-width:64px!important;width:auto!important;max-width:none!important;
 height:48px!important;min-height:48px!important;max-height:48px!important;
 flex:0 0 auto!important;margin:0!important;padding:5px 7px!important;
 font-size:16px!important;line-height:1!important;
}
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) #logout.hidden{display:none!important}
/* Voltar ao mapa: idêntico ao botão de navegação da Arena.
   Evita o botão branco do Hall e o botão azul com dimensões próprias das outras salas. */
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms) :is(.hall-nav,.ha-island-nav){
 position:absolute!important;left:8px!important;top:8px!important;right:auto!important;
 z-index:4601!important;display:flex!important;align-items:center!important;
 justify-content:flex-start!important;flex-wrap:nowrap!important;gap:0!important;
 width:max-content!important;max-width:none!important;min-height:0!important;
 margin:0!important;padding:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;pointer-events:none!important;
}
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms) :is(.hall-nav,.ha-island-nav)>:is(#hall-exit,#ha-back,#ca-room-exit){
 box-sizing:border-box!important;position:static!important;display:block!important;
 width:max-content!important;min-width:0!important;max-width:none!important;
 height:48px!important;min-height:48px!important;max-height:48px!important;
 flex:0 0 auto!important;margin:0!important;padding:10px 14px!important;
 font:700 14px/1.25 'Trebuchet MS',system-ui,sans-serif!important;
 letter-spacing:.015em!important;white-space:nowrap!important;text-align:center!important;
 background:linear-gradient(165deg,#69bffb 0%,#2f85d3 56%,#205ca8 100%)!important;
 color:white!important;border:3px solid #c39b64!important;border-bottom:5px solid #805331!important;
 border-radius:20px!important;text-shadow:0 2px 2px #174c38,0 0 2px #174c38!important;
 box-shadow:inset 0 3px 0 #ffffff85,inset 0 -3px 0 #195f3799,0 5px 0 #60442d,0 9px 12px #183b4b45!important;
 transform:none!important;pointer-events:auto!important;cursor:pointer!important;
}
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms) :is(.hall-nav,.ha-island-nav)>:is(#hall-exit,#ha-back,#ca-room-exit)::before,
html body :is(#ca-hall,#ca-ha,#ca-dream-rooms) :is(.hall-nav,.ha-island-nav)>:is(#hall-exit,#ha-back,#ca-room-exit)::after{content:none!important;display:none!important}
/* Hall: nunca deixar o cabeçalho sobre Biblioteca ou menus internos. */
#ca-hall.hall-library-open header.top.hall-shared-header,
#ca-hall.hall-library-open .hall-nav,
#ca-hall:has(.hall-modal:not([hidden])) header.top.hall-shared-header,
#ca-hall:has(.hall-modal:not([hidden])) .hall-nav{display:none!important}
@media(max-width:1000px),(pointer:coarse){
 html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) :is(#music,#sfx){
  width:38px!important;max-width:38px!important;height:38px!important;
  min-height:38px!important;max-height:38px!important;flex:0 0 38px!important;
  padding:4px!important;font-size:12px!important;
 }
 html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) .global-online-counter{
  height:38px!important;min-height:38px!important;max-height:38px!important;
  padding:5px 7px!important;font-size:11px!important;
 }
 html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) .ca-stars-counter{
  height:38px!important;min-height:38px!important;max-height:38px!important;
  min-width:48px!important;padding:5px 7px!important;font-size:12px!important;
 }
 html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) #logout{
  height:38px!important;min-height:38px!important;max-height:38px!important;
  min-width:45px!important;padding:4px!important;font-size:12px!important;
 }
}
@media(max-width:700px){
 html body :is(#ca-hall,#ca-ha,#ca-dream-rooms)>header.top{top:4px!important;right:4px!important}
 html body :is(#ca-hall,#ca-ha,#ca-dream-rooms) :is(.hall-nav,.ha-island-nav){top:4px!important;left:4px!important}
}
@media(min-width:521px) and (max-width:700px){
 /* A Arena usa 11px no contador e 12px no Voltar nesta faixa. */
 html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) .global-online-counter{font-size:11px!important;padding:5px 7px!important}
 html body :is(#ca-hall,#ca-ha,#ca-dream-rooms) :is(.hall-nav,.ha-island-nav)>:is(#hall-exit,#ha-back,#ca-room-exit){
  font-size:12px!important;padding:7px 9px!important;
 }
}
@media(max-width:520px){
 html body :is(#ca-hall,#ca-ha,#ca-dream-rooms)>header.top{max-width:calc(100% - 120px)!important}
 html body :is(#ca-hall,#ca-ha,#ca-dream-rooms) :is(.hall-nav,.ha-island-nav)>:is(#hall-exit,#ha-back,#ca-room-exit){
  font-size:11px!important;padding:5px!important;
 }
 html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top,#ca-dream-rooms header.top) .global-online-counter{font-size:10px!important;padding:4px!important}

}
/* O identificador docente permanece na mesma linha. */
#candido-arena .arena-actor > span .ca-professores-label,
#ca-ha .ha-actor > span .ca-professores-label,
#ca-hall .hall-actor .ca-professores-label,
#ca-dream-rooms .ha-actor .ca-professores-label{margin:0 1px 0 0!important;padding:1px 3px!important}
#student .ca-home-six #welcome{overflow-wrap:anywhere!important;max-width:100%!important;line-height:1.12!important}

/* V100.9 — remove exclusivamente o filete branco interno dos controles
   de cabeçalho no Hall e Halloween. A moldura dourada, o fundo,
   as dimensões e o comportamento da Arena permanecem intactos. */
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top) .btn::before {
  content:none!important;
  display:none!important;
  border:0!important;
  box-shadow:none!important;
}
/* Contadores têm o brilho branco em uma sombra interna, não em ::before. */
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top) :is(.global-online-counter,.ca-stars-counter) {
  box-shadow:0 4px 0 #60442d!important;
}
/* Preserva a profundidade sem a faixa branca de topo do botão Sair. */
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top) #logout:not(:active) {
  box-shadow:inset 0 -3px 0 #195f3799,0 5px 0 #60442d,0 9px 12px #183b4b45!important;
}
/* Quando a música/efeitos estão desligados, não reintroduzir a faixa clara. */
html body :is(#ca-hall header.top.hall-shared-header,#ca-ha header.top) button.sound-toggle[aria-pressed="false"]:not(:active) {
  box-shadow:inset 0 -3px 0 #195f3799,0 5px 0 #60442d,0 9px 12px #183b4b45!important;
}

/* V100.10 — remove a mesma linha branca do cabeçalho na Ilha da Imaginação.
   Mantém dimensões, moldura dourada e elementos da Arena inalterados.
   Os três ambientes usam o mesmo elemento #ca-dream-rooms. */
html body #ca-dream-rooms header.top .btn::before {
  content:none!important;
  display:none!important;
  border:0!important;
  box-shadow:none!important;
}
html body #ca-dream-rooms header.top :is(.global-online-counter,.ca-stars-counter) {
  box-shadow:0 4px 0 #60442d!important;
}
html body #ca-dream-rooms header.top #logout:not(:active) {
  box-shadow:inset 0 -3px 0 #195f3799,0 5px 0 #60442d,0 9px 12px #183b4b45!important;
}
html body #ca-dream-rooms header.top button.sound-toggle[aria-pressed="false"]:not(:active) {
  box-shadow:inset 0 -3px 0 #195f3799,0 5px 0 #60442d,0 9px 12px #183b4b45!important;
}

/* V100.10 — mesmo efeito de Halloween Mysteries (.ha-booth) em todas as
   funções interativas dos três cenários da Ilha da Imaginação:
   Dream Plaza (setas, Sky Journey e Peter), Movie Arena (troféu e saída),
   Star Gallery (urna e saída). A movimentação por clique não é alterada. */
html body #ca-dream-rooms .ha-scene .ca-room-hotspot {
  transition:background .2s,box-shadow .2s,filter .2s!important;
}
html body #ca-dream-rooms .ha-scene .ca-room-hotspot:is(:hover,:focus-visible,.near),
html body #ca-dream-rooms .ha-scene:has(.ca-room-sky-play:is(:hover,:focus-visible)) .ca-room-hotspot[data-spot="sky"] {
  background:radial-gradient(ellipse,#ffe28905 36%,#ffe08c25 75%,#ffe08c50 100%)!important;
  box-shadow:0 0 22px 7px #ffe8a77c,inset 0 0 17px 5px #ffe8a755!important;
  filter:drop-shadow(0 0 7px #ffdf8b)!important;
  outline:0!important;
}
/* Mesmo foco acessível com teclado das barracas de Halloween. */
html body #ca-dream-rooms .ha-scene .ca-room-hotspot:focus-visible {
  outline:3px solid #ffe07e!important;
  outline-offset:3px!important;
}
@media(prefers-reduced-motion:reduce) {
  html body #ca-dream-rooms .ha-scene .ca-room-hotspot {
    transition:none!important;
  }
}
