.sigilo {
  height: auto;
  overflow: hidden;
}
.sigilo img, #sigilo img, .simbolo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}
@keyframes floatDownUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(50%);
  } /* até o meio do div pai */
}
.simbolo {
  position: relative;
}
.ativo .simbolo img {
  display: block;
  margin: 0 auto;
  /*animation: floatDownUp 20s ease-in-out infinite both;*/
  transform: translateY(40%);
  will-change: transform;
}
#ativado .sigilo {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 20px;
  height: auto;
  overflow: hidden;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  animation: pulsar 4s ease-in-out infinite;
  width: 30%;
  aspect-ratio: 1/1;
  filter: invert(1);
}
/* ====== Caotizese â€“ estilos modernos para busca + dropzone ====== */
.busca-wrap {
  display: grid;
  gap: 10px;
  margin: 16px 0 8px;
  width: 100%;
}
.busca-input {
  position: relative;
  display: flex;
  align-items: center
}
#busca-entidade {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 10px;
  border: 1px solid #000;
  background: #FFF;
  color: #000;
  outline: none;
  transition: border .15s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25) inset;
}
#busca-entidade:focus {
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(122, 162, 255, .15)
}
#busca-clear {
  position: absolute;
  right: 8px;
  appearance: none;
  border: 0;
  background: #1b212a;
  color: #9aa0a6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  text-align: center
}
#busca-clear:hover {
  color: #fff;
  background: #232a34
}
.resultado-busca {
  display: none;
  position: relative;
  background: #0d1117;
  border: 1px solid #2f343e;
  border-radius: 12px;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto
}
.resultado-busca.show {
  display: block
}
.item-busca {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #191e26
}
.item-busca:last-child {
  border-bottom: 0
}
.item-busca:hover {
  background: #1f6feb22
}
.item-busca img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #FFF;
}
.item-busca .meta {
  display: flex;
  flex-direction: column;
  gap: 2px
}
.item-busca .meta strong {
  color: #e6e9ef;
  font-weight: 600
}
.item-busca .meta small {
  color: #9aa0a6
}
.upload-wrapper {
  display: grid;
  width: 100%
}
.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 140px;
  padding: 20px;
  border: 2px dashed #000;
  border-radius: 16px;
  background: linear-gradient(180deg, #eee 0%, #fff 100%);
  color: #666;
  transition: all .18s ease-in-out;
  outline: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25) inset;
}
.dropzone:hover, .dropzone:focus {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(122, 162, 255, .15), 0 8px 20px rgba(0, 0, 0, .35)
}
.dropzone.dragover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, .06);
  transform: scale(1.01)
}
.dz-icon {
  font-size: 36px;
  filter: grayscale(.3)
}
.dz-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center
}
.dz-text strong {
  font-size: 16px
}
.dz-text span {
  opacity: .8
}
.dz-hint {
  opacity: .6
}
.dz-browse {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #eb741f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 111, 235, .35)
}
.dz-browse:hover {
  filter: brightness(1.05)
}
.dz-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0d1117;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 10px
}
.dz-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #222
}
.dz-actions {
  display: flex;
  gap: 8px;
  margin-left: auto
}
.dz-actions button {
  appearance: none;
  border: 1px solid #2b2f36;
  background: #151a21;
  color: #e6e9ef;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer
}
.dz-actions button:hover {
  background: #1b212a
}
.btn-completar {
  display: none;
  background: linear-gradient(135deg, #ddd, #ccc);
  border: none;
  color: #333;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background .3s, transform .1s;
  float: right;
  white-space: nowrap;
}
.btn-completar:hover {
  background: #eb741f;
}
.btn-completar:active {
  transform: scale(0.95);
}
/* Remover individual (X) */
.sigilo-escolhido {
  position: relative
}
.remover-sigilo {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 5;
  appearance: none;
  border: 1px solid #2b2f36;
  background: #151a21;
  color: #e6e9ef;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  cursor: pointer
}
.remover-sigilo:hover {
  background: #1b212a
}
/* PosiÃ§Ã£o normal no layout */
#energizador {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  z-index: 10;
}
#energizador .protegeSigilo{
    transform: translateY(40%);
}
/* Apenas quando ativado: fixa e centraliza */
#energizador.ativo {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  background: transparent;
  margin: 0;
  width: 100% !important;
  height: 100% !important;
  /*background: #FFF;*/
}
/* Centraliza o sigilo (canvas) dentro */
#energizador .sigilo {
  display: flex;
  justify-content: center;
  align-items: center;
  mix-blend-mode: overlay;
  z-index: 2;
}
/* Bloqueia rolagem durante a ativaÃ§Ã£o */
body.play-ativo {
  overflow: hidden;
}
canvas#imageCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
#play2 {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  border: 0;
  background: #FFF;
  padding: 5px;
  width: calc(100% - 10px);
  left: 0;
  z-index: 1;
  height: calc(100% - 10px);
  opacity: 0.5;
}
.play img.emoji {
  mix-blend-mode: difference;
  border-radius: 100%;
}
#energizador.ativo #sigilo-visitante {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ctrene {
  display: block;
  position: relative;
  margin: 30px 0;
}
.quadro-sigilos {
  width: 100%;
  height: 100%;
  /*mix-blend-mode: darken;*/
}
.busca-acoes {
  display: flex;
  justify-content: flex-end; /* alinha à direita */
  gap: 8px; /* espaçamento entre botões */
  margin-top: 8px;
}
#tempo {
  position: relative;
  float: right;
  z-index: 43;
  margin-top: -20px;
}
.play, #pause {
  cursor: pointer;
}
#pause {
  position: relative;
  float: right;
  z-index: 43;
}
.sigilo-servidor {
  position: absolute;
  width: 20%;
  height: 92%;
  left: 40%;
  top: 3%;
  text-align: center;
  transition: 1s all;
}
.ativo .sigilo-servidor {
  height: 100%;
  top: 0;
}
.sigilo-escolhido {
  transition: 1s all;
}
#sigilo-visitante {
  position: absolute;
  width: 33%;
  height: 33%;
  text-align: center;
  overflow: hidden;
  top: 33.33%;
  left: 33.33%;
  z-index: 11;
  border-radius: 100%;
}
.click-sobre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: #FFF;
  padding: 32px 0;
  font-weight: bold;
  cursor: pointer;
}
.click-sobre:hover {
  background-color: #CCC;
}
.borda-preta {
  border: 1px solid #000;
}
#energizador,
#energizador .sigilo-servidor,
#energizador .simbolo img {
  will-change: transform, opacity;
}
#energizador{
  transform: translateZ(0);
}
@-webkit-keyframes giraCaos {
  from {
    -webkit-transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes giraCaos {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.quadro-sigilos.rodando {
  -webkit-animation: giraCaos 12s linear infinite;
  animation: giraCaos 12s linear infinite;
  transform-origin: center center;
}