.ws-welcome-transition {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: #f8f7ff;
  background:
    radial-gradient(900px 520px at 50% 24%, rgba(120, 94, 255, 0.24), transparent 64%),
    radial-gradient(720px 480px at 18% 16%, rgba(93, 214, 255, 0.1), transparent 62%),
    linear-gradient(145deg, #050617 0%, #090817 42%, #120a22 100%);
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 640ms cubic-bezier(0.2, 0, 0, 1),
    filter 640ms cubic-bezier(0.2, 0, 0, 1);
}

.ws-welcome-transition::before,
.ws-welcome-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ws-welcome-transition::before {
  background-image:
    linear-gradient(rgba(160, 150, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 150, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, rgba(0, 0, 0, 0.72) 42%, transparent 78%);
  opacity: 0.34;
}

.ws-welcome-transition::after {
  background-image:
    radial-gradient(circle at 14% 22%, rgba(216, 230, 255, 0.88) 0 1px, transparent 1.6px),
    radial-gradient(circle at 28% 68%, rgba(153, 188, 255, 0.48) 0 1px, transparent 1.7px),
    radial-gradient(circle at 66% 18%, rgba(198, 178, 255, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 58%, rgba(123, 218, 255, 0.44) 0 1px, transparent 1.6px),
    radial-gradient(circle at 46% 84%, rgba(232, 221, 255, 0.48) 0 1px, transparent 1.8px);
  background-size: 280px 260px, 340px 320px, 300px 300px, 380px 340px, 420px 360px;
  opacity: 0.5;
  animation: ws-welcome-dust 3200ms ease-in-out infinite alternate;
}

.ws-welcome-content {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  transform: translateY(0);
  animation: ws-welcome-enter 620ms cubic-bezier(0.2, 0, 0, 1) both;
}

.ws-welcome-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #c8bcff;
}

.ws-welcome-mark::before,
.ws-welcome-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ws-welcome-mark::before {
  inset: 0;
  border: 1px solid rgba(200, 188, 255, 0.2);
  border-top-color: rgba(126, 224, 255, 0.9);
  border-right-color: rgba(172, 120, 255, 0.72);
  box-shadow: 0 0 32px rgba(125, 94, 255, 0.32);
  animation: ws-welcome-spin 1150ms linear infinite;
}

.ws-welcome-mark::after {
  width: 12px;
  height: 12px;
  background: #f8f7ff;
  box-shadow:
    0 0 18px rgba(126, 224, 255, 0.82),
    0 0 34px rgba(151, 97, 255, 0.72);
  animation: ws-welcome-pulse 920ms ease-in-out infinite alternate;
}

.ws-welcome-title {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.ws-welcome-status {
  min-height: 1.55em;
  margin: 0;
  color: rgba(236, 232, 255, 0.76);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
  transform: translateY(0);
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.ws-welcome-status.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.ws-welcome-transition.is-exiting {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}

html.ws-welcome-pending,
html.ws-welcome-active {
  background: #050617;
}

html.ws-welcome-pending body,
html.ws-welcome-active body {
  overflow: hidden;
}

html.ws-welcome-pending body > :not(.ws-welcome-transition),
html.ws-welcome-active body > :not(.ws-welcome-transition) {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px) scale(0.995);
}

html.ws-welcome-ready body > :not(.ws-welcome-transition) {
  transition:
    opacity 620ms cubic-bezier(0.2, 0, 0, 1),
    filter 620ms cubic-bezier(0.2, 0, 0, 1),
    transform 620ms cubic-bezier(0.2, 0, 0, 1);
}

html.ws-welcome-revealing body > :not(.ws-welcome-transition) {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@keyframes ws-welcome-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes ws-welcome-dust {
  from {
    opacity: 0.38;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0.58;
    transform: translateY(-8px) scale(1.012);
  }
}

@keyframes ws-welcome-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ws-welcome-pulse {
  from {
    opacity: 0.54;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 440px) {
  .ws-welcome-transition {
    padding: 20px;
  }

  .ws-welcome-content {
    gap: 12px;
  }

  .ws-welcome-title {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-welcome-transition,
  .ws-welcome-transition.is-exiting,
  .ws-welcome-status,
  html.ws-welcome-ready body > :not(.ws-welcome-transition) {
    transition-duration: 0.001ms !important;
  }

  .ws-welcome-transition::after,
  .ws-welcome-content,
  .ws-welcome-mark::before,
  .ws-welcome-mark::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .ws-welcome-transition.is-exiting,
  html.ws-welcome-pending body > :not(.ws-welcome-transition),
  html.ws-welcome-active body > :not(.ws-welcome-transition) {
    filter: none;
  }
}
