/* © 2026 Eaglercraft Ranked. All rights reserved. Unauthorized copying or redistribution is prohibited. */
/* Battle Royale stats on player profiles (br-stats.js): the popup and the ELO history page. */
.br-stats {
  width: 100%;
  text-align: left;
}

.br-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.br-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 12px 6px 10px;
  background: var(--bg-elevated);
  text-align: center;
}

.br-stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.br-stat-name {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-faint);
}

.br-stat--wins .br-stat-value { color: var(--gold); }

.br-trophy {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

.br-stats-empty {
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
}

/* Solos / Duos, small under the totals */
.br-split {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.br-split th,
.br-split td {
  padding: 3px 6px;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.br-split thead th {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.br-split tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--text);
}
.br-split .br-split-none th,
.br-split .br-split-none td { color: var(--text-faint); }

.br-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The ELO history page: under the graph, one row of six on wider screens */
.br-stats--wide { margin-top: 28px; }
.br-stats--wide .br-split { max-width: 440px; }
@media (min-width: 721px) {
  .br-stats--wide .br-stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .br-stats--wide .br-stat { padding: 14px 8px 12px; }
  .br-stats--wide .br-stat-value { font-size: 1.25rem; }
}
