@font-face{font-family:'Ma Shan Zheng';src:url('public/fonts/MaShanZheng-Regular.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Zhi Mang Xing';src:url('public/fonts/ZhiMangXing-Regular.woff2') format('woff2');font-display:swap}
:root{--ink:#3f3936;--paper:#f5ead5;color-scheme:light}
*{box-sizing:border-box;cursor:url('public/cursors/mickey-default.cur'),auto}
html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--paper)}
body{user-select:none;-webkit-user-select:none;touch-action:none}
button,[role=button],[role=slider],canvas{cursor:url('public/cursors/mickey-pointer.cur'),pointer}
#viewport{width:100vw;height:100vh;display:grid;place-items:center;background:var(--paper)}
#stage{position:relative;container-type:inline-size;width:min(100vw,calc(100vh * 16 / 9));height:min(100vh,calc(100vw * 9 / 16));overflow:hidden;isolation:isolate;background:var(--paper);box-shadow:0 0 50px rgb(84 59 34 / 8%)}
#stage::after{content:'';position:absolute;inset:0;z-index:100;pointer-events:none;box-shadow:inset 0 0 2.6vw rgb(117 78 43 / 9%)}
.act{position:absolute;z-index:1;inset:0;display:none;opacity:0;overflow:hidden;transition:opacity .6s ease;background:#f6ead4}
.act.is-active{display:block;opacity:1}.act.is-entering{display:block;opacity:0}.act.is-leaving{display:block;opacity:0}
.handwritten{margin:0;color:var(--ink);font-family:'Ma Shan Zheng','Zhi Mang Xing',cursive;font-weight:400;letter-spacing:.04em;line-height:1.45}
.image-button{min-width:44px;min-height:44px;padding:0;border:0;background:transparent;-webkit-tap-highlight-color:transparent}.image-button img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.music-toggle{position:absolute;z-index:90;left:94%;top:3.111111%;width:3.75%;height:6.666667%}.music-toggle.is-decorative{pointer-events:none}.music-toggle.is-muted{opacity:.45}.music-toggle.is-playing img{animation:music-spin 3.2s linear infinite}@keyframes music-spin{to{transform:rotate(360deg)}}
.next-arrow{display:none;position:absolute;z-index:70;width:6.42%;height:6.47%;animation:arrow-nudge .9s ease-in-out infinite alternate}.is-ready>.next-arrow,.next-arrow.is-visible{display:block}@keyframes arrow-nudge{to{transform:translateX(.8cqw)}}

/* 第一幕 */
#act-1{background:url('public/images/第一幕  来电与来信/背景.jpeg') -5cqw -86.0625cqw / 115cqw 204.375cqw no-repeat}
.act1-phone{position:absolute;left:10.75%;top:-.889%;width:9.875%;height:73.333%;z-index:5;animation:phone-ring .45s linear infinite}.act1-phone.is-still{left:8.9375%;top:-.666667%;animation:none}@keyframes phone-ring{0%,100%{transform:rotate(-3deg) translate(-2px,1px)}50%{transform:rotate(3deg) translate(2px,-1px)}}
.act1-mailbox{position:absolute;left:62.438%;top:21.556%;width:25.125%;height:73.333%;object-fit:contain}.act1-envelope{position:absolute;left:58.438%;top:30.333%;width:17.813%;height:31.667%;z-index:6;opacity:0;pointer-events:none;transition:opacity 1s}.act1-envelope.is-ready{opacity:1;pointer-events:auto;animation:envelope-hop .5s ease-in-out infinite alternate}.act1-envelope.is-flying{animation:envelope-fly .8s ease-in forwards}@keyframes envelope-hop{to{transform:translateY(-.55cqw) rotate(1.5deg)}}@keyframes envelope-fly{to{transform:translate(8cqw,-42cqw) scale(1.2) rotate(8deg);opacity:0}}
.act1-copy{position:absolute;transition:opacity .3s}.act1-copy-message{opacity:0}#act-1.message .act1-copy-primary{opacity:0}#act-1.message .act1-copy-message{opacity:1}

/* 第二幕 */
#act-2{background:url('public/images/第一幕  来电与来信/背景.jpeg') -5cqw -86.0625cqw / 115cqw 204.375cqw no-repeat}.opening-card{position:absolute;opacity:0;transform:translateX(-3cqw) rotate(-2deg);animation:lay-card .65s ease forwards}.opening-1{animation-delay:.1s}.opening-2{animation-delay:.55s}.opening-3{animation-delay:1s}@keyframes lay-card{to{opacity:1;transform:translateX(0) rotate(0)}}
.act2-envelope{left:-6.5625%;top:-4.7778%;width:52.3125%;height:93%;object-fit:contain}.act2-letter{left:40.5625%;top:0;width:35.375%;height:77.4444%;object-fit:contain}.act2-birthday{position:absolute;left:75.9375%;top:2.6667%;width:16.875%;height:19.4444%;object-fit:contain}
.drag-item{position:absolute;z-index:20;touch-action:none;animation:wiggle .8s ease-in-out infinite;transition:left .35s,top .35s,width .35s,height .35s,transform .35s}.drag-item.is-dragging{z-index:35;animation:none;transition:none}.drag-item.is-snapped{animation:none}.drag-item img,.meteor-item img{width:100%;height:100%;object-fit:contain;pointer-events:none}@keyframes wiggle{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(-.35cqw)}}
.item-hat{left:87.5%;top:28.667%;width:9.041%;height:22.592%}.item-hat img{transform:rotate(-3deg)}.item-cake{left:81.688%;top:59.111%;width:16.063%;height:29.111%}.item-glasses{left:75.75%;top:45.667%;width:8.375%;height:9.556%}.item-hat.is-snapped{left:27%;top:21%;width:10.34%;height:22.08%;transform:rotate(-8deg)}.item-cake.is-snapped{left:28.44%;top:53.67%;width:14.5%;height:26.22%}.item-glasses.is-snapped{left:29.31%;top:35.89%;width:11.1%;height:14.97%;transform:rotate(-12.79deg)}
.meteor-item{position:absolute;z-index:15;left:71.875%;top:63.333%;width:8.063%;height:14.111%;pointer-events:none;transition:all 1.8s cubic-bezier(.18,.72,.22,1)}.meteor-item.is-awaiting{opacity:0}.meteor-item.is-landing{z-index:55;left:76%;top:2%;width:22%;height:32%;transform:rotate(20deg)}.meteor-item.is-landing.is-landed{left:22.188%;top:27.111%;width:8.063%;height:14.111%;transform:none}.meteor-item.is-flashing{filter:drop-shadow(0 0 2cqw #fff3ae)}
.act2-darkness{position:absolute;z-index:45;inset:0;pointer-events:none}.act2-darkness::before,.act2-darkness::after{content:'';position:absolute;left:0;width:100%;height:52%;background:#080706;transition:transform .42s cubic-bezier(.7,0,.3,1)}.act2-darkness::before{top:0;transform:translateY(-101%)}.act2-darkness::after{bottom:0;transform:translateY(101%)}.act2-darkness.is-visible::before,.act2-darkness.is-visible::after{transform:none}
.meteor-flyby{position:absolute;z-index:60;inset:0;pointer-events:none;overflow:hidden}.meteor-flyby img{position:absolute;left:-22%;top:70%;width:29%;height:43%;object-fit:contain;animation:meteor-flyby 2.1s cubic-bezier(.32,.02,.6,1) forwards}@keyframes meteor-flyby{0%{transform:translate(-8cqw,10cqw) rotate(-6deg) scale(.55);opacity:0}16%{opacity:1}55%{transform:translate(58cqw,-48cqw) rotate(-6deg) scale(1.28)}100%{transform:translate(126cqw,-104cqw) rotate(-6deg) scale(.72);opacity:0}}
.act2-gift-wrap{position:absolute;z-index:65;inset:0;opacity:0;pointer-events:none;transition:opacity .25s}.act2-gift-wrap.is-visible{opacity:1}.act2-gift{position:absolute;left:77.5%;top:61.889%;width:20.25%;height:36%;pointer-events:none}.act2-gift-wrap.is-visible .act2-gift{pointer-events:auto}

/* 第三幕 */
#act-3{background:#d8e7e7}.act3-map{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.act3-location{position:absolute;margin:0;z-index:5;transform-origin:0 0;transition:left .7s ease,top .7s ease,width .7s ease,height .7s ease,transform .7s ease}.act3-location img{width:100%;height:100%;object-fit:fill}
/* Figma 2007:6/7 → 2007:11/12. Rotation is relative to the local origin. */
.act3-dubai{left:29.468628%;top:28.729282%;width:6.959711%;height:12.173284%;transform:rotate(.774083deg)}
.act3-melbourne{left:59.758835%;top:71.381215%;width:6.705580%;height:11.729208%;transform:rotate(.532942deg)}
.is-revealing-hearts .act3-dubai{left:29.582714%;top:30.386740%;width:6.052446%;height:10.586764%}
.is-revealing-hearts .act3-melbourne{left:61.029348%;top:73.370166%;width:5.212164%;height:9.116968%;transform:rotate(.774083deg)}
.act3-heart{position:absolute;z-index:10;opacity:0;overflow:hidden;transform-origin:0 0;transition:opacity .7s ease,transform 1.8s cubic-bezier(.4,0,.2,1)}
.act3-heart img{position:absolute;max-width:none}
/* Original and joined rectangles from Figma 2007:41/48 and 2007:46/49. */
.act3-female-heart{left:calc(396 / 1583 * 100%);top:calc(224 / 905 * 100%);width:calc(142 / 1583 * 100%);height:calc(200 / 905 * 100%)}
.act3-female-heart img{left:-14.08%;top:-26.71%;width:228.86%;height:162.71%}
.act3-male-heart{left:calc(993 / 1583 * 100%);top:calc(623 / 905 * 100%);width:calc(136 / 1583 * 100%);height:calc(165 / 905 * 100%)}
.act3-male-heart img{left:-105.12%;top:-39.39%;width:216.15%;height:177.58%}
.is-revealing-hearts .act3-heart{opacity:1}
.is-moving-hearts .act3-female-heart{transform:translate(calc((626 - 396) / 142 * 100%),calc((324 - 224) / 200 * 100%))}
.is-moving-hearts .act3-male-heart{transform:translate(calc((764 - 993) / 136 * 100%),calc((346 - 623) / 165 * 100%)) scale(calc(147 / 136), calc(178 / 165))}
.act3-love{position:absolute;z-index:13;left:calc(684 / 1583 * 100%);top:calc(352 / 905 * 100%);width:calc(176 / 1583 * 100%);height:calc(176 / 905 * 100%);object-fit:contain;opacity:0}.act3-final-copy{position:absolute;z-index:12;left:29.5%;top:59.23%;width:37.97%;height:10.79%;opacity:0}.act3-final-copy img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.is-final .act3-love,.is-final .act3-final-copy{opacity:1;animation:act3-appear .6s ease both}.is-final .act3-love{animation:heart-flash .9s ease both}@keyframes act3-appear{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes heart-flash{0%{opacity:0;transform:scale(.8)}45%{opacity:1;transform:scale(1.1);filter:brightness(1.3)}100%{opacity:1;transform:scale(1);filter:none}}.act3-next{left:91.47%;top:89.06%}

/* 第四幕 */
#act-4{background:#f5ead5}.act4-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.act4-lucky-sticker{position:absolute;left:5.22%;top:0;width:9.63%;height:17.08%;object-fit:contain}.scratch-card{position:absolute;top:9.26%;width:36.31%;height:80.47%}.scratch-card-1{left:0}.scratch-card-2{left:31.84%}.scratch-card-3{left:63.69%}.scratch-ticket{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.scratch-canvas{position:absolute;z-index:3;left:21.84%;top:34.12%;width:56.33%;height:39.67%;touch-action:none;transition:opacity .45s}.scratch-card.is-complete .scratch-canvas{opacity:0;pointer-events:none}.act4-confetti-stage{position:absolute;z-index:30;inset:0;pointer-events:none;overflow:hidden}.act4-confetti-piece{position:absolute;left:var(--x);top:-8%;width:var(--w);height:var(--h);background:var(--color);animation:act4-confetti-fall var(--duration) var(--delay) cubic-bezier(.24,.63,.4,1) forwards}@keyframes act4-confetti-fall{to{top:var(--floor);transform:translateX(var(--drift)) rotate(var(--spin))}}.act4-next{display:none;position:absolute;z-index:50;left:89.62%;top:89.73%;width:6.42%;height:6.47%;animation:arrow-nudge .9s ease-in-out infinite alternate}#act-4.is-complete .act4-next{display:block}

/* 第五幕 */
#act-5{background:#f4e4c8}.act5-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.act5-prompt{position:absolute;z-index:10;left:21.375%;top:9.555556%;width:31.6875%;font-size:2.5cqw;line-height:3.625cqw;letter-spacing:0;white-space:pre}.act5-reel{transition:left .22s ease,top .22s ease,width .22s ease,height .22s ease;position:absolute;z-index:20;left:4.25%;top:10.78%;width:21%;height:65.11%;overflow:hidden;pointer-events:none}.act5-reel img{transition:left .22s ease,top .22s ease,width .22s ease,height .22s ease;position:absolute;left:-39.37%;top:-28.26%;width:214.68%;height:164.09%;max-width:none}.act5-film-window{position:absolute;left:25.25%;top:23.11%;width:30.56%;height:67.2%;overflow:hidden}.act5-film-track{position:absolute;left:0;top:0;width:211.875cqw;height:38.1cqw;display:flex;align-items:stretch;will-change:transform}.act5-memory,.act5-ending{position:relative;z-index:1;flex:0 0 24cqw;height:38.1cqw;padding:0;background:transparent;color:#3f3936;font:1.25cqw/1.45 'Ma Shan Zheng';overflow:visible}.act5-ending{flex-basis:20.875cqw}.act5-memory:nth-child(2){flex-basis:24.06cqw}.act5-memory:nth-child(3){flex-basis:21.06cqw}.act5-memory:nth-child(4){flex-basis:23.75cqw}.act5-memory:nth-child(5){flex-basis:21.06cqw}.act5-memory:nth-child(6){flex-basis:23.06cqw}.act5-memory:nth-child(7){flex-basis:26.06cqw}.act5-memory:nth-child(8){flex-basis:24.38cqw}.act5-memory .memory-photo{position:absolute;z-index:2;left:0;display:grid;place-items:center;overflow:hidden;background:#eee}.memory-taxi .memory-photo{top:4.5625cqw;width:24.0625cqw;height:18.0625cqw}.memory-boy .memory-photo{top:4.5cqw;width:20.125cqw;height:18.375cqw}.memory-restaurant .memory-photo{top:4.0625cqw;width:22.625cqw;height:20cqw}.memory-cooking .memory-photo{top:4.125cqw;width:20.25cqw;height:19.8125cqw}.memory-dark .memory-photo{top:4.5cqw;width:22.0625cqw;height:18.8125cqw}.memory-vlog .memory-photo{top:4.125cqw;width:26.0625cqw;height:18.3125cqw}.memory-rings .memory-photo{top:4.1875cqw;width:24.375cqw;height:18.3125cqw}.act5-memory img{width:100%;height:100%;object-fit:cover}.act5-memory p{position:absolute;margin:0;color:#3f3936;white-space:normal}.memory-taxi p{left:2.125cqw;top:27.1875cqw;width:18.6875cqw}.memory-boy p{left:2cqw;top:27.5cqw;width:17.5cqw}.memory-restaurant p{left:2.3125cqw;top:27.25cqw;width:21.4375cqw}.memory-cooking p{left:-.375cqw;top:27.5625cqw;width:21.4375cqw}.memory-dark p{left:4.9375cqw;top:27.5625cqw;width:13.8125cqw}.memory-vlog p{left:6.5cqw;top:26.75cqw;width:16.375cqw}.memory-rings p{left:.75cqw;top:26.6875cqw;width:21.625cqw}.act5-ending p{position:absolute;left:5cqw;top:10cqw;margin:0;text-align:left;font-size:2.5cqw;line-height:1.45;color:#3f3936}.act5-film-segment{position:absolute;z-index:3;display:block;overflow:hidden;pointer-events:none}.act5-film-segment img{position:absolute;max-width:none}.segment-main{top:.375cqw;width:36.081cqw;height:26.666cqw}.segment-main img{left:-27.8%;top:0;width:127.84%;height:100%}.segment-main-1{left:0}.segment-main-2{left:44.75cqw}.segment-main-3{left:89.6875cqw}.segment-pull{top:.507cqw;width:8.823cqw;height:26.402cqw}.segment-pull img{left:-.14%;top:0;width:430.12%;height:100%}.segment-pull-1{left:36.081cqw}.segment-pull-2{left:80.831cqw}.segment-pull-3{left:125.769cqw}.segment-middle{top:.125cqw;height:26.5cqw}.segment-middle img{top:0;height:99.98%}.segment-middle-1{left:133.875cqw;width:15.875cqw}.segment-middle-1 img{left:-188.58%;width:288.53%}.segment-middle-2{left:148.3125cqw;width:26.75cqw}.segment-middle-2 img{left:.5%;width:171.23%}.segment-tail{left:174.643cqw;top:.407cqw;width:37.232cqw;height:25.904cqw}.segment-tail img{inset:0;width:100%;height:100%;object-fit:cover}.act5-drag-surface{position:absolute;z-index:25;left:25%;top:20%;right:0;height:70%;touch-action:none}.act5-drag-surface:focus{outline:0}.act5-drag-surface.is-dragging{cursor:grabbing}.act5-next{display:none;position:absolute;z-index:40;left:91.69%;top:90.78%;width:6.38%;height:6.44%;animation:arrow-nudge .9s ease-in-out infinite alternate}#act-5.is-complete .act5-next{display:block}

/* Figma 62:111/112: resting reel and starter use their own CROP matrices. */
#act-5:not(.has-progress) .act5-reel {
  left: 5.625%; top: 9.555556%; width: 20.4375%; height: 70.111111%;
}
#act-5:not(.has-progress) .act5-reel img {
  left: -53.378408%; top: -24.321668%; width: 229.219382%; height: 158.329171%;
}
.act5-starter {
  position: absolute; left: 26.0625%; top: 24.222222%;
  width: 30.5625%; height: 47%; overflow: hidden;
}
.act5-starter img {
  position: absolute; max-width: none;
  left: -24.335369%; top: -.001054%; width: 124.335373%; height: 100.002110%;
}
#act-5:not(.has-progress) .act5-film-window { visibility: hidden; }


/* 第六幕 */
#act-6, #act-6 *{-webkit-user-drag:none;-webkit-tap-highlight-color:transparent;user-select:none;}
#act-6{background:#f6e9cf}.act6-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.act6-doodles{position:absolute;z-index:1;left:.19%;top:0;width:49.84%;height:100%;object-fit:fill;pointer-events:none}.act6-banner{position:absolute;z-index:55;left:63.42%;top:-19.64%;width:27.44%;height:48.66%;object-fit:contain;transform:rotate(4.317deg);opacity:0;transition:opacity .6s}.has-candle .act6-banner{opacity:1}.collage-prompt{position:absolute;z-index:70;display:none;font-size:2.5cqw;line-height:1.1}.collage-prompt.is-visible{display:block;animation:prompt-in .4s ease}.collage-prompt[data-strip="0"]{left:50.03%;top:21.09%}.collage-prompt[data-strip="1"]{left:55.38%;top:26.79%}.collage-prompt[data-strip="2"]{left:57.27%;top:25.67%}.collage-prompt[data-strip="3"]{left:49.34%;top:20.54%}.collage-prompt[data-strip="4"]{left:56.26%;top:21.09%}.collage-prompt[data-strip="5"]{left:56.26%;top:17.3%}@keyframes prompt-in{from{opacity:0;transform:translateY(.8cqw)}to{opacity:1;transform:none}}
.collage-piece{position:absolute;overflow:visible;touch-action:none;pointer-events:none}.collage-piece.is-active{pointer-events:auto}.collage-piece.is-dragging{z-index:80!important;will-change:transform}.collage-piece.is-snapped{pointer-events:none}.collage-piece[data-strip="0"]{z-index:10}.collage-piece[data-strip="1"]{z-index:20}.collage-piece[data-strip="2"]{z-index:30}.collage-piece[data-strip="3"]{z-index:40}.collage-piece[data-strip="4"]{z-index:50}.collage-piece[data-strip="5"]{z-index:60}.collage-paper-mask{position:absolute;inset:0;overflow:hidden;pointer-events:none}.collage-strip{position:absolute;max-width:none;filter:drop-shadow(0 .18cqw .12cqw rgb(62 43 30 / 12%))}.collage-piece[data-strip="0"] .collage-strip{left:-4.99%;top:-30.33%;width:110.66%;height:141.42%}.collage-piece[data-strip="1"] .collage-strip{left:-5.91%;top:-27.84%;width:112.81%;height:153.41%}.collage-piece[data-strip="2"] .collage-strip{inset:0;width:100%;height:100%;object-fit:cover}.collage-piece[data-strip="3"] .collage-strip{left:-78.13%;top:-187.07%;width:220.67%;height:530.64%}.collage-piece[data-strip="4"] .collage-strip{left:-8.97%;top:-12.98%;width:127.88%;height:136.64%}.collage-piece[data-strip="5"] .collage-strip{left:-27.9%;top:-28.32%;width:154.51%;height:162.83%}.collage-blessing.is-visible{opacity:1}
.collage-decoration{position:absolute;opacity:0;pointer-events:none;transition:opacity .65s ease,transform .9s cubic-bezier(.18,.75,.22,1)}.collage-decoration.is-revealed{opacity:1}.deco-1{z-index:9;left:2.2%;top:60.49%;width:5.16%;height:10.27%;transform:translateY(3cqw)}.deco-1.is-revealed{transform:none}.deco-2a{z-index:22;left:41%;top:36.94%;width:4.66%;height:8.15%;transform:translate(-2cqw,2cqw) rotate(15.395deg)}.deco-2a.is-revealed{transform:rotate(15.395deg)}.deco-2b{z-index:23;left:33.17%;top:63.17%;width:5.92%;height:5.69%;transform:translateY(-2cqw)}.deco-2b.is-revealed{transform:none}.deco-3a{z-index:32;left:29.09%;top:50.33%;width:3.32%;height:6.86%;transform:translate(-1cqw,2cqw) rotate(16.272deg)}.deco-3a.is-revealed{transform:rotate(16.272deg)}.deco-3b{z-index:33;left:9.9%;top:31.25%;width:3.88%;height:7.55%;transform:translate(2cqw,2cqw) rotate(-26.808deg)}.deco-3b.is-revealed{transform:rotate(-26.808deg)}.deco-4{z-index:41;left:34.61%;top:30.02%;width:4.91%;height:8.71%;transform:translateY(2cqw)}.deco-4.is-revealed{transform:none}.deco-5{z-index:52;left:31.53%;top:33.15%;width:2.71%;height:4.58%;transform:translateY(-1.5cqw)}.deco-5.is-revealed{transform:none}
.act6-candle{position:absolute;z-index:58;left:19.38%;top:4.02%;width:5.48%;height:15.29%;object-fit:contain;opacity:0;transition:opacity .7s,transform .8s cubic-bezier(.18,.75,.22,1);transform:translateY(3cqw)}.has-candle .act6-candle{opacity:1;transform:none}.act6-candle-glow{position:absolute;z-index:59;left:21.29%;top:3.2%;width:2.2%;aspect-ratio:1;border-radius:50%;opacity:0;pointer-events:none;background:radial-gradient(circle,#fffbd0 0 12%,#ffc65b 32%,rgb(255 151 40 / 34%) 55%,transparent 75%)}.is-candle-flashing .act6-candle-glow{animation:candle-glow .95s ease}@keyframes candle-glow{0%,100%{opacity:0;transform:scale(.7)}45%{opacity:1;transform:scale(1.8)}}
.act6-lights{position:absolute;z-index:64;inset:0;opacity:0;pointer-events:none;background:radial-gradient(ellipse 38% 60% at 25% 55%,transparent 0 42%,rgb(10 7 5 / 28%) 58%,rgb(3 2 2 / 82%) 84%,#020101 100%);transition:opacity 1.35s ease}.is-dimmed .act6-lights{opacity:1}.act6-next{display:none;position:absolute;z-index:68;left:90.811831%;top:89.508929%;width:6.419131%;height:6.473214%;animation:arrow-nudge .9s ease-in-out infinite alternate}.is-ready .act6-next{display:block}.is-dimmed .act6-birthday-text{opacity:1}

/* 第七幕 */
#act-7{background:url('public/images/第五幕 胶卷/figma/纸张背景.png') center/cover no-repeat}.act7-photo{position:absolute;left:19.760856%;top:21.316964%;width:60.541221%;height:80.245536%;object-fit:cover;opacity:0;transition:opacity 1.35s ease}.is-photo-visible .act7-photo{opacity:1}.act7-line.is-visible{opacity:1}.is-complete .act7-end{opacity:1;animation:act7-end-glow 2.7s 1s ease-in-out infinite}@keyframes act7-end-glow{0%,100%{opacity:.62;filter:none}50%{opacity:1;filter:drop-shadow(0 0 .45cqw rgb(89 67 49 / 35%))}}
/* P0 视觉纠偏：以 Figma 逻辑舞台 1600×900 / 1589×896 为基准 */
.drag-item>.drag-visual{position:absolute;inset:0;display:block;pointer-events:none}.drag-item>.drag-visual>img{position:absolute;max-width:none;pointer-events:none}.item-hat>.drag-visual{left:3.5%;top:1.67%;width:93%;height:96.67%;transform:rotate(-3deg)}.item-hat>.drag-visual>img,.item-cake>.drag-visual>img{inset:0;width:100%;height:100%;object-fit:contain}.item-glasses>.drag-visual>img{inset:0;width:100%;height:100%;object-fit:contain}.item-hat.is-snapped{z-index:24;left:27%;top:21%;width:10.34475%;height:22.0809%;transform:none}.item-hat.is-snapped>.drag-visual{left:7.25%;top:4.56%;width:85.5%;height:90.89%;overflow:hidden;transform:rotate(-8.09deg)}.item-hat.is-snapped>.drag-visual>img{left:3.76%;top:-26.95%;width:111.04%;height:127.1%;object-fit:fill}.item-cake.is-snapped{z-index:21;left:28.4375%;top:53.6667%;width:14.5%;height:26.2222%;transform:none}.item-glasses.is-snapped{z-index:22;left:29.3125%;top:35.8889%;width:11.1041%;height:14.9696%;transform:none}.item-glasses.is-snapped>.drag-visual{left:5.25%;top:12.12%;width:89.51%;height:75.75%;overflow:hidden;transform:rotate(-12.79deg)}.item-glasses.is-snapped>.drag-visual>img{left:.04%;top:20.36%;width:100.76%;height:auto;object-fit:fill}
.scratch-card-1,.scratch-card-2{top:9.71%}.scratch-card-3{top:9.26%}.scratch-card-1 .scratch-card-2 .scratch-card-3 /* Figma 76:74, 76:70 and 76:62, relative to each 577 × 721 ticket. */
.scratch-card-1 .scratch-canvas { top: 33.841886%; }
.scratch-card-2 .scratch-canvas { top: 33.564494%; }
.scratch-card-3 .scratch-canvas { top: 34.119279%; }
.act6-doodles{left:.1888%;top:-15.067%;width:49.843%;height:117.746%;object-fit:fill}.act6-banner{left:62.35%;top:-17.88%;width:27.44%;height:48.66%;transform:rotate(4.317deg)}.collage-prompt{font-size:2.517306cqw;line-height:3.650094cqw;letter-spacing:0}
.item-hat.is-snapped>.drag-visual>img{transform:none}
.item-glasses.is-snapped>.drag-visual>img{height:100.76%}
.act3-final-copy img{object-fit:fill}
/* Figma 16:23 → 16:43: local rectangle, rotation and original image crop. */
.act2-photo-shell{left:20.359928%;top:27.219571%;width:26.75%;height:60.362237%}
.act2-photo-shell.is-decorated{left:20.357513%;top:27.170536%;height:60.424778%}
.act2-photo-frame{position:absolute;inset:0;overflow:hidden;transform:rotate(-5deg);transform-origin:0 0}
.act2-photo{position:absolute;max-width:none;object-fit:fill}
/* Figma 2033:162：装饰使用节点实际图片填充及内层几何，2b 保留节点的裁切。 */
.deco-1,.deco-2a,.deco-3a,.deco-3b,.act6-candle,.act6-banner{object-fit:cover}
.deco-2a{left:40.2997%;top:37.8921%}
.deco-3a{left:28.4804%;top:51.0233%}
.deco-3b{left:9.8763%;top:31.2794%}
.deco-2b{display:block;overflow:hidden}
.deco-2b>img{position:absolute;left:-15.24%;top:-38.62%;width:128.1%;height:166.71%;max-width:none;pointer-events:none}
/* Figma 2012:73 → 2033:163：涂鸦层随拼贴完成从 y=-135 移到 y=-117。 */
.act6-doodles{transition:top .55s ease}
.is-collage-complete .act6-doodles{top:-13.058036%}
/* Figma 原生 IMAGE/CROP imageTransform 的逆矩阵；保留填充内部旋转与剪切。 */
.act2-photo{left:0;top:0;width:100%;height:100%;transform-origin:0 0;transform:translate(-3.277752%,-1.602668%) scale(1.06555502,1.03081370)}
.is-decorated .act2-photo{transform:translate(-3.277752%,-1.519548%) scale(1.06555502,1.02974682)}
.item-hat.is-snapped>.drag-visual>img{left:0;top:0;width:100%;height:100%;object-fit:fill;transform-origin:0 0;transform:translate(5.250367%,-26.768765%) matrix(1.10829271,.04844418,-.05544899,1.26854688,0,0)}
.item-glasses.is-snapped>.drag-visual>img{left:0;top:0;width:100%;height:100%;object-fit:fill;transform-origin:0 0;transform:translate(-1.546191%,20.062968%) matrix(.99247936,.12241249,-.12241250,.99247936,0,0)}
/* 胶卷拖动与拼贴吸附：运行时运动规则，不改变 Figma 原始视觉素材。 */
.act5-film-window{will-change:width}
.collage-piece.is-snapped{pointer-events:none;transition:none}

/* Figma native SVG text preserves baseline positions and authored wrapping. */
.figma-text {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.collage-blessing, .act6-birthday-text, .act7-line, .act7-end { opacity: 0; }
.scratch-prize { z-index: 2; }
.collage-blessing { z-index: 4; }
.act6-birthday-text { z-index: 66; transition: opacity .8s ease; }
.act7-line, .act7-end { z-index: 5; }
.act7-end { transition: opacity .7s ease; }

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
