:root {
  --bg: #fff5f3;
  --bg-2: #ffe4e1;
  --ink: #3b1f26;
  --muted: #8a6870;
  --wine: #9b1b39;
  --wine-2: #c2264b;
  --rose: #f7b6c2;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(155, 27, 57, .14);
  --radius: 22px;
  --script: "Dancing Script", "Brush Script MT", cursive;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg) 60%) fixed;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- floating hearts ---------- */
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hearts span {
  position: absolute; bottom: -40px; opacity: 0;
  animation: float linear infinite;
  color: var(--rose);
  user-select: none;
}
@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .75; }
  100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; }
}

/* ---------- layout ---------- */
.center { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; z-index: 1; }
.screen { display: none; position: relative; z-index: 1; min-height: 100dvh; padding: 28px 16px 48px; }
.screen.is-active { display: block; animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.wrap { max-width: 460px; margin: 0 auto; }
.center-col { min-height: calc(100dvh - 76px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }

/* ---------- type ---------- */
.script { font-family: var(--script); color: var(--wine); font-weight: 700; margin: 0; line-height: 1.15; }
.script.big { font-size: clamp(30px, 8vw, 40px); }
h1.script { font-size: 32px; }
.lead { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 6px 0; }
.muted { color: var(--muted); margin: 4px 0 14px; }
.sign { font-size: 34px; margin-top: 10px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 800; font-size: 17px; letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.btn-yes { background: linear-gradient(135deg, var(--wine-2), var(--wine)); color: #fff; box-shadow: 0 8px 20px rgba(194, 38, 75, .35); }
.btn-no  { background: #fff; color: var(--muted); border: 2px solid #f0d5da; white-space: nowrap; }
.btn-ghost { background: #fff; color: var(--muted); border: 2px solid #f0d5da; }
.btn-block { width: 100%; }

/* Kaçan "Hayır" butonu */
.btn-no.fleeing {
  position: fixed; z-index: 50; margin: 0;
  transition: left .28s cubic-bezier(.3,1.4,.6,1), top .28s cubic-bezier(.3,1.4,.6,1);
}
.btn-ghost.fleeing {
  position: fixed; z-index: 50; margin: 0;
  max-width: calc(100vw - 24px);
  transition: left .28s cubic-bezier(.3,1.4,.6,1), top .28s cubic-bezier(.3,1.4,.6,1);
}
.no-placeholder { visibility: hidden; }

.choices { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; }
/* "Evet" butonu sabit boyutta kalır */
#btn-yes { min-width: 140px; }

/* ---------- login ---------- */
.login { width: 100%; max-width: 380px; text-align: center; }
.envelope { font-size: 56px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.input {
  width: 100%; padding: 15px 18px; margin: 6px 0 14px;
  border: 2px solid #f3d3da; border-radius: 14px; font-size: 17px; text-align: center;
  background: #fffafa; color: var(--ink); outline: none;
}
.input:focus { border-color: var(--wine-2); }
.error { color: var(--wine-2); font-weight: 700; margin: -4px 0 14px; }

/* ---------- photos ---------- */
.polaroid {
  width: min(340px, calc(100% - 12px));
  margin: 8px auto 22px; padding: 10px 10px 34px; background: #fff;
  box-shadow: 0 14px 32px rgba(59, 31, 38, .18); border-radius: 6px;
}
.polaroid img {
  width: 100%;
  height: auto; /* HTML width/height değerlerinin mobilde görseli uzatmasını engeller */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: #f4e3e6;
}
.tilt-l { transform: rotate(-2.5deg); }
.tilt-r { transform: rotate(2.5deg); }

/* ---------- letter ---------- */
.letter { font-family: var(--serif); font-size: 18px; line-height: 1.65; position: relative; }
.letter::before { content: "“"; position: absolute; top: -18px; left: 16px; font-size: 80px; color: var(--rose); font-family: var(--serif); line-height: 1; }
.letter p { margin: 0 0 14px; }
.letter p.last { font-style: italic; color: var(--wine); margin-bottom: 0; }
.ask { text-align: center; margin: 30px 0 10px; }

.big-emoji { font-size: 64px; margin-bottom: 6px; }

/* ---------- section choose ---------- */
.section-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-top: 18px; }
.section-card {
  position: relative; border: 0; cursor: pointer; border-radius: var(--radius);
  padding: 26px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: var(--shadow); transition: transform .15s;
}
.section-card:active { transform: scale(.97); }
.section-romantik { background: linear-gradient(160deg, #fff, #ffe1e7); color: var(--wine); }
.section-plus18   { background: linear-gradient(160deg, #3b0d18, #8e1230); color: #fff; }
.sc-emoji { font-size: 42px; }
.sc-title { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.sc-sub { font-size: 14px; opacity: .75; }
.sc-done { display: none; font-size: 13px; font-weight: 800; margin-top: 4px; }
.section-card.done { opacity: .55; }
.section-card.done .sc-done { display: block; }

/* ---------- quiz ---------- */
.quiz-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--wine); }
.progress { height: 6px; background: #f6d9df; border-radius: 99px; margin: 10px 0 18px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--wine-2), var(--wine)); transition: width .35s ease; }
.qcard { display: none; text-align: center; }
.qcard.is-active { display: block; animation: pop .45s cubic-bezier(.2, 1.3, .5, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.question { font-family: var(--serif); font-size: clamp(21px, 5.6vw, 26px); line-height: 1.35; margin: 6px 4px 4px; font-weight: 500; }

/* +18 tema */
.quiz-plus18 { color: #fff; }
.quiz-plus18::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, #6a0f26, #1e060c 70%); }
.quiz-plus18 .quiz-head { color: #ffb3c2; }
.quiz-plus18 .progress { background: rgba(255,255,255,.15); }
.quiz-plus18 .progress span { background: linear-gradient(90deg, #ff5c8a, #ff2d55); }
.quiz-plus18 .qcard { padding-top: 6vh; }
.quiz-plus18 .question { color: #fff; }
.quiz-plus18 .btn-ghost { background: transparent; color: #ffc9d4; border-color: rgba(255,201,212,.4); }
.spicy { font-size: 84px; margin: 10px 0 18px; animation: bob 2.6s ease-in-out infinite; }

/* ---------- final ---------- */
.collage { position: relative; width: 280px; height: 250px; margin-bottom: 18px; }
.collage img { position: absolute; width: 150px; aspect-ratio: 4/5; object-fit: cover; border: 7px solid #fff; border-bottom-width: 22px; border-radius: 4px; box-shadow: 0 12px 26px rgba(59,31,38,.22); }
.collage .c1 { left: 0; top: 30px; transform: rotate(-9deg); }
.collage .c3 { right: 0; top: 30px; transform: rotate(8deg); }
.collage .c2 { left: 65px; top: 0; z-index: 2; transform: rotate(-1deg); }

/* kalp patlaması */
.burst { position: fixed; z-index: 60; pointer-events: none; font-size: 24px; animation: burst 1.1s ease-out forwards; }
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.6); opacity: 1; }
  to   { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

@media (max-width: 480px) {
  .screen { padding: 20px 14px 40px; }
  .polaroid { width: min(300px, calc(100% - 16px)); }
  .tilt-l { transform: rotate(-1.5deg); }
  .tilt-r { transform: rotate(1.5deg); }
  .card { padding: 24px 20px; }
}
