:root {
  --bg1: #fff4f7;
  --bg2: #ffe7ef;
  --bg3: #f7e7ff;
  --card: rgba(255, 255, 255, 0.74);
  --card-strong: rgba(255, 255, 255, 0.82);
  --text: #2a1b27;
  --muted: #6f5b6d;
  --primary: #e94b85;
  --primary-dark: #c9376d;
  --lavender: #8357d8;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(185, 73, 118, 0.16);
  --shadow-soft: 0 18px 46px rgba(131, 87, 216, 0.08);
  --border: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 30%),
    linear-gradient(135deg, var(--bg1), var(--bg2) 48%, var(--bg3));
  overflow-x: hidden;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 46px;
  position: relative;
  z-index: 2;
}

.card,
.mini-card {
  background: var(--card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card {
  border-radius: 32px;
}

.hero {
  padding: 42px 30px;
  text-align: center;
  animation: cardEnter 1.1s cubic-bezier(.2,.8,.2,1) both;
}

.eyebrow,
.mini-label,
.message-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--primary-dark);
}

.eyebrow { margin: 0 0 16px; }
.mini-label,
.message-label { margin: 0 0 12px; font-weight: 700; }

h1, h2 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  line-height: 0.98;
}

h1 span {
  color: var(--primary);
  display: inline-block;
  animation: pulseWord 2.8s ease-in-out infinite;
}

.subhead {
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  color: var(--muted);
  margin: 18px auto 30px;
  max-width: 42ch;
  line-height: 1.7;
}

.message-box {
  max-width: 720px;
  margin: 0 auto 26px;
  background: var(--card-strong);
  border: 1px solid rgba(233, 75, 133, 0.14);
  border-radius: 26px;
  padding: 26px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

#message,
#quote {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#message.changing,
#quote.changing {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
}

#message {
  font-size: clamp(1.28rem, 2.9vw, 1.84rem);
  line-height: 1.6;
  margin: 0;
  font-weight: 700;
  min-height: 3.4em;
}

.actions,
.song-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }

.primary {
  background: linear-gradient(135deg, #ef5c97, #df3f82);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(223, 63, 130, 0.28);
}

.secondary,
.tertiary,
.quote-btn {
  background: rgba(255,255,255,0.74);
  color: var(--primary-dark);
  border: 1px solid rgba(223, 63, 130, 0.12);
}

.tertiary {
  color: var(--lavender);
  border-color: rgba(131, 87, 216, 0.14);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.mini-card {
  border-radius: 28px;
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}

.mini-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.song-list-card {
  padding: 28px 26px;
  margin-top: 20px;
}

.song-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.song-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 50ch;
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.song-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 152px;
  padding: 20px 20px 18px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.74));
  border: 1px solid rgba(223, 63, 130, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.song-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(185, 73, 118, 0.14);
  border-color: rgba(223, 63, 130, 0.24);
}

.song-item strong {
  font-size: 1.08rem;
  line-height: 1.35;
}

.song-item span:last-child {
  margin-top: auto;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.96rem;
}

.song-tag {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(233, 75, 133, 0.10);
  color: var(--primary-dark);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-note {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.background-glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-1 {
  top: -120px;
  left: -80px;
  background: rgba(255, 133, 179, 0.65);
}

.glow-2 {
  right: -120px;
  bottom: -140px;
  background: rgba(216, 147, 255, 0.6);
  animation-duration: 18s;
}

#hearts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -40px;
  font-size: 22px;
  opacity: 0.8;
  animation: floatUp linear forwards;
  filter: drop-shadow(0 8px 16px rgba(233,75,133,0.2));
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.08); }
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.85; }
  100% {
    transform: translateY(-115vh) translateX(var(--drift)) scale(1.25) rotate(16deg);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .story-grid,
  .songs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 20px, 1040px);
    padding-top: 18px;
    padding-bottom: 32px;
  }

  .hero,
  .song-list-card,
  .mini-card {
    border-radius: 24px;
  }

  .hero,
  .song-list-card {
    padding: 26px 18px;
  }

  .mini-card {
    padding: 22px 18px;
  }

  .actions,
  .song-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .song-item {
    min-height: auto;
  }
}
