.welcome-intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: max(86px, calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 80px))
    var(--page-gutter) max(18px, env(safe-area-inset-bottom));
  background: #44263f26;
  pointer-events: none;
}
.welcome-card {
  position: relative;
  width: min(100%, 25rem);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px clamp(18px, 6vw, 30px);
  border: 1px solid color-mix(in srgb, var(--sd-amethyst) 38%, var(--surface));
  border-radius: var(--sd-radius-modal);
  background: radial-gradient(ellipse at 50% 0, #f2e7f5, var(--surface) 60%);
  box-shadow: 0 16px 52px #44263f30;
  text-align: center;
  pointer-events: auto;
}
.welcome-card img {
  display: block;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--sd-amethyst), 0 5px 16px #44263f20;
  object-fit: cover;
}
.welcome-card h2 {
  max-width: 17rem;
  margin: 0 auto 12px;
  color: var(--accent);
  font: 600 clamp(29px, 8vw, 37px)/.99 var(--serif);
}
.welcome-card p {
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.welcome-card strong { color: var(--accent); }
.welcome-card .primary-button { margin-top: 4px; }
.welcome-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-size: 24px;
}
.utility-menu:has(.welcome-account-glow) {
  position: relative;
  z-index: 21;
}
.utility-menu .welcome-account-glow {
  border-radius: var(--sd-radius-button);
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--sd-amethyst), 0 0 14px #b18ac1a0;
  animation: welcome-account-glow 1.65s ease-in-out 2;
}
@keyframes welcome-account-glow {
  50% { box-shadow: 0 0 0 3px var(--sd-amethyst), 0 0 24px 4px #b18ac1bd; }
}
@media (prefers-reduced-motion: reduce) {
  .utility-menu .welcome-account-glow { animation: none; }
}
