@import url("https://fonts.googleapis.com");

* {
  font-family: "Fredoka", sans-serif;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.btn-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: #ff5757;
  color: white !important;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.1rem;
  border: 4px solid white;
  box-shadow: 0 8px 0px #b33939;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.btn-back:hover {
  transform: scale(1.1) translateY(-2px);
  background: #ff4040;
  box-shadow: 0 10px 0px #b33939;
}

.btn-back:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0px #b33939;
}

/* Botão JOGAR DE NOVO - Estilo Joystick Emerald */
.btn-play-again {
  background: #10b981; /* emerald-500 */
  color: white;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.25rem;
  border: 4px solid white;
  /* Sombra sólida verde escura para o efeito 3D */
  box-shadow: 0 8px 0px #065f46;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ocupa a largura do modal */
  text-transform: uppercase;
}

.btn-play-again:hover {
  transform: scale(1.05) translateY(-2px);
  background: #059669; /* emerald-600 */
  box-shadow: 0 10px 0px #064e3b;
}

.btn-play-again:active {
  transform: translateY(6px); /* Efeito de "afundar" o botão ao clicar */
  box-shadow: 0 2px 0px #064e3b;
}

.bucket {
  border-radius: 40px;
  padding: 25px;
  min-height: 220px;
  border: 6px solid white;
  box-shadow:
    inset 0 -10px 0px rgba(0, 0, 0, 0.1),
    0 12px 0px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bucket.drag-over {
  transform: scale(1.05);
  background-color: white !important;
  border-color: #ffde59;
  box-shadow: 0 0 30px rgba(255, 222, 89, 0.6);
}

.animal-card {
  background: white;
  border-radius: 25px;
  padding: 15px;
  border: 4px solid #f0f0f0;
  cursor: grab;
  box-shadow: 0 6px 0px #cccccc;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.animal-card:hover {
  transform: translateY(-5px);
  border-color: #38b6ff;
  box-shadow: 0 10px 0px #2a88bf;
}

.animal-card:active {
  cursor: grabbing;
  transform: scale(0.95);
}
.animal-card.dragging {
  opacity: 0.5;
  transform: scale(1.1) rotate(5deg);
}

@keyframes success-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    border-color: #7ed957;
  }
}

@keyframes error-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
    border-color: #ff5757;
  }
  75% {
    transform: translateX(10px);
    border-color: #ff5757;
  }
}

.correct-drop {
  animation: success-pop 0.5s ease;
}
.wrong-drop {
  animation: error-shake 0.4s ease;
}

.progress-fill {
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 15px rgba(255, 222, 89, 0.4);
}

.feedback-message {
  animation: float 0.6s ease-in-out infinite alternate;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

@keyframes float {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-12px) scale(1.05);
  }
}
