body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(160deg, #0a0a0f, #1a0f24, #0a0a0f);
  color: #d0cce3;
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 30px;
}

.game-box {
  background: rgba(20, 15, 30, 0.9);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(40, 0, 70, 0.5);
  width: 420px;
  border: 1px solid hwb(266 27% 45% / 0.6);
}

h1 {
  margin-bottom: 20px;
  font-size: 26px;
  color: #a890d3;
  font-weight: 600;
  letter-spacing: 1px;
}

.input-zone {
  display: flex;
  align-items: center;
  justify-content: center;
}

input {
  padding: 12px;
  width: 70%;
  border: 1px solid #4a3c66;
  border-radius: 8px;
  outline: none;
  background: #120d1e;
  color: #e0d6ff;
  font-size: 16px;
}

button {
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: #4a2b7f;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  margin-left: 5px;
}

button:hover {
  background: #5b379b;
}

#result {
  margin-top: 20px;
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  background: rgba(25, 20, 35, 0.8);
  border: 1px solid rgba(70, 50, 100, 0.6);
}

.ok {
  color: #4caf50;
  font-weight: 600;
}

.wrong {
  color: #d94c63;
  font-weight: 600;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.victory {
  animation: victoryFlash 1s ease forwards;
}

@keyframes victoryFlash {
  0% {
    transform: scale(1);
    color: #a890d3;
  }
  50% {
    transform: scale(1.2);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(150, 80, 200, 0.8);
  }
  100% {
    transform: scale(1);
    color: #a890d3;
    text-shadow: none;
  }
}

#suggestions {
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 10px;
  width: 100%;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s;
  color: #ddd;
}

.suggestion:hover {
  background: #3a0ca3;
}

.suggestion img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.perso-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.perso-img {
  width: 200px;
  height: 100px;
  border-radius: 20px;
  object-fit: contain;
}

footer {
  background: #0a0a0f;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #222;
}
