* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0d0907;
  color: #fff8ec;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  touch-action: manipulation;
}

/* ============================================================
   外壳容器：电脑 & 手机横屏走 16:9 影院满屏；手机竖屏走上控+中舞台+下底座
   ============================================================ */
.app-shell {
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #241913 0%, #0b0806 100%);
  position: relative;
  overflow: hidden;
}

/* 顶部统一轻控条（桌面端浮在画幅内顶部；手机竖屏独立占据顶部安全区不压画面） */
.top-bar {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  background: rgba(15, 11, 8, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 200, 0.16);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 72%;
}
.chapter-nav::-webkit-scrollbar { display: none; }

.ch-tab {
  border: none;
  background: transparent;
  color: rgba(255, 240, 214, 0.68);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.ch-tab:hover { color: #fff; }
.ch-tab.active {
  background: #f6c915;
  color: #241804;
  box-shadow: 0 0 12px rgba(246, 201, 21, 0.48);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
  flex-shrink: 0;
}

.pill-btn {
  border: 1px solid rgba(255, 238, 205, 0.24);
  background: rgba(16, 12, 9, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 247, 232, 0.95);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pill-btn:hover { background: rgba(36, 26, 18, 0.86); }
.pill-btn.music-on {
  border-color: #f6c915;
  color: #f6c915;
  box-shadow: 0 0 14px rgba(246, 201, 21, 0.22);
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.music-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}
.pill-btn.music-on .music-bars i:nth-child(1) { animation: barBounce 0.7s ease-in-out infinite alternate; }
.pill-btn.music-on .music-bars i:nth-child(2) { animation: barBounce 0.55s ease-in-out 0.15s infinite alternate; }
.pill-btn.music-on .music-bars i:nth-child(3) { animation: barBounce 0.8s ease-in-out 0.3s infinite alternate; }
@keyframes barBounce { from { height: 3px; } to { height: 11px; } }

/* 16:9 影院主舞台 */
.stage-wrap {
  position: relative;
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  max-width: 1440px;
  max-height: 810px;
  overflow: hidden;
  background: #120d0a;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(255, 234, 198, 0.14);
}

/* 手机竖屏专属底部底座（桌面/横屏默认隐藏，竖屏自动展开） */
.mobile-dock {
  display: none;
}

/* ============================================================
   镜头层与电影运镜
   ============================================================ */
.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.62s ease;
  overflow: hidden;
}
.shot.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.shot.active .ken-slow { animation: kenSlow 14s ease-out forwards; }
.shot.active .ken-lit { animation: kenLit 10s ease-out forwards; }
.shot.active .ken-drive { animation: kenDrive 6.5s ease-in-out infinite alternate; }
.shot.active .ken-sail { animation: kenSail 5.2s ease-in-out infinite alternate; }
.shot.zoom-door .shot-img {
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.62) translate(2%, -3%);
}
.shot.zoom-city .shot-img {
  transition: transform 0.82s cubic-bezier(0.4, 0, 0.2, 1), filter 0.65s ease;
  transform: scale(1.45);
  filter: brightness(1.18);
}
.shot.shake-crack {
  animation: crackShake 0.48s ease-in-out;
}
@keyframes crackShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 3px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(3px, 2px); }
}

@keyframes kenSlow { from { transform: scale(1); } to { transform: scale(1.024); } }
@keyframes kenLit { from { transform: scale(1.005); } to { transform: scale(1.032); } }
@keyframes kenDrive {
  0% { transform: scale(1.01) translate(0, 0) rotate(0deg); }
  50% { transform: scale(1.02) translate(-5px, 0.8px) rotate(0.1deg); }
  100% { transform: scale(1.028) translate(-9px, -0.5px) rotate(-0.08deg); }
}
@keyframes kenSail {
  0% { transform: scale(1.012) translate(0, 0) rotate(-0.4deg); }
  50% { transform: scale(1.02) translate(-4px, -2px) rotate(0.35deg); }
  100% { transform: scale(1.026) translate(-7px, 1.5px) rotate(-0.28deg); }
}

/* 电影暗角 */
.cinema-vignette {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 7, 5, 0.30) 0%, transparent 16%, transparent 74%, rgba(8, 6, 4, 0.80) 100%),
    radial-gradient(ellipse at center, transparent 60%, rgba(8, 6, 4, 0.36) 100%);
}

/* 桌面端影院底部纯字幕（竖屏时字幕搬到 mobile-dock，不压实拍画面） */
.subtitle-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 38;
  text-align: center;
  pointer-events: none;
  padding: 0 36px;
}
.subtitle-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fffaf0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.94), 0 0 24px rgba(0, 0, 0, 0.72);
}
.subtitle-sub {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: clamp(11.5px, 0.98vw, 13.5px);
  letter-spacing: 0.06em;
  color: rgba(255, 236, 198, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.96);
}

/* 精致车标 + 0329 铭牌胶囊（替代直白车型文字） */
.car-emblem-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 7px;
  margin: 0 2px;
  border-radius: 999px;
  background: rgba(18, 14, 10, 0.74);
  border: 1px solid rgba(255, 224, 132, 0.48);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  vertical-align: middle;
  line-height: 1.25;
}
.car-emblem-svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.car-emblem-svg.mazda { width: 20px; height: 15px; }
.car-emblem-svg.galaxy { width: 22px; height: 13px; }
.car-emblem-svg.bmw { width: 17px; height: 17px; }
.car-plate-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffe799;
}
.spot-whisper .car-emblem-pill {
  padding: 1px 6px 1px 5px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 224, 132, 0.35);
  box-shadow: none;
}
.spot-whisper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 场景内呼吸光点 */
.diegetic-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 34;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px;
}
.spot-halo {
  width: clamp(34px, 3.6vw, 48px);
  height: clamp(34px, 3.6vw, 48px);
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 114, 0.94);
  background: radial-gradient(circle, rgba(255, 224, 114, 0.38) 0%, rgba(255, 200, 60, 0.08) 70%);
  box-shadow: 0 0 22px rgba(255, 214, 80, 0.78);
  animation: breatheSpot 1.9s infinite ease-in-out;
}
.spot-whisper {
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
  color: #fff6dc;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 224, 120, 0.52);
  white-space: nowrap;
}
@keyframes breatheSpot {
  0%, 100% { transform: scale(0.94); opacity: 0.86; }
  50% { transform: scale(1.13); opacity: 1; }
}

/* 通用浮动行动按钮 */
.scene-cta {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 40;
  border: 1px solid rgba(255, 226, 128, 0.72);
  background: rgba(20, 14, 10, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffe694;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  transition: transform 0.18s ease, background 0.18s ease;
}
.scene-cta:hover { background: rgba(42, 29, 18, 0.92); transform: translateX(-50%) scale(1.03); }

/* 转场特效层 */
.golden-burst {
  position: absolute; inset: 0; z-index: 46; pointer-events: none;
  background: radial-gradient(circle at 52% 48%, rgba(255, 228, 128, 0.88), rgba(255, 190, 72, 0.22) 55%, transparent 80%);
  opacity: 0; transition: opacity 0.7s ease;
}
.golden-burst.on { opacity: 1; transition: none; }

.cut-flash {
  position: absolute; inset: 0; z-index: 47;
  background: #fff8e8; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.cut-flash.on { opacity: 0.88; transition: none; }

/* 复古铜金乐高电梯双门升降转场 */
.elevator-overlay {
  position: absolute;
  inset: 0;
  z-index: 52;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.elevator-overlay.active { opacity: 1; pointer-events: auto; }
.elev-door {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 226, 150, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #5d4528 0%, #3a2a16 50%, #261b0e 100%);
  border-top: 6px solid #c99d4a;
  border-bottom: 6px solid #8a6427;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}
.elev-door.left { left: 0; transform: translateX(-102%); border-right: 3px solid #d7aa56; }
.elev-door.right { right: 0; transform: translateX(102%); border-left: 3px solid #d7aa56; }
.elevator-overlay.closed .elev-door.left { transform: translateX(0); }
.elevator-overlay.closed .elev-door.right { transform: translateX(0); }

.elev-panel {
  position: absolute;
  left: 50%; top: 18%;
  transform: translateX(-50%);
  z-index: 5;
  background: #1b140c;
  border: 2px solid #d9ad59;
  border-radius: 12px;
  padding: 10px 26px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.elevator-overlay.closed .elev-panel { opacity: 1; }
.elev-floor {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 26px;
  font-weight: 800;
  color: #ffd966;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(255, 217, 102, 0.7);
}
.elev-label {
  font-size: 12px;
  color: #f3dfb8;
  margin-top: 3px;
  letter-spacing: 0.12em;
}

/* 相机螺旋黑屏快门特效 */
.iris-overlay {
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: transparent;
}
.iris-overlay.active { opacity: 1; pointer-events: auto; }
.iris-svg {
  width: 160%;
  height: 160%;
  transform: scale(2.1) rotate(0deg);
  transition: transform 0.95s cubic-bezier(0.55, 0.05, 0.35, 1);
}
.iris-overlay.closing .iris-svg {
  transform: scale(0.95) rotate(135deg);
}
.iris-overlay.opening .iris-svg {
  transform: scale(2.4) rotate(240deg);
}
.iris-center-text {
  position: absolute;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffd875;
  opacity: 0;
  transition: opacity 0.35s ease;
  text-shadow: 0 0 20px rgba(255, 210, 90, 0.7);
}
.iris-overlay.hold-text .iris-center-text { opacity: 1; }

/* ============================================================
   开场 0：拼 3 块实拍塑料乐高积木进礼盒凹槽
   ============================================================ */
.opening-title-badge {
  position: absolute; left: 5%; top: 13%; z-index: 32; pointer-events: none;
}
.opening-kicker {
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.16em;
  color: #f6d379;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin-bottom: 5px;
}
.opening-headline {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  color: #fffaf0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.box-slots-strip {
  position: absolute;
  left: 36.2%; top: 56.5%; width: 31.3%; height: 16.5%;
  z-index: 33;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 6px;
  transform: perspective(900px) rotateY(-13deg) skewY(8.8deg);
}
.brick-slot {
  position: relative;
  border-radius: 6px;
  border: 2px dashed rgba(255, 228, 138, 0.68);
  background: rgba(18, 16, 15, 0.34);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(9px, 0.95vw, 13px);
  font-weight: 700;
  color: rgba(255, 232, 165, 0.82);
  transition: all 0.25s ease;
}
.brick-slot.drag-over {
  border-color: #ffe366;
  background: rgba(255, 218, 72, 0.3);
  transform: scale(1.04);
}
.brick-slot.filled { border: none; background: transparent; padding: 0; }

.lego-tile-img {
  width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loose-bricks-tray {
  position: absolute; left: 3.2%; bottom: 13.5%; z-index: 36;
  display: flex; flex-direction: column; gap: 6px;
}
.tray-label {
  font-size: 11.5px; color: rgba(255, 236, 196, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92);
}
.tray-bricks { display: flex; gap: 8px; align-items: flex-end; }
.draggable-brick-wrap {
  width: clamp(72px, 7.2vw, 100px);
  height: clamp(60px, 6.2vw, 84px);
  cursor: grab; touch-action: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.draggable-brick-wrap:hover .lego-tile-img { transform: translateY(-5px) scale(1.05); }
.draggable-brick-wrap.used { opacity: 0; pointer-events: none; transform: scale(0.7); }

.snapped-brick-img {
  width: 104%; height: 116%; object-fit: contain;
  transform: translateY(-6%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.58));
  animation: snapPop 0.34s cubic-bezier(0.34, 1.65, 0.64, 1);
}
@keyframes snapPop {
  0% { transform: scale(1.24) translateY(-16%); }
  65% { transform: scale(0.96) translateY(-3%); }
  100% { transform: scale(1) translateY(-6%); }
}
.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 108px;
  height: 92px;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.72));
}

/* ============================================================
   第 1 站镜头 3：墙上 4 位门铃密码锁
   ============================================================ */
.wall-keypad-screen {
  position: absolute; left: 16.5%; top: 43.9%; width: 12.1%; height: 8.7%;
  z-index: 34; display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: center; gap: 2px; padding: 2px 4px;
  transform: perspective(600px) rotateY(10deg) skewY(1.2deg);
  border-radius: 3px;
  background: rgba(232, 232, 202, 0.34);
  box-shadow: inset 0 1px 6px rgba(35, 28, 18, 0.35);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.wall-keypad-screen.unlocked {
  background: rgba(154, 245, 178, 0.7);
  box-shadow: 0 0 26px rgba(96, 238, 134, 0.85);
}
.wall-keypad-screen.wrong {
  background: rgba(242, 110, 102, 0.65);
  animation: keypadShake 0.36s ease;
}
@keyframes keypadShake {
  0%, 100% { transform: perspective(600px) rotateY(10deg) skewY(1.2deg) translateX(0); }
  25% { transform: perspective(600px) rotateY(10deg) skewY(1.2deg) translateX(-4px); }
  75% { transform: perspective(600px) rotateY(10deg) skewY(1.2deg) translateX(4px); }
}
.wall-digit {
  height: 100%; border-radius: 3px;
  background: rgba(255, 252, 238, 0.38);
  color: #2c241b;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(12px, 2vw, 30px);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.wall-digit.empty { color: rgba(56, 44, 30, 0.38); }
.wall-digit.active-slot { background: rgba(255, 234, 146, 0.72); box-shadow: inset 0 -3px 0 #b87b00; }

.wall-cue {
  position: absolute; left: 22.4%; top: 33.5%; transform: translateX(-50%);
  z-index: 33; pointer-events: none;
  font-size: clamp(10px, 0.95vw, 12.5px); font-weight: 700; color: #ffe699;
  background: rgba(18, 12, 8, 0.72);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 224, 120, 0.5);
  white-space: nowrap;
}

/* 精致实体感右侧乐高门铃数字垫（桌面端在右半边不挡红砖门铃；手机竖屏搬进下方底座） */
.numpad-card {
  position: absolute;
  right: 4.5%; top: 50%; transform: translateY(-50%);
  z-index: 36;
  width: clamp(188px, 18vw, 240px);
  background: rgba(26, 18, 13, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 226, 148, 0.28);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.numpad-head {
  font-size: 11.5px; color: #f6d57c; text-align: center; margin-bottom: 8px; font-weight: 700;
  letter-spacing: 0.06em;
}
.numpad-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.np-key {
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255, 236, 198, 0.2);
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.16) 0%, rgba(255, 248, 232, 0.07) 100%);
  color: #fff8eb;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.np-key:active { transform: scale(0.92); background: rgba(246, 201, 21, 0.35); }
.np-key.fn { font-size: 12px; color: #ffd97a; }

/* ============================================================
   第 2 站：厦门双人骑行闯关 + 圣诞树飘雪
   ============================================================ */
.ride-bg-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ride-bg-strip {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  display: flex;
  will-change: transform;
}
.ride-bg-strip img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.ride-bg-strip img:nth-child(2) {
  transform: scaleX(-1);
}

/* 顶部 4 件厦门回忆道具收集栏 */
.ride-hud {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 36;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 230, 160, 0.28);
}
.ride-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.45;
  filter: grayscale(0.9);
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ride-badge img { width: 22px; height: 22px; object-fit: contain; }
.ride-badge span { font-size: 11px; font-weight: 700; color: #fff6dc; white-space: nowrap; }
.ride-badge.got {
  opacity: 1;
  filter: none;
  background: rgba(246, 201, 21, 0.28);
  border: 1px solid rgba(246, 201, 21, 0.72);
  transform: scale(1.06);
}

.ride-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.ride-player {
  position: absolute;
  left: 11%;
  width: 24%;
  aspect-ratio: 680 / 396;
  transform: translateY(-50%);
  transition: top 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.48));
}
.ride-player img {
  width: 100%; height: 100%; object-fit: contain;
  animation: bikeBob 0.42s ease-in-out infinite alternate;
}
.ride-player.hit { animation: bikeHit 0.45s ease; }
@keyframes bikeBob { from { transform: translateY(0) rotate(-0.8deg); } to { transform: translateY(-4px) rotate(0.8deg); } }
@keyframes bikeHit {
  0%, 100% { filter: drop-shadow(0 12px 14px rgba(0,0,0,0.48)); }
  30%, 70% { filter: drop-shadow(0 0 18px rgba(255, 95, 70, 0.95)); transform: translateY(-50%) translateX(-6px); }
}

.ride-entity {
  position: absolute;
  width: 6.4%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
}
.ride-entity img {
  width: 100%; height: 100%; object-fit: contain;
  animation: itemFloat 0.9s ease-in-out infinite alternate;
}
@keyframes itemFloat { from { transform: translateY(0); } to { transform: translateY(-5px); } }

.ride-toast {
  position: absolute;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 38;
  pointer-events: none;
  background: rgba(20, 14, 10, 0.78);
  border: 1px solid rgba(255, 224, 120, 0.65);
  color: #ffe89e;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.28s ease;
  white-space: nowrap;
}
.ride-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 骑行车道触控区（电脑/横屏右侧两个轻巧按键） */
.ride-lane-controls {
  position: absolute;
  right: 22px; bottom: 86px; z-index: 38;
  display: flex; flex-direction: column; gap: 10px;
}
.lane-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255, 228, 138, 0.62);
  background: rgba(18, 12, 8, 0.64);
  backdrop-filter: blur(6px);
  color: #ffe799; font-size: 18px; font-weight: 800;
  cursor: pointer;
}
.lane-btn:active { background: rgba(246, 201, 21, 0.4); transform: scale(0.93); }

/* 圣诞树飘雪画布 */
.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 28;
  pointer-events: none;
}

/* ============================================================
   第 3 站：拍立得桌面搓热显影
   ============================================================ */
.polaroid-stage {
  position: absolute;
  left: 50%;
  top: 11.5%;
  transform: translateX(-50%);
  width: clamp(320px, 44%, 640px);
  z-index: 34;
}
.polaroid-card {
  width: 100%;
  background: #fbf8f1;
  border-radius: 5px;
  padding: 3.2% 3.2% 6.8% 3.2%;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.72), 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: translateY(-72%) scale(0.88);
  opacity: 0;
  transition: transform 1.05s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.4s ease;
}
.polaroid-card.ejected {
  transform: translateY(0) scale(1) rotate(-1.2deg);
  opacity: 1;
}
.polaroid-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #141210;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  touch-action: none;
}
.polaroid-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.polaroid-rub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.polaroid-caption {
  margin-top: 8px;
  text-align: center;
  color: #3e3124;
  font-family: "Bradley Hand", "STKaiti", "Kaiti SC", cursive, serif;
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.polaroid-card.revealed .polaroid-caption { opacity: 1; }

.polaroid-progress-pill {
  margin: 10px auto 0;
  width: fit-content;
  background: rgba(18, 12, 8, 0.74);
  border: 1px solid rgba(255, 224, 130, 0.45);
  color: #ffe699;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  transition: opacity 0.4s ease;
}
.polaroid-progress-pill.hidden {
  opacity: 0;
  pointer-events: none;
}
#shot-11 .scene-cta {
  bottom: 13.5%;
}

/* ============================================================
   第 4 站：《闪灵》雪地树篱迷宫解救
   ============================================================ */
.maze-board-wrap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  z-index: 33;
  width: min(64%, 760px);
  aspect-ratio: 11 / 7;
  padding: 10px;
  border-radius: 14px;
  background: rgba(14, 24, 22, 0.74);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(215, 238, 228, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}
.maze-grid {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
}
.maze-cell {
  position: relative;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.maze-cell.wall {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22) 0 18%, transparent 20%),
    radial-gradient(circle at 72% 30%, rgba(255,255,255,0.2) 0 18%, transparent 20%),
    linear-gradient(180deg, #e8f1f4 0 22%, #1d5733 22%, #123b22 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.45);
}
.maze-cell.path {
  background: rgba(194, 212, 226, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.maze-cell.path.visited {
  background: rgba(255, 224, 130, 0.22);
}
.maze-cell.path.clue::after {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: #ffe070;
  box-shadow: 0 0 12px #ffd24d;
  animation: breatheSpot 1.6s infinite ease-in-out;
}
.maze-token {
  width: 88%; height: 88%;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #ffd95e;
  box-shadow: 0 0 16px rgba(255, 217, 94, 0.85);
  background: #fff;
  z-index: 3;
}
.maze-token.goal {
  border-color: #ff8fb1;
  box-shadow: 0 0 18px rgba(255, 143, 177, 0.9);
  animation: breatheSpot 1.8s infinite ease-in-out;
}
.maze-token img { width: 100%; height: 100%; object-fit: cover; display: block; }

.maze-dpad {
  position: absolute;
  right: 22px; bottom: 82px; z-index: 38;
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 5px;
}
.dpad-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 228, 138, 0.52);
  background: rgba(18, 12, 8, 0.68);
  backdrop-filter: blur(6px);
  color: #ffe89e;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
}
.dpad-btn:active { background: rgba(246, 201, 21, 0.42); transform: scale(0.92); }
.dpad-empty { visibility: hidden; }

/* ============================================================
   第 5 站：夜色露营汽车影院 · 实拍乐高大银幕手帐拼贴放映
   ============================================================ */
.cinema-screen {
  position: absolute;
  left: 29.15%;
  top: 14.78%;
  width: 41.72%;
  height: 40.65%;
  z-index: 26;
  border-radius: 2px;
  overflow: hidden;
  touch-action: pan-y;
}

.cinema-heads-mask {
  z-index: 29;
  pointer-events: none;
}

.cinema-screen-paper {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(130, 98, 62, 0.14) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 45%, rgba(255, 250, 236, 0.18) 0%, rgba(168, 134, 92, 0.14) 100%);
  background-size: 14px 14px, 100% 100%;
  pointer-events: none;
}

/* 复古右上角胶片页码签 */
.cinema-reel-badge {
  position: absolute;
  right: 10px;
  top: 7px;
  z-index: 18;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(9.5px, 0.82vw, 11.5px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b4f32;
  background: rgba(255, 251, 242, 0.86);
  border: 1px dashed rgba(140, 106, 68, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(45, 28, 12, 0.12);
}

/* 手帐照片拼贴主舞台（严禁裁图，底部留出轻微空间避让前景小人头顶） */
.scrapbook-stage {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 100%;
  padding: 3.6% 3.8% 6.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3%;
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.scrapbook-stage.switching {
  opacity: 0;
  transform: scale(0.985);
}
.scrapbook-stage.has-caption {
  padding-bottom: 10.5%;
}

/* 单张手帐相纸卡 */
.sb-photo-card {
  position: relative;
  background: #fffdf8;
  padding: clamp(4px, 0.65vw, 8px) clamp(4px, 0.65vw, 8px) clamp(8px, 1.1vw, 14px);
  border-radius: 3px;
  box-shadow:
    0 10px 24px rgba(34, 22, 10, 0.28),
    0 2px 5px rgba(34, 22, 10, 0.18),
    inset 0 0 0 1px rgba(176, 148, 112, 0.24);
  transform: rotate(var(--tilt, 0deg)) translateY(var(--offset-y, 0%));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  min-width: 0;
  min-height: 0;
}
.sb-photo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 1.5px;
  pointer-events: none;
}

/* 双横图随意错落（变体 A：左上右下；变体 B：左下右上） */
.scrapbook-stage.layout-duo-a .sb-photo-card,
.scrapbook-stage.layout-duo-b .sb-photo-card {
  max-width: 47%;
  height: 82%;
}
.scrapbook-stage.layout-duo-a .sb-photo-card img,
.scrapbook-stage.layout-duo-b .sb-photo-card img {
  height: 100%;
  width: auto;
  max-width: 100%;
}
.scrapbook-stage.layout-duo-a .sb-photo-card:nth-child(1) { --offset-y: -3.8%; }
.scrapbook-stage.layout-duo-a .sb-photo-card:nth-child(2) { --offset-y: 4.2%; }
.scrapbook-stage.layout-duo-b .sb-photo-card:nth-child(1) { --offset-y: 3.8%; }
.scrapbook-stage.layout-duo-b .sb-photo-card:nth-child(2) { --offset-y: -4%; }

/* 草莓熊特辑双拼（左 1:1 方图 + 右 9:16 竖图） */
.scrapbook-stage.layout-duo-bear {
  gap: 5.5%;
}
.scrapbook-stage.layout-duo-bear .sb-photo-card:nth-child(1) {
  height: 82%;
  max-width: 48%;
  --offset-y: -1.5%;
}
.scrapbook-stage.layout-duo-bear .sb-photo-card:nth-child(2) {
  height: 88%;
  max-width: 34%;
  --offset-y: 2%;
}
.scrapbook-stage.layout-duo-bear .sb-photo-card img {
  height: 100%;
  width: auto;
}

/* 单张大 C 位（27 岁生日横幅） */
.scrapbook-stage.layout-solo-wide .sb-photo-card {
  height: 90%;
  max-width: 78%;
  --offset-y: 0%;
}
.scrapbook-stage.layout-solo-wide .sb-photo-card img {
  height: 100%;
  width: auto;
}

/* 一横一竖错落（第 7 幕：领养一朵云 + 草坪推小拖车） */
.scrapbook-stage.layout-duo-hv {
  gap: 4.8%;
}
.scrapbook-stage.layout-duo-hv .sb-photo-card:nth-child(1) {
  height: 76%;
  max-width: 50%;
  --offset-y: -4.5%;
}
.scrapbook-stage.layout-duo-hv .sb-photo-card:nth-child(2) {
  height: 88%;
  max-width: 38%;
  --offset-y: 1.5%;
}
.scrapbook-stage.layout-duo-hv .sb-photo-card img {
  height: 100%;
  width: auto;
}

/* 手撕感半透明和纸胶带 */
.sb-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  width: clamp(38px, 6.2vw, 72px);
  height: clamp(12px, 1.55vw, 18px);
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  opacity: 0.84;
  pointer-events: none;
  z-index: 4;
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(45, 28, 12, 0.14);
  clip-path: polygon(0% 10%, 4% 0%, 96% 2%, 100% 14%, 97% 88%, 100% 100%, 3% 98%, 0% 85%);
}
.sb-tape.tape-left {
  left: 16%;
  top: -7px;
  --tape-rot: -26deg;
}
.sb-tape.tape-right {
  left: 84%;
  top: -7px;
  --tape-rot: 24deg;
}
.sb-tape.mustard {
  background: repeating-linear-gradient(
    -45deg,
    rgba(241, 198, 92, 0.82) 0 6px,
    rgba(250, 222, 146, 0.86) 6px 12px
  );
}
.sb-tape.kraft {
  background: linear-gradient(90deg, rgba(196, 154, 108, 0.8), rgba(212, 174, 128, 0.84));
}
.sb-tape.pink {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1.5px, transparent 1.5px), rgba(235, 146, 158, 0.78);
  background-size: 8px 8px;
}
.sb-tape.check {
  background:
    repeating-linear-gradient(90deg, rgba(182, 114, 104, 0.3) 0 5px, transparent 5px 10px),
    repeating-linear-gradient(0deg, rgba(182, 114, 104, 0.3) 0 5px, transparent 5px 10px),
    rgba(244, 212, 198, 0.84);
}
.sb-tape.blue {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px), rgba(126, 168, 206, 0.78);
  background-size: 9px 9px;
}
.sb-tape.sage {
  background: repeating-linear-gradient(
    90deg,
    rgba(148, 182, 146, 0.82) 0 7px,
    rgba(176, 206, 172, 0.82) 7px 14px
  );
}
.sb-tape.red {
  background: repeating-linear-gradient(
    -45deg,
    rgba(216, 86, 78, 0.82) 0 6px,
    rgba(242, 134, 118, 0.82) 6px 12px
  );
}

/* 手绘风模切贴纸层（只落在大银幕边缘角落，绝不压照片主体） */
.scrapbook-stickers {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
}
.sb-sticker {
  position: absolute;
  width: clamp(24px, 3.4vw, 44px);
  height: clamp(24px, 3.4vw, 44px);
  filter: drop-shadow(0 2px 4px rgba(40, 24, 10, 0.24));
  transform: rotate(var(--srot, 0deg));
  animation: stickerPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sb-sticker svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sb-sticker.pos-0 { left: 2.2%; top: 5.5%; --srot: -12deg; }
.sb-sticker.pos-1 { right: 2.4%; bottom: 6%; --srot: 10deg; }
.sb-sticker.pos-2 { left: 2.8%; bottom: 6.5%; --srot: 8deg; }
.sb-sticker.pos-bear-mid {
  left: 52%;
  top: 47%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: clamp(28px, 3.8vw, 48px);
  height: clamp(28px, 3.8vw, 48px);
}
@keyframes stickerPop {
  from { opacity: 0; transform: scale(0.75) rotate(var(--srot, 0deg)); }
  to { opacity: 1; transform: scale(1) rotate(var(--srot, 0deg)); }
}

/* 水良子手写台词条（有内容才显示，为空时隐藏） */
.cinema-caption-strip {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  z-index: 18;
  max-width: 88%;
  background: rgba(28, 20, 13, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 228, 158, 0.45);
  color: #fff8e8;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 15px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.cinema-caption-strip.hidden {
  display: none;
}

/* 银幕左右透明翻页热区 */
.screen-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24%;
  z-index: 20;
  background: transparent;
  border: none;
  cursor: pointer;
}
.screen-nav-zone.prev { left: 0; }
.screen-nav-zone.next { right: 0; }

.stage-wrap.is-cinema .subtitle-bar {
  opacity: 0;
  pointer-events: none;
}

/* 桌面端不遮挡露营小人、帐篷和白色 0329 车的放映控条（贴在画面最底边草坪下方） */
.cinema-controls {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 38;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 10, 7, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 228, 152, 0.36);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.56);
}
.cinema-ctrl-btn {
  border: 1px solid rgba(255, 232, 174, 0.34);
  background: rgba(255, 244, 214, 0.08);
  color: #fff3d4;
  font-size: clamp(10.5px, 0.88vw, 12px);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.cinema-ctrl-btn:hover:not(:disabled) {
  background: rgba(255, 232, 158, 0.22);
}
.cinema-ctrl-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.cinema-ctrl-btn.primary {
  background: rgba(246, 201, 21, 0.22);
  border-color: rgba(246, 201, 21, 0.72);
  color: #ffe89a;
}
.cinema-ctrl-btn.finish {
  background: linear-gradient(135deg, #ffd86b 0%, #f0b52c 100%);
  border-color: transparent;
  color: #2c1704;
}

.cinema-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cinema-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 236, 198, 0.34);
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
}
.cinema-dot.active {
  width: 20px;
  background: #f6c915;
  box-shadow: 0 0 8px rgba(246, 201, 21, 0.65);
}

/* ============================================================
   第 6 站：还原参考图的叠放式城市机票票根（可沿虚线撕副券）
   ============================================================ */
.ticket-stack-area {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: min(74%, 760px);
  aspect-ratio: 16 / 8.2;
  z-index: 34;
}

.ticket-card {
  position: absolute;
  inset: 0;
  display: flex;
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.56);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
  touch-action: pan-y;
}
.ticket-card.depth-0 { z-index: 20; transform: translate(0, 0) rotate(-1.8deg); }
.ticket-card.depth-1 { z-index: 15; transform: translate(12px, 14px) rotate(1.1deg) scale(0.97); filter: brightness(0.84); pointer-events: none; }
.ticket-card.depth-2 { z-index: 10; transform: translate(22px, 26px) rotate(-0.6deg) scale(0.94); filter: brightness(0.7); pointer-events: none; }
.ticket-card.depth-3 { z-index: 5; transform: translate(30px, 36px) rotate(0.9deg) scale(0.91); filter: brightness(0.58); pointer-events: none; }
.ticket-card.torn-away {
  opacity: 0;
  transform: translate(-18%, -12%) rotate(-8deg) scale(0.92);
  pointer-events: none;
}

.ticket-main-half {
  position: relative;
  flex: 1 1 70%;
  height: 100%;
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  background: #1b1714;
}
.ticket-main-half img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ticket-note-pill {
  position: absolute;
  left: 16px; bottom: 16px;
  max-width: 84%;
  background: rgba(20, 18, 16, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fffaf0;
  font-size: clamp(11.5px, 1.08vw, 14.5px);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.ticket-stub-half {
  position: relative;
  flex: 0 0 30%;
  height: 100%;
  border-radius: 0 18px 18px 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  cursor: grab;
  border-left: 3px dotted rgba(255, 255, 255, 0.72);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  touch-action: none;
}
/* 上下半圆咬口缺口 */
.ticket-stub-half::before,
.ticket-stub-half::after {
  content: '';
  position: absolute;
  left: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #231810;
}
.ticket-stub-half::before { top: -9px; }
.ticket-stub-half::after { bottom: -9px; }

.ticket-stub-half.ripping {
  transform: translate(115%, 18%) rotate(18deg);
  opacity: 0;
}
.stub-city {
  font-size: clamp(16px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.stub-date {
  font-size: clamp(11px, 1.1vw, 15px);
  opacity: 0.9;
  margin-top: 6px;
  font-weight: 600;
}
.stub-hint {
  font-size: 11px;
  color: rgba(255, 245, 214, 0.9);
  background: rgba(0, 0, 0, 0.24);
  padding: 4px 8px;
  border-radius: 999px;
  width: fit-content;
}
.stub-no {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

/* ============================================================
   通关 Ending：落版实体感「2027 老特拉福德纪念明信片 × 撕不开的未来副券」
   ============================================================ */
.stage-wrap.is-ending .subtitle-bar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ending-ambient-bg {
  filter: blur(22px) brightness(0.32) saturate(1.18);
  transform: scale(1.14);
}

.ending-stage {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 4% 22px;
  gap: 16px;
}

.postcard-toast {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 48;
  background: rgba(24, 12, 10, 0.9);
  border: 1px solid rgba(245, 211, 124, 0.72);
  color: #ffe8a6;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.postcard-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ending-postcard {
  width: min(86%, 880px);
  aspect-ratio: 16 / 8.8;
  display: flex;
  border-radius: 18px;
  background: #fbf7ef;
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 245, 224, 0.35);
  transform: rotate(-1deg) translateY(22px) scale(0.95);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
  overflow: visible;
}
.shot.active .ending-postcard {
  transform: rotate(-0.8deg) translateY(0) scale(1);
  opacity: 1;
}

/* 明信片左侧：米白厚棉纸装裱 + 完整无遮挡 2027 老特拉福德合照 */
.postcard-left {
  flex: 1 1 68%;
  padding: 16px 16px 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%);
  border-radius: 18px 0 0 18px;
  position: relative;
}

.postcard-photo-box {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #140f0c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.postcard-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 复古圆形烫金邮戳 */
.postcard-postmark {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 232, 168, 0.88);
  background: rgba(18, 12, 9, 0.42);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffe8a8;
  transform: rotate(12deg);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.postcard-postmark span {
  font-size: 7px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.postcard-postmark strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  margin: 1px 0;
}

.postcard-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.postcard-sign {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pc-kicker {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #9e7844;
  font-weight: 800;
}
.pc-names {
  font-size: clamp(11.5px, 1.05vw, 14px);
  color: #2f2419;
  font-weight: 800;
}
.postcard-quote {
  font-family: "STKaiti", "Kaiti SC", "Songti SC", Georgia, serif;
  font-size: clamp(12px, 1.15vw, 15px);
  color: #7b2420;
  font-weight: 700;
  white-space: nowrap;
}

/* 明信片右侧：曼联红烫金「撕不开的 2027 未来副券」 */
.postcard-stub {
  position: relative;
  flex: 0 0 32%;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(155deg, #a6141e 0%, #c61c27 48%, #7d0c14 100%);
  border-left: 3px dotted rgba(251, 247, 239, 0.88);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #fff8eb;
  cursor: pointer;
  touch-action: none;
  box-shadow: inset 0 0 0 2px rgba(242, 207, 120, 0.45);
}
/* 齿孔上下半圆咬口 */
.postcard-stub::before,
.postcard-stub::after {
  content: '';
  position: absolute;
  left: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #17100c;
}
.postcard-stub::before { top: -9px; }
.postcard-stub::after { bottom: -9px; }

.postcard-stub.locked-shake {
  animation: lockedShake 0.42s ease;
}
@keyframes lockedShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  22% { transform: translateX(7px) rotate(1.6deg); }
  48% { transform: translateX(-4px) rotate(-1deg); }
  72% { transform: translateX(4px) rotate(0.8deg); }
}

.pc-stamp-tag {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #ffe4a1;
  border: 1px solid rgba(255, 228, 161, 0.52);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.future-year {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 900;
  color: #ffe28a;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}
.stub-mid-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stub-venue {
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fffaf0;
}
.stub-city-sub {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 232, 184, 0.85);
}
.stub-seat {
  margin-top: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(10px, 0.92vw, 12px);
  color: #ffe4a1;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 10px;
  border-radius: 6px;
}
.stub-bottom-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.future-tear-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff4d2;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(248, 223, 160, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
}
.future-no {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: #f6d88b;
  letter-spacing: 0.08em;
}

.ending-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.gold-btn {
  border: none;
  background: linear-gradient(135deg, #ffd86b 0%, #f0b52c 100%);
  color: #2c1704;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(240, 181, 44, 0.36);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.gold-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* 手机存图海报浮层（长按保存相册，完美解决微信不能自动 download 的限制） */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 6, 5, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
}
.poster-modal.open { display: flex; }
.poster-modal img {
  max-width: min(92vw, 520px);
  max-height: 74dvh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 226, 148, 0.35);
}
.poster-tip {
  font-size: 13px;
  color: #ffe8a8;
  text-align: center;
}

/* ============================================================
   手机竖屏双态自适应（彻底解决手机端白屏、过小、错位、键盘遮挡）
   ============================================================ */
@media (max-aspect-ratio: 114/100) {
  .app-shell {
    justify-content: flex-start;
    background: linear-gradient(180deg, #16100c 0%, #0d0907 100%);
  }

  .top-bar {
    position: relative;
    top: auto; left: auto; right: auto;
    width: 100%;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 8px;
    background: rgba(16, 11, 8, 0.92);
    border-bottom: 1px solid rgba(255, 232, 184, 0.12);
    pointer-events: auto;
    flex-shrink: 0;
  }
  .chapter-nav {
    max-width: 62%;
    padding: 3px 6px;
  }
  .ch-tab { font-size: 11px; padding: 4px 7px; }
  .pill-btn { font-size: 11px; padding: 5px 10px; }

  /* 舞台在手机竖屏铺满 100% 宽度，等比 16:9 高清无裁切显示 */
  .stage-wrap {
    width: 100vw;
    height: calc(100vw * 9 / 16);
    max-width: 100vw;
    max-height: 52dvh;
    flex-shrink: 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
  }

  /* 桌面浮层字幕和浮在画面里会显得太挤的控件，在手机竖屏移到下方 mobile-dock */
  .subtitle-bar,
  .loose-bricks-tray,
  .numpad-card,
  .ride-lane-controls,
  .maze-dpad {
    display: none !important;
  }

  .opening-title-badge { top: 8%; left: 4%; }
  .opening-headline { font-size: 18px; }
  .opening-kicker { font-size: 9px; }

  .ride-hud {
    top: 8px; gap: 5px; padding: 4px 8px;
  }
  .ride-badge { padding: 2px 5px; }
  .ride-badge img { width: 16px; height: 16px; }
  .ride-badge span { display: none; }

  .polaroid-stage { width: 58%; top: 5.5%; }
  .polaroid-progress-pill { display: none; }
  #shot-11 .scene-cta { display: none !important; }

  .maze-board-wrap { width: 82%; top: 50%; padding: 6px; }

  .ticket-stack-area { width: 92%; top: 50%; }
  .ticket-note-pill { left: 10px; bottom: 10px; font-size: 11px; padding: 4px 10px; }
  .ticket-stub-half { padding: 10px 8px; }
  .stub-city { font-size: 14px; }
  .stub-date { font-size: 10px; }
  .stub-hint { font-size: 9.5px; padding: 2px 6px; }
  .stub-no { font-size: 9.5px; }

  .ending-stage { padding: 10px 3% 8px; gap: 0; }
  .ending-actions, .postcard-toast { display: none !important; }
  .ending-postcard { width: 96%; aspect-ratio: 16 / 8.8; border-radius: 12px; }
  .postcard-left { padding: 8px 8px 6px; border-radius: 12px 0 0 12px; gap: 5px; }
  .postcard-photo-box { border-radius: 7px; }
  .postcard-postmark { width: 44px; height: 44px; right: 6px; top: 6px; }
  .postcard-postmark span { font-size: 4.5px; }
  .postcard-postmark strong { font-size: 10px; }
  .pc-kicker { display: none; }
  .pc-names { font-size: 9.5px; }
  .postcard-quote { font-size: 9.5px; }
  .postcard-stub { padding: 8px 6px; border-radius: 0 12px 12px 0; }
  .pc-stamp-tag { font-size: 7px; padding: 1px 5px; margin-bottom: 2px; }
  .future-year { font-size: 20px; }
  .stub-venue { font-size: 10px; }
  .stub-city-sub { display: none; }
  .stub-seat { font-size: 7.5px; padding: 2px 5px; }
  .future-tear-tag { font-size: 8.5px; padding: 2px 6px; }
  .future-no { font-size: 8px; }
  .scene-cta { bottom: 12px; padding: 7px 16px; font-size: 12px; }
  .cinema-controls { display: none !important; }
  .cinema-caption-strip { display: none !important; }
  .cinema-reel-badge { font-size: 8.5px; padding: 1px 6px; right: 5px; top: 4px; }
  .sb-photo-card { padding: 2.5px 2.5px 5px; }
  .sb-tape { width: 26px; height: 8px; top: -4px; }
  .sb-sticker { width: 18px; height: 18px; }
  .sb-sticker.pos-bear-mid { width: 20px; height: 20px; }

  .m-cinema-wrap {
    width: min(100%, 336px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .m-cinema-row {
    width: 100%;
    display: flex;
    gap: 10px;
  }
  .m-cinema-row .m-big-btn {
    flex: 1 1 0;
    width: auto;
    padding: 12px 12px;
    font-size: 13.5px;
  }
  .m-cinema-row .m-big-btn:disabled {
    opacity: 0.36;
  }

  /* 手机竖屏专属底座：清晰大字幕 + 顺手大拇指交互区 */
  .mobile-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    width: 100%;
    padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    overflow-y: auto;
    gap: 12px;
  }

  .mobile-sub-box {
    width: 100%;
    text-align: center;
    padding: 0 4px;
  }
  .mobile-sub-main {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #fffaf0;
  }
  .mobile-sub-sub {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 232, 188, 0.78);
    margin-top: 4px;
  }

  .mobile-controls {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .m-bricks-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }
  .m-brick-btn {
    width: 96px; height: 84px;
    border-radius: 14px;
    border: 1px solid rgba(255, 224, 130, 0.34);
    background: rgba(255, 245, 220, 0.08);
    padding: 6px;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.25s ease;
  }
  .m-brick-btn:active { transform: scale(0.92); }
  .m-brick-btn.used { opacity: 0.2; pointer-events: none; }
  .m-brick-btn img { width: 100%; height: 100%; object-fit: contain; }

  .m-numpad {
    width: min(100%, 290px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .m-numpad .np-key { height: 44px; font-size: 18px; }

  .m-lane-row {
    display: flex;
    gap: 14px;
    width: min(100%, 320px);
  }
  .m-lane-row .m-big-btn {
    flex: 1 1 0;
    width: auto;
  }
  .m-big-btn {
    flex: 0 0 auto;
    width: min(100%, 310px);
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 226, 132, 0.52);
    background: linear-gradient(180deg, rgba(255, 234, 160, 0.18) 0%, rgba(255, 210, 90, 0.08) 100%);
    color: #ffe8a0;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  }
  .m-big-btn:active { transform: scale(0.96); background: rgba(246, 201, 21, 0.35); }
  .m-big-btn.primary {
    background: linear-gradient(135deg, #ffd86b 0%, #f0b52c 100%);
    color: #2b1704;
    border: none;
  }

  .m-dpad {
    display: grid;
    grid-template-columns: repeat(3, 56px);
    grid-template-rows: repeat(3, 46px);
    gap: 7px;
  }
  .m-dpad .dpad-btn { font-size: 18px; border-radius: 12px; }

  .m-future-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .m-future-wrap .future-ticket { width: 100%; }
  .m-future-wrap .future-left { padding: 11px 12px; }
  .m-future-wrap .future-title { font-size: 14px; }
  .m-future-wrap .future-meta { font-size: 10.5px; }
  .m-future-wrap .future-stub { padding: 10px 8px; }
  .m-future-wrap .future-year { font-size: 22px; }
}
