/* ===== 青青狮的笔记 · 国风扁平插画风 ===== */
:root {
  --zhushi: #8C3B2E;
  --tuhong: #B5533C;
  --shiqing: #2F5D62;
  --shilv: #7FA693;
  --mibai: #F5EFE3;
  --jin: #D4A849;
  --ink: #3a2a22;
  --card: #FFFBF2;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 大屏(平板/桌面)两侧露出的衬底:深色渐变,比纯黑更柔和 */
html {
  background: #171210;
  background: radial-gradient(ellipse at 50% 26%, #261c15 0%, #171210 68%) fixed;
}
html, body { height: 100%; }
body {
  background: #171210;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  display: flex; justify-content: center;
}
#app {
  width: 100%; max-width: 480px; min-width: 0; min-height: 100vh; min-height: 100dvh;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23D4A849' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M28 8l6 6-6 6-6-6z'/%3E%3Cpath d='M28 36l6 6-6 6-6-6z'/%3E%3Cpath d='M8 28l6 6'/%3E%3Cpath d='M48 28l-6 6'/%3E%3C/g%3E%3C/svg%3E") repeat,
    radial-gradient(ellipse at 50% 0%, #fbf6ea, var(--mibai) 60%, #efe6d2);
  position: relative; overflow-x: hidden; overflow-y: auto;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  animation: pageIn .45s ease both;
  transition: padding-top .32s ease;
}
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== 顶部栏（固定悬浮，默认收起，向上滚动露出，静止后自动隐藏） ===== */
.topbar {
  position: fixed; top: 0; left: 50%; z-index: 40;
  width: 100%; max-width: 480px;
  transform: translate(-50%, 0);
  transition: transform .32s ease;
  display: flex; align-items: center; gap: 10px;
  /* 顶部留出刘海/状态栏安全区(微信内为 0,不影响) */
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='48' viewBox='0 0 140 48'%3E%3Cg fill='none' stroke='%23D4A849' stroke-opacity='.28' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 36c-2-9 4-16 13-16 3.4 0 6.6 1.1 9 3.2C28.4 16.6 34.6 12 42 12c10 0 18 8 18 18'/%3E%3Cpath d='M76 10a8.5 8.5 0 1 1-.1 17 8.5 8.5 0 0 1 .1-17z'/%3E%3Cpath d='M74 10a6.5 6.5 0 1 0 13 0'/%3E%3Cpath d='M96 32c4.5-3.4 11-3.4 15.5 0'/%3E%3Cpath d='M104 38h26'/%3E%3Cpath d='M118 14c3-2.4 7.4-2.4 10.4 0'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / auto 100%,
    linear-gradient(180deg, #96422f, var(--zhushi) 55%, #7c3226);
  color: var(--mibai);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  border-bottom: 2px solid rgba(212,168,73,.65);
}
.topbar.tb-hide { transform: translate(-50%, -112%); }
.topbar .back {
  width: 34px; height: 34px; border-radius: 50%;
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.15); color: var(--mibai);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none; flex: none;
  transition: transform .12s ease, background .12s ease;
}
.topbar .back:active { transform: scale(.88); background: rgba(255,255,255,.3); }
.topbar .tb-title { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frag-mini { display: flex; gap: 3px; flex: none; }
.frag-mini i {
  width: 10px; height: 10px; transform: rotate(45deg);
  border: 1.5px solid rgba(245,239,227,.5); border-radius: 2px;
}
.frag-mini i.lit { background: var(--jin); border-color: var(--jin); box-shadow: 0 0 6px var(--jin); }

/* ===== 通用组件 ===== */
.btn {
  display: inline-block; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  background: var(--tuhong); color: var(--mibai);
  font-size: 17px; font-weight: 600; letter-spacing: 2px;
  padding: 13px 36px; border-radius: 999px;
  box-shadow: 0 4px 0 #8a3d2b, 0 6px 14px rgba(0,0,0,.25);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  text-decoration: none; text-align: center;
  font-family: inherit;
}
.btn:active { transform: translateY(2px) scale(.96); box-shadow: 0 1px 0 #8a3d2b, 0 2px 6px rgba(0,0,0,.18); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--zhushi); border: 2px solid var(--zhushi); box-shadow: none; }
.btn.ghost:active { transform: scale(.94); filter: brightness(1.05); }
.btn.jin { background: var(--jin); color: #4a3410; box-shadow: 0 4px 0 #a9822f, 0 6px 14px rgba(0,0,0,.25); }
.btn.qing { background: var(--shiqing); box-shadow: 0 4px 0 #21464a, 0 6px 14px rgba(0,0,0,.25); }
.btn:disabled { opacity: .5; pointer-events: none; }

.card {
  background: var(--card); border-radius: 16px;
  padding: 16px; box-shadow: 0 3px 10px rgba(58,42,34,.12);
}
.pop { animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.shake { animation: shake .35s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* 打字机 */
.type-caret::after { content: "▍"; color: var(--tuhong); animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 吉祥物 */
.mascot-fixed {
  position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  right: max(12px, calc(50% - 240px + 12px));
  width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--jin);
  box-shadow: 0 4px 12px rgba(0,0,0,.35), 0 0 12px rgba(212,168,73,.5);
  pointer-events: none;
  animation: mascotBob 2.6s ease-in-out infinite;
}
@keyframes mascotBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* 可点击吉祥物：提示气泡 */
.mascot-wrap {
  position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  right: max(12px, calc(50% - 240px + 12px));
  width: 68px; height: 68px;
}
.mascot-wrap .mascot-img {
  display: block; width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--jin);
  box-shadow: 0 4px 12px rgba(0,0,0,.35), 0 0 12px rgba(212,168,73,.5);
  animation: mascotBob 2.6s ease-in-out infinite;
  cursor: pointer;
}
.mascot-badge {
  position: absolute; top: -4px; right: -4px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tuhong); color: #fff; font-style: normal;
  font-size: 14px; font-weight: 800; line-height: 20px; text-align: center;
  border: 2px solid #fffdf6; box-shadow: 0 2px 5px rgba(0,0,0,.3);
  animation: mascotBob 2.6s ease-in-out infinite;
  cursor: pointer;
}
.mascot-bubble {
  position: absolute; bottom: calc(100% + 12px); right: 0; width: 208px;
  background: rgba(255,251,242,.98); border: 1.5px solid var(--jin);
  border-radius: 14px 14px 4px 14px; padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(58,42,34,.3);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: bottom right;
  pointer-events: none; transition: all .22s cubic-bezier(.2,1.4,.4,1);
}
.mascot-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.mascot-bubble .mb-text { font-size: 12.5px; line-height: 1.7; color: var(--ink); }
.mascot-bubble .mb-text::before { content: "💡 "; }
.mascot-bubble .mb-link {
  display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--tuhong); text-decoration: none;
}
.mascot-bubble .mb-link:active { transform: scale(.95); }

/* 彩带粒子 */
.confetti-piece {
  position: fixed; top: -12px; z-index: 99; pointer-events: none;
  width: 9px; height: 14px; border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(720deg); opacity: .7; }
}

/* ===== 覆盖弹窗 ===== */
.overlay {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 60;
  width: 100%; max-width: 480px;
  background: rgba(23,14,10,.78);
  display: flex; align-items: center; justify-content: center;
  animation: ovIn .3s both;
}
@keyframes ovIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 文物照片查看器：点击放大 / 缩放拖动 */
.lightbox {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 90;
  width: 100%; max-width: 480px; transform: translateX(-50%);
  background: rgba(15,10,8,.95);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none;
  animation: lbIn .25s both;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92%; max-height: 80%; user-select: none;
  transition: transform .12s ease-out;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.6));
}
.lightbox.zoomed img { transition: none; }
.lb-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2;
  overflow: hidden;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(245,239,227,.16); color: var(--mibai);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; border: 1px solid rgba(245,239,227,.3);
}
.lb-hint {
  position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0;
  text-align: center; color: rgba(245,239,227,.55);
  font-size: 11.5px; letter-spacing: 1px; pointer-events: none;
}
.overlay-inner {
  width: min(400px, 88%);
  background: var(--mibai); border-radius: 20px;
  padding: 28px 22px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  position: relative;
}
.overlay-inner h2 { color: var(--zhushi); font-size: 22px; margin-bottom: 8px; letter-spacing: 2px; }
.overlay-inner p { font-size: 14px; line-height: 1.7; color: #6b5347; margin-bottom: 16px; }
.overlay-inner .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 碎片飞入 */
.shard {
  width: 46px; height: 46px; margin: 6px auto 14px;
  background: linear-gradient(135deg, var(--jin), #f0d089 45%, var(--shilv));
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  box-shadow: 0 0 24px var(--jin);
  animation: shardFly 1s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes shardFly {
  0% { transform: translateY(160px) scale(.2) rotate(-180deg); opacity: 0; }
  60% { transform: translateY(-10px) scale(1.2) rotate(10deg); opacity: 1; }
  100% { transform: none; }
}

/* ===== 序章 / 首页 全屏图 ===== */
.page-col { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.fullbg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.fullbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,10,.25), rgba(20,12,10,.05) 35%, rgba(20,12,10,.82) 78%); }
.screen-content { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 22px calc(40px + env(safe-area-inset-bottom, 0px)); }
.screen-title { color: var(--mibai); font-size: 34px; letter-spacing: 6px; font-weight: 700; text-shadow: 0 3px 12px rgba(0,0,0,.6); margin-bottom: 10px; }
.screen-sub { color: #e8d9b8; font-size: 14px; line-height: 1.9; margin-bottom: 22px; text-shadow: 0 2px 6px rgba(0,0,0,.6); min-height: 3.4em; }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ===== 首页 ===== */
.rule-list { text-align: left; background: rgba(245,239,227,.94); border-radius: 16px; padding: 14px 18px; margin-bottom: 20px; }
.rule-list li { font-size: 13.5px; line-height: 2; color: var(--ink); list-style: none; }
.rule-list li b { color: var(--tuhong); }

/* ===== 地图页 ===== */
.map-head { padding: 18px 16px 6px; text-align: center; }
.map-title { font-size: 24px; color: var(--zhushi); letter-spacing: 4px; font-weight: 700; user-select: none; }
.map-sub { font-size: 12.5px; color: #8a7365; margin-top: 4px; }
.frag-bar { display: flex; gap: 10px; justify-content: center; padding: 14px 0 6px; }
.frag-slot {
  width: 34px; height: 34px;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  background: #dccfae;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.frag-slot.lit { background: linear-gradient(135deg, var(--jin), #f0d089 50%, var(--shilv)); box-shadow: 0 0 14px rgba(212,168,73,.8); animation: pop .5s both; }
.level-list { padding: 10px 16px calc(90px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.level-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: 18px; padding: 14px;
  box-shadow: 0 3px 10px rgba(58,42,34,.12);
  text-decoration: none; color: var(--ink);
  transition: transform .1s;
}
.level-card:active { transform: scale(.97); }
.level-card.locked { opacity: .55; pointer-events: none; filter: grayscale(.6); }
.level-icon {
  width: 58px; height: 58px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--shiqing); color: var(--mibai);
}
.level-card.done .level-icon { background: var(--shilv); }
.level-info { flex: 1; }
.level-info h3 { font-size: 16px; color: var(--zhushi); letter-spacing: 1px; }
.level-info p { font-size: 12px; color: #8a7365; margin-top: 3px; }
.level-badge { flex: none; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; letter-spacing: 1px; }
.level-badge.b-open { background: rgba(212,168,73,.2); color: #a9822f; border: 1px solid var(--jin); }
.level-badge.b-done { background: rgba(127,166,147,.2); color: var(--shiqing); border: 1px solid var(--shilv); }
.level-badge.b-lock { background: rgba(0,0,0,.06); color: #999; }
.finale-banner {
  margin: 4px 16px 0; padding: 16px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, var(--zhushi), var(--tuhong)); color: var(--mibai);
  box-shadow: 0 6px 18px rgba(140,59,46,.4);
  animation: pop .5s both;
}
.finale-banner h3 { letter-spacing: 2px; margin-bottom: 4px; }
.finale-banner p { font-size: 12.5px; opacity: .85; margin-bottom: 12px; }

/* 步骤地图：寻宝手账风 */
#app.map-app {
  background:
    radial-gradient(ellipse 90% 22% at 50% 0%, rgba(212,168,73,.20), transparent 70%),
    radial-gradient(ellipse 70% 18% at 85% 55%, rgba(127,166,147,.14), transparent 70%),
    radial-gradient(ellipse 80% 24% at 12% 88%, rgba(181,83,60,.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23D4A849' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M28 8l6 6-6 6-6-6z'/%3E%3Cpath d='M28 36l6 6-6 6-6-6z'/%3E%3Cpath d='M8 28l6 6'/%3E%3Cpath d='M48 28l-6 6'/%3E%3C/g%3E%3C/svg%3E") repeat,
    linear-gradient(180deg, #faf3e3 0%, #f3ead2 55%, #eee2c4 100%);
}
.map-path { position: relative; margin: 4px 0 calc(90px + env(safe-area-inset-bottom, 0px)); }
.map-path svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

/* 关卡节点 */
.map-node {
  position: absolute; width: 120px; margin-left: -60px; transform: translateY(-50%);
  text-decoration: none; text-align: center; z-index: 2;
  transition: transform .12s;
}
.map-node:active { transform: translateY(-50%) scale(.94); }
.node-ring {
  position: relative; display: block; width: 82px; height: 82px; margin: 0 auto;
  border-radius: 50%; padding: 5px;
  background: conic-gradient(from 210deg, var(--nc, #b9ac8d), rgba(255,255,255,.6) 40%, var(--nc, #b9ac8d) 62%, rgba(255,255,255,.35) 82%, var(--nc, #b9ac8d));
  box-shadow: 0 6px 16px rgba(58,42,34,.30), inset 0 1px 2px rgba(255,255,255,.7);
}
.node-icon {
  width: 100%; height: 100%; border-radius: 50%;
  background: #fffdf6; border: 2px solid rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 6px rgba(58,42,34,.14);
}
.node-icon .relic-ic { width: 46px; height: 46px; object-fit: contain; }
.node-num {
  position: absolute; top: -6px; left: -6px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--nc, #a99c80); color: #fff;
  font-style: normal; font-size: 13px; font-weight: 700; line-height: 22px;
  border: 2px solid #fffdf6; box-shadow: 0 2px 5px rgba(58,42,34,.35);
}
.node-tag {
  position: absolute; bottom: -4px; right: -4px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 12px; color: #fff; background: var(--shiqing);
  border: 2px solid #fffdf6; box-shadow: 0 2px 5px rgba(58,42,34,.35);
}
.node-card {
  display: inline-block; margin-top: 9px; padding: 5px 12px 6px;
  background: rgba(255,251,242,.94); border-radius: 12px;
  border: 1px solid rgba(212,168,73,.5);
  box-shadow: 0 3px 8px rgba(58,42,34,.16);
  line-height: 1.4;
}
.node-card b { display: block; font-size: 12px; color: var(--zhushi); letter-spacing: .5px; white-space: nowrap; }
.node-card i { display: block; font-style: normal; font-size: 10.5px; color: #8a7365; white-space: nowrap; }
.map-node.done .node-tag { background: var(--shilv); }
.map-node.open .node-tag { background: var(--tuhong); animation: blink 1.2s infinite; }
.map-node.open .node-ring { animation: nodePulse 1.7s ease-out infinite; }
@keyframes nodePulse {
  0% { box-shadow: 0 0 0 0 rgba(212,168,73,.6), 0 6px 16px rgba(58,42,34,.30); }
  70% { box-shadow: 0 0 0 14px rgba(212,168,73,0), 0 6px 16px rgba(58,42,34,.30); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,73,0), 0 6px 16px rgba(58,42,34,.30); }
}
.map-node.locked { filter: grayscale(1); opacity: .6; pointer-events: none; }
.map-node.locked .node-ring { box-shadow: 0 4px 10px rgba(58,42,34,.18); }
.map-node.locked .node-tag { background: #a99c80; }

/* 当前关卡旁的吉祥物引导 */
.map-guide {
  position: absolute; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none; animation: guideBob 2s ease-in-out infinite alternate;
}
.map-guide img {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--jin); background: #fffdf6;
  box-shadow: 0 4px 10px rgba(58,42,34,.3);
}
.map-guide span {
  font-size: 10.5px; color: var(--zhushi); font-weight: 700; letter-spacing: 1px;
  background: rgba(255,251,242,.95); border: 1px solid rgba(212,168,73,.55);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 5px rgba(58,42,34,.18);
}
@keyframes guideBob { from { margin-top: 0; } to { margin-top: -8px; } }

/* ===== 过场页 ===== */
.story-stage { position: absolute; inset: 0; overflow: hidden; }
.story-stage img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }
.story-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,12,10,.85) 82%); pointer-events: none; }
.story-dialog { position: relative; z-index: 2; margin-top: auto; padding-bottom: calc(12vh + env(safe-area-inset-bottom, 0px)); }
.dialog-box {
  background: rgba(245,239,227,.96); border-radius: 18px 18px 18px 4px;
  padding: 16px 18px; margin-bottom: 16px;
  border: 2px solid var(--jin);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.dialog-box .who { font-size: 12px; color: var(--tuhong); font-weight: 700; letter-spacing: 2px; margin-bottom: 6px; }
.dialog-box .text { font-size: 15px; line-height: 1.9; min-height: 5.6em; }

/* ===== 游戏页通用 ===== */
.game-wrap { padding: 14px 14px calc(90px + env(safe-area-inset-bottom, 0px)); }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hud-item {
  background: #fffdf6; border-radius: 999px; padding: 8px 14px;
  font-size: 13px; color: var(--shiqing); font-weight: 600;
  border: 1px solid #ead9b8; box-shadow: 0 2px 8px rgba(58,42,34,.12);
  white-space: nowrap;
}
.hud-item b { color: var(--tuhong); font-size: 16px; }
.timer-bar { flex: 1; height: 12px; border-radius: 999px; background: rgba(0,0,0,.1); overflow: hidden; box-shadow: inset 0 1px 3px rgba(58,42,34,.2); }
.timer-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--shilv), var(--jin)); transition: width .3s linear; }
.game-tip {
  position: relative; text-align: center; font-size: 12.5px; color: #f3e5c3;
  margin: 14px 4px 0; padding: 11px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #8a5f36, #6d4726);
  border: 1px solid #4e3319;
  box-shadow: inset 0 1px 0 rgba(255,235,200,.28), 0 3px 8px rgba(58,42,34,.28);
  letter-spacing: .5px;
}
.game-tip::before, .game-tip::after { content: "◆"; color: var(--jin); font-size: 9px; margin: 0 8px; vertical-align: 2px; }

/* g1 找不同 */
.g1-panels { display: flex; flex-direction: column; gap: 14px; }
.g1-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; background: var(--card); padding: 12px; border-radius: 18px; border: 1.5px solid rgba(212,168,73,.45); box-shadow: 0 4px 14px rgba(58,42,34,.16); position: relative; }
.g1-panel .tag { position: absolute; top: -10px; left: 12px; background: var(--shiqing); color: var(--mibai); font-size: 11px; padding: 3px 12px; border-radius: 999px; letter-spacing: 2px; border: 1px solid rgba(212,168,73,.6); box-shadow: 0 2px 6px rgba(47,93,98,.4); }
.g1-cell { aspect-ratio: 1; min-width: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 8vw, 38px); background: #fffdf6; border: 1px solid #efe4c8; border-radius: 12px; box-shadow: 0 1px 3px rgba(58,42,34,.1), inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer; user-select: none; transition: transform .08s, box-shadow .15s; }
.g1-cell:active { transform: scale(.9); }
/* g1 找不同: 高度自适应布局,微信短屏免滚动;图标占满格子 */
.g1-fit { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.g1-fit .hud { flex: none; }
.g1-fit .g1-panels { flex: 1 1 auto; min-height: 0; }
.g1-fit .g1-panel { flex: 1 1 0; min-height: 0; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.g1-fit .g1-cell { aspect-ratio: auto; min-height: 0; }
.g1-fit .game-tip { flex: none; }
.g1-cell .relic-ic { width: 100%; height: 100%; max-width: none; vertical-align: 0; object-fit: contain; border-radius: 10px; }
.g1-cell.found { background: #fdf3d7; box-shadow: 0 0 0 3px var(--jin), 0 0 18px rgba(212,168,73,.9); animation: pop .35s; }
.g1-cell.wrong { animation: shake .3s; background: #f6d9d2; }

/* g2 连连看 */
.g2-board-wrap { position: relative; background: var(--card); border-radius: 18px; padding: 10px; border: 1.5px solid rgba(212,168,73,.45); box-shadow: 0 4px 14px rgba(58,42,34,.16); }
.g2-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.g2-cell { aspect-ratio: 1; min-width: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(20px, 6.5vw, 30px); background: #fffdf6; border: 1px solid #efe4c8; border-radius: 10px; box-shadow: 0 1px 3px rgba(58,42,34,.1); cursor: pointer; user-select: none; transition: transform .1s, box-shadow .15s, background .15s; }
.g2-cell .relic-ic { width: 94%; height: 94%; max-width: none; vertical-align: 0; }
.g2-cell.sel { background: #fdf3d7; box-shadow: 0 0 0 3px var(--jin), 0 0 14px rgba(212,168,73,.8); transform: scale(1.06); }
.g2-cell.hint { animation: hintPulse .6s 3; }
@keyframes hintPulse { 50% { background: #fdf3d7; box-shadow: 0 0 0 3px var(--tuhong), 0 0 14px rgba(181,83,60,.8); } }
.g2-cell.vanish { animation: vanish .3s both; }
@keyframes vanish { to { transform: scale(0); opacity: 0; } }
.g2-svg { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

/* g4 消消乐（6x6 大格子，文物图案看得清） */
.g3-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; background: #f3ead2; padding: 10px; border-radius: 18px; border: 1.5px solid rgba(212,168,73,.45); box-shadow: 0 4px 14px rgba(58,42,34,.16), inset 0 2px 8px rgba(58,42,34,.12); touch-action: manipulation; }
.g3-cell { aspect-ratio: 1; min-width: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 7.6vw, 38px); background: #fffdf6; border: 1px solid #efe4c8; border-radius: 10px; box-shadow: 0 1px 3px rgba(58,42,34,.1); cursor: pointer; user-select: none; transition: transform .12s, box-shadow .15s; }
.g3-cell.sel { background: #fdf3d7; box-shadow: 0 0 0 3px var(--jin), 0 0 14px rgba(212,168,73,.8); transform: scale(1.12); }
.g3-cell.clear { animation: g3clear .32s both; }
@keyframes g3clear {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); background: #fdf3d7; box-shadow: 0 0 0 3px var(--jin), 0 0 20px 4px rgba(212,168,73,.95); }
  100% { transform: scale(0); opacity: 0; }
}

/* g5 问答 */
.q-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.q-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.12); box-shadow: inset 0 1px 2px rgba(58,42,34,.2); }
.q-dots i.cur { background: var(--jin); transform: scale(1.3); box-shadow: 0 0 8px rgba(212,168,73,.8); }
.q-dots i.ok { background: var(--shilv); }
.q-dots i.bad { background: var(--tuhong); }
.q-card { position: relative; border: 1.5px solid rgba(212,168,73,.45); box-shadow: 0 4px 14px rgba(58,42,34,.16); }
.q-card h3 { font-size: 17px; line-height: 1.7; color: var(--zhushi); margin-bottom: 16px; min-height: 3.4em; }
.q-opt { display: block; width: 100%; text-align: left; margin-bottom: 10px; padding: 13px 16px; border-radius: 14px; border: 2px solid #e5d9bf; background: #fffdf6; font-size: 14.5px; cursor: pointer; font-family: inherit; color: var(--ink); box-shadow: 0 2px 5px rgba(58,42,34,.1); transition: all .15s; }
.q-opt:active { transform: scale(.98); }
.q-opt.right { border-color: var(--jin); background: #fdf3d7; box-shadow: 0 0 0 1px var(--jin), 0 0 16px rgba(212,168,73,.75); animation: pop .3s; font-weight: 600; }
.q-opt.wrong { border-color: var(--tuhong); background: #f6d9d2; animation: shake .3s; }
.q-exp { font-size: 13px; line-height: 1.8; color: var(--shiqing); background: rgba(127,166,147,.15); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }

/* g6 修复 */
.g6-canvas-wrap { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #7a5230, #54371f); padding: 10px; box-shadow: 0 5px 16px rgba(58,42,34,.35), inset 0 1px 0 rgba(255,235,200,.22); touch-action: none; }
.g6-canvas-wrap canvas { display: block; width: 100%; border-radius: 10px; }
#g6Bar { background: linear-gradient(90deg, var(--jin), #f0d089); }

/* ===== 终章 ===== */
.finale-stage { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 22px calc(30px + env(safe-area-inset-bottom, 0px)); background: radial-gradient(ellipse at 50% 30%, #2F5D62 0%, #171210 75%); overflow: hidden; }
.finale-shards { position: absolute; inset: 0; pointer-events: none; }
.finale-shards .fshard {
  position: absolute; left: 50%; top: 42%; width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--jin), var(--shilv));
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  animation: shardMerge 1.6s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes shardMerge {
  0% { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1); opacity: 1; }
  85% { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}
.finale-art { width: min(300px, 72vw); border-radius: 18px; box-shadow: 0 0 60px rgba(212,168,73,.75); animation: artGlow 2.4s ease-in-out infinite alternate, pop 1s .9s both; opacity: 0; }
@keyframes artGlow { from { box-shadow: 0 0 30px rgba(212,168,73,.5); } to { box-shadow: 0 0 80px rgba(212,168,73,.95); } }
.finale-title { color: var(--jin); font-size: 30px; letter-spacing: 8px; margin: 22px 0 10px; animation: pop .6s 1.6s both; opacity: 0; }
.finale-desc { color: #d8c9a8; font-size: 13.5px; line-height: 2; text-align: center; max-width: 340px; margin-bottom: 26px; animation: pop .6s 2s both; opacity: 0; }
.finale-cta { animation: pop .6s 2.4s both; opacity: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.finale-cta .btn.ghost {
  display: inline-flex; align-items: center; gap: 7px;
  color: #d8c9a8; font-size: 13px; letter-spacing: 2px;
  padding: 9px 22px; border-radius: 999px;
  border: 1px solid rgba(212,168,73,.45);
  background: rgba(212,168,73,.08); box-shadow: none;
}
.finale-cta .btn.ghost svg { width: 14px; height: 14px; flex: none; }
.finale-cta .btn.ghost:active { background: rgba(212,168,73,.18); transform: scale(.96); }

/* ===== 优惠券 ===== */
.coupon-wrap { padding: 18px 16px calc(100px + env(safe-area-inset-bottom, 0px)); }
.coupon-img-box { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(58,42,34,.3); user-select: none; }
.coupon-demo-tag {
  position: absolute; top: 10px; right: -34px; transform: rotate(38deg);
  background: rgba(179,83,60,.92); color: #fdf6e3;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 40px; box-shadow: 0 2px 8px rgba(58,42,34,.35);
  pointer-events: none;
}
.demo-em { color: var(--tuhong); }
.coupon-img-box img { width: 100%; display: block; pointer-events: none; }
.coupon-stamp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(245,239,227,.25);
}
.coupon-stamp span {
  border: 6px double rgba(179,83,60,.85); color: rgba(179,83,60,.85);
  font-size: 34px; font-weight: 800; letter-spacing: 10px; padding: 10px 18px 10px 28px;
  border-radius: 12px; transform: rotate(-18deg);
  animation: stampIn .35s cubic-bezier(.2,2,.4,1) both;
}
@keyframes stampIn { from { transform: rotate(-18deg) scale(2.4); opacity: 0; } to { transform: rotate(-18deg) scale(1); opacity: 1; } }
.coupon-rules { margin-top: 16px; }
.coupon-rules h4 { color: var(--zhushi); font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.coupon-rules li { font-size: 12.5px; color: #6b5347; line-height: 1.9; margin-left: 18px; }
.slider-track {
  position: relative; margin-top: 18px; height: 56px; border-radius: 999px;
  background: var(--shiqing); overflow: hidden; user-select: none; touch-action: none;
}
.slider-track .slider-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(245,239,227,.8); font-size: 14px; letter-spacing: 4px; }
.slider-handle {
  position: absolute; left: 4px; top: 4px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--jin); color: #4a3410; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 3px 8px rgba(0,0,0,.35); cursor: grab; z-index: 2;
}
.slider-track.done { background: var(--shilv); }

/* ===== 备选玩法试玩间 lab ===== */
.lab-note { padding: 16px 20px 4px; text-align: center; font-size: 12.5px; color: #8a7365; line-height: 1.8; }
.lab-list { padding: 12px 16px calc(90px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab-card { background: var(--card); border-radius: 16px; padding: 18px 12px; text-align: center; text-decoration: none; color: var(--ink); box-shadow: 0 3px 10px rgba(58,42,34,.12); transition: transform .1s; display: block; }
.lab-card:active { transform: scale(.96); }
.lab-card .ic { font-size: 36px; margin-bottom: 8px; }
.lab-card h3 { font-size: 15px; color: var(--zhushi); letter-spacing: 1px; }
.lab-card p { font-size: 11.5px; color: #8a7365; margin-top: 5px; line-height: 1.6; }

/* lab 通用游戏舞台 */
.lab-stage { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #2F5D62 0%, #24484c 100%); box-shadow: 0 3px 12px rgba(58,42,34,.2); }

/* g1 文物消消看 */
.lb1-board { position: relative; margin: 0 auto; }
.lb1-card { position: absolute; width: 60px; height: 60px; background: var(--card); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 30px; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.25); transition: filter .15s, transform .1s; user-select: none; }
.lb1-card:active { transform: scale(.94); }
.lb1-card.cov { filter: brightness(.5) saturate(.5); }
.lb1-slot-bar { display: flex; gap: 5px; justify-content: center; margin-top: 14px; background: var(--card); padding: 8px; border-radius: 14px; box-shadow: 0 3px 10px rgba(58,42,34,.12); }
.lb1-slot { width: 44px; height: 44px; border-radius: 10px; background: var(--mibai); border: 2px dashed #d9c9a8; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.lb1-slot.full { border-style: solid; border-color: var(--jin); animation: pop .25s; }

/* g2 展厅寻物 */
.lb2-item { position: absolute; cursor: pointer; user-select: none; transition: transform .1s; line-height: 1; background: rgba(255,253,246,.94); border-radius: 12px; padding: 4px; border: 1.5px solid rgba(212,168,73,.5); box-shadow: 0 3px 8px rgba(58,42,34,.35); }
.lb2-item:active { transform: scale(.85); }
.lb2-item.found { opacity: .25; pointer-events: none; }
.lb2-item .relic-ic { display: block; height: 1.5em; max-width: 2em; vertical-align: 0; }
.lb2-targets { display: flex; gap: 8px; }
.lb2-target { background: #fffdf6; border-radius: 999px; padding: 6px 12px; font-size: 20px; border: 1.5px solid rgba(212,168,73,.55); box-shadow: 0 2px 8px rgba(58,42,34,.14); }

/* g4 场景内物件:暖调融合 + 落地阴影 */
#g4Stage .lb2-item .relic-ic { filter: sepia(.16) saturate(1.05) brightness(1.02) drop-shadow(0 4px 4px rgba(80,50,20,.5)); }
#g4Stage .lb2-item.found .relic-ic { filter: sepia(.16) saturate(1.05); }
.lb2-target.done { opacity: .4; text-decoration: line-through; }
.lb2-target small { font-size: 11px; color: var(--tuhong); font-weight: 700; }

/* g3 记忆对对碰 */
.lb3-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lb3-card { aspect-ratio: 3/4; border-radius: 12px; cursor: pointer; position: relative; transform-style: preserve-3d; transition: transform .35s; }
.lb3-card .face { position: absolute; inset: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; font-size: clamp(24px, 7vw, 34px); }
.lb3-card .back-f { background: var(--shiqing); color: rgba(245,239,227,.5); font-size: 22px; border: 2px solid rgba(212,168,73,.5); }
.lb3-card .front-f { background: var(--card); transform: rotateY(180deg); border: 2px solid var(--jin); }
.lb3-card.up { transform: rotateY(180deg); }
.lb3-card.matched .front-f { background: #e8f1e9; border-color: var(--shilv); }

/* g4 接住文物 */
.lb4-item { position: absolute; font-size: 34px; line-height: 1; user-select: none; pointer-events: none; }
.lb4-basket { position: absolute; bottom: 8px; font-size: 44px; line-height: 1; user-select: none; pointer-events: none; transition: none; }
.lb4-hurt { animation: shake .4s; }

/* g6 听音辨宝 */
.lb6-play { display: block; margin: 0 auto 16px; font-size: 17px; }
.lb6-cards { display: flex; gap: 12px; justify-content: center; }
.lb6-card { flex: 1; background: var(--card); border-radius: 16px; padding: 18px 6px; text-align: center; cursor: pointer; border: 3px solid transparent; box-shadow: 0 3px 10px rgba(58,42,34,.12); transition: transform .1s; }
.lb6-card:active { transform: scale(.95); }
.lb6-card .ic { font-size: 40px; }
.lb6-card h4 { font-size: 14px; color: var(--zhushi); margin-top: 6px; letter-spacing: 2px; }
.lb6-card.right { border-color: var(--shilv); animation: pop .35s; }
.lb6-card.wrong { border-color: var(--tuhong); animation: shake .35s; }

/* g7 长廊追击 */
.lb7-runner { position: absolute; font-size: 40px; line-height: 1; user-select: none; }
.lb7-obs { position: absolute; width: 36px; height: 48px; background: linear-gradient(180deg, #b5533c, #8C3B2E); border-radius: 6px 6px 2px 2px; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 3px 6px rgba(0,0,0,.3); }
.lb7-ground { position: absolute; left: 0; right: 0; height: 4px; background: var(--jin); opacity: .7; }
.lb7-runner.hurt { animation: lb7blink .15s 6; }
@keyframes lb7blink { 50% { opacity: .2; } }

/* g8 指纹鉴定 */
.lb8-suspects { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.lb8-sus { flex: 1; background: var(--card); border-radius: 14px; padding: 12px 4px; text-align: center; cursor: pointer; border: 3px solid transparent; box-shadow: 0 3px 10px rgba(58,42,34,.12); }
.lb8-sus .ic { font-size: 34px; }
.lb8-sus h4 { font-size: 12.5px; color: var(--zhushi); margin-top: 4px; }
.lb8-sus.wrong { border-color: var(--tuhong); animation: shake .35s; }
.lb8-sus.right { border-color: var(--shilv); animation: pop .35s; }

/* ===== g6 第二阶段：碎片九宫格拼合 ===== */
.g6-board { position: relative; width: 100%; aspect-ratio: 9/16; max-height: 62vh; max-height: 62dvh; margin: 0 auto; background: #d9ccae; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 10px rgba(58,42,34,.18); }
.g6-tile {
  position: absolute; width: calc(100%/3); height: calc(100%/3);
  background-size: 300% 300%;
  border-radius: 6px; cursor: pointer;
  transition: left .16s ease, top .16s ease;
  box-shadow: inset 0 0 0 2px rgba(245,239,227,.7);
  animation: pop .35s both;
}
.g6-done-img { width: 100%; border-radius: 14px; display: block; animation: pop .6s both; box-shadow: 0 0 30px rgba(212,168,73,.7); }
.g6-toast {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%) scale(.8);
  z-index: 15; max-width: 82%;
  background: rgba(20,14,12,.88); color: var(--mibai);
  font-size: 15.5px; line-height: 1.8; text-align: center;
  padding: 14px 22px; border-radius: 14px; border: 1px solid rgba(212,168,73,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.g6-toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.g6-toast b { color: var(--jin); }

/* 文物图标(替代 emoji) */
.relic-ic { height: 1.25em; width: auto; max-width: 92%; vertical-align: -0.28em; object-fit: contain; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(58,42,34,.35)); }
.level-icon .relic-ic { height: 42px; vertical-align: 0; }

/* ===== V2 · 青青狮的笔记 ===== */
/* 过场页文物照片：完整展示 + 柔和衬底；两件文物时并排 */
/* 过场页舞台：占满视口剩余高度(flex 区域),对话区自然衔接不重叠 */
.story-stage.contain {
  position: relative; inset: auto; flex: 1 1 auto; min-height: 24vh;
  background: radial-gradient(ellipse at 50% 30%, #4a3c30 0, #241b16 70%);
  display: flex; justify-content: center; gap: 14px; padding: 64px 22px 12px;
}
.story-stage.contain img { flex: 1 1 0; width: 0; min-width: 0; height: 100%; object-fit: contain; animation: none; }
.story-stage.contain .story-imgs {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 64px 16px 12px;
  pointer-events: none;
}
.story-stage.contain .story-imgs img {
  flex: 0 1 auto; min-width: 0; min-height: 0;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; padding: 0; animation: none; cursor: zoom-in;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.5));
  pointer-events: auto;
}
.story-stage.contain .story-imgs.two img { max-width: calc(50% - 6px); }
/* 舞台与对话上下排布,对话不再压舞台;覆盖 screen-content 的整屏高度;按钮贴近底部,仅留吉祥物安全距离 */
.story-stage.contain + .story-dialog { margin-top: 0; min-height: 0; display: flex; flex-direction: column; padding: 16px 22px calc(20px + env(safe-area-inset-bottom, 0px)); }
.story-stage.contain + .story-dialog .center-col { margin-top: auto; padding-top: 14px; }

/* 过场页悬念占位：核对笔记前不露出文物图(绝对定位于舞台内,随舞台缩放) */
.story-mystery {
  position: absolute; inset: 0; z-index: 2; padding: 64px 22px 12px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center;
  color: rgba(245,239,227,.9); pointer-events: none;
}
.story-mystery span {
  font-size: 96px; font-weight: 800; line-height: 1;
  color: var(--jin); text-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.mystery-sil { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 100%; flex: 0 1 auto; min-height: 0; }
.story-mystery .mystery-sil img {
  display: block; max-width: min(66vw, 310px, 100%); max-height: 100%; width: auto; height: auto; min-width: 0;
  flex: 0 1 auto; object-fit: contain; animation: none; padding: 0;
  filter: blur(7px) brightness(1.35) contrast(.8) saturate(.55);
  opacity: .66;
}
.mystery-sil.two { gap: 10px; }
.story-mystery .mystery-sil.two img { max-width: min(41vw, 185px); filter: blur(4px) brightness(1.35) contrast(.8) saturate(.55); opacity: .7; }
.story-mystery p { flex: none; margin: 0; font-size: 14px; letter-spacing: 2px; opacity: .85; }

/* 甲乙笔记卡 */
.note-cards { display: flex; gap: 10px; margin-bottom: 12px; }
.note-card {
  flex: 1; background: rgba(255,251,242,.96); border-radius: 6px 14px 14px 14px;
  padding: 10px 12px; border: 1.5px solid #d9c9a8; border-left: 4px solid var(--jin);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.note-card.nb { border-left-color: var(--shilv); }
.note-card .who { font-size: 11px; color: var(--tuhong); font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; }
.note-card.nb .who { color: var(--shiqing); }
.note-card .text { font-size: 13px; line-height: 1.8; color: var(--ink); }

/* 过关弹窗里的文物图与讲解 */
/* 过关揭秘：全屏文物大图 */
.reveal-stage {
  width: 100%; height: 100%; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(5vh + env(safe-area-inset-top, 0px)) 22px calc(5vh + env(safe-area-inset-bottom, 0px));
  padding: calc(5dvh + env(safe-area-inset-top, 0px)) 22px calc(5dvh + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: radial-gradient(ellipse at 50% 26%, #4a3c30 0, #241b16 72%);
}
/* 内容不超高时垂直居中;超高时占位条收缩为 0,从头开始滚动 */
.reveal-stage::before, .reveal-stage::after { content: ""; flex: 1 1 0; min-height: 0; }
.reveal-stage > * { flex: none; }
.reveal-title { color: var(--jin); font-size: 24px; letter-spacing: 4px; margin: 0 0 2.6vh; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.reveal-photo { display: flex; gap: 16px; align-items: center; justify-content: center; margin-bottom: 2.2vh; }
.reveal-photo img {
  max-width: min(74vw, 340px); max-height: 36vh; max-height: 36dvh; object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
  animation: revealZoom .7s cubic-bezier(.2,1.35,.4,1) .15s both;
}
.reveal-photo.two { flex-direction: column; gap: 10px; }
.reveal-photo.two img { max-width: min(72vw, 320px); max-height: 21vh; max-height: 21dvh; }
.reveal-photo img { cursor: zoom-in; }
.reveal-tip { color: rgba(245,239,227,.55); font-size: 11.5px; margin: -1.4vh 0 1.6vh; letter-spacing: 1px; }
@keyframes revealZoom { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.reveal-name { margin-bottom: 2vh; }
.reveal-name b { display: block; color: var(--mibai); font-size: 18px; letter-spacing: 1px; }
.reveal-name span { display: block; margin-top: 5px; color: var(--jin); font-size: 12.5px; letter-spacing: 2px; }
.reveal-text {
  width: min(420px, 100%); text-align: left; font-size: 14px; line-height: 1.9;
  color: var(--ink); background: rgba(245,239,227,.96); border: 2px solid var(--jin);
  border-radius: 14px 14px 14px 4px; padding: 12px 14px; margin-bottom: 1.6vh;
}
.reveal-text b { color: var(--tuhong); }
.reveal-prog { color: rgba(245,239,227,.85); font-size: 13px; margin: 0 0 2vh; }
.reveal-prog b { color: var(--jin); }
.reveal-stage .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding-bottom: 2vh; }

/* 第五页拼图（复用 g6 拼图样式，图片由 JS 内联指定） */
.g5-board { position: relative; width: 100%; aspect-ratio: 9/16; max-height: 62vh; max-height: 62dvh; margin: 0 auto; background: #d9ccae; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 10px rgba(58,42,34,.18); }
.g5-tile {
  position: absolute; width: calc(100%/3); height: calc(100%/3);
  background-size: 300% 300%;
  border-radius: 6px; cursor: pointer;
  transition: left .16s ease, top .16s ease;
  box-shadow: inset 0 0 0 2px rgba(245,239,227,.7);
  animation: pop .35s both;
}

/* 第三页 · 线索桌拍立得照片 */
.g3-photo {
  position: absolute; cursor: pointer; user-select: none;
  background: #fdfcf8; padding: 5px 5px 16px; border-radius: 4px;
  box-shadow: 0 5px 14px rgba(40,24,12,.45), 0 1px 3px rgba(40,24,12,.3);
  transition: transform .12s, box-shadow .12s; line-height: 0;
}
.g3-photo img { width: 100%; border-radius: 2px; display: block; pointer-events: none; }
.g3-photo:active { transform: scale(.9); }
.g3-photo.found { opacity: 0; transform: scale(.6) rotate(-8deg); transition: all .3s; pointer-events: none; }

/* 第三页 · 鸣金收兵（反应行军） */
.g3-status {
  text-align: center; font-size: 14.5px; color: var(--zhushi); font-weight: 600;
  background: rgba(212,168,73,.14); border: 1px solid rgba(212,168,73,.45);
  border-radius: 999px; padding: 9px 14px; margin-bottom: 14px; letter-spacing: .5px;
}
.g3-field {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(212,168,73,.45);
  background: linear-gradient(180deg, #f0d9a8 0%, #e3c088 55%, #c9a25e 100%);
  box-shadow: 0 4px 14px rgba(58,42,34,.2);
  aspect-ratio: 8/5;
}
.g3-field.violate { border-color: var(--tuhong); animation: shake .35s; box-shadow: 0 0 0 3px rgba(192,57,43,.5), 0 4px 14px rgba(58,42,34,.2); }
.g3-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.g3-signal {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(253,252,248,.94); border-radius: 999px; padding: 6px 16px 6px 8px;
  border: 2.5px solid #b8a888; box-shadow: 0 3px 10px rgba(58,42,34,.3);
  transition: border-color .15s, box-shadow .15s; z-index: 3;
}
.g3-signal-ico { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; }
.g3-signal-ico img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; display: block; }
.g3-signal-txt { font-size: 17px; font-weight: 800; color: var(--zhushi); letter-spacing: 1px; }
.g3-signal.on-drum { border-color: var(--jin); box-shadow: 0 0 0 3px rgba(212,168,73,.55), 0 0 22px rgba(212,168,73,.8); animation: pop .25s both; }
.g3-signal.on-nao { border-color: var(--shiqing); box-shadow: 0 0 0 3px rgba(74,124,116,.5), 0 0 22px rgba(74,124,116,.8); animation: pop .25s both; }
.g3-signal.on-nao .g3-signal-txt { color: var(--shiqing); }
.g3-army { position: absolute; left: 0; bottom: 14px; z-index: 2; display: flex; align-items: flex-end; gap: 6px; transition: left .1s linear; filter: drop-shadow(0 3px 4px rgba(58,42,34,.35)); }
.g3-sol { position: relative; width: 17px; height: 30px; }
.g3-sol::before { content: ""; position: absolute; top: 0; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #8a5a33; box-shadow: inset -2px -2px 0 rgba(0,0,0,.18); }
.g3-sol::after { content: ""; position: absolute; top: 10px; left: 1px; width: 15px; height: 20px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #b0452f, #7e2d1f); box-shadow: inset -3px 0 0 rgba(0,0,0,.16); }
.g3-flag { font-size: 26px; line-height: 1; margin-left: 2px; }
.g3-army.marching .g3-sol { animation: g3march .32s infinite alternate ease-in-out; }
.g3-army.marching .g3-sol:nth-child(2) { animation-delay: .1s; }
.g3-army.marching .g3-sol:nth-child(3) { animation-delay: .2s; }
.g3-army.shake { animation: shake .35s; }
@keyframes g3march { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.g3-march {
  width: 100%; margin-top: 14px; padding: 18px 0; border: none; border-radius: 18px;
  font-size: 18px; font-weight: 800; letter-spacing: 2px; color: #fffdf6;
  background: linear-gradient(135deg, var(--jin), #b8892f);
  box-shadow: 0 5px 0 #8f6a1f, 0 8px 16px rgba(58,42,34,.3);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: transform .06s, box-shadow .06s, filter .2s;
}
.g3-march:disabled { filter: grayscale(.6) opacity(.55); box-shadow: 0 3px 0 #8f6a1f; }
.g3-march.held { transform: translateY(4px); box-shadow: 0 1px 0 #8f6a1f, 0 3px 8px rgba(58,42,34,.3); }

/* ===== 第三页 · 展柜寻物（g3f，手机端大图标点选） ===== */
/* 顶部信息合成一行：计时 + 目标缩略图 + 进度，省出版面给展柜 */
.g3f-hud { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.g3f-hud .hud-item { display: flex; align-items: center; gap: 2px; padding: 4px 9px; font-size: 12px; flex: none; }
.g3f-timer { font-size: 12px; }
.g3f-timer b { font-size: 18px; }
.g3f-timer.low { border-color: var(--tuhong); animation: pop .5s infinite alternate; }
.g3f-timer.low b { color: var(--tuhong); }
.g3f-timer.hit { animation: shake .3s; }
.g3f-found b { font-size: 16px; }
.g3f-found span { color: #8a7365; }

.g3f-targets { flex: 1; min-width: 0; display: flex; gap: 6px; }
.g3f-target {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--card); border: 1.5px solid rgba(212,168,73,.55); border-radius: 12px;
  padding: 5px 2px 4px; box-shadow: 0 2px 8px rgba(58,42,34,.14); position: relative;
}
.g3f-target img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; pointer-events: none; }
.g3f-target span { font-size: 10px; font-weight: 700; color: var(--zhushi); white-space: nowrap; }
.g3f-target b {
  position: absolute; top: -5px; right: -3px; min-width: 20px; height: 20px; line-height: 20px;
  text-align: center; font-size: 11px; color: #fff; background: var(--tuhong);
  border-radius: 999px; padding: 0 4px; box-shadow: 0 2px 5px rgba(0,0,0,.25);
}
.g3f-target.done { opacity: .55; }
.g3f-target.done b { background: var(--shilv); }
.g3f-target.done::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--shiqing); font-weight: 800; text-shadow: 0 1px 0 #fff;
}

.g3f-stage {
  position: relative; width: 100%; height: min(74vh, 660px); height: min(74dvh, 660px); min-height: 470px;
  border-radius: 16px; overflow: hidden; touch-action: manipulation; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 18%, rgba(20,12,8,.5) 18% 19.2%, rgba(255,230,180,.08) 19.2% 20%),
    linear-gradient(180deg, #54402f 0%, #463326 55%, #3a2a20 100%);
  border: 1.5px solid rgba(212,168,73,.4);
  box-shadow: 0 4px 14px rgba(58,42,34,.25), inset 0 0 40px rgba(0,0,0,.3);
}
.g3f-item {
  position: absolute; display: flex; align-items: center; justify-content: center;
  background: rgba(255,251,242,.96); border-radius: 14px; padding: 5px;
  border: 1.5px solid rgba(212,168,73,.6); box-shadow: 0 4px 10px rgba(0,0,0,.4);
  cursor: pointer; transition: opacity .25s;
}
.g3f-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; pointer-events: none; display: block; }
.g3f-item:active { filter: brightness(1.12); }
.g3f-item.found { opacity: 0; transform: scale(1.35) rotate(10deg) !important; transition: all .28s; pointer-events: none; }
.g3f-item.wrong { animation: shake .35s; border-color: var(--tuhong); box-shadow: 0 0 0 3px rgba(181,83,60,.65), 0 4px 10px rgba(0,0,0,.4); }

.g3f-start {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  background: rgba(30,20,14,.55); backdrop-filter: blur(2px); transition: opacity .3s;
}
.g3f-start.hide { opacity: 0; pointer-events: none; }
.g3f-start-card {
  background: var(--card); border-radius: 18px; border: 1.5px solid rgba(212,168,73,.55);
  padding: 20px 22px; text-align: center; margin: 0 26px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.g3f-start-title { font-size: 22px; font-weight: 800; color: var(--zhushi); letter-spacing: 3px; margin-bottom: 8px; }
.g3f-start-card p { font-size: 13px; line-height: 1.8; color: #6b5344; margin-bottom: 14px; }

/* ===== 微信内打开:收起应用内标题,避免与微信导航栏形成双标题栏 ===== */
html.in-wx .topbar { padding: 7px 12px; }
html.in-wx .topbar .tb-title { display: none; }
html.in-wx .topbar .frag-mini { margin-left: auto; }
html.in-wx .topbar .back { width: 28px; height: 28px; font-size: 15px; }

/* ===== 全局点击反馈 ===== */
.tap-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: scale(0); opacity: 1;
  animation: tapRipple .55s ease-out forwards;
  pointer-events: none;
}
@keyframes tapRipple { to { transform: scale(1); opacity: 0; } }
.g2-cell:active { transform: scale(.9); }
.g3-cell:active { transform: scale(.9); }
.q-opt:active { filter: brightness(1.04); }
.lb-close:active { transform: scale(.9); }

/* ===== UX 优化（2026-11-26） ===== */
/* 第五页拼图：原图预览 + 加载状态 */
.g5-preview { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.g5-preview img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; pointer-events: none; }
.g5-preview:active { transform: scale(.95); }
.g5-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  font-size: 13.5px; line-height: 2; color: #6b5344; padding: 20px;
}
.g5-retry { margin-top: 12px; font-size: 14px; padding: 10px 26px; }

/* 第五页拼图：开局玩法说明（手指点碎片 → 滑进空格） */
.g5-demo-slot {
  position: absolute; width: calc(100%/3); height: calc(100%/3); z-index: 6;
  border: 2px dashed var(--jin); border-radius: 6px;
  background: rgba(212,168,73,.16);
  animation: hintPulse .9s 2;
  pointer-events: none;
}
.g5-demo-hand {
  position: absolute; z-index: 7; font-size: 30px; line-height: 1;
  transform: translate(-50%, -62%);
  transition: left .7s ease-in-out, top .7s ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
  pointer-events: none;
}
.g5-demo-hand.tap { animation: g5demoTap .35s; }
@keyframes g5demoTap { 50% { transform: translate(-50%, -62%) scale(.72); } }

/* 第六页问答：手动下一题 */
.q-next { display: block; margin: 14px auto 0; font-size: 15px; padding: 11px 32px; }

/* 轻提示气泡 */
.jh-toast {
  position: fixed; top: 16%; left: 50%; transform: translateX(-50%); z-index: 70;
  background: rgba(30,20,14,.88); color: var(--mibai);
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); max-width: 80%; text-align: center;
  pointer-events: none; animation: pop .25s both; transition: opacity .3s;
}
.jh-toast.out { opacity: 0; }

/* 过场页打字机可跳过提示 */
.dialog-box { position: relative; }
.type-skip { position: absolute; right: 12px; bottom: 6px; font-size: 10.5px; color: #a08c6f; pointer-events: none; }

/* 过关讲解：短句逐句淡入 */
.rv-line { opacity: 0; animation: rvIn .45s both; }
@keyframes rvIn { from { opacity: 0; } to { opacity: 1; } }

/* 结语页领券按钮：呼吸光圈引导点击 */
.btn.pulse-glow { animation: ctaPulse 1.5s ease-in-out infinite; }
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 4px 0 #a9822f, 0 0 0 0 rgba(212,168,73,.65); }
  50% { box-shadow: 0 4px 0 #a9822f, 0 0 0 14px rgba(212,168,73,0); }
}

/* ===== 横屏引导：竖屏应用，触屏设备横屏时提示旋转 ===== */
/* 纯 CSS 实现,所有页面(含游戏页)自动生效;pointer:coarse 限定触屏,不影响桌面窄窗口 */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 998;
    background: radial-gradient(ellipse at 50% 40%, #261c15, #171210 78%);
  }
  body::after {
    content: "📱\A 请旋转手机，竖屏体验";
    white-space: pre; position: fixed; inset: 0; z-index: 999;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #f5efe3; font-size: 17px; letter-spacing: 2px; line-height: 2.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
  }
}

/* ===== 首次进入玩法说明 ===== */
.tut-inner { padding: 22px 20px 24px; }
.tut-tag { display: inline-block; font-size: 12px; letter-spacing: 2px; color: #fff; background: var(--shiqing); padding: 3px 14px; border-radius: 999px; margin-bottom: 8px; }
.tut-stage { background: #f6efdf; border: 1.5px solid rgba(212,168,73,.4); border-radius: 14px; margin: 8px 0 14px; padding: 16px 10px; min-height: 116px; display: flex; align-items: center; justify-content: center; }
.tsc { position: relative; display: flex; align-items: center; justify-content: center; }
.tut-steps { text-align: left; margin: 0 auto 16px; max-width: 300px; padding-left: 22px; }
.tut-steps li { font-size: 13.5px; line-height: 1.65; color: #5b463b; margin: 5px 0; }
.tut-hand { position: absolute; left: 62%; top: 70%; font-size: 22px; line-height: 1; z-index: 6; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); animation: tutTap 1.8s ease-in-out infinite; }
@keyframes tutTap { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(.68); } }

/* 通用示意小格 */
.tsc i { font-style: normal; }
.tg1-panel > i, .tg2-grid > i, .tg3-field > i, .tg4-row > i { width: 36px; height: 36px; background: #fffdf6; border-radius: 9px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(58,42,34,.16); position: relative; }
.tg1-panel .relic-ic, .tg2-grid .relic-ic, .tg4-row .relic-ic { height: 26px; }
.tg3-field .relic-ic { height: 28px; }

/* 第一关 找不同 */
.tsc-g1 { flex-direction: column; gap: 8px; }
.tg1-panel { display: flex; gap: 7px; }
.tg1-diff { animation: tg1Diff 1.8s ease-in-out infinite; }
@keyframes tg1Diff { 0%,50%,100% { box-shadow: 0 1px 3px rgba(58,42,34,.16); background: #fffdf6; } 60%,88% { box-shadow: 0 0 0 3px var(--tuhong), 0 0 12px rgba(181,83,60,.7); background: #fdeee6; } }

/* 第二关 连连看 */
.tg2-grid { display: grid; grid-template-columns: repeat(3, 36px); gap: 7px; }
.tg2-a, .tg2-b { animation: tg2Sel 2.4s ease-in-out infinite; }
@keyframes tg2Sel { 0%,16%,100% { box-shadow: 0 1px 3px rgba(58,42,34,.16); background: #fffdf6; transform: scale(1); opacity: 1; } 20%,58% { box-shadow: 0 0 0 3px var(--jin), 0 0 12px rgba(212,168,73,.7); background: #fdf3d7; } 66%,82% { transform: scale(0); opacity: 0; } 90% { transform: scale(1); opacity: 1; } }
.tg2-a .tut-hand { animation: thA 2.4s ease-in-out infinite; }
.tg2-b .tut-hand { animation: thB 2.4s ease-in-out infinite; }
@keyframes thA { 0%,6% { opacity: 0; } 12%,26% { opacity: 1; } 20% { transform: translate(-50%,-50%) scale(.68); } 32%,100% { opacity: 0; } }
@keyframes thB { 0%,34% { opacity: 0; } 40%,54% { opacity: 1; } 48% { transform: translate(-50%,-50%) scale(.68); } 60%,100% { opacity: 0; } }

/* 第三关 展柜寻物 */
.tsc-g3 { flex-direction: column; gap: 12px; }
.tg3-target { display: inline-flex; align-items: center; gap: 6px; background: #fffdf6; border: 1.5px solid var(--jin); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 12px; color: var(--zhushi); font-weight: 600; }
.tg3-target img { width: 22px; height: 22px; border-radius: 50%; }
.tg3-field { display: flex; gap: 8px; }
.tg3-field img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.tg3-hit { animation: tg3Hit 1.8s ease-in-out infinite; }
@keyframes tg3Hit { 0%,50%,100% { box-shadow: 0 1px 3px rgba(58,42,34,.16); background: #fffdf6; } 60%,88% { box-shadow: 0 0 0 3px var(--shiqing), 0 0 12px rgba(47,93,98,.55); background: #e6f0ee; } }

/* 第四关 消消乐 */
.tg4-row { display: flex; gap: 7px; }
.tg4-a { animation: tg4a 2.6s ease-in-out infinite; z-index: 2; }
.tg4-b { animation: tg4b 2.6s ease-in-out infinite; }
.tg4-m { animation: tg4pop 2.6s ease-in-out infinite; }
@keyframes tg4a { 0%,20% { transform: translateX(0); } 35%,88% { transform: translateX(43px); } 100% { transform: translateX(0); } }
@keyframes tg4b { 0%,20% { transform: translateX(0); box-shadow: 0 1px 3px rgba(58,42,34,.16); background: #fffdf6; opacity: 1; } 35%,48% { transform: translateX(-43px); } 52%,64% { transform: translateX(-43px); box-shadow: 0 0 0 3px var(--tuhong); background: #fdeee6; } 72%,84% { transform: translateX(-43px) scale(0); opacity: 0; } 92%,100% { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes tg4pop { 0%,48% { box-shadow: 0 1px 3px rgba(58,42,34,.16); background: #fffdf6; transform: scale(1); opacity: 1; } 52%,64% { box-shadow: 0 0 0 3px var(--tuhong); background: #fdeee6; } 72%,84% { transform: scale(0); opacity: 0; } 92%,100% { transform: scale(1); opacity: 1; } }
.tg4-a .tut-hand { animation: thG4 2.6s ease-in-out infinite; }
@keyframes thG4 { 0%,10% { opacity: 0; transform: translate(-50%,-50%); } 16% { opacity: 1; } 20% { transform: translate(-90%,-50%); } 36% { transform: translate(20%,-50%); } 44%,100% { opacity: 0; } }

/* 第五关 文物拼图 */
.tg5-grid { display: grid; grid-template-columns: repeat(3, 30px); gap: 5px; }
.tg5-grid > i { width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #d8c39a, #b79a68); opacity: .5; }
.tg5-grid i.tg5-empty { background: transparent; border: 2px dashed var(--jin); opacity: 1; }
.tg5-grid i.tg5-tile { background: linear-gradient(135deg, #c9a86a, #a9814a); opacity: 1; position: relative; animation: tg5slide 2.2s ease-in-out infinite; }
@keyframes tg5slide { 0%,30% { transform: translateX(0); } 55%,80% { transform: translateX(35px); } 100% { transform: translateX(0); } }
.tg5-tile .tut-hand { left: 50%; top: 50%; animation: tutTap 2.2s ease-in-out infinite; }

/* 第六关 知识问答 */
.tg6-card { width: 232px; }
.tg6-q { font-size: 13px; color: var(--zhushi); font-weight: 600; margin-bottom: 8px; text-align: left; line-height: 1.5; }
.tg6-opt { background: #fffdf6; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; color: #5b463b; text-align: left; margin: 6px 0; box-shadow: 0 1px 3px rgba(58,42,34,.14); position: relative; }
.tg6-ok { animation: tg6ok 2s ease-in-out infinite; }
@keyframes tg6ok { 0%,40%,100% { background: #fffdf6; box-shadow: 0 1px 3px rgba(58,42,34,.14); color: #5b463b; } 50%,85% { background: #e6f2e6; box-shadow: 0 0 0 2px #4a9d5b; color: #2f7a3f; } }
.tg6-ok .tut-hand { left: 90%; top: 50%; animation: tutTap 2s ease-in-out infinite; }

/* 吉祥物气泡里的“玩法说明”链接 */
.mascot-bubble .mb-tut { display: inline-block; margin-top: 6px; color: var(--tuhong); font-weight: 700; }
