:root {
  --pink: #f7a9d1;
  --rose: #df5fa7;
  --lilac: #b9a3ff;
  --blue: #94ddff;
  --gold: #ffd86b;
  --cream: #fff8df;
  --ink: #60224d;
  --deep: #8d3c74;
  --shadow: 0 18px 42px rgba(126, 46, 103, 0.22);
  --script: "Great Vibes", cursive;
  --round: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.86), transparent 12rem),
    linear-gradient(180deg, #9fe4ff 0 32%, #ffd1e8 32% 70%, #f9b269 100%);
  font-family: var(--round);
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(255,216,107,.9), transparent 8rem),
    linear-gradient(180deg, #8edcff 0 50%, #ffd2ea 50% 78%, #f4b164 100%);
  transition: opacity .65s ease, visibility .65s ease, transform .65s ease;
}
.intro.is-open { opacity: 0; visibility: hidden; transform: scale(1.04); pointer-events: none; }
.stars::before, .stars::after {
  content: "✦ ✧ ✦ ✧ ✦";
  position: absolute;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.6rem, 6vw, 3rem);
  letter-spacing: 1rem;
  animation: twinkle 2.4s ease-in-out infinite;
}
.stars::before { top: 8%; left: 5%; }
.stars::after { right: 5%; bottom: 18%; animation-delay: -1s; }
@keyframes twinkle { 50% { opacity: .35; transform: translateY(-8px); } }

.intro-castle {
  position: absolute;
  top: 7%;
  width: min(58vw, 330px);
  opacity: .9;
  filter: drop-shadow(0 20px 28px rgba(97,34,77,.18));
}
.intro-princesses {
  position: absolute;
  left: 50%;
  bottom: 8svh;
  width: min(72vw, 430px);
  transform: translateX(-50%);
  z-index: 2;
  filter: drop-shadow(0 16px 18px rgba(97,34,77,.2));
}
.intro-crown {
  position: absolute;
  top: 15%;
  right: 4%;
  width: clamp(4.6rem, 18vw, 9rem);
  transform: rotate(12deg);
  animation: float 3s ease-in-out infinite;
}
.intro-carriage {
  position: absolute;
  bottom: 4svh;
  right: 3%;
  width: clamp(5.2rem, 22vw, 11rem);
  z-index: 1;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(9deg); } }

.royal-card {
  position: relative;
  z-index: 4;
  width: min(92vw, 520px);
  padding: clamp(1.1rem, 5vw, 2.2rem);
  text-align: center;
  color: var(--ink);
  border: 7px solid #fff;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,239,248,.9)),
    var(--cream);
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(255,216,107,.65);
}
.royal-card::before {
  content: "";
  position: absolute;
  inset: -16px 18px auto;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #fff4b8, var(--gold));
}
.royal-card span, .section-title span, .pill, .map-card span {
  display: inline-flex;
  padding: .35rem .75rem;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 5px 0 rgba(96,34,77,.14);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  line-height: .95;
}
.royal-card h1 {
  margin-top: .4rem;
  color: var(--rose);
  font-size: clamp(4rem, 21vw, 8rem);
}
.royal-card p {
  margin: .2rem 0 1rem;
  color: var(--deep);
  font-weight: 900;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.15rem;
  border: 3px solid rgba(96,34,77,.16);
  border-radius: 999px;
  box-shadow: 0 7px 0 rgba(96,34,77,.16);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.primary { background: linear-gradient(180deg, #fff0a8, var(--gold)); }
.secondary { background: linear-gradient(180deg, #fff, #d9cfff); color: var(--deep); }
.whatsapp { background: linear-gradient(180deg, #6fea9b, #1bb96b); color: #fff; }

.page { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.page.is-visible { opacity: 1; transform: none; }
.panel {
  position: relative;
  width: min(100%, 1120px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(.9rem, 4vw, 2rem);
  overflow: hidden;
}

.hero { display: grid; place-items: center; text-align: center; }
.hero-castle {
  position: absolute;
  top: 5%;
  width: min(80vw, 520px);
  opacity: .92;
}
.hero-princesses {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  width: min(90vw, 620px);
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 18px rgba(96,34,77,.22));
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  margin-top: -8svh;
  padding: clamp(1rem, 5vw, 2rem);
  border: 7px solid #fff;
  border-radius: 30px;
  background: rgba(255,248,253,.88);
  box-shadow: var(--shadow);
}
.hero-copy img { width: 5rem; margin: 0 auto -.5rem; }
.hero-copy h2, .section-title h2, .map-card h2, .final h2 {
  color: var(--rose);
  font-size: clamp(3rem, 16vw, 7rem);
}
.hero-copy p { margin: .2rem auto 1rem; max-width: 26rem; font-size: 1.1rem; font-weight: 900; }

.section-title { position: relative; z-index: 1; margin: 0 auto 2rem; text-align: center; }
.section-title h2 { margin-top: .5rem; }

.portrait {
  position: relative;
  width: min(86vw, 470px);
  margin: 0 auto;
  padding: .85rem;
  border: 9px solid #fff;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffd7ec, #fff3b1);
  box-shadow: var(--shadow);
}
.kid { aspect-ratio: 4 / 5; border-radius: 24px; object-fit: cover; }
.wand, .portrait-crown {
  position: absolute;
  width: clamp(5rem, 18vw, 8rem);
  filter: drop-shadow(0 10px 10px rgba(96,34,77,.2));
}
.wand { left: -1rem; bottom: -1rem; transform: rotate(-18deg); }
.portrait-crown { right: -1rem; top: -2rem; transform: rotate(16deg); }

.info-grid, .countdown, .dress-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.info-grid article, .countdown div, .dress-grid article {
  min-height: 136px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 1rem;
  text-align: center;
  border: 6px solid #fff;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff8fd, #ffd8ec);
  box-shadow: var(--shadow);
}
.info-grid span, .dress-grid span, .countdown span { color: var(--deep); font-weight: 900; text-transform: uppercase; }
.info-grid strong { font-size: clamp(1rem, 4.2vw, 1.45rem); }

.countdown-panel { background: linear-gradient(180deg, rgba(185,163,255,.4), rgba(255,209,232,.25)); }
.floating-wand {
  position: absolute;
  right: -2rem;
  top: 4rem;
  width: min(36vw, 190px);
  animation: wandMove 4s ease-in-out infinite;
}
@keyframes wandMove { 50% { transform: rotate(14deg) translateY(12px); } }
.countdown strong {
  color: var(--rose);
  font-family: var(--script);
  font-size: clamp(3rem, 13vw, 5.5rem);
  line-height: .8;
}
.today { text-align: center; font-weight: 900; color: var(--rose); }

.story {
  display: grid;
  grid-template-columns: minmax(0, .8fr) 1fr;
  gap: 1rem;
  align-items: center;
}
.story img { width: min(80vw, 420px); margin: 0 auto; }
.story div, .map-card {
  padding: clamp(1.2rem, 5vw, 2rem);
  border: 7px solid #fff;
  border-radius: 28px;
  background: rgba(255,248,253,.88);
  box-shadow: var(--shadow);
}
.story h2 { color: var(--rose); font-size: clamp(2.6rem, 11vw, 5.5rem); }
.story p, .map-card p, .royal-card.inline p { font-weight: 800; }

.dress-grid article img { height: 84px; object-fit: contain; }
.map, .gifts, .confirm, .final { display: grid; place-items: center; text-align: center; }
.map-card { width: min(92vw, 620px); }
.place { color: var(--rose); font-size: 1.35rem; font-weight: 900; }
.royal-card.inline h2 { color: var(--rose); font-size: clamp(2.6rem, 12vw, 5.5rem); }
.gift-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.gallery-grid button {
  padding: .45rem;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, -1.4deg));
}
.gallery-grid button:nth-child(even) { --tilt: 1.4deg; }
.gallery-grid img { aspect-ratio: 1; border-radius: 16px; object-fit: cover; }

.confirm > img { width: min(92vw, 520px); margin-bottom: -1.2rem; z-index: 1; }
.copied { color: var(--rose); font-weight: 900; }
.final img { width: min(82vw, 460px); }
.final p { margin: 0; color: var(--deep); font-family: var(--script); font-size: clamp(3rem, 17vw, 7rem); }

.music {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: 54px;
  height: 54px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  box-shadow: var(--shadow);
}
.lightbox { width: min(94vw, 760px); padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(96,34,77,.82); }
.lightbox img { width: 100%; max-height: 82svh; border: 9px solid #fff; border-radius: 24px; object-fit: contain; background: #fff; }
.close, .nav {
  position: fixed;
  z-index: 2;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}
.close { top: 1rem; right: 1rem; width: 48px; height: 48px; }
.nav { top: 50%; width: 48px; height: 64px; transform: translateY(-50%); }
.prev { left: .6rem; } .next { right: .6rem; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (min-width: 780px) {
  .info-grid, .countdown, .dress-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-princesses {
    left: 3%;
    bottom: 4svh;
    width: min(34vw, 430px);
    transform: none;
  }
  .intro-carriage {
    right: 4%;
    bottom: 7svh;
    width: min(19vw, 220px);
  }
}

@media (max-width: 560px) {
  .intro-castle { top: 6%; width: 76vw; }
  .intro-princesses { width: 86vw; bottom: 4svh; }
  .intro-crown { width: 4.8rem; top: 10%; }
  .intro-carriage { width: 5.8rem; bottom: 2svh; }
  .royal-card { margin-top: -7svh; }
  .royal-card h1 { font-size: clamp(3.6rem, 19vw, 5.2rem); }
  .hero-princesses { width: 94vw; bottom: 0; }
  .hero-copy { margin-top: -16svh; }
  .story { grid-template-columns: 1fr; text-align: center; }
}

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