/* ===========================================================================
   《森林冰火人》（Fireboy & Watergirl in the Forest Temple）婚礼视觉系统
   古殿青苔石砖 + 鎏金雕牌 + 火娃熔岩橙 + 冰娃冰泉蓝 + 翡翠神殿绿
   中文大字遵循三层 text-shadow 硬边阴影规范（禁用描边属性）
   =========================================================================== */

:root {
  --stone-dd: #11150c;
  --stone-d:  #192012;
  --stone:    #252e1b;
  --stone-m:  #354026;
  --ledge:    #6c623d;
  --gold:     #eab948;
  --gold-b:   #fae196;
  --gold-d:   #8f6315;
  --gold-dd:  #3a2505;
  --fire:     #ff5722;
  --fire-b:   #ff9e66;
  --fire-d:   #9c2208;
  --water:    #29b6f6;
  --water-b:  #8ae0ff;
  --water-d:  #085b8f;
  --emerald:  #41d86c;
  --emerald-d:#155d28;
  --purple:   #c76cff;
  --sand:     #f0e5c9;
  --sand-ink: #262012;
  --cream:    #faf4e4;
  --muted:    #b3b8a2;
  --shadow:   0 0 34px #000000aa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--stone-dd); }
body {
  margin: 0;
  background: linear-gradient(180deg, #171d10 0%, var(--stone-dd) 42%, #151b10 100%);
  color: var(--cream);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.phone-shell {
  width: min(100%, 480px);
  margin: auto;
  overflow: hidden;
  background: var(--stone-d);
  box-shadow: var(--shadow);
  position: relative;
}

/* ===== 神殿砖石暗纹 ===== */
.stone-mosaic {
  position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image:
    linear-gradient(90deg, rgba(234, 185, 72, .45) 1px, transparent 1px),
    linear-gradient(rgba(234, 185, 72, .45) 1px, transparent 1px);
  background-size: 48px 26px;
}

/* ===== ① 首页 · 森林神殿双门厅 ===== */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--stone-dd); }
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 26% 74%, #ff57221f 0%, transparent 32%),
    radial-gradient(circle at 74% 74%, #29b6f61f 0%, transparent 32%),
    linear-gradient(180deg, #0d100999 0%, transparent 24%, #11150caa 52%, #0e1209ee 100%);
}
.ember-spores {
  position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(circle, #ff9e66 0 1.3px, transparent 2.5px),
    radial-gradient(circle, #8ae0ff 0 1.4px, transparent 2.7px),
    radial-gradient(circle, #41d86c 0 1.2px, transparent 2.4px);
  background-position: 18% 26%, 82% 28%, 50% 18%;
  background-size: 145px 130px, 175px 155px, 210px 180px;
  animation: sporeDrift 4.4s ease-in-out infinite;
}
@keyframes sporeDrift { 0%,100% { opacity: .45; transform: translateY(0); } 50% { opacity: .95; transform: translateY(-6px); } }

.hero-hud {
  position: absolute; z-index: 3;
  top: max(13px, env(safe-area-inset-top)); left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 11px; gap: 6px;
  border: 1px solid #eab94888; border-radius: 6px;
  color: var(--gold); background: #14190ecc; backdrop-filter: blur(6px);
  font: 800 8.5px/1 "Courier New", monospace; letter-spacing: .1em;
}
.hero-hud b { color: var(--cream); font-size: 10px; }

.hero-brand {
  position: absolute; z-index: 3; top: 9%;
  left: 50%; width: min(92%, 416px);
  transform: translateX(-50%); pointer-events: none;
  filter: drop-shadow(0 4px 0 #11150c) drop-shadow(0 12px 22px #000000aa);
}
.hero-brand img { width: 100%; height: auto; }

.hero-copy {
  position: absolute; z-index: 3; top: 33.5%; left: 18px; right: 18px; text-align: center;
}
.mission-code {
  display: inline-block; padding: 6px 14px; margin: 0;
  border: 1.5px solid var(--gold-b); border-radius: 4px;
  color: var(--gold-b); background: #1d2415d4; backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px #00000088;
  font: 800 clamp(10px, 2.7vw, 11.5px)/1 "Courier New", monospace; letter-spacing: .14em;
}
.hero-kicker {
  margin: 11px 0 4px; color: var(--emerald);
  font-size: 11px; font-weight: 800; letter-spacing: .28em;
  text-shadow: 0 2px 6px #000000cc;
}
.hero h1 {
  margin: 4px 0 0; color: var(--gold-b);
  font: 900 clamp(33px, 10vw, 46px)/1.08 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: .08em;
  text-shadow: 0 3px 0 #70490b, 0 6px 0 #261602, 0 12px 22px #000000dd;
  -webkit-font-smoothing: antialiased;
}
.hero-en { margin: 8px 0 0; color: var(--cream); font: 800 9.5px/1.2 "Courier New", monospace; letter-spacing: .14em; opacity: .92; }

.mission-ticket {
  display: grid; grid-template-columns: 48px 1fr; gap: 5px 8px;
  width: min(92%, 348px); margin: 13px auto 0; padding: 10px 14px;
  border: 1px solid #eab948aa;
  box-shadow: inset 0 0 0 1.5px #12160d, 0 8px 20px #00000088;
  background: #171d10df; backdrop-filter: blur(6px);
  color: var(--cream); text-align: left; border-radius: 6px;
}
.mission-ticket span { color: var(--gold); font: 900 9px/1.5 "Courier New", monospace; letter-spacing: .08em; }
.mission-ticket b { font-size: 12px; line-height: 1.35; }
.hero-venue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.enter-button {
  position: absolute; z-index: 3; left: 50%; bottom: max(54px, calc(env(safe-area-inset-bottom) + 34px));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  max-width: calc(100% - 36px); white-space: nowrap;
  border: 2px solid var(--gold-b); border-radius: 999px;
  background: linear-gradient(90deg, var(--fire-d) 0%, #5b3b18 50%, var(--water-d) 100%);
  color: #fff; font-weight: 900; font-size: 15px; cursor: pointer;
  box-shadow: 0 5px 0 #161b0f, 0 14px 28px #00000099;
  animation: pulseBtn 2.4s ease-in-out infinite;
}
.enter-button b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-b); color: var(--gold-dd); font-size: 11px;
}
.enter-button:active { transform: translateX(-50%) translateY(4px); box-shadow: 0 1px 0 #161b0f; }
@keyframes pulseBtn { 0%,100% { box-shadow: 0 5px 0 #161b0f, 0 0 0 0 #eab94855; } 50% { box-shadow: 0 5px 0 #161b0f, 0 0 0 12px #eab94800; } }

.start-note {
  position: absolute; z-index: 3; left: 16px; right: 16px;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
  margin: 0; text-align: center; color: #e2e4d3; font-size: 11px; opacity: .9;
  text-shadow: 0 1px 4px #000;
}

/* ===== 滚动 HUD ===== */
.game-hud {
  position: fixed; z-index: 40; top: max(8px, env(safe-area-inset-top)); left: 50%;
  width: min(calc(100% - 16px), 464px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1.5px solid #eab94888; border-radius: 8px;
  background: #14190eeb; color: var(--cream); backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px #00000077;
  transform: translate(-50%, -130%); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none;
}
.game-hud.visible { transform: translate(-50%, 0); opacity: 1; }
.hud-duo { display: flex; gap: 4px; font: 900 9.5px/1 sans-serif; }
.badge-fire, .badge-water { padding: 4px 6px; border-radius: 4px; color: #fff; }
.badge-fire { background: #b72d0d; border: 1px solid var(--fire-b); }
.badge-water { background: #0a588a; border: 1px solid var(--water-b); }
.hud-gems { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: "Courier New", monospace; }
.hud-gems small { color: var(--gold); font-size: 8.5px; letter-spacing: .08em; }
.hud-gems b { color: var(--cream); font-size: 12px; }
.hud-rank { display: flex; align-items: center; gap: 4px; font: 900 10px/1 "Courier New", monospace; color: var(--emerald); }
.hex-dot { display: inline-block; transition: transform .3s; }
.hex-dot.lit { color: var(--gold-b); transform: scale(1.25); text-shadow: 0 0 8px var(--emerald); }

/* ===== 公共章节标题与渐入 ===== */
.story-section { position: relative; padding: 44px 16px 50px; overflow: hidden; }
.section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; position: relative; z-index: 1; }
.section-title > span {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid var(--gold); border-radius: 8px;
  background: linear-gradient(135deg, #3c4728, #1c2313);
  color: var(--gold-b); font: 900 16px/1 "Courier New", monospace; box-shadow: 0 4px 0 var(--gold-dd);
}
.section-title p { margin: 0 0 2px; color: var(--gold); font: 800 9.5px/1 "Courier New", monospace; letter-spacing: .16em; }
.section-title h2 {
  margin: 0; color: var(--cream); font-size: clamp(21px, 6.4vw, 27px); font-weight: 900; line-height: 1.15;
  text-shadow: 0 2px 0 #1e2413, 0 4px 0 #0b0e07, 0 8px 16px #00000099;
}
.reveal { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ===== ② 邀请函石板 & 双色踩板缔约 ===== */
.briefing { background: radial-gradient(circle at 50% 0%, #242e19 0%, var(--stone-dd) 78%); }
.order-card {
  position: relative; z-index: 1; padding: 17px 16px;
  background: var(--sand); color: var(--sand-ink);
  border: 3px solid var(--stone-m); border-radius: 8px;
  box-shadow: inset 0 0 0 2px #c2b285, 0 14px 28px #00000088;
}
.card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 9px; padding-bottom: 8px;
  border-bottom: 2px dashed #9d8b58;
  font: 900 10px/1 "Courier New", monospace; color: #5c4b23;
}
.card-top b { padding: 4px 8px; background: var(--stone-dd); color: var(--gold-b); border-radius: 4px; }
.order-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.38; color: #1f190c; }
.order-card > p { margin: 0 0 13px; font-size: 13.5px; line-height: 1.72; color: #3a311a; }
.order-card dl { display: grid; gap: 7px; margin: 0 0 14px; padding: 10px 12px; background: #e3d6b2; border: 1px solid #b5a370; border-radius: 6px; }
.order-card dl div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: baseline; }
.order-card dt { font: 900 10px/1 "Courier New", monospace; color: #7a5410; }
.order-card dd { margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.42; color: #241d0d; }

.accept-button {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gold-b); border-radius: 6px;
  background: linear-gradient(90deg, var(--fire-d) 0%, #463218 50%, var(--water-d) 100%);
  color: #fff; font-weight: 900; font-size: 15px; cursor: pointer;
  box-shadow: 0 5px 0 #171d0f; touch-action: none; user-select: none;
}
.accept-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #171d0f; }
.accept-button:disabled { background: linear-gradient(135deg, var(--emerald), var(--emerald-d)); border-color: #aefbc2; cursor: default; transform: none; box-shadow: none; }

.hold-progress {
  height: 10px; margin-top: 9px; padding: 1.5px;
  background: #14180d; border: 2px solid var(--stone-m); border-radius: 999px; overflow: hidden;
}
.hold-progress i {
  display: block; width: 0%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--fire) 0%, #ff9800 44%, var(--emerald) 50%, #4fc3f7 56%, var(--water) 100%);
}

/* 三菱形关卡里程碑 */
.temple-nodes {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 15px; padding: 11px 12px;
  border: 1.5px solid #eab94866; border-radius: 8px; background: #14190ecc;
}
.temple-node { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; text-align: center; }
.temple-node i {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px;
  transform: rotate(45deg); border: 1.5px solid #eab94866;
  background: #232b19; color: #7e856d; font-style: normal; font-size: 11px; transition: .35s;
}
.temple-node span { font: 800 10.5px/1.2 sans-serif; color: var(--muted); transition: .35s; }
.temple-node.lit i {
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  color: #10160a; border-color: #fff; box-shadow: 0 0 14px #41d86c99;
}
.temple-node.lit span { color: var(--gold-b); }
.temple-line { flex: .55; height: 2px; background: #eab94833; margin-bottom: 16px; transition: background .35s; }
.temple-line.lit { background: linear-gradient(90deg, var(--fire), var(--emerald), var(--water)); }

.mission-complete {
  display: none; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 11px; padding: 10px 13px;
  border: 2px solid var(--emerald); border-radius: 6px;
  background: #132818ee; color: var(--cream); font-size: 12px; position: relative; z-index: 1;
}
.mission-complete.show { display: flex; animation: fadeIn .3s ease; }
.mission-complete b { font: 900 10.5px/1 "Courier New", monospace; color: var(--emerald); }

.rules-guide {
  position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; align-items: center;
  gap: 10px; margin: 16px 0;
}
.rules-guide img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 10px #41d86c66); }
.rules-bubble {
  padding: 10px 12px; background: #192112ee;
  border: 1.5px solid #41d86c88; border-radius: 8px;
}
.rules-bubble b { display: block; margin-bottom: 4px; color: var(--emerald); font: 900 10px/1 "Courier New", monospace; letter-spacing: .12em; }
.rules-bubble span { display: block; font-size: 12px; line-height: 1.56; color: var(--cream); }

/* ===== ③ 森林冰火人三层机关 Canvas 游戏框 ===== */
.temple-game {
  position: relative; z-index: 1; margin-top: 16px; padding: 12px;
  border: 2.5px solid var(--gold); border-radius: 10px;
  background: linear-gradient(180deg, #1b2213 0%, #12170d 100%);
  box-shadow: inset 0 0 20px #00000077, 0 14px 28px #00000088;
}
.game-console-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.game-console-top small { display: block; color: var(--gold); font: 800 9px/1.2 "Courier New", monospace; letter-spacing: .1em; }
.game-console-top b { font-size: 14.5px; color: var(--cream); }
.game-console-top > span {
  padding: 5px 8px; border: 1px solid #eab94866; border-radius: 4px;
  background: #222a18; font: 900 10.5px/1 "Courier New", monospace; color: var(--gold-b); white-space: nowrap;
}

.game-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
  padding: 6px 8px; border-radius: 6px;
  background: #10140a; border: 1px solid #4c5733;
  font: 800 9.5px/1.2 "Courier New", monospace; color: var(--muted); text-align: center;
}
.game-stats b { display: block; margin-top: 2px; color: var(--cream); font-size: 12px; }
.game-stats b.fire-active { color: var(--fire-b); }
.game-stats b.water-active { color: var(--water-b); }

.game-subbar {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px;
}
.gem-strip { display: flex; align-items: center; gap: 4px; min-width: 0; }
.gem-strip img { width: 20px; height: 20px; flex: none; object-fit: contain; }
.gem-strip span { font-size: 11px; color: var(--gold-b); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-pill {
  flex: none; padding: 6px 10px; border: 1.5px solid var(--emerald); border-radius: 999px;
  background: #15361d; color: #d6ffe0; font-size: 11px; font-weight: 800; cursor: pointer;
}
.demo-pill.running { background: var(--emerald); color: #0a1b0e; }

.canvas-stage {
  position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden;
  border: 2px solid #59633e; background: #14190e;
}
#temple-canvas { display: block; width: 100%; height: auto; touch-action: manipulation; }

.game-intro, .game-result {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px; text-align: center;
  background: linear-gradient(180deg, #12170ceb 0%, #1c2414f5 100%);
  color: var(--cream); backdrop-filter: blur(4px);
}
.intro-icons img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 6px 12px #000); }
.game-intro h3, .game-result h3 { margin: 0 0 7px; font-size: 19px; color: var(--gold-b); }
.game-intro p { margin: 0 0 14px; font-size: 12px; line-height: 1.62; color: #e2e4d3; }
.intro-actions, .result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.game-intro button, .game-result button {
  padding: 10px 16px; border: 2px solid var(--gold-b); border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: var(--gold-dd); font-weight: 900; font-size: 13.5px; cursor: pointer;
}
.game-intro .btn-secondary, .game-result .btn-secondary {
  border-color: var(--emerald); background: #162e1c; color: #d4ffe0;
}

.rank-hex-wrap { position: relative; width: 76px; height: 76px; margin-bottom: 8px; }
.rank-hex-wrap img { width: 100%; height: 100%; object-fit: contain; }
.rank-hex-wrap b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 900 32px/1 "Georgia", serif; color: #fff; text-shadow: 0 2px 6px #000;
}
#game-result-kicker { margin: 0 0 4px; color: var(--emerald); font: 900 9.5px/1 "Courier New", monospace; letter-spacing: .12em; }
.game-result strong { display: block; margin-bottom: 6px; font: 900 20px/1.1 "Courier New", monospace; color: var(--gold-b); }
#game-reward { display: block; margin-bottom: 14px; font-size: 12px; color: #d6ffd9; }

.touch-controls {
  display: grid; grid-template-columns: 54px 54px 1fr 78px; gap: 6px; margin-top: 9px;
}
.touch-controls button {
  height: 46px; border: 2px solid var(--stone-m); border-radius: 8px;
  background: #232c19; color: var(--cream); font-weight: 900; font-size: 13.5px;
  cursor: pointer; touch-action: none; user-select: none;
  box-shadow: 0 3px 0 #0d1008;
}
.touch-controls button:active, .touch-controls button.pressed { transform: translateY(2px); box-shadow: 0 1px 0 #0d1008; }
.touch-controls .ctrl-move { font-size: 16px; background: #2c3720; border-color: var(--gold); color: var(--gold-b); }
.touch-controls .ctrl-switch {
  border-color: var(--fire-b);
  background: linear-gradient(90deg, #9c2208 0%, #3a230b 100%);
  color: #fff; font-size: 12px;
}
.touch-controls .ctrl-switch.is-water {
  border-color: var(--water-b);
  background: linear-gradient(90deg, #085b8f 0%, #102a42 100%);
}
.touch-controls .ctrl-jump {
  border-color: var(--emerald); background: linear-gradient(180deg, #2ca94c, var(--emerald-d)); color: #fff;
}
.game-tip { margin: 8px 0 0; text-align: center; font-size: 10.5px; color: var(--muted); }

/* ===== ④ 伙伴语音祝福（CSS Grid 零闪烁预解码） ===== */
.crew-section { background: radial-gradient(circle at 50% 0%, #242e1a 0%, var(--stone-dd) 75%); }
.crew-phone {
  position: relative; z-index: 1; padding: 14px 13px 16px;
  border: 2px solid var(--gold); border-radius: 14px;
  background: linear-gradient(180deg, #1d2415 0%, #12170d 100%);
  box-shadow: 0 0 24px #eab94822, inset 0 0 18px #00000066;
}
.phone-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px dashed #eab94855; color: var(--gold);
  font: 900 10px/1 "Courier New", monospace; letter-spacing: .14em;
}
.voice-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald); }
.voice-badge .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.voice-badge .eq b { display: block; width: 2.5px; background: var(--gold); border-radius: 2px; animation: eqBar .9s ease-in-out infinite alternate; }
.voice-badge .eq b:nth-child(1) { height: 5px; }
.voice-badge .eq b:nth-child(2) { height: 11px; animation-delay: .2s; }
.voice-badge .eq b:nth-child(3) { height: 7px; animation-delay: .4s; }
@keyframes eqBar { to { transform: scaleY(.45); } }

.crew-slides { display: grid; position: relative; min-height: 288px; }
.crew-slide {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4px 4px 0; gap: 10px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease;
}
.crew-slide.active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }

.crew-photo {
  position: relative; width: 152px; height: 170px;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  background: radial-gradient(circle at 50% 45%, #374324 0%, #151a0f 100%);
  border: 2.5px solid var(--gold); border-radius: 22px;
  box-shadow: inset 0 0 0 2px #10140a, 0 6px 0 var(--gold-dd);
  overflow: hidden;
}
.crew-photo.is-pending::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(234, 185, 72, .18) 50%, transparent 80%);
  background-size: 200% 100%; animation: crewPulse 1.2s linear infinite;
}
@keyframes crewPulse { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.crew-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; opacity: 1; transition: opacity .22s ease; }
.crew-photo.is-pending img { opacity: 0; }

.crew-name { margin: 0; color: var(--gold-b); font: 900 13.5px/1 sans-serif; letter-spacing: .1em; }
.crew-msg {
  margin: 0; padding: 10px 12px;
  background: var(--sand); color: var(--sand-ink);
  border: 1.5px solid var(--gold); border-radius: 8px;
  font-size: 13px; line-height: 1.62; max-width: 94%;
}
.crew-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 6px 4px; }
.crew-controls button {
  width: 38px; height: 38px; border: 1.5px solid var(--gold); border-radius: 50%;
  background: transparent; color: var(--gold-b); font: 900 14px/1 sans-serif; cursor: pointer;
}
.crew-controls button:active { background: var(--gold); color: var(--gold-dd); }
.crew-controls output { color: var(--cream); font: 800 11.5px/1 "Courier New", monospace; letter-spacing: .1em; }

/* ===== ⑤ 森林金钻路书与倒计时 ===== */
.schedule-section { background: linear-gradient(180deg, #1b2213 0%, #242c19 52%, #13180d 100%); }
.restaurant-screen {
  position: relative; border: 3px solid var(--gold); border-radius: 8px; overflow: hidden;
  box-shadow: 0 14px 28px #00000088; margin-bottom: 14px;
}
.restaurant-screen img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.restaurant-status {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 4px; background: #14190ee0; border: 1px solid var(--emerald);
  color: var(--cream); font: 900 9.5px/1 "Courier New", monospace; letter-spacing: .08em;
}
.restaurant-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }

.menu-board {
  padding: 15px; background: var(--sand); color: var(--sand-ink);
  border: 3px solid var(--stone-m); border-radius: 8px; box-shadow: 0 12px 24px #00000077;
}
.board-title { margin: 0 0 10px; font: 900 11px/1 "Courier New", monospace; letter-spacing: .14em; color: #7a5410; }
.menu-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #b9a777; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .time { font: 900 12.5px/1 "Courier New", monospace; color: var(--fire-d); }
.menu-item h4 { margin: 0 0 3px; font-size: 14.5px; color: #1b1509; }
.menu-item p { margin: 0; font-size: 12px; color: #4f4428; line-height: 1.45; }
.menu-item .stars { font-size: 12px; color: #b57b0e; white-space: nowrap; }
.menu-total {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px;
  border-top: 2px solid var(--stone-m); font: 900 11.5px/1 "Courier New", monospace; color: var(--emerald-d);
}

.countdown-card {
  display: grid; justify-items: center; gap: 4px; margin-top: 14px; padding: 15px;
  border: 2px solid var(--gold); border-radius: 8px; background: #14190ee6; text-align: center;
}
.countdown-card span { color: var(--gold); font: 900 9.5px/1 "Courier New", monospace; letter-spacing: .14em; }
.countdown-card b { font: 900 44px/1 "Courier New", monospace; color: var(--gold-b); text-shadow: 0 4px 0 #3f2804; }
.countdown-card small { color: var(--muted); font: 800 9.5px/1 "Courier New", monospace; letter-spacing: .16em; }
.gift-note {
  margin: 14px 0 0; padding: 11px 13px; border: 1.5px solid #eab94866; border-radius: 8px;
  background: #14190ed9; font-size: 12.5px; line-height: 1.65; color: var(--cream);
}
.gift-note b { display: inline-block; margin-right: 8px; color: var(--gold-b); }

/* ===== ⑥ 神殿大厅地图 ===== */
.arrival { background: linear-gradient(180deg, #12170d 0%, #1d2415 100%); }
.map-console {
  position: relative; z-index: 1; padding: 20px 16px; border: 2.5px solid var(--gold); border-radius: 10px;
  background: #151b0f; text-align: center; overflow: hidden; box-shadow: 0 14px 28px #00000088;
}
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; pointer-events: none; }
.map-grid {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-pulse { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; }
.map-pulse i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--emerald); animation: pulseMap 2.2s ease-out infinite; }
.map-pulse b {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fire), var(--water)); color: #fff; font-size: 15px;
}
@keyframes pulseMap { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.map-console .coordinate { position: relative; z-index: 1; margin: 0 0 6px; color: var(--gold); font: 900 9.5px/1 "Courier New", monospace; letter-spacing: .14em; }
.map-console h3 { position: relative; z-index: 1; margin: 0 0 7px; font-size: 18px; color: var(--cream); }
.map-console p { position: relative; z-index: 1; margin: 0 0 15px; font-size: 13px; line-height: 1.62; color: #e2e4d3; }
.map-console a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid var(--gold-b);
  background: var(--gold); color: var(--gold-dd); font-weight: 900; font-size: 13.5px; text-decoration: none;
}

/* ===== ⑦ 通关登记表单 ===== */
.rsvp-section { background: radial-gradient(circle at 50% 0%, #242d19 0%, var(--stone-dd) 85%); }
.rsvp-phone { position: relative; z-index: 1; border: 2.5px solid var(--gold); border-radius: 14px; background: #14190e; overflow: hidden; box-shadow: 0 14px 28px #00000099; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: #212a17; border-bottom: 1.5px solid #eab94866; color: var(--cream); font: 900 11px/1 "Courier New", monospace; }
.app-bar small { padding: 3px 8px; border-radius: 999px; background: #173a20; color: var(--emerald); font-size: 10px; }
#rsvp-form { display: grid; gap: 11px; padding: 14px; }
.demo-notice { margin: 0; padding: 9px 11px; border-radius: 6px; background: #242d19; border: 1px solid #eab94855; font-size: 11.5px; line-height: 1.55; color: var(--gold-b); }
#rsvp-form label > span, #rsvp-form legend { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 700; color: var(--cream); }
#rsvp-form label b, #rsvp-form legend b { color: var(--fire-b); }
#rsvp-form input:not([type="radio"]), #rsvp-form select, #rsvp-form textarea {
  width: 100%; padding: 10px 11px; border: 1.5px solid #59633e; border-radius: 6px;
  background: #0f130a; color: var(--cream); font-size: 13.5px;
}
#rsvp-form input:focus, #rsvp-form select:focus, #rsvp-form textarea:focus { outline: none; border-color: var(--gold); }
#rsvp-form fieldset { margin: 0; padding: 0; border: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-row label { display: flex; align-items: center; gap: 7px; padding: 10px; border: 1.5px solid #59633e; border-radius: 6px; background: #0f130a; cursor: pointer; }
#attendance-details { display: grid; gap: 11px; transition: opacity .25s; }
#attendance-details.is-disabled { opacity: .45; pointer-events: none; }
#rsvp-form label small { display: block; text-align: right; margin-top: 3px; font-size: 11px; color: var(--muted); }
.website-field { display: none !important; }
.form-error { margin: 0; padding: 8px 10px; border-radius: 6px; background: #5a1616; color: #ffd4d4; font-size: 12px; }
.submit-button {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; padding: 13px 16px; border: 2px solid var(--gold-b); border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d)); color: var(--gold-dd); font-weight: 900; font-size: 15px; cursor: pointer;
}
.rsvp-success, .rsvp-external { padding: 24px 16px; text-align: center; }
.success-radar { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border: 2px solid var(--emerald); border-radius: 50%; color: var(--emerald); font-size: 20px; }
.rsvp-success h3, .rsvp-external h3 { margin: 0 0 8px; color: var(--gold-b); font-size: 18px; }
.rsvp-success p, .rsvp-external p { margin: 0 0 15px; font-size: 13px; line-height: 1.6; color: var(--cream); }
#rsvp-edit, #rsvp-external-link {
  display: inline-block; padding: 10px 20px; border: 2px solid var(--gold); border-radius: 999px;
  background: transparent; color: var(--gold-b); font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer;
}

/* ===== ⑧ 终幕 ===== */
.ending { padding: 0; min-height: 520px; display: grid; align-items: end; background: var(--stone-dd); }
.ending img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: .88; }
.ending::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #11150c22 0%, #11150caa 52%, #11150cfa 100%); }
.ending-copy { position: relative; z-index: 2; padding: 36px 18px 46px; text-align: center; }
.ending-copy p { margin: 0 0 6px; color: var(--emerald); font: 900 10px/1 "Courier New", monospace; letter-spacing: .16em; }
.ending-copy h2 { margin: 0 0 10px; font-size: 22px; color: var(--cream); text-shadow: 0 3px 8px #000; }
.ending-copy b { display: block; margin-bottom: 6px; font-size: 28px; color: var(--gold-b); text-shadow: 0 3px 0 #4f3205, 0 8px 18px #000; }
.ending-copy span { font-size: 12.5px; color: var(--muted); }
footer { padding: 20px 16px 80px; text-align: center; background: #0d1009; border-top: 1px solid #354026; }
.footer-logo { font: 900 12px/1 "Courier New", monospace; color: var(--gold); letter-spacing: .08em; }
.footer-logo b { color: var(--cream); }
footer p { margin: 6px 0 0; font-size: 10px; color: #757c66; letter-spacing: .08em; }

/* ===== 快捷导航与音乐控件 ===== */
.quick-nav {
  position: fixed; z-index: 42; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); opacity: 0; transition: transform .25s, opacity .25s;
  display: flex; gap: 4px; padding: 5px;
  border: 1.5px solid #eab94888; border-radius: 999px;
  background: #14190ef2; backdrop-filter: blur(8px); box-shadow: 0 10px 24px #00000088;
}
.quick-nav.visible { transform: translate(-50%, 0); opacity: 1; }
.quick-nav a { padding: 7px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--muted); text-decoration: none; }
.quick-nav a.active { background: var(--gold); color: var(--gold-dd); }

.music-dock {
  position: fixed; z-index: 44; right: 14px; top: max(54px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 6px;
}
.music-dock p {
  margin: 0; padding: 5px 9px; border-radius: 999px; background: #14190ed9;
  border: 1px solid #eab94866; font-size: 10.5px; color: var(--gold-b);
}
#music-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold);
  background: #14190eed; color: var(--gold-b); font-size: 16px; cursor: pointer;
}
#music-toggle[aria-pressed="true"] { background: var(--emerald); border-color: #c2ffd1; color: #0a1b0e; animation: musicSpin 3s linear infinite; }
@keyframes musicSpin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  .music-dock p { display: none; }
}
@media (max-width: 380px) {
  .touch-controls { grid-template-columns: 46px 46px 1fr 70px; gap: 5px; }
}
