* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { overflow-x: clip; }
body.modal-open {
  overflow: hidden;
  padding-right: var(--sb-w, 0px);
}
body { font-family: 'Nunito', sans-serif; }

.cloud, .sparkle { will-change: transform; }
.feature-card { will-change: transform; }
[class*="animate-float"], [class*="animate-bounce"] { will-change: transform; }
h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; }

/* ── Parchment Texture ── */
.parchment {
  background: linear-gradient(135deg, #FFFDF0 0%, #FFF8DC 30%, #FFFAED 60%, #FFF5D0 100%);
  position: relative;
}
.parchment::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(255,220,100,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(255,180,80,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Sky Background Gradient ── */
.sky-bg {
  background: linear-gradient(180deg,
    #C9E8F5 0%,
    #87CEEB 20%,
    #B0DDEF 50%,
    #FFE4EA 85%,
    #FFC0CB 100%);
}

/* ── Shimmer Button ── */
.btn-shimmer {
  background: linear-gradient(90deg, #FF9DAD 0%, #FF7A9A 40%, #FFD700 70%, #FF9DAD 100%);
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-200%);
  animation: shimmerSlide 2.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes shimmerSlide {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(500%); }
}

/* ── Cloud Decorations ── */
.cloud {
  background: white;
  border-radius: 50px;
  position: absolute;
  opacity: 0.75;
  filter: blur(1px);
}
.cloud::before, .cloud::after {
  content: '';
  background: white;
  border-radius: 50%;
  position: absolute;
}
.cloud::before { width: 50%; height: 180%; top: -60%; left: 15%; }
.cloud::after  { width: 35%; height: 150%; top: -50%; right: 20%; }

/* ── Star Sparkle ── */
.sparkle { animation: spin 4s linear infinite; transform-origin: center; }

/* ── Card hover ── */
.feature-card {
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 154, 173, 0.28);
}

/* ── Modal Overlay ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.68);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box { animation: slideUp 0.35s ease-out; }

/* ── Announcement Item ── */
.notice-item {
  transition: background 0.2s, padding-left 0.2s;
}
.notice-item:hover {
  background: rgba(255,192,203,0.15);
  padding-left: 0.75rem;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFE4EA; }
::-webkit-scrollbar-thumb { background: #FF9DAD; border-radius: 99px; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
