:root {
  --bg: #0b0f14;
  --fg: #e6f3ff;
  --muted: #8aa0b8;
  --accent: #00ffc6;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.container { max-width: 720px; margin: 10vh auto; padding: 24px; text-align: center; }
h1 { margin: 0 0 12px; }

.score-container {
  margin-bottom: 30px;
}

.score {
  display: flex;
  justify-content: center;
  gap: 50px;
  font-size: 20px;
}

.choices {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.choice {
  background: transparent;
  border: none;
  font-size: 50px;
  cursor: pointer;
  transition: transform 0.2s;
}

.choice:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.choice:hover {
  transform: scale(1.2);
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 6px 0 10px;
}

#reset {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

#reset:hover, #reset:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent);
}

.hint {
  color: var(--muted);
  font-size: 12px;
}

.results {
  margin-top: 30px;
  font-size: 24px;
}

.player-choice,
.computer-choice {
  margin-bottom: 10px;
}

.result {
  font-weight: bold;
}

.winner {
  color: #2ecc71; /* green */
  animation: bounce 0.5s ease;
}

.loser {
  color: #e74c3c; /* red */
  animation: shake 0.5s ease;
}

.draw {
  color: #f1c40f; /* yellow */
}

.choice-animation {
  animation: pop 0.5s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}
