* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: transparent;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.card {
  width: 390px;
  height: 98px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,0.11), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    rgba(18,18,22,0.70);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.44),
    0 0 34px rgba(255,255,255,0.07),
    inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111;
}

.status-dot {
  position: absolute;
  right: 0;
  bottom: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(18,18,22,0.98);
  background: #747f8d;
}

.status-dot.online {
  background: #23a55a;
}

.status-dot.idle {
  background: #f0b232;
}

.status-dot.dnd {
  background: #f23f43;
}

.status-dot.offline {
  background: #747f8d;
}

.content {
  min-width: 0;
  flex: 1;
}

.topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topline strong {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-tag {
  min-width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)),
    rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 12px rgba(255,255,255,0.08);
}

.server-tag[hidden] {
  display: none !important;
}

.activity {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 780;
  color: rgba(255,255,255,0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.details {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 680;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover {
  width: 66px;
  height: 66px;
  min-width: 66px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

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

.cover.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 0 16px rgba(255,255,255,0.18);
}

.loading .skeleton {
  position: relative;
  color: transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.20), rgba(255,255,255,0.08));
  background-size: 200% 100%;
  animation: skeleton 1.2s linear infinite;
}

.loading .activity {
  width: 120px;
}

.loading .details {
  width: 150px;
}

@keyframes skeleton {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@media (max-width: 420px) {
  .card {
    width: 100%;
    height: 94px;
    border-radius: 24px;
  }

  .avatar-wrap,
  .avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
  }

  .cover {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 16px;
  }

  .topline strong {
    font-size: 16px;
  }

  .activity,
  .details {
    font-size: 12px;
  }
}
