/* Princess Pink Castle theme. Loaded after style.css to preserve original interactions. */
:root {
  --ink: #57364d;
  --ink-soft: #846a80;
  --purple: #bb5d91;
  --purple-deep: #71344f;
  --pink: #ee9fbe;
  --pink-soft: #fff0f6;
  --blue: #d7d5ff;
  --lavender: #f0e2fb;
  --gold: #edc783;
  --gold-dark: #a7783a;
  --cream: #fff9fc;
  --line: rgba(157, 76, 119, .15);
  --shadow: 0 22px 70px rgba(125, 59, 97, .12);
}
html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg, #fffafd 0%, #fff6fb 52%, #fffaf6 100%); color: var(--ink); }
.site-header { background: rgba(255, 249, 252, .9); border-bottom-color: rgba(188, 97, 143, .14); }
.brand-mark { color: var(--gold-dark); text-shadow: 0 2px 12px #f1d5a8aa; }
.brand-light { color: #c77ca2; }
.main-nav { color: #77566c; }
.nav-cta { background: #ffe5f0; color: #8e3f66; }
.demo-banner { background: #fff0f6; color: #8b4a6b; }
.demo-dot { background: #d26d9c; }
.button-primary { background: linear-gradient(120deg, #a94779, #71344f); box-shadow: 0 10px 24px rgba(145, 56, 100, .2); }
.button-primary:hover { background: #823958; box-shadow: 0 14px 30px rgba(145, 56, 100, .25); }
.button-gold { background: linear-gradient(110deg, #ffe9b8, #edc783 58%, #fff0cd); color: #683e4c; }
.button-outline { border-color: rgba(187, 93, 145, .3); color: #8e3f66; }

/* Royal invitation cover, with the provided castle artwork as its backdrop. */
.invite-cover {
  background:
    linear-gradient(180deg, rgba(75, 31, 65, .34), rgba(75, 31, 65, .76)),
    url('../images/princess-castle.webp') center 42% / cover no-repeat,
    linear-gradient(135deg, #6e365d, #a85883);
  isolation: isolate;
}
.invite-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 218, 237, .13), transparent 52%);
}
.cover-glow-one { background: #ffb6d4; opacity: .23; }
.cover-glow-two { background: #f9d99e; opacity: .2; }
.cover-eyebrow { color: #ffe4b2; text-shadow: 0 1px 8px #57244380; }
.cover-float { color: #ffdf9e; text-shadow: 0 4px 20px #4a1d3e88; }
.float-balloon { font-size: 54px; }
.letter { background: linear-gradient(145deg, #fffaf9, #fff0f6); border: 1px solid #f1d4df; border-radius: 5px 5px 2px 2px; }
.letter-script { color: #874365; }
.letter-spark { color: #b2823d; }
.envelope-back { background: linear-gradient(135deg, #d88db4, #f4c3d9); }
.envelope-front { background: linear-gradient(145deg, #f9d9e8, #d88db4); }
.envelope-flap { background: linear-gradient(130deg, #ffedf5, #e7aaca); }
.envelope-seal { background: linear-gradient(135deg, #fbe5ae, #c39450); color: #71434d; box-shadow: 0 3px 12px #52213b40; }
.cover-guest { text-shadow: 0 2px 16px #54244470; }
.cover-demo { color: #ffe3ef; }
.cover-footnote { color: #ffe4ef; }

.hero { isolation: isolate; }
.hero::before {
  content: '✧';
  position: absolute;
  top: 50px;
  right: 0;
  z-index: -1;
  color: #e4b3cc;
  opacity: .25;
  font-size: clamp(130px, 23vw, 300px);
  line-height: 1;
  pointer-events: none;
}
.pill { border-color: #f0cadb; background: #fff3f8; color: #9b4f77; }
.hero-kicker { color: #a75e83; }
.hero h1 span { color: #bd6691; text-shadow: 0 8px 30px rgba(212, 128, 169, .12); }
.hero-person h2 { color: #71344f; }
.person-rule { background: linear-gradient(var(--gold), var(--pink), var(--purple)); }
.person-label { color: #a56889; }
.hero-meta .meta-icon { background: #ffe8f1; color: #b04f80; }
.hero-art { min-height: 555px; }
.art-halo { background: radial-gradient(circle, #ffe5ef 0, #f5dcf5 47%, rgba(255, 240, 248, 0) 73%); }
.art-ring { border-color: #d9a5c2; }
.art-ring-two { border-color: #e4bd75; }
.portrait-frame {
  width: min(355px, 72%);
  padding: 9px 9px 0;
  border: 1px solid #edcfaa;
  border-radius: 180px 180px 9px 9px;
  background: linear-gradient(145deg, #fffefa, #fff0f6);
  box-shadow: 0 25px 75px rgba(116, 51, 86, .21), 0 0 0 5px rgba(255, 255, 255, .5);
  transform: rotate(1deg);
}
.portrait-frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 56% 42%; border-radius: 172px 172px 5px 5px; background: #f8dfec; }
.portrait-frame figcaption { color: #a55d82; }
.portrait-frame figcaption span:last-child { color: #b18443; }
.art-sticker { background: linear-gradient(145deg, #c66a98, #8c3c68); border: 2px solid #f5d394; box-shadow: 0 8px 25px #7c3a6340, inset 0 0 0 3px #ffffff24; }
.art-date-card { border: 1px solid #e9c986; border-radius: 5px 5px 24px 5px; background: #fffdf7; box-shadow: 0 12px 30px #783d641f; }
.art-date-card strong { color: #a34b78; }
.art-date-card i { background: linear-gradient(90deg, #efc578, #d58ab0); }
.art-balloon { color: #c16b99; text-shadow: 0 8px 18px #b76c9928; }
.art-bottom-note { color: #a46083; }

.countdown-section { background: linear-gradient(125deg, #fff0f6, #f5ebfb 56%, #fff8ea); border-color: #f0d7e5; box-shadow: 0 18px 46px rgba(158, 86, 126, .08); }
.countdown-section:before, .countdown-section:after { color: #c09551; }
.count-box { border-color: #edcbdc; background: rgba(255, 255, 255, .72); }
.count-box strong { color: #a64d7c; }
.count-box span { color: #92657f; }
.count-colon { color: #c080a0; }
.section-kicker { color: #b06b91; }
.section-heading h2 em, .countdown-heading h2 em, .about-inner h2 em, .rsvp-copy h2 em { color: #bd6794; }
.detail-card { border-color: #f0dce6; box-shadow: 0 12px 36px rgba(132, 63, 100, .055); }
.detail-card::before { content: '✧'; position: absolute; right: 17px; top: 9px; color: #deb978; font-size: 23px; opacity: .7; }
.detail-icon { background: #ffedf4; color: #b35e89; }
.detail-label { color: #b07990; }
.calendar-mini { background: linear-gradient(180deg, #fff8fb, #ffebf3); border-color: #f0d0df; }
.calendar-mini strong { color: #9b4772; }
.text-link { color: #a44b79; }
.map-preview { background-color: #f7eaf1; }
.map-road { background: #fff8f9; }
.map-pin { background: #be5a8c; }
.swatch-pink { background: #f3a9c9; }
.swatch-lilac { background: #d9c0f5; }
.swatch-blue { background: #c4d8fa; }
.swatch-gold { background: #edcc87; }
.dress-code strong { color: #a34b78; }
.about-section { background: linear-gradient(120deg, #ffe9f2, #f4e6fb 55%, #fff0e5); }
.about-section:before { background-image: radial-gradient(#c783a8 1px, transparent 1px); }
.about-label { color: #9e5c80; border-bottom-color: #e7bcd0; }
.quote-mark { color: #d99abc; }
.about-inner h2 { color: #613b55; }
.about-stamp { border-color: #d4a7c1; color: #af6d91; }
.gallery-item { background: #f3deea; border: 1px solid #f0d7e4; box-shadow: 0 13px 34px rgba(132, 63, 100, .1); }
.gallery-item:after { background: linear-gradient(transparent, rgba(81, 34, 65, .76)); }
.gallery-caption b { background: #fff3f8; color: #a64d7c; }
.gallery-note span { color: #b78345; }
.rsvp-section { background: linear-gradient(135deg, #fff0f6, #f3e9fb); }
.rsvp-section:before { background: #f7dce9; }
.rsvp-section:after { background: #f9e7c9; }
.rsvp-note-icon { background: #ffdfec; color: #ab4f7d; }
.rsvp-card { border-color: #f0d6e3; box-shadow: 0 24px 65px rgba(132, 63, 100, .13); }
.form-header h3 span { color: #c06c97; }
.rsvp-card input:focus, .rsvp-card select:focus, .rsvp-card textarea:focus { border-color: #ce82a6; box-shadow: 0 0 0 3px #fce0eb; }
.button-whatsapp { background: #e7f6e9; color: #27633c; }
.wishes-empty { border-color: #e7c3d7; background: #fff8fb; }
.wish-card { border-color: #f0dce6; box-shadow: 0 8px 24px rgba(132, 63, 100, .06); }
.wish-card:nth-child(3n+2) { background: #fff4f8; }
.wish-avatar { background: #ffdfec; color: #a54d7b; }
.wishes-actions .button-outline { background: #fff8fb; }
.finale-section { background: linear-gradient(130deg, #743753, #a54f7b 53%, #71334f); }
.finale-section:before, .finale-section:after { border-color: #f0cc8b52; }
.finale-section h2 em { color: #ffd7e8; }
.finale-section .section-kicker { color: #ffdda4; }
.finale-signature { color: #ffe1a9; }
.button-glass { border-color: #ffffff60; background: #ffffff12; }
.site-footer { background: #54273f; color: #f7dfea; }
.footer-brand .brand-light { color: #f3bfd6; }
.footer-brand .brand-mark { color: #f1d08e; }
.site-footer > p { color: #e4b8ca; }
.site-footer small { color: #d7a7bf; }
.back-top { border-color: #ffffff48; }
.lightbox { background: #fff8fb; }
.lightbox-close { background: #ffe5f0; color: #8d3c65; }

@media (max-width: 760px) {
  .hero::before { top: 25px; right: -10px; font-size: 140px; }
  .hero-art { min-height: 450px; }
  .portrait-frame { width: min(300px, 71%); }
  .invite-cover { background-position: center, 56% center, center; }
  .cover-content { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { display: none; }
}


/* Baby Princess photo treatment */
.portrait-frame img { object-position: center 48%; }
.age-unit { color: var(--gold-dark); font-size: 11px; font-weight: 600; }
#celebration-label { color: var(--ink-soft); }
.gallery-item img { object-position: center 48%; }
@media (max-width: 760px) { .portrait-frame img { object-position: center 47%; } }


/* Cinematic fairytale video + floating storybook creatures. */
.princess-dream-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .17; filter: saturate(.9) brightness(1.08); transform: translateZ(0);
  mix-blend-mode: screen; pointer-events: none;
}
.dream-creature { position: absolute; z-index: 2; pointer-events: none; user-select: none;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,.7)); will-change: transform; }
.creature-butterfly { font-size: clamp(20px, 3vw, 34px); }
.butterfly-one { left: -8%; top: 27%; animation: butterflyFlightOne 19s linear infinite; }
.butterfly-two { left: -10%; top: 63%; animation: butterflyFlightTwo 24s linear 4s infinite; }
.creature-dove { font-size: clamp(22px, 3.2vw, 38px); opacity: .72; }
.dove-one { left: -9%; top: 17%; animation: doveFlightOne 32s linear infinite; }
.dove-two { right: -9%; top: 47%; animation: doveFlightTwo 36s linear 8s infinite; }
.dream-fireflies { position: absolute; inset: 0; z-index: 1; }
.dream-firefly { position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #fff1a8; box-shadow: 0 0 8px 3px #ffe8a588, 0 0 18px 5px #ffcce588;
  animation: fireflyGlow var(--glow, 4s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes butterflyFlightOne { 0%{transform:translate(-10vw,12vh) rotate(-12deg)} 25%{transform:translate(28vw,-5vh) rotate(12deg)} 52%{transform:translate(55vw,10vh) rotate(-8deg)} 78%{transform:translate(82vw,-8vh) rotate(14deg)} 100%{transform:translate(115vw,5vh) rotate(0)} }
@keyframes butterflyFlightTwo { 0%{transform:translate(-10vw,0) rotate(10deg)} 30%{transform:translate(35vw,9vh) rotate(-14deg)} 60%{transform:translate(67vw,-9vh) rotate(8deg)} 100%{transform:translate(115vw,4vh) rotate(-4deg)} }
@keyframes doveFlightOne { 0%{transform:translate(-8vw,2vh) scale(.8)} 45%{transform:translate(48vw,-8vh) scale(1)} 100%{transform:translate(115vw,3vh) scale(.82)} }
@keyframes doveFlightTwo { 0%{transform:translate(0,0) scale(.8)} 50%{transform:translate(-55vw,-8vh) scale(1)} 100%{transform:translate(-115vw,4vh) scale(.85)} }
@keyframes fireflyGlow { from{opacity:.12; transform:translate3d(0,5px,0) scale(.65)} to{opacity:.95; transform:translate3d(8px,-12px,0) scale(1.25)} }

/* Living fairytale atmosphere, inspired by animated storybook invitations. */
.magic-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  isolation: isolate;
}
.magic-castle-veil {
  position: absolute;
  inset: -7%;
  background-image: linear-gradient(180deg, rgba(255, 224, 240, .18), rgba(244, 220, 251, .22)), url('../images/princess-castle.webp');
  background-position: center, 48% 46%;
  background-size: cover, cover;
  background-repeat: no-repeat;
  opacity: .115;
  filter: saturate(.82) blur(.7px);
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  animation: castleDreamDrift 48s ease-in-out infinite alternate;
  will-change: transform, background-position;
}
.magic-aurora {
  position: absolute;
  width: min(58vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(58px);
  opacity: .16;
  will-change: transform;
}
.magic-aurora-one {
  left: -23%;
  top: 5%;
  background: radial-gradient(circle, #f6a8ce 0%, #f6a8ce22 58%, transparent 73%);
  animation: auroraWanderOne 31s ease-in-out infinite alternate;
}
.magic-aurora-two {
  right: -25%;
  bottom: -8%;
  background: radial-gradient(circle, #d4b6f5 0%, #d4b6f522 58%, transparent 73%);
  animation: auroraWanderTwo 37s ease-in-out infinite alternate;
}
.magic-orb {
  position: absolute;
  width: clamp(70px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.82), rgba(255,220,237,.2) 42%, transparent 72%);
  opacity: .23;
  filter: blur(1px);
  animation: orbBreathe 9s ease-in-out infinite;
}
.magic-orb-one { top: 18%; right: 9%; }
.magic-orb-two { bottom: 15%; left: 8%; animation-delay: -4.5s; }
.magic-particles { position: absolute; inset: 0; }
.magic-particle {
  position: absolute;
  left: var(--x);
  top: 110%;
  font-size: var(--size);
  line-height: 1;
  color: #bd789f;
  opacity: 0;
  text-shadow: 0 0 12px rgba(255, 194, 224, .72), 0 0 24px rgba(255,255,255,.55);
  animation: princessPetalJourney var(--duration) linear var(--delay) infinite;
  will-change: transform, opacity;
  user-select: none;
}
.magic-particle:nth-child(3n) { color: #c39a4d; }
.magic-particle:nth-child(4n) { color: #a68ac8; }

/* Slow-moving washes make the whole page feel like a living storybook. */
.hero {
  background-image: radial-gradient(ellipse at 82% 25%, rgba(255, 214, 233, .23), transparent 43%), radial-gradient(ellipse at 9% 80%, rgba(221, 204, 250, .2), transparent 46%);
  background-size: 180% 180%;
  animation: pastelDreamWash 27s ease-in-out infinite alternate;
}
.countdown-section { background-size: 220% 220%; animation: pastelDreamWash 32s ease-in-out infinite alternate; }
.about-section { background-size: 220% 220%; animation: pastelDreamWash 35s ease-in-out infinite alternate-reverse; }
.rsvp-section { background-size: 220% 220%; animation: pastelDreamWash 30s ease-in-out infinite alternate; }
.invite-cover { background-size: auto, 108% auto, auto; animation: coverCastleDrift 34s ease-in-out infinite alternate; }
.invite-cover.is-closing { animation: coverFade .65s ease forwards; }

@keyframes castleDreamDrift {
  0% { transform: scale(1.02) translate3d(-.8%, .3%, 0); background-position: center, 45% 44%; }
  100% { transform: scale(1.09) translate3d(1%, -1%, 0); background-position: center, 55% 51%; }
}
@keyframes auroraWanderOne {
  0% { transform: translate3d(0, 0, 0) scale(.92); }
  100% { transform: translate3d(17vw, 12vh, 0) scale(1.13); }
}
@keyframes auroraWanderTwo {
  0% { transform: translate3d(0, 0, 0) scale(1.04); }
  100% { transform: translate3d(-14vw, -11vh, 0) scale(.9); }
}
@keyframes orbBreathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.88); opacity: .12; }
  50% { transform: translate3d(10px, -16px, 0) scale(1.08); opacity: .28; }
}
@keyframes princessPetalJourney {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--glow); }
  85% { opacity: calc(var(--glow) * .75); }
  100% { transform: translate3d(var(--drift), -125vh, 0) rotate(var(--turn)); opacity: 0; }
}
@keyframes pastelDreamWash {
  0% { background-position: 0% 35%; }
  100% { background-position: 100% 65%; }
}
@keyframes coverCastleDrift {
  0% { background-position: center, 48% 42%, center; }
  100% { background-position: center, 54% 48%, center; }
}

@media (max-width: 760px) {
  .magic-atmosphere { opacity: .8; }
  .magic-castle-veil { opacity: .075; inset: -3%; }
  .magic-aurora { filter: blur(40px); opacity: .13; }
  .magic-orb { opacity: .13; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .countdown-section, .about-section, .rsvp-section, .invite-cover {
    animation: none !important;
    transition: none !important;
  }
}

/* FIX: make the actual video a visible, full-page backdrop behind the invitation.
   Keep content above it and use translucent washes for legibility. */
html { background: #fff8fc; }
body { background: transparent !important; }
.magic-atmosphere {
  z-index: 0 !important;
  display: block !important;
  opacity: 1 !important;
}
.princess-dream-video {
  z-index: -2;
  opacity: .68;
  filter: saturate(1.02) brightness(1.03) contrast(.98);
  mix-blend-mode: normal;
  object-position: 49% center;
}
.magic-castle-veil {
  z-index: -1;
  opacity: .07;
  filter: saturate(.9) blur(.3px);
  mix-blend-mode: normal;
}
.magic-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,248,252,.08), rgba(255,247,252,.16) 48%, rgba(255,249,252,.23));
}
.dream-creature, .dream-fireflies, .magic-particles { z-index: 2; }
.site-header, .demo-banner, main, .site-footer { position: relative; z-index: 1; }
.site-header { background: rgba(255,249,252,.84) !important; }
.demo-banner { background: rgba(255,240,246,.83) !important; }
.hero {
  background-image:
    linear-gradient(90deg, rgba(255,250,253,.58) 0%, rgba(255,246,251,.24) 53%, rgba(255,248,252,.18) 100%),
    radial-gradient(ellipse at 82% 25%, rgba(255,214,233,.17), transparent 43%),
    radial-gradient(ellipse at 9% 80%, rgba(221,204,250,.16), transparent 46%);
  background-size: 100% 100%, 180% 180%, 180% 180%;
}
.countdown-section {
  background: linear-gradient(125deg, rgba(255,240,246,.76), rgba(245,235,251,.72) 56%, rgba(255,248,234,.76)) !important;
}
.about-section {
  background: linear-gradient(120deg, rgba(255,233,242,.84), rgba(244,230,251,.80) 55%, rgba(255,240,229,.83)) !important;
}
.rsvp-section {
  background: linear-gradient(135deg, rgba(255,240,246,.84), rgba(243,233,251,.82)) !important;
}
.details-section, .gallery-section, .wishes-section {
  background: rgba(255,250,253,.25);
  backdrop-filter: blur(1.5px);
}
.detail-card, .gallery-item, .rsvp-card, .wish-card, .wishes-empty {
  background-color: rgba(255,253,254,.91);
}
/* Respect reduced-motion for CSS flourishes, but do not hide the requested video backdrop. */
@media (prefers-reduced-motion: reduce) {
  .magic-atmosphere { display: block !important; }
  .princess-dream-video { display: block !important; }
  .magic-castle-veil, .magic-aurora, .magic-orb, .dream-creature, .dream-firefly, .magic-particle {
    animation: none !important;
  }
}


/* Small, user-controlled pause/resume switch for the magical background. */
.magic-motion-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  border: 1px solid rgba(187,93,145,.26);
  border-radius: 999px;
  padding: 9px 13px;
  color: #874365;
  background: rgba(255,248,252,.91);
  box-shadow: 0 5px 22px rgba(125,59,97,.14);
  backdrop-filter: blur(10px);
  font: 600 11px/1.2 'DM Sans', Arial, sans-serif;
}
.magic-motion-toggle:hover { background: #fff0f6; }
.magic-motion-toggle:focus-visible { outline: 3px solid #c77ca2; outline-offset: 3px; }
body.magic-motion-paused .magic-atmosphere * { animation-play-state: paused !important; }
body.magic-motion-paused .hero,
body.magic-motion-paused .countdown-section,
body.magic-motion-paused .about-section,
body.magic-motion-paused .rsvp-section,
body.magic-motion-paused .invite-cover { animation-play-state: paused !important; }
@media (max-width: 760px) {
  .magic-motion-toggle { right: 9px; bottom: 9px; padding: 8px 10px; font-size: 10px; }
}

/* This invitation explicitly requests ambient movement. Keep these selected effects
   available even when the browser reduces incidental UI transitions; visitors can pause them. */
@media (prefers-reduced-motion: reduce) {
  .butterfly-one { animation: butterflyFlightOne 19s linear infinite !important; }
  .butterfly-two { animation: butterflyFlightTwo 24s linear 4s infinite !important; }
  .dove-one { animation: doveFlightOne 32s linear infinite !important; }
  .dove-two { animation: doveFlightTwo 36s linear 8s infinite !important; }
  .dream-firefly { animation: fireflyGlow var(--glow, 4s) ease-in-out var(--delay, 0s) infinite alternate !important; }
  .magic-particle { animation: princessPetalJourney var(--duration) linear var(--delay) infinite !important; }
  .magic-castle-veil { animation: castleDreamDrift 48s ease-in-out infinite alternate !important; }
  .magic-aurora-one { animation: auroraWanderOne 31s ease-in-out infinite alternate !important; }
  .magic-aurora-two { animation: auroraWanderTwo 37s ease-in-out infinite alternate !important; }
  .magic-orb { animation: orbBreathe 9s ease-in-out infinite !important; }
}


/* Visible, user-initiated official Disney music video player. */
.disney-music-player {
  position: fixed;
  right: 16px;
  bottom: 66px;
  z-index: 75;
  width: min(340px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(199, 124, 162, .42);
  border-radius: 16px;
  background: rgba(255, 249, 252, .97);
  box-shadow: 0 18px 55px rgba(81, 37, 65, .28);
  backdrop-filter: blur(12px);
}
.disney-music-player[hidden] { display: none !important; }
.disney-player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: #71344f;
}
.disney-player-heading > div { min-width: 0; display: grid; gap: 3px; }
.disney-player-kicker { color: #a05a80; font: 700 9px/1.2 'DM Sans', Arial, sans-serif; letter-spacing: .16em; }
.disney-player-heading strong { font: 600 12px/1.35 'DM Sans', Arial, sans-serif; }
.disney-player-close {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #edcbdc;
  border-radius: 50%;
  color: #874365;
  background: #fff0f6;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
#disney-music-frame { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #2d1828; }
.disney-player-footnote { margin: 0; padding: 7px 10px 9px; color: #886b7d; font: 500 10px/1.4 'DM Sans', Arial, sans-serif; }
@media (max-width: 420px) {
  .disney-music-player { right: 8px; bottom: 58px; width: min(320px, calc(100vw - 16px)); border-radius: 13px; }
  .disney-player-heading { padding: 9px 10px; }
}


/* Full-width birthday film: large cinematic frame, autoplay muted when it enters view. */
.memory-video-section.section-shell {
  position: relative;
  display: block;
  isolation: isolate;
  width: min(1480px, calc(100% - clamp(28px, 4.5vw, 88px)));
  max-width: 1480px;
  margin: clamp(22px, 3.5vw, 44px) auto clamp(72px, 9vw, 118px);
  padding: clamp(26px, 4.2vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(213, 159, 189, .50);
  border-radius: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 221, 237, .92), transparent 36%),
    radial-gradient(ellipse at 92% 100%, rgba(241, 218, 250, .88), transparent 38%),
    linear-gradient(125deg, rgba(255, 250, 252, .97), rgba(255, 239, 247, .95) 53%, rgba(255, 247, 238, .97));
  box-shadow: 0 24px 72px rgba(122, 64, 103, .14);
}
.memory-video-section::before,
.memory-video-section::after {
  position: absolute;
  z-index: -1;
  content: '✦';
  color: rgba(190, 134, 67, .65);
  pointer-events: none;
}
.memory-video-section::before { top: 24px; right: 32px; font-size: clamp(22px, 3vw, 34px); }
.memory-video-section::after { left: 28px; bottom: 24px; font-size: 24px; color: rgba(194, 99, 148, .55); }
.memory-video-copy { position: relative; z-index: 1; max-width: 920px; margin: 0 auto clamp(24px, 3.5vw, 42px); text-align: center; }
.memory-video-copy .section-kicker { margin-bottom: 9px; }
.memory-video-copy h2 { margin: 10px 0 16px; font: 600 clamp(34px, 4.5vw, 58px)/1.08 var(--serif); letter-spacing: -.045em; color: #56304d; }
.memory-video-copy h2 em { color: #ba6591; font-weight: 500; }
.memory-video-copy > p { max-width: 740px; margin-inline: auto; color: #7e6278; font-size: clamp(13px, 1.2vw, 15px); line-height: 1.85; }
.memory-video-frame { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(6px, .9vw, 10px); overflow: hidden; border: 1px solid rgba(234, 201, 220, .95); border-radius: clamp(20px, 2.4vw, 32px); background: linear-gradient(145deg, #fff, #fff0f6); box-shadow: 0 22px 62px rgba(86, 48, 77, .20), 0 0 0 1px rgba(255,255,255,.86) inset; }
.memory-video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: clamp(14px, 1.7vw, 22px); background: #251522; }
.memory-video-frame figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 7px 12px 1px; color: #9c6484; font-size: clamp(8px, .8vw, 10px); font-weight: 700; letter-spacing: .15em; }
.memory-video-caption { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto 0; color: #70405b; }
.memory-video-heart { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(215, 151, 183, .35); border-radius: 15px; color: #b24f82; background: #ffe5ef; font-size: 23px; }
.memory-video-caption strong, .memory-video-caption small { display: block; }
.memory-video-caption strong { font-size: 13px; }
.memory-video-caption small { margin-top: 3px; color: #9b8194; font-size: 11px; }
.memory-video-status { max-width: 760px; margin: 11px auto 0; text-align: center; color: #9b8194; font-size: 11px; line-height: 1.6; }
@media (max-width: 760px) {
  .memory-video-section.section-shell { width: calc(100% - 22px); margin-top: 18px; margin-bottom: 78px; padding: 25px 12px 24px; border-radius: 23px; }
  .memory-video-section::before { top: 12px; right: 14px; font-size: 19px; }
  .memory-video-section::after { left: 12px; bottom: 14px; font-size: 16px; }
  .memory-video-copy { margin-bottom: 21px; padding-inline: 3px; }
  .memory-video-copy h2 { font-size: clamp(30px, 8.8vw, 42px); margin: 9px 0 12px; }
  .memory-video-copy > p { font-size: 12px; line-height: 1.8; }
  .memory-video-frame { padding: 4px; border-radius: 17px; }
  .memory-video-frame video { border-radius: 12px; }
  .memory-video-frame figcaption { min-height: 31px; padding: 6px 5px 0; font-size: 7px; letter-spacing: .09em; }
  .memory-video-caption { margin-top: 18px; gap: 9px; }
  .memory-video-heart { width: 36px; height: 36px; border-radius: 12px; font-size: 20px; }
  .memory-video-caption strong { font-size: 11px; }
  .memory-video-caption small { font-size: 9px; }
  .memory-video-status { padding-inline: 4px; font-size: 10px; }
}

/* Floating center dock: it appears after the reader starts scrolling. */
.floating-nav {
  position: fixed;
  z-index: 68;
  left: 50%;
  bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 7px;
  overflow-x: auto;
  border: 1px solid rgba(197, 119, 157, .28);
  border-radius: 999px;
  background: rgba(255, 250, 253, .91);
  box-shadow: 0 10px 35px rgba(96, 46, 77, .20), 0 2px 8px rgba(255,255,255,.75) inset;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(.97);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  scrollbar-width: none;
}
.floating-nav::-webkit-scrollbar { display: none; }
.floating-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
body.cover-open .floating-nav { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.floating-nav a {
  display: flex;
  flex: 0 0 auto;
  min-width: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 5px 9px 4px;
  border-radius: 999px;
  color: #835e77;
  font: 600 9px/1.3 'DM Sans', Arial, sans-serif;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.floating-nav a:hover { color: #903d68; background: rgba(255, 226, 239, .7); }
.floating-nav a.is-active { color: #fff; background: linear-gradient(130deg, #c56c98, #8b3c69); box-shadow: 0 4px 12px rgba(139, 60, 105, .2); }
.floating-nav-icon { font-size: 18px; line-height: 1.15; }
.floating-nav a:focus-visible { outline-color: #b65386; outline-offset: 1px; }
/* Keep the pause control clear of the new bottom-center navigation on phones. */
.magic-motion-toggle { bottom: 84px !important; }
@media (max-width: 760px) {
  .memory-video-section { grid-template-columns: 1fr; gap: 22px; margin-top: 4px; padding: 23px 18px 24px; border-radius: 24px; }
  .memory-video-copy h2 { max-width: 440px; font-size: clamp(31px, 9vw, 42px); }
  .memory-video-copy > p { font-size: 12px; }
  .memory-video-frame { width: min(100%, 480px); margin-inline: auto; border-width: 5px; border-radius: 18px; transform: none; }
  .memory-video-frame video { max-height: 68vh; }
  .memory-video-frame figcaption { min-height: 31px; font-size: 8px; }
  .floating-nav { gap: 1px; padding: 5px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .floating-nav a { min-width: 54px; padding: 5px 6px 4px; font-size: 8px; }
  .floating-nav-icon { font-size: 16px; }
  .magic-motion-toggle { right: 10px !important; bottom: 78px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-nav { transition: none; }
}

/* Storybook welcome scene after the hero: layered illustration with gentle floating motion. */
.enchanted-welcome-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(54px, 7.5vw, 100px) 0 clamp(58px, 8vw, 108px);
  background:
    radial-gradient(ellipse at 9% 25%, rgba(255, 194, 221, .37), transparent 34%),
    radial-gradient(ellipse at 89% 64%, rgba(219, 194, 247, .38), transparent 38%),
    linear-gradient(145deg, rgba(255, 244, 249, .82), rgba(255, 249, 252, .56) 48%, rgba(248, 235, 252, .78));
  border-block: 1px solid rgba(218, 168, 195, .22);
}
.enchanted-welcome-section::before,
.enchanted-welcome-section::after {
  content: '✧'; position: absolute; z-index: -1; color: rgba(184, 113, 157, .25); pointer-events: none;
}
.enchanted-welcome-section::before { top: 9%; left: 4%; font-size: clamp(44px, 7vw, 90px); animation: enchantedStarBreathe 6s ease-in-out infinite; }
.enchanted-welcome-section::after { right: 5%; bottom: 12%; content: '✦'; font-size: clamp(32px, 5vw, 72px); animation: enchantedStarBreathe 7s ease-in-out -3s infinite; }
.enchanted-welcome-shell { position: relative; z-index: 1; }
.enchanted-welcome-copy { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.enchanted-welcome-copy h2 { margin: 12px 0 16px; color: #5a344d; font: 600 clamp(34px, 5vw, 58px)/1.08 var(--serif); letter-spacing: -.045em; }
.enchanted-welcome-copy h2 em { color: #bd6691; font-weight: 500; }
.enchanted-welcome-copy p { max-width: 600px; margin: 0 auto; color: #80667b; font-size: clamp(13px, 1.4vw, 15px); line-height: 1.95; }
.enchanted-welcome-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; color: #b98948; font-size: 18px; }
.enchanted-welcome-divider i { display: block; width: clamp(35px, 6vw, 72px); height: 1px; background: linear-gradient(90deg, transparent, #e3bfd1, #d8b271); }
.enchanted-welcome-divider i:last-of-type { transform: scaleX(-1); }
.enchanted-world-scene {
  position: relative;
  width: min(100%, 1050px);
  height: clamp(430px, 58vw, 660px);
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(232, 193, 213, .64);
  border-radius: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, .92), transparent 41%),
    linear-gradient(145deg, rgba(255, 232, 244, .88), rgba(237, 224, 250, .78) 50%, rgba(255, 230, 218, .8));
  box-shadow: 0 28px 80px rgba(129, 67, 105, .13), inset 0 0 0 6px rgba(255,255,255,.43);
}
.enchanted-world-scene::before {
  content: ''; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,249,253,.08), rgba(255,238,247,.25)), url('../images/princess-castle.webp') left 47% / 200% 120% no-repeat;
  opacity: .22; filter: saturate(.85) blur(.25px); transform: scale(1.03); animation: enchantedCastlePan 30s ease-in-out infinite alternate;
}
.enchanted-world-scene::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,248,252,.05), transparent 18% 77%, rgba(255,236,245,.25));
}
.enchanted-scene-haze { position: absolute; z-index: -2; width: 38%; aspect-ratio: 1; border-radius: 50%; filter: blur(36px); pointer-events: none; }
.enchanted-haze-one { top: 5%; left: 2%; background: rgba(255, 174, 208, .45); animation: enchantedHazeFloat 12s ease-in-out infinite alternate; }
.enchanted-haze-two { right: 1%; bottom: -7%; background: rgba(204, 170, 244, .46); animation: enchantedHazeFloat 15s ease-in-out -6s infinite alternate-reverse; }
.enchanted-scene-moon { position: absolute; top: 7%; right: 14%; width: clamp(55px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fffdf4, #ffe7c5 57%, rgba(255,231,197,.05) 70%); box-shadow: 0 0 45px rgba(255, 224, 176, .5); animation: enchantedMoonBreathe 7s ease-in-out infinite; }
.enchanted-family-layer {
  position: absolute; z-index: 2; left: 50%; top: 49%; width: min(65%, 690px); max-height: 91%;
  translate: -50% calc(-50% + var(--scene-parallax-y, 0px)); will-change: translate;
  animation: enchantedFamilyFloat 7.5s ease-in-out infinite;
}
.enchanted-family-frame { margin: 0; padding: 9px 9px 0; overflow: hidden; border: 1px solid rgba(242, 208, 159, .9); border-radius: 240px 240px 18px 18px; background: linear-gradient(145deg, #fffefa, #ffedf5 58%, #f7eaff); box-shadow: 0 24px 55px rgba(102, 50, 81, .22), 0 0 0 5px rgba(255,255,255,.55); }
.enchanted-family-frame img { display: block; width: 100%; height: auto; max-height: clamp(370px, 52vw, 565px); object-fit: cover; object-position: center 48%; border-radius: 230px 230px 10px 10px; }
.enchanted-family-frame figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 0 8px; color: #a65e83; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.enchanted-family-frame figcaption span:last-child { color: #b58a4a; font-size: 15px; letter-spacing: .08em; }
.enchanted-creature { position: absolute; z-index: 3; display: block; pointer-events: none; user-select: none; filter: drop-shadow(0 3px 8px rgba(255,255,255,.82)); will-change: transform; }
.enchanted-butterfly { font-size: clamp(24px, 3.8vw, 43px); }
.enchanted-butterfly-one { top: 23%; left: 7%; animation: enchantedButterflyFloat 13s ease-in-out infinite; }
.enchanted-butterfly-two { top: 54%; right: 7%; animation: enchantedButterflyFloat 16s ease-in-out -5s infinite reverse; }
.enchanted-dove { font-size: clamp(28px, 4vw, 43px); opacity: .88; }
.enchanted-dove-one { left: 2%; top: 13%; animation: enchantedDoveGlide 21s linear infinite; }
.enchanted-dove-two { right: 2%; top: 30%; animation: enchantedDoveGlide 24s linear -11s infinite reverse; }
.enchanted-petal { color: #de86b2; font-size: clamp(22px, 3vw, 36px); text-shadow: 0 3px 12px rgba(255,255,255,.9); }
.enchanted-petal-one { left: 13%; bottom: 17%; animation: enchantedPetalDrift 9s ease-in-out infinite; }
.enchanted-petal-two { right: 13%; top: 16%; animation: enchantedPetalDrift 11s ease-in-out -4s infinite reverse; }
.enchanted-scene-star { position: absolute; z-index: 3; color: #c08b4c; filter: drop-shadow(0 2px 7px #fff); animation: enchantedStarBreathe 4.8s ease-in-out infinite; }
.enchanted-scene-star-one { top: 37%; left: 18%; font-size: clamp(22px, 4vw, 40px); }
.enchanted-scene-star-two { right: 20%; bottom: 25%; font-size: clamp(24px, 4vw, 38px); animation-delay: -2.2s; }
.enchanted-firefly-layer { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.enchanted-firefly { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff4b8; box-shadow: 0 0 10px 3px rgba(255,236,158,.8), 0 0 22px 5px rgba(255,193,221,.55); animation: enchantedFireflyGlow var(--duration, 3.5s) ease-in-out var(--delay, 0s) infinite alternate; }
.enchanted-scene-plaque { position: absolute; z-index: 5; right: clamp(12px, 3vw, 35px); bottom: clamp(12px, 3vw, 29px); display: grid; gap: 4px; min-width: 190px; padding: 13px 19px 11px; border: 1px solid rgba(225,186,124,.85); border-radius: 4px 4px 20px 4px; color: #965879; background: rgba(255,250,246,.91); box-shadow: 0 10px 28px rgba(95,49,77,.13); text-align: center; transform: rotate(-3deg); backdrop-filter: blur(8px); }
.enchanted-scene-plaque span { color: #b88a4d; font: italic 15px var(--serif); }
.enchanted-scene-plaque strong { font: 600 11px 'DM Sans', sans-serif; letter-spacing: .04em; }
.enchanted-scene-plaque i { color: #c77ba1; font-style: normal; }
.enchanted-scene-orbit { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76%; height: 82%; border: 1px dashed rgba(192,128,167,.34); border-radius: 50%; pointer-events: none; transform: translate(-50%,-50%) rotate(-8deg); }
.orbit-two { width: 87%; height: 71%; transform: translate(-50%,-50%) rotate(13deg); border-color: rgba(215,173,111,.35); }
.enchanted-welcome-footnote { margin: 20px auto 0; color: #9b6a86; font: italic clamp(13px, 1.7vw, 16px) var(--serif); text-align: center; }
.enchanted-welcome-footnote span { color: #bf9251; padding-inline: 8px; }
@keyframes enchantedFamilyFloat { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-12px) rotate(.5deg); } }
@keyframes enchantedButterflyFloat { 0%,100% { transform: translate3d(0,0,0) rotate(-8deg) scale(.94); } 35% { transform: translate3d(32px,-17px,0) rotate(9deg) scale(1.07); } 70% { transform: translate3d(-6px,14px,0) rotate(-4deg) scale(.98); } }
@keyframes enchantedDoveGlide { 0% { transform: translate3d(-5px,10px,0) scale(.84); } 50% { transform: translate3d(32px,-25px,0) scale(1); } 100% { transform: translate3d(3px,7px,0) scale(.88); } }
@keyframes enchantedPetalDrift { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); opacity: .58; } 50% { transform: translate3d(14px,-22px,0) rotate(20deg); opacity: 1; } }
@keyframes enchantedFireflyGlow { from { opacity: .15; transform: translate3d(0,6px,0) scale(.7); } to { opacity: .95; transform: translate3d(8px,-11px,0) scale(1.3); } }
@keyframes enchantedMoonBreathe { 0%,100% { transform: scale(.95); opacity: .82; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes enchantedHazeFloat { from { transform: translate3d(-4%,2%,0) scale(.94); } to { transform: translate3d(10%,-8%,0) scale(1.08); } }
@keyframes enchantedCastlePan { from { background-position: left 47%; } to { background-position: 8% 50%; } }
@keyframes enchantedStarBreathe { 0%,100% { opacity: .48; transform: scale(.9) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.12) rotate(10deg); } }
body.magic-motion-paused .enchanted-world-scene *,
body.magic-motion-paused .enchanted-welcome-section::before,
body.magic-motion-paused .enchanted-welcome-section::after { animation-play-state: paused !important; }
@media (max-width: 760px) {
  .enchanted-welcome-section { padding: 48px 0 65px; }
  .enchanted-welcome-copy { margin-bottom: 22px; padding-inline: 4px; }
  .enchanted-world-scene { height: clamp(390px, 112vw, 510px); border-radius: 24px; }
  .enchanted-family-layer { width: min(80%, 440px); top: 48%; }
  .enchanted-family-frame { padding: 6px 6px 0; border-radius: 170px 170px 13px 13px; }
  .enchanted-family-frame img { max-height: 410px; border-radius: 164px 164px 8px 8px; }
  .enchanted-family-frame figcaption { min-height: 31px; font-size: 7px; padding-inline: 4px; }
  .enchanted-scene-plaque { right: 9px; bottom: 9px; min-width: 150px; padding: 9px 11px 8px; }
  .enchanted-scene-plaque span { font-size: 12px; }
  .enchanted-scene-plaque strong { font-size: 9px; }
  .enchanted-butterfly-one { left: 3%; top: 22%; }
  .enchanted-butterfly-two { right: 2%; top: 52%; }
  .enchanted-dove-one { left: 0; top: 12%; }
  .enchanted-dove-two { right: 0; top: 29%; }
  .enchanted-petal-one { left: 5%; bottom: 18%; }
  .enchanted-petal-two { right: 6%; top: 15%; }
  .enchanted-scene-orbit { width: 94%; height: 75%; }
  .enchanted-scene-moon { top: 5%; right: 10%; width: 55px; }
  .floating-nav a { min-width: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .enchanted-welcome-section::before,
  .enchanted-welcome-section::after,
  .enchanted-scene-castle,
  .enchanted-scene-haze,
  .enchanted-scene-moon,
  .enchanted-family-layer,
  .enchanted-creature,
  .enchanted-scene-star,
  .enchanted-firefly { animation: none !important; }
  .enchanted-family-layer { --scene-parallax-y: 0px; }
}

/* Castle layer used by the new welcome scene; keep the castle crop to the left half. */
.enchanted-scene-castle { position: absolute; inset: -3% -2%; z-index: -2; pointer-events: none; }
.enchanted-world-scene::before {
  background-image: linear-gradient(180deg, rgba(255,238,247,.18), rgba(249,231,250,.23)), url('../images/princess-castle.webp');
  background-position: center, left 47%; background-size: 100% 100%, 200% 120%; background-repeat: no-repeat;
}

/* Keep the welcoming scene layered: the castle is the moving back layer, the family art stays foreground. */
.enchanted-world-scene::before {
  background-image:
    radial-gradient(ellipse at 50% 36%, rgba(255,255,255,.8), transparent 42%),
    linear-gradient(180deg, rgba(255,239,248,.23), rgba(247,229,251,.28));
  background-size: 100% 100%, 100% 100%;
  animation: none;
}
.enchanted-scene-castle {
  position: absolute; inset: -3% -2%; z-index: -2; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(255,235,246,.12), rgba(247,228,252,.20)), url('../images/princess-castle.webp');
  background-size: 100% 100%, 200% 120%;
  background-position: center, left 47%;
  background-repeat: no-repeat;
  opacity: .30;
  filter: saturate(.88) blur(.15px);
  animation: enchantedCastlePan 30s ease-in-out infinite alternate;
  will-change: background-position, transform;
}
body.magic-motion-paused .enchanted-world-scene::before,
body.magic-motion-paused .enchanted-world-scene::after { animation-play-state: paused !important; }


/* Elysia gallery layout: six cards, with the name portrait kept fully visible. */
.gallery-grid{grid-template-rows:repeat(3,225px)}
.gallery-item:nth-child(1){grid-column:1;grid-row:1 / span 2}
.gallery-item:nth-child(2){grid-column:2 / span 2;grid-row:1}
.gallery-item:nth-child(2) img{object-fit:contain;background:linear-gradient(135deg,#fff0f5,#f9dce9);padding:6px;box-sizing:border-box}
.gallery-item:nth-child(3){grid-column:2;grid-row:2}
.gallery-item:nth-child(4){grid-column:3;grid-row:2}
.gallery-item:nth-child(5){grid-column:1;grid-row:3}
.gallery-item:nth-child(6){grid-column:2 / span 2;grid-row:3}
@media(max-width:980px){.gallery-grid{grid-template-rows:repeat(3,195px)}}
@media(max-width:760px){
  .gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:190px 160px 190px 190px}
  .gallery-item:nth-child(1){grid-column:1;grid-row:1 / span 2}
  .gallery-item:nth-child(2){grid-column:2;grid-row:1}
  .gallery-item:nth-child(3){grid-column:2;grid-row:2}
  .gallery-item:nth-child(4){grid-column:1;grid-row:3}
  .gallery-item:nth-child(5){grid-column:2;grid-row:3}
  .gallery-item:nth-child(6){grid-column:1 / span 2;grid-row:4}
}
@media(max-width:390px){.gallery-grid{grid-template-rows:164px 145px 164px 164px}}


/* Royal storybook navigation: the floating dock is the only primary site navigation. */
.site-header { display: none !important; }
.fairytale-dock {
  --dock-pink: #f7c4d9;
  --dock-rose: #a83f71;
  --dock-gold: #d8ad65;
  position: fixed;
  left: 50%;
  bottom: calc(17px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: max-content;
  max-width: calc(100vw - 22px);
  padding: 7px 9px;
  overflow-x: auto;
  border: 1px solid rgba(207, 160, 92, .86);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.98), transparent 64%),
    linear-gradient(135deg, rgba(255,245,250,.97), rgba(255,228,240,.95) 52%, rgba(250,238,255,.97));
  box-shadow: 0 13px 38px rgba(105, 45, 76, .24), 0 3px 10px rgba(255,255,255,.88) inset, 0 -2px 7px rgba(222,174,103,.13) inset;
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  backdrop-filter: blur(20px) saturate(1.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 20px) scale(.95);
  transition: opacity .28s ease, visibility .28s ease, transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  scrollbar-width: none;
  isolation: isolate;
}
.fairytale-dock::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(220, 177, 111, .34);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
.fairytale-dock::after {
  content: '✧  ✦  ✧';
  position: absolute;
  top: -10px;
  left: 50%;
  padding: 0 9px;
  color: #bd8c46;
  background: #fff8fc;
  font: 11px/1 Georgia, serif;
  letter-spacing: .32em;
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255,255,255,.95);
  pointer-events: none;
}
.fairytale-dock::-webkit-scrollbar { display: none; }
.fairytale-dock.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.fairytale-dock a {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  min-width: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 9px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #80516d;
  font: 700 9px/1.15 'DM Sans', Arial, sans-serif;
  letter-spacing: .015em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fairytale-dock .floating-nav-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(199, 144, 85, .36);
  border-radius: 50%;
  color: #ae7544;
  background: linear-gradient(145deg, #fffdfa, #ffe5f0 78%);
  box-shadow: 0 2px 7px rgba(178, 108, 146, .12), inset 0 1px 2px rgba(255,255,255,.9);
  font: 18px/1 Georgia, 'Times New Roman', serif;
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fairytale-dock a:hover {
  color: #87345f;
  transform: translateY(-3px);
}
.fairytale-dock a:hover .floating-nav-icon {
  transform: rotate(-7deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(178, 108, 146, .2);
}
.fairytale-dock a.is-active {
  color: #fffafc;
  border-color: rgba(255,255,255,.44);
  background: linear-gradient(145deg, #d987b0, #a84579 72%, #8a3766);
  box-shadow: 0 5px 15px rgba(139, 60, 105, .27), inset 0 1px 2px rgba(255,255,255,.35);
}
.fairytale-dock a.is-active .floating-nav-icon {
  color: #fff8e9;
  border-color: rgba(255,244,218,.78);
  background: linear-gradient(145deg, #e8c17b, #b27a3e);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 0 14px rgba(237,198,131,.5);
}
.fairytale-dock a:focus-visible { outline: 2px solid #9b4371; outline-offset: 2px; }
.fairytale-dock a:active { transform: translateY(-1px) scale(.98); }
.dock-ornament { flex: 0 0 auto; color: #c49a56; font-size: 12px; padding: 0 1px; text-shadow: 0 0 8px rgba(232,196,132,.6); }
.dock-ornament-left { margin-left: 1px; }
.dock-ornament-right { margin-right: 1px; }
body.cover-open .fairytale-dock { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
@media (max-width: 760px) {
  .fairytale-dock {
    gap: 1px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 14px);
    padding: 5px 5px;
  }
  .fairytale-dock a { min-width: 47px; padding: 5px 5px 4px; font-size: 7.5px; }
  .fairytale-dock .floating-nav-icon { width: 25px; height: 25px; font-size: 16px; }
  .dock-ornament { font-size: 9px; }
  .fairytale-dock::after { top: -8px; font-size: 9px; letter-spacing: .2em; }
}
@media (max-width: 360px) {
  .fairytale-dock { max-width: calc(100vw - 8px); padding-inline: 3px; }
  .fairytale-dock a { min-width: 43px; padding-inline: 3px; font-size: 7px; }
  .fairytale-dock .floating-nav-icon { width: 23px; height: 23px; font-size: 15px; }
  .dock-ornament { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fairytale-dock, .fairytale-dock a, .fairytale-dock .floating-nav-icon { transition: none !important; }
}


/* 2026-10-14: full-bleed looping memory video, no surrounding copy. */
.full-bleed-memory-video {
  position: relative;
  display: block;
  isolation: isolate;
  width: min(1600px, calc(100% - clamp(12px, 2.5vw, 40px)));
  max-width: 1600px;
  margin: clamp(18px, 3vw, 38px) auto clamp(58px, 7vw, 96px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(12px, 1.8vw, 26px);
  background: #241520;
  box-shadow: 0 18px 56px rgba(86, 48, 77, .22);
  line-height: 0;
}
.full-bleed-memory-video::before,
.full-bleed-memory-video::after { content: none !important; display: none !important; }
.full-bleed-memory-video .memory-video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #241520;
  box-shadow: none;
}
.full-bleed-memory-video .memory-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #241520;
}
@media (max-width: 760px) {
  .full-bleed-memory-video {
    width: calc(100% - 10px);
    margin-top: 12px;
    margin-bottom: 72px;
    padding: 0;
    border-radius: 12px;
  }
  .full-bleed-memory-video .memory-video-frame { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: inherit; }
  .full-bleed-memory-video .memory-video-frame video { width: 100%; height: auto; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 0; }
}
