:root {
  --pink: #ff6fa8;
  --yellow: #ffd166;
  --mint: #7bdcb5;
  --sky: #6ec5ff;
  --purple: #8e7cff;
  --text: #3d2e5f;
  --white: #fffef9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(135deg, #fff4c2 0%, #ffe5f0 50%, #e9f6ff 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

.background-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sparkle {
  position: absolute;
  display: inline-block;
  animation: floatAround 6s ease-in-out infinite;
  opacity: 0.85;
  font-size: 1.5rem;
}

.sparkle-1 { top: 10%; left: 8%; animation-delay: 0s; }
.sparkle-2 { top: 20%; right: 10%; animation-delay: 1s; }
.sparkle-3 { bottom: 18%; left: 12%; animation-delay: 2s; }
.sparkle-4 { top: 35%; left: 45%; animation-delay: 1.5s; }
.sparkle-5 { bottom: 25%; right: 20%; animation-delay: 2.5s; }
.sparkle-6 { top: 70%; left: 70%; animation-delay: 3s; }

@keyframes floatAround {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-18px) rotate(8deg) scale(1.1);
  }
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.hero {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 28px;
  color: white;
  padding: 48px 24px;
  box-shadow: 0 15px 35px rgba(92, 70, 150, 0.2);
}

.hero-content {
  max-width: 700px;
}

.tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
}

.subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

button {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: #4f3b25;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

main {
  margin-top: 24px;
}

.verse-highlight {
  margin-bottom: 24px;
}

.featured-card {
  background: var(--white);
  border: 4px solid var(--mint);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.verse-text {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.verse-ref {
  color: var(--purple);
  font-weight: 700;
}

.image-gallery {
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  background: linear-gradient(135deg, #fff7c2, #ffd6e8);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.emoji-image {
  font-size: 3rem;
  margin-bottom: 8px;
}

.gallery-card p {
  margin: 0;
  font-weight: 700;
}

.verse-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.verse-card {
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(61, 46, 95, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: linear-gradient(135deg, #fffef9, #ffe9f3);
  border: 3px solid var(--mint);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--purple);
}

.modal-verse {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 10px;
}

.modal-ref {
  margin: 0 0 14px;
  color: var(--pink);
  font-weight: 700;
}

.read-aloud-btn {
  background: var(--sky);
  color: white;
  padding: 10px 16px;
}

.site-footer {
  text-align: center;
  padding: 24px 16px 36px;
  color: var(--text);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.verse-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.verse-card p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.verse-card span {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verse-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 16px;
  }

  .hero {
    padding: 32px 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .verse-grid {
    grid-template-columns: 1fr;
  }
}