.discord-card {
  display: block;
  width: min(430px, 100%);
  margin: 29px auto 0;
  border: 0 solid #363636;
  border-radius: 16px;
  overflow: hidden;
  background: #141414;
  text-align: left;
  transition: transform .3s, border-color .3s;
}

.discord-card:hover {
  transform: translateY(-4px);
  border-color: #777;
}

.discord-banner {
  height: 43px;
  background: repeating-linear-gradient(
    130deg,
    #191919 0,
    #191919 30px,
    #242424 31px,
    #242424 32px,
    #171717 33px,
    #171717 68px
  );
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-right: 16px;
  color: #999;
  font-size: 11px;
  font-weight: 500;
}

.discord-logo {
  display: block;
  width: 16px;
  height: 12px;
  object-fit: contain;
}

.discord-custom-status {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: #ccc;
  overflow-wrap: anywhere;
}

.discord-content {
  padding: 0 17px 15px;
}

.discord-profile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 0;
  position: relative;
}

.avatar-wrap {
  margin-top: -12px;
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #141414;
  background: #eee;
  color: #111;
  font-size: 27px;
  font-weight: 850;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#discordAvatar {
  background: #242424;
}

#discordAvatar img[hidden] {
  display: none;
}

.avatar-decoration {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.avatar-decoration[hidden], .discord-badges[hidden] { display: none; }

.presence {
  z-index: 2;
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border: 3px solid #141414;
  border-radius: 50%;
  background: #777;
}

.presence.online {
  background: #fff;
}

.presence.idle {
  background: #bbb;
}

.presence.dnd {
  background: #888;
}

.discord-identity {
  flex: 1;
  padding-top: 12px;
  padding-bottom: 4px;
  min-width: 0;
}

.discord-name {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 750;
}

.discord-user {
  overflow-wrap: anywhere;
  font-size: 10px;
  color: #888;
  margin-top: 3px;
}

.discord-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.discord-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  color: #ccc;
  font-size: 10px;
}

.discord-badges img { width: 22px; height: 22px; object-fit: contain; }

.discord-badges [data-tooltip] { position: relative; }
.discord-badges [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #272727;
  color: #f5f5f5;
  box-shadow: 0 4px 12px #0005;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
.discord-badges [data-tooltip]:hover::after,
.discord-badges [data-tooltip]:focus-visible::after {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.discord-badges [data-tooltip]:focus-visible { outline: 1px solid #ddd; outline-offset: 3px; border-radius: 3px; }

.discord-badges [data-badge="orbs"] { min-width: 22px; justify-content: center; }
.discord-badges [data-badge="orbs"] img { width: 16px; height: 16px; }
.discord-guild-tag { padding: 2px 6px; border-radius: 4px; background: #242424; }
.discord-guild-tag img { width: 15px; height: 15px; }

.discord-bottom {
  border-top: 0;
  margin-top: 13px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.discord-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #ccc;
  min-width: 0;
}

.discord-activity span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-note {
  font-size: 9px;
  color: #656565;
  margin-top: 9px;
}

