@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,500;1,600&family=Dancing+Script:wght@600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --pink: #ff3d77;
  --orange: #ff7a45;
  --gold: #ffc93c;
  --plum: #4a1942;
  --plum-deep: #300f30;
  --cream: #fff6ed;
  --rose-deep: #c81e5f;
  --ink: #3a1730;
}

* { box-sizing: border-box; }

html {
  width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  position: relative;
  overflow-x: hidden !important;
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--pink) 0%, var(--orange) 45%, var(--gold) 100%);
  background-attachment: fixed;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 48px 16px !important;
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.petal {
  position: absolute;
  top: -10%;
  opacity: 0.8;
  animation: fall linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
@keyframes fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); }
  50%  { transform: translateY(55vh) translateX(30px) rotate(180deg); }
  100% { transform: translateY(115vh) translateX(-20px) rotate(360deg); }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 640px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.card {
  width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  background: var(--cream);
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(74, 25, 66, 0.45), 0 2px 0 rgba(255,255,255,0.6) inset;
  padding: 46px 40px 40px;
  position: relative;
  overflow: hidden;
}

.card::before, .card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,61,119,0.16), transparent 70%);
  border-radius: 50%;
}
.card::before { top: -50px; left: -50px; }
.card::after { bottom: -60px; right: -60px; background: radial-gradient(circle, rgba(255,201,60,0.22), transparent 70%); }

.eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  text-align: center;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.25;
  margin: 0 0 6px;
  background: linear-gradient(120deg, var(--rose-deep), var(--orange) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  text-align: center;
  font-size: 15px;
  color: #8a5a72;
  margin: 0 0 28px;
}

.poem-block {
  position: relative;
  background: linear-gradient(135deg, #fff, #fff0e4);
  border-radius: 18px;
  padding: 30px 26px;
  margin-bottom: 30px;
  box-shadow: 0 10px 26px rgba(200, 30, 95, 0.12);
}
.poem-mark {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  color: var(--gold);
  line-height: 0;
  position: absolute;
  top: 32px;
  left: 18px;
  opacity: 0.5;
}
.poem {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.9;
  text-align: center;
  color: var(--plum);
  margin: 0;
  padding: 0 8px;
}
.poem span { display: block; }
.signature-script {
  font-family: 'Dancing Script', cursive;
  text-align: right;
  margin-top: 12px;
  font-size: 22px;
  color: var(--rose-deep);
}

.reasons {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.reasons li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 12px;
  align-items: flex-start;
}
.reasons .heart {
  flex-shrink: 0;
  color: var(--pink);
  font-size: 16px;
  margin-top: 1px;
}

.gallery-label {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: var(--rose-deep);
  margin: 0 0 16px;
}
.gallery {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.polaroid {
  background: #fff;
  padding: 10px 10px 26px;
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(74,25,66,0.28);
  width: 132px;
}
.polaroid:nth-child(1) { transform: rotate(-6deg); }
.polaroid:nth-child(2) { transform: rotate(3deg); }
.polaroid:nth-child(3) { transform: rotate(-2deg); }
.polaroid:hover { transform: scale(1.06) rotate(0deg); transition: transform 0.25s ease; }
.polaroid .frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd7e0, #ffe6c2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid figcaption {
  font-family: 'Dancing Script', cursive;
  text-align: center;
  font-size: 14px;
  color: var(--plum);
  margin-top: 8px;
}

.ask {
  text-align: center;
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 6px;
}
.date-idea {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  background: linear-gradient(120deg, #ffe0ea, #fff2cf);
  color: var(--rose-deep);
  font-weight: 700;
}

.verdict {
  margin-top: 24px;
  text-align: center;
}

.buttons {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.approve {
  background: linear-gradient(120deg, var(--pink), var(--orange));
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 61, 119, 0.45);
  animation: pulse 2.4s ease-in-out infinite;
}
.approve:hover { transform: scale(1.07); box-shadow: 0 14px 30px rgba(255, 61, 119, 0.55); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 22px rgba(255, 61, 119, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(255, 122, 69, 0.6); }
}

.deny {
  background: #fff;
  color: var(--rose-deep);
  border: 2px solid #ffd2df;
  position: absolute;
}

.deny-caption {
  margin-top: 16px;
  min-height: 18px;
  font-size: 13px;
  font-style: italic;
  color: #8a5a72;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(48, 15, 48, 0.72);
  z-index: 50;
  padding: 20px;
}
.overlay.show { display: flex; }
.overlay-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 40px 34px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  animation: pop 0.4s ease;
}
@keyframes pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.overlay-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 30px;
  color: var(--rose-deep);
  margin: 0 0 14px;
}
.overlay-note {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--plum);
  margin: 0 0 22px;
}
.overlay-close {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  background: linear-gradient(120deg, var(--pink), var(--gold));
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .card { padding: 34px 22px 30px; border-radius: 22px; }
  .polaroid { width: 100px; }
}
