.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.result-msg {
  min-height: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 2.5rem;
  transition: color 0.2s;
}

.result-msg.win  { color: #22a755; }
.result-msg.lose { color: #e03c3c; }
.result-msg.draw { color: var(--text-muted); }

.battle-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
}

.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.side-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.choice-img {
  font-size: 5rem;
  line-height: 1;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  user-select: none;
}

.choice-img img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  display: block;
}

.choice-img.bounce {
  animation: bounce 0.3s ease;
}

@keyframes bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.choice-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  min-height: 1.2rem;
  text-align: center;
}

.vs-label {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}

.btn-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.choice-btn {
  min-width: 72px;
  min-height: 72px;
  font-size: 2.2rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.choice-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.choice-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.choice-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.round-msg {
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5rem;
}

.match-over-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 200;
}

.match-over-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 320px;
  width: 90%;
}

.match-over-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-strong);
}

.match-over-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.match-over-btn {
  min-width: 120px;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 24px;
}
