body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  background: #f4f4f4;
  color: #222;
  display: flex;
  justify-content: center;
  padding: 2rem 2rem 100px;
}

main {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.description {
  color: #666;
  margin-bottom: 2rem;
}

.battle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.battle-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.battle-side-opponent {
  transform: rotate(180deg);
}

.battle-label {
  color: #666;
  font-size: 0.9rem;
}

.battle-hand {
  font-size: 3.5rem;
  line-height: 1;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
  border-radius: 50%;
  background: #fff;
}

.battle-vs {
  font-weight: bold;
  color: #999;
}

.hands {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hand-button {
  font-size: 1.2rem;
  padding: 1rem 1.2rem;
  border: 2px solid #333;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.hand-button:hover {
  background: #eee;
}

.hand-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.result {
  min-height: 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.prediction-source {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.prediction-source:empty {
  display: none;
}

.prediction-source-jev {
  background: #e6f4ea;
  color: #1a7431;
}

.prediction-source-rule {
  background: #eef0f3;
  color: #555;
}

.prediction-reason {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.prediction-reason:empty {
  display: none;
}

.score {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: #444;
}
