:root {
  --ink: #5f3d52;
  --rose: #e88ba9;
  --deep-rose: #c35d82;
  --cream: #fffaf7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 15% 16%, rgba(255,255,255,.9) 0 3%, transparent 18%),
    radial-gradient(circle at 85% 86%, rgba(255,246,213,.72) 0 2%, transparent 19%),
    linear-gradient(135deg, #f7c9d8 0%, #fce2df 47%, #f6d3e0 100%);
}

.scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 48px 20px 28px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image: radial-gradient(#b86281 0.7px, transparent 0.7px);
  background-size: 14px 14px;
}

.glow { position: absolute; z-index: -1; filter: blur(12px); border-radius: 50%; }
.glow-one { width: 360px; height: 360px; background: #ffd2df; left: -80px; top: -95px; }
.glow-two { width: 390px; height: 390px; background: #f7b9d0; right: -120px; bottom: -130px; }

.card {
  position: relative;
  width: min(100%, 560px);
  padding: 72px clamp(28px, 7vw, 62px) 46px;
  text-align: center;
  background: rgba(255, 253, 251, .82);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 32px;
  box-shadow: 0 22px 65px rgba(138, 66, 95, .18), inset 0 1px 0 #fff;
  backdrop-filter: blur(7px);
  animation: arrive .85s cubic-bezier(.2,.8,.25,1) both;
}

.ribbon {
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: #a95473;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: .9rem;
}

.heart-wrap {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  background: linear-gradient(145deg, #ffe2ea, #fff3ec);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(202, 94, 129, .16);
}
.heart { color: var(--rose); font-size: 36px; line-height: 1; animation: beat 2.1s ease-in-out infinite; }
.eyebrow { margin: 0 0 8px; letter-spacing: .17em; font-size: .68rem; font-weight: 600; color: #be718b; }
h1 { margin: 0; color: #61384d; font: 700 clamp(2.55rem, 8vw, 4.25rem)/1 "Playfair Display", serif; letter-spacing: -.055em; }
h1 em { color: var(--deep-rose); font-weight: 600; }
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 21px; color: #dfa0b3; }
.divider::before, .divider::after { content: ""; width: 52px; height: 1px; background: linear-gradient(90deg, transparent, #e7afc0); }
.divider::after { transform: scaleX(-1); }
.divider span { font-size: .83rem; }
.message { max-width: 420px; margin: 0 auto; font-size: clamp(.98rem, 2.7vw, 1.05rem); line-height: 1.72; }
.message.small { margin-top: 14px; font-size: .94rem; color: #865d70; }

.playlist {
  margin-top: 29px;
  padding: 18px 16px 11px;
  text-align: left;
  background: rgba(255, 231, 238, .48);
  border: 1px solid rgba(216, 124, 154, .16);
  border-radius: 18px;
  display: none;
}
.playlist.shown {
  display: block;
  animation: reveal .55s cubic-bezier(.2,.8,.25,1) both;
}
.playlist-heading { display: flex; align-items: center; gap: 10px; }
.playlist-heading > span { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: #d67597; border-radius: 50%; font-size: .9rem; }
.playlist-heading p { margin: 0 0 1px; color: #bd718a; letter-spacing: .12em; font-size: .56rem; font-weight: 600; }
.playlist-heading h2 { margin: 0; color: #6b4055; font: 700 1.2rem/1 "Playfair Display", serif; }
.playlist-note { margin: 12px 0 8px; color: #936678; font: italic .78rem/1.45 "Playfair Display", serif; }
.song-list { border-top: 1px solid rgba(211, 125, 153, .2); }
.song { display: grid; grid-template-columns: 25px 1fr 16px; gap: 8px; align-items: center; padding: 10px 1px; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(211, 125, 153, .18); transition: padding .18s ease, color .18s ease; }
.song:last-child { border-bottom: 0; }
.song:hover { padding-inline: 5px; color: #b24e75; }
.number { color: #c9829b; font: .62rem "DM Sans", sans-serif; }
.song strong { display: block; font: 600 .82rem/1.2 "DM Sans", sans-serif; }
.song small { display: block; margin-top: 3px; color: #95697a; font-size: .66rem; }
.song b { color: #c45f83; font: 400 1rem/1 "DM Sans", sans-serif; }

.forgive {
  margin-top: 29px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: #fff;
  cursor: pointer;
  font: 500 .9rem "DM Sans", sans-serif;
  background: linear-gradient(120deg, #df789a, #c95f86);
  box-shadow: 0 8px 18px rgba(190, 76, 113, .26);
  transition: transform .2s ease, box-shadow .2s ease;
}
.forgive:hover { transform: translateY(-2px); box-shadow: 0 12px 23px rgba(190, 76, 113, .31); }
.forgive:active { transform: translateY(0); }
.forgive span { margin-left: 5px; font-size: 1.1rem; }
.reply { min-height: 20px; margin: 14px 0 0; color: #b05375; font: italic .92rem "Playfair Display", serif; }
.signature { margin: 20px 0 0; color: #93677a; font: italic .92rem "Playfair Display", serif; }

.doodle { position: absolute; z-index: -1; color: rgba(181, 82, 118, .42); font: 2.1rem "Playfair Display", serif; animation: drift 5s ease-in-out infinite alternate; }
.d1 { left: 11%; top: 18%; }.d2 { right: 12%; top: 22%; font-size: 1.4rem; animation-delay: -2s; }.d3 { right: 15%; bottom: 15%; font-size: 2.7rem; animation-delay: -1s; }.d4 { left: 15%; bottom: 19%; font-size: 1.3rem; animation-delay: -3s; }

@keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }
@keyframes drift { to { transform: translateY(-13px) rotate(8deg); } }
@media (max-width: 420px) { .scene { padding-inline: 14px; } .card { padding-top: 67px; border-radius: 25px; } .doodle { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
