:root {
  --rose: #f58ac4;
  --rose-strong: #df4f9d;
  --lilac: #b88cf7;
  --violet: #7a58c6;
  --cream: #fff7fb;
  --gold: #d9a94a;
  --ink: #49324f;
  --muted: #7b6380;
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 20px 50px rgba(126, 65, 128, 0.22);
  --intro-book-width: min(82vw, 430px);
}

* {
  box-sizing: border-box;
}

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

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.9) 0 9%, transparent 10%),
    linear-gradient(160deg, #ffe4f2 0%, #f7d6ff 45%, #fff4d8 100%);
  overflow-x: hidden;
}

body.intro-playing,
body.intro-awaiting {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.cinema-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  color: #fff;
  background: #3e2352;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease, visibility 900ms ease;
  will-change: opacity;
  contain: paint;
}

.cinema-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.intro-exiting .intro-backdrop img,
body.intro-exiting .storybook,
body.intro-exiting .storybook-spine,
body.intro-exiting .intro-light,
body.intro-exiting .intro-dust,
body.intro-exiting .intro-floating,
body.intro-exiting .intro-scene,
body.intro-exiting .intro-finale-princesses,
body.intro-exiting .liz-medallion,
body.intro-exiting .intro-kicker,
body.intro-exiting .intro-stage h2,
body.intro-exiting .intro-stage h2::before,
body.intro-exiting .intro-age,
body.intro-exiting .intro-finale,
body.intro-exiting .intro-line {
  animation-play-state: paused !important;
}

body.intro-awaiting .intro-backdrop img,
body.intro-awaiting .storybook,
body.intro-awaiting .storybook-spine,
body.intro-awaiting .storybook-zoom-glow,
body.intro-awaiting .intro-light,
body.intro-awaiting .intro-dust,
body.intro-awaiting .intro-floating,
body.intro-awaiting .intro-scene,
body.intro-awaiting .royal-carriage,
body.intro-awaiting .scene-princess,
body.intro-awaiting .intro-finale-princesses,
body.intro-awaiting .intro-crown,
body.intro-awaiting .liz-medallion,
body.intro-awaiting .liz-medallion::before,
body.intro-awaiting .liz-medallion::after,
body.intro-awaiting .intro-kicker,
body.intro-awaiting .intro-stage h2,
body.intro-awaiting .intro-stage h2::before,
body.intro-awaiting .intro-age,
body.intro-awaiting .intro-finale,
body.intro-awaiting .intro-line {
  animation: none !important;
}

body.intro-awaiting .intro-stage,
body.intro-awaiting .skip-intro,
body.intro-awaiting .music-toggle {
  opacity: 0;
  pointer-events: none;
}

.intro-backdrop,
.intro-backdrop img,
.intro-vignette,
.storybook,
.storybook-spine,
.storybook-zoom-glow,
.intro-light,
.intro-dust {
  position: absolute;
  inset: 0;
}

.intro-backdrop {
  overflow: hidden;
}

.intro-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.82);
  transform: scale(1.24);
  animation: introZoom 26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-vignette {
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 245, 255, 0.08), transparent 26%),
    radial-gradient(circle at 50% 56%, transparent 0 28%, rgba(70, 30, 82, 0.45) 62%, rgba(34, 13, 44, 0.9) 100%),
    linear-gradient(180deg, rgba(22, 7, 32, 0.3), rgba(22, 7, 32, 0.74));
}

.storybook {
  inset: auto;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: var(--intro-book-width);
  border: 2px solid rgba(222, 170, 74, 0.9);
  background:
    linear-gradient(90deg, rgba(255, 250, 231, 0.96), rgba(255, 239, 203, 0.9)),
    repeating-linear-gradient(0deg, rgba(126, 82, 46, 0.08) 0 1px, transparent 1px 28px);
  box-shadow:
    inset 0 0 34px rgba(157, 88, 42, 0.2),
    0 28px 70px rgba(35, 10, 49, 0.38);
  transform: translateX(-50%);
}

.storybook::before {
  content: "";
  position: absolute;
  inset: 22px 18px;
  border: 1px solid rgba(203, 150, 61, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.78), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
}

.storybook-left {
  z-index: 2;
  border-radius: 20px 8px 8px 20px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.22), transparent 20%),
    linear-gradient(135deg, rgba(138, 77, 168, 0.96), rgba(224, 87, 158, 0.94) 54%, rgba(106, 67, 156, 0.98));
  transform-origin: left center;
  animation: storybookCoverOpen 4.2s cubic-bezier(0.76, 0, 0.24, 1) 0.55s forwards;
}

.storybook-right {
  z-index: 1;
  border-radius: 20px;
  opacity: 0.92;
  transform-origin: center center;
  animation:
    storybookPageGlow 5s ease 0.7s forwards,
    storybookPageZoom 3.8s cubic-bezier(0.16, 1, 0.3, 1) 4.2s forwards;
}

.storybook-spine {
  inset: auto;
  left: calc(50% - (var(--intro-book-width) / 2));
  top: 8%;
  bottom: 8%;
  width: 18px;
  background:
    linear-gradient(90deg, rgba(115, 63, 126, 0.78), rgba(255, 221, 134, 0.88), rgba(115, 63, 126, 0.78));
  box-shadow: 0 0 30px rgba(255, 221, 134, 0.36);
  transform: translateX(-50%);
  animation: storybookSpineSettle 4.2s ease 0.55s forwards;
}

.storybook-zoom-glow {
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.34) 0 10%, rgba(255, 239, 248, 0.18) 30%, transparent 58%);
}

.intro-light {
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.82) 48%, transparent 72%);
  transform: translateX(-80%) skewX(-16deg);
  animation: spotlightSweep 2.4s ease-in-out 1.65s forwards;
}

.intro-light-two {
  background: linear-gradient(75deg, transparent 22%, rgba(255, 219, 130, 0.58) 48%, transparent 72%);
  transform: translateX(80%) skewX(16deg);
  animation-delay: 2.05s;
}

.intro-dust {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 226, 137, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 181, 224, 0.78) 0 1px, transparent 2px);
  background-size: 72px 92px, 108px 132px, 148px 156px;
  opacity: 0;
  animation:
    introDustReveal 1.4s ease 1.3s forwards,
    introDustDrift 7s linear 1.3s infinite;
}

.intro-start-prompt {
  position: fixed;
  left: 50vw;
  top: 50%;
  z-index: 160;
  width: min(calc(100vw - 36px), 330px);
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(223, 79, 157, 0.72), rgba(122, 88, 198, 0.72)),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 60px rgba(44, 15, 58, 0.36),
    inset 0 0 22px rgba(255, 255, 255, 0.18);
  text-align: center;
  backdrop-filter: blur(14px);
  cursor: pointer;
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
  isolation: isolate;
  overflow: hidden;
}

.intro-start-prompt::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.26), transparent 56%),
    linear-gradient(135deg, rgba(255, 175, 202, 0.24), rgba(184, 140, 247, 0.24));
  opacity: 0.42;
  transform: scale(0.94);
  animation: startPromptPulse 2s ease-in-out infinite;
}

.intro-start-prompt span,
.intro-start-prompt small {
  display: block;
}

.intro-start-prompt span {
  font-size: 1.08rem;
  font-weight: 900;
}

.intro-start-prompt small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

body.intro-playing .intro-start-prompt,
body.invite-ready .intro-start-prompt {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transition: 360ms ease;
}

.intro-floating {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 238, 246, 0.88);
  font-size: 1.25rem;
  filter: drop-shadow(0 6px 14px rgba(110, 35, 108, 0.32));
  opacity: 0;
  animation: floatingPetal 7.8s ease-in-out infinite;
}

.intro-floating-one {
  left: 8%;
  top: 18%;
  animation-delay: 1.1s;
}

.intro-floating-two {
  right: 13%;
  top: 24%;
  color: rgba(255, 181, 211, 0.82);
  animation-delay: 1.7s;
}

.intro-floating-three {
  left: 18%;
  bottom: 28%;
  color: rgba(255, 232, 152, 0.85);
  animation-delay: 2.2s;
}

.intro-floating-four {
  right: 18%;
  bottom: 22%;
  animation-delay: 2.8s;
}

.intro-floating-five {
  left: 46%;
  top: 10%;
  color: rgba(255, 185, 220, 0.8);
  animation-delay: 3.4s;
}

.intro-floating-six {
  right: 42%;
  bottom: 12%;
  color: rgba(255, 232, 152, 0.82);
  animation-delay: 4s;
}

.intro-stage {
  position: relative;
  z-index: 3;
  width: min(100%, 420px);
  min-height: min(520px, calc(100svh - 160px));
  display: grid;
  place-items: center;
  align-content: center;
  padding: 22px 0 26px;
  text-align: center;
  transform: translateY(clamp(-28px, -4svh, -14px));
}

.intro-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro-scene-celebration {
  opacity: 0;
  animation:
    sceneCelebration 6.6s ease 4.8s forwards,
    sceneBreath 4.2s ease-in-out 4.8s infinite;
}

.royal-carriage {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  width: 146px;
  height: 92px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 218, 128, 0.92);
  border-radius: 44% 44% 32% 32%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, rgba(255, 224, 242, 0.96), rgba(225, 203, 255, 0.94));
  box-shadow:
    0 14px 34px rgba(55, 16, 68, 0.24),
    inset 0 0 0 5px rgba(255, 255, 255, 0.42);
  animation: carriageFloat 3.2s ease-in-out infinite;
}

.royal-carriage::before,
.royal-carriage::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 38px;
  height: 50px;
  border: 2px solid rgba(188, 131, 53, 0.86);
  border-radius: 50% 50% 16px 16px;
}

.royal-carriage::before {
  left: 20px;
}

.royal-carriage::after {
  right: 20px;
}

.carriage-crown {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  font-size: 1.7rem;
}

.carriage-body {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c78242;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5rem;
}

.wheel {
  position: absolute;
  bottom: -18px;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(188, 131, 53, 0.86);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, rgba(255, 232, 245, 0.96) 20% 100%);
}

.wheel-left {
  left: 14px;
}

.wheel-right {
  right: 14px;
}

.celebration-copy {
  position: relative;
  z-index: 4;
  width: min(100%, 326px);
  margin: 16px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(62, 31, 81, 0.34);
  backdrop-filter: blur(8px);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 7vw, 2.1rem);
  line-height: 1.04;
  text-shadow: 0 8px 24px rgba(71, 27, 82, 0.34);
}

.celebration-copy span,
.celebration-copy strong {
  display: block;
}

.celebration-copy strong {
  color: #ffafca;
  font-size: 1.28em;
  font-style: italic;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75),
    0 12px 28px rgba(163, 62, 120, 0.42);
}

.intro-scene-liz {
  align-content: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  animation:
    sceneLiz 4.6s cubic-bezier(0.16, 1, 0.3, 1) 11.4s forwards,
    sceneBreath 4.2s ease-in-out 11.4s infinite;
}

.castle-scene {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 0;
  width: auto;
  height: 180px;
  transform: none;
  opacity: 0.5;
  pointer-events: none;
}

.castle-center,
.castle-tower,
.castle-gate {
  position: absolute;
  bottom: 0;
  border: 2px solid rgba(217, 169, 74, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(244, 226, 255, 0.46)),
    linear-gradient(135deg, rgba(255, 218, 239, 0.42), rgba(215, 232, 255, 0.34));
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.42);
}

.castle-center {
  left: 50%;
  width: 132px;
  height: 104px;
  border-radius: 18px 18px 8px 8px;
  transform: translateX(-50%);
}

.castle-center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -54px;
  width: 0;
  height: 0;
  border-left: 52px solid transparent;
  border-right: 52px solid transparent;
  border-bottom: 58px solid rgba(183, 140, 247, 0.52);
  transform: translateX(-50%);
}

.castle-tower {
  width: 58px;
  height: 146px;
  border-radius: 34px 34px 8px 8px;
}

.castle-tower::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -48px;
  width: 0;
  height: 0;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 52px solid rgba(244, 139, 196, 0.48);
  transform: translateX(-50%);
}

.castle-tower-left {
  left: 0;
}

.castle-tower-right {
  right: 0;
}

.castle-gate {
  left: 50%;
  width: 48px;
  height: 58px;
  border-radius: 34px 34px 8px 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(122, 88, 198, 0.36), rgba(73, 50, 79, 0.28));
  transform: translateX(-50%);
}

.story-garland {
  display: none;
  position: absolute;
  top: 78px;
  z-index: 1;
  color: rgba(217, 169, 74, 0.78);
  font-size: 1rem;
  letter-spacing: 0.6em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.story-garland-left {
  left: max(16px, calc((100vw - 430px) / 2 + 16px));
}

.story-garland-right {
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
}

.intro-scene-liz::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(82%, 318px);
  height: 186px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 252, 0.78)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 48px rgba(54, 16, 69, 0.12),
    inset 0 0 0 1px rgba(217, 169, 74, 0.3);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.intro-scene-liz .princess-label {
  position: relative;
  z-index: 5;
  margin: 0;
  color: #8a4fc8;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.intro-scene-liz strong {
  position: relative;
  z-index: 5;
  display: block;
  color: #df4f9d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.1rem, 15vw, 4.9rem);
  font-style: italic;
  line-height: 0.92;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(91, 25, 88, 0.26);
}

.intro-scene-liz > span:not(.story-garland) {
  position: relative;
  z-index: 5;
  color: #49324f;
  font-family: "Playfair Display", Georgia, serif;
  max-width: 16ch;
  font-size: clamp(1.1rem, 5vw, 1.42rem);
  font-weight: 800;
  line-height: 1.12;
}

.liz-medallion {
  position: relative;
  z-index: 5;
  width: 132px;
  height: 132px;
  margin: 12px auto 18px;
  display: grid;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 50% 55%, #fff6d7 0 34%, transparent 35%),
    linear-gradient(135deg, #ffd7ec, #e9d7ff 54%, #cdeaf0);
  box-shadow:
    0 20px 45px rgba(62, 23, 78, 0.28),
    0 0 0 3px rgba(255, 217, 116, 0.72),
    inset 0 0 26px rgba(255, 255, 255, 0.42);
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  animation:
    titleReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 17.2s forwards,
    medallionPulse 2.9s ease-in-out 18.4s infinite;
}

.liz-medallion::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent, rgba(255, 225, 134, 0.7), transparent 38%, rgba(244, 139, 196, 0.5), transparent 68%);
  opacity: 0;
  animation: medallionHalo 3.8s ease-in-out 18.3s infinite;
}

.liz-medallion::after {
  content: "✦";
  position: absolute;
  right: -18px;
  top: 12px;
  color: #ffd46d;
  font-size: 1.25rem;
  opacity: 0;
  text-shadow: 0 0 12px rgba(255, 212, 109, 0.8);
  animation: medallionSpark 2.8s ease-in-out 18.6s infinite;
}

.liz-crown {
  position: absolute;
  top: -27px;
  font-size: 2rem;
  transform: rotate(-10deg);
}

.liz-medallion img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}

.storybook-seal {
  color: #9d5b20;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(139, 84, 29, 0.24);
}

.intro-finale-princesses {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: finalePrincessesReveal 6.6s ease 17s forwards;
}

.intro-finale-princesses::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(86%, 352px);
  height: 268px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 22px 54px rgba(70, 30, 82, 0.14);
  transform: translate(-50%, -38%);
}

.scene-princess {
  position: absolute;
  z-index: 1;
  width: clamp(96px, 27vw, 154px);
  max-height: min(36svh, 260px);
  object-fit: contain;
  pointer-events: none;
  filter:
    drop-shadow(0 22px 26px rgba(42, 14, 55, 0.32))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
  animation: largePrincessFloat 4.8s ease-in-out infinite;
}

.scene-princess-left {
  left: max(-72px, calc((100vw - 430px) / 2 - 76px));
  bottom: 54px;
  transform-origin: 45% 90%;
}

.scene-princess-right {
  right: max(-72px, calc((100vw - 430px) / 2 - 76px));
  bottom: 54px;
  transform-origin: 55% 90%;
  animation-delay: -1.7s;
}

.scene-princess-rapunzel {
  width: clamp(118px, 34vw, 170px);
  left: max(-86px, calc((100vw - 430px) / 2 - 90px));
  bottom: 50px;
}

.scene-princess-cinderella {
  width: clamp(118px, 34vw, 170px);
  right: max(-86px, calc((100vw - 430px) / 2 - 90px));
  bottom: 50px;
}

.scene-princess-snow {
  width: clamp(112px, 32vw, 158px);
  left: max(-80px, calc((100vw - 430px) / 2 - 84px));
  bottom: 54px;
  opacity: 0.92;
}

.scene-princess-belle {
  width: clamp(112px, 32vw, 158px);
  right: max(-80px, calc((100vw - 430px) / 2 - 84px));
  bottom: 54px;
  opacity: 0.92;
}

.scene-princess-jasmine {
  width: clamp(104px, 30vw, 146px);
  left: max(-62px, calc((100vw - 430px) / 2 - 66px));
  bottom: 126px;
  opacity: 0.9;
}

.scene-princess-aurora {
  width: clamp(104px, 30vw, 146px);
  right: max(-74px, calc((100vw - 430px) / 2 - 78px));
  bottom: 126px;
  opacity: 0.9;
}

.intro-crown {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff7d8, #e7b750 64%, #b77a22);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.18),
    0 18px 48px rgba(236, 170, 73, 0.44);
  font-size: 2.2rem;
  opacity: 0;
  transform: translateY(26px) scale(0.92) rotate(-7deg);
  animation:
    titleReveal 1.35s cubic-bezier(0.16, 1, 0.3, 1) 9.05s forwards,
    crownGlow 1.8s ease-in-out 10.35s infinite;
}

.intro-kicker {
  position: relative;
  z-index: 5;
  margin: 0 0 16px;
  color: #8a4fc8;
  font-size: clamp(0.66rem, 3vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(18px);
  animation: titleReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 16.7s forwards;
}

.intro-stage h2 {
  position: relative;
  z-index: 5;
  margin: 0;
  min-height: 0.9em;
  color: transparent;
  font-size: clamp(3.8rem, 20vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  opacity: 1;
  transform: none;
}

.intro-stage h2::before {
  content: "Liz Sofia";
  display: block;
  color: #8a4fc8;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.95),
    0 5px 0 rgba(217, 169, 74, 0.42),
    0 18px 46px rgba(53, 14, 66, 0.26);
  opacity: 0;
  transform: translateY(26px) scale(0.92);
  animation: titleReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 17.9s forwards;
}

.intro-age {
  position: relative;
  z-index: 5;
  margin: 10px 0 0;
  color: #c98b27;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 800;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.96),
    0 8px 24px rgba(81, 28, 88, 0.22);
  opacity: 0;
  transform: translateY(18px);
  animation: titleReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 18.5s forwards;
}

.intro-finale {
  position: relative;
  z-index: 5;
  max-width: 24ch;
  margin: 8px auto 0;
  color: #49324f;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(8px);
  animation: finaleReveal 0.85s ease 19.1s forwards;
}

.intro-line {
  position: relative;
  z-index: 5;
  width: 0;
  height: 3px;
  margin: 20px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #fff, #ffd46d, #fff, transparent);
  box-shadow: 0 0 18px rgba(255, 225, 134, 0.8);
  animation: lineGrow 0.9s ease 18.9s forwards;
}

body.intro-finale-live .intro-finale-princesses {
  animation: finalePrincessesReveal 0.9s ease forwards !important;
}

body.intro-finale-live .intro-kicker {
  animation: titleReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

body.intro-finale-live .liz-medallion {
  animation:
    titleReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards,
    medallionPulse 2.9s ease-in-out 1.3s infinite !important;
}

body.intro-finale-live .liz-medallion::before {
  animation: medallionHalo 3.8s ease-in-out 1.2s infinite !important;
}

body.intro-finale-live .liz-medallion::after {
  animation: medallionSpark 2.8s ease-in-out 1.45s infinite !important;
}

body.intro-finale-live .intro-stage h2::before {
  animation: titleReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards !important;
}

body.intro-finale-live .intro-age {
  animation: titleReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards !important;
}

body.intro-finale-live .intro-line {
  animation: lineGrow 0.8s ease 1.25s forwards !important;
}

body.intro-finale-live .intro-finale {
  animation: finaleReveal 0.7s ease 1.45s forwards !important;
}

.skip-intro {
  position: absolute;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 3;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.music-toggle {
  position: fixed;
  right: 16px;
  top: calc(16px + env(safe-area-inset-top));
  z-index: 130;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, rgba(223, 79, 157, 0.78), rgba(122, 88, 198, 0.78));
  box-shadow: 0 14px 32px rgba(76, 33, 88, 0.26);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.music-toggle span {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.music-toggle.is-muted {
  opacity: 0.66;
}

.invite-shell {
  opacity: 1;
  transform: none;
}

body.invite-ready .invite-shell {
  opacity: 1;
  transform: none;
}

.invite-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 32px;
  overflow: hidden;
  contain: paint;
}

body:not(.main-animated) .hero-sparkles,
body:not(.main-animated) .hero-princess {
  animation-play-state: paused;
}

.invite-shell::before {
  content: "";
  position: absolute;
  inset: 520px -80px auto;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.72) 0 7%, transparent 8%),
    radial-gradient(circle at 86% 18%, rgba(255, 223, 132, 0.28), transparent 24%),
    radial-gradient(circle at 20% 78%, rgba(184, 140, 247, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(255, 246, 252, 0.92), rgba(255, 235, 246, 0.72));
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 650px;
  margin: 0 -16px;
  padding: 22px 16px 36px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-art,
.hero-tint {
  position: absolute;
  inset: 0;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-tint {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 232, 247, 0.34) 34%, rgba(255, 244, 251, 0.98) 100%),
    radial-gradient(circle at center 42%, rgba(255, 255, 255, 0.62), transparent 36%),
    radial-gradient(circle at 50% 88%, rgba(255, 230, 157, 0.5), transparent 32%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  height: 56%;
  z-index: -1;
  border: 2px solid rgba(217, 169, 74, 0.62);
  border-radius: 24px 24px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.5)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, 0.18) 32px 34px);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.32),
    0 24px 60px rgba(126, 65, 128, 0.18);
}

.hero-sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 215, 119, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(244, 139, 196, 0.75) 0 2px, transparent 3px);
  background-position: 26px 86px, 320px 150px, 114px 260px;
  background-size: 96px 138px, 134px 166px, 172px 190px;
  opacity: 0.72;
  animation: sparkleDrift 9s linear infinite;
}

.hero-princess {
  position: absolute;
  z-index: 0;
  object-fit: contain;
  pointer-events: none;
  filter:
    drop-shadow(0 20px 24px rgba(70, 25, 76, 0.24))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
  animation: mainPrincessFloat 5.4s ease-in-out infinite;
}

.hero-princess-rapunzel {
  left: -14px;
  bottom: 150px;
  width: clamp(98px, 30vw, 142px);
}

.hero-princess-cinderella {
  right: -12px;
  bottom: 148px;
  width: clamp(96px, 30vw, 142px);
  animation-delay: -1.6s;
}

.hero-princess-belle {
  left: 20px;
  top: 98px;
  width: clamp(76px, 22vw, 104px);
  opacity: 0.9;
  animation-delay: -2.4s;
}

.hero-princess-ariel {
  right: 18px;
  top: 102px;
  width: clamp(76px, 22vw, 104px);
  opacity: 0.9;
  animation-delay: -3.1s;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 42px 18px 18px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 254, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(255, 226, 137, 0.4), transparent 34%);
  border: 2px solid rgba(217, 169, 74, 0.5);
  border-radius: 8px;
  box-shadow:
    0 22px 60px rgba(126, 65, 128, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 139, 196, 0.34);
  border-radius: 8px;
  pointer-events: none;
}

.hero-crown {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.88), transparent 38%),
    linear-gradient(135deg, #ffe7a7, #f6bddc);
  box-shadow:
    0 14px 34px rgba(126, 65, 128, 0.24),
    0 0 0 3px rgba(217, 169, 74, 0.54);
  transform: translateX(-50%);
  font-size: 2rem;
}

.eyebrow,
.modal-kicker,
.countdown p {
  margin: 0;
  color: var(--rose-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
.age {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin: 4px 0 0;
  color: #8a4fc8;
  font-size: clamp(3.3rem, 17vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(122, 88, 198, 0.18);
}

.age {
  margin: 8px 0 14px;
  color: var(--gold);
  font-size: 1.85rem;
  font-weight: 800;
}

.message {
  max-width: 31ch;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.event-card div,
.countdown,
.action-button,
.quick-actions button,
.pix-box,
.map-preview,
.photo-card {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 252, 0.86)),
    var(--surface);
  box-shadow: 0 12px 28px rgba(126, 65, 128, 0.13);
}

.event-card div {
  position: relative;
  padding: 12px 8px;
  border-color: rgba(217, 169, 74, 0.35);
}

.event-card div::before {
  content: "✦";
  position: absolute;
  left: 10px;
  top: 8px;
  color: rgba(217, 169, 74, 0.7);
  font-size: 0.72rem;
}

.event-card span,
.event-card strong,
.time-grid span {
  display: block;
}

.event-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card strong {
  margin-top: 2px;
  font-size: 0.98rem;
}

.countdown {
  margin-top: -14px;
  padding: 16px;
  position: relative;
  z-index: 2;
  text-align: center;
  border-color: rgba(217, 169, 74, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 239, 249, 0.9)),
    radial-gradient(circle at 20% 0%, rgba(255, 225, 134, 0.28), transparent 32%);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.time-grid div {
  min-width: 0;
  padding: 10px 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff3fb);
}

.time-grid strong {
  display: block;
  color: var(--violet);
  font-size: clamp(1.35rem, 8vw, 2rem);
  line-height: 1;
}

.time-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  position: relative;
}

.action-list::before,
.action-list::after {
  content: "✧";
  position: absolute;
  top: -16px;
  color: rgba(217, 169, 74, 0.72);
  font-size: 1.1rem;
}

.action-list::before {
  left: 18px;
}

.action-list::after {
  right: 18px;
}

.action-button {
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  border-color: rgba(217, 169, 74, 0.28);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.action-button:active {
  transform: scale(0.99);
}

.action-button > span:last-child {
  min-width: 0;
}

.action-button .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(217, 169, 74, 0.24);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.86), transparent 36%),
    linear-gradient(140deg, #ffe2f0, #eee3ff);
  font-size: 1.45rem;
}

.action-button strong,
.action-button small {
  display: block;
}

.action-button strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.action-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.primary-action {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, var(--rose-strong), var(--violet));
}

.primary-action small {
  color: rgba(255, 255, 255, 0.86);
}

.primary-action .icon {
  background: rgba(255, 255, 255, 0.2);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quick-actions button,
.wide-link,
.pix-box button {
  min-height: 48px;
  padding: 12px;
  color: var(--violet);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.footer-note {
  padding: 26px 12px 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(64, 36, 72, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(100%, 448px);
  max-height: min(82vh, 720px);
  overflow: auto;
  position: relative;
  padding: 24px 18px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff5fb);
  box-shadow: 0 -18px 55px rgba(53, 24, 61, 0.27);
  transform: translateY(22px);
  transition: transform 180ms ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--violet);
  background: #f6eaff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

h2 {
  margin: 4px 44px 16px 0;
  color: var(--violet);
  font-size: 2rem;
  line-height: 1.05;
}

#locationTitle {
  font-size: clamp(1.7rem, 8vw, 2rem);
}

.gift-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gift-list li {
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.gift-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--rose-strong);
}

.pix-box {
  margin-top: 14px;
  padding: 14px;
}

.pix-box span,
.pix-box strong {
  display: block;
}

.pix-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pix-box strong {
  margin: 5px 0 10px;
  overflow-wrap: anywhere;
}

.location-text {
  color: var(--muted);
  line-height: 1.5;
}

.location-photo {
  position: relative;
  min-height: 210px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #ffe0f2, #eadcff);
  box-shadow: 0 12px 28px rgba(126, 65, 128, 0.13);
}

.location-photo img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  font-size: 0;
}

.location-photo figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, rgba(65, 28, 82, 0.78), rgba(223, 79, 157, 0.62));
  backdrop-filter: blur(10px);
}

.location-photo figcaption strong,
.location-photo figcaption span {
  display: block;
}

.location-photo figcaption strong {
  font-size: 0.98rem;
}

.location-photo figcaption span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
}

.location-photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.location-photo-fallback span {
  font-size: 2.4rem;
}

.location-photo-fallback strong,
.location-photo-fallback small {
  display: block;
}

.location-photo-fallback strong {
  color: var(--violet);
}

.location-photo.is-missing img {
  visibility: hidden;
}

.location-photo.is-missing figcaption {
  display: none;
}

.location-photo.is-missing .location-photo-fallback {
  display: grid;
}

.map-preview {
  min-height: 130px;
  margin: 16px 0;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(252, 227, 255, 0.84)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(183, 140, 247, 0.11) 12px 24px);
}

.map-preview span {
  font-size: 2rem;
}

.map-preview p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.wide-link {
  display: block;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-strong), var(--violet));
  border-radius: 8px;
}

.gallery-track {
  position: relative;
  min-height: 330px;
}

.photo-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 14px;
  text-align: center;
  opacity: 0;
  transform: scale(0.97);
  transition: 220ms ease;
}

.photo-card.active {
  opacity: 1;
  transform: scale(1);
}

.photo-placeholder {
  min-height: 242px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, #ffe0f2, #eadcff);
  font-size: 4.5rem;
}

.photo-placeholder.heart {
  background: linear-gradient(135deg, #ffe8ef, #fff2c8);
}

.photo-placeholder.star {
  background: linear-gradient(135deg, #eee3ff, #dff7ff);
}

.photo-real {
  width: 100%;
  min-height: 242px;
  max-height: 270px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.gallery-controls button {
  width: 52px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--violet);
  font-size: 1.6rem;
  cursor: pointer;
}

.balloon {
  position: absolute;
  z-index: -1;
  width: 34px;
  height: 44px;
  border-radius: 50% 50% 48% 48%;
  opacity: 0.72;
  animation: float 5s ease-in-out infinite;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42px;
  width: 1px;
  height: 64px;
  background: rgba(122, 88, 198, 0.32);
}

.balloon-one {
  left: 22px;
  top: 82px;
  background: #ffc2e3;
}

.balloon-two {
  right: 32px;
  top: 128px;
  background: #d6c2ff;
  animation-delay: -1.8s;
}

.sparkle-field::before,
.sparkle-field::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(217, 169, 74, 0.55) 0 1px, transparent 2px);
  background-position: 12px 40px, 80px 120px;
  background-size: 88px 110px, 132px 156px;
  animation: sparkle 10s linear infinite;
}

.confetti-piece {
  position: fixed;
  top: -16px;
  z-index: 40;
  width: 8px;
  height: 12px;
  border-radius: 3px;
  animation: fall linear forwards;
}

body.intro-playing .confetti-piece {
  display: none;
}

@keyframes sparkle {
  to {
    transform: translateY(90px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-16px);
  }
}

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

@keyframes introZoom {
  0% {
    transform: scale(1.24);
  }
  100% {
    transform: scale(1.08) translate3d(-2%, -1.5%, 0);
  }
}

@keyframes startPromptPulse {
  50% {
    opacity: 0.86;
    transform: scale(1.08);
  }
}

@keyframes storybookCoverOpen {
  0% {
    transform: translateX(-50%) perspective(1200px) rotateY(0deg);
    opacity: 1;
  }
  62% {
    opacity: 0.72;
  }
  100% {
    transform: translateX(-74%) perspective(1200px) rotateY(-116deg);
    opacity: 0;
  }
}

@keyframes storybookPageGlow {
  0% {
    filter: brightness(0.82);
  }
  100% {
    filter: brightness(1.08);
  }
}

@keyframes storybookPageZoom {
  0% {
    border-radius: 20px;
    transform: translateX(-50%) scale(1);
  }
  100% {
    border-radius: 8px;
    transform: translateX(-50%) scale(1.24, 1.14);
  }
}

@keyframes storybookSpineSettle {
  0%,
  58% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-110%) scaleY(0.96);
  }
}

@keyframes spotlightSweep {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateX(0) skewX(-16deg);
  }
}

@keyframes introDustReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes introDustDrift {
  0% {
    background-position: 0 0, 36px 70px, 18px 120px;
  }
  100% {
    background-position: 0 -180px, 36px -110px, 18px -60px;
  }
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.92);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes sceneCelebration {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(8px);
  }
  16%,
  62% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.04);
    filter: blur(10px);
  }
}

@keyframes sceneLiz {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
    filter: blur(10px);
  }
  24%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.08);
    filter: blur(10px);
  }
}

@keyframes sceneBreath {
  50% {
    translate: 0 -8px;
    scale: 1.018;
  }
}

@keyframes floatingPetal {
  0% {
    opacity: 0;
    transform: translate3d(0, 36px, 0) rotate(0deg) scale(0.82);
  }
  16%,
  72% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -118px, 0) rotate(160deg) scale(1.05);
  }
}

@keyframes carriageFloat {
  50% {
    transform: translateX(-50%) translateY(-9px) rotate(-1deg);
  }
}

@keyframes princessSway {
  50% {
    translate: 0 -10px;
    filter: drop-shadow(0 20px 30px rgba(56, 19, 70, 0.36));
  }
}

@keyframes medallionPulse {
  50% {
    transform: translateY(-5px) scale(1.035);
    box-shadow:
      0 28px 54px rgba(62, 23, 78, 0.32),
      0 0 0 10px rgba(255, 255, 255, 0.1),
      inset 0 0 30px rgba(255, 255, 255, 0.48);
  }
}

@keyframes medallionHalo {
  0%,
  100% {
    opacity: 0.18;
    rotate: 0deg;
  }
  50% {
    opacity: 0.62;
    rotate: 28deg;
  }
}

@keyframes medallionSpark {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(-4px, 6px, 0) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(18deg);
  }
}

@keyframes largePrincessFloat {
  0%,
  100% {
    translate: 0 0;
    rotate: -1deg;
  }
  50% {
    translate: 0 -12px;
    rotate: 1.5deg;
  }
}

@keyframes mainPrincessFloat {
  0%,
  100% {
    translate: 0 0;
    rotate: -1deg;
  }
  50% {
    translate: 0 -10px;
    rotate: 1.2deg;
  }
}

@keyframes sparkleDrift {
  0% {
    background-position: 26px 86px, 320px 150px, 114px 260px;
  }
  100% {
    background-position: 26px -120px, 320px -70px, 114px 20px;
  }
}

@keyframes finalePrincessesReveal {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
    filter: blur(8px);
  }
  24%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes crownGlow {
  50% {
    transform: translateY(-5px) rotate(5deg);
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.15),
      0 22px 56px rgba(236, 170, 73, 0.58);
  }
}

@keyframes finaleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  to {
    width: 74%;
  }
}

@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .invite-shell {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 22px 70px rgba(126, 65, 128, 0.18);
  }
}

@media (max-width: 480px) {
  .cinema-intro {
    align-items: center;
    justify-items: center;
  }

  .intro-backdrop img,
  .intro-floating,
  .scene-princess,
  .hero-princess,
  .hero-sparkles {
    animation: none !important;
  }

  .intro-backdrop img {
    animation: mobileIntroZoom 26s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .intro-dust {
    opacity: 0.55;
    animation: mobileDustDrift 12s linear 1.3s infinite !important;
  }

  .intro-light {
    animation: mobileSpotlightSweep 2.3s ease-in-out 1.65s forwards !important;
  }

  .intro-floating-one,
  .intro-floating-three,
  .intro-floating-six {
    animation: mobileFloatingPetal 8.8s ease-in-out infinite !important;
  }

  .scene-princess {
    animation: mobilePrincessFloat 5.8s ease-in-out infinite !important;
  }

  .hero-princess {
    animation: mobilePrincessFloat 6.2s ease-in-out infinite !important;
  }

  .hero-sparkles {
    animation: mobileSparkleDrift 14s linear infinite !important;
  }

  .storybook-right {
    border-radius: 8px;
    transform: translateX(-50%) scale(1.24, 1.14);
    animation:
      storybookPageGlow 3s ease 0.7s forwards !important;
  }

  .storybook-zoom-glow {
    animation: mobileZoomGlow 2.4s ease 1.7s forwards !important;
  }

  .celebration-copy,
  .intro-scene-liz::before {
    backdrop-filter: none;
  }

  .celebration-copy {
    background: #71527c;
    box-shadow: 0 14px 34px rgba(54, 16, 69, 0.2);
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .intro-scene-liz::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 252, 0.82)),
      #fffafc;
    box-shadow:
      0 14px 34px rgba(54, 16, 69, 0.12),
      inset 0 0 0 1px rgba(217, 169, 74, 0.28);
    transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;
  }

  .intro-finale-princesses::before {
    background: #fffafc;
    box-shadow: 0 14px 34px rgba(70, 30, 82, 0.12);
    transform: translate3d(-50%, -38%, 0);
    backface-visibility: hidden;
  }

  .scene-princess,
  .hero-princess {
    filter: drop-shadow(0 10px 14px rgba(42, 14, 55, 0.24));
  }

  .intro-scene-celebration {
    animation: mobileSceneCelebration 6.6s ease 4.8s forwards;
  }

  .intro-scene-liz {
    animation: mobileSceneLiz 4.6s cubic-bezier(0.16, 1, 0.3, 1) 11.4s forwards;
  }

  .castle-scene {
    left: 20px;
    right: 20px;
    bottom: 26px;
    width: auto;
    height: 166px;
    opacity: 0.46;
  }

  .castle-center {
    width: 112px;
    height: 88px;
  }

  .castle-tower {
    width: 48px;
    height: 120px;
  }

  .castle-tower-left {
    left: -4px;
  }

  .castle-tower-right {
    right: -4px;
  }

  .story-garland {
    top: 86px;
    font-size: 0.78rem;
    letter-spacing: 0.42em;
  }

  .story-garland-left {
    left: 18px;
  }

  .story-garland-right {
    right: 18px;
  }

  .intro-kicker {
    animation: mobileTitleReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 16.7s forwards;
  }

  .liz-medallion {
    animation: mobileTitleRevealNoTransform 0.85s ease 17.2s forwards;
  }

  .liz-medallion {
    transform: translateY(0) scale(1);
  }

  .liz-medallion::before {
    animation: mobileMedallionHalo 3.8s ease-in-out 18.3s infinite;
  }

  .liz-medallion::after {
    animation: medallionSpark 2.8s ease-in-out 18.6s infinite;
  }

  .intro-stage h2 {
    animation: none;
  }

  .intro-stage h2::before {
    animation: mobileTitleReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 17.9s forwards;
  }

  .intro-age {
    animation: mobileTitleReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 18.5s forwards;
  }

  .intro-line {
    animation: lineGrow 0.9s ease 18.9s forwards;
  }

  .intro-finale {
    animation: finaleReveal 0.85s ease 19.1s forwards;
  }

  .intro-finale-princesses {
    animation: mobileFinalePrincessesReveal 6.6s ease 17s forwards;
  }

  body.intro-finale-live .intro-finale-princesses {
    animation: mobileFinalePrincessesReveal 0.9s ease forwards !important;
  }

  body.intro-finale-live .intro-kicker {
    animation: mobileTitleReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  body.intro-finale-live .liz-medallion {
    animation: mobileTitleRevealNoTransform 0.75s ease 0.25s forwards !important;
  }

  body.intro-finale-live .intro-stage h2::before {
    animation: mobileTitleReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards !important;
  }

  body.intro-finale-live .intro-age {
    animation: mobileTitleReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards !important;
  }

  body.intro-finale-live .intro-line {
    animation: lineGrow 0.8s ease 1.25s forwards !important;
  }

  body.intro-finale-live .intro-finale {
    animation: finaleReveal 0.7s ease 1.45s forwards !important;
  }

  .intro-stage {
    width: min(100%, 360px);
    min-height: min(500px, calc(100svh - 132px));
    padding-inline: 8px;
    transform: translateY(clamp(-24px, -3.5svh, -12px));
  }

  .hero {
    min-height: 620px;
    padding-bottom: 28px;
  }

  .hero::after {
    left: 12px;
    right: 12px;
    height: 52%;
  }

  .hero-content {
    padding-inline: 14px;
  }

  .hero-princess-rapunzel,
  .hero-princess-cinderella {
    bottom: 180px;
    width: clamp(78px, 24vw, 100px);
  }

  .hero-princess-rapunzel {
    left: -10px;
  }

  .hero-princess-cinderella {
    right: -10px;
  }

  .hero-princess-belle,
  .hero-princess-ariel {
    top: 96px;
    width: clamp(58px, 18vw, 76px);
  }

  .royal-carriage {
    top: 18px;
    width: 124px;
    height: 78px;
  }

  .celebration-copy {
    width: min(100%, 272px);
    margin-top: 16px;
    font-size: clamp(1.18rem, 5.8vw, 1.62rem);
  }

  .intro-scene-liz strong {
    font-size: clamp(2.65rem, 13vw, 3.7rem);
  }

  .intro-scene-liz > span:not(.story-garland) {
    font-size: clamp(1.18rem, 6vw, 1.42rem);
  }

  .liz-medallion {
    width: 114px;
    height: 114px;
    margin-top: 16px;
    margin-bottom: 14px;
  }

  .intro-stage h2 {
    font-size: clamp(3.05rem, 16vw, 4.5rem);
  }

  .intro-age {
    font-size: clamp(1.42rem, 7vw, 1.72rem);
  }

  .intro-finale {
    max-width: 20ch;
    margin-top: 4px;
    font-size: clamp(0.82rem, 4.5vw, 0.94rem);
    line-height: 1.16;
  }

  .scene-princess-left,
  .scene-princess-rapunzel,
  .scene-princess-snow {
    left: -88px;
  }

  .scene-princess-right,
  .scene-princess-cinderella,
  .scene-princess-belle {
    right: -88px;
  }

  .scene-princess-belle {
    right: -58px;
  }

  .scene-princess {
    max-height: 42svh;
  }

  .scene-princess-rapunzel,
  .scene-princess-cinderella {
    width: clamp(154px, 48vw, 188px);
    bottom: 62px;
  }

  .scene-princess-snow,
  .scene-princess-belle {
    width: clamp(146px, 45vw, 178px);
    bottom: 70px;
  }

  .scene-princess-jasmine,
  .scene-princess-aurora {
    width: clamp(134px, 40vw, 162px);
    bottom: 148px;
  }

  .scene-princess-jasmine {
    left: -70px;
  }

  .scene-princess-aurora {
    right: -82px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

body.intro-playing:not(.intro-finale-live) .intro-finale-princesses,
body.intro-playing:not(.intro-finale-live) .intro-kicker,
body.intro-playing:not(.intro-finale-live) .liz-medallion,
body.intro-playing:not(.intro-finale-live) .intro-stage h2::before,
body.intro-playing:not(.intro-finale-live) .intro-age,
body.intro-playing:not(.intro-finale-live) .intro-finale {
  opacity: 0 !important;
  animation: none !important;
}

body.intro-playing:not(.intro-finale-live) .liz-medallion {
  transform: translateY(18px) scale(0.92) !important;
}

body.intro-playing:not(.intro-finale-live) .intro-kicker,
body.intro-playing:not(.intro-finale-live) .intro-stage h2::before,
body.intro-playing:not(.intro-finale-live) .intro-age {
  transform: translateY(18px) !important;
}

body.intro-playing:not(.intro-finale-live) .intro-line {
  width: 0 !important;
  animation: none !important;
}

body.intro-finale-live .intro-finale-princesses {
  animation: mobileFinalePrincessesReveal 0.8s ease 0s both !important;
}

body.intro-finale-live .intro-stage {
  align-content: center;
  gap: 0;
  transform: translateY(-18px);
}

body.intro-finale-live .intro-kicker {
  animation: mobileTitleReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both !important;
}

body.intro-finale-live .liz-medallion {
  width: 108px;
  height: 108px;
  margin-top: 8px;
  margin-bottom: 8px;
  animation: mobileTitleRevealNoTransform 0.65s ease 0.55s both !important;
}

body.intro-finale-live .liz-medallion::before {
  animation: mobileMedallionHalo 3.8s ease-in-out 1.25s infinite !important;
}

body.intro-finale-live .liz-medallion::after {
  animation: medallionSpark 2.8s ease-in-out 1.35s infinite !important;
}

body.intro-finale-live .intro-stage h2::before {
  font-size: clamp(2.95rem, 15vw, 4.2rem);
  animation: mobileTitleReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) 1s both !important;
}

body.intro-finale-live .intro-age {
  margin-top: 4px;
  font-size: clamp(1.28rem, 6vw, 1.55rem);
  animation: mobileTitleReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) 1.32s both !important;
}

body.intro-finale-live .intro-finale {
  max-width: 18ch;
  margin-top: 4px;
  font-size: clamp(0.82rem, 4vw, 0.92rem);
  line-height: 1.12;
  animation: finaleReveal 0.55s ease 1.58s both !important;
}

body.intro-finale-live .intro-line {
  margin-top: 12px;
  animation: lineGrow 0.65s ease 1.85s both !important;
}

@keyframes mobileTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileTitleRevealNoTransform {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes mobileStorybookPageZoom {
  0% {
    border-radius: 20px;
    transform: translateX(-50%) scale(1);
  }
  100% {
    border-radius: 8px;
    transform: translateX(-50%) scale(1.24, 1.14);
  }
}

@keyframes mobileZoomGlow {
  0% {
    opacity: 0;
  }
  35% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
  }
}

@keyframes mobileIntroZoom {
  0% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1.08) translate3d(-1%, -1%, 0);
  }
}

@keyframes mobileDustDrift {
  0% {
    background-position: 0 0, 36px 70px, 18px 120px;
  }
  100% {
    background-position: 0 -90px, 36px -40px, 18px 20px;
  }
}

@keyframes mobileSpotlightSweep {
  0% {
    opacity: 0;
    transform: translateX(-55%) skewX(-12deg);
  }
  22% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translateX(0) skewX(-12deg);
  }
}

@keyframes mobileFloatingPetal {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) rotate(0deg) scale(0.9);
  }
  18%,
  70% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translate3d(12px, -82px, 0) rotate(120deg) scale(1);
  }
}

@keyframes mobilePrincessFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.6deg);
  }
  50% {
    transform: translate3d(0, -7px, 0) rotate(0.8deg);
  }
}

@keyframes mobileSparkleDrift {
  0% {
    background-position: 26px 86px, 320px 150px, 114px 260px;
  }
  100% {
    background-position: 26px -30px, 320px 22px, 114px 150px;
  }
}

@keyframes mobileSceneBreath {
  50% {
    transform: translate3d(0, -5px, 0) scale(1.01);
  }
}

@keyframes mobileMedallionPulse {
  50% {
    transform: translateY(-4px) scale(1.025);
    box-shadow:
      0 24px 44px rgba(62, 23, 78, 0.26),
      0 0 0 8px rgba(255, 255, 255, 0.1),
      inset 0 0 26px rgba(255, 255, 255, 0.42);
  }
}

@keyframes mobileMedallionHalo {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.58;
  }
}

@keyframes mobileSceneCelebration {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  16%,
  68% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes mobileSceneLiz {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  24%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes mobileFinalePrincessesReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  24%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  .intro-stage {
    width: 100%;
    min-height: min(390px, calc(100svh - 136px));
    transform: translateY(-10px);
  }

  .scene-princess-rapunzel,
  .scene-princess-cinderella {
    width: 146px;
    bottom: 58px;
  }

  .scene-princess-snow,
  .scene-princess-belle {
    width: 138px;
    bottom: 66px;
  }

  .scene-princess-jasmine,
  .scene-princess-aurora {
    width: 124px;
    bottom: 138px;
  }

  .scene-princess-left,
  .scene-princess-rapunzel,
  .scene-princess-snow {
    left: -86px;
  }

  .scene-princess-right,
  .scene-princess-cinderella,
  .scene-princess-belle {
    right: -86px;
  }

  .scene-princess-belle {
    right: -58px;
  }

  .scene-princess-jasmine {
    left: -64px;
  }

  .scene-princess-aurora {
    right: -76px;
  }

  .action-button {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding-inline: 12px;
  }

  .action-button .icon {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-intro {
    display: none;
  }

  .invite-shell {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
