:root {
  --night: #12080b;
  --night-2: #231014;
  --rose: #c97b76;
  --gold: #e6c48a;
  --gold-deep: #b8894e;
  --cream: #f6efe4;
  --cream-dim: #e7d9c8;
  --ink: #2a1814;
  --muted: #e4d4c8;
  --thread: #9d2f33;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --sans: "Outfit", sans-serif;
  --display: "Fraunces", "Noto Serif Devanagari", serif;
  --text: "Noto Serif Devanagari", "Fraunces", serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(176, 72, 78, 0.28), transparent 58%),
    radial-gradient(800px 560px at 110% 0%, rgba(230, 196, 138, 0.14), transparent 52%),
    radial-gradient(700px 480px at 50% 120%, rgba(74, 22, 34, 0.55), transparent 50%),
    var(--night);
  text-rendering: optimizeLegibility;
}

body.locked {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

img { max-width: 100%; height: auto; }

button,
a { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(1040px, calc(100% - 28px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.kutti {
  margin: 0;
  font-family: var(--display);
  font-weight: 460;
  font-style: italic;
  font-size: clamp(4.4rem, 16vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--cream);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 80;
  margin: 0;
  padding: 1rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 12px;
}

.noscript a { color: var(--thread); }

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  background:
    radial-gradient(500px 320px at 50% 40%, rgba(230, 196, 138, 0.08), transparent 70%),
    var(--night);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.out { opacity: 0; visibility: hidden; }

#loader[hidden] { display: none; }

.loader-card { text-align: center; }

.orbit {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 1px solid rgba(230, 196, 138, 0.28);
  display: grid;
  place-items: center;
  position: relative;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

.orbit strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}

#load-status { margin: 0.35rem 0 0; color: var(--muted); }

.load-count {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: rgba(246, 239, 228, 0.55);
}

/* Gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b));
  background:
    radial-gradient(620px 380px at 50% 18%, rgba(201, 123, 118, 0.16), transparent 70%),
    rgba(18, 8, 11, 0.96);
  transition: opacity 1s ease, visibility 1s ease;
}

.gate[hidden] { display: none; }

.gate.leave {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-inner {
  width: min(640px, 100%);
  text-align: center;
}

.gate-line {
  margin: 1.1rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.35;
}

.gate-sub {
  margin: 0.7rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}

#start {
  margin-top: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1.15rem 0.7rem 0.7rem;
  border: 1px solid rgba(230, 196, 138, 0.45);
  border-radius: 999px;
  background: rgba(246, 239, 228, 0.04);
  color: var(--cream);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

#start:hover:not(:disabled),
#start:focus-visible {
  background: rgba(230, 196, 138, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

#start:disabled { cursor: progress; opacity: 0.7; }

.seal {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f0d7a8, #b8894e 62%, #7a4e28);
  color: #3a2414;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  box-shadow: inset 0 0 0 4px rgba(90, 40, 28, 0.18);
}

.start-copy { display: grid; }

.start-copy strong {
  font-family: var(--text);
  font-weight: 600;
  font-size: 1.12rem;
}

.start-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Story motion */
.hero .reveal,
.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.story.show .hero .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.2rem;
  padding: calc(4.2rem + var(--safe-t)) 0 calc(6.5rem + var(--safe-b));
}

.hero-copy {
  min-height: calc(100dvh - 6.4rem - var(--safe-t));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.watermark {
  display: none;
  position: absolute;
  margin: 0;
  right: -2vw;
  top: 6vh;
  font-family: var(--display);
  font-weight: 560;
  font-size: 22rem;
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 196, 138, 0.16);
  pointer-events: none;
  user-select: none;
}

.hero-line {
  margin: 1rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.3;
}

.lede {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.since {
  margin: 1.15rem 0 0;
  font-family: var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
}

.hero-frame {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
  min-height: 430px;
}

.hero-frame .back,
.hero-frame .front {
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.hero-frame .back {
  position: absolute;
  width: 74%;
  height: 78%;
  left: 0;
  top: 28px;
  object-position: center 18%;
  transform: rotate(-7.5deg);
  box-shadow: var(--shadow);
  filter: saturate(0.9);
}

.hero-frame figure { margin: 0; }

.hero-frame .front {
  position: relative;
  width: 80%;
  height: 430px;
  margin-left: auto;
  object-position: center 22%;
  transform: rotate(2.5deg);
  border: 7px solid #f3e7d8;
  box-shadow: var(--shadow);
}

.hero-frame figcaption {
  margin: 0.85rem 0 0;
  text-align: right;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.count {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.days,
.clock {
  padding: 1.3rem 1.2rem 1.15rem;
  border: 1px solid rgba(230, 196, 138, 0.2);
  border-radius: 22px;
  background: rgba(255, 247, 238, 0.03);
}

.days strong {
  display: block;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(4rem, 12vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.days span,
.clock-row span {
  color: var(--muted);
}

.clock-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.clock-row b {
  display: block;
  font-family: var(--display);
  font-weight: 520;
  font-size: clamp(2.2rem, 6vw, 3.3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.clock-row span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clock-row i {
  width: 5px;
  height: 5px;
  margin-top: 1rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 12px 0 var(--gold);
}

.letter-sec,
.memories { padding: 4.5rem 0 1rem; }

.sec-head { margin-bottom: 1.6rem; }

.sec-head h2 { max-width: 14ch; }

.hint {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.letter {
  position: relative;
  max-width: 740px;
  padding: 2rem 1.25rem 2rem 2.15rem;
  border-radius: 18px 28px 20px 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.7), transparent 28%),
    linear-gradient(135deg, #fbf6ee, #f0e2d0 70%, #ead6c2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.letter::before {
  content: "";
  position: absolute;
  left: 16px;
  top: -14px;
  bottom: -14px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(#c44a4a, var(--thread) 40%, #6e1d22);
}

.letter p { margin: 0 0 1rem; font-size: 1.08rem; }

.dear {
  margin-bottom: 0.8rem !important;
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem !important;
  line-height: 1;
}

.letter .sign {
  margin: 1.4rem 0 0;
  font-size: 1.15rem !important;
}

.letter .sign em,
.finale .sign em {
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.film-sec { padding: 3.5rem 0 1rem; }

.film {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 4vw 1.2rem;
  scrollbar-color: #6a5144 transparent;
}

.polaroid {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: center;
  padding: 0.7rem 0.7rem 0.9rem;
  border-radius: 8px;
  background: #f7f1e8;
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, -1.5deg));
}

.polaroid:nth-child(2n) { --tilt: 1.6deg; }
.polaroid:nth-child(3n) { --tilt: -0.6deg; }

.polaroid .shot,
.memory .shot,
.finale .shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #1a1012;
  cursor: zoom-in;
}

.polaroid img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

.polaroid p {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  margin: 0.75rem 0.15rem 0.15rem;
  font-size: 0.98rem;
}

.polaroid span,
.memory .cap span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.memory {
  margin: 0 0 2.4rem;
}

.memory figure,
.memory .cap { margin: 0.85rem auto 0; max-width: 460px; }

.memory figure { margin-top: 0; }

.memory.wide figure,
.memory.wide .cap { max-width: 920px; }

.memory .cap {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  color: var(--muted);
}

.memory img,
.finale img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #1a1012;
  box-shadow: var(--shadow);
}

.yt,
#yt {
  position: fixed !important;
  left: 0;
  bottom: 0;
  width: 200px !important;
  height: 112px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 0;
}

.chorus {
  padding: 3rem 0 1rem;
}

.chorus p {
  margin: 0 auto;
  max-width: 12ch;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 460;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.finale {
  padding: 2.5rem 0 calc(8.5rem + var(--safe-b));
}

.finale figure { margin: 0 auto 1.6rem; max-width: 520px; }

.finale h2 { margin-top: 0.2rem; }

.big-love {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.finale .sign {
  margin: 1.3rem 0 0;
  font-size: 1.2rem;
}

.song-note {
  margin: 1.5rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230, 196, 138, 0.8);
}

.up {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.up:hover { text-decoration: underline; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--thread), var(--gold));
}

.rail {
  display: none;
}


.music {
  position: fixed;
  z-index: 49;
  left: 50%;
  bottom: calc(14px + var(--safe-b));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 20px));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 196, 138, 0.28);
  background: rgba(24, 12, 14, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.music[hidden] { display: none; }

#toggle {
  width: 48px;
  height: 48px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite;
}

.bars i:nth-child(2) { animation-delay: 0.15s; }
.bars i:nth-child(3) { animation-delay: 0.28s; }
.bars i:nth-child(4) { animation-delay: 0.4s; }

.music:not(.is-on) .bars { display: none; }

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 3px;
}

.music.is-on .play-icon { display: none; }

.music-meta { min-width: 0; flex: 1; }

.music-meta strong,
.music-meta small { display: block; }

.music-meta strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
}

.music-meta small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#song-link {
  flex: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: calc(64px + var(--safe-t)) 8px calc(18px + var(--safe-b));
  background: rgba(8, 4, 5, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.lightbox img {
  max-height: min(78vh, 920px);
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin: 0.7rem 0 0;
  color: var(--cream);
}

.lb-close,
.lb-nav {
  border: 1px solid rgba(230, 196, 138, 0.35);
  background: rgba(246, 239, 228, 0.06);
  color: var(--cream);
  cursor: pointer;
  font: inherit;
}

.lb-close {
  position: absolute;
  top: calc(12px + var(--safe-t));
  right: 12px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.lb-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@media (min-width: 720px) {
  .count { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .letter { padding: 3rem 3rem 2.8rem 4rem; }
  .letter::before { left: 28px; }
  .polaroid img { height: 380px; }
  .finale figure { margin-bottom: 2rem; }
}

@media (min-width: 980px) {
  .hero {
    min-height: 100dvh;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding-top: calc(5rem + var(--safe-t));
    padding-bottom: calc(6rem + var(--safe-b));
  }

  .hero-copy { min-height: 0; display: block; }

  .watermark { display: block; }

  .hero-frame { margin-right: 0; min-height: 560px; }
  .hero-frame .front { height: 540px; }

  .memory {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }

  .memory figure,
  .memory .cap { margin: 0; max-width: none; }

  .memory.reverse figure { order: 2; }

  .memory.wide {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .memory .cap {
    font-size: 1.28rem;
    line-height: 1.6;
    max-width: 26rem;
  }

  .memory.wide .cap {
    max-width: 40rem;
    margin-top: 1rem;
    font-size: 1.15rem;
  }

  .film { padding-inline: max(4vw, calc((100% - 1040px) / 2)); }
  .polaroid { flex-basis: 320px; }
}

@media (min-width: 1100px) {
  .wrap { width: min(1000px, calc(100% - 190px)); }

  .rail {
    position: fixed;
    z-index: 26;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .rail a {
    color: rgba(246, 239, 228, 0.45);
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .rail a.active,
  .rail a:hover { color: var(--gold); }
}

@media (max-width: 380px) {
  .wrap { width: min(1040px, calc(100% - 18px)); }
  .hero-frame { min-height: 360px; }
  .hero-frame .front { height: 340px; }
  .orbit { width: 92px; height: 92px; }
  #start { width: 100%; }
}

/* Lock, hearts, quiz, camera */
.hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#page-hearts {
  position: fixed;
  z-index: 15;
}

.float-heart {
  position: absolute;
  bottom: -8vh;
  color: #e7a0a4;
  animation: rise linear infinite;
  text-shadow: 0 8px 18px rgba(157, 47, 51, 0.35);
}

.burst {
  position: fixed;
  z-index: 70;
  color: #f0b4b0;
  font-style: normal;
  pointer-events: none;
  animation: pop 0.9s ease-out forwards;
}

.lock {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: calc(18px + var(--safe-t)) 16px calc(18px + var(--safe-b));
  background:
    radial-gradient(620px 380px at 50% 12%, rgba(201, 123, 118, 0.2), transparent 70%),
    rgba(18, 8, 11, 0.97);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.lock[hidden] { display: none; }

.lock.leave {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px - var(--safe-t) - var(--safe-b));
  overflow-x: hidden;
  overflow-y: auto;
  text-align: center;
  padding: 1.2rem 1rem 1.4rem;
  border: 1px solid rgba(230, 196, 138, 0.22);
  border-radius: 28px;
  background: rgba(28, 12, 16, 0.72);
  box-shadow: var(--shadow);
}

.lock .kutti {
  font-size: clamp(3.4rem, 14vw, 6.2rem);
  line-height: 0.9;
}

.big-heart {
  font-size: 2.4rem;
  color: #e07a86;
  animation: beat 1.1s ease-in-out infinite;
}

.lock-lead {
  margin: 0.4rem auto 1rem;
  max-width: 26rem;
  color: var(--muted);
}

.lock fieldset {
  margin: 0 0 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(230, 196, 138, 0.2);
  border-radius: 16px;
}

.lock legend {
  padding: 0 0.4rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.date-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 0.55rem;
}

.lock select,
#love-code,
.option,
#check-dates,
#cam-yes,
#cam-no {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(230, 196, 138, 0.35);
  background: rgba(246, 239, 228, 0.05);
  color: var(--cream);
  font: inherit;
}

.lock select { width: 100%; padding: 0 0.7rem; }

.code-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#love-code {
  width: 100%;
  padding: 0 0.8rem;
  text-align: center;
  letter-spacing: 0.42em;
  font-family: var(--sans);
  font-size: 1.35rem;
}

#check-dates,
#open-heart,
#cam-yes {
  width: 100%;
  margin-top: 0.4rem;
  cursor: pointer;
}

#check-dates,
#cam-yes {
  background: linear-gradient(180deg, #f0d7a8, #c9a36a);
  color: #3a2414;
  font-weight: 600;
}

#open-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border: 1px solid rgba(230, 196, 138, 0.45);
  border-radius: 999px;
  background: rgba(246, 239, 228, 0.04);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
}

.options {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.option {
  width: 100%;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  text-align: left;
}

.option.good { border-color: #d7b07a; background: rgba(230, 196, 138, 0.18); }
.option.bad { border-color: #e07a86; background: rgba(224, 122, 134, 0.16); }

.q-hearts {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  color: rgba(246, 239, 228, 0.28);
  letter-spacing: 0.12em;
}

.q-hearts .on { color: #e07a86; }

.q-count {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

#q-text {
  margin: 0.35rem 0 0;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1.35;
}

.lock-msg {
  min-height: 1.4em;
  margin: 0.7rem 0;
  color: #f0c2b8;
}

.shake { animation: shake 0.45s ease; }

.verses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.verses li {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 2px solid rgba(224, 122, 134, 0.7);
  background: rgba(246, 239, 228, 0.03);
  border-radius: 0 16px 16px 0;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

.cam-sheet {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(18px + var(--safe-b));
  background: rgba(8, 4, 5, 0.72);
}

.cam-sheet[hidden] { display: none; }

.cam-card {
  width: min(520px, 100%);
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 24px;
  background: #1c0c10;
  border: 1px solid rgba(230, 196, 138, 0.28);
  box-shadow: var(--shadow);
}

.cam-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  line-height: 1.3;
}

.cam-card p { margin: 0 0 0.8rem; color: var(--muted); }

.cam-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #090506;
}

#cam-preview {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: cover;
  transform: scaleX(-1);
  background: #090506;
}

#cam-preview[hidden] { display: none; }

#cam-count {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #9d2f33;
  color: white;
  font-family: var(--sans);
}

#cam-count[hidden] { display: none; }

.cam-actions {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.55rem;
}

.cam-actions[hidden] { display: none; }

#cam-no.ghost {
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

@keyframes rise {
  from { transform: translateY(0) scale(0.8); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translateY(-110vh) scale(1.15); opacity: 0; }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.16); }
}

@keyframes pop {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.grow {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  background:
    radial-gradient(540px 380px at 50% 78%, rgba(201, 123, 118, 0.22), transparent 68%),
    radial-gradient(420px 280px at 50% 18%, rgba(125, 154, 106, 0.16), transparent 70%),
    #12080b;
}

.grow[hidden] { display: none; }

.grow-scene {
  width: min(460px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  padding: calc(22px + var(--safe-t)) 16px calc(22px + var(--safe-b));
  text-align: center;
}

.grow-scene[hidden] { display: none; }

.orchard {
  position: relative;
  width: min(360px, 92vw);
  height: min(68dvh, 560px);
}

.love-tree { width: 100%; height: 100%; overflow: visible; }

.soil {
  fill: rgba(184, 137, 78, 0.18);
  opacity: 0;
}

.grow.on .soil { animation: soil-in 0.8s ease forwards 0.4s; }

.draw {
  fill: none;
  stroke: #e6c48a;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}

.trunk { stroke: #d7b48a; stroke-width: 7; stroke-dasharray: 420; }

.grow.on .root { animation: draw 1.1s ease forwards 0.9s; }
.grow.on .root.d2 { animation-delay: 1.05s; }
.grow.on .root.d3 { animation-delay: 1.2s; }
.grow.on .trunk { animation: draw 1.8s ease forwards 1.15s; }
.grow.on .b1 { animation: draw 1s ease forwards 2.7s; }
.grow.on .b2 { animation: draw 1s ease forwards 2.9s; }
.grow.on .b3 { animation: draw 1s ease forwards 3.3s; }
.grow.on .b4 { animation: draw 1s ease forwards 3.5s; }
.grow.on .b5 { animation: draw 0.9s ease forwards 4s; }
.grow.on .b6 { animation: draw 0.9s ease forwards 4.15s; }

.leaves circle {
  fill: #7d9a6a;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.leaves circle:nth-child(3n) { fill: #c98488; }
.leaves circle:nth-child(4n) { fill: #e6c48a; }

.grow.on .leaves circle { animation: bloom 0.7s ease forwards; }
.grow.on .leaves circle:nth-child(1) { animation-delay: 3.5s; }
.grow.on .leaves circle:nth-child(2) { animation-delay: 3.7s; }
.grow.on .leaves circle:nth-child(3) { animation-delay: 3.85s; }
.grow.on .leaves circle:nth-child(4) { animation-delay: 4s; }
.grow.on .leaves circle:nth-child(5) { animation-delay: 4.2s; }
.grow.on .leaves circle:nth-child(6) { animation-delay: 4.35s; }
.grow.on .leaves circle:nth-child(7) { animation-delay: 4.5s; }
.grow.on .leaves circle:nth-child(8) { animation-delay: 4.7s; }
.grow.on .leaves circle:nth-child(9) { animation-delay: 4.9s; }
.grow.on .leaves circle:nth-child(10) { animation-delay: 5.05s; }
.grow.on .leaves circle:nth-child(11) { animation-delay: 5.2s; }
.grow.on .leaves circle:nth-child(12) { animation-delay: 5.35s; }

.blooms circle {
  fill: #e07a86;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.grow.on .blooms circle { animation: bloom 0.55s ease forwards; }
.grow.on .blooms circle:nth-child(1) { animation-delay: 5.4s; }
.grow.on .blooms circle:nth-child(2) { animation-delay: 5.55s; }
.grow.on .blooms circle:nth-child(3) { animation-delay: 5.7s; }
.grow.on .blooms circle:nth-child(4) { animation-delay: 5.85s; }
.grow.on .blooms circle:nth-child(5) { animation-delay: 6s; }
.grow.on .blooms circle:nth-child(6) { animation-delay: 6.15s; }

.seed {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 2;
  color: #e07a86;
  font-size: 4.2rem;
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 10px 16px rgba(157, 47, 51, 0.45));
}

.grow.on .seed { animation: seed-life 2.4s ease forwards 0.15s; }

.grow-caption {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  opacity: 0;
}

.grow.on .grow-caption { animation: soil-in 0.8s ease forwards 5.6s; }

button#grow-skip,
button#gift-more,
button#gift-next {
  appearance: none;
  min-height: 44px;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 196, 138, 0.4);
  background-color: rgba(246, 239, 228, 0.06);
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}

.gift-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
  padding: calc(18px + var(--safe-t)) 16px calc(18px + var(--safe-b));
  background: rgba(9, 5, 6, 0.94);
}

.gift-wrap[hidden] { display: none; }

#gift-video {
  width: min(920px, 100%);
  max-height: calc(100dvh - 150px);
  border-radius: 18px;
  background: #000;
}

.gift-count {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: 0.16em;
  color: var(--gold);
}

.gift-actions {
  display: flex;
  gap: 0.6rem;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes bloom {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes soil-in { to { opacity: 1; } }

@keyframes seed-life {
  0% { opacity: 0; transform: translateX(-50%) scale(0.15); }
  22% { opacity: 1; transform: translateX(-50%) scale(1.18); }
  48% { transform: translateX(-50%) scale(1); }
  100% { opacity: 0.9; transform: translateX(-50%) translateY(18px) scale(0.42); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit::before,
  .bars i,
  .float-heart,
  .big-heart,
  .burst,
  .seed,
  .draw,
  .leaves circle,
  .blooms circle,
  .soil,
  .grow-caption { animation: none; }
  .grow.on .draw { stroke-dashoffset: 0; }
  .grow.on .leaves circle,
  .grow.on .blooms circle,
  .grow.on .soil,
  .grow.on .grow-caption,
  .grow.on .seed { opacity: 1; }
  .hero .reveal,
  .reveal,
  .story.show .hero .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .polaroid { transform: none; }
  .hero-frame .back,
  .hero-frame .front { transform: none; }
}
