/* ==========================================================================
   welcome.css — §4.3 / §4.4
   ========================================================================== */

#welcome-screen {
  display: grid;
  place-items: center;
  padding: var(--sp-3);
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 255, 255, .85), transparent 62%),
    linear-gradient(168deg, var(--pastel-pink) 0%, var(--blush) 46%, var(--cream) 100%);
}

.wl-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.wl-title { margin: 0 0 var(--sp-4); }

.wl-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 6.4vw, 34px);
  color: var(--wine);
  line-height: 1.2;
}
.wl-line--big {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(46px, 14vw, 76px);
  color: var(--burgundy);
  letter-spacing: -.01em;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   The mascot. Breathing is an infinite ambient loop, so autoplay is safe
   here — there is no "already finished" state to miss. (§1.3, §4.3)
   -------------------------------------------------------------------------- */
.mascot-btn {
  position: relative;
  display: block;
  width: clamp(170px, 46vw, 226px);
  height: clamp(170px, 46vw, 226px);
  margin: 0 auto var(--sp-2);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  animation: breathe 3.6s var(--ease-soft) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1)     translateY(0); }
  50%      { transform: scale(1.045) translateY(-6px); }
}

.mascot-svg,
.mascot-btn .mascot-img { width: 100%; height: 100%; }

.mascot-glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, .9) 0%,
    rgba(251, 215, 227, .55) 44%,
    transparent 70%);
  opacity: .8;
  transition: opacity var(--dur-medium) var(--ease-soft),
              transform var(--dur-medium) var(--ease-premium);
  pointer-events: none;
}

/* the heart that beats in above it during the hug (§4.4) */
.mascot-heart {
  position: absolute;
  top: -12%;
  left: 50%;
  width: 42px;
  height: 40px;
  translate: -50% 0;
  opacity: 0;
  scale: .4;
  pointer-events: none;
}
.mascot-heart svg { width: 100%; height: 100%; fill: var(--wine); }

/* --------------------------------------------------------------------------
   The hug. One-shot — only ever added by JS on tap. (§4.4)
   -------------------------------------------------------------------------- */
.mascot-btn.is-hugging {
  animation: hug 900ms var(--ease-bounce) forwards;
}
@keyframes hug {
  0%   { transform: scale(1)    rotate(0); }
  35%  { transform: scale(1.16) rotate(-7deg); }
  62%  { transform: scale(1.08) rotate(5deg); }
  100% { transform: scale(1.22) rotate(0); }
}
.mascot-btn.is-hugging .mascot-glow { opacity: 1; transform: scale(1.28); }
.mascot-btn.is-hugging .mascot-heart {
  animation: heart-rise 900ms var(--ease-premium) forwards;
}
@keyframes heart-rise {
  0%   { opacity: 0; scale: .4;  translate: -50% 10px; }
  40%  { opacity: 1; scale: 1.2; translate: -50% -14px; }
  70%  { opacity: 1; scale: 1;   translate: -50% -22px; }
  100% { opacity: 0; scale: 1.1; translate: -50% -46px; }
}

.wl-hint {
  font-family: var(--font-cute);
  font-size: clamp(19px, 5vw, 23px);
  color: var(--wine);
  opacity: .8;
  margin: 0;
  animation: hint-pulse 2.6s var(--ease-soft) infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: .6;  transform: translateY(0); }
  50%      { opacity: .95; transform: translateY(-3px); }
}

/* --------------------------------------------------------------------------
   Ambient floating hearts — DOM nodes, kept well under the ~30 budget (§2.4)
   and animated on transform/opacity only.
   -------------------------------------------------------------------------- */
.wl-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.wl-hearts span {
  position: absolute;
  bottom: -8%;
  width: 20px;
  height: 19px;
  color: var(--dusty-pink);
  opacity: 0;
  will-change: transform, opacity;
  animation: float-up linear infinite;
}
.wl-hearts svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes float-up {
  0%   { opacity: 0;   transform: translateY(0)      scale(.6) rotate(0); }
  12%  { opacity: .75; }
  85%  { opacity: .5; }
  100% { opacity: 0;   transform: translateY(-108vh) scale(1)  rotate(28deg); }
}
