dialog.referral-milestone-screen {
  position: fixed;
  inset: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 22px;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ny-page, #eef0f7);
  color: #20212b;
  text-align: center;
}
.referral-milestone-screen::backdrop { background: transparent; }
.referral-milestone-screen[open] { display: grid; align-items: safe center; justify-items: center; }
.referral-milestone-content { width: min(100%, 300px); }
.referral-milestone-content h1 { margin: 0 auto; max-width: 13ch; font-size: clamp(26px, 7vw, 35px); letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
.referral-milestone-amounts { display: grid; grid-template-columns: repeat(2, 1fr); margin: clamp(20px, 6vh, 46px) 0; }
.referral-milestone-amount { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.referral-milestone-amount + .referral-milestone-amount { border-left: 1px solid #d5d8e2; }
.referral-milestone-amount img { display: block; width: clamp(42px, 8vh, 58px); height: auto; margin-bottom: 5px; }
.referral-milestone-amount strong { font-size: clamp(32px, 10vw, 46px); line-height: .98; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.referral-milestone-amount span { color: #575e71; font-size: 15px; }
.referral-milestone-content button { min-height: 50px; width: 100%; padding: 12px 24px; border-radius: 12px; color: white; background: #20212b; font-size: 16px; font-weight: 650; }
.referral-milestone-content button:active { transform: scale(.985); }
#chat-first-reward-count { margin: clamp(20px, 6vh, 46px) 0; }
@media (prefers-reduced-motion: no-preference) {
  .referral-milestone-screen[open] { animation: referral-milestone-screen-in .22s ease-out both; }
  .referral-milestone-screen[open] .referral-milestone-content { animation: referral-milestone-rise .32s cubic-bezier(.2,.8,.2,1) both; }
  .referral-milestone-screen[open] .referral-milestone-amount img { animation: referral-milestone-rise .35s .09s cubic-bezier(.2,.8,.2,1) both; }
  .referral-milestone-screen[open] .referral-milestone-amount + .referral-milestone-amount img { animation-delay: .14s; }
  @keyframes referral-milestone-screen-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes referral-milestone-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
}
