/* StatsList — таблица итогов после win. */

.stats {
  margin: 14px 0 0;
  padding: 18px;
  /* Стеклянность как у .row: panel-solid снизу + цветной градиент сверху, blur-light. */
  background:
    linear-gradient(135deg, rgba(var(--search-rgb), 0.10), rgba(45,212,191,0.06)),
    var(--panel-solid);
  border: 1px solid rgba(var(--search-rgb), 0.30);
  border-radius: var(--radius);
  -webkit-backdrop-filter: var(--blur-light);
          backdrop-filter: var(--blur-light);
}

.stats h3 {
  margin: 0 0 12px;
  font-size: 15px; font-weight: 600;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
}
.stats h3 .stats-icon { font-size: 1em; line-height: 1; text-align: center; }

.stats-list { display: flex; flex-direction: column; gap: 12px; }

/* Микротаблица: эмодзи | имя | счётчик | полоса | %. */
.stat-row {
  display: grid;
  grid-template-columns: 22px 100px 32px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.stat-emoji {
  font-size: 1em; line-height: 1; text-align: center;
}
.stat-name {
  font-size: 12px; color: var(--muted); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-count {
  font-size: 12px; color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 14px;
}
.stat-bar {
  position: relative;
  height: 10px;
  background: var(--surface-strong);
  border-radius: 5px;
}
.stat-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 5px;
  transition: width 0.6s ease, background 0.3s;
}
.stat-fill.pos  { background: var(--win); }
.stat-fill.neg  { background: var(--far); }
.stat-fill.zero { background: var(--muted); }
.stat-eff {
  flex: 0 0 auto;
  min-width: 48px; text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--muted);
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 20px 88px 28px 1fr 38px;
    gap: 6px;
  }
  .stat-emoji { font-size: 13px; }
  .stat-name { font-size: 12px; }
  .stat-count { font-size: 11px; }
  .stat-eff { min-width: 38px; font-size: 12px; }
  .stats { padding: 14px; }
}
