/* Milestones tab (2026-10-15, replaces the Badges tile grid): one card per family,
   one row per tier with a progress ring around the tier's art. The ids keep their old
   badge names (#badgesView, #badgeFamilies); every class here is .ms-*. */
.ms-fam{margin:0 0 24px}
.ms-fam:last-child{margin-bottom:0}
.ms-fam-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 2px}
.ms-fam-name{margin:0;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:700;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.ms-fam-count{flex:none;font-size:13px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.ms-fam-flavor{margin:0 2px 10px;font-size:12px;line-height:1.45;color:var(--muted)}

/* The rows sit in one inset panel, separated by hairlines (the reference sheet's grouping). */
.ms-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}
.ms-row{display:flex;align-items:center;gap:14px;min-height:84px;padding:10px 14px 10px 10px;box-sizing:border-box}
.ms-row + .ms-row{border-top:1px solid var(--line)}

/* 64px ring: a quiet track, the fill in the tier's accent from 12 o'clock (rotate(-90)
   lives on the circle). The art sits inside the ring's opening. */
.ms-ring{position:relative;flex:0 0 64px;width:64px;height:64px}
.ms-ring-svg{position:absolute;inset:0;display:block;width:64px;height:64px}
.ms-ring-track{fill:none;stroke:rgba(255,255,255,.09);stroke-width:3}
.ms-ring-fill{fill:none;stroke:var(--bt-accent,var(--rank));stroke-width:3;stroke-linecap:round;
  transition:stroke-dashoffset .7s var(--ease-out,cubic-bezier(.23,1,.32,1))}
.ms-ring-fill.is-empty{opacity:0}   /* a round cap would otherwise paint a dot at 0% */
.ms-art{position:absolute;inset:9px 10px}
.ms-art svg{display:block;width:100%;height:100%}

.ms-text{flex:1 1 auto;min-width:0}
.ms-title{font-size:15px;font-weight:700;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.ms-sub{margin-top:2px;font-size:13px;line-height:1.35;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

.ms-row.earned .ms-ring-track{stroke:color-mix(in srgb,var(--bt-accent) 22%,transparent)}
.ms-row.earned .ms-sub{color:color-mix(in srgb,var(--bt-accent) 72%,#fff);font-weight:600}
.ms-row.out .ms-ring-track{stroke-dasharray:3 4}
.ms-row.out .ms-art,.ms-row.out .ms-title{opacity:.6}

.ms-more{display:block;width:100%;min-height:44px;margin:10px 0 0;padding:11px 14px;
  border:1px solid var(--line2);border-radius:12px;background:rgba(255,255,255,.04);color:var(--text);
  font:600 14px/1.2 'DM Sans',sans-serif;letter-spacing:0;text-transform:none;cursor:pointer;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media (hover:hover) and (pointer:fine){.ms-more:hover{border-color:var(--rank)}}
.ms-more:focus-visible{outline:2px solid var(--text);outline-offset:2px}

@media (prefers-reduced-motion:reduce){.ms-ring-fill{transition:none}}
@media (prefers-contrast:more){.ms-list{background:var(--panel2)}.ms-ring-track{stroke:rgba(255,255,255,.3)}}
