.steam-account-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 260px);
}

.steam-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(157, 63, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(34, 19, 64, 0.94), rgba(12, 7, 24, 0.96)),
    radial-gradient(circle at top right, rgba(185, 106, 255, 0.2), transparent 55%);
  box-shadow:
    0 14px 34px rgba(3, 2, 10, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  position: relative;
  overflow: hidden;
}

.steam-account-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity .22s ease;
}

.steam-account-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 106, 255, 0.52);
  box-shadow:
    0 18px 42px rgba(3, 2, 10, 0.42),
    0 0 28px rgba(157, 63, 255, 0.12);
}

.steam-account-card:hover::before {
  opacity: 1;
}

.steam-account-card--guest {
  border-color: rgba(79, 195, 247, 0.3);
}

.steam-account-card--guest:hover {
  border-color: rgba(79, 195, 247, 0.55);
  box-shadow:
    0 18px 42px rgba(3, 2, 10, 0.42),
    0 0 28px rgba(79, 195, 247, 0.16);
}

.steam-account-avatar {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(185, 106, 255, 0.2), rgba(76, 29, 149, 0.35));
  border: 1px solid rgba(185, 106, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.steam-account-avatar--guest {
  background: linear-gradient(145deg, rgba(79, 195, 247, 0.22), rgba(0, 96, 128, 0.35));
  border-color: rgba(79, 195, 247, 0.3);
}

.steam-account-avatar--guest svg {
  width: 23px;
  height: 23px;
  fill: #81d4fa;
  filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.55));
}

.steam-account-fallback {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.steam-account-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.steam-account-eyebrow {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.steam-account-name {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.steam-account-sub {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-account-arrow {
  position: relative;
  z-index: 1;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #d7c0ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.steam-account-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steam-account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.steam-account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(185, 106, 255, 0.22);
  background: rgba(26, 14, 46, 0.88);
  color: var(--text);
  font-size: .67rem;
  font-family: var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}

.steam-account-chip:hover {
  border-color: rgba(185, 106, 255, 0.48);
  color: #fff;
  transform: translateY(-1px);
}

.steam-account-chip--ghost {
  color: var(--muted);
}

.steam-auth-banner {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(79, 195, 247, 0.22);
  background: linear-gradient(135deg, rgba(13, 28, 44, 0.82), rgba(13, 17, 31, 0.92));
  color: #cfefff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.steam-auth-banner--warn {
  border-color: rgba(255, 196, 0, 0.24);
  background: linear-gradient(135deg, rgba(42, 29, 10, 0.82), rgba(25, 17, 8, 0.92));
  color: #ffe6a8;
}

.steam-auth-banner-title {
  display: block;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.steam-auth-banner-text {
  display: block;
  font-size: .9rem;
  color: inherit;
}

@media (max-width: 900px) {
  .steam-account-cluster {
    width: 100%;
  }

  .steam-account-card {
    min-width: 0;
    width: 100%;
  }

  .steam-account-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .steam-account-card {
    padding: 10px 12px;
  }

  .steam-account-name {
    max-width: 100%;
  }

  .steam-account-arrow {
    width: 28px;
    height: 28px;
  }
}
