@charset "UTF-8";

/* Lace, candlelight, and a slowly unfolding birthday wish. */
.gift-reveal-dialog {
  width: min(900px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  color: #81534e;
  background: #fff9ee;
  border: 2px solid #e9bac9;
  border-radius: 29px;
  box-shadow: 0 24px 90px #6b3e5047, 0 0 0 6px #fff4e63d, inset 0 0 0 7px #fffdf5ad;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e7b7b7 #fff9e9;
  isolation: isolate;
}
.gift-reveal-dialog[open] {
  display: block;
  animation: giftWindowArrive 1.15s cubic-bezier(.2, .65, .25, 1) both;
}
.gift-reveal-dialog::backdrop {
  background: radial-gradient(ellipse at 50% 50%, #8f6a5f5e, #513845a1);
  backdrop-filter: blur(7px);
  animation: giftBackdropArrive 1.5s ease-out both;
}
.gift-reveal-stage {
  position: relative;
  isolation: isolate;
  padding: 46px 34px 25px;
  text-align: center;
  background-image: radial-gradient(ellipse at 50% 38%, #fff0cfad, transparent 65%),
    radial-gradient(circle at 0 100%, #ffe5ebad, transparent 45%),
    radial-gradient(circle at 100% 0, #fbe5ee85, transparent 35%);
}
.gift-reveal-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 36%;
  width: min(620px, 82vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, #ffe4a36b, #ffdba01f 45%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
.gift-reveal-dialog .dialog-close {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 39px;
  height: 39px;
  color: #a16a72;
  background: #fff2eb;
  border: 1px solid #edc4c3;
  font-size: 25px;
  z-index: 6;
}
.gift-reveal-dialog .dialog-close:hover {
  background: #ffe2e9;
  color: #8e4a63;
}
.gift-reveal-ribbon {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 47px;
  height: 28px;
  transform: translateX(-50%) rotate(-4deg);
  pointer-events: none;
}
.gift-reveal-ribbon > svg { width: 100%; height: 100%; }
.gift-reveal-eyebrow {
  margin: 0 35px 5px;
  color: #a36b58;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .6px;
}
.gift-reveal-dialog h2 {
  margin: 0;
  color: #a25770;
  font-family: var(--round, sans-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .8px;
}
.gift-reveal-intro {
  margin: 8px auto 0;
  max-width: 500px;
  color: #906e61;
  font-size: 12px;
  line-height: 1.9;
}
.revealed-ticket {
  width: 100%;
  max-width: 740px;
  margin: 19px auto 0;
  transform-origin: center center;
  perspective: 1000px;
}
.revealed-ticket > img {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 13px;
  box-shadow: 0 9px 23px #a76c6521;
  transform-origin: center;
}
.gift-reveal-actions {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.gift-reveal-actions .button {
  min-height: 45px;
  padding: 10px 22px;
  font-size: 12px;
}
.gift-reveal-actions .button-primary {
  background: #ffb8ce;
  color: #7c3c53;
  box-shadow: 0 3px 0 #d7849e;
}
.gift-reveal-actions .button-quiet {
  background: #fff5d3;
  color: #956456;
  border-color: #dfb98e;
}
.gift-download-note {
  position: relative;
  z-index: 7;
  margin: 13px auto 0;
  max-width: 520px;
  min-height: 20px;
  color: #916a60;
  font-size: 11px;
  line-height: 1.9;
}
.gift-reveal-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 3;
}
.gift-reveal-stars > span {
  position: absolute;
  left: var(--spark-left, 12%);
  top: var(--spark-top, 36%);
  color: #e5b45d;
  font-size: 23px;
  line-height: 1;
  opacity: 0;
  transform: scale(.6);
  text-shadow: 0 0 10px #ffe8b5;
}
.gift-reveal-stars > span:nth-child(2) { --spark-left: 87%; --spark-top: 31%; color: #e1a0b5; font-size: 18px; }
.gift-reveal-stars > span:nth-child(3) { --spark-left: 6%; --spark-top: 61%; font-size: 16px; }
.gift-reveal-stars > span:nth-child(4) { --spark-left: 94%; --spark-top: 63%; color: #df9db0; font-size: 25px; }
.gift-reveal-stars > span:nth-child(5) { --spark-left: 25%; --spark-top: 15%; color: #e3ad7d; font-size: 14px; }
.gift-reveal-stars > span:nth-child(6) { --spark-left: 72%; --spark-top: 17%; color: #e7bc6d; font-size: 19px; }
.gift-reveal-stars > span:nth-child(7) { --spark-left: 18%; --spark-top: 80%; color: #e4a7b7; font-size: 14px; }
.gift-reveal-stars > span:nth-child(8) { --spark-left: 80%; --spark-top: 81%; font-size: 16px; }

.revealed-ticket { position: relative; z-index: 2; }
.revealed-ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(108deg, transparent 35%, #fffcf37a 49%, transparent 64%);
  transform: translateX(-115%);
  opacity: 0;
  pointer-events: none;
}

/* The ceremony is limited to the paper area, so the controls remain reachable. */
.gift-ceremony {
  position: absolute;
  inset: 154px 18px 112px;
  overflow: hidden;
  border-radius: 28px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  contain: paint;
}
.gift-ceremony *, .gift-ceremony::before, .gift-ceremony::after { pointer-events: none; }
.gift-ceremony::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 53%, #fff5d8d9, #f8dcc65c 46%, transparent 75%);
  opacity: 0;
}
.ceremony-halo {
  position: absolute;
  inset: 10% 10%;
  border: 1px solid #e5c49b;
  border-radius: 50%;
  box-shadow: 0 0 0 9px #fffbeb36, 0 0 45px #ffe3ad85, inset 0 0 32px #fff7da85;
  opacity: 0;
}
.ceremony-halo::before, .ceremony-halo::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}
.ceremony-halo::before { inset: 8px; border: 3px double #fffaf1; box-shadow: 0 0 0 1px #dfc1a07a; }
.ceremony-halo::after { inset: -12px; border: 3px dotted #fff7df; opacity: .9; }
.ceremony-pearls { position: absolute; inset: 0; opacity: 0; }
.ceremony-pearls::before {
  content: "";
  position: absolute;
  inset: 11% 7%;
  border: 1px dashed #f0d5b3;
  border-radius: 50%;
  box-shadow: inset 0 0 18px #fff1cc4d;
}
.ceremony-pearls > span {
  position: absolute;
  left: var(--pearl-x, 50%);
  top: var(--pearl-y, 12%);
  width: 9px;
  height: 9px;
  border: 1px solid #e9cfbc;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff 0 18%, #fff7e9 42%, #edcfc7 84%);
  box-shadow: 0 0 8px #fff5d6cc, 1px 2px 2px #c89ba238;
  transform: translate(-50%, -50%);
}
.ceremony-pearls > span:nth-child(2) { --pearl-x: 63%; --pearl-y: 14%; }
.ceremony-pearls > span:nth-child(3) { --pearl-x: 76%; --pearl-y: 19%; }
.ceremony-pearls > span:nth-child(4) { --pearl-x: 86%; --pearl-y: 29%; }
.ceremony-pearls > span:nth-child(5) { --pearl-x: 92%; --pearl-y: 41%; }
.ceremony-pearls > span:nth-child(6) { --pearl-x: 93%; --pearl-y: 55%; }
.ceremony-pearls > span:nth-child(7) { --pearl-x: 87%; --pearl-y: 69%; }
.ceremony-pearls > span:nth-child(8) { --pearl-x: 77%; --pearl-y: 80%; }
.ceremony-pearls > span:nth-child(9) { --pearl-x: 63%; --pearl-y: 87%; }
.ceremony-pearls > span:nth-child(10) { --pearl-x: 50%; --pearl-y: 89%; }
.ceremony-pearls > span:nth-child(11) { --pearl-x: 37%; --pearl-y: 87%; }
.ceremony-pearls > span:nth-child(12) { --pearl-x: 23%; --pearl-y: 80%; }
.ceremony-pearls > span:nth-child(13) { --pearl-x: 13%; --pearl-y: 69%; }
.ceremony-pearls > span:nth-child(14) { --pearl-x: 7%; --pearl-y: 55%; }
.ceremony-pearls > span:nth-child(15) { --pearl-x: 8%; --pearl-y: 41%; }
.ceremony-pearls > span:nth-child(16) { --pearl-x: 14%; --pearl-y: 29%; }
.ceremony-pearls > span:nth-child(17) { --pearl-x: 24%; --pearl-y: 19%; }
.ceremony-pearls > span:nth-child(18) { --pearl-x: 37%; --pearl-y: 14%; }
.ceremony-pearls > span:nth-child(3n) { width: 12px; height: 12px; }
.ceremony-curtain {
  position: absolute;
  top: -9%;
  bottom: -9%;
  width: 51.5%;
  border: 1px solid #e5b8ca;
  background: repeating-linear-gradient(90deg, #dba1b57a 0, #ffe7efed 8%, #f0bcd3ed 16%, #fff0f6ed 22%, #e5a8c2ed 29%),
    linear-gradient(#f8deeb, #eebdd1);
  box-shadow: inset 0 0 24px #fff3f1ad, 0 0 20px #b67a963d;
  opacity: 0;
}
.curtain-left { left: -1%; transform-origin: left top; border-radius: 0 12px 40% 0; }
.curtain-right { right: -1%; transform-origin: right top; border-radius: 12px 0 0 40%; }
.ceremony-curtain::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  background: radial-gradient(circle at 11px 9px, #fffaf2 0 6px, #ecd7cc 6.5px 7px, transparent 7.5px) 0 0 / 24px 18px repeat-y;
}
.curtain-left::before { right: -13px; }
.curtain-right::before { left: -13px; }
.ceremony-curtain::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: radial-gradient(circle, #fffaf1 0 2px, transparent 2.6px) 50% 0 / 8px 11px repeat-y;
}
.curtain-left::after { right: 6px; }
.curtain-right::after { left: 6px; }
.ceremony-ribbon {
  position: absolute;
  top: 26%;
  width: 54px;
  height: 47%;
  border: 1px solid #e6b3c5;
  background: linear-gradient(90deg, #dda1b6 0, #f9d6e4 25%, #ffeaf2 48%, #eeb4ce 79%, #dca0b7);
  clip-path: polygon(0 0, 100% 0, 93% 100%, 49% 82%, 7% 100%);
  opacity: 0;
  transform-origin: top center;
}
.ceremony-ribbon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-left: 1px dashed #fff8f0;
  border-right: 1px dashed #fff8f0;
}
.ribbon-left { left: calc(50% - 56px); }
.ribbon-right { right: calc(50% - 56px); }
.ceremony-petals { position: absolute; inset: 0; overflow: hidden; }
.ceremony-petals > span {
  position: absolute;
  top: var(--petal-y, 8%);
  left: var(--petal-x, 20%);
  width: 11px;
  height: 16px;
  border-radius: 80% 12% 77% 25%;
  background: linear-gradient(130deg, #ffe9f0, #efb1c8 65%, #d994b1);
  box-shadow: 0 2px 4px #cf8fa52e;
  opacity: 0;
}
.ceremony-petals > span:nth-child(2) { --petal-x: 34%; --petal-y: 20%; --petal-delay: .2s; }
.ceremony-petals > span:nth-child(3) { --petal-x: 67%; --petal-y: 5%; --petal-delay: .5s; }
.ceremony-petals > span:nth-child(4) { --petal-x: 82%; --petal-y: 16%; --petal-delay: .1s; }
.ceremony-petals > span:nth-child(5) { --petal-x: 12%; --petal-y: 25%; --petal-delay: .4s; }
.ceremony-petals > span:nth-child(6) { --petal-x: 48%; --petal-y: 12%; --petal-delay: .6s; }
.ceremony-petals > span:nth-child(7) { --petal-x: 74%; --petal-y: 30%; --petal-delay: .25s; }
.ceremony-petals > span:nth-child(8) { --petal-x: 26%; --petal-y: 32%; --petal-delay: .45s; }
.ceremony-petals > span:nth-child(9) { --petal-x: 91%; --petal-y: 5%; --petal-delay: .15s; }
.ceremony-petals > span:nth-child(10) { --petal-x: 7%; --petal-y: 9%; --petal-delay: .3s; }
.ceremony-petals > span:nth-child(11) { --petal-x: 59%; --petal-y: 27%; --petal-delay: .65s; }
.ceremony-petals > span:nth-child(12) { --petal-x: 41%; --petal-y: 4%; --petal-delay: .55s; }
.ceremony-petals > span:nth-child(3n) { width: 7px; height: 10px; background: linear-gradient(130deg, #fff5c8, #e3bc6c); }

.gift-reveal-dialog.is-revealing .gift-ceremony { visibility: visible; animation: giftCeremonyStage 7.2s linear both; }
.gift-reveal-dialog.is-revealing .gift-ceremony::before { animation: giftCandleVeil 7.2s ease-in-out both; }
.gift-reveal-dialog.is-revealing .revealed-ticket { animation: giftPaperUnfold 7.2s cubic-bezier(.22, .65, .25, 1) both; }
.gift-reveal-dialog.is-revealing .revealed-ticket::after { animation: giftSatinShine 7.2s ease-in-out both; }
.gift-reveal-dialog.is-revealing .gift-reveal-stage::before { animation: giftWarmLight 7.2s ease-out both; }
.gift-reveal-dialog.is-revealing .curtain-left { animation: giftCurtainLeft 7.2s cubic-bezier(.35, .05, .2, 1) both; }
.gift-reveal-dialog.is-revealing .curtain-right { animation: giftCurtainRight 7.2s cubic-bezier(.35, .05, .2, 1) both; }
.gift-reveal-dialog.is-revealing .ceremony-halo { animation: giftLaceHalo 7.2s ease-in-out both; }
.gift-reveal-dialog.is-revealing .ceremony-pearls { animation: giftPearlOrbit 7.2s ease-in-out both; }
.gift-reveal-dialog.is-revealing .ribbon-left { animation: giftRibbonLeft 7.2s ease-in-out both; }
.gift-reveal-dialog.is-revealing .ribbon-right { animation: giftRibbonRight 7.2s ease-in-out both; }
.gift-reveal-dialog.is-revealing .ceremony-petals > span { animation: giftPetalFall 2.5s ease-in-out calc(3.8s + var(--petal-delay, 0s)) both; }
.gift-reveal-dialog.is-revealing .gift-reveal-stars > span { animation: giftSparkAppear 2.8s ease-out 3.5s both; }
.gift-reveal-dialog.is-revealing .gift-reveal-stars > span:nth-child(2n) { animation-delay: 3.8s; }
.gift-reveal-dialog.is-revealing .gift-reveal-stars > span:nth-child(3n) { animation-delay: 4.1s; }
.gift-reveal-dialog.is-revealing .gift-reveal-ribbon { animation: giftBowNod 7.2s ease-in-out both; }
.cake-button.is-revealing-from-cake .cake-art { animation: cakeSmallWish 7.2s ease-in-out both; }
.wish-afterword {
  max-width: 360px;
  margin: 17px auto 0;
  color: #9b665d;
  font-family: var(--round, sans-serif);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .4px;
}
.wish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wish-actions .gift-reopen {
  color: #a35c78;
  background: #fff5dc;
  border: 1px dashed #e1aaa9;
  min-height: 41px;
}

@keyframes giftWindowArrive {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes giftBackdropArrive {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; backdrop-filter: blur(7px); }
}
@keyframes giftPaperUnfold {
  0%, 22% { opacity: 0; clip-path: inset(49% 14% round 14px); transform: perspective(1100px) translateY(36px) rotateX(34deg) rotateZ(-4deg) scale(.78); }
  32% { opacity: .95; clip-path: inset(40% 10% round 14px); transform: perspective(1100px) translateY(27px) rotateX(27deg) rotateZ(-3deg) scale(.85); }
  49% { opacity: 1; clip-path: inset(18% 3% round 14px); transform: perspective(1100px) translateY(13px) rotateX(13deg) rotateZ(-1deg) scale(.95); }
  67% { opacity: 1; clip-path: inset(0 round 13px); transform: perspective(1100px) translateY(-3px) rotateX(2deg) rotateZ(.45deg) scale(1.012); }
  82%, 100% { opacity: 1; clip-path: inset(0 round 13px); transform: perspective(1100px) translateY(0) rotateX(0) rotateZ(0) scale(1); }
}
@keyframes giftWarmLight {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  19% { opacity: .65; }
  42% { opacity: .95; transform: translate(-50%, -50%) scale(.9); }
  70% { opacity: .55; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}
@keyframes giftSparkAppear {
  0% { opacity: 0; transform: translateY(14px) rotate(-15deg) scale(.35); }
  26% { opacity: .85; transform: translateY(0) rotate(0) scale(.85); }
  54% { opacity: 1; transform: translateY(-9px) rotate(12deg) scale(1.1); }
  100% { opacity: 0; transform: translateY(-33px) rotate(32deg) scale(.6); }
}
@keyframes giftBowNod {
  0%, 12% { transform: translateX(-50%) rotate(-4deg) scale(1); }
  29% { transform: translateX(-50%) rotate(-11deg) scale(1.08); }
  46% { transform: translateX(-50%) rotate(6deg) scale(1.02); }
  67%, 100% { transform: translateX(-50%) rotate(-4deg) scale(1); }
}
@keyframes cakeSmallWish {
  0%, 12%, 100% { transform: translateY(0) scale(1); }
  5% { transform: translateY(3px) scale(.98); }
  9% { transform: translateY(-2px) scale(1.01); }
}
@keyframes giftCeremonyStage {
  0% { opacity: 0; }
  5%, 84% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes giftCandleVeil {
  0% { opacity: 0; transform: scale(.6); }
  18% { opacity: .95; transform: scale(.88); }
  44% { opacity: .85; transform: scale(1.08); }
  76%, 100% { opacity: 0; transform: scale(1.2); }
}
@keyframes giftCurtainLeft {
  0% { opacity: 0; transform: translateX(0) skewY(0); }
  9%, 20% { opacity: 1; transform: translateX(0) skewY(0); }
  47% { opacity: .98; transform: translateX(-94%) skewY(2deg); }
  65% { opacity: .65; transform: translateX(-116%) skewY(5deg); }
  79%, 100% { opacity: 0; transform: translateX(-139%) skewY(6deg); }
}
@keyframes giftCurtainRight {
  0% { opacity: 0; transform: translateX(0) skewY(0); }
  9%, 20% { opacity: 1; transform: translateX(0) skewY(0); }
  47% { opacity: .98; transform: translateX(94%) skewY(-2deg); }
  65% { opacity: .65; transform: translateX(116%) skewY(-5deg); }
  79%, 100% { opacity: 0; transform: translateX(139%) skewY(-6deg); }
}
@keyframes giftLaceHalo {
  0%, 12% { opacity: 0; transform: rotate(-18deg) scale(.72); }
  30% { opacity: .8; transform: rotate(-8deg) scale(.93); }
  53% { opacity: .9; transform: rotate(8deg) scale(1.04); }
  77% { opacity: .45; transform: rotate(23deg) scale(1.08); }
  95%, 100% { opacity: 0; transform: rotate(31deg) scale(1.12); }
}
@keyframes giftPearlOrbit {
  0%, 17% { opacity: 0; transform: rotate(-13deg) scale(.78); }
  34% { opacity: 1; transform: rotate(-4deg) scale(.94); }
  57% { opacity: .95; transform: rotate(12deg) scale(1.03); }
  79% { opacity: .5; transform: rotate(26deg) scale(1.07); }
  97%, 100% { opacity: 0; transform: rotate(35deg) scale(1.1); }
}
@keyframes giftRibbonLeft {
  0%, 12% { opacity: 0; transform: rotate(14deg) translateX(0); }
  25% { opacity: .9; transform: rotate(14deg) translateX(0); }
  43% { opacity: .75; transform: translate(-85px, 6px) rotate(36deg); }
  65%, 100% { opacity: 0; transform: translate(-190px, 35px) rotate(60deg); }
}
@keyframes giftRibbonRight {
  0%, 12% { opacity: 0; transform: rotate(-14deg) translateX(0); }
  25% { opacity: .9; transform: rotate(-14deg) translateX(0); }
  43% { opacity: .75; transform: translate(85px, 6px) rotate(-36deg); }
  65%, 100% { opacity: 0; transform: translate(190px, 35px) rotate(-60deg); }
}
@keyframes giftSatinShine {
  0%, 55% { opacity: 0; transform: translateX(-115%); }
  64% { opacity: .6; }
  82%, 100% { opacity: 0; transform: translateX(115%); }
}
@keyframes giftPetalFall {
  0% { opacity: 0; transform: translate(0, -16px) rotate(-20deg); }
  17% { opacity: .85; }
  56% { opacity: .75; transform: translate(18px, 85px) rotate(95deg); }
  100% { opacity: 0; transform: translate(-9px, 195px) rotate(205deg); }
}

@media (max-width: 700px) {
  .gift-reveal-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); border-radius: 21px; }
  .gift-reveal-stage { padding: 43px 17px 22px; }
  .gift-reveal-dialog .dialog-close { top: 9px; right: 9px; width: 35px; height: 35px; font-size: 23px; }
  .gift-reveal-ribbon { top: 9px; width: 40px; height: 25px; }
  .gift-reveal-eyebrow { margin-left: 30px; margin-right: 30px; font-size: 11px; }
  .gift-reveal-dialog h2 { font-size: 21px; line-height: 1.6; letter-spacing: .1px; }
  .gift-reveal-intro { margin-top: 7px; font-size: 11px; max-width: 285px; }
  .revealed-ticket { margin-top: 17px; }
  .revealed-ticket > img { border-radius: 9px; }
  .gift-reveal-actions { gap: 10px; margin-top: 18px; }
  .gift-reveal-actions .button { min-height: 43px; padding-left: 17px; padding-right: 17px; font-size: 11px; }
  .gift-download-note { margin-top: 12px; font-size: 11px; max-width: 290px; }
  .gift-reveal-stars > span { font-size: 17px; }
  .gift-ceremony { inset: 150px 8px 116px; border-radius: 20px; }
  .ceremony-pearls > span { width: 7px; height: 7px; }
  .ceremony-pearls > span:nth-child(3n) { width: 9px; height: 9px; }
  .ceremony-halo { inset: 14% 6%; }
  .ceremony-halo::after { inset: -8px; border-width: 2px; }
  .ceremony-ribbon { width: 32px; top: 23%; }
  .ribbon-left { left: calc(50% - 35px); }
  .ribbon-right { right: calc(50% - 35px); }
  .ceremony-petals > span { width: 8px; height: 12px; }
  .ceremony-petals > span:nth-child(3n) { width: 5px; height: 8px; }
  .wish-afterword { font-size: 12px; line-height: 2; }
  .wish-actions { justify-content: center; }
}
@media (max-width: 365px) {
  .gift-reveal-stage { padding-left: 13px; padding-right: 13px; }
  .gift-reveal-dialog h2 { font-size: 19px; }
  .gift-reveal-intro { font-size: 10px; }
  .gift-reveal-actions .button { padding-left: 13px; padding-right: 13px; }
  .gift-ceremony { top: 166px; }
}
@media (max-height: 520px) {
  .gift-reveal-dialog { max-height: calc(100dvh - 18px); }
  .gift-reveal-stage { padding-top: 38px; padding-bottom: 17px; }
  .gift-reveal-ribbon { top: 7px; width: 38px; height: 23px; }
  .gift-reveal-eyebrow { font-size: 10px; margin-bottom: 3px; }
  .gift-reveal-dialog h2 { font-size: 20px; }
  .gift-reveal-intro { margin-top: 4px; font-size: 10px; }
  .revealed-ticket { max-width: 620px; margin-top: 12px; }
  .gift-reveal-actions { margin-top: 15px; }
  .gift-ceremony { top: 120px; bottom: 105px; }
}
@media (prefers-reduced-motion: reduce) {
  .gift-reveal-dialog[open], .gift-reveal-dialog::backdrop,
  .gift-reveal-dialog.is-revealing .revealed-ticket,
  .gift-reveal-dialog.is-revealing .gift-reveal-stage::before,
  .gift-reveal-dialog.is-revealing .gift-reveal-stars > span,
  .gift-reveal-dialog.is-revealing .gift-reveal-ribbon,
  .cake-button.is-revealing-from-cake .cake-art { animation: none !important; }
  .gift-reveal-dialog.is-revealing .revealed-ticket::after,
  .gift-reveal-dialog.is-revealing .gift-ceremony,
  .gift-reveal-dialog.is-revealing .gift-ceremony::before,
  .gift-reveal-dialog.is-revealing .gift-ceremony * { animation: none !important; }
  .gift-reveal-dialog, .gift-reveal-dialog .revealed-ticket { opacity: 1; transform: none; clip-path: none; }
  .gift-reveal-dialog .gift-reveal-stars { display: none; }
  .gift-reveal-dialog .gift-ceremony, .gift-reveal-dialog .revealed-ticket::after { display: none !important; }
  .gift-reveal-dialog .gift-reveal-ribbon { transform: translateX(-50%) rotate(-4deg); }
}

/* Keep the curtains and pearl orbit attached to the paper, away from controls. */
.gift-ticket-stage { position: relative; width: 100%; max-width: 740px; margin: 19px auto 0; }
.gift-ticket-stage .revealed-ticket { width: 100%; max-width: none; margin: 0; }
.gift-ticket-stage .gift-ceremony { inset: -8px -12px; }
@media (max-width: 700px) {
  .gift-ticket-stage { margin-top: 17px; }
  .gift-ticket-stage .gift-ceremony { inset: -6px -8px; }
}
@media (max-height: 520px) {
  .gift-ticket-stage { max-width: 620px; margin-top: 12px; }
}
.gift-reveal-promise { display: none; }
@media (max-width: 700px) {
  .gift-reveal-promise { display: block; color: #94606d; font-size: 12px; line-height: 2; margin: 14px auto 0; max-width: 580px; }
}

/* The full ceremony is an explicit choice; the system motion preference stays intact elsewhere. */
.gift-motion-hint {
  max-width: 540px;
  margin: 10px auto 0;
  padding: 0 3px;
  color: #96776e;
  font-size: 11px;
  line-height: 1.85;
  text-align: center;
}
#giftDialog.gift-reveal-dialog.force-gift-motion[open] {
  animation: giftWindowArrive 1.15s cubic-bezier(.2, .65, .25, 1) both !important;
}
#giftDialog.gift-reveal-dialog.force-gift-motion[open]::backdrop {
  animation: giftBackdropArrive 1.5s ease-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-ceremony {
  display: block !important;
  visibility: visible;
  animation: giftCeremonyStage 7.2s linear both !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-ceremony::before {
  animation: giftCandleVeil 7.2s ease-in-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .revealed-ticket {
  animation: giftPaperUnfold 7.2s cubic-bezier(.22, .65, .25, 1) both !important;
}
#giftDialog.force-gift-motion.is-revealing .revealed-ticket::after {
  display: block !important;
  animation: giftSatinShine 7.2s ease-in-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-reveal-stage::before {
  animation: giftWarmLight 7.2s ease-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .curtain-left {
  animation: giftCurtainLeft 7.2s cubic-bezier(.35, .05, .2, 1) both !important;
}
#giftDialog.force-gift-motion.is-revealing .curtain-right {
  animation: giftCurtainRight 7.2s cubic-bezier(.35, .05, .2, 1) both !important;
}
#giftDialog.force-gift-motion.is-revealing .ceremony-halo {
  animation: giftLaceHalo 7.2s ease-in-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .ceremony-pearls {
  animation: giftPearlOrbit 7.2s ease-in-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .ribbon-left {
  animation: giftRibbonLeft 7.2s ease-in-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .ribbon-right {
  animation: giftRibbonRight 7.2s ease-in-out both !important;
}
#giftDialog.force-gift-motion.is-revealing .ceremony-petals > span {
  animation: giftPetalFall 2.5s ease-in-out calc(3.8s + var(--petal-delay, 0s)) both !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-reveal-stars {
  display: block !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-reveal-stars > span {
  animation: giftSparkAppear 2.8s ease-out 3.5s both !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-reveal-stars > span:nth-child(2n) {
  animation-delay: 3.8s !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-reveal-stars > span:nth-child(3n) {
  animation-delay: 4.1s !important;
}
#giftDialog.force-gift-motion.is-revealing .gift-reveal-ribbon {
  animation: giftBowNod 7.2s ease-in-out both !important;
}
