/* -------- Page & Background -------- */
body {
  min-height: 100vh;
  margin: 0;
  color: white;
  font-family: Arial;
  text-align: center;

  background: linear-gradient(
    120deg,
    rgb(134, 129, 187),
    rgb(98, 92, 160),
    rgb(160, 140, 220)
  );
  background-size: 300% 300%;
  animation: bgMove 12s ease infinite;
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* -------- Title -------- */
.name {
  font-size: 32px;
  font-weight: 700;
  margin-top: 20px;
  letter-spacing: 1px;

  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: titleGlow 2s ease-in-out infinite alternate;
}

/* -------- Move Buttons -------- */
.move-btn {
  background-color: transparent;
  border: 2px solid white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.move-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.move-btn:active {
  transform: scale(0.95);
}

.move-img {
  height: 50px;
}

/* -------- Result -------- */
.result {
  font-size: 25px;
  font-weight: 600;
  margin-top: 20px;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.win {
  background-color: #2ecc71;
}

.lose {
  background-color: #e74c3c;
}

.tie {
  background-color: #f1c40f;
}

/* -------- Moves & Score -------- */
.moves {
  font-size: 15px;
  margin-top: 15px;
}

.score {
  font-size: 18px;
  margin-top: 30px;
}

/* -------- Reset Button -------- */
.reset-score-btn {
  padding: 8px 15px;
  font-size: 15px;
  margin-top: 15px;
  cursor: pointer;
}

/* -------- Shake Animation -------- */
@keyframes shake {
  0% { transform: rotate(0); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
  100% { transform: rotate(0); }
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  }
  to {
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  }
}

.animate {
  animation: shake 0.3s;
}
