/* ===========================================================
   welcome.css — the Home page welcome at the very top
   Short on purpose, so the birthday party peeks in below it.
   =========================================================== */
.welcome {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 4px 0 22px;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--pink-soft), var(--shadow);
  background:
    radial-gradient(circle at 12% 85%, rgba(255, 255, 255, .9) 0 40px, transparent 41px),
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .7) 0 55px, transparent 56px),
    linear-gradient(180deg, #dff6ff 0%, #ffe3f1 55%, #efe4ff 100%);
  animation: welcome-in .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes welcome-in { from { transform: translateY(18px) scale(.97); opacity: 0; } }

.welcome-castle {
  font-size: 3.6rem;
  line-height: 1;
  display: inline-block;
  animation: castle-bob 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 0 rgba(155, 93, 229, .18));
}
@keyframes castle-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }

.welcome h1 {
  margin: 4px 0 2px;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  text-shadow: 0 3px 0 #fff, 0 5px 0 rgba(61, 44, 92, .12);
}
/* rainbow letters (fun.js splits the title into one span per letter) */
.welcome h1 .jump-letter:nth-child(5n+1) { color: var(--pink); }
.welcome h1 .jump-letter:nth-child(5n+2) { color: var(--purple); }
.welcome h1 .jump-letter:nth-child(5n+3) { color: #2bb3e0; }
.welcome h1 .jump-letter:nth-child(5n+4) { color: #f15bb5; }
.welcome h1 .jump-letter:nth-child(5n)   { color: #e0a800; }

.welcome-sub { margin: 0 0 4px; font-weight: 600; color: var(--purple); font-size: 1.1rem; }
.welcome .door-row { margin: 6px 0 10px; gap: 14px 22px; }
.welcome .door-row .fly-link {
  font-size: 2.6rem;
  background: rgba(255, 255, 255, .85);
  border-radius: 22px;
  padding: 6px 12px 4px;
  min-width: 84px;
  box-shadow: 0 5px 0 rgba(61, 44, 92, .12);
}

/* the "there's more below!" peek */
.peek-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff6fb5, #c77dff 60%, #4cc9f0);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.peek-arrow span { display: inline-block; animation: peek-bounce 1.1s ease-in-out infinite; }
@keyframes peek-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(5px); } }
.peek-arrow:hover { transform: scale(1.05); }

/* things that float around the welcome */
.w-float { position: absolute; pointer-events: none; font-size: 2rem; opacity: .85; animation: w-drift 7s ease-in-out infinite; }
.w-float.f1 { top: 10%; left: 4%; font-size: 2.6rem; }
.w-float.f2 { top: 14%; right: 18%; animation-delay: -2s; }
.w-float.f3 { top: 52%; right: 3%; font-size: 2.4rem; animation-delay: -4s; }
.w-float.f4 { top: 6%; right: 4%; font-size: 2.4rem; animation-delay: -1s; }
.w-float.f5 { bottom: 12%; left: 10%; animation-delay: -3s; }
.w-float.f6 { top: 38%; left: 2%; font-size: 1.6rem; animation-delay: -5s; }
@keyframes w-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -10px) rotate(8deg); } }

/* the old hero (now below the birthday party) is calmer */
.hero h2 { margin-top: 0; color: var(--purple); }

@media (max-width: 700px) {
  .w-float { display: none; }
  .welcome .door-row .fly-link { min-width: 70px; font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome, .welcome-castle, .w-float, .peek-arrow span { animation: none; }
}
