/* V342: insignia de rol junto al nombre del perfil (Administrador / Moderador), con el estilo de Tengaged. */
body.page-profile #profilePage .hero.hero .identity {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 6px;
  min-width: 0;
}
body.classic166.page-profile #profilePage .hero .identity .profile-name168 {
  padding-right: 0;
}
body.page-profile #profilePage .hero .identity #memberLevel {
  position: static !important;
  margin: 4px 0 0 !important;
}
body.page-profile #profilePage .hero .identity #joined {
  grid-column: 1 / -1;
}
body.classic166.page-profile #profilePage .hero.hero {
  grid-template-rows: minmax(36px, auto) minmax(85px, auto) auto auto !important;
}
body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 17px;
  margin: 0 !important;
  padding: 1px 6px !important;
  box-sizing: border-box;
  border-radius: 8px !important;
  font: bold 9px/12px 'Trebuchet MS', Verdana, Arial, sans-serif !important;
  letter-spacing: .2px;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #fff !important;
  cursor: default;
}
body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge.hidden{display:none!important}
body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge:before{content:'';flex:0 0 auto;width:8px;height:8px;background:#fff;-webkit-mask:var(--role-icon) center/contain no-repeat;mask:var(--role-icon) center/contain no-repeat;filter:drop-shadow(0 1px 0 rgba(0,0,0,.15))}
/* Administrador: rosa Tengaged con corona. */
body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge,body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge[data-role=admin]{--role-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7l5 4 5-7 5 7 5-4-2 12H4z'/%3E%3C/svg%3E");background:linear-gradient(#ff8a9c,#ff536d 55%,#ec4560)!important;border:1px solid #d93a54!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 1px 2px rgba(214,58,84,.3);text-shadow:0 1px 0 #c8304a}
/* Moderador: azul Tengaged con escudo. */
body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge[data-role=mod]{--role-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z'/%3E%3C/svg%3E");background:linear-gradient(#8dbbe0,#5b93c4 55%,#4a80b0)!important;border:1px solid #3f72a0!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 1px 2px rgba(63,114,160,.3);text-shadow:0 1px 0 #36658f}

body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge[data-role=events]{
 background:linear-gradient(#ae77c8,#834aa2 55%,#713d91)!important;
 border:1px solid #653581!important;text-shadow:0 1px 0 #60327b;
 box-shadow:inset 0 1px 0 #ffffff73,0 1px 2px #6535814d
}
body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge[data-role=minigames]{
 background:linear-gradient(#559e81,#287957 55%,#206748)!important;
 border:1px solid #1b6043!important;text-shadow:0 1px 0 #1b543c;
 box-shadow:inset 0 1px 0 #ffffff73,0 1px 2px #1b60434d
}
body.page-profile #profilePage .profile-name168 #roleBadge#roleBadge:is([data-role=events],[data-role=minigames]):before{content:none}
.role-badge-icon450{flex:none;font-size:9px;line-height:1;letter-spacing:0}
