html { height: 100%; background: #470235; }
body { margin: 0; min-height: 100%; background: #470235; }

.launch {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  color: #f7e7ce;
  background: linear-gradient(180deg, #230d26 0%, #470235 62%, #310b2d 100%);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 240ms ease-out;
}
.launch *, .launch *::before, .launch *::after { box-sizing: border-box; }
.launch-leaving { opacity: 0; pointer-events: none; }
.launch-content { width: 300px; max-width: 100%; }
.launch-art {
  position: relative;
  width: 300px;
  height: 240px;
  max-width: 100%;
  margin-inline: auto;
  isolation: isolate;
}
.launch-orbit {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: launch-arrive 1400ms cubic-bezier(.16, 1, .3, 1) both;
  transform: rotate(var(--tilt));
}
.launch-orbit::before {
  content: "";
  position: absolute;
  left: calc(150px - var(--rx));
  top: calc(120px - var(--ry));
  width: calc(var(--rx) * 2);
  height: calc(var(--ry) * 2);
  border: .65px solid rgb(255 214 107 / 14%);
  border-radius: 50%;
}
.launch-orbit-one { --rx: 126px; --ry: 44px; --tilt: -21.77deg; --period: 12s; }
.launch-orbit-two { --rx: 107px; --ry: 68px; --tilt: 41.25deg; --period: 14.4s; }
.launch-orbit-three { --rx: 132px; --ry: 51px; --tilt: 13.75deg; --period: 18s; }
.launch-mote {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffd66b;
  offset-path: ellipse(var(--rx) var(--ry) at 150px 120px);
  offset-rotate: auto;
  animation: launch-orbit var(--period) linear infinite;
  animation-delay: var(--delay, 0s);
}
.launch-mote:nth-child(2) { --delay: -2s; opacity: .6; }
.launch-mote:nth-child(3) { --delay: -4s; opacity: .45; }
.launch-mote:nth-child(4) { --delay: -6s; opacity: .7; }
.launch-mote:nth-child(5) { --delay: -8s; opacity: .45; }
.launch-mote:nth-child(6) { --delay: -10s; opacity: .65; }
.launch-mote-head { width: 4px; height: 4px; background: #fff3c7; box-shadow: 0 0 7px #ffd66b88; }
.launch-mote-head::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 1.5px;
  width: 25px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffd66b);
}
.launch-seal {
  position: absolute;
  left: 52px;
  top: 22px;
  width: 196px;
  height: 196px;
  object-fit: contain;
  animation: launch-seal 1400ms cubic-bezier(.16, 1, .3, 1) both;
}
.launch-wordmark {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  animation: launch-wordmark 1400ms cubic-bezier(.16, 1, .3, 1) both;
}
.launch-studio {
  margin: 9px 0 0;
  color: #ffd66b;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  animation: launch-wordmark 1400ms cubic-bezier(.16, 1, .3, 1) both;
}
.launch-pulse { display: flex; align-items: center; justify-content: center; gap: 8px; height: 14px; margin-top: 30px; }
.launch-pulse span { width: 4px; height: 4px; border-radius: 50%; background: #ffd66b; animation: launch-pulse 1500ms ease-in-out infinite; }
.launch-pulse span:nth-child(2) { animation-delay: -200ms; }
.launch-pulse span:nth-child(3) { animation-delay: -400ms; }
.launch-recovery { margin: 18px 0 0; color: #f7e7ce; font-size: 13px; line-height: 1.5; }
.launch-retry {
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid #ffd66b;
  border-radius: 8px;
  background: transparent;
  color: #ffd66b;
  font: inherit;
  cursor: pointer;
}
.launch-retry:focus-visible { outline: 2px solid #f7e7ce; outline-offset: 4px; }
@keyframes launch-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes launch-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes launch-seal { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes launch-wordmark { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes launch-pulse { 0%, 100% { opacity: .25; transform: scale(.75); } 50% { opacity: .9; transform: scale(1); } }
@media (max-width: 347px) {
  .launch-content { width: 300px; }
  .launch-art { max-width: none; margin-left: calc((100% - 300px) / 2); transform: scale(.86); }
}
@media (prefers-reduced-motion: reduce) {
  .launch, .launch * { animation: none !important; transition: none !important; }
  .launch-orbit { opacity: 1; }
  .launch-mote { offset-distance: 24%; }
  .launch-mote:nth-child(2) { offset-distance: 42%; }
  .launch-mote:nth-child(3) { offset-distance: 58%; }
  .launch-mote:nth-child(4) { offset-distance: 73%; }
  .launch-mote:nth-child(5) { offset-distance: 86%; }
  .launch-mote:nth-child(6) { offset-distance: 98%; }
  .launch-pulse span { opacity: .65; }
}
