#one-splash {
  --logo-image: url('../assets/one/launch-logo.jpg');
  position: fixed;
  inset: 0;
  z-index: 100;
  isolation: isolate;
  overflow: hidden;
  background: #06050b;
}

#one-splash .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 94%;
  pointer-events: none;
}

#one-splash .launch {
  --fill: 0%;
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 78%;
  height: 78%;
  padding-block-end: calc(3.375rem + clamp(0.45rem, 1.6vh, 1rem));
  text-align: center;
}

#one-splash .wordmark {
  position: relative;
  width: clamp(14rem, 28vw, 25rem);
  aspect-ratio: 610 / 330;
  margin-top: 0.5rem;
  pointer-events: none;
}

#one-splash .wordmark-layer {
  position: absolute;
  inset: 0;
  background-image: var(--logo-image);
  background-position: 55.6% 51.9%;
  background-size: 167.87% auto;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}

#one-splash .wordmark-dim {
  clip-path: inset(0 0 0 var(--fill));
  filter: brightness(0.56);
}

#one-splash .wordmark-lit { clip-path: inset(0 calc(100% - var(--fill)) 0 0); }

#one-splash .wordmark-shine {
  opacity: 0;
  filter: brightness(2.1) saturate(0.77);
  -webkit-mask-image: linear-gradient(94deg, transparent calc(var(--fill) - 14%), #000 var(--fill), transparent calc(var(--fill) + 9%));
  mask-image: linear-gradient(94deg, transparent calc(var(--fill) - 14%), #000 var(--fill), transparent calc(var(--fill) + 9%));
}

#one-splash [data-phase="loading"] .wordmark-shine { opacity: 0.78; }
#one-splash .launch-error { color: #f2f9ff; margin: 1rem; }

@media (max-width: 680px), (max-aspect-ratio: 4/5) {
  #one-splash {
    background: radial-gradient(ellipse at 87% 78%, #130921 0%, transparent 55%), #050408;
  }

  #one-splash .scene {
    inset: auto 0 0;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%);
    mask-image: linear-gradient(to bottom, transparent, #000 26%);
  }

  #one-splash .launch { width: 100%; height: 85%; }

  #one-splash .wordmark { width: min(73vw, 19rem); }
}

@media (max-height: 530px) and (min-aspect-ratio: 4/5) {
  #one-splash .launch { height: 90%; padding-block-end: 3.525rem; }
  #one-splash .wordmark { width: min(38vw, 15rem); }
}

#one-splash[hidden] { display: none; }
