#alyAccountOverlay .aly-account-card,
#alyAccountOverlay .aly-profile-shell {
  font-family: var(--lb-font);
}

#alyAccountOverlay .aly-account-card {
  color: var(--lb-text);
  width: min(430px, calc(100vw - 18px)) !important;
  max-width: min(430px, calc(100vw - 18px)) !important;
}

#alyAccountClose,
#alyAccountOverlay .aly-x {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 15px !important;
}

#alyProfilePhotoPreview,
#alyFinalProfileAvatar {
  background-size: cover !important;
  background-position: center !important;
}

#alyAccountLevel .rank-display,
.lb413-account-rank {
  grid-template-columns: 86px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 12px !important;
}

#alyAccountLevel .lb501-rank-badge,
#alyAccountLevel .lb418-rank-badge,
.lb413-account-rank .lb501-rank-badge,
.lb413-account-rank .lb418-rank-badge {
  width: 86px !important;
  height: 86px !important;
  min-width: 86px !important;
  object-fit: contain !important;
  display: block !important;
}

#alyAccountBalance {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
}

#alyAccountBalance .aly-chip-stat {
  min-width: 0;
  justify-content: flex-start;
}

#alyDisplayNameCooldown:empty {
  display: none !important;
}

.lb-profile-meta-grid {
  display: grid;
  grid-template-columns: minmax(136px, 1.35fr) minmax(0, .82fr) minmax(0, .82fr);
  gap: 9px;
  margin: 0 0 10px;
}

.lb-profile-meta-card,
.lb-profile-private-card {
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.20);
  padding: 9px 10px;
}

.lb-profile-meta-card span,
.lb-profile-private-card em {
  display: block;
  color: rgba(255, 255, 255, 0.60);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
}

.lb-profile-meta-card b,
.lb-profile-private-card b {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.1;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-profile-meta-card:first-child b {
  white-space: normal;
}

.lb-profile-private-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.lb-profile-private-card input {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  position: relative;
  margin: 0;
}

.lb-profile-private-card input::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,.32);
  transition: transform 160ms ease;
}

.lb-profile-private-card input:checked {
  background: linear-gradient(135deg, #f0249b, #7b2cff);
  border-color: rgba(255, 255, 255, 0.18);
}

.lb-profile-private-card input:checked::after {
  transform: translateX(18px);
}

.lb-profile-rank-card-host {
  display: block !important;
  padding: 0 !important;
  overflow: hidden;
}

.lb-profile-rank-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 12% 0, rgba(240, 36, 155, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.lb-rank-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.lb-rank-head b {
  color: #fff;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.lb-rank-track-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 9px;
}

.lb-rank-side {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.lb-rank-side img,
.lb-rank-side .lb501-rank-badge,
.lb-rank-side .lb418-rank-badge {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 12px rgba(255, 63, 180, 0.28));
}

.lb-rank-side.next img {
  opacity: 0.82;
  filter: drop-shadow(0 0 12px rgba(255, 212, 90, 0.26));
}

.lb-rank-side span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
}

.lb-rank-track-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.lb-rank-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.lb-rank-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0249b, #7b2cff 52%, #ffd45a);
  box-shadow: 0 0 18px rgba(240, 36, 155, 0.38);
}

.lb-rank-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.lb-rank-meta span:last-child {
  text-align: right;
}

.lb-rank-wager {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 900;
}

.lb-rank-wager-toggle {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 1000;
  padding: 0 12px;
}

.lb-rank-wager-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 9px 10px;
}

.lb-rank-wager-detail[hidden] {
  display: none !important;
}

.lb-rank-wager-detail b {
  color: #ffd45a;
  font-size: 16px;
  font-weight: 1000;
}

.lb-rank-wager-detail span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 900;
}

.lb-rank-max {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 212, 90, 0.12);
  border: 1px solid rgba(255, 212, 90, 0.26);
  color: #ffd45a;
  font-size: 13px;
  font-weight: 1000;
}

#lbAvatarSheet {
  display: none !important;
}

#alyAccountOverlay [data-open-collection] {
  font-size: 0 !important;
}

#alyAccountOverlay [data-open-collection]::after {
  content: "Inventory";
  font-size: 13px;
}

@media (max-width: 430px) {
  #alyAccountLevel .rank-display,
  .lb413-account-rank {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  #alyAccountLevel .lb501-rank-badge,
  #alyAccountLevel .lb418-rank-badge,
  .lb413-account-rank .lb501-rank-badge,
  .lb413-account-rank .lb418-rank-badge {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
  }

  .lb-rank-track-row {
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    gap: 7px;
  }

  .lb-rank-side img,
  .lb-rank-side .lb501-rank-badge,
  .lb-rank-side .lb418-rank-badge {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
  }

  .lb-profile-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lb-profile-meta-card:first-child {
    grid-column: 1 / -1;
  }
}
