#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 181, 95, 0.18), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(136, 129, 86, 0.09), transparent 24%),
    radial-gradient(circle at 50% 108%, rgba(202, 166, 75, 0.12), transparent 38%),
    linear-gradient(180deg, #fffaf3 0%, #f4e8cd 58%, #eadbb9 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--growin-motion-boot, 620ms cubic-bezier(.22, 1, .36, 1)),
    transform var(--growin-motion-boot, 620ms cubic-bezier(.22, 1, .36, 1));
  will-change: opacity, transform;
}

body.app-boot-fading #splash-screen {
  opacity: 0;
  pointer-events: none;
  transform: scale(.994) translate3d(0, -4px, 0);
}

body.app-boot-complete #splash-screen,
body:not(.app-booting):not(.app-boot-fading) #splash-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.994) translate3d(0, -4px, 0);
}

#splash-screen::before,
#splash-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#splash-screen::before {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 249, 236, 0.92), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(202, 166, 75, 0.10), transparent 46%);
  opacity: 0.92;
}

#splash-screen::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(315deg, rgba(122, 101, 50, 0.08), transparent 34%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.splash-stage {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 38px 28px 34px;
  width: min(calc(100vw - 32px), 344px);
  transform: translateZ(0);
  isolation: isolate;
  contain: layout paint style;
}

.splash-core {
  position: relative;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  contain: layout paint style;
  transform: translateZ(0);
}

.splash-core::before,
.splash-core::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.splash-core::before {
  inset: 18px;
  background: radial-gradient(circle, rgba(255, 249, 236, 0.92) 0%, rgba(255, 245, 222, 0.62) 42%, rgba(255, 245, 222, 0) 100%);
  filter: blur(4px);
}

.splash-core::after {
  inset: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 30px 54px rgba(135, 102, 34, 0.12);
  opacity: 0.65;
}

.splash-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.splash-orbit-inner {
  inset: 17px;
}

.splash-ring,
.splash-ring-2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.splash-ring {
  border-top-color: rgba(202, 166, 75, 0.96);
  border-right-color: rgba(154, 116, 40, 0.72);
  border-bottom-color: rgba(202, 166, 75, 0.22);
  animation: splashSpin 2.45s linear infinite;
}

.splash-ring-2 {
  border-bottom-color: rgba(128, 119, 73, 0.56);
  border-left-color: rgba(109, 102, 63, 0.36);
  border-top-color: rgba(255, 255, 255, 0.34);
  animation: splashSpinReverse 3.35s linear infinite;
}

.splash-logo-shell {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  transform: translateZ(0);
}

.splash-logo {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 44px;
  line-height: 1;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 253, 248, 0.99), rgba(255, 248, 232, 0.92) 48%, rgba(236, 222, 188, 0.98) 100%);
  border: 1px solid rgba(202, 166, 75, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(154, 116, 40, 0.12),
    0 0 0 10px rgba(255, 248, 230, 0.22);
  animation: splashLogoGlow 4.8s ease-in-out infinite;
  transform: translateZ(0);
}

.splash-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 288px;
  text-align: center;
}

.splash-kicker {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6928;
}

.splash-title {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #2f2210;
}

.splash-subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(70, 52, 22, 0.74);
}

@keyframes splashSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes splashSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes splashLogoGlow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 18px 34px rgba(154, 116, 40, 0.12),
      0 0 0 10px rgba(255, 248, 230, 0.22);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 20px 38px rgba(154, 116, 40, 0.16),
      0 0 0 13px rgba(255, 248, 230, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-ring,
  .splash-ring-2,
  .splash-logo {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .splash-stage {
    width: min(calc(100vw - 24px), 320px);
    padding: 28px 18px 26px;
    gap: 18px;
  }

  .splash-core {
    width: 150px;
    height: 150px;
  }

  .splash-logo-shell {
    width: 78px;
    height: 78px;
  }

  .splash-logo {
    font-size: 40px;
  }

  .splash-title {
    font-size: 26px;
  }

  .splash-subtitle {
    font-size: 13px;
  }
}
