/* =========================================================
   signup-welcome-popup.css — kid-game-style welcome popup
   Shown on page load, alongside the welcome voice. The page
   behind it blurs gently (not too strong) while it's open.
   ========================================================= */

/* Gentle blur applied to the form behind the popup — subtle, not heavy */
.signup-body.welcome-popup-active .signup-main {
  filter: blur(3px);
  transition: filter 0.35s ease;
  pointer-events: none;
}

.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 500;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto; /* same scroll-safety pattern used on the tap gate / rotate popup */
  -webkit-overflow-scrolling: touch;
  display: flex;
  padding: 24px;
  background: rgba(58, 46, 87, 0.25);
  transition: opacity 0.35s ease;
}

.welcome-popup--hidden {
  opacity: 0;
  pointer-events: none;
}

.welcome-popup__card {
  position: relative;
  margin: auto; /* centers while staying reachable if content overflows */
  width: min(88vw, 380px);
  background: #ffffff;
  border-radius: 26px;
  padding: 34px 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(108, 75, 255, 0.28);
  overflow: hidden;
}

.welcome-popup__rainbow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(
    90deg,
    #ff9fb2,
    #ffd58a,
    #fff59d,
    #a6f3c1,
    #9fd8ff,
    #c6a8ff
  );
}

/* Crayon-style animated welcome text */
.welcome-popup__text {
  margin-top: 8px;
  font-family: "Permanent Marker", var(--font-display), cursive;
  font-weight: 400;
  font-size: clamp(19px, 5.2vw, 25px);
  line-height: 1.5;
  color: var(--color-purple, #6c4bff);
}

.welcome-popup__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) rotate(-3deg);
  animation: crayonWordIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes crayonWordIn {
  0% {
    opacity: 0;
    transform: translateY(14px) rotate(-3deg) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) rotate(2deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.welcome-popup__button {
  min-width: 150px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9fd8ff, #c6a8ff, #ff9fb2);
  color: #3a2e57;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(108, 75, 255, 0.25);
  transition: transform 0.12s ease;
}

.welcome-popup__button:active {
  transform: scale(0.95);
}
