/* v7.0 手工棉浆纸艺 UI 样式（遵循 paper-ui 规范：真实纸张纤维纹理、切纸亮边厚度、老式产线按键手机挂件、撕包装礼盒） */
:root {
  --paper-cream: #f6ede0;
  --paper-core: #fbf6ea;
  --paper-warm: #efe2ca;
  --paper-ink: #432918;
  --paper-muted: #6e523e;
  --paper-teal: #2d7d84;
  --paper-coral: #b95638;
  --paper-gold: #d99b26;
  --paper-edge: #d7c29d;
  --paper-line: rgba(74, 44, 28, 0.28);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85 .65' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .15 .045 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --card-cut: inset 1px 1px 0 rgba(251, 246, 234, 0.82), 0 0 0 1.5px rgba(74, 44, 28, 0.78), 1px 2px 0 var(--paper-edge);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #dfd8c8;
  font-family: "Georgia", "Songti SC", "STSong", "PingFang SC", "Noto Serif CJK SC", serif;
  color: var(--paper-ink);
  user-select: none;
  -webkit-user-select: none;
}

canvas {
  display: block;
}

.hidden {
  display: none !important;
}

/* 顶栏手工模切卡纸条 */
.hud-top-left {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 575px);
}

.paper-chip-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: var(--paper-grain), rgba(246, 237, 224, 0.94);
  border-radius: 6px 9px 7px 8px;
  box-shadow: var(--card-cut), 3px 6px 16px rgba(42, 24, 12, 0.16);
}

.hud-pill {
  border: none;
  background: transparent;
  color: var(--paper-ink);
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.hud-pill:hover {
  background: rgba(45, 125, 132, 0.12);
}

.hud-pill.active {
  background: var(--paper-teal);
  color: var(--paper-core);
}

.hud-btn {
  border: none;
  background: var(--paper-grain), rgba(246, 237, 224, 0.95);
  color: var(--paper-ink);
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px 8px 6px 9px;
  cursor: pointer;
  box-shadow: var(--card-cut), 3px 6px 14px rgba(42, 24, 12, 0.14);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hud-btn:hover {
  background: var(--paper-core);
  transform: translateY(-1px);
}

.hud-btn.active {
  background: var(--paper-coral);
  color: #fffaf0;
}

.drive-toggle-btn.driving {
  background: #1d6f73;
  color: #fffdf5;
}

.suit-toggle-btn.suited {
  background: #e0f2fe;
  color: #075985;
}

.phone-toggle-btn {
  background: #2d3a4b;
  color: #d9f99d;
}

/* 右上角：神秘道具库 + 拆礼物盒提示 + 打火机状态 */
.hud-top-right {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.satchel-pack-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 7px;
  background: var(--paper-grain), rgba(247, 239, 225, 0.92);
  border: 1.5px solid rgba(107, 66, 38, 0.42);
  border-radius: 14px 16px 14px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.85), 0 5px 16px rgba(42, 24, 12, 0.13);
  backdrop-filter: blur(4px);
}

.satchel-bag-btn {
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(198, 155, 104, 0.22);
  border-radius: 10px;
  cursor: pointer;
  color: var(--paper-ink);
  font-family: -apple-system, "PingFang SC", sans-serif;
  transition: background 0.16s ease, transform 0.16s ease;
}

.satchel-bag-btn:hover {
  background: rgba(198, 155, 104, 0.36);
  transform: translateY(-1px);
}

.satchel-svg-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(42, 24, 12, 0.18));
}

.prop-count-text {
  font-size: 12.5px;
  font-weight: 800;
  color: #52341e;
  letter-spacing: 0.2px;
}

.satchel-pockets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.satchel-slot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(120, 86, 56, 0.08);
  border: 1.2px dashed rgba(107, 66, 38, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
  color: rgba(107, 66, 38, 0.32);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease;
}

.satchel-slot.collected {
  background: linear-gradient(180deg, #fffdf8 0%, #f3e6ce 100%);
  border: 1.4px solid rgba(146, 84, 38, 0.65);
  box-shadow: 0 2px 5px rgba(59, 36, 22, 0.14);
  color: var(--paper-ink);
  cursor: pointer;
}

.satchel-slot.collected:hover {
  transform: translateY(-2px) scale(1.1);
}

.satchel-slot.unboxed {
  border-color: #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 100%);
}

.satchel-slot.just-picked {
  animation: pocketPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pocketPop {
  0% { transform: scale(0.35) translateY(10px); }
  55% { transform: scale(1.28) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}

.classroom-hud-banner {
  top: auto !important;
  bottom: 18px !important;
  max-width: min(94vw, 960px) !important;
  flex-wrap: nowrap !important;
  background: var(--paper-grain), rgba(251, 246, 234, 0.95) !important;
  color: #2f1e12 !important;
  border: 1.5px solid rgba(107, 66, 38, 0.55) !important;
}

.classroom-hud-banner button {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.unbox-ready-btn {
  border: 2px solid #9a3412;
  background: linear-gradient(135deg, #f59e0b 0%, #c85a3b 100%);
  color: #fffbeb;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 7px 10px 8px 9px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(200, 90, 59, 0.36);
  animation: giftPulse 1.5s ease-in-out infinite;
}

@keyframes giftPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.lighter-slip {
  padding: 6px 13px;
  border-radius: 6px 9px 7px 8px;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  background: var(--paper-grain), rgba(246, 237, 224, 0.92);
  border: 1.5px dashed rgba(90, 58, 40, 0.4);
  color: var(--paper-muted);
  box-shadow: 2px 4px 12px rgba(42, 24, 12, 0.12);
  cursor: pointer;
}

.lighter-slip.found {
  border-style: solid;
  border-color: #0284c7;
  background: #e0f2fe;
  color: #075985;
}

/* 立体卡纸版「产线老式按键手机 · 唱冰糖葫芦」随身交互机！ */
.retro-phone-widget {
  position: fixed;
  right: 68px;
  bottom: 18px;
  z-index: 28;
  width: 246px;
  transform-origin: bottom right;
  animation: phonePop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.retro-phone-widget.ringing {
  animation: phoneBuzz 0.32s ease-in-out infinite;
}

@keyframes phonePop {
  from { opacity: 0; transform: translateY(28px) rotate(6deg) scale(0.9); }
  to { opacity: 1; transform: translateY(0) rotate(-1.5deg) scale(1); }
}

@keyframes phoneBuzz {
  0%, 100% { transform: rotate(-2.5deg) translateX(-1px); }
  50% { transform: rotate(1.5deg) translateX(2px); }
}

.retro-phone-antenna {
  width: 18px;
  height: 36px;
  background: #1e293b;
  border: 2px solid #0f172a;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-left: auto;
  margin-right: 22px;
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.22);
}

.retro-phone-body {
  position: relative;
  background: var(--paper-grain), #2c3a4c;
  border: 2.5px solid #17202b;
  border-radius: 22px 22px 28px 28px;
  padding: 14px 14px 16px;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.22),
    4px 5px 0 #18222f,
    10px 16px 32px rgba(20, 12, 6, 0.36);
  color: #f1f5f9;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.retro-phone-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
}

.retro-phone-brand {
  text-align: center;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.retro-lcd-screen {
  background: #9bbc0f;
  border: 3px solid #1e2912;
  border-radius: 8px;
  padding: 7px 9px;
  color: #0f380f;
  box-shadow: inset 0 2px 6px rgba(15, 56, 15, 0.32);
  margin-bottom: 10px;
}

.lcd-top-bar {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 900;
  font-family: ui-monospace, monospace;
  border-bottom: 1px dashed rgba(15, 56, 15, 0.38);
  padding-bottom: 3px;
  margin-bottom: 5px;
}

.lcd-Main-lyric {
  min-height: 40px;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.42;
  display: flex;
  align-items: center;
}

.retro-call-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 8px;
}

.retro-key {
  border: 1.5px solid #0f172a;
  border-radius: 9px;
  padding: 6px 6px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #0f172a;
}

.retro-key.call-green {
  background: #22c55e;
  color: #052e16;
}

.retro-key.call-red {
  background: #ef4444;
  color: #fff5f5;
}

.retro-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.retro-num {
  border: 1.5px solid #1e293b;
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 8px;
  padding: 4px 2px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.retro-num span {
  font-size: 9px;
  color: #64748b;
}

.retro-num:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #475569;
}

/* 右下：自由缩放与全图俯瞰控制条 */
.hud-zoom-dock {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: var(--paper-grain), rgba(246, 237, 224, 0.94);
  border-radius: 10px 13px 11px 12px;
  box-shadow: var(--card-cut), 0 8px 22px rgba(42, 24, 12, 0.16);
}

.zoom-btn {
  width: 38px;
  height: 36px;
  border: 1px solid rgba(90, 58, 40, 0.22);
  background: var(--paper-core);
  color: var(--paper-ink);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: var(--paper-teal);
  color: #ffffff;
}

/* 3D 场景靠近提示贴条 */
.proximity-pill {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--paper-grain), rgba(246, 237, 224, 0.97);
  border-radius: 7px 11px 8px 10px;
  box-shadow: var(--card-cut), 0 8px 24px rgba(42, 24, 12, 0.2);
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.proximity-open-btn {
  border: none;
  background: var(--paper-teal);
  color: var(--paper-core);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* 左下角：抠图版「等等喂神马」紫鬃小黑马弹窗向导 */
.pony-guide-widget {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 25;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: min(500px, calc(100vw - 90px));
  pointer-events: none;
  transition: bottom 0.28s ease;
}

body:has(#finaleDrawerPanel:not(.hidden)) .pony-guide-widget {
  bottom: 82px;
}

.pony-avatar-btn {
  pointer-events: auto;
  width: 88px;
  height: 112px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(34, 20, 10, 0.28));
  transform-origin: bottom center;
  animation: ponyBounce 3.2s ease-in-out infinite;
}

.pony-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes ponyBounce {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-4px); }
}

.pony-speech-card {
  pointer-events: auto;
  position: relative;
  background: var(--paper-grain), var(--paper-cream);
  border-radius: 8px 12px 10px 4px;
  padding: 12px 30px 12px 15px;
  box-shadow: var(--card-cut), 0 10px 26px rgba(38, 22, 10, 0.22);
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--paper-ink);
  user-select: text;
}

.pony-close-x {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--paper-muted);
  font-size: 14px;
  cursor: pointer;
}

.pony-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.pony-quiz-btn {
  border: 1px solid rgba(74, 46, 27, 0.3);
  background: var(--paper-core);
  color: var(--paper-ink);
  text-align: left;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.pony-quiz-btn:hover {
  background: #fef3c7;
  border-color: var(--paper-gold);
}

/* 点亮 26 支蜡烛后才会浮现的底部惊喜礼盒托盘 */
.finale-surprise-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--paper-grain), var(--paper-cream);
  border-radius: 10px 14px 12px 13px;
  box-shadow: var(--card-cut), 0 14px 36px rgba(32, 18, 8, 0.28);
  animation: popRise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popRise {
  from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(0.92); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.surprise-btn {
  border: 1.5px solid rgba(74, 46, 27, 0.28);
  background: var(--paper-core);
  color: var(--paper-ink);
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 15px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.surprise-btn:hover {
  background: var(--paper-teal);
  color: #ffffff;
  border-color: var(--paper-teal);
}

.surprise-btn.highlight {
  background: var(--paper-coral);
  color: #fffaf0;
  border-color: #8f3a1e;
}

/* 精制手工棉浆明信片信笺浮层（遵循 paper-ui 双图框线、压痕切边与阴影） */
.paper-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 18, 10, 0.46);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.paper-sheet-modal {
  position: relative;
  width: 100%;
  max-width: 790px;
  max-height: 89dvh;
  overflow-y: auto;
  background: var(--paper-grain), var(--paper-cream);
  border-radius: 6px 10px 8px 9px;
  outline: 1.5px solid rgba(74, 44, 28, 0.34);
  outline-offset: -10px;
  padding: 28px 30px;
  box-shadow:
    inset 2px 2px 0 rgba(251, 246, 234, 0.85),
    0 0 0 2px #4a2e1b,
    3px 5px 0 #cbb58e,
    14px 24px 54px rgba(22, 12, 4, 0.44);
  user-select: text;
  animation: sheetSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheetSlideIn {
  from { opacity: 0; transform: translateY(22px) rotate(-1.2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid rgba(74, 44, 28, 0.35);
  background: var(--paper-core);
  color: var(--paper-ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.paper-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-right: 36px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.paper-badge-pill {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  background: #e3efec;
  color: #165954;
  border: 1px solid rgba(22, 89, 84, 0.25);
}

.paper-meta-stats {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--paper-muted);
}

.paper-modal-title {
  margin: 4px 0 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--paper-ink);
}

.paper-prose p {
  margin: 0 0 11px;
  font-size: 15px;
  line-height: 1.76;
  color: #362113;
}

/* 3D 场景实景互动引导条（取代以前在弹窗里直接打印黑框代码！） */
.inworld-action-strip {
  margin: 14px 0;
  padding: 11px 15px;
  background: var(--paper-warm);
  border-left: 4px solid var(--paper-teal);
  border-radius: 4px 8px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

/* 神秘道具火漆签收盒 & 道具库网格 */
.mystery-claim-box {
  margin-top: 16px;
  padding: 15px 18px;
  background: var(--paper-core);
  border: 1.5px dashed rgba(154, 52, 18, 0.38);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.mystery-parcel-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.parcel-seal-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fef3c7;
  border: 2px solid #b95638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #d9c29c;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 14px 0;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.vault-slot-card {
  padding: 12px;
  border-radius: 8px;
  border: 1.5px dashed rgba(90, 58, 40, 0.32);
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vault-slot-card.collected {
  border-style: solid;
  border-color: var(--paper-coral);
  background: var(--paper-core);
  box-shadow: 2px 3px 0 #d9c49c;
}

.vault-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--paper-muted);
}

.vault-slot-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--paper-ink);
}

/* 交互式「撕包装纸拆礼物盒」舞台 */
.gift-tear-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 330px;
  margin: 12px auto;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #4a2e1b;
  box-shadow: 0 12px 30px rgba(38, 20, 8, 0.22);
  background: radial-gradient(circle at center, #fffbeb 0%, #fde68a 55%, #f59e0b 100%);
  user-select: none;
  touch-action: none;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.gift-underneath-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.gift-candles-preview-strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  margin: 12px 0 8px;
  height: 54px;
}

.mini-candle-stick {
  width: 11px;
  height: 38px;
  border-radius: 3px 3px 2px 2px;
  border: 1px solid rgba(40, 20, 8, 0.35);
  position: relative;
}

.mini-candle-stick::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 2px;
  width: 5px;
  height: 9px;
  border-radius: 50% 50% 40% 40%;
  background: #fde047;
  box-shadow: 0 0 6px #f59e0b;
}

#giftWrapCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#giftWrapCanvas.torn-open {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08) rotate(2deg);
  pointer-events: none;
}

.tear-progress-bar {
  width: 100%;
  max-width: 680px;
  height: 9px;
  margin: 8px auto 12px;
  background: #e6dac3;
  border-radius: 999px;
  overflow: hidden;
}

.tear-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c85a3b, #f59e0b);
  transition: width 0.12s ease;
}

/* 科目二趣味练车微交互画布 */
.driving-sim-box {
  margin: 12px 0;
  padding: 12px;
  background: var(--paper-warm);
  border: 1.5px solid rgba(74, 46, 27, 0.25);
  border-radius: 8px;
  text-align: center;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

#drivingMiniCanvas {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 8px;
  border: 1.5px solid #4a2e1b;
  background: #535c66;
  cursor: pointer;
}

/* 蜡烛颜色选择器 */
.candle-picker-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--paper-core);
  border: 1.5px solid rgba(74, 46, 27, 0.22);
  border-radius: 8px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.color-swatches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.color-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1.5px solid rgba(74, 46, 27, 0.25);
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.color-swatch-btn.selected {
  border-color: #3b2416;
  box-shadow: 0 0 0 2px #fde68a;
}

.swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.paper-btn-primary {
  border: none;
  background: var(--paper-teal);
  color: #ffffff;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 6px 9px 7px 8px;
  box-shadow: 2px 3px 0 #1b4d52;
  cursor: pointer;
}

.paper-btn-primary:hover {
  background: #226268;
}

.paper-btn-ghost {
  border: 1.5px solid rgba(74, 44, 28, 0.35);
  background: var(--paper-core);
  color: var(--paper-ink);
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 6px 8px 6px 8px;
  box-shadow: 1px 2px 0 var(--paper-edge);
  cursor: pointer;
  text-decoration: none;
}

.paper-btn-ghost:hover {
  background: #fef3c7;
}

.paper-interactive-box {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--paper-warm);
  border: 1.5px dashed #b47b38;
  border-radius: 8px;
}

/* 演播室视频播放器 & 光荣榜样式 */
.theatre-screen-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #3b2416;
  background: #111924;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

#theatreCanvas {
  width: 100%;
  height: auto;
  display: block;
}

.theatre-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: #ffffff;
  cursor: pointer;
}

.cover-top-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 6px;
}

.cover-big-title {
  text-align: center;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
  line-height: 1.3;
}

.cover-play-btn {
  border: none;
  background: #f59e0b;
  color: #1c1917;
  font-size: 15px;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cover-footer-vi {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.theatre-subtitle-bar {
  background: rgba(15, 23, 42, 0.92);
  color: #fef08a;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.theatre-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.theatre-scrub {
  flex: 1;
  min-width: 120px;
}

.theatre-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-muted);
}

.theatre-playlist-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.playlist-chip {
  border: 1px solid var(--paper-line);
  background: var(--paper-core);
  color: var(--paper-ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.playlist-chip.active {
  background: var(--paper-teal);
  color: #ffffff;
}

.honor-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.honor-kpi-card {
  background: var(--paper-core);
  border: 1.5px solid rgba(74, 46, 27, 0.22);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.kpi-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--paper-coral);
}

.kpi-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-muted);
}

.honor-collections {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.honor-col-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--paper-warm);
  border-radius: 8px;
  font-size: 13px;
}

.col-desc {
  font-size: 12px;
  color: var(--paper-muted);
}

.col-views {
  font-weight: 900;
  color: var(--paper-teal);
  white-space: nowrap;
}

.honor-top-videos-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.honor-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.honor-vid-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: var(--paper-core);
  cursor: pointer;
  text-align: left;
}

.honor-vid-card:hover {
  border-color: var(--paper-teal);
  background: #f0f9f8;
}

.hv-likes {
  font-size: 11px;
  font-weight: 800;
  color: var(--paper-coral);
}

.hv-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--paper-ink);
}

/* 递麦许愿 & 纸笔手写愿望卡 */
.wish-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mic-stage-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  background: var(--paper-warm);
  border-radius: 10px;
  text-align: center;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.paper-mic-illustration {
  font-size: 56px;
  margin-bottom: 6px;
  transition: transform 0.12s ease;
}

.mic-level-bar {
  width: 220px;
  height: 10px;
  background: #e2d5be;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.mic-level-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2d7d84, #f59e0b);
  transition: width 0.08s linear;
}

.wish-paper-pad {
  background: var(--paper-core);
  border: 1.5px solid #bfa888;
  border-radius: 10px;
  padding: 14px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.wish-textarea {
  width: 100%;
  min-height: 82px;
  border: 1px dashed #bfa888;
  border-radius: 6px;
  background: var(--paper-cream);
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--paper-ink);
  resize: vertical;
  margin-bottom: 10px;
}

#wishDrawCanvas {
  width: 100%;
  height: 150px;
  background: #f8f1e1;
  border: 1px solid #d5c3a6;
  border-radius: 6px;
  cursor: crosshair;
  touch-action: none;
}

/* 点亮后才出现的微信表情包惊喜网格 */
.gift-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
  margin-top: 14px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.gift-sticker-card {
  border: 1.5px solid rgba(74, 46, 27, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: var(--paper-core);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gift-sticker-thumb {
  height: 128px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(45deg, #ebe3d2 25%, transparent 25%),
    linear-gradient(-45deg, #ebe3d2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ebe3d2 75%),
    linear-gradient(-45deg, transparent 75%, #ebe3d2 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.gift-sticker-grid.dark-sim .gift-sticker-thumb {
  background: #191919;
}

.gift-sticker-thumb img {
  max-width: 112px;
  max-height: 112px;
  object-fit: contain;
}

/* 顶部轻吐司 */
.paper-toast {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: #3b2416;
  color: #fffaf0;
  padding: 9px 18px;
  border-radius: 7px 10px 8px 9px;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

@media (max-width: 720px) {
  .pony-avatar-btn { width: 68px; height: 88px; }
  .retro-phone-widget { right: 12px; bottom: 185px; width: 215px; }
  .finale-surprise-dock { flex-wrap: wrap; width: calc(100vw - 24px); justify-content: center; }
  .paper-sheet-modal { padding: 20px 18px; }
  .gift-tear-stage { height: 290px; }
}


/* ==========================================================================
   v8.0 第一人称沉浸准星、沪宁高铁按钮与「圣何塞 SJC / 旧金山 SFO」仿真双联登机牌
   ========================================================================== */
.view-mode-btn {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-color: #1e40af !important;
}
.view-mode-btn.fp-active {
  background: #f59e0b !important;
  color: #1c1917 !important;
  border-color: #b45309 !important;
}
.hsr-toggle-btn {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}
.surprise-btn.boarding-cta {
  background: #0f2942;
  color: #fde047;
  border-color: #0284c7;
}
.surprise-btn.boarding-cta:hover {
  background: #0284c7;
  color: #ffffff;
}

.fp-reticle {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}
.fp-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 250, 240, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.45);
}
.fp-hint-bar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (min-width: 1120px) {
  .finale-surprise-dock {
    left: auto;
    right: 76px;
    transform: none;
  }
}

/* 圣何塞 (SJC) / 旧金山 (SFO) 纸艺双联可撕副券登机牌 */
.boarding-dest-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.dest-tab-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.16s ease;
}
.dest-tab-btn.active {
  background: #0f2942;
  color: #fde047;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.boarding-pass-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  background: #fffdf8;
  border-radius: 14px;
  border: 2px solid #1e3a5f;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  margin: 12px 0 16px;
}
.bp-main {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bp-carrier-bar {
  background: linear-gradient(90deg, #0f2942 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 11px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.bp-route-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 12px;
  border-bottom: 1px dashed #cbd5e1;
}
.bp-iata {
  font-size: 38px;
  font-weight: 900;
  color: #0f2942;
  letter-spacing: 0.04em;
  line-height: 1;
}
.bp-city-sub {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-top: 4px;
}
.bp-plane-mid {
  text-align: center;
  color: #0284c7;
  font-weight: 900;
  font-size: 22px;
}
.bp-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 13px 22px;
  background: #f8fafc;
}
.bp-field-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bp-field-val {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2px;
}
.bp-field-val.accent {
  color: #c84b31;
}
.bp-footer-bar {
  padding: 9px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: #0f766e;
  border-top: 1px solid #e2e8f0;
}
.bp-barcode {
  height: 26px;
  width: 148px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a 0px, #0f172a 2px,
    transparent 2px, transparent 5px,
    #0f172a 5px, #0f172a 9px,
    transparent 9px, transparent 11px,
    #0f172a 11px, #0f172a 12px,
    transparent 12px, transparent 15px
  );
}

.bp-stub {
  border-left: 2.5px dashed #94a3b8;
  background: #fefce8;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  transform-origin: bottom right;
}
.bp-stub.stub-torn {
  transform: translateX(36px) translateY(18px) rotate(14deg);
  opacity: 0.18;
}
.bp-stub-head {
  background: #eab308;
  color: #1c1917;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.bp-stub-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

@media (max-width: 720px) {
  .boarding-pass-wrap { grid-template-columns: 1fr; }
  .bp-stub { border-left: none; border-top: 2.5px dashed #94a3b8; }
  .bp-info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   v10.0 开场镜面晨雾涂抹散雾层 & 庆功光荣榜全屏漫天彩带层
   ========================================================================== */
.mist-intro-veil {
  position: fixed;
  inset: 0;
  z-index: 88;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.35s ease;
}

.mist-intro-veil.dispersing {
  opacity: 0;
  pointer-events: none;
}

.mist-intro-veil.hidden {
  display: none !important;
}

#mistVeilCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mist-whisper-hint {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  pointer-events: none;
  padding: 11px 24px;
  border-radius: 999px;
  background: rgba(252, 249, 242, 0.84);
  border: 1.5px solid rgba(120, 98, 76, 0.28);
  color: #3d2c1e;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(36, 26, 18, 0.14);
  animation: mistBreath 2.4s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

@keyframes mistBreath {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.92; }
  50% { transform: translateX(-50%) translateY(-4px); opacity: 1; }
}

.celebration-ribbon-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 130;
}

.sky-miracle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 84;
}

/* 《世界为你折叠了一次》活字压印题签浮层 */
.world-fold-title-overlay {
  position: fixed;
  left: 50%;
  top: 15%;
  transform: translateX(-50%) translateY(0);
  z-index: 32;
  pointer-events: none;
  text-align: center;
  padding: 20px 34px;
  border-radius: 12px;
  background: rgba(251, 246, 234, 0.88);
  border: 1.5px solid rgba(92, 66, 40, 0.28);
  box-shadow: 0 18px 46px rgba(34, 22, 12, 0.16);
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.world-fold-title-overlay.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.world-fold-title-overlay.hidden {
  display: none !important;
}

.wft-eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #8b5a34;
  font-weight: 700;
  margin-bottom: 6px;
}

.wft-main {
  font-family: "HanziPen SC", "Xingkai SC", "STXingkai", "Kaiti SC", "STKaiti", cursive;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  color: #2d1c10;
  letter-spacing: 0.06em;
}

.wft-sub {
  margin-top: 6px;
  font-family: "HanziPen SC", "Kaiti SC", "PingFang SC", cursive;
  font-size: 14.5px;
  font-weight: 600;
  color: #5c4430;
  letter-spacing: 0.06em;
}

/* 3D 小羊随行轻盈棉浆云朵对话气泡（小巧灵动、带小尖角尾巴、不遮挡场景建筑与黑板） */
.sheep-speech-bubble {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% - 10px)) scale(1);
  transform-origin: 50% 100%;
  z-index: 25;
  pointer-events: none;
  max-width: 204px;
  padding: 6px 12px;
  border-radius: 15px;
  background: rgba(253, 249, 241, 0.94);
  border: 1.5px solid rgba(116, 78, 45, 0.34);
  box-shadow: 0 6px 16px rgba(42, 26, 12, 0.12);
  color: #3b2414;
  font-family: "HanziPen SC", "Kaiti SC", "PingFang SC", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.38;
  text-align: center;
  letter-spacing: 0.02em;
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheep-speech-bubble.hidden {
  opacity: 0;
  transform: translate(-50%, calc(-100% - 2px)) scale(0.88);
  visibility: hidden;
}

.sheep-speech-bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border-width: 7px 6px 0 6px;
  border-style: solid;
  border-color: rgba(116, 78, 45, 0.36) transparent transparent transparent;
}

.sheep-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5.2px;
  transform: translateX(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: rgba(253, 249, 241, 0.96) transparent transparent transparent;
}

/* 终章立体书跨页收尾书牌：压花棉浆厚卡纸 + 烫金线框（与立体书星象折纸地球仪浑然一体！） */
.earth-finale-closing {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(0);
  z-index: 95;
  text-align: center;
  max-width: min(650px, 92vw);
  padding: 14px 28px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdf8ec 0%, #f3e6cc 100%);
  border: 2.5px solid #6b4523;
  box-shadow:
    0 14px 36px rgba(10, 14, 28, 0.52),
    0 4px 0 #4a2d14,
    inset 0 0 0 3px rgba(196, 148, 56, 0.38);
  color: #2d1c10;
  opacity: 0;
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.earth-finale-closing.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.earth-finale-closing.hidden {
  display: none !important;
}

.efc-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #92400e;
  font-weight: 900;
  margin-bottom: 3px;
}

.efc-title {
  font-family: "HanziPen SC", "Xingkai SC", "Kaiti SC", "STKaiti", cursive;
  font-size: clamp(24px, 2.8vw, 33px);
  color: #2d1c10;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.efc-sub {
  margin-top: 4px;
  font-family: "HanziPen SC", "Kaiti SC", "PingFang SC", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #5c4028;
}

.efc-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.efc-ghost-btn {
  padding: 5px 15px;
  border-radius: 999px;
  border: 1.5px solid #8b5a34;
  background: linear-gradient(180deg, #fffdf8 0%, #f5e8cf 100%);
  box-shadow: 0 2px 0 #784b26;
  color: #3b2416;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease;
}

.efc-ghost-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fef9c3 0%, #fde68a 100%);
  border-color: #b45309;
  color: #78350f;
}

.wft-year {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(139, 90, 52, 0.35);
  font-family: Georgia, serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: #2a7b88;
  font-weight: 800;
}

/* ==========================================================================
   Batch 2 & Batch 3 创意扩展样式：未被统计博物馆 · 星空地图 · 翻牌航显 · 空白纸大陆 · 黑马研究所 · 时间折页
   ========================================================================== */
.uncounted-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.uncounted-niche-card {
  padding: 14px 15px;
  border-radius: 10px;
  background: #172030;
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.uncounted-niche-card.lit {
  background: linear-gradient(160deg, #2b2118 0%, #1f2937 100%);
  border-color: #eab308;
  color: #fef3c7;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.18), inset 0 1px 0 rgba(254, 240, 138, 0.35);
}

.uncounted-niche-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #eab308;
}

.uncounted-exit-plaque {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  text-align: center;
  background: #111827;
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  color: #fde68a;
  font-family: "Songti SC", "PingFang SC", serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* 平行宇宙机场机械翻牌出发屏 (Split-Flap Departure Board) */
.split-flap-board {
  margin: 12px 0 14px;
  background: #11161d;
  border: 2.5px solid #334155;
  border-radius: 10px;
  padding: 12px 14px;
  color: #f8fafc;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.65);
}

.sfb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #334155;
  color: #fde047;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.sfb-row {
  display: grid;
  grid-template-columns: 88px 1fr 78px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 5px;
  background: #1b222c;
  border: 1px solid #2d3748;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease;
  text-align: left;
  width: 100%;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.sfb-row:hover {
  background: #253040;
  border-color: #64748b;
}

.sfb-row.selected {
  background: #1e293b;
  border-color: #fde047;
  box-shadow: 0 0 0 1.5px rgba(253, 224, 71, 0.45);
}

.sfb-flight {
  color: #fde047;
  letter-spacing: 0.08em;
}

.sfb-gate {
  text-align: right;
  color: #38bdf8;
  letter-spacing: 0.08em;
}

/* 尚未建模的空白纸质大陆 (The Blank Paper Continent) */
.blank-continent-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: radial-gradient(circle at 50% 42%, #fdfaf1 0%, #f4ecda 68%, #e9dec6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  animation: fadeInSoft 0.45s ease forwards;
}

.blank-continent-overlay.hidden {
  display: none !important;
}

@keyframes fadeInSoft {
  from { opacity: 0; }
  to { opacity: 1; }
}

#blankContinentCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.blank-continent-centerpiece {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 26px 32px;
  border-radius: 14px;
  background: rgba(253, 250, 241, 0.82);
  border: 1.5px dashed rgba(139, 90, 52, 0.35);
  text-align: center;
  pointer-events: none;
  box-shadow: 0 18px 48px rgba(60, 42, 24, 0.08);
}

.blank-continent-centerpiece .bc-actions {
  pointer-events: auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.bc-flight-tag {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #2a7b88;
  font-weight: 800;
}

.bc-en-quote {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 40px);
  font-style: italic;
  color: #2d1c10;
}

.bc-cn-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5c4430;
  font-weight: 600;
}

/* 星空地图 & 时间邮局 & 黑马研究所画布框 */
.star-map-canvas-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #1e293b;
  background: #090d1a;
  margin: 10px 0;
}

#starConstellationCanvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}

.conveyor-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #1e1b2e;
  border-radius: 8px;
  border: 1.5px solid #6d28d9;
  margin: 10px 0;
}

.conveyor-item {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 6px;
  background: #2e2946;
  color: #fef08a;
  font-size: 12px;
  font-weight: 800;
  border: 1px dashed rgba(253, 224, 71, 0.4);
}

/* ==========================================================================
   v12.0 根治短板 1 & 2：极简绘本折签 HUD · 终章礼匣抽屉 · 无黑幕侧边折页 · 真 3D 舞台条
   ========================================================================== */
.bookmark-tab-btn {
  background: linear-gradient(135deg, #fbf5e6 0%, #efe1c4 100%);
  border: 1.5px solid rgba(92, 60, 34, 0.36);
}

.hud-tools-drawer {
  position: fixed;
  top: 52px;
  left: 14px;
  z-index: 28;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: min(720px, calc(100vw - 32px));
  padding: 10px 12px;
  background: var(--paper-grain), rgba(250, 244, 232, 0.96);
  border: 1.5px solid rgba(92, 60, 34, 0.32);
  border-radius: 8px 12px 10px 11px;
  box-shadow: var(--card-cut), 0 14px 36px rgba(34, 20, 10, 0.22);
  animation: popDrawer 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popDrawer {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 终章单枚温润礼匣胶囊 + 按需展开抽屉 */
.finale-drawer-wrap {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.finale-capsule-toggle {
  border: 1.5px solid rgba(146, 64, 14, 0.45);
  background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
  color: #451a03;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(34, 20, 10, 0.24), inset 0 1px 0 #ffffff;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.finale-capsule-toggle:hover {
  transform: translateY(-2px);
}

.finale-drawer-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  max-width: min(1160px, calc(100vw - 36px));
  background: var(--paper-grain), rgba(251, 246, 234, 0.97);
  border: 1.5px solid rgba(92, 60, 34, 0.3);
  border-radius: 12px;
  box-shadow: var(--card-cut), 0 16px 40px rgba(28, 16, 8, 0.28);
}

/* 7 大主站点：右侧无遮罩「立体书页边折签」（左 72% 屏幕完全留给清晰的 3D 微距纸雕建筑！） */
.inworld-zone-slip {
  position: fixed;
  right: 18px;
  top: 66px;
  bottom: 84px;
  width: min(368px, 34vw);
  z-index: 29;
  overflow-y: auto;
  padding: 22px 22px 20px;
  background: var(--paper-grain), rgba(251, 246, 234, 0.96);
  border-radius: 10px 4px 4px 12px;
  border-left: 4px solid var(--paper-teal);
  outline: 1px dashed rgba(92, 60, 34, 0.34);
  outline-offset: -8px;
  box-shadow: -10px 14px 38px rgba(32, 18, 8, 0.22);
  animation: slideInRightSlip 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideInRightSlip {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}

.zone-slip-close {
  position: sticky;
  top: 0;
  float: right;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(74, 46, 27, 0.28);
  background: #f5ecda;
  color: #3b2416;
  font-weight: 900;
  cursor: pointer;
}

/* 真·3D 时间折叠舞台 & 真·3D 仰望星空舞台：底部轻盈控制签（无全屏弹窗！） */
.inworld-stage-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(690px, calc(100vw - 180px));
  z-index: 30;
  padding: 13px 18px;
  background: var(--paper-grain), rgba(251, 246, 234, 0.95);
  border: 1.5px solid rgba(92, 60, 34, 0.35);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(24, 14, 6, 0.26);
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.inworld-stage-bar.dark-sky-bar {
  background: rgba(11, 17, 34, 0.90);
  border-color: rgba(253, 224, 71, 0.42);
  color: #f8fafc;
  backdrop-filter: blur(6px);
}

.stage-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-bar-era {
  font-size: 13px;
  font-weight: 800;
  color: #3b2416;
  flex: 1;
}

.stage-exit-btn {
  padding: 4px 11px !important;
  font-size: 12px !important;
}

.stage-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 6px;
}

.stage-slider-row input[type="range"] {
  flex: 1;
  accent-color: #2a7b88;
  cursor: ew-resize;
}

.stage-end-tag {
  font-size: 12px;
  font-weight: 800;
  color: #6e4528;
}

.stage-bar-caption {
  font-size: 12.5px;
  font-weight: 700;
  color: #4a3320;
  line-height: 1.5;
}

/* 真·3D 黑马荒诞地下研究所空间顶签 */
.shenma-realm-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 29;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #24123b 0%, #17152b 100%);
  border: 1.5px solid #a855f7;
  border-radius: 999px;
  color: #fef08a;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 12.5px;
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.42);
}

canvas {
  touch-action: none;
}

/* v25.0 微信/手机竖屏触控自适应优化：防顶栏拥挤溢出、侧边折签转优雅底部半屏抽屉 */
@media (max-width: 768px) {
  .hud-top-left {
    top: 10px;
    left: 10px;
    gap: 6px;
  }
  .hud-top-right {
    top: 10px;
    right: 10px;
    max-width: 54vw;
  }
  .satchel-pack-bar {
    max-width: 100%;
    padding: 4px 8px;
  }
  .satchel-pockets {
    overflow-x: auto;
    max-width: 34vw;
    scrollbar-width: none;
  }
  .satchel-pockets::-webkit-scrollbar {
    display: none;
  }
  .inworld-zone-slip {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 74px;
    width: auto;
    max-height: 50vh;
    border-radius: 14px;
    padding: 16px;
  }
  .inworld-stage-bar {
    width: calc(100vw - 24px);
    bottom: 12px;
    padding: 10px 13px;
  }
  .shenma-realm-banner,
  .classroom-hud-banner {
    max-width: calc(100vw - 20px);
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
    padding: 7px 12px;
    font-size: 11.5px;
  }
  .pony-speech-card {
    max-width: calc(100vw - 92px);
  }
}

/* v26.0 全道具拾取：居中立体卡纸放大特写 -> 弧线缩小飞入右上角随身背包！ */
.compact-interior-pills {
  background: rgba(251, 246, 234, 0.88);
  padding: 5px 10px;
  border-radius: 999px;
  gap: 6px;
}

.relic-pickup-showcase {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background: radial-gradient(circle at center, rgba(254, 243, 199, 0.34) 0%, rgba(20, 14, 10, 0.38) 72%);
  backdrop-filter: blur(2.5px);
  transition: opacity 0.28s ease;
}

.relic-pickup-showcase.hidden {
  display: none !important;
}

.relic-pickup-showcase.flying-out {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.relic-pickup-showcase.flying-out .rps-sunburst {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.rps-sunburst {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(253, 224, 71, 0.32) 0deg 12deg,
    rgba(253, 224, 71, 0.0) 12deg 24deg
  );
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 18%, rgba(0, 0, 0, 0) 70%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 18%, rgba(0, 0, 0, 0) 70%);
  animation: rpsSpinRays 14s linear infinite;
  pointer-events: none;
}

@keyframes rpsSpinRays {
  to { transform: rotate(360deg); }
}

.rps-card {
  position: relative;
  width: min(336px, calc(100vw - 40px));
  padding: 22px 24px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf7 0%, #f6ecd7 100%);
  border: 2.5px solid #5c381c;
  box-shadow:
    0 18px 46px rgba(28, 17, 9, 0.38),
    0 5px 0 #8b5a34,
    inset 0 0 0 3px rgba(234, 179, 8, 0.28);
  text-align: center;
  transform-origin: center center;
  animation: rpsPopIn 0.42s cubic-bezier(0.22, 1.28, 0.36, 1) both;
  cursor: pointer;
}

@keyframes rpsPopIn {
  0% {
    opacity: 0;
    transform: scale(0.32) translateY(28px) rotate(-6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

.rps-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1.5px solid #d97706;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rps-emblem-ring {
  width: 96px;
  height: 96px;
  margin: 14px auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbeb 0%, #fde68a 62%, #f59e0b 100%);
  border: 3px solid #78350f;
  box-shadow:
    0 8px 20px rgba(217, 119, 6, 0.35),
    inset 0 -4px 0 rgba(146, 64, 14, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rps-icon {
  font-size: 50px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(69, 26, 3, 0.25));
}

.rps-title {
  font-size: 19px;
  font-weight: 900;
  color: #2d1c10;
  line-height: 1.35;
  margin-bottom: 6px;
}

.rps-sub {
  font-size: 13px;
  font-weight: 700;
  color: #6b4e35;
  line-height: 1.5;
}

.rps-foot {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.06em;
}

.satchel-pack-bar.bag-catch-pulse {
  animation: satchelCatchPulse 0.52s cubic-bezier(0.22, 1.35, 0.36, 1);
}

@keyframes satchelCatchPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.55), 0 8px 22px rgba(92, 56, 28, 0.3); }
  100% { transform: scale(1); }
}

/* v27.0 道具居中特写支持真实卡面图片（如共生秩序 Offer 牛马闪卡） + 全息光栅「牛马卡」3D 鉴赏模态层 */
.rps-emblem-ring.has-art-card {
  width: 146px;
  height: 208px;
  border-radius: 12px;
  padding: 4px;
  background: linear-gradient(135deg, #fde68a 0%, #38bdf8 36%, #f472b6 70%, #f59e0b 100%);
  border: 2.5px solid #5c381c;
  box-shadow:
    0 12px 28px rgba(28, 17, 9, 0.35),
    0 3px 0 #78350f;
}

.rps-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.rps-art-img.hidden {
  display: none !important;
}

.niuma-card-dialog {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: transparent;
  overflow: hidden;
  color: #141413;
}

.niuma-card-dialog::backdrop {
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(5px);
}

.niuma-card-anchor {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(78vw, 376px, calc(74svh / 1.42));
  aspect-ratio: 620 / 868;
  translate: -50% -50%;
  perspective: 1500px;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.56));
}

.niuma-holo-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  outline: none;
}

.niuma-holo-card:active {
  cursor: grabbing;
}

.niuma-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  background: #e3dacc;
}

.niuma-front {
  transform: translateZ(0.25px);
}

.niuma-front canvas,
.niuma-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.niuma-back {
  transform: rotateY(180deg) translateZ(0.25px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(14px, 3svh, 28px);
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 253, 246, 0.55) 0%, rgba(227, 218, 204, 0) 65%),
    #e3dacc;
  color: #141413;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", Georgia, serif;
}

.niuma-back::after {
  content: "";
  inset: 15px;
  position: absolute;
  border: 1.2px solid #98866b;
  pointer-events: none;
}

.niuma-back-big {
  font-size: clamp(28px, 5svh, 44px);
  line-height: 1.45;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 8px 0 4px;
}

.niuma-back p {
  margin: 4px 0 14px;
  font-size: clamp(15px, 2.2svh, 19px);
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.niuma-back small {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8px, 1.05svh, 10px);
  line-height: 1.85;
  letter-spacing: 0.15em;
  color: #4a453c;
}

.niuma-card-hud {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(253, 248, 236, 0.94);
  border: 2px solid #6b4523;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 3px 0 #4a2d14;
  max-width: min(92vw, 680px);
}

.niuma-card-tip {
  font-size: 12.5px;
  font-weight: 800;
  color: #3b2416;
}

.niuma-hud-btn {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid #92400e;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.niuma-hud-btn.ghost {
  border-color: #8b5a34;
  background: #fffdf7;
  color: #5c4028;
}

/* v28.0 通关后扉页烫金棉麻书签「回到这个世界」 + 室内 3D 时间折叠跨页卷折过场 */
.return-to-world-bookmark {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid #8b5a2b;
  background:
    radial-gradient(circle at 25% 20%, #fffef9 0%, #f7edd6 75%, #ebdaba 100%);
  color: #4a2d14;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", Georgia, serif;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(45, 28, 14, 0.18),
    0 3px 0 #784820,
    inset 0 0 0 2px rgba(202, 138, 4, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.return-to-world-bookmark:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 16px 32px rgba(45, 28, 14, 0.24),
    0 4px 0 #784820,
    inset 0 0 0 2px rgba(202, 138, 4, 0.58);
}

.return-to-world-bookmark.hidden {
  display: none !important;
}

.page-fold-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 92;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(108deg, rgba(251, 246, 234, 0) 0%, rgba(246, 236, 214, 0.96) 46%, rgba(230, 214, 186, 0.98) 54%, rgba(251, 246, 234, 0) 100%);
  opacity: 0;
  transform: scaleX(0.15) skewY(-3deg);
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-fold-transition-veil.folding {
  opacity: 1;
  transform: scaleX(1.06) skewY(0deg);
}

.page-fold-transition-veil.hidden {
  display: none !important;
}

.pfv-crease {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, rgba(120, 72, 32, 0.15), rgba(120, 72, 32, 0.55), rgba(120, 72, 32, 0.15));
  box-shadow: 0 0 36px 12px rgba(92, 56, 24, 0.28);
}

.pfv-caption {
  position: relative;
  padding: 10px 24px;
  border-radius: 10px;
  background: #fbf5e6;
  border: 2px solid #8b5a2b;
  box-shadow: 0 12px 28px rgba(38, 22, 10, 0.24);
  color: #3b2416;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
}


/* ============================================================================
 * v30.0 裸眼 3D 立体书纸雕礼盒 · 蜂蜡纸雕蜡烛工坊 · 桑皮宣纸手写信 · 博物馆翻页勋章匣
 * ============================================================================ */

/* 1. 紧凑单页弹窗（《给 27 岁的手写信》确保含底部火漆印一屏完整呈现，零滚动截断） */
.paper-modal-card.compact-single-page-modal {
  max-height: 90vh;
  padding: 16px 22px 14px;
  overflow: hidden;
}

/* 2. 屏幕中央裸眼 3D 立体书纸雕礼盒 & 蜂蜡纸雕蜡烛工坊（外层壳体完全隐形，直接悬浮于屏幕正中央！） */
.paper-sheet-modal.is-naked-3d,
.paper-sheet-modal:has(.naked-3d-stage-modal),
.paper-sheet-modal.is-xuan-letter,
.paper-sheet-modal:has(.xuan-letter-modal) {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.paper-sheet-modal.is-naked-3d::before,
.paper-sheet-modal.is-naked-3d::after,
.paper-sheet-modal:has(.naked-3d-stage-modal)::before,
.paper-sheet-modal:has(.naked-3d-stage-modal)::after,
.paper-sheet-modal.is-xuan-letter::before,
.paper-sheet-modal.is-xuan-letter::after,
.paper-sheet-modal:has(.xuan-letter-modal)::before,
.paper-sheet-modal:has(.xuan-letter-modal)::after {
  display: none !important;
}

.paper-sheet-modal.is-naked-3d #modalCloseBtn,
.paper-sheet-modal:has(.naked-3d-stage-modal) #modalCloseBtn {
  background: #fbf5e6;
  border: 2px solid #784820;
  color: #3b2416;
  top: 10px;
  right: 12px;
  z-index: 12;
  box-shadow: 0 8px 22px rgba(20, 10, 4, 0.45);
}

.paper-sheet-modal.is-xuan-letter,
.paper-sheet-modal:has(.xuan-letter-modal) {
  max-width: 840px !important;
}

.paper-sheet-modal.is-xuan-letter #modalCloseBtn,
.paper-sheet-modal:has(.xuan-letter-modal) #modalCloseBtn {
  background: #efe0c4;
  border: 1.8px solid #7c5230;
  color: #321e10;
  top: 14px;
  right: 18px;
  z-index: 12;
  box-shadow: 0 6px 16px rgba(24, 12, 4, 0.32);
}

.paper-modal-card.naked-3d-stage-modal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
  max-width: 820px;
  overflow: visible !important;
}

.naked-3d-gift-scene {
  position: relative;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  user-select: none;
}

.naked-3d-aura {
  position: absolute;
  width: 440px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.42) 0%, rgba(245, 158, 11, 0.16) 46%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
  filter: blur(8px);
}

.kirigami-box-rig {
  position: relative;
  width: 260px;
  height: 190px;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-28deg);
  transition: transform 0.16s ease-out;
  cursor: pointer;
  margin-top: 34px;
}

.kirigami-box-rig.is-opening {
  transform: rotateX(-25deg) rotateY(-18deg) scale(1.04) !important;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.kbox-shadow {
  position: absolute;
  width: 290px;
  height: 290px;
  left: -15px;
  top: -50px;
  background: radial-gradient(circle, rgba(22, 11, 5, 0.58) 0%, rgba(22, 11, 5, 0.24) 48%, rgba(22, 11, 5, 0) 74%);
  transform: rotateX(90deg) translateZ(-98px);
  pointer-events: none;
}

.kbox-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.kbox-face {
  position: absolute;
  inset: 0;
  background-color: #b8442e;
  background-image:
    radial-gradient(rgba(255, 246, 224, 0.16) 1px, transparent 0),
    linear-gradient(180deg, rgba(255, 244, 222, 0.14) 0%, rgba(56, 18, 10, 0.26) 100%);
  background-size: 9px 9px, 100% 100%;
  border: 3px solid #ead8b8;
  box-shadow: inset 0 0 0 3px rgba(120, 42, 22, 0.42), inset 0 0 28px rgba(42, 12, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kbox-front  { transform: translateZ(130px); background-color: #c44a32; }
.kbox-back   { transform: rotateY(180deg) translateZ(130px); background-color: #8f311f; }
.kbox-right  { transform: rotateY(90deg) translateZ(130px); background-color: #a63b26; }
.kbox-left   { transform: rotateY(-90deg) translateZ(130px); background-color: #9e3723; }
.kbox-bottom {
  width: 260px;
  height: 260px;
  top: -35px;
  background: #6b2416;
  transform: rotateX(-90deg) translateZ(95px);
}

.kbox-ribbon-v {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 38px;
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 24%, #fef08a 50%, #f59e0b 78%, #b45309 100%);
  box-shadow: 0 0 10px rgba(68, 28, 8, 0.35);
}

.kbox-tag-card {
  position: relative;
  z-index: 2;
  padding: 9px 18px;
  border-radius: 7px;
  background: #fbf3e2;
  border: 2px solid #7c4a24;
  box-shadow: 0 8px 18px rgba(34, 14, 6, 0.32), inset 0 0 0 2px rgba(202, 138, 4, 0.35);
  text-align: center;
  transform: translateZ(10px) rotate(-3deg);
}

.kbox-tag-card small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #8c542b;
  font-weight: 800;
}

.kbox-tag-card strong {
  display: block;
  margin-top: 2px;
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 16px;
  color: #3b2010;
  letter-spacing: 0.06em;
}

.kbox-inner-glow {
  position: absolute;
  width: 244px;
  height: 244px;
  left: 8px;
  top: -27px;
  transform: rotateX(90deg) translateZ(82px);
  background: radial-gradient(circle, #fef9c3 0%, #fbbf24 55%, #92400e 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.kbox-rising-envelope {
  padding: 10px 20px;
  background: #f5ebd4;
  border: 2px solid #b45309;
  border-radius: 6px;
  color: #451a03;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.45);
  transform: rotateX(-78deg) translateY(10px) translateZ(8px);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.kirigami-box-rig.is-opening .kbox-rising-envelope {
  transform: rotateX(-78deg) translateY(-88px) translateZ(26px) scale(1.12);
}

/* 3D 盒盖（沿后侧书脊折痕向上 118° 立体掀开！） */
.kbox-lid-pivot {
  position: absolute;
  width: 278px;
  height: 278px;
  left: -9px;
  top: -139px;
  transform-style: preserve-3d;
  transform-origin: 50% 0% -139px;
  transform: translateY(0px);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.kbox-lid-pivot.lid-open {
  transform: rotateX(118deg);
}

.klid-top {
  position: absolute;
  inset: 0;
  transform: rotateX(90deg) translateZ(0px);
  background-color: #cf5238;
  background-image:
    radial-gradient(rgba(255, 248, 231, 0.2) 1px, transparent 0),
    linear-gradient(135deg, #dd6246 0%, #b84129 100%);
  background-size: 8px 8px, 100% 100%;
  border: 3.5px solid #f2e2c6;
  box-shadow: inset 0 0 0 3px rgba(124, 45, 18, 0.36);
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.klid-ribbon-h,
.klid-ribbon-v {
  position: absolute;
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 22%, #fef08a 50%, #f59e0b 78%, #b45309 100%);
  box-shadow: 0 2px 8px rgba(68, 28, 8, 0.32);
}

.klid-ribbon-h { left: 0; right: 0; height: 40px; }
.klid-ribbon-v { top: 0; bottom: 0; width: 40px; }

.klid-lip {
  position: absolute;
  background: #b64028;
  border: 2.5px solid #ead8b8;
}

.klid-front {
  width: 278px; height: 42px; left: 0; top: 139px;
  transform: translateZ(139px);
  background: linear-gradient(180deg, #cd4f35, #a33822);
}
.klid-back {
  width: 278px; height: 42px; left: 0; top: 139px;
  transform: rotateY(180deg) translateZ(139px);
}
.klid-right {
  width: 278px; height: 42px; left: 0; top: 139px;
  transform: rotateY(90deg) translateZ(139px);
}
.klid-left {
  width: 278px; height: 42px; left: 0; top: 139px;
  transform: rotateY(-90deg) translateZ(139px);
}

/* 盒顶立体多层折纸金丝带蝴蝶结 */
.klid-bow {
  position: relative;
  width: 132px;
  height: 132px;
  transform-style: preserve-3d;
  transform: translateZ(20px);
}

.bow-loop {
  position: absolute;
  width: 64px;
  height: 44px;
  top: 44px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 55%, #b45309 100%);
  border: 2px solid #fef9c3;
  box-shadow: 0 6px 14px rgba(68, 28, 8, 0.35);
}

.bow-l1 { left: 4px;  transform: rotateZ(-22deg) rotateY(-28deg) translateZ(10px); }
.bow-r1 { right: 4px; transform: rotateZ(22deg) rotateY(28deg) translateZ(10px); }
.bow-l2 { left: 10px; transform: rotateZ(24deg) rotateY(-24deg) translateZ(6px); }
.bow-r2 { right: 10px; transform: rotateZ(-24deg) rotateY(24deg) translateZ(6px); }

.bow-tail {
  position: absolute;
  width: 26px;
  height: 54px;
  top: 66px;
  background: linear-gradient(180deg, #f59e0b, #b45309);
  border: 1.5px solid #fde68a;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.bow-tl { left: 34px; transform: rotateZ(24deg) translateZ(3px); }
.bow-tr { right: 34px; transform: rotateZ(-24deg) translateZ(3px); }

.bow-knot {
  position: absolute;
  width: 36px;
  height: 36px;
  left: 48px;
  top: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef9c3, #eab308 62%, #92400e 100%);
  border: 2px solid #fffbeb;
  color: #78350f;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(18px);
  box-shadow: 0 6px 14px rgba(42, 18, 4, 0.45);
}

.naked-3d-caption-bar {
  margin-top: 62px;
  position: relative;
  z-index: 3;
}

.naked-unbox-cta {
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbf4e2 0%, #eedbb8 100%);
  border: 2.5px solid #7c4a24;
  box-shadow: 0 12px 28px rgba(20, 10, 4, 0.42), 0 3px 0 #5c3416;
  color: #3b2010;
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.naked-unbox-cta:hover {
  transform: translateY(-2px) scale(1.02);
}

/* 立体书掀开态：胡桃木与棉浆卡纸 26 支手作蜡烛匣 */
.atelier-popup-spread {
  position: relative;
  background-color: #f6ecda;
  background-image:
    radial-gradient(rgba(120, 82, 46, 0.10) 1px, transparent 0),
    linear-gradient(180deg, #fbf5e8 0%, #efe0c4 100%);
  background-size: 12px 12px, 100% 100%;
  border: 3px solid #6b4222;
  border-radius: 16px;
  padding: 18px 22px 18px;
  box-shadow:
    0 26px 60px rgba(24, 12, 4, 0.52),
    0 5px 0 #4a2c14,
    inset 0 0 0 3px rgba(180, 124, 62, 0.28);
}

.atelier-book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 34px;
  margin-bottom: 12px;
}

.atelier-craft-tag {
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 15px;
  font-weight: 900;
  color: #5c3214;
  letter-spacing: 0.08em;
}

.atelier-craft-tally {
  font-size: 12.5px;
  font-weight: 800;
  color: #7c4a24;
  background: rgba(180, 120, 56, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
}

.atelier-letter-pocket {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede0c4 0%, #e2cfa9 100%);
  border: 2px solid #9a6b3e;
  box-shadow: 0 8px 18px rgba(74, 44, 20, 0.16), inset 0 1px 0 rgba(255, 252, 242, 0.75);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.atelier-letter-pocket:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(74, 44, 20, 0.24);
}

.alp-envelope-icon {
  width: 54px;
  height: 38px;
  border-radius: 5px;
  background: linear-gradient(160deg, #f5e9cf 0%, #dcc69e 100%);
  border: 1.8px solid #8c5c32;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(60, 34, 14, 0.2);
  flex-shrink: 0;
}

.alp-wax-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ef4444, #991b1b);
  border: 1.5px solid #fde047;
  color: #fef9c3;
  font-family: "Kaiti SC", serif;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alp-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alp-meta strong {
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 16px;
  color: #321c0e;
}

.alp-meta span {
  font-size: 12px;
  color: #6b482c;
}

.alp-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: #8c2d19;
  color: #fef9c3;
  font-size: 12.5px;
  font-weight: 800;
}

/* 胡桃木天鹅绒 26 槽立体蜡烛匣 */
.atelier-walnut-tray {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #54331b 0%, #3b2210 100%);
  border: 2.5px solid #8a5a32;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.48), 0 8px 20px rgba(42, 24, 10, 0.22);
}

.awt-inner-velvet {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 8px 6px;
  padding: 12px 10px 10px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, #2b1d19 0%, #1c1210 100%);
  border: 1.5px solid rgba(217, 169, 92, 0.35);
}

@media (max-width: 720px) {
  .awt-inner-velvet {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.sculpted-3d-candle {
  appearance: none;
  border: none;
  background: rgba(255, 248, 232, 0.04);
  border-radius: 8px;
  padding: 6px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, opacity 0.22s ease;
}

.sculpted-3d-candle:hover {
  transform: translateY(-6px) scale(1.08);
  background: rgba(254, 240, 138, 0.14);
}

.sculpted-3d-candle.is-picked {
  opacity: 0.34;
  transform: scale(0.92);
}

.s3c-aura {
  width: 10px;
  height: 12px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 65%, #fffbeb 0%, #fde047 52%, rgba(245, 158, 11, 0) 100%);
  margin-bottom: -1px;
}

.s3c-wick {
  width: 2px;
  height: 6px;
  background: #d6c5a9;
  border-radius: 1px;
}

.s3c-body {
  width: 16px;
  height: 52px;
  border-radius: 4px 4px 3px 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.12) 32%, rgba(0,0,0,0.16) 76%, rgba(0,0,0,0.34) 100%),
    repeating-linear-gradient(-28deg, rgba(255,255,255,0.16) 0px, rgba(255,255,255,0.16) 4px, transparent 4px, transparent 9px),
    var(--c-hex, #f59e0b);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.55), inset 0 2px 2px rgba(255, 255, 255, 0.65);
  position: relative;
  display: flex;
  align-items: flex-end;
}

.s3c-collar {
  width: 100%;
  height: 7px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #92400e, #fde047, #b45309);
}

.s3c-num {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: rgba(253, 230, 138, 0.78);
  font-family: Georgia, serif;
}

.atelier-glaze-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.agb-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #5c3a1e;
}

.agb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid #c2a37d;
  background: #fbf5e8;
  color: #4a2e18;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.agb-chip.selected {
  background: #3b2210;
  color: #fde68a;
  border-color: #d97706;
}

.agb-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.atelier-ceremony-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.flying-3d-candle-token {
  position: fixed;
  z-index: 9999;
  width: 14px;
  height: 44px;
  border-radius: 4px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.6), rgba(0,0,0,0.25)),
    var(--candle-hex, #f59e0b);
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.85), 0 6px 12px rgba(0, 0, 0, 0.35);
}

/* 3. 桑皮宣纸手书长信（1:1 致敬《时间的玫瑰》温润手写信笺与朱砂印章） */
.paper-modal-card.xuan-letter-modal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 840px !important;
  padding: 2px 6px !important;
}

.paper-modal-card.xuan-letter-modal #modalCloseBtn {
  background: #efe0c4;
  border: 1.8px solid #7c5230;
  color: #321e10;
  top: 14px;
  right: 18px;
  z-index: 6;
}

.xuan-manuscript-sheet {
  position: relative;
  border-radius: 5px;
  background-color: #e3d1b0;
  background-image:
    radial-gradient(rgba(128, 86, 42, 0.24) 1px, transparent 0),
    radial-gradient(rgba(162, 114, 62, 0.18) 1.4px, transparent 0),
    radial-gradient(ellipse at 18% 14%, rgba(251, 242, 222, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 86%, rgba(168, 124, 74, 0.24) 0%, transparent 58%),
    linear-gradient(180deg, #eadbc0 0%, #e1cea9 52%, #dac49c 100%);
  background-size: 23px 23px, 37px 37px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 11px 15px, 0 0, 0 0, 0 0;
  box-shadow:
    0 26px 64px rgba(14, 7, 2, 0.62),
    inset 0 0 42px rgba(122, 84, 42, 0.24),
    inset 0 0 0 1.5px rgba(138, 98, 54, 0.42);
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.xuan-manuscript-sheet::-webkit-scrollbar {
  display: none;
}

.xuan-manuscript-inner {
  padding: 20px 38px 16px;
  color: #241b15;
  font-family: "HanziPen SC", "Xingkai SC", "STXingkai", "Kaiti SC", "STKaiti", cursive;
}

@media (max-width: 640px) {
  .xuan-manuscript-inner {
    padding: 18px 20px 16px;
  }
}

.xuan-hand-salutation {
  font-size: 22px;
  font-weight: 700;
  color: #1d1510;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
  transform: rotate(-0.35deg);
}

.xuan-hand-para {
  margin: 0 0 7px;
  font-size: 15.5px;
  line-height: 1.54;
  letter-spacing: 0.03em;
  color: #261d16;
  text-indent: 2em;
}

.xuan-hand-colophon {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.xuan-sign-lines {
  text-align: right;
  line-height: 1.42;
}

.xuan-sign-name {
  font-size: 19px;
  font-weight: 700;
  color: #1d1510;
  letter-spacing: 0.10em;
}

.xuan-sign-date,
.xuan-sign-place {
  font-size: 14.5px;
  color: #3a2b20;
  letter-spacing: 0.08em;
}

.xuan-vermilion-seal {
  transform: rotate(-3.5deg);
  opacity: 0.92;
  filter: contrast(1.06);
  flex-shrink: 0;
}

.xuan-letter-footer-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* 4.《未被统计的人生成就博物馆》立体翻页手稿与浮雕金质勋章匣 */
.paper-modal-card.museum-coronation-modal {
  max-width: 860px;
  background: linear-gradient(180deg, #f8f0df 0%, #ede0c6 100%);
  border: 3px solid #6b4423;
  padding: 18px 22px 16px;
}

.museum-folio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-right: 34px;
  margin-bottom: 12px;
}

.museum-lamp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.museum-lamp-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.6px solid #b8976c;
  background: #efe3cb;
  color: #5c3d24;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease;
}

.museum-lamp-tab.is-lit {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
}

.museum-lamp-tab.is-active {
  box-shadow: 0 0 0 2.5px rgba(180, 83, 9, 0.38);
  transform: translateY(-1px);
}

.museum-medal-tally {
  font-size: 12.5px;
  font-weight: 900;
  color: #78350f;
}

.museum-open-book {
  display: grid;
  grid-template-columns: 1.25fr 10px 0.9fr;
  border-radius: 12px;
  border: 2.5px solid #7c522b;
  background: #fbf5e6;
  box-shadow: 0 14px 32px rgba(45, 26, 10, 0.18), inset 0 0 28px rgba(168, 122, 68, 0.14);
  overflow: hidden;
  min-height: 258px;
}

@media (max-width: 680px) {
  .museum-open-book {
    grid-template-columns: 1fr;
  }
  .museum-book-spine {
    display: none;
  }
}

.museum-open-book.book-dim {
  background: #e6dcc8;
}

.museum-book-spine {
  background: linear-gradient(90deg, rgba(92, 54, 24, 0.24), rgba(60, 34, 14, 0.45), rgba(92, 54, 24, 0.18));
}

.museum-book-page {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mbp-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9a5b25;
  margin-bottom: 6px;
}

.mbp-title {
  margin: 0 0 12px;
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 22px;
  color: #2d1a0c;
}

.mbp-story {
  margin: 0 0 16px;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.78;
  color: #3b2616;
}

.mbp-page-nav {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.museum-pull-lamp-btn {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #b45309;
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
  color: #451a03;
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.28);
}

.right-medal-page {
  background: radial-gradient(circle at 50% 42%, #2a1d1a 0%, #191110 100%);
  align-items: center;
  text-align: center;
}

.medal-velvet-cushion {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.42;
  filter: grayscale(0.55);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.medal-velvet-cushion.awarded {
  opacity: 1;
  filter: none;
  transform: scale(1.03);
}

.medal-silk-ribbon {
  width: 34px;
  height: 36px;
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 50%, #7f1d1d 100%);
  border-left: 3px solid #fde047;
  border-right: 3px solid #fde047;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  margin-bottom: -6px;
}

.medal-gold-disc {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, #fef08a, #d97706, #fef9c3, #b45309, #fde047, #92400e, #fef08a);
  padding: 7px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 24px rgba(251, 191, 36, 0.35);
}

.medal-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef9c3 0%, #eab308 58%, #92400e 100%);
  border: 2px dashed #78350f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #451a03;
}

.medal-star-emblem {
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.medal-order-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.medal-plaque-name {
  margin-top: 12px;
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 16.5px;
  font-weight: 900;
  color: #fde68a;
  letter-spacing: 0.06em;
}

.medal-plaque-state {
  margin-top: 4px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.museum-coronation-epigraph {
  margin-top: 12px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #231811;
  border: 1.5px solid #b45309;
  color: #fef3c7;
  text-align: center;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================================
 * v31.0 全站高级棉浆羊皮纸按钮 UI 体系 · 极简无字图标顶栏 · 右上折叠背包 · 纯黑星夜柔光转场
 * ============================================================================ */

/* 1) 全大陆巡礼高空 ⇄ 城市夜景丝滑黑丝绒转场幕 */
.finale-crossfade-veil {
  position: fixed;
  inset: 0;
  z-index: 16;
  background: #040711;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s linear;
}

/* 2) 左上角：无文字纯粹矢量图标折签与展开胶囊 */
.hud-top-left {
  top: 16px;
  left: 16px;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  max-width: none;
}

.vellum-icon-fab {
  appearance: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(110, 78, 46, 0.24);
  background: linear-gradient(180deg, rgba(253, 250, 242, 0.94) 0%, rgba(242, 232, 213, 0.90) 100%);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  color: #3d2717;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 22px rgba(28, 16, 6, 0.14),
    0 2px 4px rgba(28, 16, 6, 0.08);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vellum-icon-fab:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(180deg, #fffdf8 0%, #f6ecda 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 26px rgba(28, 16, 6, 0.18),
    0 3px 6px rgba(28, 16, 6, 0.10);
}

.vellum-icon-fab:active {
  transform: translateY(0.5px) scale(0.97);
}

.vellum-icon-fab[aria-expanded="true"] {
  background: linear-gradient(180deg, #432d1d 0%, #2b1b10 100%);
  color: #fde68a;
  border-color: rgba(217, 169, 92, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(253, 230, 138, 0.28),
    0 10px 24px rgba(24, 12, 4, 0.26);
}

.hud-tools-drawer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(110, 78, 46, 0.22);
  background: linear-gradient(180deg, rgba(253, 250, 242, 0.92) 0%, rgba(243, 233, 215, 0.88) 100%);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 28px rgba(28, 16, 6, 0.15),
    0 2px 5px rgba(28, 16, 6, 0.08);
  animation: hudCapsuleSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hudCapsuleSlideIn {
  from { opacity: 0; transform: translateX(-8px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.mood-icon-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(120, 84, 48, 0.07);
}

.icon-seg-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #523622;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.icon-seg-btn:hover {
  background: rgba(120, 84, 48, 0.11);
  color: #2b1a0e;
  transform: translateY(-1px);
}

.icon-seg-btn:active {
  transform: scale(0.94);
}

.icon-seg-btn.active {
  background: linear-gradient(180deg, #432d1d 0%, #2a1b10 100%);
  color: #fde68a;
  border-color: rgba(217, 169, 92, 0.42);
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.28), 0 4px 10px rgba(34, 18, 8, 0.22);
}

/* 默认跟随系统时间时，当前命中时刻图标下方亮起一枚微巧暖金呼吸点 */
.mood-icon-seg.is-realtime-sync .icon-seg-btn.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.9);
}

.piano-icon-btn.active {
  background: linear-gradient(180deg, #9a4a24 0%, #6e3014 100%);
  color: #fef3c7;
  border-color: rgba(253, 224, 71, 0.42);
}

.reset-icon-btn:hover {
  background: rgba(185, 28, 28, 0.10);
  color: #991b1b;
}

.hud-drawer-sep {
  width: 1px;
  height: 20px;
  background: rgba(110, 78, 46, 0.18);
  margin: 0 2px;
}

/* 3) 右上角：默认向右折叠仅留单枚背包图标，点击后向左丝滑伸出物件槽 */
.hud-top-right {
  top: 16px;
  right: 16px;
  gap: 8px;
  flex-wrap: nowrap;
}

.satchel-pack-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 78, 46, 0.24);
  background: linear-gradient(180deg, rgba(253, 250, 242, 0.92) 0%, rgba(242, 232, 213, 0.88) 100%);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 26px rgba(28, 16, 6, 0.15),
    0 2px 5px rgba(28, 16, 6, 0.08);
  transition: padding 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.satchel-pack-bar.is-collapsed {
  padding: 0;
  gap: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.satchel-expand-tray {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 480px;
  opacity: 1;
  overflow: hidden;
  transform: translateX(0);
  transform-origin: right center;
  transition:
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.satchel-pack-bar.is-collapsed .satchel-expand-tray {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
}

.satchel-pack-bar:not(.is-collapsed) .satchel-bag-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #432d1d 0%, #2a1b10 100%);
  color: #fde68a;
  border-color: rgba(217, 169, 92, 0.42);
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.28), 0 4px 10px rgba(34, 18, 8, 0.2);
}

.satchel-dot-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  border: 1.5px solid #fffbeb;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.65);
}

.satchel-slot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(120, 84, 48, 0.07);
  border: 1px dashed rgba(110, 78, 46, 0.26);
  font-size: 14px;
}

.satchel-slot.collected {
  background: linear-gradient(180deg, #fffdf9 0%, #f3e6ce 100%);
  border: 1px solid rgba(146, 92, 42, 0.45);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(42, 24, 10, 0.12);
}

.satchel-vault-btn {
  appearance: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(110, 78, 46, 0.22);
  background: rgba(255, 252, 244, 0.78);
  color: #4a2f1b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, background 0.16s ease;
}

.satchel-vault-btn:hover {
  background: #fffdf8;
  transform: translateY(-1px);
}

.unbox-ready-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  background: linear-gradient(180deg, #b84a2e 0%, #8c2f19 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.45), 0 8px 22px rgba(140, 47, 25, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* 4) 全站通用按钮 UI 升级：温润羊皮棉纸 + 深焙胡桃鎏金立体微光质感 */
.paper-btn-primary {
  appearance: none;
  border: 1px solid rgba(217, 169, 92, 0.42) !important;
  background: linear-gradient(180deg, #473020 0%, #2b1b10 100%) !important;
  color: #fbf3e2 !important;
  border-radius: 999px !important;
  padding: 9px 20px;
  font-family: -apple-system, "PingFang SC", "Songti SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow:
    inset 0 1px 0 rgba(253, 230, 138, 0.32),
    0 6px 18px rgba(32, 18, 8, 0.22),
    0 1.5px 3px rgba(32, 18, 8, 0.12) !important;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, filter 0.18s ease !important;
}

.paper-btn-primary:hover:not(:disabled) {
  transform: translateY(-1.5px) !important;
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(253, 230, 138, 0.45),
    0 10px 24px rgba(32, 18, 8, 0.28),
    0 2px 5px rgba(32, 18, 8, 0.14) !important;
}

.paper-btn-primary:active:not(:disabled) {
  transform: translateY(0.5px) scale(0.98) !important;
}

.paper-btn-ghost {
  appearance: none;
  border: 1px solid rgba(116, 82, 48, 0.26) !important;
  background: linear-gradient(180deg, #fdfaf2 0%, #f1e6d2 100%) !important;
  color: #3f2818 !important;
  border-radius: 999px !important;
  padding: 8px 18px;
  font-family: -apple-system, "PingFang SC", "Songti SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 12px rgba(36, 20, 8, 0.08) !important;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, box-shadow 0.18s ease !important;
}

.paper-btn-ghost:hover {
  transform: translateY(-1.5px) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7eedc 100%) !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 7px 16px rgba(36, 20, 8, 0.13) !important;
}

.paper-btn-ghost:active {
  transform: translateY(0.5px) scale(0.98) !important;
}

/* 顶部走近互动胶囊（Proximity Pill）温润毛玻璃纸签化 */
.proximity-pill {
  border-radius: 999px !important;
  padding: 6px 7px 6px 16px !important;
  border: 1px solid rgba(116, 82, 48, 0.24) !important;
  background: linear-gradient(180deg, rgba(253, 250, 242, 0.93) 0%, rgba(243, 233, 214, 0.89) 100%) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 28px rgba(28, 16, 6, 0.16),
    0 2px 5px rgba(28, 16, 6, 0.08) !important;
}

.proximity-open-btn {
  border-radius: 999px !important;
  padding: 6px 15px !important;
  border: 1px solid rgba(217, 169, 92, 0.42) !important;
  background: linear-gradient(180deg, #473020 0%, #2b1b10 100%) !important;
  color: #fde68a !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.3), 0 4px 10px rgba(32, 18, 8, 0.2) !important;
}

/* 底部「26 岁终章礼匣」抽屉与礼匣按钮群雅致统一 */
.finale-capsule-toggle {
  border-radius: 999px !important;
  padding: 9px 22px !important;
  border: 1px solid rgba(180, 128, 56, 0.42) !important;
  background: linear-gradient(180deg, rgba(253, 249, 238, 0.95) 0%, rgba(242, 229, 201, 0.92) 100%) !important;
  backdrop-filter: blur(14px);
  color: #3d2614 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 26px rgba(24, 13, 4, 0.22) !important;
}

.finale-drawer-panel {
  border-radius: 22px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(116, 82, 48, 0.26) !important;
  background: linear-gradient(180deg, rgba(253, 250, 242, 0.95) 0%, rgba(241, 230, 209, 0.93) 100%) !important;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 44px rgba(20, 10, 4, 0.28) !important;
}

.surprise-btn {
  border-radius: 999px !important;
  padding: 8px 16px !important;
  border: 1px solid rgba(116, 82, 48, 0.24) !important;
  background: linear-gradient(180deg, #fffdf8 0%, #f2e7d3 100%) !important;
  color: #3d2717 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 9px rgba(36, 20, 8, 0.08) !important;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease !important;
}

.surprise-btn:hover {
  transform: translateY(-1.5px) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8efe0 100%) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 7px 16px rgba(36, 20, 8, 0.14) !important;
}

.surprise-btn.highlight,
.surprise-btn.boarding-cta {
  background: linear-gradient(180deg, #473020 0%, #2b1b10 100%) !important;
  color: #fde68a !important;
  border-color: rgba(217, 169, 92, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.3), 0 6px 16px rgba(32, 18, 8, 0.22) !important;
}

/* 弹窗右上角关闭圆钮与全息闪卡底部操作圆钮统一柔化 */
.modal-close-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(116, 82, 48, 0.26) !important;
  background: linear-gradient(180deg, #fdfaf2 0%, #eee1ca 100%) !important;
  color: #3f2818 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 12px rgba(28, 16, 6, 0.14) !important;
  transition: transform 0.18s ease, background 0.18s ease !important;
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.05);
  background: #ffffff !important;
}

.niuma-hud-btn,
.efc-ghost-btn {
  border-radius: 999px !important;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease !important;
}

.niuma-hud-btn:hover,
.efc-ghost-btn:hover {
  transform: translateY(-1.5px);
}

/* ============================================================================
   v32.0 专项样式：
   1. 彻底禁用擦雾后弹出的《世界为你折叠了一次》卡片
   2. 造物者工作室「裸眼 3D 手捧翻阅 · 全量手写 Git 提交记录纸质立体书」（同款纸雕刀模棉浆质感！）
   ============================================================================ */
#worldFoldTitleOverlay {
  display: none !important;
}

.paper-modal-card.naked-3d-book-stage {
  max-width: 980px !important;
  width: min(96vw, 980px) !important;
}

/* --- 状态 1：闭合态裸眼 3D 硬壳棉浆立体书（复刻图 5 纸雕礼盒同款刀模白切边与斑点卡纸肌理） --- */
.naked-3d-chronicle-scene {
  min-height: 470px;
  perspective: 1350px;
}

.kirigami-chronicle-closed-rig {
  position: relative;
  width: 268px;
  height: 334px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-26deg);
  transition: transform 0.16s ease-out;
  cursor: pointer;
  margin-top: 18px;
}

.kirigami-chronicle-closed-rig.is-opening {
  transform: rotateX(-16deg) rotateY(-8deg) scale(1.04) !important;
  transition: transform 0.66s cubic-bezier(0.22, 1, 0.36, 1);
}

.kbook-shadow {
  position: absolute;
  width: 310px;
  height: 310px;
  left: -20px;
  top: 60px;
  background: radial-gradient(circle, rgba(20, 10, 4, 0.62) 0%, rgba(20, 10, 4, 0.25) 48%, rgba(0, 0, 0, 0) 74%);
  transform: rotateX(90deg) translateZ(-186px);
  pointer-events: none;
}

/* 封底硬纸板 (z = -22px) */
.kbook-back-board {
  position: absolute;
  inset: 0;
  transform: translateZ(-22px);
  background-color: #8f311f;
  border: 3px solid #ead8b8;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 18px 34px rgba(18, 8, 3, 0.45);
}

/* 右侧 42px 厚棉浆纸叠切口（密密麻麻手工书页层纹！） */
.kbook-page-block-right {
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 42px;
  right: -14px;
  transform: rotateY(90deg) translateZ(7px);
  background:
    repeating-linear-gradient(90deg, #faf3e3 0px, #faf3e3 2px, #dfd0b4 2px, #dfd0b4 3.5px);
  border-top: 2px solid #efe2c8;
  border-bottom: 2px solid #cbb894;
  box-shadow: inset 0 0 10px rgba(92, 58, 28, 0.22);
}

.kbook-page-block-bottom {
  position: absolute;
  left: 6px;
  right: 7px;
  height: 42px;
  bottom: -14px;
  transform: rotateX(-90deg) translateZ(7px);
  background:
    repeating-linear-gradient(0deg, #f7eedb 0px, #f7eedb 2px, #dacaa9 2px, #dacaa9 3.5px);
  box-shadow: inset 0 0 10px rgba(92, 58, 28, 0.24);
}

.kbook-page-block-top {
  position: absolute;
  left: 6px;
  right: 7px;
  height: 42px;
  top: -14px;
  transform: rotateX(90deg) translateZ(7px);
  background:
    repeating-linear-gradient(0deg, #fcf6e8 0px, #fcf6e8 2px, #e3d5b8 2px, #e3d5b8 3.5px);
}

/* 左侧精装立体书脊 (44px 厚 + 烫金竹节书脊楞) */
.kbook-spine-face {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  left: -22px;
  transform: rotateY(-90deg);
  background:
    repeating-linear-gradient(180deg, transparent 0px, transparent 54px, rgba(251, 191, 36, 0.68) 54px, rgba(251, 191, 36, 0.68) 58px),
    linear-gradient(90deg, #6e2214 0%, #9c3522 50%, #6e2214 100%);
  border: 2.5px solid #ead8b8;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.kbook-ribbon-tail {
  position: absolute;
  width: 18px;
  height: 48px;
  left: 44px;
  bottom: -36px;
  background: linear-gradient(180deg, #b91c1c 0%, #ef4444 65%, #991b1b 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  transform: translateZ(4px) rotate(5deg);
  box-shadow: 0 6px 12px rgba(24, 8, 4, 0.35);
}

/* 可沿左书脊 155° 翻开的立体书硬壳封面 */
.kbook-front-pivot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 0% 50% 22px;
  transform: translateZ(22px);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.kbook-front-pivot.cover-open {
  transform: translateZ(22px) rotateY(-154deg);
}

.kbook-front-cover {
  position: absolute;
  inset: 0;
  background-color: #c24931;
  background-image:
    radial-gradient(rgba(255, 246, 224, 0.22) 1px, transparent 0),
    linear-gradient(135deg, #d4583e 0%, #a53722 100%);
  background-size: 8px 8px, 100% 100%;
  border: 3.5px solid #f2e2c6;
  border-radius: 4px 10px 10px 4px;
  box-shadow: inset 0 0 0 3px rgba(120, 42, 22, 0.38), inset 0 0 28px rgba(42, 12, 6, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.kbook-gold-hinge-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 26px;
  background: linear-gradient(90deg, #92400e 0%, #f59e0b 45%, #fef08a 70%, #b45309 100%);
  border-right: 2px solid rgba(120, 53, 15, 0.55);
}

.kbook-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #fef08a 0%, #d97706 100%);
  border: 1.5px solid #78350f;
}
.kbook-corner.kc-tr { top: -2px; right: -2px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.kbook-corner.kc-br { bottom: -2px; right: -2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.kbook-cover-plaque {
  position: relative;
  z-index: 2;
  margin-left: 14px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #fbf3e2;
  border: 2px solid #7c4a24;
  box-shadow: 0 10px 22px rgba(34, 14, 6, 0.34), inset 0 0 0 2px rgba(202, 138, 4, 0.38);
  text-align: center;
  white-space: nowrap;
  transform: translateZ(12px) rotate(-2deg);
}

.kbook-cover-plaque small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #8c542b;
  font-weight: 800;
}

.kbook-cover-plaque strong {
  display: block;
  margin-top: 5px;
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 14.8px;
  color: #3b2010;
}

.kbook-cover-plaque em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: #9a5828;
}

/* --- 状态 2：展开态裸眼 3D 双跨页手写 Git 提交立体书（中缝立片弹起 + 真 3D 翻页动画） --- */
.naked-3d-open-book-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1550px;
  padding-top: 38px;
  user-select: none;
}

.naked-3d-aura.wide {
  width: 780px;
  height: 440px;
}

.popup-chronicle-open-rig {
  position: relative;
  width: min(92vw, 880px);
  height: 486px;
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  transform-style: preserve-3d;
  transform: rotateX(13deg) rotateY(0deg);
  transition: transform 0.16s ease-out;
}

.pcor-drop-shadow {
  position: absolute;
  inset: 16px -14px -22px -14px;
  border-radius: 18px;
  background: radial-gradient(ellipse at center, rgba(16, 8, 3, 0.62) 0%, rgba(16, 8, 3, 0.28) 58%, rgba(0, 0, 0, 0) 78%);
  transform: translateZ(-26px);
  pointer-events: none;
}

/* 中缝弹起的立体书刀模天冠（真 3D translateZ + rotateX 折起与立起！） */
.pcor-popup-crest {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 356px;
  margin-left: -178px;
  z-index: 9;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: translateZ(10px) rotateX(-86deg) scale(0.86);
  opacity: 0.2;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1.18), opacity 0.32s ease;
  pointer-events: none;
}

.pcor-popup-crest.is-risen {
  transform: translateZ(34px) rotateX(-12deg) scale(1);
  opacity: 1;
}

.pcor-crest-back-fin {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 24px;
  height: 36px;
  margin-left: -12px;
  background: #d9c39e;
  border: 1.5px solid #8c6239;
  transform: rotateY(90deg) translateZ(-6px);
}

.pcor-crest-card {
  padding: 7px 16px 8px;
  border-radius: 10px 10px 4px 4px;
  background-color: #c24931;
  background-image:
    radial-gradient(rgba(255, 246, 224, 0.2) 1px, transparent 0),
    linear-gradient(180deg, #d1563d 0%, #9f3520 100%);
  background-size: 7px 7px, 100% 100%;
  border: 2.5px solid #f5e6cc;
  box-shadow: 0 10px 22px rgba(28, 12, 5, 0.38), inset 0 0 0 2px rgba(251, 191, 36, 0.36);
  text-align: center;
}

.pcor-crest-card small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fde68a;
}

.pcor-crest-card strong {
  display: block;
  margin-top: 2px;
  font-family: "Songti SC", "Kaiti SC", serif;
  font-size: 13.5px;
  color: #fffbeb;
}

.pcor-board {
  position: relative;
  background-color: #b4402a;
  background-image: radial-gradient(rgba(255, 246, 224, 0.18) 1px, transparent 0);
  background-size: 8px 8px;
  border: 3px solid #f0dfc2;
  padding: 8px;
  transform-style: preserve-3d;
  box-shadow: 0 14px 28px rgba(24, 10, 4, 0.35);
}

.pcor-board-left {
  border-radius: 10px 2px 2px 10px;
  transform-origin: right center;
  transform: rotateY(5deg);
}

.pcor-board-right {
  border-radius: 2px 10px 10px 2px;
  transform-origin: left center;
  transform: rotateY(-5deg);
}

/* 厚厚一摞错落棉浆书页阶梯边 */
.pcor-page-stack {
  position: absolute;
  top: 10px;
  bottom: 10px;
  pointer-events: none;
}

.pcor-page-stack.stack-left {
  left: 3px;
  right: 0;
  border-left: 6px solid #dfd0b3;
  border-bottom: 6px solid #d5c3a1;
  border-radius: 6px 0 0 6px;
}

.pcor-page-stack.stack-right {
  left: 0;
  right: 3px;
  border-right: 6px solid #dfd0b3;
  border-bottom: 6px solid #d5c3a1;
  border-radius: 0 6px 6px 0;
}

.pcor-center-spine {
  position: relative;
  background: linear-gradient(90deg, #5c1c10 0%, #993320 50%, #5c1c10 100%);
  border-top: 3px solid #f0dfc2;
  border-bottom: 3px solid #f0dfc2;
  box-shadow: inset 0 0 12px rgba(20, 6, 2, 0.65);
  transform: translateZ(-2px);
}

.pcor-silk-ribbon {
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: -24px;
  width: 8px;
  margin-left: -4px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 92%, 0 100%);
  box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.35);
}

/* 单页棉浆手稿内页：横格水纹 + 朱砂栏线 + 密密麻麻钢笔手写 Git 记录 */
.pcor-cotton-sheet {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 13px 16px 11px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transform: translateZ(8px);
  background-color: #f8f0de;
  background-image:
    linear-gradient(90deg, transparent 0px, transparent 13px, rgba(185, 74, 56, 0.22) 13px, rgba(185, 74, 56, 0.22) 14.5px, transparent 14.5px),
    repeating-linear-gradient(180deg, transparent 0px, transparent 22px, rgba(154, 118, 76, 0.16) 22px, rgba(154, 118, 76, 0.16) 23px);
  border: 1px solid rgba(146, 106, 62, 0.35);
}

.pcor-cotton-sheet.sheet-left {
  border-radius: 5px 0 0 5px;
  box-shadow: inset -18px 0 24px -12px rgba(72, 42, 18, 0.26), -2px 3px 8px rgba(42, 22, 8, 0.14);
}

.pcor-cotton-sheet.sheet-right {
  border-radius: 0 5px 5px 0;
  box-shadow: inset 18px 0 24px -12px rgba(72, 42, 18, 0.26), 2px 3px 8px rgba(42, 22, 8, 0.14);
}

.git-ms-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Georgia", "Songti SC", serif;
  font-size: 10.5px;
  color: #8b5e34;
  border-bottom: 1px dashed rgba(139, 94, 52, 0.35);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.git-ms-entries {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 5px;
}

.git-ms-entry {
  padding: 4px 6px 5px;
  border-left: 2.2px solid rgba(180, 83, 9, 0.42);
  background: rgba(255, 252, 244, 0.46);
  border-radius: 0 5px 5px 0;
  transform: rotate(var(--ink-tilt, 0deg));
}

.git-ms-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.git-ms-seq {
  font-family: "Bradley Hand", "HanziPen SC", "Kaiti SC", cursive;
  font-weight: 900;
  font-size: 13px;
  color: #9a3412;
}

.git-ms-sha {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #1e3a5f;
  background: rgba(186, 214, 242, 0.32);
  padding: 0.5px 5px;
  border-radius: 4px;
  border: 1px solid rgba(30, 58, 95, 0.18);
}

.git-ms-time {
  font-family: "Bradley Hand", "Kaiti SC", serif;
  font-size: 11px;
  color: #785536;
  margin-left: auto;
}

.git-ms-msg {
  margin: 3px 0 0;
  font-family: "HanziPen SC", "Xingkai SC", "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: 13.2px;
  line-height: 1.38;
  color: #2c1a0e;
  letter-spacing: 0.015em;
}

.git-ms-page-foot {
  font-family: "Georgia", "Kaiti SC", serif;
  font-size: 9.5px;
  text-align: center;
  color: rgba(120, 82, 46, 0.72);
  padding-top: 3px;
}

.pcor-dogear-hint {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #7c2d12;
  background: rgba(254, 243, 199, 0.92);
  border: 1px solid rgba(180, 83, 9, 0.35);
}

/* 真 3D 双面棉浆卡纸翻页层 */
.pcor-turning-leaf {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(50% + 11px);
  width: calc(50% - 19px);
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: translateZ(14px) rotateY(0deg);
  z-index: 15;
  pointer-events: none;
}

.pcor-turning-leaf.is-flipped-fwd {
  transform: translateZ(14px) rotateY(-178deg);
  transition: transform 0.55s cubic-bezier(0.32, 0.04, 0.24, 1);
}

.pcor-turning-leaf.flip-backward {
  transform: translateZ(14px) rotateY(-178deg);
}

.pcor-turning-leaf.flip-backward.is-flipped-back {
  transform: translateZ(14px) rotateY(0deg);
  transition: transform 0.55s cubic-bezier(0.32, 0.04, 0.24, 1);
}

.ptl-face {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 13px 16px 11px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: #f8f0de;
  border: 1px solid rgba(146, 106, 62, 0.42);
  box-shadow: 0 12px 28px rgba(24, 10, 4, 0.32);
}

.ptl-back {
  transform: rotateY(180deg);
  background-color: #f5ead4;
}

.pcor-controls-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(252, 247, 236, 0.94);
  border: 1.5px solid rgba(120, 78, 42, 0.34);
  box-shadow: 0 10px 26px rgba(20, 10, 4, 0.38);
}

.pcor-spread-indicator {
  font-size: 12.5px;
  font-weight: 800;
  color: #4a2e1b;
  padding: 0 6px;
}

.pcor-controls-bar button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* === v33.0 全局统一取消顶部居中互动提示条（#proximityPill），全场景保留直点 3D 物件与按键交互 === */
#proximityPill,
.proximity-pill {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* === v33.0 纸雕立体书风「3D 摇柄扭蛋机 + 双色折纸胶囊滚出弹开剧场」 === */
.paper-sheet-modal.is-gacha-theater {
  max-width: 820px;
  padding: 20px 24px 20px;
}

.paper-sheet-modal.is-passport-sheet {
  max-width: 880px;
  padding: 16px 22px 16px;
}

.gacha-3d-theater-wrap {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin: 10px 0 12px;
}

@media (max-width: 720px) {
  .gacha-3d-theater-wrap {
    grid-template-columns: 1fr;
  }
}

.gacha-machine-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(254, 243, 199, 0.72), rgba(244, 233, 212, 0.96)),
    var(--paper-grain);
  border: 2px solid #7c5333;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    0 5px 0 #5a3820,
    0 14px 28px rgba(38, 22, 10, 0.16);
  perspective: 900px;
}

.kirigami-gacha-machine {
  position: relative;
  width: 174px;
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-8deg);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.kirigami-gacha-machine.is-rumbling {
  animation: kgmMachineRumble 0.48s ease-in-out;
}

@keyframes kgmMachineRumble {
  0%, 100% { transform: rotateX(4deg) rotateY(-8deg) translate3d(0, 0, 0); }
  20% { transform: rotateX(6deg) rotateY(-5deg) translate3d(-3px, -2px, 6px) rotateZ(-1.6deg); }
  45% { transform: rotateX(3deg) rotateY(-11deg) translate3d(3px, 1px, 6px) rotateZ(1.8deg); }
  70% { transform: rotateX(5deg) rotateY(-6deg) translate3d(-2px, -1px, 4px) rotateZ(-1.2deg); }
}

.kgm-roof-cap {
  width: 150px;
  height: 22px;
  margin: 0 auto -4px;
  border-radius: 16px 16px 5px 5px;
  background: linear-gradient(180deg, #dc5638, #b83b22);
  border: 2.5px solid #4a2416;
  box-shadow: inset 0 2px 0 rgba(255, 232, 214, 0.55), 0 3px 0 #4a2416;
  position: relative;
  z-index: 3;
}

.kgm-roof-finial {
  position: absolute;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #fde047, #d97706);
  border: 2px solid #4a2416;
}

.kgm-globe-window {
  position: relative;
  width: 158px;
  height: 118px;
  margin: 0 auto;
  border-radius: 22px 22px 14px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(254, 249, 235, 0.34) 48%, rgba(226, 232, 240, 0.42) 100%);
  border: 3px solid #5a3820;
  box-shadow:
    inset 0 6px 14px rgba(255, 255, 255, 0.8),
    inset 0 -10px 18px rgba(90, 56, 32, 0.16);
  overflow: hidden;
  z-index: 2;
}

.kgm-globe-gloss {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 38px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
  transform: rotate(-14deg);
  pointer-events: none;
  z-index: 4;
}

.kgm-inner-ball {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #3f2615;
  background: linear-gradient(180deg, var(--ball-c, #f59e0b) 0% 50%, #fffaf0 50% 100%);
  box-shadow: inset -3px -3px 0 rgba(47, 30, 18, 0.16), 0 3px 6px rgba(35, 20, 8, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kgm-inner-ball::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 50%;
  height: 2.5px;
  transform: translateY(-50%);
  background: #3f2615;
}

.kirigami-gacha-machine.is-rumbling .kgm-inner-ball {
  animation: kgmBallJostle 0.46s ease-in-out;
}

@keyframes kgmBallJostle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(var(--jx, 8px), -14px) rotate(26deg); }
  65% { transform: translate(calc(var(--jx, 8px) * -0.7), -5px) rotate(-20deg); }
}

.kgm-body-pedestal {
  position: relative;
  width: 168px;
  margin: -5px auto 0;
  padding: 12px 10px 12px;
  box-sizing: border-box;
  border-radius: 10px 10px 16px 16px;
  background:
    var(--paper-grain),
    linear-gradient(180deg, #d95336 0%, #b93c22 100%);
  border: 3px solid #4a2416;
  box-shadow:
    inset 0 2px 0 rgba(255, 226, 205, 0.45),
    0 5px 0 #3d1d11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.kgm-nameplate {
  padding: 2px 10px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1.5px solid #5a3820;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #5a2d14;
}

.kgm-crank-dial {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fef9c3 0%, #eab308 56%, #a16207 100%);
  border: 2.5px solid #3f220f;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.72),
    0 4px 0 #422006,
    0 8px 16px rgba(28, 14, 4, 0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.kgm-crank-dial:hover {
  filter: brightness(1.06);
  transform: scale(1.05);
}

.kgm-crank-bar {
  position: relative;
  width: 44px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffbeb, #f59e0b);
  border: 2px solid #3f220f;
  box-shadow: 0 2px 0 #422006;
  transition: transform 0.54s cubic-bezier(0.34, 1.38, 0.64, 1);
}

.kgm-crank-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fde047;
  border: 2px solid #3f220f;
}

.kgm-chute-slot {
  position: relative;
  width: 68px;
  height: 30px;
  border-radius: 8px 8px 12px 12px;
  background: #24130b;
  border: 2px solid #5a331d;
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.68);
  overflow: visible;
}

.kgm-chute-flap {
  position: absolute;
  inset: 2px 4px 5px;
  border-radius: 5px 5px 8px 8px;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border: 1.5px solid #475569;
  transform-origin: top center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.kirigami-gacha-machine.is-dispensing .kgm-chute-flap {
  transform: perspective(220px) rotateX(68deg);
}

.kgm-crank-hint {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #6b4426;
  text-align: center;
}

/* 右侧：滚出双色折纸扭蛋壳 + 咔嗒弹开揭晓典藏卡 + 6 格绒布收藏匣 */
.gacha-reveal-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.gacha-capsule-stage {
  position: relative;
  min-height: 186px;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 26% 50%, rgba(254, 240, 138, 0.52), rgba(255, 251, 235, 0.94) 68%),
    var(--paper-grain);
  border: 2px solid #caa472;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    0 8px 22px rgba(47, 30, 18, 0.08);
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

/* 3D 双半球折纸扭蛋胶囊本体 */
.gacha-3d-capsule-actor {
  position: relative;
  width: 96px;
  height: 118px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  perspective: 600px;
}

.gacha-3d-capsule-actor.phase-rolling {
  animation: gachaCapsuleRollIn 0.52s cubic-bezier(0.22, 1.28, 0.36, 1);
}

@keyframes gachaCapsuleRollIn {
  0% { transform: translate3d(-95px, -18px, 0) rotate(-220deg) scale(0.55); opacity: 0; }
  65% { transform: translate3d(8px, 4px, 0) rotate(18deg) scale(1.06); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
}

.gca-aura-burst {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.82) 0%, rgba(251, 191, 36, 0.22) 55%, rgba(251, 191, 36, 0) 74%);
  transform: scale(0.25);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.gacha-3d-capsule-actor.phase-popped .gca-aura-burst {
  transform: scale(1.28);
  opacity: 1;
}

.gca-shell-top,
.gca-shell-bottom {
  position: absolute;
  left: 50%;
  width: 76px;
  height: 39px;
  margin-left: -38px;
  box-sizing: border-box;
  border: 2.5px solid #3f2412;
  transition: transform 0.48s cubic-bezier(0.22, 1.35, 0.36, 1), opacity 0.4s ease;
  z-index: 3;
}

.gca-shell-top {
  top: 20px;
  border-radius: 42px 42px 6px 6px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.65) 0%, transparent 38%),
    linear-gradient(180deg, var(--cap-col, #f59e0b), color-mix(in srgb, var(--cap-col, #f59e0b) 78%, #3b1d0e));
  box-shadow: inset 0 -3px 0 rgba(45, 24, 10, 0.22), 0 4px 10px rgba(36, 18, 6, 0.18);
  transform-origin: left bottom;
}

.gca-shell-bottom {
  bottom: 20px;
  border-radius: 6px 6px 42px 42px;
  background:
    var(--paper-grain),
    linear-gradient(180deg, #fffdf8 0%, #efe4ce 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.85), 0 8px 14px rgba(36, 18, 6, 0.2);
  transform-origin: right top;
}

.gca-shell-band {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #fde047, #d97706, #fef08a);
  border: 2px solid #3f2412;
  z-index: 4;
  transition: transform 0.32s ease, opacity 0.28s ease;
}

.gacha-3d-capsule-actor.phase-popped .gca-shell-top {
  transform: translate3d(-16px, -36px, 14px) rotate(-36deg);
}

.gacha-3d-capsule-actor.phase-popped .gca-shell-bottom {
  transform: translate3d(14px, 34px, 8px) rotate(24deg);
}

.gacha-3d-capsule-actor.phase-popped .gca-shell-band {
  transform: translate(-50%, -50%) scale(1.22);
  opacity: 0;
}

.gca-prize-totem {
  position: relative;
  z-index: 5;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffffff, #fef3c7);
  border: 2.5px solid var(--cap-col, #f59e0b);
  box-shadow: 0 8px 20px rgba(45, 24, 10, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transform: scale(0.32);
  opacity: 0;
  transition: transform 0.46s cubic-bezier(0.22, 1.4, 0.36, 1) 0.06s, opacity 0.32s ease 0.06s;
}

.gacha-3d-capsule-actor.phase-popped .gca-prize-totem {
  transform: scale(1);
  opacity: 1;
}

.gacha-card-copy {
  flex: 1;
  min-width: 0;
  transition: opacity 0.32s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.gacha-card-copy.is-awaiting-pop {
  opacity: 0.38;
  transform: translateY(6px);
}

.gacha-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .gacha-cabinet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gacha-cabinet-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1.5px solid #dfd3be;
  background: #f6f0e4;
  opacity: 0.56;
  font-size: 11.8px;
  min-width: 0;
}

.gacha-cabinet-slot.is-owned {
  background: #fffdf8;
  border-color: #cfb692;
  opacity: 1;
}

.gacha-cabinet-slot.is-active {
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(47, 30, 18, 0.1);
}

.gacha-cabinet-slot .gcs-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
