.battle-page {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.battle-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.battle-intro h1,
.battle-theme h2,
.battle-side h3,
.battle-archive h2 {
  font-family: "Barlow Condensed", sans-serif;
}

.battle-status {
  margin-block: 1rem;
}

.battle-status[data-state="error"] {
  color: #9b1c2c;
  font-weight: 700;
}

.battle-card {
  border: 1px solid #d8caba;
  border-left: 5px solid #9b1c2c;
  background: #fffaf2;
  box-shadow: 0 18px 38px rgb(62 42 29 / 9%);
}

.battle-theme {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid #d8caba;
}

.battle-theme p {
  max-width: 760px;
}

.battle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.battle-side {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.battle-side + .battle-side {
  border-left: 1px solid #d8caba;
}

.battle-side[data-winner="true"] {
  background: #f8ecdd;
}

.battle-side__image {
  width: 100%;
  aspect-ratio: 510 / 250;
  object-fit: cover;
}

.battle-side__label,
.battle-side__author {
  margin: 0;
  color: #9b1c2c;
  font-weight: 700;
}

.battle-side h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.battle-side__argument {
  white-space: pre-line;
}

.battle-play,
.battle-vote {
  justify-self: start;
  border: 0;
  padding: 0.8rem 1rem;
  background: #171513;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.battle-vote {
  background: #9b1c2c;
}

.battle-vote[aria-pressed="true"] {
  outline: 3px solid #171513;
  outline-offset: 3px;
}

.battle-vote:disabled {
  cursor: default;
  opacity: 0.6;
}

.battle-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.battle-score {
  margin: 0;
  font-weight: 700;
}

.battle-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 1.75rem);
  border-top: 1px solid #d8caba;
}

.battle-archive {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.battle-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.battle-result {
  padding: 1rem;
  border: 1px solid #d8caba;
  background: #fffaf2;
}

.battle-result h3 {
  margin-block: 0.25rem;
}

@media (max-width: 720px) {
  .battle-grid {
    grid-template-columns: 1fr;
  }

  .battle-side + .battle-side {
    border-top: 1px solid #d8caba;
    border-left: 0;
  }
}
