/* ================= 开场 ================= */
#ch-open .stage { display: flex; flex-direction: column; align-items: center; }
.op-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.op-top { position: absolute; top: calc(10% + var(--st)); left: 0; right: 0; text-align: center; z-index: 4; padding: 0 20px; }
.op-greet { font-size: clamp(32px, 9vw, 54px); color: #fff2c4; opacity: 0; }
.op-invite { font-size: clamp(17px, 4.8vw, 24px); color: var(--txt); margin-top: 8px; opacity: 0; letter-spacing: .04em; }
.op-center { position: absolute; left: 50%; top: 52%; width: min(54vw, 290px); aspect-ratio: 520 / 560; transform: translate(-50%, -50%); z-index: 2; }
.gift { position: absolute; inset: 0; opacity: 0; animation: gift-idle 3.2s ease-in-out infinite 2.4s; transform-origin: 50% 92%; }
.gift.opened { animation: none; }
.gift img { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes gift-idle { 0%, 82%, 100% { rotate: 0deg; } 86% { rotate: -4deg; } 90% { rotate: 4deg; } 94% { rotate: -2deg; } }
.op-glow { position: absolute; left: 50%; top: 42%; width: 60%; aspect-ratio: 1; margin: -30% 0 0 -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 248, 210, .95), rgba(255, 200, 120, .5) 35%, rgba(255, 150, 200, 0) 70%); opacity: 0; transform: scale(.2); pointer-events: none; }
.op-rays { position: absolute; left: 50%; top: 42%; width: 240%; aspect-ratio: 1; margin: -120% 0 0 -120%; opacity: 0; pointer-events: none; transform: scale(.6);
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, .22) 0deg 7deg, rgba(255, 236, 170, 0) 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%); animation: spin 26s linear infinite; }
.op-pet { position: absolute; bottom: -2%; width: 44%; aspect-ratio: 1; opacity: 0; }
.op-pet .puppet { width: 100%; height: 100%; }
.op-dog { left: -40%; }
.op-cat { right: -40%; }
.op-pet .zzz { right: 8%; top: 4%; font-size: 18px; }
.op-tap { position: absolute; top: calc(52% + min(29vw, 156px) + 16px); left: 0; right: 0; text-align: center; color: var(--gold3); font-size: 17px; z-index: 4; opacity: 0; animation: tapb 1.8s ease-in-out infinite; }
.op-tap::before { content: '☝ '; }
@keyframes tapb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.op-sound { position: absolute; bottom: calc(5% + var(--sb)); left: 0; right: 0; text-align: center; font-size: 13.5px; color: var(--txt2); opacity: 0; z-index: 4; }
.op-line { position: absolute; top: calc(42% + min(11vh, 120px) + 26px); left: 24px; right: 24px; text-align: center; font-size: clamp(16px, 4.6vw, 22px); line-height: 1.75; color: var(--txt); z-index: 4; opacity: 0; letter-spacing: .03em; }
.op-line span { opacity: 0; display: inline-block; transform: translateY(8px); filter: blur(4px); transition: all .5s ease-out; text-shadow: 0 0 18px rgba(20, 10, 90, .8), 0 2px 0 rgba(20, 10, 60, .4); }
.op-line span.on { opacity: 1; transform: none; filter: none; }
.skipped .op-line span, .skipped .op-line { opacity: 1; }
.op-scroll { position: absolute; bottom: calc(15% + var(--sb)); left: 50%; transform: translateX(-50%) translateY(14px); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gold3); font-size: 15px; opacity: 0; z-index: 5; }
.op-skip { position: absolute; right: 14px; top: calc(14px + var(--st)); z-index: 6; font-size: 13px; color: var(--txt2); padding: 6px 12px; border: 1.5px solid rgba(255, 248, 236, .4); border-radius: 99px; opacity: 0; }
.op-scroll i { width: 22px; height: 34px; border: 2.5px solid var(--gold3); border-radius: 12px; position: relative; }
.op-scroll i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold3); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ================= 倒计时 ================= */
#gate { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; background: rgba(16, 14, 70, .35); opacity: 0; transition: opacity .9s; padding: 20px; }
#gate[hidden] { display: none; }
#gate.on { opacity: 1; }
#gate.out { opacity: 0; }
.gt-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 520px; }
.gt-title { font-size: clamp(22px, 6.4vw, 34px); color: #fff2c4; line-height: 1.4; }
.gt-scene { position: relative; width: 250px; height: 210px; }
.gt-gift { position: absolute; left: 50%; bottom: 0; width: 150px; margin-left: -75px; cursor: pointer; }
.gt-gift img { width: 100%; }
.gt-gift.nope { animation: nope .5s; }
@keyframes nope { 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(4deg); } }
.gt-lock { position: absolute; left: 50%; top: 52%; width: 34px; height: 28px; margin-left: -17px; background: var(--gold); border: 3px solid var(--ink); border-radius: 7px; }
.gt-lock::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 18px; height: 16px; margin-left: -12px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; }
.gt-dog, .gt-cat { position: absolute; bottom: -4px; width: 92px; height: 92px; }
.gt-dog { left: -26px; } .gt-cat { right: -26px; }
.gt-dog .puppet, .gt-cat .puppet { width: 100%; height: 100%; }
.gt-dog .zzz { right: 16%; top: 0; } .gt-cat .zzz { right: 14%; top: 2%; }
.gt-clock { display: flex; gap: 10px; }
.gt-clock span { display: flex; flex-direction: column; align-items: center; }
.gt-clock b { font-size: clamp(30px, 9vw, 46px); line-height: 1.1; min-width: 1.7em; padding: 6px 4px; color: var(--ink); background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font-weight: 600; }
.gt-clock em { font-style: normal; font-family: var(--f-cute); font-size: 13px; color: var(--txt2); margin-top: 6px; }
.gt-sub { font-size: 16px; color: var(--txt2); }
