.launch-shell {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 10;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: #121110;
  color: #ede4d6;
  font: 14px/20px system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.launch-shell[data-loading] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.launch-shell[data-dissolve] {
  transition: opacity 180ms cubic-bezier(.22, 1, .36, 1), visibility 180ms;
}

.launch-shell-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 92px;
}

.launch-shell-monogram {
  width: 57px;
  height: 50px;
  fill: currentColor;
}

.launch-shell-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 0 solid #86796b;
}

.launch-shell-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.launch-shell-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.launch-shell-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.launch-shell-signal { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-color: #ff3b18; }

.launch-shell p {
  display: grid;
  width: min(224px, 68vw);
  height: 40px;
  margin: 0;
  color: #b9afa2;
  text-align: center;
}
.launch-shell p span { grid-area: 1 / 1; }
.launch-shell-slow { opacity: 0; }

.launch-shell:is([data-loading], [data-dissolve]) .launch-shell-normal { animation: launch-status-normal 0s 3.5s forwards; }
.launch-shell:is([data-loading], [data-dissolve]) .launch-shell-slow { animation: launch-status-slow 0s 3.5s forwards; }
.launch-shell[data-dissolve]:not([data-loading]) p span { animation-play-state: paused; }

@keyframes launch-status-normal { to { opacity: 0; } }
@keyframes launch-status-slow { to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .launch-shell:is([data-loading], [data-dissolve]) .launch-shell-signal {
    animation: launch-signal 1.45s ease-in-out 180ms infinite;
  }

  .launch-shell[data-dissolve]:not([data-loading]) .launch-shell-signal { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-shell[data-dissolve] { transition: none; }
}

@keyframes launch-signal {
  0%, 100% { transform: none; }
  52% { transform: translate(-6px, -6px); }
}
