/* POB profile certificates V5 — slightly larger profile marks, stable glass tooltip. */
.pm-player-profile,
.pm-player-hero,
.pm-player-identity { position: relative !important; z-index: 10 !important; overflow: visible !important; }
.pm-player-identity h1 {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  column-gap: 8px !important;
  row-gap: 5px !important;
  position: relative !important;
  overflow: visible !important;
}
.pm-profile-certificates {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: 1px !important;
  vertical-align: middle !important;
  overflow: visible !important;
  line-height: 1 !important;
}
.pm-profile-certificate-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  overflow: visible !important;
  z-index: 2;
}
.pm-profile-certificate {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--pm-cert-color) 70%, rgba(255,255,255,.3)) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pm-cert-color) 92%, #fff 8%), var(--pm-cert-color)) !important;
  box-shadow: 0 1px 5px color-mix(in srgb, var(--pm-cert-color) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.34) !important;
  cursor: help !important;
  line-height: 1 !important;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.pm-profile-certificate:hover,
.pm-profile-certificate:focus-visible {
  transform: translateY(-1px) scale(1.08);
  filter: brightness(1.12);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pm-cert-color) 18%, transparent), 0 3px 11px color-mix(in srgb, var(--pm-cert-color) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.4) !important;
  outline: none !important;
}
.pm-profile-certificate svg { display: block !important; width: 13px !important; height: 13px !important; color: #fff !important; overflow: visible !important; }
.pm-profile-certificate--verified_blue,
.pm-profile-certificate--verified_gold { color: var(--pm-cert-color) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.pm-profile-certificate--verified_blue svg,
.pm-profile-certificate--verified_gold svg {
  width: 19px !important;
  height: 19px !important;
  filter: drop-shadow(0 1px 3px color-mix(in srgb, var(--pm-cert-color) 35%, transparent));
}
.pm-profile-certificate--verified_blue:hover,
.pm-profile-certificate--verified_gold:hover,
.pm-profile-certificate--verified_blue:focus-visible,
.pm-profile-certificate--verified_gold:focus-visible {
  box-shadow: none !important;
  filter: brightness(1.14) drop-shadow(0 2px 5px color-mix(in srgb, var(--pm-cert-color) 55%, transparent));
}
.pm-profile-certificate--youtube_creator,
.pm-profile-certificate--twitch_creator,
.pm-profile-certificate--staff_shield { border-radius: 5px !important; }
.pm-profile-certificate__custom-icon { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 10px; font-weight: 950; line-height: 1; }

/* A single fixed tooltip is shared by every badge: no stacked/overlapping labels. */
.pm-profile-certificate-tooltip {
  position: fixed !important;
  z-index: 100000 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: min(238px, calc(100vw - 20px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 20px) !important;
  margin: 0 !important;
  padding: 10px 12px 11px !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  border: 1px solid color-mix(in srgb, var(--pm-cert-color, #4adea0) 42%, rgba(151,178,194,.48)) !important;
  border-radius: 11px !important;
  color: #eaf2f7 !important;
  background: linear-gradient(145deg, rgba(19,32,39,.98), rgba(5,12,18,.985)) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.09) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  text-align: left !important;
  line-height: normal !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transform: translateY(4px) scale(.985);
  transform-origin: 50% 100%;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.pm-profile-certificate-tooltip:not([hidden]) { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.pm-profile-certificate-tooltip::after {
  content: "";
  position: absolute;
  left: var(--pm-tooltip-arrow-left, 50%);
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 1px solid color-mix(in srgb, var(--pm-cert-color, #4adea0) 42%, rgba(151,178,194,.48));
  border-bottom: 1px solid color-mix(in srgb, var(--pm-cert-color, #4adea0) 42%, rgba(151,178,194,.48));
  background: #0a151b;
  transform: translateX(-50%) rotate(45deg);
}
.pm-profile-certificate-tooltip.is-below { transform-origin: 50% 0; }
.pm-profile-certificate-tooltip.is-below::after {
  top: -5px;
  bottom: auto;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--pm-cert-color, #4adea0) 42%, rgba(151,178,194,.48));
  border-top: 1px solid color-mix(in srgb, var(--pm-cert-color, #4adea0) 42%, rgba(151,178,194,.48));
}
.pm-profile-certificate-tooltip > strong {
  display: block !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: #fff !important;
  font: 800 12px/1.3 var(--pm-sans, system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.pm-profile-certificate-tooltip > span {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(220,232,239,.82) !important;
  font: 500 10px/1.5 var(--pm-sans, system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.pm-profile-certificate-tooltip[hidden] { display: none !important; }

@media (max-width: 560px) {
  .pm-profile-certificates { gap: 3px !important; }
  .pm-profile-certificate-wrap,
  .pm-profile-certificate { width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 18px !important; flex-basis: 18px !important; }
  .pm-profile-certificate--verified_blue svg,
  .pm-profile-certificate--verified_gold svg { width: 17px !important; height: 17px !important; }
  .pm-profile-certificate-tooltip { width: min(220px, calc(100vw - 20px)) !important; }
}
@media (prefers-reduced-motion: reduce) { .pm-profile-certificate, .pm-profile-certificate-tooltip { transition: none !important; } }
