/* =====================================================
   Достижения раздела «Серия и достижения»: спокойный список
   строк-разделителей (без «витрины» карточек). Краткий список
   на основном экране + полный по тапу на шапку.
   ===================================================== */

/* Шапка-переключатель: тап по ней тоже раскрывает/сворачивает список. */
.ach-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ach-toggle > i[data-lucide="award"] {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}
.ach-toggle-title { flex: 0 0 auto; }
.ach-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.ach-chev {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}
.ach-toggle.open .ach-chev { transform: rotate(180deg); }

/* Единый блок со строками-разделителями — минимум обводок и заливок. */
.ach-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.ach-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
}
.ach-row + .ach-row { border-top: 1px solid var(--border); }
.ar-ico {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}
.ach-row.unlocked .ar-ico { color: var(--color-accent); }
.ar-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.ach-row:not(.unlocked) .ar-title { color: var(--text-secondary); }
.ar-check { flex: 0 0 auto; width: 18px; height: 18px; color: var(--color-primary); }
.ar-prog { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* Строка-действие «Все достижения» / «Свернуть». */
.ach-more {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-accent);
  font-weight: 650;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.ach-more span { flex: 1; min-width: 0; text-align: left; }
.ach-more:active { background: var(--surface-2); }
.ar-chev { flex: 0 0 auto; width: 18px; height: 18px; color: var(--color-accent); }

/* Раскрытый блок — тот же равномерный вертикальный ритм. */
.ach-all-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* display:flex перебивает атрибут hidden — возвращаем скрытие явно. */
.ach-all-wrap[hidden] { display: none; }

/* Перенесённые в подробную статистику показатели. */
.streak-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.sd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: center;
}
.sd-stat b { font-size: 17px; font-weight: 800; }
.sd-stat span { font-size: 11px; color: var(--text-muted); }
