/* badges.css: a player's badges on the profile page (js/profile.js badgeList,
   app.profile_badges, 2026-11-13). A small gold pill under the name, in the
   gold the page already uses for skill and for a gold achievement; its caption
   is a little bubble in the card menu's style, shown on hover and on focus
   (a tap on a touch screen). A profile with no badges has no .pf-badges. */

#profile-screen .pf-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px;
}
#profile-screen .pf-badge {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 999px; cursor: default; outline: none;
  font-size: 11px; font-weight: 800; letter-spacing: .4px; line-height: 1.3; color: #ffd76a;
  background: rgba(255,215,106,.1); border: 1px solid rgba(255,215,106,.45);
}
#profile-screen .pf-badge i { font-style: normal; font-size: 10px; }
#profile-screen .pf-badge:focus-visible { box-shadow: 0 0 0 2px rgba(255,215,106,.45); }
#profile-screen .pf-badge-note {
  display: none; position: absolute; z-index: 3; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(260px, 80vw); padding: 6px 10px; border-radius: 8px;
  background: #121a2c; border: 1px solid rgba(255,215,106,.35); box-shadow: 0 8px 20px rgba(0,0,0,.5);
  color: #e7ecf7; font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.35; white-space: normal;
}
#profile-screen .pf-badge:hover .pf-badge-note,
#profile-screen .pf-badge:focus .pf-badge-note { display: block; }
