/* profile-badges-20260924-1 */
.theme-panel:has(.profile-hero) .profile-badge-anchor {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  column-gap: 12px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-anchor > small {
  flex: 0 0 100% !important;
  width: 100% !important;
}

.theme-panel:has(.profile-hero) .profile-badge-anchor > h2 {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  margin: 5px 0 3px !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details {
  position: relative !important;
  z-index: 8 !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 2px 0 0 auto !important;
  color: #e8e6d5 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details[open] {
  flex-basis: 100% !important;
  width: 100% !important;
  margin: 5px 0 2px !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  padding: 4px 9px !important;
  color: #f0d29a !important;
  background: linear-gradient(145deg, rgba(27, 49, 34, .96), rgba(7, 20, 13, .94)) !important;
  border: 1px solid rgba(217, 171, 103, .48) !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .22), inset 0 1px rgba(255,255,255,.08) !important;
  cursor: pointer !important;
  list-style: none !important;
  white-space: nowrap !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details > summary::-webkit-details-marker {
  display: none !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details > summary::after {
  content: "+" !important;
  color: #d7aa65 !important;
  font-size: .8rem !important;
  line-height: 1 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details[open] > summary::after {
  content: "−" !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details > summary:focus-visible {
  outline: 2px solid rgba(242, 201, 120, .8) !important;
  outline-offset: 2px !important;
}

.theme-panel:has(.profile-hero) .profile-badge-preview {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.theme-panel:has(.profile-hero) .profile-badge-preview-icon,
.theme-panel:has(.profile-hero) .profile-badge-item-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 23px !important;
  height: 23px !important;
  flex: 0 0 23px !important;
  color: #f6d891 !important;
  background: radial-gradient(circle at 35% 28%, rgba(114, 133, 76, .75), rgba(20, 48, 31, .96)) !important;
  border: 1px solid rgba(225, 190, 117, .65) !important;
  border-radius: 50% !important;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)) !important;
}

.theme-panel:has(.profile-hero) .profile-badge-preview-icon.is-locked,
.theme-panel:has(.profile-hero) .profile-badge-item.is-locked .profile-badge-item-icon {
  filter: grayscale(1) drop-shadow(0 1px 2px rgba(0,0,0,.25)) !important;
  opacity: .52 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-count {
  color: #f2cf8e !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
}

.theme-panel:has(.profile-hero) .profile-badge-list {
  display: grid !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 480px !important;
  box-sizing: border-box !important;
  margin: 7px 0 0 !important;
  padding: 9px !important;
  color: #e8e6d5 !important;
  background: rgba(5, 18, 12, .94) !important;
  border: 1px solid rgba(217, 171, 103, .34) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}

.theme-panel:has(.profile-hero) .profile-badge-list-heading {
  margin: 0 0 1px !important;
  color: #e6c17e !important;
  font-size: .65rem !important;
  letter-spacing: .06em !important;
}

.theme-panel:has(.profile-hero) .profile-badge-item {
  display: grid !important;
  grid-template-columns: 25px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 7px 8px !important;
  background: rgba(255, 255, 255, .025) !important;
  border: 1px solid rgba(217, 171, 103, .19) !important;
  border-radius: 9px !important;
}

.theme-panel:has(.profile-hero) .profile-badge-item.is-earned {
  border-color: rgba(217, 171, 103, .42) !important;
  background: rgba(217, 171, 103, .07) !important;
}

.theme-panel:has(.profile-hero) .profile-badge-copy {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-name {
  color: #f0d29a !important;
  font-size: .72rem !important;
  line-height: 1.2 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-description {
  color: #b8c2b8 !important;
  font-size: .61rem !important;
  line-height: 1.3 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-meta {
  display: grid !important;
  justify-items: end !important;
  gap: 2px !important;
  white-space: nowrap !important;
}

.theme-panel:has(.profile-hero) .profile-badge-state {
  color: #b5c1b2 !important;
  font-size: .59rem !important;
  line-height: 1.2 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-item.is-earned .profile-badge-state {
  color: #f0cc85 !important;
}

.theme-panel:has(.profile-hero) .profile-badge-progress {
  color: #a9b3a8 !important;
  font-size: .56rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .theme-panel:has(.profile-hero) .profile-badge-anchor {
    column-gap: 8px !important;
  }

  .theme-panel:has(.profile-hero) .profile-badge-details > summary {
    min-height: 35px !important;
    gap: 5px !important;
    padding: 3px 7px !important;
  }

  .theme-panel:has(.profile-hero) .profile-badge-preview-icon,
  .theme-panel:has(.profile-hero) .profile-badge-item-icon {
    width: 21px !important;
    height: 21px !important;
    flex-basis: 21px !important;
    font-size: 13px !important;
  }

  .theme-panel:has(.profile-hero) .profile-badge-list {
    gap: 5px !important;
    padding: 7px !important;
  }

  .theme-panel:has(.profile-hero) .profile-badge-item {
    grid-template-columns: 23px minmax(0, 1fr) auto !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  .theme-panel:has(.profile-hero) .profile-badge-name {
    font-size: .67rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-badge-description {
    font-size: .56rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-badge-state,
  .theme-panel:has(.profile-hero) .profile-badge-progress {
    font-size: .53rem !important;
  }
}

/* Keep the badge catalogue collapsed until any badge is tapped. */
.theme-panel:has(.profile-hero) .profile-badge-details:not([open]) > .profile-badge-list {
  display: none !important;
}

.theme-panel:has(.profile-hero) .profile-badge-details[open] > .profile-badge-list {
  display: grid !important;
}
