.game-statistics-panel {
  --stats-gold: #d9b36c;
  --stats-gold-bright: #f0cf8b;
  --stats-ink: #111113;
  max-width: 100%;
  overflow: hidden;
}
.game-statistics-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.game-statistics-heading h3 {
  margin: 0 0 5px;
  color: #f4e9d5;
}
.game-statistics-asof {
  max-width: 45%;
  margin: 0;
  color: #aaa49b;
  font-size: 11px;
  text-align: right;
}
.game-statistics-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid #39352e;
  border-radius: 6px;
  background: #111113;
}
.game-statistics-tab {
  min-width: 0;
  min-height: 43px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #b7b0a4;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .035em;
  cursor: pointer;
}
.game-statistics-tab[aria-selected="true"] {
  border-color: #82683a;
  background: linear-gradient(180deg, #30281b, #211c15);
  color: var(--stats-gold-bright);
  box-shadow: inset 0 -2px var(--stats-gold);
}
.game-statistics-tab:focus-visible,
.game-statistics-retry:focus-visible {
  outline: 2px solid var(--stats-gold-bright);
  outline-offset: 2px;
}
.game-statistics-panel-content { min-width: 0; }
.game-statistics-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
  padding: 14px 16px;
  border: 1px solid #55462d;
  border-radius: 5px;
  background: linear-gradient(110deg, #2b2419, #1d1a16 72%);
}
.game-statistics-summary-label {
  color: #d0c5b3;
  font-size: 12px;
}
.game-statistics-summary-value {
  color: var(--stats-gold-bright);
  font: 700 25px/1.1 "Barlow Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
}
.game-statistics-rank-list {
  display: grid;
  gap: 8px;
}
.game-statistics-rank {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #34312c;
  border-radius: 5px;
  background: linear-gradient(105deg, #201f1d, #181818);
}
.game-statistics-rank-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.game-statistics-rank-name {
  min-width: 0;
  color: #e7dfd2;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.game-statistics-rank-count {
  flex: 0 0 auto;
  color: #e6c77f;
  font: 700 15px/1 "Barlow Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
}
.game-statistics-track {
  height: 7px;
  overflow: hidden;
  border: 1px solid #3e3527;
  border-radius: 99px;
  background: #111110;
}
.game-statistics-fill {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #9e742e, #e6c16e);
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: left center;
}
.game-statistics-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.game-statistics-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 128px;
  padding: 17px;
  border: 1px solid #40392e;
  border-radius: 6px;
  background:
    linear-gradient(145deg, #28231b, #1a1917 68%),
    #1b1b1b;
}
.game-statistics-card-label {
  color: #c3b9a7;
  font-size: 12px;
  line-height: 1.4;
}
.game-statistics-card-detail {
  margin-top: 5px;
  color: #8f897f;
  font-size: 10px;
  line-height: 1.4;
}
.game-statistics-card-value {
  margin-top: 15px;
  color: #f0d18d;
  font: 700 clamp(25px, 5vw, 34px)/1 "Barlow Condensed", sans-serif;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.game-statistics-state {
  padding: 24px 18px;
  border: 1px solid #39352e;
  border-radius: 6px;
  background: #1b1a18;
  text-align: center;
}
.game-statistics-state h4 {
  margin: 0 0 6px;
  color: #eee2cb;
}
.game-statistics-state p { margin: 0; }
.game-statistics-skeletons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.game-statistics-skeleton {
  min-height: 128px;
  border: 1px solid #34312c;
  border-radius: 6px;
  background: linear-gradient(145deg, #25221d, #1a1917 68%);
  animation: game-statistics-pulse 1.5s ease-in-out infinite alternate;
}
.game-statistics-retry {
  margin-top: 15px;
  border-color: #82683a;
  color: #f0d18d;
}
.game-statistics-updated {
  margin: 18px 0 0;
  color: #888278;
  font-size: 11px;
}
@keyframes game-statistics-pulse { to { opacity: .58; } }
@media (max-width: 540px) {
  .game-statistics-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .game-statistics-asof { max-width: 100%; text-align: left; }
  .game-statistics-tabs { gap: 2px; padding: 4px; }
  .game-statistics-tab { min-height: 46px; padding-inline: 4px; font-size: 11px; }
  .game-statistics-cards { gap: 9px; }
  .game-statistics-card { min-height: 118px; padding: 14px 12px; }
}
@media (max-width: 380px) {
  .game-statistics-rank { padding: 11px 10px; }
  .game-statistics-rank-name { font-size: 12px; }
  .game-statistics-rank-count { font-size: 14px; }
  .game-statistics-summary { padding: 12px; }
  .game-statistics-card { padding: 13px 10px; }
  .game-statistics-card-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-statistics-fill,
  .game-statistics-skeleton { animation: none; transition: none; }
}

.game-statistics-online-card{cursor:pointer;transition:border-color .15s,background .15s}
.game-statistics-online-card:hover,.game-statistics-online-card:focus-visible{border-color:#d6a341;outline:2px solid #d6a341;outline-offset:2px}
.game-statistics-online-list{grid-column:1/-1;margin-top:14px;padding:14px;border:1px solid #65502d;border-radius:8px;background:#171512}
.game-statistics-online-list h4{margin:0 0 12px;color:#f0d18d}
.game-statistics-online-player{display:block;width:100%;text-align:left;margin:7px 0;white-space:normal}

.game-statistics-new-players{margin-top:16px;padding:14px;border:1px solid #65502d;border-radius:10px;background:rgba(20,18,17,.92)}
.game-statistics-new-players h4{margin:0 0 4px;color:#f0d18d;font-size:18px}
.game-statistics-new-players>p{margin:0 0 12px;font-size:13px}
.game-statistics-new-players-list{display:flex;flex-direction:column;gap:7px}
.game-statistics-new-player{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #4c4438;border-radius:7px;background:#1b1a19;color:#f5efe4;cursor:pointer;text-align:left}
.game-statistics-new-player span{color:#e0b85d;text-align:right}
.game-statistics-new-player:hover,.game-statistics-new-player:focus-visible{border-color:#e0b85d;outline-offset:2px}
