/* Profile identity, then a single rhythm for labels, values and supporting text. */
.player-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 16px; }
.player-head .who { min-width: 0; }
.player-head h1 { margin: 0; }
.player-head .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.player-head .claim { display: flex; align-items: center; gap: 8px; margin: 0; }
.player-head .claim .pill { padding: 4px 12px; font-size: 13px; }
.player-head + .claim.pending { margin: 0 0 14px; }
.player-stats { --stat-columns: 5; display: grid; grid-template-columns: repeat(var(--stat-columns), minmax(0, 1fr)); gap: 10px; }
.player-stats:not(:has(> :nth-child(5))) { --stat-columns: 4; }
.player-stats .stat { min-width: 0; gap: 6px; padding: 12px 14px; }
.player-stats .label { min-height: 22px; line-height: 1.3; gap: 6px; }
.player-stats .label .bracket { font-size: 10px; padding: 2px 7px; white-space: nowrap; }
.player-stats .stat > b { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 26px; line-height: 1.25; min-height: 33px; white-space: nowrap; }
.player-stats .stat-main b .elo-rank { font-size: 16px; margin: 0; }
.player-stats .sub { font-size: 12px; line-height: 1.5; }
.player-stats .progress { margin-top: auto; }
.player-stats .crowns { align-self: center; display: inline-flex; }
.player-stats .crowns .hall-icon { width: 21px; height: 21px; }
.player-stats .stat > .cups { gap: 6px; }
.player-stats .cups > span { display: inline-flex; align-items: baseline; gap: 3px; }
.player-stats .cup-icon { font-size: 14px; }
.player-sections { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 22px 0 10px; }
.player-sections .player-tabs { margin: 0; min-width: 0; }
.player-history-summary { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.player-history-summary[hidden] { display: none; }
.player-history-summary .history-dates { white-space: nowrap; }
@media (min-width: 741px) and (max-width: 1199px) {
  .player-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .player-stats .stat { grid-column: span 2; }
  .player-stats .stat:nth-child(-n+2) { grid-column: span 3; }
  .player-stats:not(:has(> :nth-child(5))) .stat { grid-column: span 3; }
}
@media (max-width: 740px) {
  .player-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .player-stats .stat-main { grid-column: 1 / -1; }
  .player-stats .stat { padding: 12px; }
  .player-stats .stat > b { font-size: 24px; min-height: 30px; }
  /* Medals sit over their counts to keep the same number size in a narrow tile. */
  .player-stats .stat-cups { position: relative; }
  .player-stats .stat-cups .label { margin-bottom: 18px; }
  .player-stats .stat > .cups { justify-content: space-between; gap: 4px; }
  .player-stats .cups > span { position: relative; }
  .player-stats .cup-icon { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 13px; }
  .player-stats .stat:nth-child(2) .label { margin-bottom: 18px; }
  .player-sections { gap: 10px; }
}
@media (max-width: 360px) { .player-stats .stat > b { font-size: 22px; } }
