/* Compact report context and fallback for games whose positions are all unknown. */
.battle-report .br-report-game-info {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}
.battle-report .br-report-game-info .br-duration {
  white-space: nowrap;
}
.battle-report .br-report-tools:not(:has(.br-mvp-result)) > .br-report-game-info {
  margin-inline-end: auto;
}
.battle-report:has(> .br-unmatched) > .br-duels:not(:has(.br-duel-players .br-participant:not(.br-missing))) {
  display: none;
}
.match-report-page .scoreboard-time {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .match-report-page .game-panel.section-block,
  :is(.placement-full-report, .match-dialog) [data-match-fragment] > .game-panel.section-block {
    margin-block-start: 8px;
  }
  .battle-report .br-report-tools:has(> .br-report-game-info) {
    gap: 5px 8px;
  }
}

/* Between the full-width metric strip and the four-column tablet row,
   keep both values and their labels inside the space beside the score. */
@container (width > 540px) and (max-width: 610px) {
  .battle-report:not(.is-placement-report, .is-personal-report) .br-performance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 6px;
    align-items: start;
  }
  .battle-report:not(.is-placement-report, .is-personal-report) .br-metric-cell {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 3px;
    text-align: right;
  }
  .battle-report:not(.is-placement-report, .is-personal-report) .br-metric-label {
    text-align: left;
  }
  .battle-report:not(.is-placement-report, .is-personal-report) .br-kda {
    justify-content: flex-end;
  }
}
