
.dc-royal-identity {
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.dc-royal-avatar {
  width:64px;
  height:64px;
  position:relative;
  display:inline-block;
  flex-shrink:0;
  border-radius:50%;
  background:#382544;
}

.dc-royal-photo {
  position:absolute;
  inset:12%;
  width:76%;
  height:76%;
  border-radius:50%;
  object-fit:cover;
}

.dc-royal-frame {
  position:absolute;
  inset:-12%;
  width:124%;
  height:124%;
  object-fit:contain;
  pointer-events:none;
}

.dc-royal-details {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.dc-royal-name {
  display:flex;
  align-items:center;
  gap:5px;
  font-weight:800;
}

.dc-royal-badge {
  color:#b58a38;
  font-weight:900;
  font-size:10px;
  letter-spacing:.06em;
}

.dc-royal-blue-tick {
  display:inline-grid;
  place-items:center;
  width:17px;
  height:17px;
  border-radius:50%;
  color:white;
  background:#168cf4;
  font-size:12px;
  font-weight:900;
  flex-shrink:0;
}

.dc-royal-avatar[data-level="20"],
.dc-royal-avatar[data-level="30"],
.dc-royal-avatar[data-level="40"],
.dc-royal-avatar[data-level="50"] {
  box-shadow:0 0 10px rgba(228,181,71,.5);
  animation:dcRoyalGlow 3s ease-in-out infinite;
}

@keyframes dcRoyalGlow {
  50% {
    box-shadow:0 0 20px rgba(228,181,71,.8);
  }
}

@media(prefers-reduced-motion:reduce) {
  .dc-royal-avatar {
    animation:none!important;
  }
}


.dc-royal-avatar {
  background:#382544;
  overflow:visible;
}

.dc-royal-avatar .dc-royal-photo {
  inset:17%;
  width:66%;
  height:66%;
}

.dc-royal-frame {
  inset:-18%;
  width:136%;
  height:136%;
}

.dc-royal-avatar[data-level="20"]
.dc-royal-frame,
.dc-royal-avatar[data-level="30"]
.dc-royal-frame,
.dc-royal-avatar[data-level="40"]
.dc-royal-frame,
.dc-royal-avatar[data-level="50"]
.dc-royal-frame {
  animation:dcFrameShimmer 3.6s
    ease-in-out infinite;
}

@keyframes dcFrameShimmer {
  0%,100% {
    filter:brightness(1);
  }
  50% {
    filter:brightness(1.25)
      drop-shadow(0 0 5px #e5bb65);
  }
}

.dc-royal-blue-tick {
  box-shadow:0 0 0 1px #fff;
}

@media(prefers-reduced-motion:reduce) {
  .dc-royal-frame {
    animation:none!important;
  }
}


.dc-account-identity-panel {
  margin:16px;
  padding:16px;
  border:1px solid #dfbd80;
  border-radius:18px;
  background:linear-gradient(
    135deg,#fff8ee,#f7eafa
  );
  color:#513043;
}

.dc-account-identity-panel summary {
  cursor:pointer;
  font-weight:800;
  font-size:14px;
}

.dc-account-identity-panel
[data-dc-current-identity] {
  min-height:82px;
  padding:16px 0 8px;
}

#dc-identity-refresh {
  border:1px solid #d0a45a;
  background:#fff4dc;
  color:#624117;
  border-radius:10px;
  padding:8px 14px;
  cursor:pointer;
}

