* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
  background: #111827;
}

.birthday-page {
  min-height: 100vh;
  overflow: hidden;
}

.pin-section {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #7a2847;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.88), transparent 22%),
    radial-gradient(circle at 86% 12%, rgba(255, 214, 224, 0.9), transparent 24%),
    radial-gradient(circle at 70% 86%, rgba(255, 241, 168, 0.42), transparent 24%),
    linear-gradient(135deg, #ffe4ec 0%, #ffc2d4 45%, #ff8fab 100%);
  overflow: hidden;
  transition: opacity 500ms ease, visibility 500ms ease, transform 500ms ease;
}

.pin-section::before,
.pin-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.pin-section::before {
  width: 340px;
  height: 340px;
  left: -110px;
  bottom: -120px;
  border: 34px solid rgba(255, 255, 255, 0.24);
}

.pin-section::after {
  width: 210px;
  height: 210px;
  top: 74px;
  right: -62px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 8%, transparent 9% 100%),
    radial-gradient(circle at 32% 68%, rgba(255, 255, 255, 0.72) 0 7%, transparent 8% 100%),
    rgba(255, 255, 255, 0.14);
}

.birthday-page.is-unlocked .pin-section {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  pointer-events: none;
}

.birthday-page.is-locked .home-section,
.birthday-page.is-locked .memory-section,
.birthday-page.is-locked .facts-section,
.birthday-page.is-locked .then-now-section,
.birthday-page.is-locked .letter-section {
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  filter: blur(8px);
}

.pin-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 34px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 50% 0%, rgba(255, 183, 197, 0.5), transparent 44%);
  box-shadow: 0 28px 80px rgba(122, 40, 71, 0.26);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.pin-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(166, 61, 97, 0.22);
  border-radius: 7px;
  pointer-events: none;
}

.pin-card::after {
  content: "\2726  \2661  \2726";
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(166, 61, 97, 0.36);
  font-size: 1.1rem;
  letter-spacing: 0.32em;
  pointer-events: none;
}

.lock-shape {
  position: relative;
  width: 86px;
  height: 70px;
  margin: 26px auto 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff7fa 0%, #ff6f91 100%);
  box-shadow: inset 0 -8px 18px rgba(122, 40, 71, 0.16), 0 16px 30px rgba(122, 40, 71, 0.22);
  animation: lock-float 2.8s ease-in-out infinite;
}

.lock-shape::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 55px;
  width: 54px;
  height: 52px;
  border: 10px solid #fff7fa;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  transform: translateX(-50%);
  box-shadow: 0 -8px 18px rgba(122, 40, 71, 0.12);
}

.lock-hole {
  position: absolute;
  left: 50%;
  top: 25px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #7a2847;
  transform: translateX(-50%);
}

.lock-hole::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: #7a2847;
  transform: translateX(-50%);
}

.pin-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a63d61;
}

.pin-title {
  margin-top: 10px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-weight: 400;
  color: #7a2847;
}

.pin-hint {
  margin: 14px auto 0;
  max-width: 310px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #8f3655;
}

.pin-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 24px;
}

.pin-input {
  min-width: 0;
  height: 52px;
  border: 2px solid rgba(122, 40, 71, 0.18);
  border-radius: 8px;
  padding: 0 18px;
  color: #7a2847;
  background:
    linear-gradient(90deg, rgba(122, 40, 71, 0.08) 1px, transparent 1px) 0 0 / 16.66% 100%,
    rgba(255, 255, 255, 0.86);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
  outline: 0;
  box-shadow: inset 0 3px 10px rgba(122, 40, 71, 0.08);
}

.pin-input:focus {
  border-color: #ff6f91;
  box-shadow: 0 0 0 4px rgba(255, 111, 145, 0.18);
}

.pin-button {
  height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #7a2847, #d94f7a);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(122, 40, 71, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(122, 40, 71, 0.3);
}

.pin-message {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #a63d61;
}

.pin-card.is-shaking {
  animation: shake 340ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-section {
  --home-image: url("img/background-home1.jpeg");
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  isolation: isolate;
  overflow: hidden;
  background: #100b12;
}

.home-section::before,
.home-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-section::before {
  z-index: -3;
  background: var(--home-image) center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.78;
}

.home-section::after {
  z-index: -2;
  background: var(--home-image) center / cover no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 10, 22, 0.38);
}

.birthday-content {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  min-height: 560px;
}

.birthday-label,
.birthday-title,
.birthday-age {
  position: absolute;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.birthday-label {
  top: 14px;
  left: 0;
  max-width: 520px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: clamp(0.86rem, 2vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.birthday-title {
  top: 124px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(760px, 100%);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(4.6rem, 13vw, 10.5rem);
  line-height: 0.78;
  font-weight: 400;
  text-align: center;
}

.birthday-title span:first-child {
  margin-right: min(16vw, 120px);
}

.birthday-title span:last-child {
  margin-left: min(13vw, 100px);
}

.birthday-age {
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.age-number {
  font-size: clamp(6.4rem, 18vw, 14rem);
  line-height: 0.78;
  font-weight: 800;

  transform: rotate(-10deg);
}

.age-text {
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  color: #151829;
  background: #ffd166;
}

.date-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-left: 4px solid #ffd166;
  background: rgba(10, 13, 28, 0.42);
  backdrop-filter: blur(14px);
}

.date-card span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.date-card strong {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.flower-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #151829;
  background: #ffd166;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.flower-button:hover {
  transform: translateY(-3px) scale(1.04);
  background: #ffb7c5;
}

.flower-button.is-active {
  animation: pulse 1.1s ease-in-out infinite;
}

.flower-icon {
  font-size: 1.45rem;
  font-weight: 800;
}

.flower-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.flower {
  position: absolute;
  top: -20px;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  color: var(--flower-color);
  opacity: 0.92;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
  animation: flower-fall linear forwards;
}

.flower::before {
  content: "\273F";
  font-size: var(--size);
  line-height: 1;
}

.memory-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24, 12, 22, 0.94), rgba(98, 38, 62, 0.92)),
    #3f1830;
}

.memory-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 12, 22, 0.95), transparent 18%, transparent 82%, rgba(24, 12, 22, 0.95)),
    radial-gradient(circle at 50% 50%, rgba(255, 183, 197, 0.2), transparent 34%);
  z-index: 2;
  pointer-events: none;
}

.memory-marquee {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: clamp(14px, 3vw, 26px);
  transform: rotate(-3deg) scale(1.08);
}

.photo-row {
  width: 100%;
  overflow: hidden;
}

.photo-track {
  display: flex;
  width: max-content;
  gap: clamp(10px, 1.5vw, 18px);
  animation: move-right 34s linear infinite;
  transform: translateX(-50%);
}

.row-two .photo-track {
  animation-duration: 42s;
  animation-delay: -12s;
}

.row-three .photo-track {
  animation-duration: 38s;
  animation-delay: -20s;
}

.photo-track img {
  width: clamp(96px, 12vw, 170px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-bottom-width: 15px;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.row-one img:nth-child(3n),
.row-three img:nth-child(2n) {
  transform: rotate(3deg);
}

.row-two img:nth-child(2n),
.row-one img:nth-child(4n) {
  transform: rotate(-4deg);
}

.memory-center {
  position: relative;
  z-index: 3;
  width: min(620px, 100%);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  text-align: center;
  background: rgba(32, 14, 28, 0.6);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.memory-kicker {
  margin-bottom: 12px;
  color: #ffd1dc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.memory-center h2 {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  font-weight: 400;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.memory-center p:last-child {
  max-width: 430px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.facts-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 8vw, 110px) clamp(22px, 6vw, 90px);
  color: #5d233b;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 232, 238, 0.72)),
    radial-gradient(circle at 10% 20%, rgba(255, 143, 171, 0.34), transparent 28%),
    radial-gradient(circle at 88% 80%, rgba(255, 209, 102, 0.28), transparent 24%),
    #fff4f7;
  overflow: hidden;
}

.facts-section::before {
  content: "19";
  position: absolute;
  right: clamp(-20px, 4vw, 56px);
  top: 16px;
  color: rgba(255, 143, 171, 0.16);
  font-size: clamp(10rem, 28vw, 22rem);
  line-height: 0.8;
  font-weight: 900;
  pointer-events: none;
}

.facts-photo {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  justify-self: center;
  padding: 12px 12px 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(122, 40, 71, 0.22);
  transform: rotate(-3deg);
}

.facts-photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border: 1px solid rgba(166, 61, 97, 0.18);
  border-radius: 12px;
  transform: rotate(6deg);
}

.facts-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.photo-badge {
  position: absolute;
  right: -18px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #7a2847, #ff6f91);
  box-shadow: 0 14px 32px rgba(122, 40, 71, 0.3);
  transform: rotate(10deg);
}

.photo-badge span {
  font-size: 2rem;
  line-height: 0.9;
  font-weight: 900;
}

.photo-badge strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts-content {
  position: relative;
  z-index: 1;
}

.facts-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #a63d61;
  background: rgba(255, 143, 171, 0.16);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts-content h2 {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.88;
  font-weight: 400;
  color: #7a2847;
}

.facts-intro {
  max-width: 620px;
  margin-top: 18px;
  color: #8f3655;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  list-style: none;
  counter-reset: fact;
}

.facts-list li {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 14px 14px 14px 58px;
  border: 1px solid rgba(166, 61, 97, 0.13);
  border-radius: 8px;
  color: #6e2a44;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(122, 40, 71, 0.08);
  line-height: 1.45;
  counter-increment: fact;
}

.facts-list li::before {
  content: counter(fact, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: #ff6f91;
  font-size: 0.76rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.then-now-section {
  position: relative;
  min-height: 160vh;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: clamp(34px, 7vw, 78px);
  padding: clamp(80px, 10vw, 130px) 24px;
  color: #6e2a44;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(180deg, #fff8fa 0%, #ffe6ee 45%, #ffd1dc 100%);
  overflow: hidden;
}

.then-now-section::before,
.then-now-section::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(760px, calc(100vw - 42px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 40, 71, 0.38), transparent);
  transform: translateX(-50%);
}

.then-now-section::before {
  top: clamp(54px, 8vw, 88px);
}

.then-now-section::after {
  top: clamp(405px, 48vw, 530px);
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(122, 40, 71, 0.28), transparent);
  transform: translateX(-50%);
}

.then-now-block {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.era-label {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7a2847;
  text-shadow: 0 10px 24px rgba(255, 143, 171, 0.18);
}

.then-photo,
.now-photo {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: transparent;
}

.then-photo {
  width: min(620px, 92vw);
  gap: 10px;
  transform: rotate(-4deg);
}

.now-photo {
  width: min(860px, 92vw);
  gap: clamp(12px, 2vw, 20px);
  transform: rotate(2deg);
}

.then-photo img,
.now-photo img {
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(122, 40, 71, 0.18);
}

.then-photo img {
  width: clamp(76px, 13vw, 118px);
  aspect-ratio: 1 / 1.16;
  padding: 5px 5px 14px;
  transform: rotate(var(--tilt));
}

.now-photo img {
  width: clamp(132px, 18vw, 210px);
  aspect-ratio: 4 / 5;
  padding: 8px 8px 22px;
  transform: rotate(var(--tilt));
}

.then-photo img:nth-child(1),
.now-photo img:nth-child(1) {
  --tilt: -7deg;
}

.then-photo img:nth-child(2),
.now-photo img:nth-child(2) {
  --tilt: 4deg;
}

.then-photo img:nth-child(3),
.now-photo img:nth-child(3) {
  --tilt: -2deg;
}

.then-photo img:nth-child(4),
.now-photo img:nth-child(4) {
  --tilt: 6deg;
}

.then-photo img:nth-child(5),
.now-photo img:nth-child(5) {
  --tilt: -4deg;
}

.transform-text {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  display: grid;
  gap: 10px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(166, 61, 97, 0.18);
  border-radius: 8px;
  text-align: center;
  color: #7a2847;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(122, 40, 71, 0.14);
  backdrop-filter: blur(12px);
}

.transform-text span {
  color: #c34b72;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.transform-text strong {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.96;
  font-weight: 400;
}

.reveal-step {
  opacity: 0;
  transform: translateY(52px) scale(0.96);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal-step.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.then-step.is-visible .then-photo {
  animation: then-pop 900ms ease both;
}

.now-step.is-visible .now-photo {
  animation: now-glow 1200ms ease both;
}

.letter-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 8vw, 120px) 22px;
  color: #6e2a44;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 232, 238, 0.74)),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(166, 61, 97, 0.08) 36px),
    #fff4f7;
  overflow: hidden;
}

.letter-section::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(166, 61, 97, 0.13);
  border-radius: 12px;
  pointer-events: none;
}

.letter-container {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid rgba(122, 40, 71, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 250, 0.9)),
    #fff;
  box-shadow: 0 30px 90px rgba(122, 40, 71, 0.18);
}

.letter-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(
    135deg,
    #ff8fab 0 18px,
    #fff 18px 36px,
    #7a2847 36px 54px,
    #fff 54px 72px
  );
}

.letter-kicker {
  margin-bottom: 12px;
  color: #c34b72;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.letter-container h2 {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.9;
  font-weight: 400;
  color: #7a2847;
}

.letter-container p {
  margin-top: 24px;
  color: #6e2a44;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.letter-sign {
  display: block;
  margin-top: 30px;
  color: #a63d61;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
  text-align: right;
}

@keyframes flower-fall {
  to {
    transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin));
  }
}

@keyframes then-pop {
  0% {
    transform: rotate(-9deg) scale(0.82);
  }

  100% {
    transform: rotate(-4deg) scale(1);
  }
}

@keyframes now-glow {
  0% {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    transform: rotate(2deg) scale(0.94);
  }

  100% {
    box-shadow: 0 30px 86px rgba(255, 143, 171, 0.28), 0 24px 68px rgba(122, 40, 71, 0.18);
    transform: rotate(2deg) scale(1);
  }
}

@keyframes move-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

@keyframes lock-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 720px) {
  .pin-card {
    padding: 30px 20px 24px;
  }

  .pin-form {
    grid-template-columns: 1fr;
  }

  .pin-button {
    width: 100%;
  }

  .home-section {
    padding: 32px 18px 96px;
  }

  .birthday-content {
    min-height: 610px;
  }

  .birthday-label {
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 36px);
    text-align: center;
    letter-spacing: 0.04em;
  }

  .birthday-title {
    top: 148px;
  }

  .birthday-title span:first-child,
  .birthday-title span:last-child {
    margin: 0;
  }

  .birthday-age {
    right: 50%;
    bottom: 68px;
    transform: translateX(50%);
  }

  .date-card {
    right: 18px;
    left: 18px;
    bottom: 18px;
  }

  .flower-button {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }

  .memory-section {
    padding: 70px 18px;
  }

  .memory-marquee {
    gap: 16px;
    transform: rotate(-4deg) scale(1.18);
  }

  .photo-track img {
    width: 96px;
    border-width: 5px;
    border-bottom-width: 13px;
  }

  .memory-center {
    padding: 28px 20px;
  }

  .facts-section {
    grid-template-columns: 1fr;
    padding: 64px 18px;
  }

  .facts-photo {
    width: min(280px, 88vw);
  }

  .photo-badge {
    right: -12px;
    width: 76px;
    height: 76px;
  }

  .facts-content h2,
  .facts-intro {
    text-align: center;
  }

  .facts-kicker {
    display: flex;
    width: max-content;
    margin-inline: auto;
  }

  .facts-list {
    grid-template-columns: 1fr;
  }

  .then-now-section {
    min-height: 150vh;
    padding: 72px 18px;
    gap: 38px;
  }

  .then-now-section::after {
    top: 330px;
  }

  .era-label {
    letter-spacing: 0.2em;
  }

  .then-photo {
    width: min(340px, 92vw);
    gap: 8px;
  }

  .now-photo {
    width: min(360px, 92vw);
    gap: 10px;
  }

  .then-photo img {
    width: 82px;
  }

  .now-photo img {
    width: 132px;
  }

  .transform-text {
    padding: 24px 18px;
  }

  .letter-section {
    padding: 64px 18px;
  }

  .letter-section::before {
    inset: 18px;
  }

  .letter-container {
    padding: 36px 22px 30px;
  }

  .letter-sign {
    text-align: left;
  }
}
