.battles {
  border-bottom: 1px solid var(--pico-table-border-color);
}

div.battle,
a.battle {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  --pico-color: #333;
}

.battle-plan-map {
  background-color: #fff;
}

a.battle {
  border-top: 3px solid var(--pico-table-border-color);
}

a.battle:hover {
  text-decoration: none;
  background-color: var(--pico-dropdown-hover-background-color);
}

div.battle div,
a.battle div {
  text-align: center;
}

.battle .player {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.battle .player .name {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.battle .player.winner .name::before,
.battle .player.winner .name::after {
  content: "";
  display: block;
  background-image: url("/assets/wreath-31913a66.svg");
  background-size: 100% 100%;
  height: 1em;
  aspect-ratio: 1 / 1;
}

.battle .player.winner .name::before {
  transform: scaleX(-1);
}

.battle .when,
.battle .faction,
.battle .result {
  display: block;
  overflow: hidden;
  min-height: 1.5em;
  color: #888;
  text-align: center;
}

.battle span.show-on-mobile {
  display: none;
}

/* Mobile */
@media (max-width: 767px) {
  div.battle,
  a.battle ,
  div.battle div,
  a.battle  div,
  .battle .player {
    display: block;
    width: 100%;
  }

  .battle .when,
  .battle .faction,
  .battle .result {
    min-height: 0
  }

  .battle span.show-on-mobile {
    display: block;
  }

  .battle span.show-on-desktop {
    display: none;
  }
}

.champion {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
}

.champion .caption {
  display: block;
  overflow: hidden;
  min-height: 1.5em;
  color: #888;
  text-align: center;
}

.champion .name {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 3rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 767px) {
  .champion .name {
    font-size: 2rem;
  }
}

.champion .name::before,
.champion .name::after {
  content: "";
  display: block;
  background-image: url("/assets/wreath-31913a66.svg");
  background-size: 100% 100%;
  height: 1em;
  aspect-ratio: 1 / 1;
}

.champion .name::before {
  transform: scaleX(-1);
}
