:root {
  --wine: #7a102d;
  --wine-2: #a71943;
  --wine-dark: #430615;
  --rose: #f14f75;
  --rose-2: #ff7d9a;
  --blush: #fff1f4;
  --blush-2: #fff8f8;
  --ink: #571324;
  --muted: #956b75;
  --white: #fff;
  --line: rgba(125, 22, 48, .12);
  --shadow: 0 24px 70px rgba(85, 8, 30, .18);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #2e2938
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility
}

button,
select {
  font: inherit
}

button {
  border: 0;
  -webkit-tap-highlight-color: transparent
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 680px;
  margin: auto;
  overflow: hidden;
  background: var(--blush);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 30px 90px rgba(0, 0, 0, .25);
  isolation: isolate
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")
}

.music-toggle {
  position: absolute;
  top: max(15px, env(safe-area-inset-top));
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  display: grid;
  place-items: center;
  z-index: 50;
  cursor: pointer;
  transition: 0.3s
}

.music-toggle:hover {
  background: rgba(255, 255, 255, 0.25)
}

.music-toggle.paused {
  opacity: 0.6
}

.music-toggle.paused .music-icon {
  opacity: 0.6
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 78px 22px max(18px, env(safe-area-inset-bottom) + 12px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(26px) scale(.985);
  transition: opacity .5s ease, transform .65s cubic-bezier(.2, .8, .2, 1), visibility .5s;
  isolation: isolate;
  overflow: hidden
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 3
}

.screen:not(.active) {
  pointer-events: none
}

.screen-dark {
  color: #fff;
  background: linear-gradient(135deg, #1f0912, #290d18, #1f0912);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite
}

.screen-light {
  background: linear-gradient(135deg, #fdf5f7, #ffffff, #fdf5f7);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite
}

.screen-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.95
}

.screen-dark .screen-bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%)
}

.screen-light .screen-bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%)
}

.screen-2 .screen-bg {
  bottom: -115px
}

.progress-wrap {
  position: absolute;
  top: max(21px, env(safe-area-inset-top) + 10px);
  left: 42px;
  right: 42px;
  height: 28px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.progress-line {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .38);
  transform: translateY(-50%)
}

.progress-line i {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, .9);
  transition: width .45s ease
}

.progress-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: .3s
}

.progress-dot.active {
  background: #ff5b82;
  border-color: #ff5b82;
  box-shadow: 0 0 12px rgba(255, 91, 130, 0.6)
}

.progress-dot:not(.active) {
  background: transparent
}

.screen-light .progress-line {
  background: rgba(140, 58, 79, .13)
}

.screen-light .progress-line i {
  background: var(--rose)
}

.screen-light .progress-dot {
  border-color: rgba(132, 48, 70, .3);
  color: #9b5465
}

.screen-light .progress-dot.active {
  background: #e63956;
  border-color: #e63956;
  color: #fff;
  box-shadow: 0 0 10px rgba(230, 57, 86, .4)
}

.ambient-hearts {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden
}

.ambient-hearts span {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 2px 8px rgba(255, 105, 135, 0.4))
}

.ambient-hearts .shape-heart {
  color: #ff85a1
}

.ambient-hearts .shape-star {
  color: #ffb3c1;
  text-shadow: 0 0 5px #ffb3c1
}

.ambient-hearts span:nth-child(1) {
  left: 5%;
  font-size: 14px;
  animation-duration: 12s;
  animation-delay: 0s
}

.ambient-hearts span:nth-child(2) {
  left: 15%;
  font-size: 20px;
  animation-duration: 16s;
  animation-delay: 2s
}

.ambient-hearts span:nth-child(3) {
  left: 25%;
  font-size: 12px;
  animation-duration: 10s;
  animation-delay: 5s
}

.ambient-hearts span:nth-child(4) {
  left: 35%;
  font-size: 18px;
  animation-duration: 14s;
  animation-delay: 1s
}

.ambient-hearts span:nth-child(5) {
  left: 45%;
  font-size: 24px;
  animation-duration: 18s;
  animation-delay: 7s
}

.ambient-hearts span:nth-child(6) {
  left: 55%;
  font-size: 15px;
  animation-duration: 13s;
  animation-delay: 3s
}

.ambient-hearts span:nth-child(7) {
  left: 65%;
  font-size: 22px;
  animation-duration: 17s;
  animation-delay: 6s
}

.ambient-hearts span:nth-child(8) {
  left: 75%;
  font-size: 13px;
  animation-duration: 11s;
  animation-delay: 4s
}

.ambient-hearts span:nth-child(9) {
  left: 85%;
  font-size: 19px;
  animation-duration: 15s;
  animation-delay: 8s
}

.ambient-hearts span:nth-child(10) {
  left: 95%;
  font-size: 16px;
  animation-duration: 12s;
  animation-delay: 2.5s
}

.ambient-hearts span:nth-child(11) {
  left: 10%;
  font-size: 21px;
  animation-duration: 16s;
  animation-delay: 9s
}

.ambient-hearts span:nth-child(12) {
  left: 30%;
  font-size: 14px;
  animation-duration: 13s;
  animation-delay: 4.5s
}

.ambient-hearts span:nth-child(13) {
  left: 50%;
  font-size: 25px;
  animation-duration: 19s;
  animation-delay: 1.5s
}

.ambient-hearts span:nth-child(14) {
  left: 70%;
  font-size: 17px;
  animation-duration: 14s;
  animation-delay: 7.5s
}

.ambient-hearts span:nth-child(15) {
  left: 90%;
  font-size: 12px;
  animation-duration: 10s;
  animation-delay: 3.5s
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #a84860
}

.eyebrow.light {
  color: rgba(255, 255, 255, .82)
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -.04em
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(49px, 13.2vw, 64px);
  line-height: .83;
  text-align: center
}

h2 {
  margin-bottom: 11px;
  font-size: clamp(43px, 11.8vw, 58px);
  line-height: .86;
  text-align: center
}

h1 em,
h2 em {
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0
}

h1 .tiny-heart,
h2 .tiny-heart {
  font-family: inherit;
  font-size: .28em;
  vertical-align: top;
  color: #ff91aa
}

h1.script-title {
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: clamp(55px, 13.5vw, 70px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px
}

.script-title .outline-heart {
  font-family: -apple-system, sans-serif;
  font-size: 0.5em;
  font-weight: 300;
  color: #ff85a1;
  margin-left: 4px;
  vertical-align: super;
  text-shadow: none
}

.hero-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 400;
  margin-bottom: 0
}

.screen-1 p:not(.hero-subtitle) {
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  line-height: 1.75;
  text-align: center
}

.subtitle {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center
}

.hero-copy {
  position: absolute;
  top: 19%;
  left: 0;
  width: 100%;
  padding: 0 22px;
  z-index: 5;
  text-align: center
}

.dark-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .32
}

.orb-a {
  width: 250px;
  height: 250px;
  background: #ed5579;
  top: 15%;
  left: -100px
}

.orb-b {
  width: 220px;
  height: 220px;
  background: #ff9ab0;
  right: -100px;
  bottom: 13%
}

.primary-btn {
  position: relative;
  z-index: 12;
  width: min(100%, 336px);
  min-height: 57px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97b97, #e54162);
  border: none;
  box-shadow: 0 10px 25px rgba(229, 65, 98, 0.4);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s
}

.primary-btn:active {
  transform: scale(.975)
}

.primary-btn:hover {
  box-shadow: 0 12px 30px rgba(229, 65, 98, 0.5)
}

.light-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, #ff5c7c, #e63956);
  box-shadow: 0 10px 25px rgba(230, 57, 86, 0.3)
}

.locked-btn:disabled {
  opacity: .48;
  filter: saturate(.7);
  cursor: not-allowed;
  box-shadow: none
}

.screen-1 .primary-btn {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 44px);
  max-width: 336px;
  margin: 0
}

.screen-1 .primary-btn:active {
  transform: translateX(-50%) scale(.975)
}

.screen-content {
  position: relative;
  z-index: 5;
  width: min(100%, 350px);
  text-align: center
}

.screen-content.wide {
  width: min(100%, 370px)
}

.round-icon {
  width: 43px;
  height: 43px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ee5274;
  background: #fff;
  box-shadow: 0 10px 30px rgba(133, 36, 63, .12);
  font-size: 19px
}

.light-bloom,
.puzzle-bloom,
.reason-bloom {
  position: absolute;
  width: 360px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 115, 146, .15);
  filter: blur(55px);
  top: -80px
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 12px;
  margin: 0 0 25px
}

.date-row select {
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: none;
  border-radius: 12px;
  outline: none;
  color: #5a1023;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(220, 150, 165, .2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff91a7'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px
}

.date-status {
  min-height: 27px;
  color: #a35d6c;
  font-size: 9px;
  line-height: 1.45
}

.date-status.valid {
  color: #c72750;
  font-weight: 700
}

.date-status.invalid {
  color: #b5264a;
  animation: shake .28s
}

.cake-scene {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  width: 310px;
  height: 160px;
  transform: translateX(-50%);
  pointer-events: none
}

.cake-glow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 230px;
  height: 100px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 89, 126, .18);
  filter: blur(30px)
}

.cake {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200px;
  height: 145px;
  transform: translateX(-50%)
}

.cake-top {
  position: absolute;
  left: 13px;
  bottom: 70px;
  width: 174px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(#ffb7c5, #ff6d8e);
  box-shadow: 0 7px 18px rgba(216, 57, 91, .18)
}

.cake-top span {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px
}

.cake-body {
  position: absolute;
  left: 17px;
  bottom: 27px;
  width: 166px;
  height: 56px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(90deg, #ff91a7, #ff5f80, #ff9caf);
  box-shadow: 0 13px 25px rgba(185, 39, 72, .2)
}

.cake-body i {
  display: inline-block;
  width: 24px;
  height: 8px;
  margin: 20px 4px 0;
  border-radius: 999px;
  background: rgba(255, 236, 241, .65)
}

.cake-base {
  position: absolute;
  left: 5px;
  bottom: 14px;
  width: 190px;
  height: 18px;
  border-radius: 50%;
  background: #fff0f2;
  box-shadow: 0 7px 10px rgba(128, 25, 49, .15)
}

.candle {
  position: absolute;
  left: 55px;
  bottom: 105px;
  width: 7px;
  height: 32px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffd6df, #ff6f8d);
  z-index: 2
}

.candle.c2 {
  left: 97px;
  height: 39px
}

.candle.c3 {
  left: 139px;
  height: 30px
}

.candle b {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 7px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50%;
  background: #ffc857;
  box-shadow: 0 0 10px #ffbf4b
}

.cake-petals {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  text-align: center;
  color: #e74c70;
  font-size: 17px
}

.puzzle-content {
  transform: translateY(-1px)
}

.puzzle-wrap {
  position: relative;
  width: min(100%, 306px);
  aspect-ratio: 1;
  border-radius: 25px;
  padding: 8px;
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 42px rgba(118, 30, 56, .17);
  margin: 7px auto 9px
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #6e122c
}

.puzzle-tile {
  position: relative;
  border-radius: 2px;
  background-image: url("images/story/WhatsApp%20Image%202026-09-04%20at%2010.36.17%20PM.jpeg");
  background-size: 300% 300%;
  cursor: grab;
  touch-action: none;
  transition: transform .2s, filter .2s, box-shadow .2s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13)
}

.puzzle-tile:active {
  cursor: grabbing;
  filter: brightness(1.12);
  transform: scale(.98)
}

.puzzle-tile.empty {
  background-image: none !important;
  background: linear-gradient(145deg, #fff0f3, #f9d8df);
  box-shadow: inset 0 0 20px rgba(100, 12, 35, .08);
  cursor: default
}

.puzzle-tile.dragging {
  opacity: .8;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
  z-index: 10
}

.puzzle-tile.drag-over {
  border: 2px dashed #ff91aa;
  filter: brightness(1.1)
}

.puzzle-complete {
  position: absolute;
  inset: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(101, 11, 40, .82);
  backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: scale(.95);
  transition: .45s
}

.puzzle-complete.show {
  opacity: 1;
  transform: scale(1)
}

.puzzle-complete span {
  font-size: 34px;
  color: #ff91aa
}

.puzzle-complete strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 29px;
  margin-top: 3px
}

.puzzle-complete small {
  margin-top: 3px;
  color: #ffd9e2;
  font-size: 10px
}

.puzzle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 306px);
  color: #9c5b6b;
  font-size: 9px
}

.puzzle-meta button {
  padding: 7px 10px;
  border-radius: 999px;
  color: #9b3e59;
  background: #fff;
  border: 1px solid rgba(156, 62, 89, .1);
  box-shadow: 0 5px 14px rgba(110, 24, 48, .06);
  font-size: 9px;
  font-weight: 700
}

.puzzle-hint {
  margin-top: 6px;
  color: #b37a87;
  font-size: 8px
}

.flipbook {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.55;
  margin: 10px auto 20px;
  perspective: 1500px
}

.book-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 15px 35px rgba(118, 30, 56, 0.15);
  border-radius: 20px;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s, visibility 0.8s;
  visibility: hidden;
  opacity: 0;
  transform: rotateY(0deg);
  overflow: hidden
}

.book-page.active {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0deg)
}

.book-page.flipped {
  transform: rotateY(-90deg);
  opacity: 0;
  visibility: hidden
}

.page-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 15px;
  justify-content: center
}

.story-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-height: 48%
}

.story-pair.layout-a {
  flex-direction: row
}

.story-pair.layout-b {
  flex-direction: row-reverse
}

.story-photo {
  flex: 1.2;
  height: 100%;
  background: #8f1838;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6)
}

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

.story-quote {
  flex: 1;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  color: #5a1023;
  line-height: 1.35;
  font-style: italic;
  padding: 5px
}

.page-number {
  position: absolute;
  bottom: 8px;
  right: 15px;
  font-size: 9px;
  color: #b37a87;
  font-weight: 700
}

.book-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #9a2747;
  box-shadow: 0 8px 25px rgba(80, 10, 30, 0.15);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  border: none;
  transition: transform 0.2s, opacity 0.2s
}

.book-nav:active {
  transform: translateY(-50%) scale(0.9)
}

.book-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed
}

.book-nav.prev-page {
  left: -15px
}

.book-nav.next-page {
  right: -15px
}

.reason-bloom {
  top: -110px
}

.reasons-content {
  transform: translateY(1px)
}

.reason-list {
  display: grid;
  gap: 10px;
  margin: 15px 0 15px
}

.reason-card {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  min-height: 65px;
  padding: 10px 15px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(220, 150, 165, .15);
  animation: cardIn .5s both
}

.reason-card:nth-child(2) {
  animation-delay: .05s
}

.reason-card:nth-child(3) {
  animation-delay: .1s
}

.reason-card:nth-child(4) {
  animation-delay: .15s
}

.reason-card:nth-child(5) {
  animation-delay: .2s
}

.reason-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff5f7;
  color: #ed4c72;
  font-size: 22px
}

.reason-card strong {
  display: block;
  margin-bottom: 2px;
  color: #5a1023;
  font-size: 11px;
  font-weight: 700
}

.reason-card p {
  margin: 0;
  color: #9b6a78;
  font-size: 9px;
  line-height: 1.25
}

.reasons-content .primary-btn {
  margin-top: 10px
}

.final-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(241, 80, 118, .2);
  filter: blur(65px)
}

.string-lights {
  position: absolute;
  top: 104px;
  left: 38px;
  right: 38px;
  display: flex;
  justify-content: space-between;
  color: #ff91a9;
  font-size: 16px
}

.string-lights:before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 8px;
  border-top: 1px solid rgba(255, 179, 194, .25)
}

.string-lights span {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 13px rgba(255, 102, 140, .9);
  animation: lightPulse 1.8s infinite
}

.string-lights span:nth-child(2) {
  animation-delay: .3s
}

.string-lights span:nth-child(3) {
  animation-delay: .6s
}

.string-lights span:nth-child(4) {
  animation-delay: .9s
}

.string-lights span:nth-child(5) {
  animation-delay: 1.2s
}

.string-lights span:nth-child(6) {
  animation-delay: 1.5s
}

.final-content {
  position: relative;
  z-index: 5;
  width: min(100%, 350px);
  text-align: center;
  transform: translateY(1px)
}

.screen-6 h2 {
  font-size: clamp(43px, 11.7vw, 57px);
  margin-bottom: 15px
}

.quote-card {
  position: relative;
  width: 100%;
  padding: 27px 22px 25px;
  border: 1px solid rgba(255, 190, 205, .25);
  border-radius: 23px;
  background: rgba(78, 4, 22, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(28, 0, 8, .15);
  backdrop-filter: blur(8px)
}

.quote-card p {
  margin: 0;
  color: #fff5f7;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.18
}

.quote-mark {
  position: absolute;
  left: 17px;
  top: 7px;
  color: #ff89a3;
  font-family: Georgia, serif;
  font-size: 43px;
  line-height: 1
}

.quote-mark.close {
  left: auto;
  right: 17px;
  top: auto;
  bottom: -9px
}

.birthday-message {
  margin: 20px 0 10px;
  color: #fff1f4;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.17
}

.signature {
  font-family: "Great Vibes", cursive;
  color: #fff;
  font-size: 36px;
  line-height: .85;
  text-shadow: 0 5px 20px rgba(0, 0, 0, .2)
}

.signature span {
  font-size: 27px
}

.final-btn {
  margin-top: 20px
}

.final-roses {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: space-around;
  padding: 0 35px;
  font-size: 43px;
  filter: drop-shadow(0 8px 8px rgba(20, 0, 6, .4))
}

.final-roses span:nth-child(2) {
  transform: translateY(11px) scale(.85)
}

.celebration-heart {
  position: fixed;
  z-index: 100;
  font-size: 18px;
  color: #ff7f9c;
  pointer-events: none;
  animation: burst 2.1s cubic-bezier(.16, .8, .3, 1) forwards
}

@keyframes heartbeat {

  0%,
  100% {
    transform: translateX(-50%) rotate(-45deg) scale(1)
  }

  50% {
    transform: translateX(-50%) rotate(-45deg) scale(1.06)
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: .3;
    transform: scale(.8) rotate(0)
  }

  50% {
    opacity: 1;
    transform: scale(1.25) rotate(18deg)
  }
}

@keyframes float {
  0% {
    transform: translateY(18px) scale(.8);
    opacity: 0
  }

  15% {
    opacity: .24
  }

  85% {
    opacity: .24
  }

  100% {
    transform: translateY(-55px) scale(1.1);
    opacity: 0
  }
}

@keyframes shine {

  0%,
  65% {
    transform: translateX(-110%)
  }

  85%,
  100% {
    transform: translateX(110%)
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes shake {
  25% {
    transform: translateX(-5px)
  }

  75% {
    transform: translateX(5px)
  }
}

@keyframes lightPulse {

  0%,
  100% {
    opacity: .45
  }

  50% {
    opacity: 1
  }
}

@keyframes burst {
  0% {
    transform: translate(0, 0) scale(.4) rotate(0);
    opacity: 1
  }

  100% {
    transform: translate(var(--x), var(--y)) scale(1.3) rotate(var(--r));
    opacity: 0
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(.8) rotate(0);
    opacity: 0
  }

  10% {
    opacity: .7
  }

  90% {
    opacity: .7
  }

  100% {
    transform: translateY(-110vh) scale(1.2) rotate(180deg);
    opacity: 0
  }
}

@media(max-height:740px) {
  .screen {
    padding-top: 70px
  }

  .hero-copy {
    transform: translateY(-5vh)
  }

  .hero-heart {
    bottom: 82px;
    transform: translateX(-50%) scale(.85)
  }

  .hero-roses {
    bottom: 33px;
    font-size: 34px
  }

  .screen-content.wide {
    transform: scale(.9);
    transform-origin: center
  }

  .puzzle-content,
  .reasons-content {
    transform: scale(.9);
    transform-origin: center
  }

  .cake-scene {
    bottom: 8px;
    transform: translateX(-50%) scale(.82)
  }

  .final-content {
    transform: scale(.9);
    transform-origin: center
  }

  .string-lights {
    top: 86px
  }
}

@media(min-width:431px) {
  .app-shell {
    border-radius: 0
  }
}

.cover-page {
  background: #6a0d24;
  padding: 0;
  border-radius: 20px
}

.cover-photo {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9
}

.cover-title {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: 42px;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none
}

.zoomable {
  cursor: zoom-in;
  transition: transform 0.3s
}

.zoomable:hover {
  transform: scale(1.05)
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px
}

.lightbox.show {
  opacity: 1;
  visibility: visible
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: zoom-out
}

.lightbox.show img {
  transform: scale(1)
}
.reason-modal-content{background:#fff;border-radius:24px;padding:30px;width:90%;max-width:400px;text-align:center;box-shadow:0 15px 35px rgba(0,0,0,0.2);transform:translateY(20px);opacity:0;transition:0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);}.lightbox.show .reason-modal-content{transform:translateY(0);opacity:1;}.reason-modal-icon{font-size:40px;color:#ff4b72;margin-bottom:15px;}.reason-modal-content h3{color:#5a1829;margin-bottom:15px;font-family:"Playfair Display",serif;}.reason-modal-content p{color:#666;line-height:1.6;margin-bottom:25px;}.reason-card{cursor:pointer;}
