/* 🌙 Dark + Violet Theme */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #e0e0ff;
  text-align: center;
  padding-top: 50px;
  min-height: 100vh;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #9d4edd;
  text-shadow: 0px 0px 10px #5a189a;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.3);
}

#formContainer input {
  margin: 5px;
  padding: 10px;
  border: 2px solid #9d4edd;
  border-radius: 10px;
  background: #1f1f3b;
  color: #fff;
  outline: none;
}

#formContainer input::placeholder {
  color: #bbb;
}

#formContainer button {
  background: #9d4edd;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

#formContainer button:hover {
  background: #7b2cbf;
  transform: scale(1.05);
}

.box {
  height: 100px;
  border: 2px solid #9d4edd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5em;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.3s,
    transform 0.2s;
}

.box:hover {
  background: rgba(157, 78, 221, 0.2);
  transform: scale(1.05);
}

#statusArea {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #e0e0ff;
}

footer {
  font-weight: bold;
  color: #9d4edd;
  margin-top: 30px;
  text-shadow: 0px 0px 5px #5a189a;
}

/* 🎉 Animation de victoire */
.winner {
  animation: winnerFlash 1s infinite alternate;
  color: #ffdd00 !important;
  text-shadow:
    0px 0px 20px #ffdd00,
    0px 0px 40px #ff8800;
}

@keyframes winnerFlash {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}
/* 📱 Responsive design */
@media (max-width: 768px) {
  .box {
    height: 80px;
    font-size: 2em;
  }

  h1 {
    font-size: 1.4rem;
  }

  #formContainer input {
    width: 90%;
    margin-bottom: 10px;
  }

  #formContainer button {
    width: 90%;
  }

  .container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .box {
    height: 70px;
    font-size: 1.8em;
  }

  h1 {
    font-size: 1.2rem;
  }
}
/* 🔄 Bouton Rejouer */
.btn-replay {
  margin-top: 15px;
  background: #9d4edd;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.btn-replay:hover {
  background: #7b2cbf;
  transform: scale(1.1);
}
#scoreP1,
#scoreP2 {
  color: #ffdd00;
}
#nameP1,
#nameP2 {
  color: #9d4edd;
}
