/* Jaulas da missão */
.missao-liberdade-tech {
  position: absolute;
  width: 7%;
  height: 11%;
  z-index: 10;
}

#missao-jaula-1 {
  top: 4%;
  left: 38%;
}

#missao-jaula-2 {
  top: 1%;
  left: 18%;
}

.jaula {
  position: relative;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    white,
    white 10%,
    black 10%,
    black 12%
  );
  border: 2px solid #333;
  border-radius: 6px;
  overflow: visible;
}

/* Portinha deslizante */
.portinha {
  position: absolute;
  width: 100%;
  height: 60%;
  bottom: 0;
  background-color: #ccc;
  border-top: 3px solid #000;
  z-index: 5;
  cursor: grab;
  transform: translateY(0);
  transition: transform 0.3s ease-out;
}

/* Bloco do animal */
.animal-bloco {
  position: absolute;
  width: 2.2vw;
  height: 4vh;
  border-radius: 5px;
  z-index: 10;
  opacity: 0;
  cursor: grab;
  transition: opacity 0.3s ease;
  left: 20%;
  top: 20%;
}

/* Cursor ao clicar no animal */
.animal-bloco:active {
  cursor: grabbing;
}

/* Botão de sorteio */
#btn-sortear-liberdade {
  position: absolute;
  top: 3%;
  left: 31.55%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  z-index: 12;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

#btn-sortear-liberdade:hover:not(:disabled) {
  background-color: #2980b9;
  transform: translateX(-50%) scale(1.03);
}

#btn-sortear-liberdade:active:not(:disabled) {
  transform: translateX(-50%) scale(0.98);
}

/* Destino de cada animal */
.destino-animal-liberdade {
  position: absolute;
  width: 7.9%;
  height: 12.1%;
  border-radius: 10px;
  border: 3px dashed #333;
  z-index: 1;
}

#destino-vermelho-liberdade {
  top: 1.3%;
  left: 63.6%;
  background-color: rgba(255, 0, 0, 0.3);
}

#destino-azul-liberdade {
  top: 37.6%;
  left: 36.9%;
  background-color: rgba(0, 0, 255, 0.3);
  transform: rotate(90deg);
}

/* Estilo desativado do botão de sorteio */
#btn-sortear-liberdade.bloqueado {
  background-color: #bbb;
  color: #666;
  cursor: pointer;
  pointer-events: auto; /* permite o clique mesmo visualmente "desativado" */
}

/* Bloqueia a portinha antes do sorteio */
.portinha.bloqueada {
  pointer-events: none;
  opacity: 0.5;
}

.animal-bloco {
  pointer-events: none; /* desativa clique enquanto invisível */
}

.animal-bloco.liberado {
  pointer-events: auto; /* só ativa depois */
}


