.launch-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(151, 45, 207, .26), transparent 39%),
    radial-gradient(ellipse at 50% 100%, rgba(28, 94, 155, .14), transparent 52%),
    #100b1b;
  opacity: 1;
  transition: opacity .16s ease, visibility .16s ease;
}

.skip-launch-screen .launch-screen { display: none; }

.launch-screen::before,
.launch-screen::after {
  position: absolute;
  width: min(108vw, 490px);
  aspect-ratio: 1;
  border: 1px solid rgba(190, 135, 255, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: launch-orbit 24s linear infinite;
}

.launch-screen::after {
  width: min(78vw, 350px);
  border-color: rgba(105, 207, 255, .09);
  animation-direction: reverse;
  animation-duration: 32s;
}

.launch-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.launch-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 36px, 336px);
  flex-direction: column;
  align-items: center;
  padding: 34px 20px 30px;
  overflow: hidden;
  border: 1px solid rgba(214, 187, 255, .16);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 67, 202, .19), transparent 54%),
    linear-gradient(155deg, rgba(34, 27, 49, .97), rgba(18, 16, 29, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: launch-content-enter .75s cubic-bezier(.2,.8,.2,1) both;
}

.launch-emblem {
  position: relative;
  display: grid;
  width: 174px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 23px;
  border: 1px solid rgba(195, 156, 255, .12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 66, 140, .15), transparent 68%);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .32));
}

.launch-emblem::before,
.launch-emblem::after {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(153, 118, 212, .28);
  border-right-color: rgba(99, 218, 255, .8);
  border-bottom-color: rgba(99, 218, 255, .12);
  border-radius: 50%;
  content: "";
  animation: launch-emblem-orbit 5s linear infinite;
}

.launch-emblem::after {
  inset: -15px;
  border-color: rgba(158, 128, 207, .1);
  border-left-color: rgba(189, 117, 255, .6);
  animation-direction: reverse;
  animation-duration: 8s;
}

.launch-wheel {
  position: absolute;
  inset: 12px;
  overflow: hidden;
  border: 1px solid rgba(230, 206, 255, .7);
  border-radius: 50%;
  background: conic-gradient(
    from -30deg,
    #a838d1 0deg 54deg,
    #6e26a3 54deg 108deg,
    #b440d3 108deg 162deg,
    #7023a0 162deg 216deg,
    #a838d1 216deg 270deg,
    #7023a0 270deg 324deg,
    #a838d1 324deg 360deg
  );
  box-shadow: 0 0 46px rgba(177, 91, 255, .34), inset 0 0 24px rgba(22, 0, 37, .36);
  animation: launch-wheel-spin 4.6s cubic-bezier(.3,.05,.65,.95) infinite;
}

.launch-wheel span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 50%;
  background: rgba(237, 222, 255, .5);
  transform-origin: top center;
}

.launch-wheel span:nth-child(1) { transform: rotate(0deg); }
.launch-wheel span:nth-child(2) { transform: rotate(60deg); }
.launch-wheel span:nth-child(3) { transform: rotate(120deg); }
.launch-wheel span:nth-child(4) { transform: rotate(180deg); }
.launch-wheel span:nth-child(5) { transform: rotate(240deg); }
.launch-wheel span:nth-child(6) { transform: rotate(300deg); }

.launch-pointer {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 9px solid transparent;
  border-bottom: 17px solid #fff;
  border-left: 9px solid transparent;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
  transform: translateX(-50%) rotate(180deg);
}

.launch-logo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  width: 66px;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid #21192d;
  border-radius: 50%;
  background: #21192d;
  box-shadow: 0 0 0 1px rgba(245, 223, 255, .42), 0 0 30px rgba(183, 125, 255, .52);
}

.launch-logo { display: block; width: 100%; height: 100%; border-radius: 50%; }
.launch-title { color: #fff; font-size: 25px; font-weight: 800; letter-spacing: .22em; text-indent: .22em; text-shadow: 0 2px 22px rgba(205, 147, 255, .26); }
.launch-subtitle { margin-top: 8px; color: #c0aed2; font-size: 9px; font-weight: 800; letter-spacing: .2em; text-align: center; }

.launch-progress {
  width: min(100%, 190px);
  height: 4px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(219, 202, 244, .12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .24);
}

.launch-progress span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a94cff, #70e0ff);
  box-shadow: 0 0 15px rgba(83, 214, 255, .72);
  animation: launch-progress-run 1.45s cubic-bezier(.45,0,.55,1) infinite;
}

.launch-caption { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #9e94ae; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.launch-caption::before { width: 6px; height: 6px; border-radius: 50%; background: #67e7bb; box-shadow: 0 0 10px rgba(103, 231, 187, .8); content: ""; animation: launch-status-pulse 1.6s ease-in-out infinite; }

@keyframes launch-wheel-spin {
  to { transform: rotate(360deg); }
}

@keyframes launch-orbit {
  to { transform: rotate(360deg); }
}

@keyframes launch-emblem-orbit {
  to { transform: rotate(360deg); }
}

@keyframes launch-progress-run {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(390%); }
}

@keyframes launch-status-pulse {
  50% { opacity: .45; box-shadow: 0 0 3px rgba(103, 231, 187, .45); }
}

@keyframes launch-content-enter {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .launch-screen::before, .launch-screen::after, .launch-emblem::before,
  .launch-emblem::after, .launch-wheel, .launch-progress span,
  .launch-caption::before, .launch-content { animation-duration: .01ms; }
}
