/* Odznaky: the badge screen (#achievements), the badges just earned on the summary (#earnedBox), the streak and the map
   of knowledge in "Moje hry" (#profile). The badge card, the streak panel and the map are components (components.css). */

/* --- the badge screen: the total, then a section per category --- */
#achievements { width: min(var(--card-w-xl), 100% - 2 * var(--gutter)); gap: var(--space-6); }
#achievements h1 { font-size: var(--text-heading); }
.badge-total { display: flex; flex-direction: column; gap: var(--space-2); }
.badge-total p { font-size: var(--text-md); color: var(--muted); }
.badge-total p b { color: var(--ink); font-variant-numeric: tabular-nums; }
.badge-total .badge-progress-bar { height: 6px; border-radius: 3px; }
#achSections { gap: var(--space-7); }
.badge-section { display: flex; flex-direction: column; gap: var(--space-3); }
.badge-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.badge-section-head h2 { font-size: var(--text-lg); font-weight: var(--weight-strong); }
.badge-section-head .count { font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge-section-note { font-size: var(--text-sm); color: var(--muted); margin-top: calc(-1 * var(--space-2)); }

/* --- a friend's card: the mark of a badge the player holds too (badge.js) --- */
.badge-mine { color: var(--muted); font-weight: var(--weight-strong); }

/* --- the summary: "Nově získáno" under the save note --- */
.earned-box { display: flex; flex-direction: column; gap: var(--space-3); }
.earned-box > .btn-link { align-self: flex-start; }

/* --- Moje hry: the streak, the map of knowledge and the way to the badges --- */
.knowledge { display: flex; flex-direction: column; gap: var(--space-3); }
#profileBadges { align-self: flex-start; }

@media (max-width: 640px) {
  #achievements { width: auto; gap: var(--space-5); }
  #achSections { gap: var(--space-6); }
}
