#alivo-motion-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #10264b, #071323 72%);
  color: #fff;
  font-family: system-ui, sans-serif;
  opacity: 1;
  transition: opacity .42s ease, visibility .42s ease;
}

#alivo-motion-intro.alivo-intro-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.alivo-intro-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  isolation: isolate;
}

.alivo-intro-ring {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #087cff 75deg,
    transparent 145deg,
    #ff851b 245deg,
    transparent 330deg
  );
  filter: blur(9px);
  opacity: .8;
  animation: alivo-ring-spin 1.6s ease-in-out both;
}

.alivo-intro-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #09182d;
}

.alivo-intro-logo {
  position: relative;
  z-index: 2;
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 35px;
  filter: drop-shadow(0 0 26px #168dff66);
  animation: alivo-logo-enter .9s cubic-bezier(.2,.8,.2,1) both;
}

.alivo-intro-name {
  position: relative;
  z-index: 2;
  margin-top: 42px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 8px;
  animation: alivo-text-enter .7s .55s both;
}

.alivo-intro-name span {
  color: #ff922b;
}

.alivo-intro-tagline {
  margin-top: 9px;
  font-size: 14px;
  color: #d9e6ff;
  animation: alivo-text-enter .7s .8s both;
}

.alivo-intro-progress {
  width: 160px;
  height: 3px;
  margin-top: 35px;
  border-radius: 8px;
  background: linear-gradient(90deg,#009cff,#ff831e);
  transform-origin: left;
  animation: alivo-progress 1.6s .2s both;
}

/* Android's system splash already puts the ALIVO mark in the center. Keep that
   exact mark in place as the native motion continues in the WebView. */
#alivo-motion-intro.alivo-native-intro {
  background: radial-gradient(ellipse at 50% 55%, #10264b, #071323 72%);
  color: #fff;
  transition-duration: .16s;
}

.alivo-native-intro .alivo-intro-content {
  width: 100%;
  height: 100%;
}

.alivo-native-intro .alivo-intro-ring {
  top: calc(50% - 145px);
  left: calc(50% - 145px);
  width: 290px;
  height: 290px;
  opacity: .8;
  animation: alivo-ring-spin 1.2s ease-in-out both;
}

.alivo-native-intro .alivo-intro-ring::after {
  background: transparent;
}

.alivo-native-intro .alivo-intro-logo {
  position: absolute;
  top: calc(50% - 130px);
  left: calc(50% - 130px);
  width: 260px;
  height: 260px;
  margin: 0;
  border-radius: 0;
  filter: drop-shadow(0 5px 18px rgba(81, 76, 146, .14));
  animation: none;
}

.alivo-native-intro .alivo-intro-name,
.alivo-native-intro .alivo-intro-tagline,
.alivo-native-intro .alivo-intro-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.alivo-native-intro .alivo-intro-name {
  top: calc(50% + 166px);
  margin: 0;
  color: #fff;
  font-size: 38px;
  letter-spacing: 8px;
  animation: alivo-native-text-enter .7s .55s both;
}

.alivo-native-intro .alivo-intro-name span {
  color: #ff922b;
}

.alivo-native-intro .alivo-intro-tagline {
  top: calc(50% + 209px);
  margin: 0;
  color: #d9e6ff;
  font-size: 14px;
  white-space: nowrap;
  animation: alivo-native-text-enter .7s .8s both;
}

.alivo-native-intro .alivo-intro-progress {
  top: calc(50% + 252px);
  left: calc(50% - 80px);
  width: 160px;
  height: 3px;
  margin: 0;
  transform: none;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: alivo-native-progress 1.2s .2s linear both;
}

@keyframes alivo-native-text-enter {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes alivo-native-progress {
  to { background-size: 100% 100%; }
}

@keyframes alivo-ring-spin {
  from { transform: rotate(-140deg) scale(.4); opacity: 0; }
  45% { opacity: .95; }
  to { transform: rotate(260deg) scale(1); opacity: .55; }
}

@keyframes alivo-logo-enter {
  from { opacity: 0; transform: scale(.65); filter: blur(12px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes alivo-text-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes alivo-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  #alivo-motion-intro,
  #alivo-motion-intro * {
    animation: none !important;
    transition: none !important;
  }
}
