@font-face {
  font-family: 'Zhi Mang Xing';
  src: url('public/fonts/ZhiMangXing-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('public/fonts/MaShanZheng-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root { color-scheme: light; --ink: #3f3936; --paper: #f5ead5; }
* { box-sizing: border-box; }
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 { font: inherit; }
#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::before { content: ''; position: absolute; z-index: 0; left: -5%; top: -153%; width: 115%; height: 363.333%; background: url('public/images/第一幕/背景.jpeg') center / 100% 100% no-repeat; pointer-events: none; }
#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; transition: opacity .6s ease; }
.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; cursor: pointer; -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.3125%; top: 1.8889%; width: 3.75%; height: 6.667%; }
.music-toggle.is-decorative { pointer-events: none; }
.music-toggle.is-muted { opacity: .45; }
.music-toggle img { transform-origin: 50% 50%; }
.music-toggle.is-playing img { animation: music-switch-spin 3.2s linear infinite; }
@keyframes music-switch-spin { to { transform: rotate(360deg); } }
.next-arrow { display: none; position: absolute; z-index: 40; right: 3%; bottom: 4%; width: 10%; animation: arrow-nudge .9s ease-in-out infinite alternate; }
.next-arrow.is-visible { display: block; }
@keyframes arrow-nudge { to { transform: translateX(.8vw); } }
@keyframes wiggle { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-.35vw); } }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* 第一幕 */
.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 { 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 ease; }
.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(-.55vw) rotate(1.5deg); } }
@keyframes envelope-fly { to { transform: translate(8vw,-42vh) scale(1.2) rotate(8deg); opacity: 0; } }
.act1-copy { position: absolute; transition: opacity .3s ease; }
.act1-copy-primary { left: 20.625%; top: 21.556%; width: 29.375%; font-size: 2.75cqw; line-height: 1.455; }
.act1-copy-message { left: 43.063%; top: 72.667%; width: 32%; font-size: 2.5cqw; line-height: 1.45; opacity: 0; }
#act-1.message .act1-copy-primary { opacity: 0; }
#act-1.message .act1-copy-message { opacity: 1; }

/* 第二幕 */
.opening-card { position: absolute; opacity: 0; transform: translateX(-3vw) 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-photo-shell { left: 20.3125%; top: 22.1111%; width: 29.6987%; height: 66.1302%; display: grid; place-items: center; }
.act2-photo { width: 90.071%; height: 94.084%; object-fit: contain; transform: rotate(-5deg); }
.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; cursor: grab; touch-action: none; animation: wiggle .8s ease-in-out infinite; transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease, transform .35s ease; }
.drag-item.is-dragging { cursor: grabbing; z-index: 35; animation: none; transition: none; }
.drag-item.is-snapped { animation: none; cursor: default; }
.drag-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.item-hat { left: 87.5%; top: 28.6667%; width: 9.0407%; height: 22.5922%; }
.item-hat img { transform: rotate(-3deg); }
.item-cake { left: 81.6875%; top: 59.1111%; width: 16.0625%; height: 29.1111%; }
.item-glasses { left: 75.75%; top: 45.6667%; width: 8.375%; height: 9.5556%; }
.item-hat.is-snapped { left: 29.625%; top: 18.6667%; }
.item-cake.is-snapped { left: 28.625%; top: 50.7778%; }
.item-glasses.is-snapped { left: 31.25%; top: 41.2222%; }
.meteor-item { position: absolute; z-index: 15; left: 71.875%; top: 63.3333%; width: 8.0625%; height: 14.1111%; pointer-events: none; transition: left 1.8s cubic-bezier(.18,.72,.22,1), top 1.8s cubic-bezier(.18,.72,.22,1), width 1.8s cubic-bezier(.18,.72,.22,1), height 1.8s cubic-bezier(.18,.72,.22,1), transform 1.8s cubic-bezier(.18,.72,.22,1), opacity .18s ease; }
.meteor-item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.meteor-item::after { content: ''; position: absolute; inset: -35%; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgb(255 255 239 / 95%) 0 8%, rgb(255 235 158 / 72%) 20%, transparent 62%); pointer-events: none; }
.meteor-item.is-awaiting { opacity: 0; }
.meteor-item.is-landing { z-index: 55; left: 76%; top: 2%; width: 22%; height: 32%; opacity: 1; transform: rotate(20deg); }
.meteor-item.is-landing.is-landed { left: 22.1875%; top: 27.1111%; width: 8.0625%; height: 14.1111%; transform: rotate(0); }
.meteor-item.is-flashing::after { animation: meteor-flash .72s ease-out; }
.act2-darkness { position: absolute; z-index: 45; inset: 0; overflow: hidden; 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%); border-radius: 0 0 50% 50% / 0 0 10% 10%; }
.act2-darkness::after { bottom: 0; transform: translateY(101%); border-radius: 50% 50% 0 0 / 10% 10% 0 0; }
.act2-darkness.is-visible::before, .act2-darkness.is-visible::after { transform: translateY(0); }
.meteor-flyby { position: absolute; z-index: 60; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.meteor-flyby img { position: absolute; left: -22%; top: 70%; width: 29%; height: 43%; object-fit: contain; filter: drop-shadow(0 0 1.2vw rgb(255 240 194 / 80%)); animation: meteor-flyby 2.1s cubic-bezier(.32,.02,.6,1) forwards; }
.meteor-flyby::before { content: ''; position: absolute; left: -28%; top: 82%; width: 42%; height: 2.4%; border-radius: 999px; opacity: 0; background: linear-gradient(90deg, transparent, rgb(255 222 152 / 15%), rgb(255 246 210 / 92%)); filter: blur(.35vw); transform-origin: right center; transform: rotate(-32deg); animation: meteor-trail 2.1s cubic-bezier(.32,.02,.6,1) forwards; }
@keyframes meteor-flyby { 0% { transform: translate(-8vw,10vh) rotate(-6deg) scale(.55); opacity: 0; } 16% { opacity: 1; } 55% { transform: translate(58vw,-48vh) rotate(-6deg) scale(1.28); opacity: 1; } 100% { transform: translate(126vw,-104vh) rotate(-6deg) scale(.72); opacity: 0; } }
@keyframes meteor-trail { 0% { opacity: 0; transform: translate(-8vw,10vh) rotate(-32deg) scaleX(.2); } 22% { opacity: .9; } 60% { opacity: .72; transform: translate(58vw,-48vh) rotate(-32deg) scaleX(1); } 100% { opacity: 0; transform: translate(126vw,-104vh) rotate(-32deg) scaleX(.35); } }
@keyframes meteor-flash { 0% { opacity: 0; transform: scale(.35); } 32% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1.8); } }
.act2-gift-wrap { position: absolute; z-index: 65; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.act2-gift-wrap.is-visible { opacity: 1; }
.act2-gift-wrap p { position: absolute; left: 79.0625%; top: 52.4444%; width: 24.3125%; text-align: left; font-size: 2.5cqw; line-height: 1.45; opacity: 0; transform: translateY(1vw); }
.act2-gift-wrap.is-visible p { animation: gift-copy .3s .35s ease forwards; }
@keyframes gift-copy { to { opacity: 1; transform: none; } }
.act2-gift { position: absolute; left: 77.5%; top: 61.8889%; width: 20.25%; height: 36%; opacity: 0; pointer-events: none; }
.act2-gift-wrap.is-visible .act2-gift { pointer-events: auto; animation: pop .45s ease forwards; }

/* 第三幕 */
.act3-map-layer { position: absolute; inset: 0; overflow: hidden; transition: filter .38s ease; }
.act3-map-layer.is-blurred { filter: blur(.55vw); }
.act3-map { position: absolute; left: -1.07%; top: -9.39%; width: 101.07%; height: 120.26%; object-fit: fill; }
.act3-routes { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.act3-routes path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.2; stroke-dasharray: 5.5 9.5; vector-effect: non-scaling-stroke; }
.act3-route-base path { stroke: #294e73; marker-end: url('#route-arrow-blue'); }
.act3-route-progress path { stroke: #8b302d; marker-end: url('#route-arrow-red'); opacity: 0; }
.act3-route-progress path.is-drawing, .act3-route-progress path.is-traveled { opacity: 1; }
#route-arrow-blue path, #route-arrow-red path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#route-arrow-blue path { stroke: #294e73; }
#route-arrow-red path { stroke: #8b302d; }
.act3-place, .act3-home { position: absolute; z-index: 4; object-fit: cover; }
.act3-place { width: 7.1383%; height: 12.4862%; }
.act3-yunnan { left: 37.270%; top: 59.006%; }
.act3-shanghai { left: 59.949%; top: 52.707%; }
.act3-japan { left: 79.406%; top: 40.221%; }
.act3-harbin { left: 67.088%; top: 10.608%; }
.act3-shanxi { left: 48.642%; top: 31.602%; }
.act3-home { left: 61.402%; top: 29.724%; width: 9.2862%; height: 16.2431%; }
.act3-note { position: absolute; z-index: 5; left: 6.949%; top: 17.459%; width: 26.974%; height: 16.03%; }
.act3-note > img { position: absolute; left: 0; top: 0; width: 100%; height: 96.49%; object-fit: fill; }
.act3-note p { position: absolute; left: 8.35%; top: 27.7%; width: 89.86%; font-size: 1.516cqw; line-height: 2.148cqw; letter-spacing: .106cqw; }
.act3-travelers { position: absolute; z-index: 8; left: 64.245%; top: 31.602%; width: 5.6854%; height: 10.3867%; min-width: 44px; min-height: 44px; touch-action: none; }
.act3-travelers img { width: 100%; height: 100%; object-fit: cover; }
.act3-travelers.is-moving { pointer-events: none; }
.act3-book-overlay { position: absolute; z-index: 35; inset: 0; opacity: 0; pointer-events: none; transition: opacity .34s ease; }
.act3-book-overlay.is-visible { opacity: 1; pointer-events: auto; }
.act3-book { position: absolute; filter: drop-shadow(0 .35vw .25vw rgb(0 0 0 / 24%)); transform-origin: 50% 70%; }
.act3-book-overlay.is-visible .act3-book { animation: book-open .55s cubic-bezier(.22,.78,.25,1) both; }
.act3-book-overlay.is-closing .act3-book { animation: book-close .34s ease-in both; }
@keyframes book-open { from { opacity: 0; transform: scale(.72,.9) rotate(-1.5deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes book-close { to { opacity: 0; transform: scale(.88,.94); } }
.act3-book-bg, .act3-book-asset { position: absolute; object-fit: cover; pointer-events: none; }
.act3-book-bg { inset: 0; width: 100%; height: 100%; object-fit: fill; }
.act3-book-text { position: absolute; margin: 0; color: #3f3936; font-family: 'Ma Shan Zheng','Zhi Mang Xing',cursive; font-size: 1.263cqw; line-height: 1.769cqw; letter-spacing: -.038cqw; white-space: normal; }
.act3-book-text.is-small { font-size: 1.011cqw; }
.act3-continue { position: absolute; z-index: 10; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.act3-continue::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(44px, 160%); height: max(44px, 160%); transform: translate(-50%,-50%); }
.act3-continue img { width: 100%; height: 100%; object-fit: contain; }
.act3-next { right: auto; bottom: auto; left: 91.725%; top: 91.05%; width: 6.4447%; height: 6.4088%; }

/* 第四幕 */
.act4-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act4-build, .act4-finished { position: absolute; inset: 0; transition: opacity .2s ease; }
.act4-finished { opacity: 0; pointer-events: none; }
#act-4.is-final .act4-build { opacity: 0; pointer-events: none; }
#act-4.is-final .act4-finished { opacity: 1; pointer-events: auto; }
.act4-people { position: absolute; left: 8.4375%; top: 28.5556%; width: 30.125%; height: 71.4444%; object-fit: cover; }
.act4-copy { position: absolute; z-index: 4; left: 42.3125%; top: 6.4444%; width: 24.3125%; font-size: 2.5cqw; line-height: 1.45; letter-spacing: .04em; }
.act4-progress { position: absolute; object-fit: cover; opacity: 0; transition: opacity .18s ease; }
.act4-progress-0 { left: 46%; top: 24.6667%; width: 48.4375%; height: 72.1111%; }
.act4-progress-1 { left: 37.5%; top: 25%; width: 61.625%; height: 76.2222%; }
.act4-progress-2 { left: 45.25%; top: 12.8889%; width: 57.5%; height: 91.5556%; }
#act-4[data-frame="0"] .act4-progress-0,
#act-4[data-frame="1"] .act4-progress-1,
#act-4[data-frame="2"] .act4-progress-2 { opacity: 1; }
.act4-hammer { position: absolute; z-index: 10; left: 30.9375%; top: 23.1111%; width: 13.1875%; height: 23.5556%; animation: act4-hammer-wiggle .7s ease-in-out infinite; transform-origin: 50% 50%; }
.act4-hammer.is-striking { animation: act4-hammer-strike .36s cubic-bezier(.36,.05,.67,.92) forwards; }
@keyframes act4-hammer-wiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes act4-hammer-strike { 0% { transform: rotate(0); } 72%,100% { transform: rotate(30deg); } }
.act4-finished > img, .act4-next { position: absolute; object-fit: cover; }
.act4-finish-balloon { left: 37.875%; top: 3.1111%; width: 14.5%; height: 51.8889%; }
.act4-finish-house { left: 40.875%; top: 19.3333%; width: 57.1875%; height: 76.3333%; }
.act4-finish-cat1 { left: 55.3125%; top: 79.2222%; width: 7.6875%; height: 20.6667%; }
.act4-finish-cat2 { left: 67.3125%; top: 80.1111%; width: 11.5625%; height: 18.7778%; }
.act4-finish-people { left: 2.3125%; top: 28.8889%; width: 39.375%; height: 66.7778%; }
.act4-finish-sticker-left { left: 2.3125%; top: 3.1111%; width: 25.25%; height: 44.8889%; }
.act4-finish-sticker-right { left: 67.9375%; top: 3.7778%; width: 28.25%; height: 50.2222%; }
.act4-finish-banner { left: 0; top: 1.8889%; width: 31.75%; height: 11.8889%; }
.act4-finish-sticker-center { left: 50%; top: 3.1111%; width: 22.375%; height: 35.4444%; }
.act4-next { z-index: 12; left: 92.5%; top: 91.4444%; width: 6.375%; height: 6.4444%; min-width: 44px; min-height: 44px; animation: arrow-nudge .9s ease-in-out infinite alternate; }

/* 第七幕｜羽毛球与结婚 */
.act7-court, .act7-mountain-scene { position: absolute; inset: 0; overflow: hidden; }
.act7-court { z-index: 2; transform-origin: 42.5% 56%; }
.act7-court-background, .act7-mountain-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act7-hit-copy { position: absolute; z-index: 7; left: 15.859%; top: 18.75%; width: 24.481%; font-size: 2.5cqw; line-height: 3.625cqw; white-space: nowrap; }
.act7-corner-shuttle { position: absolute; left: 9.1882%; top: 2.2321%; width: 10.4468%; height: 24.6652%; object-fit: cover; }
.act7-launch-shuttle { position: absolute; z-index: 5; left: 38.6407%; top: 49.6652%; width: 10.0193%; aspect-ratio: 1; display: grid; place-items: center; }
.act7-launch-shuttle img, .act7-falling-shuttle img { width: 72.875%; height: 72.875%; object-fit: cover; transform: rotate(-31deg); }
.act7-racket { position: absolute; z-index: 6; left: 35.3682%; top: 53.0134%; width: 14.6606%; height: 24.6464%; display: grid; place-items: center; animation: act5-racket-wiggle .72s ease-in-out infinite; transform-origin: 50% 50%; }
.act7-racket img { width: 75.847%; height: 87.774%; object-fit: cover; transform: rotate(105deg); }
.act7-racket.is-swinging { animation: act5-racket-swing .36s cubic-bezier(.32,.06,.68,1) forwards; }
.act7-court.is-launching { animation: act5-court-chase 1.25s cubic-bezier(.32,.02,.62,1) forwards; }
.act7-launch-shuttle.is-flying { animation: act5-shuttle-launch 1.25s cubic-bezier(.28,.02,.55,1) forwards; }
@keyframes act5-racket-wiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes act5-racket-swing { 0% { transform: rotate(0); } 55%,100% { transform: rotate(-30deg); } }
@keyframes act5-court-chase { 0% { transform: scale(1); } 100% { transform: scale(1.62) translateY(13%); } }
@keyframes act5-shuttle-launch { 0% { transform: translateY(0) scale(1); opacity: 1; } 72% { opacity: 1; } 100% { transform: translateY(-105vh) scale(1.18); opacity: 0; } }
.act7-mountain-scene { z-index: 3; opacity: 0; pointer-events: none; transform: scale(1.62); transform-origin: 48% 18%; }
.act7-mountain-scene.is-visible { opacity: 1; }
.act7-mountain-scene.is-ready { pointer-events: auto; }
.act7-mountain-scene.is-zooming-out { animation: act5-mountain-zoom-out 1.55s cubic-bezier(.2,.74,.26,1) forwards; }
@keyframes act5-mountain-zoom-out { from { transform: scale(1.62); } to { transform: scale(1); } }
.act7-falling-shuttle { position: absolute; z-index: 5; left: 24.291%; top: -5.8036%; width: 34.473%; aspect-ratio: 1; display: grid; place-items: center; }
.act7-falling-shuttle.is-dropping { animation: act5-shuttle-drop 1.9s cubic-bezier(.38,.02,.66,.96) forwards; }
@keyframes act5-shuttle-drop { 0% { transform: translateY(0) rotate(0); opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(190%) rotate(38deg); opacity: 0; } }
.act7-certificate { position: absolute; z-index: 4; left: 25.236%; top: 44.4196%; width: 51.0384%; height: 59.2634%; object-fit: cover; opacity: 0; transform: translateY(72%); }
.act7-certificate.is-rising { animation: act5-certificate-rise 1.05s cubic-bezier(.18,.75,.27,1) forwards; }
@keyframes act5-certificate-rise { from { opacity: 1; transform: translateY(72%); } to { opacity: 1; transform: translateY(0); } }
.act7-doves { position: absolute; z-index: 6; left: 24.9843%; top: 6.6964%; width: 28.131%; height: 21.7634%; object-fit: cover; opacity: 0; }
.act7-marriage-copy { position: absolute; z-index: 6; left: 45.815%; top: 20.9821%; width: 27.187%; height: 7.0313%; color: #f00c0c; font-size: 4.0277cqw; line-height: 3.65cqw; letter-spacing: .04em; white-space: nowrap; opacity: 0; }
.act7-mountain-scene.is-celebrating .act7-doves,
.act7-mountain-scene.is-celebrating .act7-marriage-copy { animation: act5-celebration-fade 1.05s ease forwards; }
@keyframes act5-celebration-fade { from { opacity: 0; } to { opacity: 1; } }
.act7-next { position: absolute; z-index: 8; left: 92.511%; top: 91.964%; width: 6.4191%; height: 6.4732%; opacity: 0; pointer-events: none; }
.act7-mountain-scene.is-ready .act7-next { pointer-events: auto; animation: act5-celebration-fade .8s .35s ease forwards, arrow-nudge .9s 1.15s ease-in-out infinite alternate; }

/* 第五幕｜刮刮乐 */
.act5-scratch-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act5-lucky-sticker { position: absolute; z-index: 8; left: 5.2234%; top: 0; width: 9.6287%; height: 17.0759%; object-fit: cover; }
.act5-scratch-prompt { position: absolute; z-index: 9; left: 11.6425%; top: 9.7098%; width: 48.584%; margin: 0; color: #3f3936; font-size: 2.5cqw; line-height: 2.125cqw; letter-spacing: .07em; white-space: nowrap; }
.scratch-card { position: absolute; z-index: 2; width: 36.3121%; height: 80.4688%; }
.scratch-card-1 { left: 0; top: 9.7098%; }
.scratch-card-2 { left: 31.844%; top: 9.7098%; }
.scratch-card-3 { left: 63.6879%; top: 9.2634%; }
.scratch-ticket { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scratch-prize { position: absolute; z-index: 2; margin: 0; color: #3f3936; font-size: 2.5cqw; line-height: 2.125cqw; letter-spacing: .07em; }
.scratch-card-1 .scratch-prize { left: 25.3033%; top: 42.1637%; width: 52.8596%; }
.scratch-card-2 .scratch-prize { left: 29.9827%; top: 49.2372%; width: 48.18%; white-space: nowrap; }
.scratch-card-3 .scratch-prize { left: 35.7019%; top: 45.3537%; width: 44.5407%; }
.scratch-canvas { position: absolute; z-index: 3; width: 56.3258%; height: 39.6671%; touch-action: none; cursor: crosshair; transition: opacity .32s ease; }
.scratch-card-1 .scratch-canvas { left: 21.8371%; top: 33.8419%; }
.scratch-card-2 .scratch-canvas { left: 21.8371%; top: 33.5645%; }
.scratch-card-3 .scratch-canvas { left: 21.8371%; top: 34.1193%; }
.scratch-card.is-complete .scratch-canvas { opacity: 0; pointer-events: none; }
.act5-confetti-stage { position: absolute; z-index: 60; inset: 0; overflow: hidden; pointer-events: none; }
.act5-confetti-piece {
  position: absolute;
  left: var(--x);
  top: -8%;
  width: var(--w);
  height: var(--h);
  border-radius: 18%;
  background: var(--color);
  opacity: 0;
  box-shadow: 0 .08cqw .1cqw rgb(63 57 54 / 12%);
  animation: act5-confetti-fall var(--duration) cubic-bezier(.2,.64,.34,1) var(--delay) forwards;
}
@keyframes act5-confetti-fall {
  0% { top: -8%; opacity: 0; transform: translateX(0) rotate(0); }
  8% { opacity: 1; }
  72% { top: 72%; opacity: 1; transform: translateX(var(--drift)) rotate(var(--spin)); }
  88% { top: var(--floor); transform: translateX(var(--drift)) rotate(var(--spin)); }
  94% { top: calc(var(--floor) - 1.2%); transform: translateX(var(--drift)) rotate(calc(var(--spin) + 24deg)); }
  100% { top: var(--floor); opacity: 1; transform: translateX(var(--drift)) rotate(calc(var(--spin) + 38deg)); }
}
#act-5 .act5-next { position: absolute; z-index: 70; left: 89.6161%; top: 89.7321%; width: 6.4191%; height: 6.4732%; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
#act-5.is-complete .act5-next { opacity: 1; pointer-events: auto; animation: arrow-nudge .9s ease-in-out infinite alternate; }

/* 第六幕 */
.act6-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act6-prompt { position: absolute; z-index: 30; left: 21.375%; top: 9.5556%; width: 31.6875%; font-size: 2.5cqw; line-height: 3.625cqw; white-space: nowrap; }
.act6-reel { position: absolute; z-index: 16; left: 5.625%; top: 9.5556%; width: 20.4375%; height: 70.1111%; overflow: hidden; transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease; }
.act6-reel img { position: absolute; left: -53.38%; top: -24.32%; width: 229.22%; height: 158.33%; max-width: none; }
#act-6.has-progress .act6-reel { left: 4.25%; top: 10.7778%; width: 21%; height: 65.1111%; }
#act-6.has-progress .act6-reel img { left: -39.37%; top: -28.26%; width: 214.68%; height: 164.09%; }
.act6-film-window { position: absolute; z-index: 8; left: 25.25%; top: 26%; width: 74.75%; height: 68.6667%; overflow: hidden; }
.act6-film-track { position: absolute; left: 0; top: -1cqw; width: 231.25cqw; height: 38.625cqw; will-change: transform; }
#act-6.has-progress .act6-film-track { top: 0; }
.act6-film-segment { position: absolute; z-index: 3; overflow: hidden; pointer-events: none; }
.act6-film-segment img { position: absolute; max-width: none; }
.segment-a { left: 0; top: 0; width: 36.081cqw; height: 26.6657cqw; }
.segment-a img, .segment-b img, .segment-c img { left: -27.8%; top: 0; width: 127.84%; height: 100%; }
.join-a { left: 36.081cqw; top: .1317cqw; width: 8.8227cqw; height: 26.4023cqw; }
.join-a img, .join-b img, .join-c img { left: -.14%; top: 0; width: 430.12%; height: 100%; }
.segment-b { left: 44.75cqw; top: .125cqw; width: 36.081cqw; height: 26.6657cqw; }
.join-b { left: 80.831cqw; top: .2567cqw; width: 8.8227cqw; height: 26.4023cqw; }
.segment-c { left: 89.6875cqw; top: 0; width: 36.081cqw; height: 26.6657cqw; }
.join-c { left: 125.7685cqw; top: .1317cqw; width: 8.8227cqw; height: 26.4023cqw; }
.segment-single { left: 133.875cqw; top: -.25cqw; width: 15.875cqw; height: 26.5cqw; }
.segment-single img { left: -188.58%; top: 0; width: 288.53%; height: 99.98%; }
.segment-triple { left: 148.3125cqw; top: -.375cqw; width: 45.8044cqw; height: 26.4947cqw; }
.segment-triple img, .segment-tail img { inset: 0; width: 100%; height: 100%; }
.segment-tail { left: 194.0181cqw; top: -.0304cqw; width: 37.2319cqw; height: 25.9037cqw; }
.act6-memory { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; font-family: 'Ma Shan Zheng','Zhi Mang Xing',cursive; color: var(--ink); }
.act6-memory .memory-photo { position: absolute; overflow: hidden; }
.act6-memory .memory-photo img { position: absolute; max-width: none; }
.act6-memory p { position: absolute; z-index: 5; margin: 0; font-size: 1.25cqw; line-height: 1.8125cqw; }
.memory-final p { left: 5cqw; top: 9.625cqw; width: 13cqw; font-size: 2.5cqw; line-height: 3.625cqw; }
.memory-8 .memory-photo { left: 20.875cqw; top: 4.1875cqw; width: 24.0625cqw; height: 18.0625cqw; }.memory-8 img { inset: 0; width: 100%; height: 100%; object-fit: cover; }.memory-8 p { left: 23.3125cqw; top: 27.4375cqw; width: 21.4375cqw; }
.memory-7 .memory-photo { left: 44.9375cqw; top: 4.125cqw; width: 20.125cqw; height: 18.375cqw; }.memory-7 img { left: -41.97%; top: -59.69%; width: 194.4%; height: 159.69%; }.memory-7 p { left: 44.75cqw; top: 27.125cqw; width: 21.4375cqw; }
.memory-6 .memory-photo { left: 66cqw; top: 3.6875cqw; width: 22.625cqw; height: 20cqw; }.memory-6 img { left: 0; top: -44.71%; width: 100%; height: 150.96%; }.memory-6 p { left: 67.3125cqw; top: 27.0625cqw; width: 21.4375cqw; }
.memory-5 .memory-photo { left: 89.75cqw; top: 3.75cqw; width: 20.25cqw; height: 19.8125cqw; }.memory-5 img { left: 0; top: -20.49%; width: 100%; height: 136.35%; }.memory-5 p { left: 89.375cqw; top: 27.1875cqw; width: 21.4375cqw; }
.memory-4 .memory-photo { left: 110.8125cqw; top: 3.875cqw; width: 22.0625cqw; height: 18.8125cqw; }.memory-4 img { inset: 0; width: 100%; height: 100%; }.memory-4 p { left: 112.5625cqw; top: 27.125cqw; width: 19.375cqw; }
.memory-3 .memory-photo { left: 133.875cqw; top: 3.75cqw; width: 26.0625cqw; height: 18.3125cqw; }.memory-3 img { left: -.03%; top: 0; width: 100.07%; height: 106.83%; }.memory-3 p { left: 136.1875cqw; top: 26.375cqw; width: 24.25cqw; }
.memory-2 .memory-photo { left: 159.9375cqw; top: 3.875cqw; width: 19.375cqw; height: 18.1875cqw; }.memory-2 img { left: -25.16%; top: 0; width: 125.16%; height: 100%; }.memory-2 p { left: 160.625cqw; top: 26.375cqw; width: 24.25cqw; }
.memory-1 .memory-photo { left: 179.3125cqw; top: 3.75cqw; width: 24.375cqw; height: 18.3125cqw; }.memory-1 img { inset: 0; width: 100%; height: 100%; object-fit: cover; }.memory-1 p { left: 184.375cqw; top: 26.375cqw; width: 21.625cqw; font-size: 2cqw; line-height: 3.625cqw; white-space: nowrap; }
.act6-drag-surface { position: absolute; z-index: 20; left: 25.25%; top: 24.2222%; width: 72.75%; height: 47.1111%; min-width: 44px; min-height: 44px; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.act6-drag-surface.is-dragging { cursor: grabbing; }
.act6-next { position: absolute; z-index: 35; left: 91.6875%; top: 90.7778%; width: 6.375%; height: 6.4444%; min-width: 44px; min-height: 44px; opacity: 0; pointer-events: none; }
#act-6.is-complete .act6-drag-surface { pointer-events: none; }
#act-6.is-complete .act6-next { opacity: 1; pointer-events: auto; animation: arrow-nudge .9s ease-in-out infinite alternate; }

/* 第八幕｜起身看衣柜 */
.act8-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act8-clock { position: absolute; z-index: 2; left: 8.0554%; top: 15.625%; width: 11.265%; height: 20.6473%; object-fit: cover; }
.act8-chair { position: absolute; z-index: 3; left: 7.5519%; top: 56.5848%; width: 27.124%; height: 48.1027%; object-fit: cover; }
.act8-copy { position: absolute; z-index: 5; left: 59.786%; top: 37.6116%; width: 36.1863%; height: 16.2946%; color: #3f3936; font-size: 4.0277cqw; line-height: 3.65cqw; letter-spacing: 0; opacity: 0; }
#act-8.is-awake .act8-copy { animation: slow-reveal 2.8s .35s ease forwards; }
.act8-cats { position: absolute; z-index: 4; left: 83.9522%; top: 34.2634%; width: 27%; height: 59.933%; object-fit: cover; transform: scaleX(-1); }
.act8-shake { position: absolute; z-index: 4; left: 28.6973%; top: 6.25%; width: 26.3059%; height: 95.5357%; transform-origin: 50% 100%; animation: act8-cupboard-tremble .42s linear infinite; }
.act8-wardrobe { position: absolute; left: 0; top: 9.4626%; width: 100%; height: 90.5374%; object-fit: cover; }
.act8-plant { position: absolute; z-index: 2; left: 30.622%; top: 0; width: 28.9474%; height: 14.1355%; object-fit: cover; }
@keyframes act8-cupboard-tremble {
  0%, 100% { transform: translate(0,0) rotate(0); }
  20% { transform: translate(.1cqw,-.04cqw) rotate(.1deg); }
  40% { transform: translate(-.08cqw,.04cqw) rotate(-.08deg); }
  60% { transform: translate(.06cqw,.03cqw) rotate(.06deg); }
  80% { transform: translate(-.05cqw,-.03cqw) rotate(-.06deg); }
}
@keyframes slow-reveal { to { opacity: 1; } }

@media (max-width: 700px) {
  .music-toggle { width: 8%; }
  .handwritten { text-shadow: 0 0 .01px currentColor; }
}

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

/* 全站米奇手套光标 */
*, *::before, *::after {
  cursor: url('public/cursors/mickey-default.cur?v=small'), auto;
}
button, a, [role='button'], [role='slider'], .drag-item, .scratch-canvas, .act6-drag-surface {
  cursor: url('public/cursors/mickey-pointer.cur?v=small'), pointer !important;
}
