@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Poppins:wght@300;400;600&display=swap');

:root{
  --bg1:#1a0f1f;
  --bg2:#3a1632;
  --pink:#ff4d8d;
  --pink2:#ff86b3;
  --text:#ffe9f2;
  --muted:rgba(255,233,242,.78);
  --glass:rgba(255,255,255,.10);
  --stroke:rgba(255,255,255,.18);
  --shadow: 0 24px 70px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 20% 15%, rgba(255,77,141,.22), transparent 55%),
    radial-gradient(900px 600px at 80% 80%, rgba(255,134,179,.16), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:28px 16px;
}

.card{
  width:min(880px, 95vw);
  border:1px solid var(--stroke);
  background:var(--glass);
  backdrop-filter: blur(12px);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:28px;
}

.glass{ position:relative; }
.center{ text-align:center; }

.kicker{
  margin:0 0 10px;
  color:var(--muted);
  font-weight:400;
}

h1{
  font-family:"Playfair Display", serif;
  margin:6px 0 8px;
  font-size:clamp(30px, 4.8vw, 52px);
  letter-spacing:.3px;
}

.subtitle{
  margin:0 0 18px;
  color:var(--muted);
  font-size:clamp(14px, 2.2vw, 18px);
  line-height:1.6;
}

.hint{
  margin:18px 0 0;
  color:rgba(255,233,242,.7);
  font-size:14px;
}

.btnRow{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn{
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:14px 22px;
  font-weight:600;
  font-size:16px;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
  user-select:none;
}

.btnYes{
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  color:#2a0014;
  box-shadow: 0 16px 35px rgba(255,77,141,.25);
}

.btnNo{
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.22);
}

.btn:hover{ filter: brightness(1.04); }
.btn:active{ transform: scale(.98); }

.link{
  display:inline-block;
  margin-top:14px;
  color:rgba(255,233,242,.8);
  text-decoration:none;
}
.link:hover{ text-decoration:underline; }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:16px;
}
@media (max-width: 820px){
  .grid3{ grid-template-columns: 1fr; }
}

.giftCard{
  display:block;
  text-decoration:none;
  color:var(--text);
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px;
  transition: transform .18s ease, background .18s ease;
}
.giftCard:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.11);
}

.giftIcon{
  width:54px; height:54px;
  display:grid; place-items:center;
  border-radius:14px;
  background: rgba(255,77,141,.18);
  border: 1px solid rgba(255,77,141,.25);
  font-size:26px;
  margin-bottom:10px;
}

.giftCard h3{ margin:6px 0; }
.giftCard p{ margin:0; color:var(--muted); line-height:1.5; }

.footerRow{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}

.song{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  margin-top:12px;
}
.songMeta h3{ margin:0 0 3px; }
.songMeta p{ margin:0; color:var(--muted); }
audio{ width:min(340px, 100%); }

@media (max-width: 720px){
  .song{ flex-direction:column; align-items:stretch; }
  audio{ width:100%; }
}

.letter{
  margin-top:14px;
  padding:18px;
  border-radius:18px;
  background: rgba(0,0,0,.14);
  border:1px solid rgba(255,255,255,.14);
  line-height:1.9;
  color: rgba(255,233,242,.92);
}
.sig{
  margin-top:18px;
  font-family:"Playfair Display", serif;
  font-size:18px;
  color: rgba(255,233,242,.85);
}
.codeword{
  display:inline-block;
  padding:3px 10px;
  margin-left:6px;
  border-radius:999px;
  background: rgba(255,77,141,.18);
  border:1px solid rgba(255,77,141,.28);
}

/* === ROMANTIC FLOATING HEART EMOJIS 💖 === */
/* Change THIS line: */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;  /* ← Changed from 1 to -1 */
}


.heart {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: float 6s infinite linear;
  line-height: 1;
  pointer-events: none;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.2) rotate(180deg);
    opacity: 0;
  }
}
