.fitz-app-splash {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(91,45,232, .18), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(91,45,232, .10), transparent 32%),
    linear-gradient(160deg, var(--fitz-brand-tint,#f7f4fe) 0%, var(--fitz-brand-primary-soft,#f2eefc) 52%, var(--fitz-brand-tint,#f7f4fe) 100%);
  color: #332071;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
               "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s cubic-bezier(.4, 0, .2, 1), visibility .55s;
}

.fitz-app-splash.is-active { display: grid; }

.fitz-app-splash::before {
  content: "";
  position: absolute;
  width: min(420px, 92vw);
  aspect-ratio: 1;
  border: 1px solid rgba(91,45,232, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(91,45,232, .025), 0 0 0 70px rgba(91,45,232, .018);
  animation: fitzSplashAura 2.4s ease-in-out infinite;
}

.fitz-app-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fitz-app-splash.is-leaving .fitz-app-splash__core { transform: scale(1.035); }

.fitz-app-splash__core {
  position: relative;
  text-align: center;
  transition: transform .55s ease;
}

.fitz-app-splash__emblem {
  width: clamp(68px, 10dvh, 86px);
  height: clamp(68px, 10dvh, 86px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 60px rgba(51,32,113, .16);
  opacity: 0;
  transform: translateY(12px) scale(.92);
  animation: fitzSplashReveal .72s cubic-bezier(.2, .8, .2, 1) .12s forwards;
}

.fitz-app-splash__emblem img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.fitz-app-splash__name {
  margin: 18px 0 0;
  color: #332071;
  font-size: clamp(28px, 4.2dvh, 36px);
  font-weight: 900;
  letter-spacing: -.05em;
  opacity: 0;
  transform: translateY(9px);
  animation: fitzSplashReveal .7s ease .4s forwards;
}

.fitz-app-splash__name span {
  margin-left: 7px;
  color: var(--fitz-color-muted,#71677f);
  font-size: .62em;
  font-weight: 750;
  letter-spacing: -.025em;
}

.fitz-app-splash__tagline {
  margin: 9px 0 0;
  color: var(--fitz-brand-primary,#5b2de8);
  font-size: clamp(13px, 1.9dvh, 16px);
  font-weight: 800;
  letter-spacing: -.025em;
  opacity: 0;
  transform: translateY(7px);
  animation: fitzSplashReveal .68s ease .66s forwards;
}

.fitz-app-splash__link {
  position: relative;
  width: 122px;
  height: 24px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fitzSplashReveal .6s ease .88s forwards;
}

.fitz-app-splash__link::before {
  content: "";
  width: 66px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--fitz-brand-accent,#8660ec), transparent);
}

.fitz-app-splash__link i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid var(--fitz-color-surface,#fff);
  border-radius: 50%;
  background: var(--fitz-brand-primary,#5b2de8);
  box-shadow: 0 0 0 4px rgba(91,45,232, .12);
  animation: fitzSplashPulse 1.35s ease-in-out 1.1s infinite;
}

.fitz-app-splash__caption {
  margin: 7px 0 0;
  color: #8e879a;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  opacity: 0;
  animation: fitzSplashReveal .6s ease 1.05s forwards;
}

body.fitz-app-splash-active { overflow: hidden !important; }

@keyframes fitzSplashReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fitzSplashPulse {
  50% { box-shadow: 0 0 0 9px rgba(91,45,232, 0); transform: scale(1.08); }
}

@keyframes fitzSplashAura {
  50% { transform: scale(1.035); opacity: .72; }
}

@media (prefers-reduced-motion: reduce) {
  .fitz-app-splash,
  .fitz-app-splash::before,
  .fitz-app-splash__core,
  .fitz-app-splash__emblem,
  .fitz-app-splash__name,
  .fitz-app-splash__tagline,
  .fitz-app-splash__link,
  .fitz-app-splash__link i,
  .fitz-app-splash__caption {
    transition: none;
    animation: none;
  }

  .fitz-app-splash__emblem,
  .fitz-app-splash__name,
  .fitz-app-splash__tagline,
  .fitz-app-splash__link,
  .fitz-app-splash__caption {
    opacity: 1;
    transform: none;
  }

  .fitz-app-splash { transition-duration: .15s; }
}
