@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --cream: #fff8f4;
  --paper: #fffdfb;
  --rose: #9d4058;
  --deep: #6e263d;
  --pink: #f3c8d1;
  --soft: #f8e3e6;
  --text: #3f2830;
  --muted: #866b73;
  --line: #ead7da;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, #f8e4e7 0, transparent 30%),
    radial-gradient(circle at 90% 90%, #f4d8dd 0, transparent 30%),
    var(--cream);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.card {
  width: min(560px, 100%);
  min-height: 680px;
  background: rgba(255,253,251,.88);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(110,38,61,.12);
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  color: var(--rose);
  margin-bottom: 18px;
}

h1, h2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.6rem, 10vw, 4.3rem);
  line-height: .98;
  margin: 0 0 18px;
}

.script {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--rose);
  font-size: 1.25rem;
}

.copy {
  max-width: 420px;
  margin: 18px auto;
  color: var(--muted);
  line-height: 1.7;
  font-size: .94rem;
}

button {
  font: inherit;
  cursor: pointer;
}

.primary {
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  padding: 13px 25px;
  background: var(--deep);
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(110,38,61,.18);
}

.primary:hover { transform: translateY(-1px); }

.progress {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 24px;
}

.dot {
  width: 18px;
  height: 3px;
  border-radius: 10px;
  background: var(--line);
  transition: .3s;
}

.dot.active {
  width: 32px;
  background: var(--rose);
}

.art {
  width: min(430px, 92%);
  aspect-ratio: 1.05 / 1;
  margin: 0 auto 22px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 15px 35px rgba(110,38,61,.12);
  background: var(--paper);
}

.art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.movie {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 8vw, 3.1rem);
  margin: 0 0 8px;
}

.note {
  color: var(--muted);
  line-height: 1.6;
  max-width: 410px;
  margin: auto;
}

.reveal {
  border-top: 1px dashed var(--line);
  margin-top: 18px;
  padding-top: 16px;
  color: var(--muted);
  line-height: 1.55;
  min-height: 50px;
}

.tap {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transition: .35s;
}

.hidden.show {
  opacity: 1;
  pointer-events: auto;
}

.final-box {
  width: 100%;
  padding: 34px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}

.final-question {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 9vw, 4rem);
  line-height: 1.02;
  margin: 16px auto;
  max-width: 500px;
}

.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 25px;
  background: white;
  color: var(--text);
  font-weight: 600;
}

.choice.yes {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}

.response {
  min-height: 55px;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.heart {
  position: fixed;
  font-size: 22px;
  pointer-events: none;
  animation: confetti 1.8s ease-out forwards;
  z-index: 1000;
}

@keyframes confetti {
  0% { transform: translate(0,0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(420deg); opacity: 0; }
}

.fade {
  animation: fade .45s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .app { padding: 10px; }
  .card { min-height: 650px; border-radius: 24px; padding: 28px 16px; }
  .choice { width: 100%; }
}

.rating { margin: 24px auto 8px; max-width: 420px; }
.rating-labels { display:flex; justify-content:space-between; color:var(--muted); font-size:.78rem; gap:10px; }
input[type=range] { width:100%; accent-color:var(--rose); cursor:pointer; }
.score { font-family:"Playfair Display",serif; font-size:2.4rem; color:var(--deep); margin:8px 0; }
.question-card { width:100%; max-width:480px; }
.form-status { min-height:40px; color:var(--muted); margin-top:18px; line-height:1.5; }
