@font-face {
  font-family: "Live Stars Brand";
  src: url("./assets/fonts/montserrat-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

:root {
  --launch-bg: #090811;
  --launch-panel: #12101f;
  --launch-text: #f8f6fc;
  --brand-font: "Live Stars Brand", "Montserrat", "Space Grotesk", Inter, system-ui, sans-serif;
}

html.launch-pending,
html.launch-pending body {
  overflow: hidden;
  background: var(--launch-bg);
}

.launch-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 28px;
  overflow: hidden;
  color: var(--launch-text);
  background: linear-gradient(145deg, #0d0a18 0%, var(--launch-bg) 54%, #08070e 100%);
  opacity: 1;
  transition: opacity 320ms cubic-bezier(.4, 0, .2, 1), visibility 320ms step-end;
}

html[data-route="admin"] .launch-splash {
  display: none;
}

.launch-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(44, 215, 246, .04), transparent 36%, rgba(236, 53, 156, .05) 68%, rgba(255, 111, 75, .03));
}

.launch-splash.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.launch-splash-content {
  position: relative;
  display: grid;
  width: min(100%, 390px);
  justify-items: center;
  transform: translateY(-2vh);
}

.launch-splash-logo {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(119, 67, 255, .28));
  opacity: 1;
}

.launch-splash-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--brand-font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  line-height: 1.1;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  animation: launch-title-in 900ms cubic-bezier(.16, 1, .3, 1) 140ms forwards;
}

@keyframes launch-title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .launch-splash {
    padding: 22px;
  }

  .launch-splash-logo {
    width: 132px;
    height: 132px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .launch-splash-title {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }
}
