/* Shared by the initial HTML and React so startup never flashes an empty page. */
.imiji-launch {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: #087f96;
  color: #fff;
  font-family: "Funnel Sans", system-ui, sans-serif;
}

.imiji-launch__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.imiji-launch__content::before {
  content: "";
  position: absolute;
  top: -48px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
  pointer-events: none;
}

.imiji-launch__emblem {
  display: grid;
  place-items: center;
  width: 120px;
  height: 104px;
  margin-bottom: 26px;
  border-radius: 25px;
  background: rgb(255 255 255 / 8%);
  animation: imiji-arrive 650ms ease-out both;
}

.imiji-launch__emblem img {
  display: block;
  width: 84px;
  height: auto;
  filter: invert(1);
}

.imiji-launch__wordmark {
  padding-left: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 8px;
  animation: imiji-reveal 550ms 250ms ease-out both;
}

.imiji-launch__tagline {
  margin-top: 13px;
  color: #d2ecef;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.4px;
  animation: imiji-reveal 550ms 350ms ease-out both;
}

.imiji-launch__dots {
  position: absolute;
  bottom: max(46px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  display: flex;
  gap: 5px;
}

.imiji-launch__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: imiji-dots 1100ms ease-in-out infinite;
}

.imiji-launch__dots i:nth-child(2) {
  animation-delay: 150ms;
}
.imiji-launch__dots i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes imiji-arrive {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes imiji-reveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes imiji-dots {
  50% {
    opacity: 0.25;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .imiji-launch *,
  .imiji-launch *::before {
    animation: none;
  }
}
