.battle-tile,
.battle-resume-tile {
  display: grid;
  gap: 12px;
}

.battle-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.battle-feed > .page-tile,
.battle-feed > .image-tile {
  flex: 0 0 auto;
  width: min(100%, var(--tile-max-width));
}

.battle-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.battle-code-row code {
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(47, 156, 107, 0.12);
  color: var(--rind);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.battle-copy-button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--rind);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.battle-copy-button:focus-visible {
  outline: 3px solid rgba(47, 156, 107, 0.34);
  outline-offset: 2px;
}

.battle-share-url {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.battle-share-url:hover {
  color: var(--rind);
}

.battle-scoreboard {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 32, 42, 0.1);
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
}

.battle-scoreboard h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
}

.battle-score-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.battle-score-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(47, 156, 107, 0.08);
}

.battle-score-list li.is-own-score {
  background: rgba(47, 156, 107, 0.16);
}

.battle-score-player {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-score-points {
  flex: 0 0 auto;
  color: var(--rind);
  font-size: 13px;
  line-height: 1;
}

.battle-members {
  display: grid;
  gap: 8px;
}

.battle-members h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
}

.battle-member-list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.battle-member-list li {
  flex: 0 0 auto;
  max-width: 170px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-member-list li.is-own-member {
  background: rgba(47, 156, 107, 0.18);
  color: var(--rind);
}

.battle-note,
.battle-command,
.battle-reveal {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.battle-command,
.battle-reveal {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.battle-image-tile {
  display: block;
}

.battle-image-tile.is-guessable {
  cursor: pointer;
}

.battle-image-tile.is-guessable:focus-visible {
  outline: 3px solid rgba(47, 156, 107, 0.42);
  outline-offset: 4px;
}

.battle-image-tile img {
  min-height: 0;
}

.battle-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 7px;
  max-height: 48%;
  padding: 34px 12px 12px;
  overflow: auto;
  border-top: 0;
  background: linear-gradient(
    to top,
    rgba(23, 32, 42, 0.84),
    rgba(23, 32, 42, 0.58) 64%,
    rgba(23, 32, 42, 0)
  );
  color: #fff;
  scrollbar-width: none;
}

.battle-caption::-webkit-scrollbar {
  display: none;
}

.battle-caption-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.battle-caption-heading strong {
  font-size: 14px;
  line-height: 1.1;
}

.battle-caption-heading span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.battle-caption .battle-note {
  color: rgba(255, 255, 255, 0.8);
}

.battle-caption .battle-command,
.battle-caption .battle-reveal {
  color: #fff;
}

.battle-guess-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.25;
}
