/* Landing overlay styles extracted from Index.html */

/* -------- Landing overlay (premium + fun) -------- */
.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(70, 72, 212, 0.12) 0%,
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 28%,
      rgba(255, 255, 255, 0.7) 0%,
      transparent 38%
    ),
    linear-gradient(135deg, #f8f7ff 0%, #f1edff 46%, #eef4ff 100%);
  overflow: hidden;
}

.landing-overlay::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(70, 72, 212, 0.06) 45%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  transform: translateX(-60%);
  animation: landing-light-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes landing-light-sweep {
  0% {
    transform: translateX(-60%) rotate(0.0001deg);
  }
  50% {
    transform: translateX(10%) rotate(0.0001deg);
  }
  100% {
    transform: translateX(60%) rotate(0.0001deg);
  }
}

/* entry / exit feel */
.landing-overlay.is-exiting {
  pointer-events: none;
  opacity: 0;
  transform: scale(1.01);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.landing-overlay.is-entering .landing-card {
  animation: landing-card-pop 650ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes landing-card-pop {
  0% {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    filter: blur(2px);
  }
  60% {
    transform: translateY(-2px) scale(1.015);
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    transform: translateY(0px) scale(1);
    opacity: 1;
  }
}

.landing-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 4vw, 34px);
  color: #1a1b20;
  text-align: center;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(3px);
}

.landing-overlay.is-entering .landing-title {
  animation: landing-title-reveal 900ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes landing-title-reveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
    filter: blur(0px);
  }
}

.landing-overlay[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(70, 72, 212, 0.85);
  box-shadow: 0 0 14px rgba(70, 72, 212, 0.22);
  animation: sparkle-float 1.8s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes sparkle-float {
  0%,
  100% {
    transform: translateY(0) scale(0.9);
  }
  50% {
    transform: translateY(-14px) scale(1.15);
  }
}

.landing-card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  border-radius: 28px;
  border: 1px solid rgba(70, 72, 212, 0.14);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(81, 82, 139, 0.14);
  padding: 26px;
}

.landing-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: rgba(70, 72, 212, 0.1);
  border: 1px solid rgba(70, 72, 212, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  animation: landing-bounce 1.2s ease-in-out infinite;
}

@keyframes landing-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.landing-subtitle {
  text-align: center;
  color: #5b5f85;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.4;
  font-size: 14px;
}

.progress-shell {
  height: 12px;
  border-radius: 999px;
  background: rgba(70, 72, 212, 0.08);
  overflow: hidden;
  border: 1px solid rgba(70, 72, 212, 0.12);
}

.progress-bar {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4648d4 0%, #5d61ef 50%, #8b8dff 100%);
  box-shadow: 0 0 16px rgba(70, 72, 212, 0.2);
  transition: width 180ms ease;
}

.loading-message {
  margin-top: 12px;
  text-align: center;
  color: #4c5275;
  font-weight: 700;
  font-size: 13px;
  min-height: 18px;
}

.landing-hint {
  margin-top: 14px;
  text-align: center;
  color: #7a7fa8;
  font-weight: 600;
  font-size: 12px;
}
