@font-face {
  font-family: "Birthday Script";
  src: url("../fonts/english-font.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mina Miremad";
  src: url("../fonts/Miremad.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --blush-50: #fff9fa;
  --blush-100: #fdeef2;
  --blush-200: #f8dce4;
  --blush-300: #efbec9;
  --rose: #ca7587;
  --rose-deep: #a95368;
  --peach: #e9a78e;
  --cream: #fffaf2;
  --gold: #d1a955;
  --gold-soft: #efd89b;
  --sage: #91a98b;
  --sage-deep: #6e8769;
  --ink: #624b4d;
  --muted: #8f7478;
  --paper-shadow: 0 28px 80px rgba(139, 80, 94, .12);
  --fa: Tahoma, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f2e5e8; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--fa);
  font-size: 16px;
  background: #f2e5e8;
  overflow-x: hidden;
}
body.intro-locked { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--rose); }

/* Envelope video */
.birthday-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7dce4;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .85s ease, visibility 0s linear .85s;
}
.intro-backdrop {
  position: absolute;
  inset: -44px;
  background: url("../video/birthday-envelope-poster.jpg") center / cover no-repeat;
  filter: blur(30px) saturate(.85) brightness(.95);
  opacity: .78;
  transform: scale(1.12);
}
.intro-stage {
  position: relative;
  z-index: 1;
  width: min(100vw, 56.25svh, 720px);
  aspect-ratio: 9 / 16;
  max-height: 100svh;
  overflow: hidden;
  background: #fbe8ee;
  box-shadow: 0 0 80px rgba(103, 59, 72, .24);
}
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: #fbe8ee;
}
.intro-soften {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 30%, transparent 76%, rgba(255,247,249,.14));
}
.intro-hint {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: max(6.5%, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  width: 82%;
  color: #8d5e68;
  text-align: center;
  transform: translateX(50%);
  transition: opacity .55s ease, transform .55s ease;
}
.intro-hint span {
  padding: .62rem 1.15rem;
  font-size: clamp(.95rem, 3.8vw, 1.22rem);
  line-height: 1.6;
  background: rgba(255, 250, 248, .78);
  border: 1px solid rgba(197, 113, 132, .26);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(140, 75, 91, .08);
  backdrop-filter: blur(8px);
}
.intro-hint i {
  width: 35px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: hintBreath 1.8s ease-in-out infinite;
}
.birthday-intro.playing .intro-hint {
  opacity: 0;
  transform: translate(50%, 12px);
  pointer-events: none;
}
.intro-personal {
  position: absolute;
  z-index: 5;
  top: 5.2%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  width: 47%;
  padding: .62rem .3rem .78rem;
  color: #8e5262;
  text-align: center;
  background: rgba(255, 249, 249, .7);
  border: 1px solid rgba(215, 164, 113, .3);
  border-radius: 50% / 38%;
  box-shadow: 0 8px 30px rgba(162, 94, 111, .08);
  opacity: 0;
  transform: translate(-50%, -8px) scale(.96);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22,.72,.26,1);
  backdrop-filter: blur(5px);
}
.intro-personal span {
  display: block;
  font-size: clamp(.7rem, 2.45vw, .92rem);
  line-height: 1.8;
  white-space: nowrap;
}
.intro-personal strong {
  display: block;
  max-width: 100%;
  padding: .08em 0 .18em;
  overflow-wrap: anywhere;
  font-family: "Mina Miremad", var(--fa);
  font-size: clamp(1.12rem, 5.2vw, 2rem);
  font-weight: 400;
  line-height: 1.55;
}
.birthday-intro.personal-visible .intro-personal {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.birthday-intro.finishing { opacity: 0; pointer-events: none; }
.birthday-intro.done { visibility: hidden; }

@keyframes hintBreath {
  0%, 100% { opacity: .35; transform: scaleX(.7); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Invitation shell */
#invitation, .site-footer {
  width: min(100%, 720px);
  margin-inline: auto;
  box-shadow: 0 0 78px rgba(99, 62, 71, .09);
}
#invitation { opacity: 0; background: var(--blush-50); transition: opacity .85s ease; }
body.entered #invitation { opacity: 1; }
.section-pad { position: relative; padding: 6.2rem clamp(1.2rem, 6vw, 3.5rem); }
.paper-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 32%, rgba(255,255,255,.9), transparent 26%),
    radial-gradient(circle at 82% 66%, rgba(240,186,199,.2), transparent 26%);
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.72,.22,1);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 0 1.2rem 6.2rem;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #fce8ee 0%, #fff9f8 48%, #fffaf3 100%);
}
.fairy-header {
  position: relative;
  width: calc(100% + 2.4rem);
  max-width: 720px;
  height: clamp(230px, 51vw, 350px);
  margin-inline: -1.2rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fbe7ed 0%, #fbe8ee 62%, #fff9f8 100%);
}
.fairy-header::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(92px, 19vw, 138px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,249,248,0), rgba(255,249,248,.72) 58%, #fff9f8 100%);
  content: "";
}
.fairy-header > img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  animation: fairiesFloat 6s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(#000 0 72%, rgba(0,0,0,.9) 82%, transparent 100%);
  mask-image: linear-gradient(#000 0 72%, rgba(0,0,0,.9) 82%, transparent 100%);
}
.guest-welcome {
  position: absolute;
  z-index: 2;
  top: 21%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .42rem;
  width: 43%;
  padding: .78rem .3rem .92rem;
  color: #8f5966;
  background: rgba(255,250,249,.72);
  border: 1px solid rgba(211, 158, 100, .28);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(157, 91, 106, .08);
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
}
.guest-welcome small { display: block; font-size: clamp(.7rem, 2.1vw, .84rem); line-height: 1.85; }
.guest-welcome strong {
  display: block;
  max-width: 100%;
  padding: .06em 0 .16em;
  overflow-wrap: anywhere;
  font-family: "Mina Miremad", var(--fa);
  font-size: clamp(1.35rem, 5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.58;
}
.hero-copy { position: relative; z-index: 2; margin-top: clamp(-5.8rem, -8vw, -3.4rem); }
.hero-kicker {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: -.03em 0 0;
  padding: .12em .1em .2em;
  color: var(--rose-deep);
  font-family: "Birthday Script", "Brush Script MT", cursive;
  font-size: clamp(4.8rem, 18vw, 8.6rem);
  font-weight: 400;
  line-height: .92;
  text-shadow: 0 2px 0 rgba(255,255,255,.85);
}
.birthday-age {
  display: inline-flex;
  margin: .35rem 0 1.3rem;
  padding: .45rem 1rem;
  color: #8e646b;
  font-size: .84rem;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(202,117,135,.22);
  border-radius: 999px;
}
.celebrant-portrait {
  position: relative;
  z-index: 2;
  width: min(72vw, 340px);
  aspect-ratio: 4 / 5;
  margin: .4rem auto 1.7rem;
  filter: drop-shadow(0 25px 34px rgba(132,79,91,.14));
}
.portrait-ring {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(207, 161, 81, .72);
  border-radius: 50% 50% 44% 44% / 43% 43% 50% 50%;
}
.portrait-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: inherit;
}
.portrait-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(150deg, #f7d9e1, #fff9f5 55%, #eed6bd);
  border: 7px solid rgba(255, 251, 247, .95);
  border-radius: 50% 50% 44% 44% / 43% 43% 50% 50%;
}
.portrait-window > img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.photo-placeholder {
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  color: #c17c8c;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.9), transparent 38%),
    linear-gradient(145deg, #f7dce4, #fff9f6 55%, #f1d5c8);
}
.photo-placeholder span {
  font-family: "Birthday Script", cursive;
  font-size: 7rem;
  line-height: 1;
}
.photo-placeholder small { color: #b38a92; font-family: Georgia, serif; font-size: .6rem; letter-spacing: .32em; }
.portrait-flower {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff9f2;
  background: #dc91a0;
  border: 5px solid #f5c7d0;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(137, 75, 89, .16);
}
.flower-one { right: -18px; bottom: 18%; transform: rotate(-12deg); }
.flower-two { left: -15px; top: 16%; width: 38px; height: 38px; color: #fffdf5; background: #edb09a; border-width: 4px; transform: rotate(18deg); }
.hero-date {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  color: #876a6e;
  font-size: .82rem;
  line-height: 1.8;
}
.hero-date i { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
.scroll-cue {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  color: #9e777f;
  font-size: .72rem;
  text-decoration: none;
  transform: translateX(50%);
}
.scroll-cue i { position: relative; width: 20px; height: 30px; border: 1px solid rgba(202,117,135,.45); border-radius: 20px; }
.scroll-cue i::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; border-radius: 3px; background: var(--rose); transform: translateX(-50%); animation: scrollDot 1.7s ease-in-out infinite; }

@keyframes fairiesFloat { from { transform: translateY(0); } to { transform: translateY(5px); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,11px); } }

/* Invitation text */
.invitation-message {
  min-height: 820px;
  padding-top: clamp(20rem, 73vw, 31rem);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #fbe6ec 0, #fff8f6 62%, #fffaf3 100%);
}
.flower-house {
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 0;
  width: 100%;
  height: auto;
  transform-origin: 50% 92%;
}
.flower-house.visible { animation: houseBreathe 7s ease-in-out infinite alternate; }
.message-card {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.3rem, 5vw, 2.6rem);
  background: rgba(255, 252, 248, .84);
  border: 1px solid rgba(207, 161, 81, .3);
  border-radius: 48% 48% 22px 22px / 70px 70px 22px 22px;
  box-shadow: var(--paper-shadow);
  backdrop-filter: blur(10px);
}
.message-card::before, .message-card::after {
  position: absolute;
  color: var(--gold);
  font-size: .75rem;
  content: "✦";
}
.message-card::before { top: 1rem; right: 1.2rem; }
.message-card::after { bottom: 1rem; left: 1.2rem; }
.section-kicker, .section-heading > p {
  margin: 0 0 .6rem;
  color: var(--rose);
  font-size: .78rem;
  letter-spacing: .08em;
}
.message-card h2, .section-heading h2, .venue-card h2 {
  margin: 0;
  padding: .05em 0 .12em;
  color: #77565d;
  font-family: "Mina Miremad", var(--fa);
  font-size: clamp(2.25rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.68;
}
.invitation-copy { margin: 1.35rem 0 1rem; color: #735d61; font-size: clamp(1rem, 3.3vw, 1.12rem); line-height: 2.2; }
.message-card > strong { display: block; color: var(--rose-deep); font-size: .88rem; font-weight: 500; line-height: 1.9; }
@keyframes houseBreathe { from { transform: translateY(0) scale(1); } to { transform: translateY(5px) scale(1.008); } }

/* Countdown */
.countdown-section {
  display: grid;
  place-items: center;
  min-height: 64svh;
  overflow: hidden;
  background: #fffaf3;
}
.countdown-card {
  position: relative;
  z-index: 2;
  width: min(100%, 580px);
  padding: 3.4rem 1rem;
  text-align: center;
  background: radial-gradient(circle, rgba(255,255,255,.93), rgba(253,238,242,.55));
  border: 1px solid rgba(202,117,135,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(239,190,201,.07), 0 0 0 50px rgba(209,169,85,.035);
}
.countdown-card > p { margin: 0; color: var(--rose); font-size: .82rem; }
.countdown-card > time { color: #9d737a; font-size: .82rem; }
.countdown { direction: ltr; display: flex; justify-content: center; align-items: flex-start; gap: clamp(.3rem, 2vw, .9rem); margin: 1.7rem 0; }
.countdown div { min-width: 54px; }
.countdown strong { display: block; color: #76565c; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 8vw, 3.9rem); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: .45rem; color: #a08286; font-size: .68rem; direction: rtl; }
.countdown b { padding-top: .18rem; color: var(--gold); font-size: 1.8rem; font-weight: 400; }
.sparkle-field { position: absolute; inset: 0; pointer-events: none; }
.sparkle-field i { position: absolute; color: var(--gold-soft); font-style: normal; animation: twinkle 3s ease-in-out infinite; }
.sparkle-field i:nth-child(1) { top: 14%; right: 14%; font-size: 1.7rem; }
.sparkle-field i:nth-child(2) { top: 28%; left: 11%; font-size: 1.2rem; animation-delay: .8s; }
.sparkle-field i:nth-child(3) { bottom: 16%; left: 19%; font-size: 1.5rem; animation-delay: 1.3s; }
.sparkle-field i:nth-child(4) { bottom: 22%; right: 9%; font-size: 1rem; animation-delay: 2s; }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.75) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(14deg); } }

/* Countdown garland */
.countdown-section {
  min-height: 78svh;
  background:
    radial-gradient(circle at 12% 18%, rgba(239,190,201,.34) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 76%, rgba(209,169,85,.28) 0 2px, transparent 3px),
    linear-gradient(155deg, #fffaf3 0%, #fff7f7 48%, #f9ebee 100%);
}
.countdown-story {
  position: relative;
  z-index: 2;
  width: min(100%, 590px);
  padding: 2.55rem clamp(.85rem, 4vw, 2.1rem) 2.35rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.98), transparent 42%),
    linear-gradient(165deg, rgba(255,253,249,.96), rgba(252,232,237,.92));
  border: 1px solid rgba(209,169,85,.42);
  border-radius: 44px 44px 150px 150px / 44px 44px 74px 74px;
  box-shadow: 0 26px 70px rgba(139,80,94,.14), inset 0 0 0 8px rgba(255,255,255,.48);
}
.countdown-story::before,
.countdown-story::after {
  position: absolute;
  pointer-events: none;
  content: "";
}
.countdown-story::before {
  top: 16px;
  right: 18px;
  bottom: 16px;
  left: 18px;
  border: 1px solid rgba(202,117,135,.14);
  border-radius: inherit;
}
.countdown-story::after {
  right: 50%;
  bottom: -46px;
  width: 150px;
  height: 95px;
  background: radial-gradient(ellipse, rgba(209,169,85,.13), transparent 68%);
  transform: translateX(50%);
}
.countdown-heading { position: relative; z-index: 2; }
.countdown-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto .55rem;
  color: #fff9ed;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  border: 4px solid rgba(255,255,255,.82);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(209,169,85,.36);
}
.countdown-heading p { margin: 0; color: var(--rose); font-size: .76rem; letter-spacing: .06em; line-height: 1.9; }
.countdown-heading h2 {
  margin: .12rem 0 0;
  padding: .03em 0 .14em;
  color: #77565d;
  font-family: "Mina Miremad", var(--fa);
  font-size: clamp(2.25rem, 8vw, 3.7rem);
  font-weight: 400;
  line-height: 1.6;
}
.countdown-garland {
  position: relative;
  z-index: 2;
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.35rem, 1.5vw, .8rem);
  margin: .4rem 0 1.7rem;
  padding-top: 3.2rem;
}
.countdown-garland::before {
  position: absolute;
  top: 1.12rem;
  left: 3%;
  width: 94%;
  height: 40px;
  border-top: 2px solid rgba(209,169,85,.68);
  border-radius: 50%;
  content: "";
}
.time-charm {
  position: relative;
  display: grid;
  place-content: center;
  min-width: 0;
  min-height: clamp(96px, 20vw, 124px);
  padding: 1rem .2rem .75rem;
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(249,218,226,.92));
  border: 1px solid rgba(202,117,135,.34);
  border-radius: 48% 48% 42% 42% / 38% 38% 55% 55%;
  box-shadow: 0 13px 26px rgba(134,76,89,.1), inset 0 0 0 4px rgba(255,255,255,.48);
  animation: charmFloat 4.2s ease-in-out infinite;
}
.time-charm:nth-child(even) { margin-top: 15px; animation-delay: -.9s; }
.time-charm:nth-child(3) { animation-delay: -1.8s; }
.time-charm:nth-child(4) { animation-delay: -2.7s; }
.time-charm::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold), rgba(209,169,85,.32));
  content: "";
}
.time-charm i {
  position: absolute;
  bottom: calc(100% + 32px);
  left: 50%;
  width: 9px;
  height: 9px;
  background: #f6c7d1;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(202,117,135,.4);
  transform: translateX(-50%);
}
.time-charm strong {
  display: block;
  color: #76565c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 7vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.time-charm span { display: block; margin-top: .55rem; color: #9b747b; font-size: .68rem; direction: rtl; }
.countdown-story > time { position: relative; z-index: 2; display: block; color: #986d76; font-size: .82rem; line-height: 1.9; }
.countdown-whisper { position: relative; z-index: 2; display: block; margin-top: .35rem; color: #aa8b8f; font-size: .66rem; line-height: 1.9; }
@keyframes charmFloat { 0%,100% { transform: translateY(0) rotate(-.45deg); } 50% { transform: translateY(-4px) rotate(.45deg); } }

/* Program */
.program-section { overflow: hidden; background: linear-gradient(155deg, #f7dce4, #fdeef1 55%, #f5e1d1); }
.section-heading { position: relative; z-index: 2; margin-bottom: 2.7rem; text-align: center; }
.program-list { position: relative; z-index: 2; display: grid; gap: .85rem; max-width: 580px; margin: auto; }
.program-item {
  display: grid;
  grid-template-columns: 52px 64px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  padding: 1rem 1.1rem;
  text-align: right;
  background: rgba(255, 252, 248, .76);
  border: 1px solid rgba(202,117,135,.2);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(134,76,89,.06);
  backdrop-filter: blur(8px);
}
.program-item:nth-child(even) { transform: translateX(-14px); }
.program-item:nth-child(odd) { transform: translateX(14px); }
.program-item.visible { transform: none; }
.program-icon { display: grid; place-items: center; width: 48px; height: 48px; color: white; background: linear-gradient(145deg, #db8fa0, #c66d82); border: 2px solid rgba(255,255,255,.72); border-radius: 50%; box-shadow: 0 0 0 5px rgba(209,169,85,.12); }
.program-icon svg { width: 25px; height: 25px; }
.program-item time { color: var(--rose-deep); font-size: .78rem; font-weight: 700; }
.program-item h3 { margin: 0 0 .28rem; color: #72545a; font-size: 1rem; }
.program-item p { margin: 0; color: #95777d; font-size: .78rem; line-height: 1.8; }

/* Venue */
.venue-section { background: #fffaf3; }
.venue-card {
  max-width: 560px;
  margin: auto;
  padding: 3rem 1.3rem;
  text-align: center;
  background: linear-gradient(160deg, #fffefd, #fcecf0);
  border: 1px solid rgba(209,169,85,.36);
  border-radius: 170px 170px 24px 24px;
  box-shadow: var(--paper-shadow);
}
.venue-pin { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 1rem; color: #fff; background: var(--sage); border-radius: 50%; font-size: 1.45rem; }
.venue-card > p { margin: 0; color: var(--rose); font-size: .8rem; }
.venue-card address { max-width: 420px; margin: .8rem auto 1.4rem; color: #80676b; font-size: .86rem; font-style: normal; line-height: 2; }
.map-preview {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 16 / 10;
  margin: .35rem auto 1.15rem;
  overflow: hidden;
  background: #e9eee6;
  border: 7px solid rgba(255,255,255,.9);
  border-radius: 30px;
  box-shadow: 0 17px 38px rgba(92,112,86,.14), 0 0 0 1px rgba(145,169,139,.25);
}
.map-preview iframe { display: block; width: 100%; height: 100%; pointer-events: none; border: 0; filter: sepia(.08) saturate(.76) hue-rotate(336deg); }
.map-click-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: .7rem; color: #fff; text-decoration: none; background: linear-gradient(180deg, transparent 52%, rgba(74,94,69,.64)); }
.map-click-layer span { padding: .44rem .82rem; line-height: 1.7; background: rgba(90,113,83,.88); border: 1px solid rgba(255,255,255,.38); border-radius: 999px; box-shadow: 0 6px 20px rgba(43,64,39,.18); backdrop-filter: blur(7px); }
.venue-card > .neshan-route {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-width: min(100%, 310px);
  padding: .72rem .9rem;
  color: #fff;
  text-align: right;
  text-decoration: none;
  background: linear-gradient(135deg, #8da989, #6e8769);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(92,112,86,.2), 0 0 0 4px rgba(209,169,85,.13);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.neshan-route svg { width: 31px; height: 31px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.neshan-route span { display: flex; min-width: 0; flex-direction: column; }
.neshan-route b { font-size: .82rem; line-height: 1.7; }
.neshan-route small { color: rgba(255,255,255,.76); font-size: .62rem; line-height: 1.65; }
.neshan-route i { margin-right: auto; font-size: 1.1rem; font-style: normal; }
.venue-card > .neshan-route:hover { filter: brightness(1.04); box-shadow: 0 13px 28px rgba(92,112,86,.27), 0 0 0 5px rgba(209,169,85,.18); transform: translateY(-2px); }

/* Gallery */
.gallery-section { background: #fff7f8; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; max-width: 620px; margin: auto; }
.gallery-card { grid-column: span 6; position: relative; aspect-ratio: 4/5; padding: 0; overflow: hidden; background: #f5dce2; border: 5px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: 0 13px 30px rgba(134,76,89,.1); cursor: zoom-in; }
.gallery-card:nth-child(3n+1) { grid-column: span 12; aspect-ratio: 7/5; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .5s ease; }
.gallery-card:hover img { transform: scale(1.035); filter: saturate(1.05); }
.empty-album { display: grid; place-items: center; min-height: 230px; max-width: 560px; margin: auto; color: #9c7c82; border: 1px dashed rgba(202,117,135,.35); border-radius: 24px; }
.empty-album span { color: var(--rose); font-size: 2.1rem; }
.empty-album p { margin: .4rem 0 0; font-size: .86rem; }

/* Guest forms */
.participation { color: var(--ink); background: linear-gradient(160deg, #edbdc8, #f8dfe5 52%, #f0cfbb); }
.forms-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 640px; margin: auto; }
.forms-layout > form:only-child { grid-column: 1 / -1; width: min(100%, 470px); margin: auto; }
.birthday-form { padding: 1.6rem; background: rgba(255,252,248,.78); border: 1px solid rgba(255,255,255,.72); border-radius: 22px; box-shadow: 0 18px 42px rgba(121,65,78,.08); backdrop-filter: blur(10px); }
.birthday-form h3 { margin: 0 0 1.35rem; padding: .04em 0 .12em; color: #73545b; font-family: "Mina Miremad", var(--fa); font-size: 1.75rem; font-weight: 400; line-height: 1.65; }
.birthday-form label, .birthday-form legend { display: block; color: #775f64; font-size: .8rem; }
.birthday-form label { margin: .85rem 0; }
.birthday-form input, .birthday-form textarea { width: 100%; margin-top: .42rem; padding: .75rem .25rem; color: #654e53; background: transparent; border: 0; border-bottom: 1px solid rgba(142,91,102,.26); border-radius: 0; outline: none; }
.birthday-form textarea { resize: vertical; line-height: 1.9; }
.birthday-form input:focus, .birthday-form textarea:focus { border-color: var(--rose); }
.birthday-form fieldset { margin: 1rem 0; padding: 0; border: 0; }
.birthday-form .choice { display: inline-flex; align-items: center; gap: .4rem; margin: .65rem 0 0 .6rem; }
.birthday-form .choice input { width: auto; margin: 0; accent-color: var(--rose); }
.birthday-form button { margin-top: .8rem; padding: .75rem 1.4rem; color: #fff; background: var(--rose); border: 0; border-radius: 999px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.birthday-form button:hover { background: var(--rose-deep); transform: translateY(-1px); }
.birthday-form button:disabled { opacity: .55; }
.form-result { min-height: 1.5rem; margin: .7rem 0 0; color: var(--rose-deep); font-size: .78rem; }
.guestbook-wall { position: relative; z-index: 2; max-width: 640px; margin: 2rem auto 0; padding: 1.4rem 1rem 1rem; background: rgba(255,249,247,.42); border: 1px solid rgba(255,255,255,.6); border-radius: 28px; box-shadow: 0 17px 42px rgba(121,65,78,.07); backdrop-filter: blur(9px); }
.guestbook-wall > header { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 0 0 1rem; text-align: center; }
.guestbook-wall > header > span { color: var(--gold); font-size: 1rem; }
.guestbook-wall header p { margin: 0; color: var(--rose-deep); font-size: .7rem; line-height: 1.8; }
.guestbook-wall header h3 { margin: 0; padding: .03em 0 .12em; color: #73545b; font-family: "Mina Miremad", var(--fa); font-size: 1.8rem; font-weight: 400; line-height: 1.65; }
.guest-notes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(235px, calc((100% - .8rem) / 2)); gap: .8rem; max-width: 100%; padding: .2rem .1rem .55rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-color: rgba(169,83,104,.28) transparent; scrollbar-width: thin; }
.guest-notes blockquote { position: relative; min-height: 132px; margin: 0; padding: 1.2rem 1.15rem; overflow: hidden; color: #735a5f; background: linear-gradient(145deg, rgba(255,254,250,.94), rgba(255,240,243,.85)); border-right: 3px solid var(--rose); border-radius: 18px 18px 18px 6px; box-shadow: 0 9px 23px rgba(121,65,78,.07); scroll-snap-align: start; }
.guest-notes blockquote::after { position: absolute; bottom: -16px; left: -16px; width: 42px; height: 42px; background: rgba(209,169,85,.11); border-radius: 50%; content: ""; }
.guest-notes p { margin: 0 0 .55rem; font-size: .84rem; line-height: 1.9; }
.guest-notes cite { color: var(--rose-deep); font-size: .75rem; font-style: normal; }
.guestbook-empty { grid-column: 1; width: min(100%, 360px); margin: .2rem auto .5rem!important; padding: 1rem; color: #866a70; text-align: center; background: rgba(255,255,255,.5); border: 1px dashed rgba(202,117,135,.35); border-radius: 16px; }
.guest-note-new { animation: newNote 1.3s ease both; }
@keyframes newNote { 0% { opacity: 0; transform: translateY(12px) rotate(1deg); } 60% { opacity: 1; transform: translateY(-2px) rotate(-.4deg); } 100% { transform: none; } }

/* Footer and floating controls */
.site-footer { padding: 3.4rem 1rem; color: #856a6f; text-align: center; background: #f7e4e7; border-top: 1px solid rgba(202,117,135,.22); }
.footer-logo-link { display: grid; place-items: center; width: 108px; height: 108px; margin: .65rem auto .8rem; color: inherit; border: 1px solid rgba(209,169,85,.32); border-radius: 50%; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.footer-logo-link img { width: 92px; height: 92px; object-fit: contain; mix-blend-mode: multiply; opacity: .92; }
.footer-logo-link:hover { box-shadow: 0 10px 26px rgba(134,76,89,.1); transform: translateY(-2px); }
.site-footer p { margin: .45rem 0 0; font-size: .76rem; }
.footer-instagram { display: inline-block; margin-top: .38rem; padding: .25rem .65rem; color: var(--rose-deep); font-family: Georgia, "Times New Roman", serif; font-size: .83rem; letter-spacing: .035em; text-decoration: none; border-bottom: 1px solid rgba(169,83,104,.28); }
.footer-instagram:hover { color: #7f3f50; }
.footer-stars { color: var(--gold); font-size: .82rem; }
.music-toggle { position: fixed; z-index: 20; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--rose-deep); background: rgba(255,251,248,.9); border: 1px solid rgba(202,117,135,.4); border-radius: 50%; box-shadow: 0 9px 28px rgba(113,63,75,.14); cursor: pointer; backdrop-filter: blur(8px); }
.music-toggle[aria-pressed="true"] { opacity: .55; }

.lightbox { max-width: min(94vw, 920px); max-height: 90vh; padding: 0; overflow: visible; background: transparent; border: 0; }
.lightbox::backdrop { background: rgba(69,42,49,.9); backdrop-filter: blur(8px); }
.lightbox img { max-height: 88vh; object-fit: contain; border-radius: 12px; }
.lightbox button { position: absolute; top: -46px; left: 0; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 680px) {
  #invitation, .site-footer { box-shadow: none; }
  .section-pad { padding: 5.2rem 1.05rem; }
  .hero { padding-inline: .8rem; }
  .fairy-header { width: calc(100% + 1.6rem); margin-inline: -.8rem; }
  .hero-copy { margin-top: -3.6rem; }
  .celebrant-portrait { width: min(76vw, 320px); }
  .invitation-message { min-height: 720px; padding-top: clamp(18rem, 82vw, 27rem); }
  .message-card { padding: 2.1rem 1.25rem; }
  .countdown-story { padding: 2.3rem .8rem 2.1rem; border-radius: 35px 35px 105px 105px / 35px 35px 58px 58px; }
  .countdown-garland { gap: .35rem; }
  .time-charm { min-height: 96px; }
  .program-item { grid-template-columns: 48px 55px 1fr; gap: .7rem; padding: .9rem; }
  .program-item:nth-child(even), .program-item:nth-child(odd) { transform: translateY(20px); }
  .program-item.visible { transform: none; }
  .forms-layout { grid-template-columns: 1fr; }
  .birthday-form { padding: 1.35rem; }
  .guest-notes { grid-auto-columns: 86%; }
}

@media (max-width: 390px) {
  .intro-personal { width: 49%; }
  .intro-personal span { white-space: normal; }
  .guest-welcome { width: 47%; padding-inline: .1rem; }
  .countdown-story { padding-inline: .6rem; }
  .countdown-garland { gap: .24rem; }
  .time-charm { min-height: 90px; padding-inline: .08rem; }
  .time-charm strong { font-size: 1.75rem; }
  .time-charm span { font-size: .62rem; }
  .map-preview { border-width: 5px; border-radius: 22px; }
  .hero-date { flex-direction: column; gap: .15rem; }
  .hero-date i { display: none; }
  .program-item { grid-template-columns: 46px 1fr; }
  .program-item time { grid-row: 1; grid-column: 2; align-self: end; }
  .program-item > div:last-child { grid-column: 2; }
  .program-icon { grid-row: 1 / 3; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .intro-stage { height: 100svh; width: 56.25svh; }
  .intro-hint { bottom: 3.5%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
