body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 20px;
}

h1 {
  margin-top: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.instructions {
  margin-bottom: 20px;
}

.scoreboard {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 18px;
}

.battlefield {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.card-area {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px;
}

.card-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-element {
  font-style: italic;
  color: #666;
  margin-top: 5px;
}

.card-image {
  width: 100%;
  height: 260px; /* reduced from ~200px */
  object-fit: cover;
  border-radius: 8px;
  margin: 5px 0;
}

.card-stats {
  margin-top: 10px;
  width: 100%;
}

.stat-row {
  padding: 4px 6px;
  border-top: 1px solid #ddd;
  text-align: left;
  cursor: pointer;
}

.stat-row:last-child {
  border-bottom: 1px solid #ddd;
}

.stat-row:hover {
  background-color: #eef;
}

.stat-row.disabled {
  pointer-events: none;
  color: #999;
  background: #f5f5f5;
}

.vs {
  align-self: center;
  font-size: 24px;
  font-weight: bold;
  margin: 10px;
}

.result {
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
}

.start-area {
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background: #2196F3;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #1976D2;
}

.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.card-back-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
