body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f3f3f3;
  color: #222;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin-bottom: 24px;
}

.panel {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.card-list {
  display: grid;
  gap: 8px;
}

.card-button,
.reward-button,
#endTurnButton,
#restartButton {
  padding: 10px 12px;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.card-button:hover,
.reward-button:hover,
#endTurnButton:hover,
#restartButton:hover {
  background: #eee;
}

.card-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.status-item {
  padding: 8px;
  background: #f7f7f7;
  border-radius: 8px;
}

.log-line {
  border-bottom: 1px solid #eee;
  padding: 4px 0;
  font-size: 14px;
}

.card-meta {
  font-size: 13px;
  color: #666;
}

.victory {
  font-weight: bold;
  color: #0a7a28;
}

.defeat {
  font-weight: bold;
  color: #b00020;
}
