@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Nunito:wght@400;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink:    #f9a8d4;
  --lilac:   #d8b4fe;
  --mint:    #a7f3d0;
  --sky:     #bae6fd;
  --gold:    #fde68a;
  --deep:    #4c1d95;
  --text:    #3b0764;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(160deg, #fdf2f8 0%, #ede9fe 50%, #ecfdf5 100%);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

/* ── Sparkles ── */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sparkle {
  position: absolute;
  font-size: 1rem;
  animation: fall linear forwards;
  opacity: 0;
}

@keyframes fall {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(60px) rotate(360deg); }
}

/* ── Header ── */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

.crown {
  font-size: 2.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.2rem, 7vw, 4rem);
  background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.25rem 0;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.1rem;
  color: #9333ea;
  font-weight: 600;
}

/* ── Sections ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.2rem 3rem;
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  color: #7e22ce;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* ── Fairy of the Day ── */
.fairy-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 30px rgba(168, 85, 247, 0.15);
  border: 3px solid var(--lilac);
  transition: transform 0.2s;
}

.fairy-card:hover { transform: translateY(-4px); }

.fairy-emoji {
  font-size: 5rem;
  margin-bottom: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.fairy-card h3 {
  font-size: 1.5rem;
  color: #9333ea;
  margin-bottom: 0.5rem;
}

.fairy-card p {
  color: #6b21a8;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.5;
}

button {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border: none;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

button:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

button:active { transform: scale(0.97); }

/* ── Fairy Facts ── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.fact-card {
  background: white;
  border-radius: 18px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(168, 85, 247, 0.1);
  border: 2px solid var(--pink);
  transition: transform 0.2s;
}

.fact-card:hover { transform: translateY(-3px); }

.fact-icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }

.fact-card p { font-size: 0.95rem; line-height: 1.5; color: #581c87; }

/* ── Make a Wish ── */
.make-a-wish {
  text-align: center;
}

.make-a-wish > p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #6b21a8;
}

.wish-btn {
  font-size: 1.05rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.wish-response {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #7e22ce;
  min-height: 1.5rem;
  transition: opacity 0.4s;
}

/* ── Fairy Garden ── */
.garden-hint {
  text-align: center;
  color: #6b21a8;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.garden {
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
  border-radius: 24px;
  border: 3px dashed #4ade80;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.garden:hover { border-color: #16a34a; }

.garden-floor {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 40px;
  background: #4ade80;
  border-radius: 0 0 21px 21px;
}

.flower {
  position: absolute;
  font-size: 2rem;
  animation: grow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom center;
  transform: scale(0);
  pointer-events: none;
  user-select: none;
}

@keyframes grow {
  to { transform: scale(1); }
}

/* ── Midnight link ── */
.midnight-link-section { margin-bottom: 2rem; }

.midnight-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #0f0c29, #2d1b69);
  border: 2px solid #818cf8;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  color: #e0d7ff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(129,140,248,0.2);
}

.midnight-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(129,140,248,0.4);
}

.midnight-moon { font-size: 2.5rem; flex-shrink: 0; }

.midnight-link div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.midnight-link strong { font-size: 1.1rem; color: #c4b5fd; }
.midnight-link span   { font-size: 0.9rem; color: #a5b4fc; font-style: italic; }
.midnight-arrow { font-size: 1.5rem; color: #818cf8; flex-shrink: 0; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem;
  color: #9333ea;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
