/* Final report generation overlay */

.final-loading-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #080312;
  color: #ffffff;
  backdrop-filter: blur(14px);
}

body.final-loading-active {
  overflow: hidden;
}

.final-loading-view .member-loading-dialog {
  width: min(250px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 24px 20px 20px;
  color: #ffffff;
  text-align: center;
}

.final-loading-copy {
  display: grid;
  place-items: center;
}

.final-loading-view p {
  max-width: 260px;
  margin: 0;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: center;
  transition: opacity 90ms linear;
}

.final-loading-view p[data-final-loading-stage="profile-report"] {
  color: #ffffff;
}

.final-loading-view .cube-loader {
  position: relative;
  width: 40px;
  height: 40px;
  margin: auto;
}

.final-loading-view .cube {
  position: absolute;
  width: 50%;
  height: 50%;
  border: 0;
  background-color: currentColor;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
  animation: finalFoldCube 2.4s infinite linear;
}

.final-loading-view .cube1 {
  top: 0;
  left: 0;
  color: rgba(255, 255, 255, 0.85);
  transform-origin: 100% 100%;
  animation-delay: 0.3s;
}

.final-loading-view .cube2 {
  top: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.65);
  transform-origin: 0 100%;
  animation-delay: 0.6s;
}

.final-loading-view .cube3 {
  right: 0;
  bottom: 0;
  color: rgba(255, 255, 255, 0.45);
  transform-origin: 0 0;
  animation-delay: 0.9s;
}

.final-loading-view .cube4 {
  bottom: 0;
  left: 0;
  color: rgba(255, 255, 255, 0.25);
  transform-origin: 100% 0;
  animation-delay: 1.2s;
}

@keyframes finalFoldCube {
  0%,
  10% {
    opacity: 0;
    transform: perspective(140px) rotateX(-180deg);
  }

  25%,
  75% {
    opacity: 1;
    transform: perspective(140px) rotateX(0deg);
  }

  90%,
  100% {
    opacity: 0;
    transform: perspective(140px) rotateY(180deg);
  }
}
