:root {
  --bg-rose: #fff4f8;
  --bg-lilac: #f5ecff;
  --bg-blush: #ffe1ec;
  --rose: #ff5f96;
  --rose-deep: #d63f74;
  --wine: #8c274f;
  --gold: #ffd98d;
  --text-main: #4a1831;
  --text-soft: rgba(74, 24, 49, 0.72);
  --glass: rgba(255, 255, 255, 0.46);
  --glass-border: rgba(255, 255, 255, 0.58);
  --shadow-soft: 0 30px 80px rgba(168, 73, 117, 0.16);
  --shadow-card: 0 18px 44px rgba(127, 43, 84, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-blush);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255, 219, 234, 0.95), transparent 30%),
    linear-gradient(145deg, var(--bg-rose), var(--bg-lilac) 46%, #fff8fb 70%, var(--bg-blush));
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  position: relative;
  isolation: isolate;
  background-color: var(--bg-blush);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255, 219, 234, 0.95), transparent 30%),
    linear-gradient(145deg, var(--bg-rose), var(--bg-lilac) 46%, #fff8fb 70%, var(--bg-blush));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: -40vh 0 -40vh 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255, 219, 234, 0.95), transparent 30%),
    linear-gradient(145deg, var(--bg-rose), var(--bg-lilac) 46%, #fff8fb 70%, var(--bg-blush));
}

button {
  font: inherit;
  touch-action: manipulation;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  width: 100%;
  overflow-x: clip;
  background: transparent;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: -40vh 0 -40vh 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255, 219, 234, 0.95), transparent 30%),
    linear-gradient(145deg, var(--bg-rose), var(--bg-lilac) 46%, #fff8fb 70%, var(--bg-blush));
}

.ambient,
.floating-emoji,
.heart-field,
.spark-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: clip;
}

.floating-emoji,
.heart-field {
  z-index: 1;
  opacity: 0;
  transition: opacity 260ms ease;
}

.spark-layer {
  z-index: 6;
}

.ambient {
  filter: blur(40px);
  opacity: 0.75;
  z-index: -4;
}

.ambient-one {
  inset: 8% auto auto 8%;
  width: 320px;
  height: 320px;
  background: rgba(255, 133, 182, 0.28);
  animation: drift 14s ease-in-out infinite;
}

.ambient-two {
  inset: auto 8% 14% auto;
  width: 340px;
  height: 340px;
  background: rgba(196, 151, 255, 0.2);
  animation: drift 16s ease-in-out infinite reverse;
}

.ambient-three {
  inset: 42% auto auto 52%;
  width: 240px;
  height: 240px;
  background: rgba(255, 215, 149, 0.22);
  animation: drift 18s ease-in-out infinite;
}

.layout {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.hero,
.actions,
.promo-section,
.final-note {
  position: relative;
  z-index: 2;
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero,
.final-note,
.promo-section {
  border-radius: var(--radius-xl);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -25% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 133, 182, 0.25), transparent 65%);
}

.eyebrow,
.section-label,
.site-footer {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(140, 39, 79, 0.72);
}

.hero-title,
.section-heading h2,
.final-note h2,
.secret-card h2,
#modalTitle {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
}

.hero-title {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(3.5rem, 10vw, 6.6rem);
  letter-spacing: -0.03em;
}

.hero-title span {
  display: inline-block;
  transform: translateY(-6px);
}

.hero-subtitle {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 3vw, 1.36rem);
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-typing {
  min-height: 2.2rem;
  margin: 22px 0 0;
  max-width: 620px;
  margin-inline: auto;
  font-size: 1rem;
  color: rgba(74, 24, 49, 0.82);
}

.hero-typing::after {
  content: "|";
  display: inline-block;
  margin-left: 3px;
  animation: blink 0.9s infinite;
}

.primary-button,
.secondary-button,
.action-card,
.modal-close {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  text-align: center;
}

.primary-button {
  margin-top: 28px;
  color: #fff9fb;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 18px 34px rgba(214, 63, 116, 0.32);
}

.secondary-button {
  margin-top: 18px;
  color: var(--wine);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(214, 63, 116, 0.14);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 20px;
  margin-top: 28px;
}

.hero-side {
  display: grid;
  gap: 20px;
}

.photo-card,
.love-meter-card,
.action-card,
.section-heading,
.final-note,
.promo-section {
  border-radius: var(--radius-lg);
}

.photo-card,
.love-meter-card,
.section-heading,
.action-card,
.final-note,
.promo-section {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.photo-card {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.photo-placeholder {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 0;
  text-align: center;
  border-radius: inherit;
  color: var(--text-soft);
  border: 0;
  background: transparent;
}

.photo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.08);
}

.photo-image.hidden,
.photo-empty.hidden {
  display: none;
}

.photo-empty {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.photo-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 700;
}

.meter-value {
  margin-top: 10px;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--rose-deep);
}

.meter-track {
  margin-top: 18px;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(214, 63, 116, 0.12);
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7ba7, #ffb6d2, #ffd98d);
  transition: width 180ms linear;
}

.actions {
  margin-top: 24px;
}

.section-heading h2,
.final-note h2,
#modalTitle,
.secret-card h2 {
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.section-heading p:last-child,
.final-note p,
.modal-message,
.secret-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  text-align: left;
  color: var(--text-main);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.action-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 72%);
}

.action-icon {
  font-size: 1.8rem;
}

.action-title {
  margin-top: 18px;
  font-size: 1.14rem;
  font-weight: 800;
}

.action-text {
  margin-top: 10px;
  max-width: 24ch;
  line-height: 1.5;
  color: var(--text-soft);
}

.secret-trigger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 231, 239, 0.56)),
    rgba(255, 255, 255, 0.44);
}

.final-note {
  margin-top: 24px;
}

.promo-section {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}

.promo-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 217, 141, 0.34), transparent 68%);
  pointer-events: none;
}

.promo-text,
.promo-hint {
  color: var(--text-soft);
  line-height: 1.7;
}

.promo-form {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.promo-input {
  flex: 1;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(214, 63, 116, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  outline: none;
  font-size: 1rem;
}

.promo-input:focus {
  border-color: rgba(214, 63, 116, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 95, 150, 0.12);
}

.promo-button {
  min-width: 190px;
}

.promo-hint {
  min-height: 28px;
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.final-note-button {
  margin-top: 24px;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 16px 32px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(140, 39, 79, 0.7);
}

.modal,
.secret-overlay,
.magic-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal.hidden,
.secret-overlay.hidden,
.magic-overlay.hidden {
  display: none;
}

.modal {
  display: block;
}

.modal-backdrop,
.secret-backdrop,
.magic-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(93, 27, 53, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.magic-overlay {
  pointer-events: none;
}

.magic-backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modal-card,
.secret-card,
.magic-card {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 28px));
  margin: min(10vh, 80px) auto 0;
}

.modal-card {
  padding: 28px;
  border-radius: 34px;
  color: #fff8fb;
  background:
    radial-gradient(circle at top, rgba(255, 228, 238, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(159, 43, 93, 0.92), rgba(218, 83, 131, 0.9), rgba(255, 200, 145, 0.82));
  box-shadow: 0 34px 80px rgba(104, 19, 52, 0.34);
  margin: min(10vh, 80px) auto 0;
  animation: rise 360ms ease;
}

.modal-message {
  min-height: 4.5rem;
  margin-top: 18px;
  font-size: clamp(1.02rem, 3vw, 1.22rem);
}

#modalLabel,
.modal-card .modal-message {
  color: rgba(255, 248, 251, 0.9);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--wine);
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 18px rgba(127, 43, 84, 0.14);
}

.secret-card {
  padding: 34px 30px;
  border-radius: 34px;
  color: #fff8fb;
  background:
    radial-gradient(circle at top, rgba(255, 228, 238, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(159, 43, 93, 0.92), rgba(218, 83, 131, 0.9), rgba(255, 200, 145, 0.82));
  box-shadow: 0 34px 80px rgba(104, 19, 52, 0.34);
  animation: rise 360ms ease;
}

.secret-card .section-label,
.secret-card p {
  color: rgba(255, 248, 251, 0.9);
}

.magic-card {
  pointer-events: auto;
  position: fixed;
  padding: 36px 32px;
  border-radius: 34px;
  color: #fffaf4;
  background:
    radial-gradient(circle at top, rgba(255, 245, 215, 0.26), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 192, 203, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(131, 35, 77, 0.96), rgba(214, 63, 116, 0.94), rgba(255, 193, 122, 0.88));
  box-shadow: 0 36px 90px rgba(90, 21, 52, 0.36);
  animation: rise 360ms ease;
}

.magic-card {
  width: min(560px, calc(100% - 28px));
  margin: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.magic-card .section-label,
.magic-card p {
  color: rgba(255, 248, 244, 0.92);
}

.page-shell.magic-mode .ambient-one,
.page-shell.magic-mode .ambient-two,
.page-shell.magic-mode .ambient-three {
  filter: blur(46px);
  opacity: 0.84;
}

.page-shell.magic-mode .floating-emoji,
.page-shell.magic-mode .heart-field {
  opacity: 1;
}

.heart,
.emoji,
.burst-heart,
.confetti,
.firework,
.gold-flare {
  position: fixed;
  z-index: 0;
  will-change: transform, opacity;
  user-select: none;
}

.heart {
  bottom: -40px;
  font-size: 18px;
  animation: floatUp linear forwards;
}

.emoji {
  top: 110%;
  animation: emojiDrift linear forwards;
  opacity: 0.7;
}

.burst-heart,
.confetti {
  z-index: 8;
  animation: burst 1200ms ease-out forwards;
}

.firework {
  z-index: 9;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), var(--fire-color, #ffd98d) 55%, transparent 72%);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.72),
    0 0 24px var(--fire-color, #ffd98d);
  animation: fireworkBurst 1400ms cubic-bezier(.2,.8,.2,1) forwards;
}

.gold-flare {
  z-index: 10;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 252, 227, 0.98) 0%, rgba(255, 232, 166, 0.86) 24%, rgba(255, 210, 112, 0.42) 48%, rgba(255, 210, 112, 0.12) 66%, transparent 78%);
  box-shadow:
    0 0 28px rgba(255, 230, 145, 0.95),
    0 0 70px rgba(255, 208, 97, 0.62),
    0 0 120px rgba(255, 196, 74, 0.34);
  mix-blend-mode: screen;
  animation: goldFlare 2200ms ease-out forwards;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -24px, 0) scale(1.08);
  }
}

@keyframes blink {
  0%,
  49%,
  100% {
    opacity: 1;
  }
  50%,
  99% {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 0, 0) scale(0.75);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift-x), -120vh, 0) scale(1.18);
    opacity: 0;
  }
}

@keyframes emojiDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(var(--drift-x), -132vh, 0) rotate(24deg);
    opacity: 0;
  }
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--move-x), var(--move-y), 0) rotate(var(--rotate)) scale(1.3);
  }
}

@keyframes fireworkBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.3);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--move-x), var(--move-y), 0) scale(1.45);
  }
}

@keyframes goldFlare {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.18);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(1.7);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .photo-placeholder {
    min-height: 220px;
  }

  .action-grid {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100% - 16px, 100%);
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .hero,
  .photo-card,
  .love-meter-card,
  .section-heading,
  .action-card,
  .promo-section,
  .final-note,
  .modal-card,
  .secret-card,
  .magic-card {
    border-radius: 24px;
  }

  .hero {
    padding: 20px;
  }

  .primary-button,
  .secondary-button,
  .action-card {
    min-height: 60px;
  }

  .action-card {
    min-height: 148px;
    padding: 18px;
  }

  .section-heading h2,
  .final-note h2,
  #modalTitle,
  .secret-card h2,
  .magic-card h2 {
    line-height: 1.02;
  }

  .modal-card,
  .secret-card,
  .magic-card {
    width: min(100% - 16px, 100%);
  }

  .hero-title {
    max-width: 11ch;
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero-subtitle {
    margin-top: 12px;
    font-size: 1rem;
  }

  .hero-typing {
    min-height: 3.4rem;
    margin-top: 18px;
    font-size: 0.97rem;
    line-height: 1.55;
  }

  .primary-button,
  .secondary-button,
  .final-note-button {
    width: 100%;
    padding-inline: 18px;
  }

  .hero-grid {
    gap: 14px;
    margin-top: 22px;
  }

  .photo-card,
  .love-meter-card,
  .section-heading,
  .action-card,
  .promo-section,
  .final-note {
    padding: 18px;
  }

  .photo-placeholder {
    min-height: 300px;
    padding: 16px;
    border-radius: 20px;
  }

  .photo-image {
    object-position: center 60%;
  }

  .photo-badge {
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  .meter-value {
    margin-top: 8px;
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .meter-track {
    margin-top: 14px;
    height: 14px;
  }

  .section-heading h2,
  .final-note h2,
  #modalTitle,
  .secret-card h2,
  .magic-card h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section-heading p:last-child,
  .final-note p,
  .modal-message,
  .secret-card p,
  .magic-card p,
  .promo-text,
  .promo-hint {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .action-grid {
    gap: 12px;
    margin-top: 14px;
  }

  .action-icon {
    font-size: 1.55rem;
  }

  .action-title {
    margin-top: 14px;
    font-size: 1.02rem;
  }

  .action-text {
    margin-top: 8px;
    max-width: none;
    font-size: 0.93rem;
  }

  .promo-form {
    flex-direction: column;
    gap: 10px;
  }

  .promo-input,
  .promo-button {
    width: 100%;
    min-width: 0;
  }

  .promo-input {
    min-height: 56px;
    padding-inline: 18px;
  }

  .modal,
  .secret-overlay,
  .magic-overlay {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-card {
    margin-top: 24px;
    margin-bottom: 0;
    padding: 22px 18px 20px;
    max-height: min(82dvh, 700px);
    overflow-y: auto;
  }

  .secret-card {
    margin-top: 24px;
    padding: 28px 20px 24px;
    max-height: min(86dvh, 760px);
    overflow-y: auto;
  }

  .magic-card {
    padding: 28px 20px 24px;
    max-height: min(80dvh, 720px);
    overflow-y: auto;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .site-footer {
    padding-inline: 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .layout {
    width: min(100% - 12px, 100%);
  }

  .hero {
    padding: 18px 16px;
  }

  .photo-card,
  .love-meter-card,
  .section-heading,
  .action-card,
  .promo-section,
  .final-note {
    padding: 16px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .hero-typing {
    min-height: 3.8rem;
    font-size: 0.93rem;
  }

  .photo-placeholder {
    min-height: 272px;
  }

  .action-card {
    min-height: 138px;
    padding: 16px;
  }

  .action-title {
    font-size: 0.98rem;
  }

  .action-text {
    font-size: 0.9rem;
  }

  .modal-card,
  .secret-card,
  .magic-card {
    width: min(100% - 12px, 100%);
  }

  .secret-card,
  .magic-card {
    padding-inline: 18px;
  }
}

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