:root {
  --petal: #F3DCDC;   /* фон — кустовая роза */
  --paper: #FBF6F1;   /* записки */
  --wine: #5A0F24;    /* текст */
  --stem: #23402F;    /* кнопки, «ядовитая» зелень */
  --lipstick: #B0123A;/* только помада */
  --pollen: #C9973A;  /* тонкие акценты, фокус */

  --serif: "Prata", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 50% -10%, #f8e7e6 0%, transparent 60%),
    var(--petal);
  color: var(--wine);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.stage {
  max-width: 30rem;
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem 3rem;
}

/* ---------- прогресс: ряд отпечатков ---------- */
.kisses {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: .25rem 0 1.5rem;
  padding: 0;
}
/* пустая лилия — бледный силуэт, раскрытая — розовая с крапинками */
.kiss .lily {
  width: 3.3rem;
  height: 3.3rem;
  margin: 0 -.45rem;   /* лепестки соседних лилий слегка заходят друг на друга */
  --lily-back: rgba(90, 15, 36, .10);
  --lily-petal: rgba(90, 15, 36, .14);
  --lily-vein: transparent;
  --lily-spot: transparent;
  --lily-stamen: transparent;
  --lily-pollen: transparent;
}
.kiss.is-done .lily {
  --lily-back: #E9A3B4;
  --lily-petal: #F4C4CF;
  --lily-vein: #C4305A;
  --lily-spot: var(--wine);
  --lily-stamen: var(--stem);
  --lily-pollen: var(--pollen);
}
.kiss:nth-child(even) .lily { transform: rotate(18deg); }

/* ---------- записка ---------- */
.note {
  position: relative;
  background: var(--paper);
  padding: 2.4rem 1.6rem 2rem;
  transform: rotate(-.6deg);
  box-shadow:
    0 1px 1px rgba(90, 15, 36, .08),
    0 14px 30px -12px rgba(90, 15, 36, .28);
}
.note::before {             /* полоска скотча */
  content: "";
  position: absolute;
  top: -.7rem;
  left: 50%;
  width: 6.5rem;
  height: 1.5rem;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(35, 64, 47, .22);
  backdrop-filter: blur(1px);
}
.note--final { transform: rotate(.5deg); }

.title {
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -.005em;
}
.label {
  margin: 0 0 .4rem;
  font-size: .95rem;
  opacity: .65;
}
.lead { margin: 0 0 1rem; }
.small-hint {
  margin: -.5rem 0 1.1rem;
  font-size: .85rem;
  opacity: .7;
}

.hand {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 1.5rem;
}
.hand.big { font-size: 1.85rem; }

/* ---------- поля ---------- */
.answer { margin-top: 1.25rem; }

.field {
  width: 100%;
  font: inherit;
  color: var(--wine);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(90, 15, 36, .35);
  border-radius: 0;
  padding: .55rem .1rem;
  margin-bottom: 1.25rem;
  appearance: none;
}
select.field {
  background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%),
                    linear-gradient(-45deg, transparent 50%, var(--wine) 50%);
  background-position: right .55rem center, right .2rem center;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
  padding-right: 1.4rem;
}
.field:focus { outline: none; border-bottom-color: var(--stem); }

.date-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem; }

.choices { display: grid; gap: .55rem; margin-bottom: 1.25rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(90, 15, 36, .18);
  cursor: pointer;
}
.choice input {
  accent-color: var(--lipstick);
  margin: .35rem 0 0;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
.choice:has(input:checked) {
  border-color: var(--lipstick);
  background: rgba(176, 18, 58, .05);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 1.05rem;
  color: var(--paper);
  background: var(--stem);
  border: 0;
  border-radius: 3px;
  padding: .8rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--call { background: var(--lipstick); }
.call { margin: .25rem 0 .9rem; }
.call__number {
  display: block;
  margin-top: .6rem;
  font-size: 1.5rem;
  color: var(--wine);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.call__number[hidden] { display: none; }

:focus-visible { outline: 2px solid var(--pollen); outline-offset: 3px; }

/* ---------- реакции ---------- */
.feedback { margin-top: 1.25rem; min-height: 1px; }
.reaction { margin: 0 0 .5rem; color: var(--lipstick); }
.hint { margin: 0; font-size: .95rem; opacity: .7; }
.count { margin: 0; font-size: .85rem; opacity: .55; }

.shake { animation: shake .35s ease; }
@keyframes shake {
  25% { transform: rotate(-.6deg) translateX(-6px); }
  60% { transform: rotate(-.6deg) translateX(5px); }
}

/* ---------- верный ответ ---------- */
.polaroid {
  margin: .5rem auto 1.4rem;
  padding: .6rem .6rem 2.4rem;
  background: #fff;
  width: 82%;
  transform: rotate(2deg);
  box-shadow: 0 8px 18px -8px rgba(90, 15, 36, .35);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%; }

.lips.stamp {
  display: block;
  width: 7.5rem;
  margin: -.5rem 0 1.5rem auto;
  fill: var(--lipstick);
  opacity: .95;
  transform: rotate(-9deg);
}

/* единственная анимация — штамп поцелуя */
.is-new.stamp { animation: stamp .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.kiss.is-new .lily { animation: bloom .6s .4s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes stamp {
  from { opacity: 0; transform: scale(1.8) rotate(-20deg); }
  to   { opacity: .95; transform: scale(1) rotate(-9deg); }
}
@keyframes bloom {
  from { opacity: 0; transform: scale(.3) rotate(-60deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* ---------- финал ---------- */
.invite {
  border-top: 1px solid rgba(90, 15, 36, .25);
  border-bottom: 1px solid rgba(90, 15, 36, .25);
  padding: 1.1rem 0;
  margin: 0 0 1.5rem;
}
.invite__place { font-size: 2rem; line-height: 1.15; margin: 0 0 .5rem; }
.invite__line { margin: 0; }

.pick { margin: 0 0 1.5rem; }
.pick .lead { margin-bottom: .4rem; }
.pick__form .field { margin-bottom: 1rem; min-width: 0; }
.pick__form .date-row { grid-template-columns: 1.5fr 1fr; }
.pick__when {
  font-size: 1.35rem;
  margin: 0 0 .3rem;
  color: var(--lipstick);
}
.pick__when::first-letter { text-transform: uppercase; }
.link {
  font: inherit;
  font-size: .9rem;
  color: var(--wine);
  opacity: .7;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.seal {
  width: 5rem;
  height: 5rem;
  margin: 0 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c42a50, var(--lipstick) 55%, #86102f);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .08), 0 6px 14px -6px rgba(90, 15, 36, .5);
}
.seal .lips { width: 3.1rem; fill: var(--paper); opacity: .9; }

.noscript { text-align: center; padding: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
