html.muveup-pwa-splash-active #loginForm {
  visibility: hidden;
  pointer-events: none;
}

#muveup-pwa-splash {
  --splash-dot-hero-size: min(68vw, 280px);
  --splash-dot-logo-size: 0.30em;
  --splash-dot-nudge-y-hero: 0.06em;
  --splash-dot-nudge-y-logo: 0.14em;
  --splash-word-nudge-x: 0.1em;
  --splash-word-nudge-y: -0.1em;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  pointer-events: none;
}

.muveup-pwa-splash-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-brand {
  position: relative;
  width: var(--splash-dot-hero-size);
  height: var(--splash-dot-hero-size);
}

.muveup-pwa-splash-word {
  color: #815da7;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  will-change: transform, opacity, max-width, filter;
}

.muveup-pwa-splash-word--left,
.muveup-pwa-splash-word--right {
  white-space: nowrap;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-word {
  visibility: hidden;
  width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#muveup-pwa-splash:not(.is-pulse-complete):not(.is-exiting) .muveup-pwa-splash-word {
  animation: muveupWordTeaser 1.2s ease-in-out 0.65s 1;
}

.muveup-pwa-splash-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--splash-dot-hero-size);
  height: var(--splash-dot-hero-size);
  border-radius: 50%;
  background: #e38722;
  transform-origin: center center;
  will-change: transform, opacity, width, height, filter, box-shadow;
}

.muveup-pwa-splash-dot-letter {
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: calc(var(--splash-dot-hero-size) * 0.38);
  line-height: 1;
  transform: translateY(-0.03em);
  user-select: none;
  pointer-events: none;
  opacity: 0;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-dot-letter {
  animation: muveupDotLetterIntro 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-dot-letter {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-dot {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--splash-dot-nudge-y-hero));
  margin: 0;
  animation:
    muveupDotIntro 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    muveupHeartbeat 1.2s ease-in-out 0.65s infinite;
}

#muveup-pwa-splash.is-pulse-complete:not(.is-exiting) .muveup-pwa-splash-dot {
  animation: none;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 48px rgba(227, 135, 34, 0.35);
}

#muveup-pwa-splash.is-exiting {
  transition: opacity 0.22s ease-out 0.72s;
}

#muveup-pwa-splash.is-exiting.is-exiting-fade {
  opacity: 0;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-brand {
  width: auto;
  height: auto;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-dot {
  position: static;
  left: auto;
  top: auto;
  margin-top: var(--splash-dot-nudge-y-logo);
  animation: muveupDotSettle 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-word {
  visibility: visible;
  animation: none;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--left {
  max-width: none;
  overflow: visible;
  animation: muveupWordRevealLeft 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--right {
  max-width: none;
  overflow: visible;
  animation: muveupWordRevealRight 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

@keyframes muveupDotLetterIntro {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes muveupDotIntro {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    filter: brightness(1.15);
    box-shadow: 0 0 0 rgba(227, 135, 34, 0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgba(227, 135, 34, 0.35);
  }
}

@keyframes muveupHeartbeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgba(227, 135, 34, 0.35);
  }
  12% {
    transform: translate(-50%, -50%) scale(1.22);
    filter: brightness(1.08);
    box-shadow: 0 0 64px rgba(227, 135, 34, 0.5);
  }
  24% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgba(227, 135, 34, 0.35);
  }
  36% {
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(1.04);
    box-shadow: 0 0 56px rgba(227, 135, 34, 0.42);
  }
  48% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgba(227, 135, 34, 0.35);
  }
}

@keyframes muveupWordTeaser {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.12;
  }
}

@keyframes muveupDotSettle {
  from {
    width: var(--splash-dot-hero-size);
    height: var(--splash-dot-hero-size);
    transform: none;
    box-shadow: 0 0 48px rgba(227, 135, 34, 0.35);
    filter: brightness(1);
  }
  to {
    width: var(--splash-dot-logo-size);
    height: var(--splash-dot-logo-size);
    transform: none;
    box-shadow: none;
    filter: brightness(1);
  }
}

@keyframes muveupWordRevealLeft {
  from {
    opacity: 0;
    transform: translateX(-12%) scale(0.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate(calc(-1 * var(--splash-word-nudge-x)), var(--splash-word-nudge-y)) scale(1);
    filter: blur(0);
  }
}

@keyframes muveupWordRevealRight {
  from {
    opacity: 0;
    transform: translateX(12%) scale(0.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate(var(--splash-word-nudge-x), var(--splash-word-nudge-y)) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #muveup-pwa-splash:not(.is-pulse-complete):not(.is-exiting) .muveup-pwa-splash-word {
    animation: none;
  }

  #muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-brand {
    width: auto;
    height: auto;
  }

  #muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-word {
    visibility: visible;
    width: auto;
  }

  .muveup-pwa-splash-dot {
    position: static;
    width: var(--splash-dot-logo-size);
    height: var(--splash-dot-logo-size);
    margin-top: var(--splash-dot-nudge-y-logo);
    transform: none;
    animation: none;
    box-shadow: none;
    filter: none;
  }

  .muveup-pwa-splash-dot-letter {
    display: none;
  }

  .muveup-pwa-splash-word {
    opacity: 1;
    max-width: none;
    overflow: visible;
    filter: none;
  }

  .muveup-pwa-splash-word--left {
    transform: translate(calc(-1 * var(--splash-word-nudge-x)), var(--splash-word-nudge-y));
  }

  .muveup-pwa-splash-word--right {
    transform: translate(var(--splash-word-nudge-x), var(--splash-word-nudge-y));
  }

  #muveup-pwa-splash.is-exiting .muveup-pwa-splash-dot {
    width: var(--splash-dot-logo-size);
    height: var(--splash-dot-logo-size);
    animation: none;
    box-shadow: none;
  }

  #muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--left,
  #muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--right {
    animation: none;
    opacity: 1;
    filter: none;
  }

  #muveup-pwa-splash.is-exiting {
    transition: opacity 0.2s ease-out;
  }
}
