html,
body {
  margin: 0;
  background: #ec4d7e;
}

html.splash-active,
html.splash-active body {
  overflow: hidden;
}

.splash-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background:
    radial-gradient(ellipse 90% 75% at 50% 36%, rgba(255, 255, 255, 0.14) 0%, transparent 58%),
    linear-gradient(180deg, #ec4d7e 0%, #e04570 42%, #d13868 100%);
  opacity: 1;
  transition: opacity 460ms cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: all;
}

.splash-loader--out {
  opacity: 0;
  pointer-events: none;
}

.splash-loader__glow {
  position: absolute;
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.splash-loader__cup {
  position: relative;
  width: 112px;
  height: 128px;
  filter: drop-shadow(0 14px 28px rgba(80, 10, 35, 0.18));
}

.splash-loader__cup-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.splash-loader__fill {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0);
  fill: #ffffff;
}

.splash-loader--animate .splash-loader__fill {
  animation: splash-fill-up 1.55s cubic-bezier(0.33, 1, 0.38, 1) 0.15s forwards;
}

.splash-loader__steam {
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: 0;
  stroke: #ffffff;
}

.splash-loader--animate .splash-loader__steam--1 {
  animation: splash-steam-rise 1.8s ease-out 0.55s infinite;
}

.splash-loader--animate .splash-loader__steam--2 {
  animation: splash-steam-rise 1.8s ease-out 0.95s infinite;
}

.splash-loader--animate .splash-loader__steam--3 {
  animation: splash-steam-rise 1.8s ease-out 1.25s infinite;
}

.splash-loader__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.splash-loader__title {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(60, 8, 28, 0.2);
}

.splash-loader__subtitle {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes splash-fill-up {
  0% {
    transform: scaleY(0);
  }

  72% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes splash-steam-rise {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }

  18% {
    opacity: 0.78;
  }

  55% {
    opacity: 0.42;
  }

  100% {
    opacity: 0;
    transform: translateY(-22px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-loader--animate .splash-loader__fill {
    animation: none;
    transform: scaleY(1);
  }

  .splash-loader--animate .splash-loader__steam {
    animation: none !important;
    opacity: 0.35;
  }

  .splash-loader {
    transition-duration: 120ms;
  }
}
