/* A badge on the site (core/cards.py badge(), Ross 19 Oct 2026): a clean pill. The name in the page's font at 600, in the badge's colour (--b1;
   a rank's gradient runs --b1 to --b2 across the letters), on a faint tint of that colour with a hairline of it. No brackets, no pixel font. */
.badge { display: inline-flex; align-items: center; vertical-align: middle; white-space: nowrap; padding: 3px 10px; border-radius: var(--pill, 999px);
  font: 600 13px/1.3 var(--sans); letter-spacing: .01em; color: var(--b1, #e9e4df); font-style: normal; text-decoration: none;
  background: color-mix(in srgb, var(--b1, #e9e4df) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b1, #e9e4df) 32%, transparent); }
.badge .b-t { display: inline; }
/* a rank: its two colours across the name */
.badge--grad .b-t { background: linear-gradient(90deg, var(--b1), var(--b2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge--grad { background: linear-gradient(90deg, color-mix(in srgb, var(--b1) 14%, transparent), color-mix(in srgb, var(--b2) 14%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b1) 34%, transparent); }
/* not earned yet: grey, quiet */
.badge[data-state="locked"] { color: var(--text-3, #968a7e); background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong, rgba(255,214,180,.14)); }
.badge[data-state="locked"] .b-t { background: none; color: var(--text-3, #968a7e); }

/* a badge that is a link: no underline, a lift on hover */
a:has(> .badge), a.bd-link { text-decoration: none; }
a:has(> .badge):hover .badge { filter: brightness(1.2); }
a:has(> .badge):focus-visible { outline: 2px solid var(--ember, #ff6a1a); outline-offset: 3px; border-radius: 999px; }

/* the profile hero: the badge they wear */
.pf-badges { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pf-badges li { margin: 0; }
.pf-badges a { display: inline-block; text-decoration: none; }
.pf-badges li.pf-worn .badge { font-size: 14px; padding: 4px 12px; }
@media (max-width: 760px) { .pf-hero--3d .pf-badges { justify-content: center; } }
