:root {
  --ink: #22161f;
  --paper: #fff9f2;
  --rose: #b93158;
  --berry: #6f183f;
  --gold: #d8a63f;
  --mint: #1f7a68;
  --night: #141722;
  --ivory: #fffdf8;
  --shadow: 0 22px 70px rgba(28, 18, 27, 0.24);
  --soft-shadow: 0 16px 42px rgba(79, 25, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 166, 63, 0.16), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(31, 122, 104, 0.12), transparent 26%),
    var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

main {
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#sparkles {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 20;
}

.hero {
  min-height: 94vh;
  position: relative;
  overflow: hidden;
  color: white;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 96px;
}

.hero__image,
.hero__shade {
  inset: 0;
  position: absolute;
}

.hero picture {
  inset: 0;
  position: absolute;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  background:
    radial-gradient(circle at 78% 74%, rgba(216, 166, 63, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(12, 12, 18, 0.84) 0%, rgba(20, 12, 25, 0.6) 42%, rgba(20, 12, 25, 0.1) 100%),
    linear-gradient(0deg, rgba(20, 14, 18, 0.62), transparent 38%);
}

.hero__glow {
  background:
    radial-gradient(circle at 30% 42%, rgba(255, 232, 178, 0.2), transparent 24%),
    linear-gradient(180deg, transparent 72%, rgba(255, 249, 242, 0.98) 100%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  left: 0;
  padding: 22px clamp(20px, 5vw, 72px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.topbar__links {
  display: flex;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 6px;
  background: rgba(20, 12, 18, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.topbar__links a {
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 13px;
  transition: background 180ms ease, color 180ms ease;
}

.topbar__links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.hero__content {
  max-width: 760px;
  position: relative;
  transform: translateY(-28px);
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.hero-greeting {
  color: #f5cf78;
  font-family: "Great Vibes", cursive;
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: min(100%, 720px);
  min-height: 1.12em;
  overflow-wrap: normal;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  text-transform: none;
  white-space: normal;
  word-break: normal;
}

.hero-greeting::after {
  animation: greetingBlink 900ms infinite;
  color: white;
  content: "|";
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.42em;
  margin-left: 4px;
  vertical-align: 0.08em;
}

.hero-greeting.is-complete::after {
  display: none;
}

@keyframes greetingBlink {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

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

h1 {
  color: #f5cf78;
  font-family: "Great Vibes", cursive;
  font-size: 126px;
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 22px;
  min-height: 1.1em;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

h1::after {
  animation: greetingBlink 900ms infinite;
  color: white;
  content: "|";
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.28em;
  margin-left: 5px;
  vertical-align: 0.14em;
}

h1.is-complete::after {
  display: none;
}

h1.is-waiting::after {
  display: none;
}

h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.96;
  margin-bottom: 22px;
  text-wrap: balance;
}

h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.hero__text,
.section p,
.gift-message p,
.modal p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero__text {
  color: rgba(255, 255, 255, 0.86);
  max-width: 590px;
}

.hero__actions {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.hero__hint {
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.hero__hint span {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  display: inline-block;
  height: 34px;
  position: relative;
  width: 20px;
}

.hero__hint span::after {
  animation: scrollHint 1.5s infinite;
  background: white;
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 7px;
  position: absolute;
  top: 7px;
  width: 4px;
}

.hero__hint p {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

@keyframes scrollHint {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

.primary-btn,
.ghost-btn,
.icon-btn,
.arrow-btn,
.modal__close {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
  background: var(--gold);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(216, 166, 63, 0.38);
  color: #21140f;
  font-weight: 800;
  min-height: 52px;
  padding: 0 24px;
}

.ghost-btn {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(111, 24, 63, 0.18);
  border-radius: 8px;
  color: var(--berry);
  font-weight: 800;
  min-height: 52px;
  padding: 0 20px;
}

.icon-btn,
.arrow-btn,
.modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  display: inline-flex;
  justify-content: center;
}

.icon-btn {
  border-radius: 8px;
  font-size: 24px;
  height: 52px;
  width: 52px;
}

.primary-btn:hover,
.icon-btn:hover,
.arrow-btn:hover {
  transform: translateY(-2px);
}

.section,
.gift-section {
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
}

.section__inner {
  margin: 0 auto;
  max-width: 1180px;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(30px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
}

.intro-band {
  background: #fbefe2;
}

.gift-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(185, 49, 88, 0.12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(216, 166, 63, 0.2), transparent 24%),
    linear-gradient(135deg, #fff7ef 0%, #f5eee2 52%, #e9f4ef 100%);
}

.gift-wrap {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(360px, 640px) minmax(280px, 620px);
  justify-content: center;
}

.gift-box {
  background: transparent;
  border: 0;
  grid-column: 1;
  grid-row: 1;
  height: clamp(210px, 25vw, 260px);
  position: relative;
  width: clamp(210px, 28vw, 340px);
}

.gift-box-stage {
  align-items: center;
  display: grid;
  gap: clamp(8px, 2vw, 24px);
  grid-template-columns: minmax(190px, 340px) minmax(108px, 240px);
  justify-content: center;
  justify-items: start;
  position: relative;
  width: min(100%, 640px);
}

.gift-pointer {
  align-items: center;
  color: var(--berry);
  display: flex;
  font-family: "Great Vibes", cursive;
  font-size: clamp(25px, 4vw, 58px);
  gap: clamp(6px, 1.4vw, 12px);
  justify-content: flex-start;
  grid-column: 2;
  grid-row: 1;
  line-height: 1;
  max-width: clamp(108px, 22vw, 240px);
  min-width: 0;
  position: relative;
  transform: rotate(-4deg);
  z-index: 5;
}

.gift-pointer span {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  text-shadow: 0 12px 26px rgba(111, 24, 63, 0.16);
  text-wrap: balance;
  white-space: normal;
  word-break: normal;
}

.gift-pointer svg {
  display: block;
  flex: 0 0 auto;
  height: clamp(50px, 8vw, 86px);
  order: -1;
  overflow: visible;
  width: clamp(70px, 13vw, 170px);
  animation: pointGift 1.2s infinite ease-in-out;
}

.gift-pointer path {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  filter: drop-shadow(0 8px 10px rgba(111, 24, 63, 0.18));
}

.gift-pointer.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) rotate(-3deg);
  transition: opacity 220ms ease, transform 220ms ease;
}

@keyframes pointGift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8px, 8px);
  }
}

.gift-box span {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.gift-box__body {
  background: linear-gradient(135deg, var(--berry), var(--rose));
  border-radius: 8px;
  bottom: 8.5%;
  box-shadow: var(--shadow);
  height: 60%;
  width: 76.5%;
}

.gift-box__body::before,
.gift-box__lid::before {
  background: rgba(255, 255, 255, 0.32);
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 17.5%;
}

.gift-box__lid {
  background: linear-gradient(135deg, #e2b24f, #f1d27c);
  border-radius: 8px;
  bottom: 64.5%;
  height: 22.5%;
  transform-origin: left bottom;
  width: 86.5%;
  z-index: 2;
}

.gift-box__bow {
  background: var(--mint);
  border-radius: 50% 50% 8px 8px;
  bottom: 84.5%;
  height: 20.5%;
  width: 33%;
  z-index: 3;
}

.gift-box.is-open .gift-box__lid {
  transform: translateX(-50%) rotate(-12deg) translateY(-34px);
}

.gift-box.is-open .gift-box__bow {
  transform: translateX(-50%) translateY(-42px) scale(0.92);
}

.gift-message {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(216, 166, 63, 0.22);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  opacity: 0;
  padding: clamp(22px, 5vw, 42px);
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.gift-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.script {
  color: var(--rose);
  font-family: "Great Vibes", cursive;
  font-size: clamp(58px, 8vw, 110px) !important;
  line-height: 0.94 !important;
  margin-bottom: 20px;
}

.section-head {
  margin-bottom: 36px;
  max-width: 780px;
}

.reason-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reason-card {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  min-height: 138px;
  padding: 0;
  perspective: 900px;
  position: relative;
  text-align: left;
}

.reason-card::before {
  content: "";
  display: block;
  min-height: 138px;
}

.reason-card__front,
.reason-card__back {
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: space-between;
  min-height: 138px;
  padding: 18px;
  position: absolute;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease;
  transform-style: preserve-3d;
  visibility: hidden;
}

.reason-card__front {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 224, 161, 0.34), transparent 30%),
    radial-gradient(circle at 16% 92%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #7f1039, #c92e5a 52%, #681535);
  border: 1px solid rgba(255, 226, 172, 0.34);
  color: white;
  overflow: hidden;
  visibility: visible;
}

.reason-card__front::before,
.reason-card__front::after {
  content: "";
  position: absolute;
}

.reason-card__front::before {
  border: 1px solid rgba(255, 242, 213, 0.28);
  border-radius: 8px;
  inset: 10px;
}

.reason-card__front::after {
  background:
    linear-gradient(135deg, transparent 49%, rgba(255, 242, 213, 0.22) 50%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(255, 242, 213, 0.12) 50%, transparent 51%);
  inset: 0;
}

.reason-card__ribbon {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 38% 62%, rgba(91, 19, 48, 0.18)),
    linear-gradient(135deg, #d8a63f, #ffe092 52%, #bd7f24);
  box-shadow: 0 4px 14px rgba(64, 17, 40, 0.18);
  position: absolute;
  z-index: 1;
}

.reason-card__ribbon--v {
  bottom: 0;
  left: 28px;
  top: 0;
  width: 18px;
}

.reason-card__ribbon--h {
  height: 18px;
  left: 0;
  right: 0;
  top: 48px;
}

.reason-card__bow {
  height: 48px;
  left: 14px;
  position: absolute;
  top: 32px;
  width: 46px;
  z-index: 3;
}

.reason-card__bow span {
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.44), transparent 20%),
    linear-gradient(135deg, #ffe092, #d8a63f 58%, #a96c1e);
  box-shadow: 0 8px 18px rgba(64, 17, 40, 0.2);
  display: block !important;
  height: 30px;
  margin: 0 !important;
  position: absolute;
  top: 8px;
  width: 28px;
}

.reason-card__bow span:first-child {
  border-radius: 90% 45% 65% 45%;
  left: 0;
  transform: rotate(-24deg);
}

.reason-card__bow span:nth-child(2) {
  border-radius: 45% 90% 45% 65%;
  right: 0;
  transform: rotate(24deg);
}

.reason-card__bow i {
  background: linear-gradient(135deg, #fff0ad, #c58a2b);
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(64, 17, 40, 0.18);
  height: 18px;
  left: 14px;
  position: absolute;
  top: 14px;
  width: 18px;
}

.reason-card__seal {
  align-items: center;
  align-self: flex-end;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.68), transparent 18%),
    linear-gradient(135deg, var(--gold), #ffe6a3);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(63, 18, 38, 0.22), inset 0 -3px 0 rgba(122, 72, 16, 0.12);
  color: #7b173f;
  display: grid !important;
  font-size: 20px !important;
  height: 42px;
  margin: 0 !important;
  place-items: center;
  width: 42px;
  z-index: 1;
}

.reason-card__number {
  color: rgba(255, 248, 229, 0.9) !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  margin: 0 !important;
  text-shadow: 0 8px 18px rgba(50, 8, 28, 0.24);
  z-index: 1;
}

.reason-card__hint {
  color: rgba(255, 248, 229, 0.78) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  margin: 0 !important;
  text-transform: uppercase;
  z-index: 1;
}

.reason-card__back {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 244, 238, 0.98)),
    radial-gradient(circle at 90% 0%, rgba(216, 166, 63, 0.2), transparent 36%);
  border: 1px solid rgba(111, 24, 63, 0.1);
  opacity: 0;
  transform: rotateY(180deg);
}

.reason-card__back span {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.reason-card__back p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.reason-card.is-open .reason-card__front {
  opacity: 0;
  transform: rotateY(180deg);
  visibility: hidden;
}

.reason-card.is-open .reason-card__back {
  opacity: 1;
  transform: rotateY(360deg);
  visibility: visible;
}

.reason-card:hover .reason-card__front,
.reason-card:hover .reason-card__back {
  box-shadow: 0 18px 44px rgba(111, 24, 63, 0.18);
}

.moments {
  background:
    radial-gradient(circle at 18% 12%, rgba(185, 49, 88, 0.34), transparent 28%),
    radial-gradient(circle at 88% 74%, rgba(31, 122, 104, 0.28), transparent 30%),
    var(--night);
  color: white;
}

.heart-game {
  background:
    radial-gradient(circle at 18% 22%, rgba(216, 166, 63, 0.2), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(185, 49, 88, 0.16), transparent 28%),
    linear-gradient(135deg, #fffaf5, #f3f7ef);
}

.heart-progress {
  background: rgba(111, 24, 63, 0.1);
  border-radius: 999px;
  height: 12px;
  margin-top: 24px;
  overflow: hidden;
  width: min(100%, 360px);
}

.heart-progress span {
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 280ms ease;
  width: 0;
}

.heart-status {
  color: var(--berry);
  font-size: 14px !important;
  font-weight: 900;
  margin-top: 10px;
}

.heart-field {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.95), rgba(255, 243, 236, 0.72) 42%, rgba(216, 166, 63, 0.1) 70%),
    linear-gradient(135deg, rgba(185, 49, 88, 0.12), rgba(31, 122, 104, 0.12));
  border: 1px solid rgba(216, 166, 63, 0.24);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
  touch-action: manipulation;
}

.heart-field::before {
  border: 1px solid rgba(185, 49, 88, 0.12);
  border-radius: 50%;
  content: "";
  inset: 10%;
  position: absolute;
}

.heart-field p {
  bottom: 24px;
  color: var(--berry);
  font-size: 16px !important;
  font-weight: 900;
  left: 20px;
  margin: 0;
  position: absolute;
  right: 20px;
  text-align: center;
  z-index: 1;
}

.floating-heart {
  align-items: center;
  background: linear-gradient(135deg, var(--rose), #f06f8d);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(185, 49, 88, 0.32);
  color: white;
  cursor: pointer;
  display: grid;
  font-size: 22px;
  height: 54px;
  justify-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, opacity 160ms ease;
  width: 54px;
  z-index: 2;
}

.floating-heart:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.floating-heart.is-collected {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.35);
}

.moment-stage {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
}

.moment-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 80% 10%, rgba(216, 166, 63, 0.32), transparent 30%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  min-height: 310px;
  padding: clamp(28px, 5vw, 64px);
}

.moment-card__number {
  color: var(--gold);
  font-size: 13px !important;
  font-weight: 800;
  margin-bottom: 44px;
}

.moment-card p:not(.moment-card__number) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

.arrow-btn {
  border-radius: 8px;
  font-size: 42px;
  height: 58px;
  width: 58px;
}

.candle-band {
  background:
    radial-gradient(circle at 74% 18%, rgba(216, 166, 63, 0.22), transparent 28%),
    #f8f2e7;
}

.cake {
  display: grid;
  justify-items: center;
  min-width: 280px;
  padding-top: 62px;
  perspective: 900px;
  position: relative;
  transform-style: preserve-3d;
}

.cake--canvas {
  min-width: 0;
  padding-top: 0;
  width: 100%;
}

.cake-canvas {
  aspect-ratio: 760 / 620;
  background:
    radial-gradient(circle at 48% 30%, rgba(255, 235, 174, 0.34), transparent 26%),
    radial-gradient(circle at 50% 58%, rgba(185, 49, 88, 0.18), transparent 38%),
    radial-gradient(circle at 50% 82%, rgba(31, 122, 104, 0.12), transparent 32%);
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 26px 46px rgba(70, 20, 45, 0.2));
  max-height: 620px;
  max-width: 760px;
  touch-action: manipulation;
  width: min(100%, 760px);
}

.cake__spark {
  background:
    radial-gradient(circle, rgba(255, 237, 173, 0.88), transparent 68%),
    radial-gradient(circle at 32% 44%, rgba(185, 49, 88, 0.32), transparent 36%);
  filter: blur(2px);
  height: min(76vw, 360px);
  opacity: 0.86;
  position: absolute;
  top: 6px;
  width: min(76vw, 360px);
}

.candles {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(8, 22px);
  margin-bottom: -42px;
  position: relative;
  transform: rotateX(58deg) rotateZ(-1deg) translateZ(30px);
  transform-style: preserve-3d;
  z-index: 4;
}

.candle {
  background:
    radial-gradient(ellipse at 38% 8%, rgba(255, 255, 255, 0.95) 0 18%, transparent 20%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 28% 68%, rgba(83, 28, 52, 0.2)),
    repeating-linear-gradient(-28deg, #fff7fb 0 7px, #f3a9c2 7px 13px);
  border: 0;
  border-radius: 999px 999px 5px 5px;
  box-shadow:
    inset -4px 0 0 rgba(111, 24, 63, 0.1),
    inset 3px 0 0 rgba(255, 255, 255, 0.44),
    0 7px 12px rgba(111, 24, 63, 0.16);
  cursor: pointer;
  height: 62px;
  padding: 0;
  position: relative;
  transform: rotateX(-58deg) translateZ(10px);
  transform-origin: bottom center;
  transform-style: preserve-3d;
  width: 22px;
}

.candle:nth-child(3n + 2) {
  background:
    radial-gradient(ellipse at 38% 8%, rgba(255, 255, 255, 0.95) 0 18%, transparent 20%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent 28% 68%, rgba(31, 88, 79, 0.2)),
    repeating-linear-gradient(-28deg, #fffdf7 0 7px, #9ad9ca 7px 13px);
}

.candle:nth-child(3n) {
  background:
    radial-gradient(ellipse at 38% 8%, rgba(255, 255, 255, 0.95) 0 18%, transparent 20%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 28% 68%, rgba(122, 72, 16, 0.2)),
    repeating-linear-gradient(-28deg, #fffaf0 0 7px, #f0c765 7px 13px);
}

.candle:nth-child(4n) {
  transform: rotateX(-58deg) translateY(3px) translateZ(10px);
}

.candle:nth-child(5n) {
  transform: rotateX(-58deg) translateY(-2px) translateZ(10px);
}

.candle::before {
  background: linear-gradient(180deg, #5b3030, #1f1214);
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 10px;
  position: absolute;
  top: -9px;
  width: 2px;
  z-index: 2;
}

.candle::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent),
    linear-gradient(135deg, #d8a63f, #fff0a9 48%, #b97820);
  border-radius: 50%;
  bottom: -7px;
  box-shadow: 0 4px 8px rgba(111, 24, 63, 0.14);
  content: "";
  height: 12px;
  left: -2px;
  position: absolute;
  width: 26px;
  z-index: -1;
}

.candle span {
  display: none;
}

.candle.is-lit .flame {
  display: block;
}

.candle.is-lit::before {
  box-shadow: 0 -8px 12px rgba(255, 184, 58, 0.36);
}

.candle.is-lit::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent),
    linear-gradient(135deg, #d8a63f, #fff0a9 48%, #b97820);
}

.candle.is-lit {
  filter: drop-shadow(0 0 10px rgba(255, 192, 75, 0.2));
}

.candle.is-lit::before {
  background: linear-gradient(180deg, #5b3030, #1f1214);
}

.candle.is-lit > span {
  background: radial-gradient(circle, #fff7b0 0 22%, #ffb438 44%, rgba(255, 91, 61, 0.02) 72%);
  border-radius: 50% 50% 48% 48%;
  content: "";
  display: block;
  height: 30px;
  left: 1px;
  position: absolute;
  top: -39px;
  width: 20px;
  animation: flame 800ms infinite alternate ease-in-out;
  filter: drop-shadow(0 0 10px rgba(255, 180, 56, 0.9));
  z-index: 3;
}

.candle.is-lit > span::after {
  background: radial-gradient(circle, #fffdf2 0 18%, rgba(255, 255, 255, 0) 62%);
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 4px;
  position: absolute;
  top: 5px;
  width: 10px;
}

@keyframes flame {
  from {
    transform: translateY(0) scale(0.92);
  }
  to {
    transform: translateY(-3px) scale(1.06);
  }
}

.cake__top,
.cake__body,
.cake__cream,
.cake__base,
.cake__plate {
  border-radius: 8px;
  position: relative;
  transform-style: preserve-3d;
  z-index: 2;
}

.cake__top {
  background:
    radial-gradient(circle at 18% 35%, #fff 0 4%, transparent 5%),
    radial-gradient(circle at 42% 28%, #fff 0 3%, transparent 4%),
    radial-gradient(circle at 72% 36%, #fff 0 4%, transparent 5%),
    radial-gradient(ellipse at 50% 34%, rgba(255, 255, 255, 0.96), rgba(255, 237, 244, 0.9) 48%, rgba(235, 149, 177, 0.62) 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 -16px 20px rgba(185, 49, 88, 0.13),
    inset 22px 10px 24px rgba(255, 255, 255, 0.42),
    inset -24px -10px 26px rgba(111, 24, 63, 0.12),
    0 18px 30px rgba(111, 24, 63, 0.14);
  display: flex;
  height: 116px;
  justify-content: space-around;
  margin-bottom: -46px;
  overflow: hidden;
  transform: rotateX(58deg);
  transform-origin: center bottom;
  width: min(91vw, 438px);
  z-index: 3;
}

.cake__top::before {
  background:
    radial-gradient(circle at 22% 40%, rgba(255, 255, 255, 0.86), transparent 10%),
    radial-gradient(circle at 58% 34%, rgba(255, 255, 255, 0.7), transparent 9%),
    radial-gradient(circle at 78% 56%, rgba(255, 255, 255, 0.66), transparent 8%),
    radial-gradient(ellipse at 48% 50%, rgba(255, 255, 255, 0.14), transparent 58%);
  border: 1px solid rgba(185, 49, 88, 0.12);
  border-radius: 50%;
  content: "";
  inset: 11px 18px;
  position: absolute;
}

.cake__top span {
  background: #fffdf8;
  border-radius: 0 0 999px 999px;
  display: block;
  height: 34px;
  margin-top: 44px;
  width: 38px;
}

.cake__cream {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.9), transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent 20% 80%, rgba(111, 24, 63, 0.14)),
    linear-gradient(180deg, #fffdf8 0 42%, #ffe8ee 100%);
  border-radius: 0 0 44% 44% / 0 0 100% 100%;
  box-shadow:
    inset 14px 0 18px rgba(255, 255, 255, 0.48),
    inset -18px 0 20px rgba(111, 24, 63, 0.08),
    0 12px 18px rgba(111, 24, 63, 0.12);
  height: 46px;
  overflow: hidden;
  transform: rotateX(8deg);
  transform-origin: center top;
  width: min(88vw, 416px);
  z-index: 3;
}

.cake__cream::before {
  background:
    radial-gradient(ellipse at 12% 0%, #fffdf8 0 32%, transparent 34%),
    radial-gradient(ellipse at 34% 0%, #fffdf8 0 24%, transparent 26%),
    radial-gradient(ellipse at 58% 0%, #fffdf8 0 30%, transparent 32%),
    radial-gradient(ellipse at 82% 0%, #fffdf8 0 22%, transparent 24%);
  content: "";
  inset: 18px 0 0;
  position: absolute;
}

.cake__body {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(255, 210, 226, 0.72), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 18% 78%, rgba(34, 8, 28, 0.3)),
    repeating-linear-gradient(180deg, #8d204d 0 36px, #c53664 36px 48px, #f7cfdd 48px 58px);
  border-radius: 0 0 44% 44% / 0 0 18% 18%;
  box-shadow:
    inset 24px 0 24px rgba(255, 255, 255, 0.16),
    inset -30px 0 34px rgba(39, 8, 25, 0.24),
    0 26px 58px rgba(70, 20, 45, 0.26);
  height: 182px;
  overflow: hidden;
  transform: rotateX(-7deg);
  transform-origin: center top;
  width: min(85vw, 400px);
}

.cake__body::before,
.cake__body::after {
  content: "";
  position: absolute;
  z-index: 1;
}

.cake__body::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 215, 228, 0.48), rgba(185, 49, 88, 0.08) 62%, transparent 64%);
  border: 1px solid rgba(255, 235, 242, 0.12);
  border-radius: 50%;
  height: 58px;
  left: 0;
  right: 0;
  top: -31px;
}

.cake__body::after {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(70, 20, 45, 0.34), rgba(70, 20, 45, 0.08) 58%, transparent 62%);
  border-radius: 50%;
  bottom: -26px;
  height: 54px;
  left: 10px;
  right: 10px;
}

.cake__body > * {
  z-index: 1;
}

.cake__ribbon {
  background: linear-gradient(90deg, #d8a63f, #f4d979, #d8a63f);
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.24), inset 0 -4px 8px rgba(98, 54, 12, 0.18);
  height: 24px;
  left: 0;
  position: absolute;
  right: 0;
  top: 80px;
  z-index: 2;
}

.cake__berries {
  display: flex;
  gap: 18px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 22px;
  z-index: 3;
}

.cake__berries span {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(135deg, #e3426f, #7e123f);
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(111, 24, 63, 0.2);
  height: 22px;
  width: 22px;
}

.cake__base {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(154, 54, 92, 0.7), transparent 54%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 24% 72%, rgba(32, 7, 22, 0.25)),
    linear-gradient(180deg, #6f183f, #46142d);
  border-radius: 50%;
  box-shadow:
    inset 18px 0 18px rgba(255, 255, 255, 0.1),
    inset -24px 0 24px rgba(26, 5, 18, 0.24),
    0 18px 40px rgba(70, 20, 45, 0.2);
  height: 54px;
  margin-top: -20px;
  transform: rotateX(54deg);
  transform-origin: center top;
  width: min(82vw, 382px);
}

.cake__plate {
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent),
    linear-gradient(90deg, #cfc3b4, #fff4e8 48%, #cfc3b4);
  border-radius: 50%;
  box-shadow:
    inset 20px 0 24px rgba(255, 255, 255, 0.38),
    inset -24px 0 28px rgba(109, 86, 68, 0.16),
    0 18px 38px rgba(111, 24, 63, 0.16);
  height: 54px;
  margin-top: -8px;
  transform: rotateX(62deg);
  transform-origin: center top;
  width: min(92vw, 482px);
}

.cake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.candle-count {
  color: var(--berry);
  font-size: 14px !important;
  font-weight: 900;
  margin-top: 12px;
}

.polaroid-section {
  background:
    radial-gradient(circle at 22% 18%, rgba(216, 166, 63, 0.24), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(31, 122, 104, 0.16), transparent 32%),
    linear-gradient(135deg, #fffaf2, #f6efe2);
}

.polaroid-grid {
  display: grid;
  gap: clamp(26px, 5vw, 46px);
  grid-template-columns: repeat(3, minmax(300px, 1fr));
}

.polaroid {
  background: #fffdf8;
  border: 1px solid rgba(111, 24, 63, 0.08);
  border-radius: 5px;
  box-shadow: 0 28px 64px rgba(70, 20, 45, 0.18);
  cursor: pointer;
  padding: clamp(12px, 2vw, 18px) clamp(12px, 2vw, 18px) clamp(42px, 5vw, 62px);
  transform: rotate(var(--tilt));
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.polaroid:hover,
.polaroid.is-active {
  box-shadow: 0 28px 58px rgba(70, 20, 45, 0.24);
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  z-index: 2;
}

.polaroid__photo {
  align-items: center;
  aspect-ratio: 1.08 / 1;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(135deg, var(--placeholder-a), var(--placeholder-b));
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 900;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.polaroid__photo img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.polaroid__photo::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(20, 12, 18, 0.12));
  content: "";
  inset: 0;
  position: absolute;
}

.polaroid figcaption {
  color: var(--berry);
  font-family: "Great Vibes", cursive;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin-top: clamp(18px, 3vw, 28px);
  overflow-wrap: anywhere;
  text-align: center;
  word-break: normal;
}

.photo-signature {
  margin: clamp(48px, 8vw, 86px) auto 0;
  max-width: 920px;
  min-height: 150px;
  text-align: center;
}

.photo-signature p {
  color: var(--berry);
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 10vw, 120px) !important;
  line-height: 0.98 !important;
  margin: 0;
  text-shadow: 0 14px 32px rgba(111, 24, 63, 0.14);
}

.photo-signature p::after {
  animation: signatureBlink 900ms infinite;
  color: var(--gold);
  content: "|";
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.45em;
  margin-left: 4px;
  vertical-align: 0.08em;
}

.photo-signature.is-complete p::after {
  display: none;
}

@keyframes signatureBlink {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

.wish-section {
  background:
    linear-gradient(rgba(255, 249, 242, 0.94), rgba(255, 249, 242, 0.94)),
    url("assets/birthday-hero.png") center / cover;
  min-height: 72vh;
  display: grid;
  align-items: center;
}

.final-note {
  max-width: 820px;
}

#typedWish {
  min-height: 190px;
}

.final-signature {
  margin: 18px 0 28px;
  min-height: 92px;
}

.final-signature p {
  color: var(--berry);
  font-family: "Great Vibes", cursive;
  font-size: clamp(46px, 7vw, 86px) !important;
  line-height: 1 !important;
  margin: 0;
  text-shadow: 0 14px 32px rgba(111, 24, 63, 0.14);
}

.final-signature p::after {
  animation: signatureBlink 900ms infinite;
  color: var(--gold);
  content: "|";
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.45em;
  margin-left: 4px;
  vertical-align: 0.08em;
}

.final-signature.is-complete p::after {
  display: none;
}

.modal {
  align-items: center;
  background: rgba(20, 12, 18, 0.62);
  display: none;
  inset: 0;
  justify-content: center;
  overflow-x: hidden;
  padding: 20px;
  position: fixed;
  z-index: 30;
}

.modal.is-open {
  display: flex;
}

.modal__dialog {
  background: var(--ivory);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: min(920px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 54px);
  position: relative;
  width: 100%;
}

.modal__close {
  background: var(--night);
  border-radius: 8px;
  color: white;
  font-size: 28px;
  height: 42px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
}

.video-placeholder {
  display: none;
}

.video-placeholder.is-visible {
  display: block;
}

.gift-video {
  background: #160d15;
  display: block;
  max-height: min(64vh, 620px);
  object-fit: contain;
  width: 100%;
}

.custom-player {
  background: #160d15;
  border: 1px solid rgba(216, 166, 63, 0.26);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  margin: 20px 0 14px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.custom-player:fullscreen {
  border: 0;
  border-radius: 0;
  display: grid;
  height: 100vh;
  margin: 0;
  place-items: center;
  width: 100vw;
}

.custom-player:-webkit-full-screen {
  border: 0;
  border-radius: 0;
  display: grid;
  height: 100vh;
  margin: 0;
  place-items: center;
  width: 100vw;
}

.custom-player:fullscreen .gift-video,
.custom-player:-webkit-full-screen .gift-video {
  max-height: 100vh;
}

.custom-player::after {
  background: linear-gradient(180deg, transparent 50%, rgba(20, 12, 18, 0.76));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.player-big-play {
  background: rgba(255, 253, 248, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(20, 12, 18, 0.3);
  cursor: pointer;
  height: 76px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 76px;
  z-index: 2;
}

.player-big-play::after {
  border-bottom: 15px solid transparent;
  border-left: 24px solid var(--rose);
  border-top: 15px solid transparent;
  content: "";
  left: 31px;
  position: absolute;
  top: 23px;
}

.custom-player.is-playing .player-big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.player-controls {
  align-items: center;
  bottom: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto 42px 42px;
  left: 0;
  padding: 14px;
  position: absolute;
  right: 0;
  z-index: 3;
}

.player-btn {
  align-items: center;
  background: rgba(255, 253, 248, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: grid;
  font-size: 15px;
  font-weight: 900;
  height: 42px;
  place-items: center;
  width: 42px;
}

.player-progress {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  overflow: hidden;
}

.player-progress span {
  background: linear-gradient(90deg, var(--gold), #fff0a9);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 0;
}

#playerTime {
  color: white;
  font-size: 13px;
  font-weight: 800;
  min-width: 44px;
  text-align: center;
}

.video-placeholder p {
  color: var(--berry);
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.4 !important;
  margin: 0 0 4px;
  text-align: center;
}

.mobile-dock {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .topbar__links {
    display: none;
  }

  .hero {
    align-items: end;
    min-height: 100svh;
    padding: 84px 20px 42px;
  }

  .hero__image {
    object-position: center top;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(11, 10, 18, 0.52) 0%, rgba(18, 12, 22, 0.52) 32%, rgba(18, 12, 22, 0.84) 72%, rgba(18, 12, 22, 0.96) 100%),
      radial-gradient(circle at 68% 76%, rgba(216, 166, 63, 0.2), transparent 42%);
  }

  .hero__content {
    padding: 0 2px;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
    transform: translateY(-42px);
    width: 100%;
  }

  h1 {
    font-size: 92px;
    line-height: 1.08;
    margin-bottom: 18px;
    min-height: 1.15em;
  }

  .hero-greeting {
    font-size: 58px;
    margin-bottom: 12px;
    max-width: 94vw;
    min-height: 1.2em;
  }

  h2 {
    font-size: clamp(32px, 8vw, 58px);
  }

  .hero__text,
  .section p,
  .gift-message p,
  .modal p {
    font-size: 16px;
    line-height: 1.65;
  }

  .section,
  .gift-section {
    padding: 64px 18px;
  }

  .split,
  .gift-wrap {
    grid-template-columns: 1fr;
  }

  .gift-wrap {
    gap: 12px;
  }

  .gift-box-stage {
    grid-template-columns: minmax(190px, 320px) minmax(100px, 180px);
    justify-content: center;
    justify-self: center;
    width: min(100%, 520px);
  }

  .gift-pointer {
    font-size: clamp(24px, 5.4vw, 42px);
    max-width: clamp(100px, 24vw, 180px);
    transform: rotate(-2deg);
  }

  .gift-pointer svg {
    height: clamp(48px, 8vw, 68px);
    width: clamp(64px, 12vw, 112px);
  }

  .heart-field {
    min-height: 340px;
  }

  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .polaroid-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }

  .reason-card {
    min-height: 132px;
  }

  .reason-card::before,
  .reason-card__front,
  .reason-card__back {
    min-height: 132px;
  }

  .moment-stage {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .moment-card {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #prevMoment {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  #nextMoment {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .arrow-btn {
    background: rgba(255, 255, 255, 0.18);
    height: 52px;
    width: 84px;
  }

  .mobile-dock {
    align-items: center;
    background: rgba(255, 253, 248, 0.86);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(111, 24, 63, 0.12);
    border-radius: 8px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 18px 46px rgba(35, 19, 31, 0.22);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, 1fr);
    left: 12px;
    max-width: calc(100vw - 24px);
    min-height: 64px;
    padding: 6px;
    position: fixed;
    right: 12px;
    z-index: 25;
  }

  .mobile-dock a {
    align-items: center;
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 1px;
    justify-items: center;
    min-height: 52px;
    transition: background 180ms ease, color 180ms ease;
  }

  .mobile-dock a:active {
    background: rgba(216, 166, 63, 0.2);
  }

  .mobile-dock a.is-active {
    background: var(--berry);
    color: white;
  }

  .mobile-dock a.is-active span {
    color: var(--gold);
  }

  .mobile-dock span {
    color: var(--rose);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-dock small {
    font-size: 10px;
    font-weight: 800;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .topbar {
    padding-left: 28px;
    padding-right: 28px;
  }

  .topbar__links {
    font-size: 13px;
    gap: 4px;
  }

  .topbar__links a {
    padding: 9px 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    align-items: center;
    padding-bottom: 118px;
    padding-top: 88px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .hero__content .eyebrow {
    max-width: 300px;
  }

  .hero__content .hero-greeting {
    font-size: 44px;
    line-height: 1.08;
    max-width: min(100%, 360px);
    min-height: 2.25em;
  }

  h1 {
    font-size: 64px;
    min-height: 2.24em;
  }

  .hero__content {
    padding-bottom: 0;
    transform: translateY(-58px);
  }

  .hero__actions {
    align-items: stretch;
    margin-top: 24px;
  }

  .primary-btn {
    flex: 1;
    min-height: 56px;
    padding: 0 16px;
  }

  .icon-btn {
    height: 56px;
    width: 56px;
  }

  .hero__hint {
    margin-top: 22px;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  .polaroid-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 4px;
  }

  .polaroid {
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
  }

  .reason-card,
  .reason-card::before,
  .reason-card__front,
  .reason-card__back {
    min-height: 126px;
  }

  .gift-box {
    height: 220px;
    width: clamp(190px, 54vw, 224px);
  }

  .gift-box-stage {
    gap: 4px;
    grid-template-columns: minmax(184px, 224px) minmax(92px, 120px);
  }

  .gift-pointer {
    flex-direction: column;
    gap: 0;
    max-width: 120px;
    transform: rotate(-2deg);
  }

  .gift-pointer span {
    font-size: clamp(25px, 7vw, 34px);
    text-align: center;
  }

  .gift-pointer svg {
    height: clamp(44px, 12vw, 52px);
    width: clamp(62px, 18vw, 84px);
  }

  .candles {
    gap: 6px;
    grid-template-columns: repeat(6, 20px);
    margin-bottom: -38px;
    transform: rotateX(58deg) rotateZ(-1deg) translateZ(24px);
  }

  .candle {
    height: 58px;
    width: 20px;
  }

  .candle::after {
    width: 24px;
  }

  .moment-card {
    min-height: 300px;
    padding: 24px;
  }

  .moment-card__number {
    margin-bottom: 26px;
  }

  .modal {
    align-items: center;
    padding: 10px;
  }

  .modal__dialog {
    max-height: calc(100svh - 20px);
    max-width: calc(100vw - 20px);
    overflow: auto;
    padding: 48px 14px 18px;
    width: 100%;
  }

  .gift-video {
    max-height: calc(100svh - 190px);
  }

  .player-controls {
    gap: 7px;
    grid-template-columns: 38px minmax(0, 1fr) auto 38px 38px;
    padding: 10px;
  }

  .player-btn {
    height: 38px;
    width: 38px;
  }

  .player-big-play {
    height: 64px;
    width: 64px;
  }

  .player-big-play::after {
    left: 27px;
    top: 19px;
  }

  .polaroid-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-left: 16px;
    padding-bottom: 108px;
    padding-right: 16px;
  }

  .hero__content {
    transform: translateY(-48px);
  }

  h1 {
    font-size: 52px;
    min-height: 2.28em;
  }

  .hero__content .hero-greeting {
    font-size: 34px;
    max-width: 100%;
    min-height: 2.2em;
  }

  .hero__text,
  .section p,
  .gift-message p,
  .modal p {
    font-size: 15px;
  }

  .mobile-dock {
    left: 8px;
    max-width: calc(100vw - 16px);
    min-height: 58px;
    padding: 5px;
    right: 8px;
  }

  .mobile-dock a {
    gap: 0;
    min-height: 48px;
  }

  .mobile-dock span {
    font-size: 17px;
  }

  .mobile-dock small {
    font-size: 8.5px;
  }

  .gift-pointer {
    max-width: 96px;
  }

  .gift-pointer span {
    font-size: clamp(22px, 7vw, 28px);
  }

  .gift-pointer svg {
    height: clamp(38px, 12vw, 46px);
    width: clamp(54px, 18vw, 74px);
  }

  .gift-box {
    width: clamp(170px, 52vw, 200px);
  }

  .polaroid {
    max-width: 100%;
  }
}

@media (max-width: 340px) {
  h1 {
    font-size: 46px;
  }

  .hero__content .hero-greeting {
    font-size: 30px;
  }
}
