:root {
  --bg: #11161d;
  --panel: #1b232e;
  --accent: #ffce54;
  --win: #6fcf97;
  --lose: #eb5757;
  --draw: #8aa0b3;
  --text: #e8eef4;
  --muted: #92a3b3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 120% at 50% 0%, #1c2630 0%, var(--bg) 60%);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  display: flex;
  justify-content: center;
}
.wrap {
  width: 100%;
  max-width: 440px;
  padding: 28px 20px 40px;
  text-align: center;
}
.head h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: .08em;
}
.sub { color: var(--muted); margin: 6px 0 0; font-size: .9rem; }

.board {
  background: var(--panel);
  border-radius: 18px;
  padding: 22px 16px 18px;
  margin: 24px 0 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.hands { display: flex; align-items: center; justify-content: space-around; }
.hand-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.label { color: var(--muted); font-size: .85rem; }
.hand {
  font-size: 3.4rem;
  line-height: 1;
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  background: #141b23;
  border-radius: 50%;
}
.hand.shake { animation: shake .12s ease-in-out 0s 4; }
@keyframes shake {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}
.vs { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.result {
  margin: 18px 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  min-height: 1.4em;
}
.result.win { color: var(--win); }
.result.lose { color: var(--lose); }
.result.draw { color: var(--draw); }

.choices { display: flex; gap: 10px; justify-content: center; }
.choice {
  flex: 1;
  background: var(--panel);
  border: 2px solid transparent;
  color: var(--text);
  border-radius: 14px;
  padding: 14px 0 10px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .08s, border-color .15s, background .15s;
}
.choice .emoji { font-size: 2rem; }
.choice .name { font-size: .85rem; color: var(--muted); }
.choice:hover { border-color: var(--accent); }
.choice:active { transform: scale(.94); }
.choice:disabled { opacity: .5; cursor: default; }

.stats { display: flex; justify-content: space-around; margin: 24px 0 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.stat-lbl { font-size: .78rem; color: var(--muted); }
.record { color: var(--muted); font-size: .85rem; margin: 4px 0 16px; }

.reset {
  background: transparent;
  border: 1px solid #34424f;
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: .82rem;
}
.reset:hover { color: var(--text); border-color: var(--muted); }
.foot { margin-top: 26px; color: var(--muted); font-size: .75rem; }

@media (prefers-reduced-motion: reduce) {
  .hand.shake { animation: none; }
}
