/* ===========================================================================
   旷野神祠婚礼 · 神庙冒险风视觉系统
   神祠青蓝 / 誓约金 / 羊皮纸米白 + 深岩蓝夜色底
   神祠几何纹、发光石板、神祠橙辉与符文点缀

   配色来源（从素材实测采样，非凭空指定）：
     封面落日主视觉：天空暖金 #f1d2a0 / #fdedc2，山峦冷蓝 #283c56 / #4d637e
     神祠石板地图  ：#1f4094 神祠蓝、#0d0f36 深岩蓝（13.8% 占比）、#94885f 地图褐
     旷野平原    ：#5fa84a 草地绿、#b8ead8 天光青
     古代神祠升起  ：#f0a83c 神祠橙辉、#b99455 岩金

   中文大字遵循三层 text-shadow 铁律（禁用 -webkit-text-stroke）
   =========================================================================== */

:root {
  /* ── 主色：神祠青蓝（行动色：按钮、强调边框、发光）── */
  --shrine:   #3d8ede;
  --shrine-d: #1f5fa8;
  --shrine-x: #10386a;
  --shrine-l: #86c6ff;

  /* ── 辅色：誓约金（权威色：标题、星级、描边）── */
  --tri:       #e9c14a;
  --tri-l:     #ffe4a0;
  --tri-d:     #a97f16;
  --tri-x:     #6d4f08;

  /* ── 羊皮纸：古文书的米白 ── */
  --cream:     #f6efda;
  --parch:     #e6dcbd;
  --parch-d:   #cabf96;

  /* ── 夜色底：封面山峦的冷蓝 + 岩层黑 ── */
  --night:     #101a2c;
  --night-d:   #070d18;
  --night-2:   #16233a;
  --night-3:   #1f3350;
  --slate:     #4d637e;
  --slate-d:   #2b3a52;

  /* ── 功能点缀 ── */
  --glow:      #f0a83c;   /* 神祠橙辉（小游戏、发光点缀） */
  --glow-l:    #ffcc7a;
  --leaf:      #5fa84a;   /* 旷野草绿（正确 / 完成态） */
  --leaf-d:    #31631f;
  --cyan:      #46d6e8;   /* 神祠符文青光（信息 / 链接 / 地图） */
  --cyan-d:    #1b8e9e;

  --ink:       #16233a;   /* 羊皮纸上的墨色 */
  --muted:     #8b9ab5;
  --shadow:    0 0 24px #00000066;
}

/* ===== 全局 ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night-d); }
body {
  margin: 0;
  /* 底色：斜向神祠网格 + 冷蓝渐变，模拟石板纹路 */
  background:
    repeating-linear-gradient(0deg, #00000000 0 23px, #ffffff04 23px 24px),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 28%, var(--night-2) 58%, var(--night-d) 100%);
  color: var(--cream);
  font-family: "Arial Narrow", "Microsoft YaHei", sans-serif;
  /* 反常规做法：默认开启抗锯齿保证中文清晰，仅对英文像素 UI 单独关掉 */
  -webkit-font-smoothing: antialiased;
  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; }

/* 英文像素 UI：关掉抗锯齿换取锯齿感（只作用于纯英文小字） */
.hero-hud, .mission-code, .hero-en, .game-console-top, .game-stats,
.card-top, .game-legend, .coordinate, .board-title, .phone-top,
.app-bar, .footer-logo, .menu-total, .countdown-card, .section-title div p,
.ticket-tag, .hud-order small, .hud-score small, .hud-score b,
.crew-controls output, .menu-item .time, .demo-notice, .game-tip {
  -webkit-font-smoothing: none;
}

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

/* ===== 手机外壳 ===== */
.phone-shell {
  width: min(100%, 480px);
  margin: auto;
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
  position: relative;
}

/* ===== ① 首页 · 旷野神祠 ===== */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: #050c18; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-shade {
  position: absolute; inset: 0;
  /* 径向压暗中心外圈 + 上下深蓝压边，保证大字与票根可读 */
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, #0a163055 60%, #060e1c 100%),
    linear-gradient(180deg, #050c18aa 0%, transparent 24% 32%, #0a162c9c 66%, #050c18 100%);
}
.hero-sparkle {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  /* 金色与青色的光点，模拟神祠科技的浮游粒子 */
  background-image:
    radial-gradient(circle, var(--tri-l) 0 1.3px, transparent 2.1px),
    radial-gradient(circle, var(--cyan) 0 1.1px, transparent 1.8px),
    radial-gradient(circle, #ffffff 0 1px, transparent 1.6px);
  background-position: 12% 14%, 76% 22%, 46% 7%;
  background-size: 128px 118px, 172px 142px, 224px 198px;
  animation: spark 3.4s steps(3) infinite;
}
@keyframes spark { 0%,100% { opacity: .38 } 50% { opacity: .86 } }

.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: 2px solid var(--shrine);
  border-radius: 2px;
  color: var(--shrine-l);
  background: #08152bcc;
  font: 900 8px/1 "Courier New", monospace;
  letter-spacing: .1em;
  box-shadow: 0 0 14px #3d8ede55, inset 0 0 10px #3d8ede22;
}
.hero-hud b { color: var(--tri); font-size: 10px; }

.hero-brand {
  position: absolute; z-index: 3; top: 11%;
  left: 50%; width: min(calc(100% - 40px), 290px);
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 0 #4a3008) drop-shadow(0 10px 18px #000000bb);
}
.hero-brand img { width: 100%; height: auto; }

.hero-copy {
  position: absolute; z-index: 3; top: 40%; left: 18px; right: 18px;
  text-align: center;
}
/* 委托编号：神祠蓝底 + 金边，四角带切角，像石板上的印记 */
.mission-code {
  display: inline-block; padding: 7px 14px; margin: 0;
  border: 2px solid var(--tri);
  border-radius: 2px;
  color: var(--tri-l); background: #10386acc;
  box-shadow: 0 0 16px #3d8ede66, inset 0 0 12px #3d8ede33;
  font: 900 clamp(9px, 2.6vw, 12px)/1 "Courier New", monospace;
  letter-spacing: .14em;
}
.hero-kicker { margin: 14px 0 4px; color: var(--cream); font-size: 11px; font-weight: 900; letter-spacing: .3em; }
.hero h1 {
  margin: 6px 0 0; color: var(--tri-l);
  font: 900 clamp(32px, 10.5vw, 50px)/1.06
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  letter-spacing: .09em;
  text-wrap: balance;   /* 占位符姓名较长时避免断成「新娘」+「名字」这类残行 */
  /* 三层硬阴影模拟描边：深金描边 + 焦金内影 + 夜空蓝投影（禁用 text-stroke） */
  text-shadow:
    0 3px 0 var(--tri-d),
    0 6px 0 var(--tri-x),
    0 11px 16px #030a17dd;
  -webkit-font-smoothing: antialiased;
}
.hero-en { margin: 12px 0 0; color: var(--cyan); font: 900 12px/1 "Courier New", monospace; letter-spacing: .18em; opacity: .92; }
/* 石板票根：深蓝底 + 青色虚线 + 角标 */
.mission-ticket {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 8px;
  width: min(92%, 350px); margin: 18px auto 0;
  padding: 11px 13px;
  border: 2px dashed var(--cyan);
  border-radius: 2px;
  background: #08152bdd; color: var(--cream);
  text-align: left;
  box-shadow: 0 0 18px #46d6e833, 0 4px 16px #00000088;
}
.mission-ticket span { color: var(--cyan); font: 900 8px/1.6 "Courier New", monospace; }
.mission-ticket b { font-size: 12px; line-height: 1.3; }
.hero-venue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.enter-button {
  position: absolute; z-index: 3;
  left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border: 3px solid var(--shrine-l);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--shrine) 0%, var(--shrine-d) 100%);
  color: var(--cream); font: 900 14px/1 sans-serif;
  letter-spacing: .1em;
  white-space: nowrap;   /* 同 quick-nav：只给 left:50% 时可用宽度只剩半屏，不加会折行 */
  box-shadow: 0 0 22px #3d8ede88, 0 5px 0 var(--shrine-x), 0 10px 20px #000000aa;
  cursor: pointer;
  animation: bounce 1.7s steps(2) infinite;
}
.enter-button:active { transform: translateX(-50%) translateY(3px); box-shadow: 0 2px 0 var(--shrine-x), 0 5px 10px #00000077; }
.enter-button b { font-size: 15px; color: var(--tri-l); }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0) } 50% { transform: translateX(-50%) translateY(-5px) } }

/* 底部依次让位给快捷导航（约 57px 高） */
.start-note {
  position: absolute; z-index: 3; left: 0; right: 0;
  bottom: calc(66px + env(safe-area-inset-bottom));
  margin: 0; text-align: center; color: var(--muted);
  font-size: 10px; letter-spacing: .14em;
}

/* ===== 滚动 HUD ===== */
/* 隐藏态必须用 visibility，不能只靠 translateY：
   sticky 元素的常规流位置在首屏之下，translateY(-100%) 只抬自身高度，首屏底部仍会露出。 */
.game-hud {
  position: sticky; z-index: 5; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 14px; padding: 9px 12px; gap: 8px;
  background: #08152bee; backdrop-filter: blur(8px);
  border: 2px solid var(--shrine); border-bottom-width: 3px;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 16px #3d8ede44;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .35s ease, visibility .35s;
}
.game-hud.visible { transform: translateY(0); visibility: visible; }
.hud-order { display: flex; flex-direction: column; gap: 2px; }
.hud-order small { color: var(--muted); font: 900 8px/1 "Courier New", monospace; letter-spacing: .14em; }
.hud-order b { color: var(--cream); font: 900 11px/1 sans-serif; }
.hud-score { display: flex; align-items: center; gap: 5px; }
.hud-score span { color: var(--tri); font-size: 13px; }
.hud-score b { color: var(--tri-l); font: 900 14px/1 "Courier New", monospace; }
.hud-score small { color: var(--muted); font: 900 8px/1 "Courier New", monospace; letter-spacing: .1em; }

/* ===== 通用 section ===== */
.story-section {
  position: relative; padding: 36px 20px 28px;
}
/* 神祠电路分隔带：深蓝底 + 青色主干线 + 金节点（用伪元素，避免被各 section 的 background 盖掉） */
.story-section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; z-index: 2;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 3px,
      var(--tri) 3px 5px,
      transparent 5px 26px),
    linear-gradient(180deg, var(--shrine) 0 2px, var(--night-d) 2px 6px, var(--shrine-d) 6px 7px, var(--night-d) 7px);
}
.section-title { display: flex; align-items: center; gap: 13px; margin: 0 0 18px; color: var(--cream); }
/* 序号徽记：菱形切角 + 青色发光，呼应神祠几何纹 */
.section-title span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--shrine) 0%, var(--shrine-d) 100%);
  color: var(--tri-l);
  border: 2px solid var(--tri);
  border-radius: 3px;
  font: 900 15px/1 sans-serif;
  box-shadow: 0 0 16px #3d8ede77, inset 0 0 10px #0a1a33;
  -webkit-font-smoothing: none;
}
.section-title div p { margin: 0 0 3px; color: var(--cyan); font: 900 9px/1 "Courier New", monospace; letter-spacing: .18em; }
.section-title h2 {
  margin: 0;
  font: 900 19px/1.15 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: .08em; color: var(--cream);
  -webkit-font-smoothing: antialiased;
}
.section-title.light span { background: linear-gradient(180deg, var(--tri) 0%, var(--tri-d) 100%); color: var(--night-d); box-shadow: 0 0 18px #e9c14a66; }

/* 渐入动画 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ===== ② 接单 · 神祠石板委托 ===== */
.briefing { background: radial-gradient(circle at 50% 0%, #1c3054 0%, var(--night) 68%); }
.slate-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 24%, #3d8ede26 0%, transparent 54%);
}
.rune-field {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, #46d6e899 0 2px, transparent 3px),
    radial-gradient(circle, #e9c14a88 0 1.5px, transparent 2.5px);
  background-position: 18% 60%, 74% 34%;
  background-size: 74px 88px, 108px 116px;
  animation: runeRise 9s linear infinite;
}
@keyframes runeRise {
  from { background-position: 18% 100%, 74% 80%; }
  to   { background-position: 18% -20%, 74% -40%; }
}

/* 羊皮纸委托卡：古文书的米白 + 金角标 + 神祠蓝描边 */
.order-card {
  position: relative;
  padding: 17px 15px 15px; margin-bottom: 20px;
  border: 3px solid var(--shrine-d);
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, #00000000 0 25px, #b99a5f2e 25px 26px),
    linear-gradient(180deg, var(--cream) 0%, var(--parch) 100%);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--tri) , inset 0 0 22px #a97f1622, 0 7px 0 #00000055;
}
/* 四角金三角装饰（纯 CSS，用 conic-gradient 画角标） */
.order-card::after {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  background:
    linear-gradient(var(--tri-d), var(--tri-d)) left  top    / 16px 2px no-repeat,
    linear-gradient(var(--tri-d), var(--tri-d)) left  top    / 2px 16px no-repeat,
    linear-gradient(var(--tri-d), var(--tri-d)) right top    / 16px 2px no-repeat,
    linear-gradient(var(--tri-d), var(--tri-d)) right top    / 2px 16px no-repeat,
    linear-gradient(var(--tri-d), var(--tri-d)) left  bottom / 16px 2px no-repeat,
    linear-gradient(var(--tri-d), var(--tri-d)) left  bottom / 2px 16px no-repeat,
    linear-gradient(var(--tri-d), var(--tri-d)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--tri-d), var(--tri-d)) right bottom / 2px 16px no-repeat;
}
.card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; padding-bottom: 7px;
  border-bottom: 2px dashed var(--shrine-d);
  font: 900 10px/1 "Courier New", monospace; letter-spacing: .12em;
}
.card-top span { color: var(--shrine-d); }
.card-top b { color: var(--night-d); background: var(--tri); padding: 3px 7px; border-radius: 2px; font-size: 9px; border: 2px solid var(--tri-d); }

.order-card h3 {
  margin: 6px 0 8px;
  font: 900 20px/1.25 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--shrine-x); letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}
.order-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #22304a; }
.order-card dl { margin: 0 0 15px; padding: 0; }
.order-card dl > div {
  display: grid; grid-template-columns: 62px 1fr; gap: 8px;
  padding: 6px 0; border-bottom: 1px dotted #a8895c;
  font: 900 11px/1.3 "Courier New", monospace;
}
.order-card dl > div:last-child { border-bottom: 0; }
.order-card dt { color: var(--shrine-d); letter-spacing: .12em; }
.order-card dd { margin: 0; color: var(--ink); }

.accept-button {
  display: block; width: 100%;
  padding: 14px;
  border: 3px solid var(--shrine-x);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--shrine) 0%, var(--shrine-d) 100%);
  color: var(--cream); font: 900 15px/1 sans-serif; letter-spacing: .12em;
  box-shadow: 0 4px 0 var(--shrine-x), inset 0 0 16px #0a1a3366;
  cursor: pointer;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.hold-progress { height: 6px; margin-top: 8px; border: 1px solid var(--shrine-d); border-radius: 2px; background: #cabf9688; overflow: hidden; }
.hold-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--tri)); transition: width .1s linear; }

.mission-complete {
  display: none; margin: 0 0 16px; padding: 12px;
  border: 3px solid var(--cyan-d);
  border-radius: 3px;
  background: #07242b; text-align: center; color: var(--cream);
  box-shadow: 0 0 20px #46d6e866;
}
.mission-complete.show { display: block; animation: glowPulse 1.3s steps(2) infinite; }
.mission-complete b { display: block; color: var(--cyan); font: 900 13px/1 "Courier New", monospace; letter-spacing: .16em; margin-bottom: 4px; }
.mission-complete span { font-size: 12px; }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 14px #46d6e855 } 50% { box-shadow: 0 0 28px #46d6e899 } }

/* 证婚人石板 */
.sage-stage {
  position: relative; margin: 0 auto 26px; max-width: 360px;
  padding: 14px 14px 14px 106px; min-height: 128px;
  border: 3px solid var(--shrine-x);
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, #00000000 0 21px, #00000030 21px 22px),
    linear-gradient(135deg, var(--slate-d) 0%, #131f33 100%);
  box-shadow: inset 0 0 0 2px var(--shrine), inset 0 0 26px #3d8ede33, 0 7px 0 #00000055, 0 10px 26px #00000088;
}
.sage-stage img {
  position: absolute; left: -4px; bottom: -8px;
  width: 106px; height: auto;
  filter: drop-shadow(0 4px 0 #0a1424) drop-shadow(0 0 12px #3d8ede66);
  animation: sway 3.6s steps(2) infinite;
}
@keyframes sway { 0%,100% { transform: rotate(-2deg) } 50% { transform: rotate(2deg) } }
.sage-bubble b { display: block; color: var(--tri-l); font: 900 11px/1 "Courier New", monospace; letter-spacing: .16em; margin-bottom: 6px; -webkit-font-smoothing: none; }
.sage-bubble span { font-size: 13px; line-height: 1.6; color: var(--cream); }

/* ===== ③ 限时神庙试炼小游戏 ===== */
.trial-game {
  position: relative;
  margin: 6px -4px 0; padding: 14px 14px 16px;
  border: 3px solid var(--shrine-x);
  border-radius: 3px;
  /* 底纹：神祠机关石壁 + 神祠橙辉从顶部落下 */
  background:
    repeating-linear-gradient(45deg, #16324f 0 8px, #0e2138 8px 16px),
    linear-gradient(180deg, #0e2138 0%, #060f1c 100%);
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--shrine), inset 0 0 40px #3d8ede22, 0 6px 18px #00000088;
}
.game-console-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 10px; padding-bottom: 10px;
  border-bottom: 2px solid var(--shrine);
}
.game-console-top small { display: block; color: var(--cyan); font: 900 9px/1.2 "Courier New", monospace; letter-spacing: .16em; margin-bottom: 3px; }
.game-console-top b { color: var(--cream); font: 900 14px/1.25 sans-serif; letter-spacing: .05em; }
.game-console-top span { color: var(--tri); font: 900 10px/1 "Courier New", monospace; }
.game-console-top strong { color: var(--cream); font-size: 13px; }

.game-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 8px;
  margin-bottom: 10px; padding: 8px 10px;
  background: #03091388; border: 1px solid var(--shrine-d); border-radius: 2px;
  font: 900 10px/1.2 "Courier New", monospace;
}
.game-stats span { display: flex; justify-content: space-between; color: var(--cream); }
.game-stats b { color: var(--tri-l); }

.order-ticket {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--shrine-d); border-radius: 2px;
  box-shadow: 3px 4px 0 var(--shrine-x);
}
.order-ticket.show { display: flex; }
.ticket-tag {
  background: var(--shrine-d); color: var(--cream);
  padding: 3px 7px; border-radius: 2px;
  font: 900 9px/1.2 "Courier New", monospace; letter-spacing: .12em;
}
.order-ticket b { font: 900 13px/1 sans-serif; letter-spacing: .05em; }
.order-parts { display: flex; gap: 4px; flex-wrap: wrap; }
.order-parts .part-chip {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: #f6efdacc; border: 1.5px solid var(--shrine-d); border-radius: 2px;
  font-size: 14px;
}
.order-parts .part-chip.done { background: var(--leaf); border-color: var(--leaf-d); }
.order-parts .part-chip.current { outline: 2px solid var(--glow); outline-offset: 1px; animation: blink .9s steps(2) infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

.game-stage {
  position: relative;
  padding: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, #f0a83c2e 0%, transparent 70%),
    linear-gradient(180deg, #04101d 0%, #020812 100%);
  border: 2px solid var(--shrine-d); border-radius: 2px;
  min-height: 240px;
  overflow: hidden;
}
.game-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
/* 符文块：深色石板上嵌发光符文，契合神祠机关语言 */
.game-tile {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background:
    radial-gradient(circle at 50% 34%, #2a4a72 0%, #12233c 62%, #0a1424 100%);
  border: 2.5px solid var(--shrine);
  border-radius: 3px;
  box-shadow: 0 4px 0 var(--shrine-x), inset 0 0 14px #46d6e833;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.game-tile:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--shrine-x), inset 0 0 18px #46d6e866; }
.game-tile.flash-correct { animation: flashGood .38s ease; }
.game-tile.flash-wrong { animation: flashBad .38s ease; }
@keyframes flashGood {
  0%   { background: radial-gradient(circle, var(--tri-l) 0%, var(--glow) 70%); box-shadow: 0 0 22px var(--glow); }
  100% { background: radial-gradient(circle at 50% 34%, #2a4a72 0%, #12233c 62%, #0a1424 100%); }
}
@keyframes flashBad {
  0%   { background: radial-gradient(circle, #ff8a5c 0%, #a8341a 70%); box-shadow: 0 0 22px #ff6b3d; border-color: #ff8a5c; }
  100% { background: radial-gradient(circle at 50% 34%, #2a4a72 0%, #12233c 62%, #0a1424 100%); }
}

.game-intro, .game-result {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: #030a14dd; backdrop-filter: blur(4px);
  text-align: center; padding: 20px;
}
.rune-core { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 12px var(--glow)); animation: sway 3.6s steps(2) infinite; }
.game-intro h3, .game-result h3 {
  margin: 0; color: var(--tri-l); font: 900 18px/1.25 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .06em; -webkit-font-smoothing: antialiased;
}
.game-intro p, .game-result span { margin: 0; color: var(--cream); font-size: 12px; line-height: 1.7; }
.game-intro button, .game-result button, .submit-button {
  margin-top: 6px; padding: 11px 20px;
  border: 3px solid var(--shrine-x); border-radius: 2px;
  background: linear-gradient(180deg, var(--shrine), var(--shrine-d));
  color: var(--cream); font: 900 13px/1 sans-serif; letter-spacing: .12em;
  box-shadow: 0 4px 0 var(--shrine-x);
  cursor: pointer;
}
.game-result strong { display: block; margin: 2px 0; color: var(--tri); font: 900 28px/1 "Courier New", monospace; letter-spacing: .04em; -webkit-font-smoothing: none; }
.game-result > span { color: var(--tri-l); font: 900 18px/1 sans-serif; letter-spacing: .1em; margin-bottom: 4px; }
.game-result > b { display: block; padding: 6px 10px; background: var(--glow); color: #2a1400; border-radius: 2px; font-size: 12px; }

.game-legend {
  display: flex; justify-content: space-around;
  margin-top: 10px; padding: 7px 8px;
  background: #03091388; border-radius: 2px;
  font: 900 10px/1 "Courier New", monospace;
}
.game-legend span { color: var(--cream); }
.game-tip { margin: 10px 0 0; text-align: center; color: var(--cyan); font-size: 11px; letter-spacing: .04em; }

/* ===== ④ 英杰来电 ===== */
.crew-section { background: radial-gradient(circle at 50% 0%, #1b2f4e 0%, var(--night) 68%); }
.crew-phone {
  position: relative; padding: 12px 12px 16px;
  border: 3px solid var(--shrine-x); border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, #00000000 0 21px, #00000022 21px 22px),
    linear-gradient(180deg, var(--slate-d) 0%, #0e1a2c 100%);
  box-shadow: inset 0 0 0 2px var(--shrine), inset 0 0 30px #3d8ede22, 0 6px 0 #00000055, 0 8px 22px #00000088;
}
.phone-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--cyan); color: var(--shrine-l);
  font: 900 10px/1 "Courier New", monospace; letter-spacing: .16em;
}
.phone-top b { color: var(--cyan); animation: blink 1.4s steps(2) infinite; }
.crew-slides { position: relative; min-height: 258px; }
.crew-slide {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: 8px 4px 0; gap: 10px;
}
.crew-slide.active { display: flex; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
/* 头像框：神祠圆形符文环（金属环 + 发光） */
.crew-photo {
  width: 128px; height: 128px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #2a4a72 0%, #0a1424 100%);
  border: 3px solid var(--tri);
  border-radius: 50%;
  box-shadow: 0 0 20px #3d8ede77, inset 0 0 18px #00000099, 0 4px 0 #00000055;
  overflow: hidden;
}
.crew-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-name { margin: 0; color: var(--tri-l); font: 900 14px/1 sans-serif; letter-spacing: .1em; }
/* 对话气泡：羊皮纸 + 金色描边 */
.crew-msg {
  margin: 0; padding: 10px 13px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--parch) 100%);
  color: var(--ink); border: 2px solid var(--tri-d); border-radius: 3px;
  font-size: 13px; line-height: 1.7; max-width: 92%;
  box-shadow: 0 3px 0 #00000055;
}

.crew-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding: 6px 4px;
}
.crew-controls button {
  width: 42px; height: 42px;
  border: 2px solid var(--shrine); border-radius: 3px;
  background: #0a1730; color: var(--shrine-l);
  font: 900 14px/1 sans-serif; cursor: pointer;
  box-shadow: 0 3px 0 var(--shrine-x);
}
.crew-controls button:active { background: var(--shrine); color: var(--night-d); }
.crew-controls output { color: var(--cyan); font: 900 11px/1 "Courier New", monospace; letter-spacing: .12em; }

/* ===== ⑤ 婚礼当天日程 ===== */
.schedule-section {
  background: linear-gradient(180deg, #060f1c 0%, #16324f 50%, #060f1c 100%);
  border-top: 0;
}
.scene-screen {
  position: relative; margin: 0 0 18px;
  border: 3px solid var(--shrine-x); border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--shrine), 0 6px 0 #00000055;
}
.scene-screen img { width: 100%; height: auto; }
/* 状态胶囊靠左放：右上角是固定的音乐坞（约 46px 宽），
   放右侧会被常驻的坞按钮压住一截。 */
.scene-status {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: var(--shrine-d); color: var(--cream);
  border: 2px solid var(--tri); border-radius: 2px;
  font: 900 9px/1 "Courier New", monospace; letter-spacing: .1em;
  -webkit-font-smoothing: none;
}
.scene-status i { width: 8px; height: 8px; background: var(--glow); border-radius: 50%; animation: blink 1.2s steps(2) infinite; }

.menu-board {
  padding: 14px 12px 12px;
  border: 3px solid var(--shrine-x); border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, #00000000 0 25px, #ffffff0d 25px 26px),
    linear-gradient(180deg, #0d1a2c 0%, #060d18 100%);
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--shrine), inset 0 0 30px #3d8ede1f, 0 6px 14px #00000088;
}
.board-title { margin: 0 0 10px; text-align: center; color: var(--cyan); font: 900 11px/1 "Courier New", monospace; letter-spacing: .2em; }
.menu-item {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 10px;
  padding: 9px 8px; border-bottom: 1px dashed #46d6e844;
  font-size: 12px;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .time { color: var(--tri); font: 900 14px/1 "Courier New", monospace; }
.menu-item h4 {
  margin: 0 0 3px; color: var(--cream);
  font: 900 13px/1.3 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .06em; -webkit-font-smoothing: antialiased;
}
.menu-item p { margin: 0; color: #9db0cc; font-size: 11px; line-height: 1.6; }
.menu-item .stars { color: var(--tri); font: 900 13px/1 sans-serif; letter-spacing: .04em; }
.menu-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 8px;
  border-top: 2px solid var(--shrine);
  font: 900 11px/1 "Courier New", monospace; letter-spacing: .16em;
}
.menu-total span { color: var(--cyan); }
.menu-total b { color: var(--leaf); font-size: 16px; }

.countdown-card {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 20px auto 0; padding: 14px 18px;
  border: 3px solid var(--cyan-d); border-radius: 3px;
  background: #04101d; color: var(--cyan);
  box-shadow: 0 0 20px #46d6e855, inset 0 0 16px #46d6e822;
  width: fit-content;
}
.countdown-card span { font: 900 10px/1 "Courier New", monospace; letter-spacing: .18em; color: var(--cream); }
.countdown-card b { font: 900 36px/1 "Courier New", monospace; color: var(--tri); letter-spacing: .04em; }
.countdown-card small { font: 900 10px/1 "Courier New", monospace; letter-spacing: .18em; color: var(--cream); }

.gift-note {
  margin: 18px 0 0; padding: 10px 14px;
  border-left: 5px solid var(--tri);
  background: var(--night-2);
  border-radius: 0 3px 3px 0;
}
.gift-note b { display: block; color: var(--tri); font: 900 10px/1 "Courier New", monospace; letter-spacing: .18em; margin-bottom: 4px; }
.gift-note span { color: var(--cream); font-size: 12px; line-height: 1.7; }

/* ===== ⑥ 前往城堡镇 ===== */
.arrival { background: radial-gradient(circle at 50% 100%, #173253 0%, var(--night) 70%); }
.map-console {
  position: relative; padding: 22px 18px 18px;
  border: 3px solid var(--cyan-d); border-radius: 3px;
  background: #04101d;
  box-shadow: 0 0 24px #46d6e855, inset 0 0 20px #46d6e822;
  text-align: center;
  overflow: hidden;
}
/* 神祠石板地图作底：低透明度铺底，既点题又不抢正文 */
.map-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .22; filter: saturate(.75) brightness(.72);
  z-index: 0;
}
/* 内容层统一抬到地图之上；.map-art / .map-grid 单独保持绝对定位 */
.map-console > * { position: relative; z-index: 1; }
.map-grid {
  position: absolute; inset: 8px; pointer-events: none;
  background-image:
    linear-gradient(var(--cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .12; border-radius: 2px; z-index: 0;
}
.map-pulse { position: relative; margin: 0 auto 14px; width: 64px; height: 64px; z-index: 1; }
.map-pulse i, .map-pulse b { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.map-pulse i { width: 100%; height: 100%; background: var(--glow); opacity: .25; animation: pulseRing 1.6s ease infinite; }
.map-pulse b {
  width: 36px; height: 36px;
  background: linear-gradient(180deg, var(--tri), var(--tri-d)); color: var(--night-d);
  border: 3px solid var(--tri-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 20px var(--glow);
}
@keyframes pulseRing { 0% { transform: scale(.6); opacity: .5 } 100% { transform: scale(1.3); opacity: 0 } }
.coordinate { margin: 0 0 4px; color: var(--cyan); font: 900 10px/1 "Courier New", monospace; letter-spacing: .2em; }
.map-console h3 {
  margin: 0 0 8px; color: var(--tri-l);
  font: 900 16px/1.35 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .05em; -webkit-font-smoothing: antialiased;
}
.map-console p { margin: 0 0 14px; color: var(--cream); font-size: 12px; line-height: 1.7; }
.map-console a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; border: 2px solid var(--cyan); border-radius: 2px;
  background: #04101dcc; color: var(--cyan);
  font: 900 12px/1 sans-serif; letter-spacing: .12em;
  text-decoration: none;
}
.map-console a:active { background: var(--cyan); color: #04101d; }

/* ===== ⑦ 旅人报到 ===== */
.rsvp-section { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.rsvp-phone {
  padding: 14px 14px 16px;
  border: 3px solid var(--shrine-x); border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, #00000000 0 21px, #00000022 21px 22px),
    linear-gradient(180deg, var(--slate-d) 0%, #0e1a2c 100%);
  box-shadow: inset 0 0 0 2px var(--shrine), inset 0 0 30px #3d8ede1f, 0 6px 18px #00000066;
}
.app-bar {
  display: flex; align-items: center; gap: 8px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--cyan);
  color: var(--shrine-l); font: 900 10px/1 "Courier New", monospace; letter-spacing: .16em;
}
.app-bar span { color: var(--glow); font-size: 12px; }
.app-bar small { margin-left: auto; color: var(--leaf); font-size: 9px; letter-spacing: .12em; }
.rsvp-phone form { padding-top: 12px; }
.demo-notice {
  margin: 0 0 14px; padding: 8px 10px;
  background: #00000044; border-left: 3px solid var(--cyan);
  color: var(--shrine-l); font-size: 11px; line-height: 1.6;
}
.rsvp-phone label { display: block; margin: 0 0 12px; }
.rsvp-phone label > span { display: block; margin-bottom: 5px; color: var(--cream); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.rsvp-phone label > span b { color: var(--tri); }
.rsvp-phone input, .rsvp-phone select, .rsvp-phone textarea {
  width: 100%; padding: 10px 11px;
  border: 2px solid var(--shrine-d); border-radius: 2px;
  background: var(--cream); color: var(--ink);
  font-size: 13px; line-height: 1.45; letter-spacing: .02em;
  outline: none;
}
.rsvp-phone input::placeholder, .rsvp-phone textarea::placeholder { color: #8a8154; }
.rsvp-phone input:focus, .rsvp-phone select:focus, .rsvp-phone textarea:focus {
  border-color: var(--shrine);
  box-shadow: 0 0 0 3px #3d8ede55;
}
.rsvp-phone fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.rsvp-phone legend { padding: 0 0 6px; color: var(--cream); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.rsvp-phone legend b { color: var(--tri); }
.choice-row { display: flex; gap: 8px; }
.choice-row label {
  flex: 1; margin: 0; padding: 10px;
  border: 2px solid var(--shrine-d); border-radius: 2px;
  background: var(--cream);
  text-align: center; cursor: pointer;
}
.choice-row input { display: none; }
/* 特异性必须 ≥ `.rsvp-phone label > span`（0,2,1），否则会被它的 color:cream 覆盖，
   未选中的那个选项就变成「米白字 + 米白底」而完全看不见。 */
.rsvp-phone .choice-row label span { display: block; color: var(--ink); font: 900 12px/1 sans-serif; letter-spacing: .06em; }
.rsvp-phone .choice-row label:has(input:checked) { background: var(--leaf); border-color: var(--leaf-d); box-shadow: inset 0 0 0 2px var(--tri-l); }
.rsvp-phone .choice-row label:has(input:checked) span { color: #0b2107; }
.rsvp-phone textarea { resize: vertical; min-height: 70px; font-size: 13px; }
.rsvp-phone label small { display: flex; justify-content: flex-end; margin-top: 3px; color: var(--parch-d); font: 900 10px/1 "Courier New", monospace; }
.rsvp-phone label small output { color: var(--tri-l); }
.form-error {
  margin: 0 0 10px; padding: 8px 10px;
  background: var(--shrine-x); color: var(--cream); border-radius: 2px;
  font-size: 12px;
}
.submit-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  border: 3px solid var(--shrine-x); border-radius: 2px;
  background: linear-gradient(180deg, var(--shrine), var(--shrine-d));
  color: var(--cream); font: 900 14px/1 sans-serif; letter-spacing: .12em;
  box-shadow: 0 4px 0 var(--shrine-x); cursor: pointer;
}
.submit-button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--shrine-x); }
.submit-button b { color: var(--tri-l); font-size: 14px; }
.rsvp-success, .rsvp-external { margin-top: 14px; padding: 16px; text-align: center; }
.success-radar { position: relative; width: 64px; height: 64px; margin: 0 auto 12px; }
.success-radar i, .success-radar b {
  position: absolute; inset: 0; margin: auto;
  display: flex; align-items: center; justify-content: center;
}
.success-radar i { border-radius: 50%; background: var(--leaf); opacity: .28; animation: pulseRing 1.6s ease infinite; }
.success-radar b {
  width: 38px; height: 38px; border-radius: 3px;
  background: linear-gradient(180deg, var(--tri), var(--tri-d)); color: var(--night-d);
  font: 900 18px/1 sans-serif;
}
.rsvp-success h3, .rsvp-external h3 {
  margin: 0 0 8px; color: var(--tri-l);
  font: 900 16px/1.3 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .06em; -webkit-font-smoothing: antialiased;
}
.rsvp-success p, .rsvp-external p { margin: 0 0 14px; color: var(--cream); font-size: 12px; line-height: 1.7; }
.rsvp-success button {
  padding: 10px 18px; border: 2px solid var(--cyan); border-radius: 2px;
  background: transparent; color: var(--cyan); font: 900 11px/1 sans-serif;
  letter-spacing: .12em; cursor: pointer;
}
.rsvp-external a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; border: 2px solid var(--leaf); border-radius: 2px;
  color: var(--leaf); text-decoration: none;
  font: 900 12px/1 sans-serif; letter-spacing: .12em;
}

/* ===== ⑧ 结尾 · 神祠见 ===== */
.ending { position: relative; min-height: 340px; overflow: hidden; }
.ending img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.ending-copy {
  position: absolute; left: 18px; right: 18px; bottom: 48px; z-index: 2;
  padding: 15px;
  border: 3px solid var(--shrine-x); border-radius: 3px;
  background: #050c18e0; backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 2px var(--shrine), inset 0 0 24px #3d8ede33, 0 6px 18px #000000aa;
  text-align: center; color: var(--cream);
}
.ending-copy p { margin: 0 0 4px; color: var(--cyan); font: 900 10px/1 "Courier New", monospace; letter-spacing: .2em; }
.ending-copy h2 {
  margin: 6px 0 8px; color: var(--tri-l);
  font: 900 clamp(19px, 5.6vw, 25px)/1.25 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: .08em;
  text-shadow: 0 2px 0 var(--tri-d), 0 4px 0 var(--tri-x);
  -webkit-font-smoothing: antialiased;
}
.ending-copy b { display: block; margin: 4px 0; color: var(--cream); font: 900 14px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .06em; -webkit-font-smoothing: antialiased; }
.ending-copy span { color: var(--cyan); font: 900 11px/1 "Courier New", monospace; letter-spacing: .12em; }

footer { padding: 20px 14px 14px; text-align: center; background: var(--night-d); }
.footer-logo {
  display: inline-block; padding: 6px 14px;
  border: 2px solid var(--shrine); border-radius: 2px;
  color: var(--shrine-l); background: transparent;
  font: 900 13px/1 "Courier New", monospace; letter-spacing: .16em;
  box-shadow: 0 0 14px #3d8ede44;
}
.footer-logo b { color: var(--tri); }
footer p { margin: 8px 0 0; color: var(--muted); font: 900 9px/1.6 "Courier New", monospace; letter-spacing: .12em; }

/* ===== 底部快捷导航 ===== */
/* 注意：position:fixed 只给 left:50% 时，可用宽度会被砍成半个视口，
   flex 子项被压到 min-content 导致双字标签折行。改用 left/right + margin:auto 居中。 */
.quick-nav {
  position: fixed; z-index: 10;
  left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom));
  width: fit-content;
  max-width: calc(100% - 20px);
  margin-inline: auto;
  display: flex; gap: 4px; padding: 5px;
  border: 2px solid var(--shrine); border-radius: 3px;
  background: #08152bee; backdrop-filter: blur(8px);
  box-shadow: 0 0 18px #3d8ede55, 0 4px 0 #00000066, 0 6px 16px #00000099;
}
.quick-nav a {
  padding: 8px 12px; border-radius: 2px;
  color: var(--cream); font: 900 11px/1 sans-serif; letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;      /* 标签永不折行 */
  flex: none;
}
.quick-nav a:active, .quick-nav a:hover,
.quick-nav a.active { background: var(--shrine); color: var(--cream); }

/* ===== 音乐坞 ===== */
/* 默认收起为纯图标：常驻展开会遮住右上角的正文内容（390px 屏上占近四成宽度） */
.music-dock {
  position: fixed; z-index: 11;
  right: calc(12px + env(safe-area-inset-right));
  top: calc(58px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 6px;
  padding: 5px;
  background: #08152bdd; backdrop-filter: blur(6px);
  border: 2px solid var(--shrine); border-radius: 3px;
  box-shadow: 0 0 14px #3d8ede44, 0 3px 0 #00000066;
}
.music-dock p {
  display: none; margin: 0 2px 0 4px;
  color: var(--cream); font: 900 9px/1.3 "Courier New", monospace;
  letter-spacing: .1em; max-width: 96px; -webkit-font-smoothing: none;
}
.music-dock:hover p,
.music-dock:focus-within p,
.music-dock.expanded p { display: block; }
.music-dock button {
  width: 32px; height: 32px;
  border: 2px solid var(--shrine-x); border-radius: 3px;
  background: linear-gradient(180deg, var(--shrine), var(--shrine-d));
  color: var(--tri-l);
  font-size: 14px; cursor: pointer;
  box-shadow: 0 2px 0 var(--shrine-x);
  flex: none;
}
.music-dock button[aria-pressed="true"] { background: linear-gradient(180deg, var(--tri), var(--tri-d)); color: var(--night-d); box-shadow: 0 2px 0 var(--tri-x); }
.music-dock button:active { transform: translateY(1px); }

/* ===== 极窄屏兜底（375px 及以下）===== */
@media (max-width: 375px) {
  .hero h1 { letter-spacing: .06em; }
  .game-tile { font-size: 25px; }
  .menu-item { grid-template-columns: 52px 1fr auto; gap: 8px; }
  .sage-stage { padding-left: 96px; }
  .sage-stage img { width: 96px; }
}

/* ===== product chrome from deep-tide (adapted) ===== */
/* —— F1 Studio / F2 Paywall / Host bar / Couple photos —— */
body.is-studio{overflow:hidden}
body.is-guest .host-bar{display:none!important}
.studio-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-start;justify-content:center;padding:max(16px,env(safe-area-inset-top)) 14px 24px;overflow:auto;background:radial-gradient(circle at 50% 0,#0a5d8a,#02101f 72%)}
.studio-overlay[hidden]{display:none!important}
.studio-panel{width:min(100%,440px);margin:auto;padding:18px 16px 22px;border:4px solid #16425c;background:var(--paper);color:#17334a;box-shadow:8px 10px #001829}
.studio-head{text-align:center;margin-bottom:14px}
.studio-head img{width:120px;margin:0 auto 8px}
.studio-head p{margin:0;color:#087daa;font:900 9px/1 monospace;letter-spacing:.14em}
.studio-head h1{margin:8px 0 6px;color:#075f91;font:900 24px/1.1 Impact,"Arial Black","Microsoft YaHei",sans-serif}
.studio-head span{display:block;color:#5a6a78;font-size:11px;line-height:1.5;font-weight:700}
.studio-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#studio-form label{display:block;margin-bottom:12px}
#studio-form label>span{display:block;margin-bottom:5px;color:#a94e35;font:900 9px/1.3 monospace}
#studio-form label>span b{color:#d12f4a}
#studio-form input,#studio-form select,#studio-form textarea{width:100%;padding:11px;border:2px solid #c59d61;background:#fffdf4;color:#17334a;font-size:13px;font-weight:700}
#studio-form textarea{resize:vertical;line-height:1.5}
.studio-error{margin:0 0 10px;padding:9px;border:2px solid #ff6a6e;color:#7a1c28;background:#ffe0e2;font-size:11px;font-weight:800}
.studio-submit{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 16px;border:3px solid #775014;color:#123253;background:var(--yellow);box-shadow:4px 5px #00335c;font-size:14px;font-weight:900;cursor:pointer}
.paywall-modal,.share-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:18px;background:#00101fcc;backdrop-filter:blur(4px)}
.paywall-modal[hidden],.share-modal[hidden]{display:none!important}
.paywall-panel{position:relative;width:min(100%,360px);padding:22px 18px 18px;border:4px solid #ffe55d;background:#0a2744;color:#e8ffff;box-shadow:0 0 0 4px #003052,8px 10px #0008;text-align:center}
.paywall-close{position:absolute;right:8px;top:8px;width:32px;height:32px;border:2px solid #557ba1;color:#fff;background:#142d4b;font-size:18px;cursor:pointer}
.paywall-label{margin:0 0 8px;color:#74eee8;font:900 9px/1 monospace;letter-spacing:.12em}
.paywall-panel h2{margin:0 0 10px;color:#ffe04c;font-size:20px}
.paywall-panel>p{margin:0 0 10px;color:#b8dded;font-size:12px;line-height:1.7;font-weight:700}
.paywall-hint{color:#ffe98b!important;font-size:11px!important}
.paywall-sim{display:block;width:100%;margin-top:8px;padding:13px;border:3px solid #775014;color:#123253;background:var(--yellow);box-shadow:3px 4px #001829;font-size:13px;font-weight:900;cursor:pointer}
.paywall-continue{display:block;width:100%;margin-top:8px;padding:11px;border:2px solid #557ba1;color:#cceff3;background:transparent;font-size:12px;font-weight:800;cursor:pointer}
.share-url{width:100%;margin:8px 0 4px;padding:11px;border:2px solid #557ba1;background:#061a31;color:#9af5f2;font:800 11px/1.3 monospace}
.share-copied{margin:8px 0 0;color:#8beb50;font:900 11px/1 monospace}
.host-bar{position:fixed;z-index:25;left:50%;bottom:max(52px,calc(env(safe-area-inset-bottom) + 48px));display:flex;gap:6px;align-items:center;width:min(calc(100% - 16px),464px);padding:7px;border:2px solid #5fa5b7;background:#05172df2;box-shadow:4px 4px #0009;transform:translateX(-50%);backdrop-filter:blur(7px)}
.host-btn{flex:1;min-height:36px;padding:8px 4px;border:2px solid #557ba1;color:#c9ffff;background:#0a2948;font:900 10px/1 "Microsoft YaHei",sans-serif;cursor:pointer}
.host-btn.is-locked{color:#8aa7b8;opacity:.85}
.host-btn:not(.is-locked){border-color:#ffe04c;color:#ffe98b}
.host-paid-pill{position:absolute;right:8px;top:-22px;padding:3px 8px;border:2px solid #8beb50;color:#8beb50;background:#03182f;font:900 8px/1 monospace}
.couple-reveal{position:relative;z-index:2;margin:28px 0 8px;border:4px solid #a8f2f1;outline:4px solid #072b4f;box-shadow:7px 8px #001c35;overflow:hidden}
.couple-reveal img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center 20%}
.couple-reveal p{position:absolute;left:0;right:0;bottom:0;margin:0;padding:12px 10px;background:linear-gradient(transparent,#00152ef0);color:#ffe04c;text-align:center;font:900 16px/1 Impact,"Microsoft YaHei",sans-serif;letter-spacing:.06em}
.ending>img{object-position:center 18%}
.restaurant-screen img{object-position:center 25%}
.hero-art{object-position:center 22%}
@media(max-width:360px){.studio-row{grid-template-columns:1fr}.host-btn{font-size:9px}}

/* F10: host-bar flush to bottom; quick-nav just above it; music dock above nav */
body:not(.is-guest):not(.is-studio) .host-bar{bottom:max(6px,calc(env(safe-area-inset-bottom) + 4px))}
body:not(.is-guest):not(.is-studio) .quick-nav{bottom:max(50px,calc(env(safe-area-inset-bottom) + 46px))}
body:not(.is-guest):not(.is-studio) .music-dock{bottom:max(98px,calc(env(safe-area-inset-bottom) + 92px))}
body.is-guest .quick-nav{bottom:max(10px,calc(env(safe-area-inset-bottom) + 8px))}
body.is-guest .music-dock{top:auto;bottom:max(58px,calc(env(safe-area-inset-bottom) + 54px))}

/* F7 logo blend + crew photo slides */
.hero-brand img{width:100%;height:auto;mix-blend-mode:screen;filter:drop-shadow(0 4px 0 #003052)}
.hero-art{object-position:center 28%}
.crew-slide img{object-fit:cover;object-position:center 18%}
.studio-notes{margin:0 0 14px;padding:12px 12px 4px;border:2px solid #557ba1;background:#071b33}
.studio-notes legend{padding:0 6px;color:#ffe04c;font:900 9px/1 monospace}
.studio-notes label{display:block;margin-bottom:10px}
.studio-notes label>span{display:block;margin-bottom:5px;color:#8feeea;font:900 9px/1.3 monospace}
.studio-notes input{width:100%;padding:10px;border:2px solid #557ba1;color:#efffff;background:#061a31;box-shadow:inset 3px 3px #020e1c;font-size:12px}
.crew-slide p{display:flex;flex-direction:column;gap:4px}
.crew-slide p b{color:#ff54cf;font:900 12px/1 monospace}
.crew-slide p span{color:#eefcff;font-size:12px;line-height:1.45;font-weight:700}

/* —— F8/F9 预览即编辑（降噪） —— */
body.is-host.is-editing .edit-target{position:relative}
body.is-guest .edit-wrap,
body.is-guest .edit-pencil,
body.is-guest .img-edit-btn,
body.is-guest .schedule-crud,
body.is-guest .host-only{display:none!important}

/* F10-1: dashed underline hugs text width (not full block) */
body.is-host.is-editing:not(.is-guest) .edit-wrap>[data-cfg],
body.is-host.is-editing:not(.is-guest) .edit-wrap>[data-sched]{
  display:inline;
  border-bottom:1.5px dashed rgba(255,217,55,.7);
  box-decoration-break:clone;-webkit-box-decoration-break:clone;
  cursor:text
}
body.is-host.is-editing:not(.is-guest) .mission-card .edit-wrap>[data-cfg],
body.is-host.is-editing:not(.is-guest) .mission-card .edit-wrap>[data-sched],
body.is-host.is-editing:not(.is-guest) .menu-board .edit-wrap>[data-sched]{
  border-bottom-color:rgba(169,78,53,.5)
}
body.is-host.is-editing:not(.is-guest) .edit-wrap.is-overridden>[data-cfg],
body.is-host.is-editing:not(.is-guest) .edit-wrap.is-overridden>[data-sched]{
  border-bottom-style:solid;border-bottom-color:rgba(255,120,80,.75)
}

/* trailing yellow pencil — no pill/block bg; slightly smaller than text */
.edit-pencil{
  position:relative;z-index:6;display:none;align-items:center;justify-content:center;
  margin-left:.18em;vertical-align:baseline;
  width:auto;height:auto;min-width:0;min-height:0;padding:0;border:0;border-radius:0;
  color:#ffd937;background:transparent;box-shadow:none;line-height:1;cursor:pointer;
  opacity:0;pointer-events:none;transition:opacity .15s;-webkit-tap-highlight-color:transparent
}
.edit-pencil svg{display:inline-block;width:.85em;height:.85em;vertical-align:-.05em}
.img-edit-btn{
  position:absolute;z-index:6;display:none;align-items:center;justify-content:center;
  right:8px;bottom:8px;width:auto;height:auto;min-width:0;min-height:0;padding:4px;border:0;border-radius:0;
  color:#ffd937;background:transparent;box-shadow:none;line-height:1;cursor:pointer;
  opacity:0;pointer-events:none;transition:opacity .15s;-webkit-tap-highlight-color:transparent;
  filter:drop-shadow(0 1px 2px #001829cc)
}
.img-edit-btn svg{display:block;width:18px;height:18px}
.hero .img-slot>.img-edit-btn,.ending .img-slot>.img-edit-btn{
  top:max(56px,calc(env(safe-area-inset-top) + 48px));bottom:auto;right:12px
}

@media (hover:hover) and (pointer:fine){
  body.is-host.is-editing:not(.is-guest) .edit-wrap:hover>.edit-pencil,
  body.is-host.is-editing:not(.is-guest) .edit-wrap:focus-within>.edit-pencil,
  body.is-host.is-editing:not(.is-guest) .edit-pencil:focus{
    display:inline-flex;opacity:1;pointer-events:auto
  }
  body.is-host.is-editing:not(.is-guest) .img-slot:hover>.img-edit-btn,
  body.is-host.is-editing:not(.is-guest) .img-slot:focus-within>.img-edit-btn,
  body.is-host.is-editing:not(.is-guest) .img-edit-btn:focus{
    display:inline-flex;opacity:1;pointer-events:auto
  }
}
body.is-host.is-editing:not(.is-guest) .edit-wrap.is-touch-reveal>.edit-pencil,
body.is-host.is-editing:not(.is-guest) .img-slot.is-touch-reveal>.img-edit-btn{
  display:inline-flex;opacity:1;pointer-events:auto
}
body.is-host.is-editing:not(.is-guest) .edit-pencil{display:inline-flex;opacity:.55;pointer-events:auto}
@media (pointer:coarse){
  body.is-host.is-editing:not(.is-guest) .edit-pencil{opacity:.45;pointer-events:auto;padding:4px}
  body.is-host.is-editing:not(.is-guest) .edit-wrap:active>.edit-pencil,
  body.is-host.is-editing:not(.is-guest) .edit-wrap.is-touch-reveal>.edit-pencil{opacity:1}
  body.is-host.is-editing:not(.is-guest) .img-edit-btn{display:inline-flex;opacity:.4;pointer-events:auto}
  body.is-host.is-editing:not(.is-guest) .img-slot.is-touch-reveal>.img-edit-btn{opacity:1}
}

/* wrap hugs content so underline is text-width */
.edit-wrap{position:relative;display:inline;max-width:100%;vertical-align:baseline}
.edit-wrap.is-block{display:inline-block;width:fit-content;max-width:100%}
.img-slot{position:relative}
.contact-phone{margin:0 0 12px;color:#ffe98b;font:900 12px/1.5 "Microsoft YaHei",sans-serif}
.map-url-hint{margin:8px 0 0;color:#9af5f2;font:800 9px/1.4 monospace;word-break:break-all}
body.is-host.is-editing .map-url-hint{display:block!important}

/* host bar softer — no shouty yellow edit */
.host-btn.is-active,
.host-edit-btn.is-active{
  border-color:#7ef8f1;color:#cffffc;background:#0a3558
}
.host-btn-secondary{flex:0 0 auto;min-width:44px;padding-inline:8px;opacity:.9;font-size:9px!important}
.host-bar{gap:5px;padding:6px;border-color:#3d6a82;background:#041422f0;box-shadow:3px 3px #0008}
.host-btn{min-height:34px;border-color:#3d5f7a;font-size:9px;font-weight:800}

.edit-popover{
  position:fixed;z-index:95;left:50%;bottom:max(24px,env(safe-area-inset-bottom));
  width:min(calc(100% - 24px),420px);padding:14px;border:3px solid #16425c;border-radius:0;
  background:var(--paper);color:#17334a;box-shadow:8px 10px #001829;transform:translateX(-50%)
}
.edit-popover[hidden]{display:none!important}
.edit-popover-label{display:block;margin-bottom:8px;color:#a94e35;font:900 10px/1 monospace}
.edit-popover textarea,.edit-popover input[type=text],.edit-popover input[type=datetime-local]{
  width:100%;padding:11px;border:2px solid #c59d61;background:#fffdf4;color:#17334a;font-size:14px;font-weight:700;resize:vertical
}
.edit-unlink-row{display:flex;gap:8px;align-items:center;margin-top:10px;color:#5a3a22;font:700 12px/1.3 "Microsoft YaHei",sans-serif;cursor:pointer}
.edit-unlink-row input{width:16px;height:16px}
.edit-relink-btn{
  display:block;width:100%;margin-top:8px;padding:8px;border:1.5px dashed #a94e35;color:#a94e35;background:transparent;
  font:800 11px/1 "Microsoft YaHei",sans-serif;cursor:pointer
}
.edit-relink-btn[hidden],.edit-unlink-row[hidden]{display:none!important}
.edit-popover-actions{display:flex;gap:8px;margin-top:10px}
.edit-popover-actions button,.crop-actions button{
  flex:1;min-height:44px;padding:10px;border:2px solid #557ba1;color:#17334a;background:#fff;font:900 13px/1 "Microsoft YaHei",sans-serif;cursor:pointer
}
.edit-popover-actions .is-primary,.crop-actions .is-primary{border-color:#775014;background:var(--yellow)}

/* crop: fixed stage, no scroll bleed */
.crop-modal{
  position:fixed;inset:0;z-index:96;display:grid;place-items:center;padding:16px;
  background:#00101fcc;backdrop-filter:blur(4px);
  overscroll-behavior:none;touch-action:none;overflow:hidden
}
.crop-modal[hidden]{display:none!important}
.crop-panel{
  width:min(100%,420px);max-height:min(92svh,720px);padding:14px;border:3px solid #7ef8f1;background:#0a2744;color:#e8ffff;
  box-shadow:0 0 0 3px #003052;overscroll-behavior:contain;touch-action:manipulation
}
.crop-panel h2{margin:0 0 10px;color:#9af5f2;font-size:16px;text-align:center}
.crop-stage{
  position:relative;width:min(100%,min(86vw,360px));height:auto;aspect-ratio:1/1;max-width:100%;
  margin:0 auto;overflow:hidden;border:3px solid #557ba1;background:#02162a;
  touch-action:none;cursor:grab;overscroll-behavior:none;flex:none
}
.crop-stage img{position:absolute;left:50%;top:50%;max-width:none;transform-origin:center center;user-select:none;-webkit-user-drag:none;pointer-events:none}
.crop-zoom{display:flex;gap:10px;align-items:center;margin:12px 0 6px;color:#9af5f2;font:900 10px/1 monospace}
.crop-zoom input{flex:1}
.crop-hint{margin:0 0 10px;color:#b8dded;font-size:11px;text-align:center}
.crop-actions{display:flex;gap:8px}
body.is-host:not(.is-guest) .host-bar{display:flex}
body.crop-open{overflow:hidden;touch-action:none}

.menu-board{transition:min-height .25s ease}
.menu-board article{position:relative;transition:opacity .2s,transform .2s}
.menu-board article.is-entering{opacity:0;transform:translateY(8px)}
.menu-board article .edit-pencil{margin-left:.2em}
.schedule-section{min-height:0}
.schedule-crud{
  position:relative;z-index:2;display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  margin:0 0 12px;padding:8px 10px;border:1.5px dashed #c59d61;background:#fff8e6
}
.schedule-crud[hidden]{display:none!important}
.schedule-crud-btn{
  min-height:34px;padding:6px 12px;border:1.5px solid #8a6230;color:#5a3a22;background:#ffe9a8;
  font:800 11px/1 "Microsoft YaHei",sans-serif;cursor:pointer
}
.schedule-crud-btn:disabled{opacity:.4;cursor:not-allowed}
.schedule-crud-count{margin-left:auto;color:#a94e35;font:900 10px/1 monospace}
.ending-copy h2{white-space:pre-line}

/* F8 img-slot layout fixes for absolute heroes */
.hero > .img-slot{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.hero > .img-slot > .hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ending > .img-slot{position:absolute;inset:0;width:100%;height:100%}
.ending > .img-slot > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 18%}
.ending::after{z-index:1}
.couple-reveal > .img-slot,.restaurant-screen > .img-slot,.crew-slide > .img-slot{position:relative;display:block;width:100%;height:100%}
.couple-reveal > .img-slot > img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center 20%}
.restaurant-screen > .img-slot > img{width:100%;aspect-ratio:16/9;object-fit:cover;object-position:center 25%}
.crew-slide > .img-slot{position:absolute;inset:0}
.crew-slide > .img-slot > img{width:100%;height:100%;object-fit:cover;object-position:center 18%}
.hero-shade,.surface-glitter{z-index:1}
.hero-hud,.hero-brand,.hero-copy,.dive-button,.start-note{z-index:2}


/* —— F10 music panel + fish art —— */
.music-dock{display:flex;gap:6px;align-items:flex-end}
.music-dock>#music-hint{right:90px}
.music-dock>#music-settings{
  display:grid;place-items:center;width:34px;height:34px;border:2px solid #ffe44f;color:#173954;
  background:#fff1bd;border-radius:50%;box-shadow:2px 3px #001329;font-size:12px;font-weight:900;cursor:pointer
}
.music-dock>#music-toggle{width:42px;height:42px}
.music-panel{
  position:absolute;right:0;bottom:52px;width:min(280px,calc(100vw - 28px));padding:12px;
  border:3px solid #70eae3;background:#061a31;box-shadow:6px 7px #000b;color:#e8ffff;z-index:31
}
.music-panel[hidden]{display:none!important}
.music-panel-title{margin:0 0 10px;color:#ffe046;font:900 11px/1 monospace;letter-spacing:.06em}
.music-preset-label,.music-upload-label{display:block;margin-bottom:10px}
.music-preset-label>span,.music-upload-label>span{display:block;margin-bottom:5px;color:#8feeea;font:900 9px/1.3 monospace}
.music-preset-label select,.music-upload-label input[type=file]{
  width:100%;padding:8px;border:2px solid #557ba1;color:#efffff;background:#061a31;font-size:12px
}
.music-disclaimer{
  margin:0 0 10px;padding:8px;border:1.5px dashed #ffb347;color:#ffe9b8;background:#2a1a08;
  font:700 10px/1.45 "Microsoft YaHei",sans-serif
}
.music-panel-close{
  width:100%;min-height:36px;padding:8px;border:2px solid #557ba1;color:#dff;background:#0a3558;
  font:800 12px/1 "Microsoft YaHei",sans-serif;cursor:pointer
}
body.is-guest .music-upload-label{display:none}

/* F10-A / F11 independent fish swim */
.pixel-fish{
  position:absolute;display:flex;align-items:center;justify-content:center;
  width:64px;height:48px;padding:0;border:0;background:transparent;
  filter:drop-shadow(2px 2px #001b33);cursor:pointer;
  animation:swim-ltr var(--swim,8s) linear infinite;
  animation-delay:var(--swim-delay,0s)
}
.pixel-fish.is-flipped{animation-name:swim-rtl}
.pixel-fish::before,.pixel-fish::after{content:none!important;display:none!important;background:none!important}
.pixel-fish img{
  display:block;width:56px;height:auto;max-height:40px;object-fit:contain;pointer-events:none;
  image-rendering:auto
}
.pixel-fish.caught{animation:caught .55s ease-in forwards;pointer-events:none}
.fish-field{position:relative;z-index:2;height:200px;margin-top:16px;border-top:1px dashed #53cfd270;overflow:visible}
.fish-blessing{
  position:absolute;z-index:8;left:50%;top:0;bottom:auto;right:auto;
  max-width:160px;width:max-content;margin:0;padding:7px 9px;
  border:2px solid #003052;background:#fff2b8;color:#003052;box-shadow:3px 3px 0 #007a93;
  font-size:11px;font-weight:900;line-height:1.35;pointer-events:auto;cursor:pointer;
  transform:translate(-50%,-100%);animation:blessing-pop var(--bless-dur,5s) ease both;white-space:nowrap
}
.fish-blessing::after{
  position:absolute;bottom:-7px;left:50%;width:10px;height:10px;margin-left:-5px;
  border-right:2px solid #003052;border-bottom:2px solid #003052;background:#fff2b8;content:"";transform:rotate(45deg)
}
@keyframes swim-ltr{
  0%{transform:translateX(-70px) translateY(0)}
  35%{transform:translateX(140px) translateY(var(--drift,6px))}
  70%{transform:translateX(300px) translateY(calc(var(--drift,6px) * -1))}
  100%{transform:translateX(460px) translateY(0)}
}
@keyframes swim-rtl{
  0%{transform:translateX(460px) translateY(0) scaleX(-1)}
  35%{transform:translateX(300px) translateY(var(--drift,6px)) scaleX(-1)}
  70%{transform:translateX(140px) translateY(calc(var(--drift,6px) * -1)) scaleX(-1)}
  100%{transform:translateX(-70px) translateY(0) scaleX(-1)}
}
footer{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
body.is-guest footer{padding-bottom:calc(72px + env(safe-area-inset-bottom))}

/* F12-4: guest/share — hide music selection; keep play/mute */
body.is-guest #music-settings,
body.is-guest #music-panel{display:none!important}

/* F12-2: sonar/exploration image slot pencil */
.exploration-frame > .img-slot{position:relative;display:block;width:100%}
.exploration-frame > .img-slot > img,
.exploration-frame > img[data-img-key]{width:100%;aspect-ratio:16/9;object-fit:cover}

footer p{margin:0}
footer:not(:has(img)){padding-top:28px}


/* —— 婚礼厨房 · 产品对齐附加 —— */
:root{--yellow:#ffd937}
.couple-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:relative;z-index:2}
.couple-grid .img-slot{border:3px solid #d8a257;box-shadow:4px 5px #040913;overflow:hidden;background:#1a1230}
.couple-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.gallery-section{background:linear-gradient(#2a1a40,#1a1230);padding-bottom:48px}
.hero-img-slot,.restaurant-slot,.ending-slot{position:absolute;inset:0;width:100%;height:100%}
.hero-img-slot .hero-art,.restaurant-slot img,.ending-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ending{position:relative}
.restaurant-screen{position:relative}
.king-stage .img-slot{display:inline-block;max-width:140px}
.king-stage .img-slot img{width:100%;height:auto}
.menu-board .menu-item{display:grid;grid-template-columns:54px 1fr auto;gap:9px;align-items:center;padding:13px 0;border-bottom:2px dashed #bb8a59}
.menu-board .menu-item time{color:#b54835;font:900 18px/1 Impact,sans-serif}
.menu-board .menu-item b{display:block;font-size:13px}
.menu-board .menu-item span{display:block;margin-top:4px;font-size:9px}
.menu-board .menu-item strong{color:#e08618;font-size:10px}
footer .footer-logo{display:none!important}
body.is-guest #music-settings,body.is-guest #music-panel{display:none!important}
.quick-nav{grid-template-columns:repeat(5,1fr);width:min(calc(100% - 16px),464px)}
body:not(.is-guest) .quick-nav{bottom:max(50px,calc(env(safe-area-inset-bottom) + 46px))}
body.is-guest .host-bar{display:none!important}
.hero-hud span:first-child{letter-spacing:.04em}
.music-dock{display:flex;gap:6px;align-items:flex-end}
.music-dock #music-settings{width:36px;height:36px;border:3px solid #ffe44f;color:#173954;background:#fff1bd;border-radius:50%;box-shadow:3px 4px #001329;font-size:14px;font-weight:900;cursor:pointer}


/* shrine layout fixes */
.footer-brand{margin:0 0 6px;color:#f4e6a8;font:900 13px/1.4 "PingFang SC",sans-serif;letter-spacing:.08em}
footer .footer-logo{display:none}
.farm-screen{position:relative;overflow:hidden}
.farm-screen .img-slot,.farm-screen .restaurant-slot{position:relative;display:block;width:100%}
.farm-screen .img-slot img,.farm-screen .restaurant-slot img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.farm-status{position:absolute;left:12px;bottom:12px;z-index:2}
.map-console .img-slot{position:relative;display:block;width:100%;margin-bottom:10px}
.map-console .img-slot .map-art{width:100%;display:block;border-radius:4px}
.mayor-stage .img-slot{display:inline-block;max-width:96px}
.mayor-stage .img-slot img{width:100%;height:auto;image-rendering:pixelated}
.couple-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:relative;z-index:2}
.couple-grid .img-slot{border:3px solid #c9a14a;box-shadow:4px 5px #0a1a12;overflow:hidden;background:#10231f}
.couple-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.gallery-section{background:linear-gradient(#1a3428,#10231f);padding:36px 18px 48px}
.hero > .img-slot.hero-img-slot{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.hero > .img-slot.hero-img-slot > .hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ending{position:relative}
.ending > .img-slot.ending-slot{position:absolute;inset:0;width:100%;height:100%}
.ending > .img-slot.ending-slot > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%}
/* shrine host-bar blues */
body:not(.is-guest):not(.is-studio) .host-bar{bottom:max(6px,calc(env(safe-area-inset-bottom) + 4px));border-color:#6a9a4a;background:#0c1f14f2}
.host-btn{border-color:#4a7a3a;background:#163322;color:#e8ffe0}
.host-btn.is-active,.host-edit-btn.is-active{background:#d4e85a;color:#163012;border-color:#8a9a20}
.paywall-panel{border-color:#d4e85a;background:#10231f}
.edit-pencil{color:#f5d84a}
body.is-host.is-editing:not(.is-guest) .edit-wrap>[data-cfg],
body.is-host.is-editing:not(.is-guest) .edit-wrap>[data-sched]{
  text-decoration:underline;text-decoration-style:dashed;text-decoration-color:#f5d84a;text-underline-offset:3px
}
.menu-item b[data-sched],.menu-item span[data-sched]{display:block}
.menu-item b[data-sched]{font-size:14px;color:#fff8d8}
.menu-item span[data-sched]{font-size:12px;color:#c5d8b8;font-weight:600}


/* —— 旷野神祠婚礼 · 产品对齐附加 —— */
:root{--yellow:#ffd937}
.footer-brand{margin:0 0 6px;color:#c9f3ff;font:900 13px/1.4 "PingFang SC",sans-serif;letter-spacing:.08em}
footer .footer-logo{display:none!important}
.couple-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:relative;z-index:2;padding:0 16px}
.couple-grid .img-slot{border:3px solid #6ec8ff;box-shadow:4px 5px #040913;overflow:hidden;background:#0a1020}
.couple-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.gallery-section{background:linear-gradient(#0e1a30,#0a1020);padding:36px 0 48px}
.hero > .img-slot.hero-img-slot{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.hero > .img-slot.hero-img-slot > .hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 28%}
.ending{position:relative}
.ending > .img-slot.ending-slot{position:absolute;inset:0;width:100%;height:100%}
.ending > .img-slot.ending-slot > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.sage-stage .img-slot{display:inline-block;max-width:110px}
.sage-stage .img-slot img{width:100%;height:auto}
.scene-screen.farm-screen{position:relative;overflow:hidden}
.scene-screen .img-slot,.scene-screen .restaurant-slot{position:relative;display:block;width:100%}
.scene-screen .img-slot img,.scene-screen .restaurant-slot img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.map-console .img-slot{position:relative;display:block;width:100%;margin-bottom:10px}
.map-console .img-slot .map-art{width:100%;display:block}
.menu-board .menu-item{display:grid;grid-template-columns:54px 1fr auto;gap:9px;align-items:center;padding:13px 0;border-bottom:2px dashed #3a6a8a}
.menu-board .menu-item time{color:#6ec8ff;font:900 18px/1 Impact,sans-serif}
.menu-board .menu-item b{display:block;font-size:13px;color:#fff8d8}
.menu-board .menu-item span{display:block;margin-top:4px;font-size:11px;color:#a8c8d8;font-weight:600}
.menu-board .menu-item strong{color:#ffe04c;font-size:10px}
.quick-nav{grid-template-columns:repeat(5,1fr);width:min(calc(100% - 16px),464px)}
body:not(.is-guest):not(.is-studio) .host-bar{bottom:max(6px,calc(env(safe-area-inset-bottom) + 4px));border-color:#4a8ab0;background:#071428f2}
.host-btn{border-color:#3d6a82;background:#0a2948;color:#c9ffff}
.host-btn.is-active,.host-edit-btn.is-active{background:#ffe04c;color:#0a2744;border-color:#c9a014}
.paywall-panel{border-color:#ffe55d;background:#0a2744}
.edit-pencil{color:#ffd937}
body.is-host.is-editing:not(.is-guest) .edit-wrap>[data-cfg],
body.is-host.is-editing:not(.is-guest) .edit-wrap>[data-sched]{
  text-decoration:underline;text-decoration-style:dashed;text-decoration-color:#ffd937;text-underline-offset:3px;
  border-bottom:none
}
.name-word{display:inline}
body.is-guest #music-settings,body.is-guest #music-panel{display:none!important}
footer{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
body.is-guest footer{padding-bottom:calc(72px + env(safe-area-inset-bottom))}


/* brand wordmark — replace legacy trademark logo image */
.hero-brand .brand-wordmark{
  display:block;width:100%;text-align:center;
  color:#ffe9a0;font:900 clamp(18px,5.2vw,28px)/1.15 "PingFang SC","Microsoft YaHei",sans-serif;
  letter-spacing:.18em;text-shadow:0 0 12px #46d6e8aa, 0 2px 0 #001829;
  filter:drop-shadow(0 4px 0 #003052);
}
.hero-brand img{display:none!important}
