/* Opening effect — option 21a (17a without the wiggle, white 'Tap the bow' cue, with a popper sound) from her Claude Design file `Confetti Opening.dc.html`
   ("15b with a white 'A gift for you'"). The hero (headline down to the video) starts
   gift-wrapped; tapping opens it like two doors, then an updraft of confetti.
   Every style below is copied from that file. */
.gift { position: absolute; left: 0; top: 0; width: var(--frame); height: 731px; z-index: 20;
        cursor: pointer; perspective: 1100px; transform-origin: 50% 60%;
        -webkit-tap-highlight-color: transparent; }   /* 21a: no wiggle */
.gift.is-open { pointer-events: none; animation: none; }
.gift:focus-visible { outline: none; }
.gift__cta { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.gift__title { position: absolute; left: 0; right: 0; top: 7%; text-align: center; }
.gift__eyebrow { font: 600 13px/1 Jost, sans-serif; letter-spacing: .3em; text-transform: uppercase;
                 color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.gift__tap { margin-top: 10px; font: italic 600 46px/1 'Cormorant Garamond', serif; color: #fdf6e8;
             text-shadow: 0 4px 18px rgba(0,0,0,.45); }
.gift__rings { position: absolute; left: 50%; top: calc(36% - 10px); width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.gift__rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(243,220,158,.85);
                 animation: gift-tapRing 1.6s ease-out infinite; }
.gift__rings i + i { animation-delay: .8s; }
.gift__hint { position: absolute; left: 0; right: 0; top: calc(36% + 74px); display: flex; flex-direction: column;
              align-items: center; gap: 6px; animation: gift-bob 1.4s ease-in-out infinite; }
.gift__hint i { width: 12px; height: 12px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }
.gift__hint span { font: 500 10px/1 Jost, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #fff;
                   text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.gift__door { position: absolute; top: 0; bottom: 0; width: 50.5%; overflow: hidden; background:#1f3a2a;background-image:radial-gradient(circle at 50% 50%,rgba(230,198,127,.6) 0 1.6px,transparent 2.3px),radial-gradient(circle at 50% 50%,rgba(253,246,232,.28) 0 1px,transparent 1.7px),radial-gradient(90% 55% at 30% 8%,rgba(201,162,75,.2),transparent 70%),linear-gradient(180deg,#24432f,#173325);background-size:26px 26px,26px 26px,100% 100%,100% 100%;background-position:0 0,13px 13px,0 0,0 0; }
.gift__door--l { left: 0; transform-origin: left center; box-shadow: inset -16px 0 26px rgba(0,0,0,.3); }
.gift__door--r { right: 0; transform-origin: right center; box-shadow: inset 16px 0 26px rgba(0,0,0,.3); }
.gift__edge { position: absolute; top: 0; bottom: 0; width: 15px; }
.gift__door--l .gift__edge { right: 0; background: linear-gradient(90deg,#8a6a24,#c9a24b 40%,#f3dc9e); }
.gift__door--r .gift__edge { left: 0;  background: linear-gradient(270deg,#8a6a24,#c9a24b 40%,#f3dc9e); }
.gift__band { position: absolute; left: 0; right: 0; top: calc(36% - 15px); height: 30px;
              background: linear-gradient(180deg,#8a6a24,#c9a24b 20%,#f3dc9e 48%,#c9a24b 76%,#8a6a24); box-shadow: 0 0 6px rgba(0,0,0,.18); }
.gift__merry { position: absolute; right: 30px; top: 84%; text-align: right; font: italic 500 22px/1.2 'Cormorant Garamond', serif; color: #e6c67f; }
.gift__from { position: absolute; left: 30px; top: 84%; font: 500 9px/1.7 Jost, sans-serif; letter-spacing: .26em;
              text-transform: uppercase; color: rgba(253,246,232,.7); }
.gift__seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 60px; margin-left: -30px;
              background: radial-gradient(closest-side, rgba(255,240,200,.95), rgba(201,162,75,0)); opacity: 0; }
.gift__bow { position: absolute; left: 50%; top: calc(36% - 50px); width: 170px; height: 130px; margin-left: -85px; z-index: 3;
             filter: drop-shadow(0 8px 12px rgba(0,0,0,.28)); }
.gift__bow i { position: absolute; display: block; }
.gift__tail { top: 44px; width: 24px; height: 76px; transform-origin: top center;
              background: linear-gradient(90deg,#8a6a24,#c9a24b 20%,#f3dc9e 48%,#c9a24b 76%,#8a6a24);
              clip-path: polygon(0 0,100% 0,100% 100%,50% 86%,0 100%); }
.gift__tail--l { left: 58px; transform: rotate(22deg); }
.gift__tail--r { left: 88px; transform: rotate(-22deg); }
.gift__loop { top: 8px; width: 78px; height: 54px; border-radius: 50%; }
.gift__loop--l { left: 4px; transform: rotate(-16deg); background: radial-gradient(70% 70% at 40% 35%,#f3dc9e,#c9a24b 55%,#8a6a24); }
.gift__loop--r { right: 4px; transform: rotate(16deg); background: radial-gradient(70% 70% at 60% 35%,#f3dc9e,#c9a24b 55%,#8a6a24); }
.gift__loop b { position: absolute; top: 30%; width: 44%; height: 36%; border-radius: 50%; background: #8a6a24; opacity: .55; }
.gift__loop--l b { left: 30%; } .gift__loop--r b { right: 30%; }
.gift__knot { left: 71px; top: 24px; width: 28px; height: 32px; border-radius: 9px;
              background: radial-gradient(70% 70% at 45% 35%,#f3dc9e,#c9a24b 60%,#8a6a24); }
.gift.is-open .gift__door--l { animation: gift-doorL 1.4s cubic-bezier(.55,0,.3,1) forwards; }
.gift.is-open .gift__door--r { animation: gift-doorR 1.4s cubic-bezier(.55,0,.3,1) forwards; }
.gift.is-open .gift__seam    { animation: gift-seamFlash .8s ease-out .35s both; }
.gift.is-open .gift__bow     { animation: gift-bowPop .55s ease-in forwards; }
.gift.is-open .gift__cta     { animation: gift-ctaOut .3s ease-out forwards; }
.gift.is-gone { display: none; }
@keyframes gift-tapRing { 0% { transform: scale(1); opacity: .9 } 100% { transform: scale(1.35); opacity: 0 } }
@keyframes gift-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes gift-nudge { 0%,80%,100% { transform: rotate(0) } 84% { transform: rotate(-1.2deg) } 88% { transform: rotate(1.2deg) } 92% { transform: rotate(-.8deg) } 96% { transform: rotate(.5deg) } }
@keyframes gift-doorL { 0%,32% { transform: rotateY(0); opacity: 1 } 82% { opacity: 1 } 100% { transform: rotateY(-100deg); opacity: 0 } }
@keyframes gift-doorR { 0%,32% { transform: rotateY(0); opacity: 1 } 82% { opacity: 1 } 100% { transform: rotateY(100deg); opacity: 0 } }
@keyframes gift-seamFlash { 0% { opacity: 0; transform: scaleY(.4) } 22% { opacity: 1; transform: scaleY(1) } 100% { opacity: 0; transform: scaleY(1.1) } }
@keyframes gift-bowPop { 0% { transform: scale(1) rotate(0); opacity: 1 } 35% { transform: scale(1.12) rotate(-4deg); opacity: 1 } 100% { transform: translateY(-50px) scale(.2) rotate(18deg); opacity: 0 } }
@keyframes gift-ctaOut { to { opacity: 0; transform: scale(.92) } }
@media (prefers-reduced-motion: reduce) {
  .gift, .gift__rings i, .gift__hint { animation: none; }
}
/* The page sets -webkit-font-smoothing: antialiased, which thins light text on a
   dark ground; her design file renders with the browser default, so the wrap's
   lettering does too — "Tap to open" then reads as white as in her file. */
.gift { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
/* Until the gift is opened the page stays put (gift.js adds/removes this). */
html.gift-locked, html.gift-locked body { overflow: hidden; overscroll-behavior: none; touch-action: none; }
