/* ============================================================
 *  以数为媒 · 跨时空对话 —— 样式表
 * ============================================================ */

:root {
  --bg: #06080e;
  --ink: #f2efe8;
  --ink-dim: rgba(242, 239, 232, 0.62);
  --ink-faint: rgba(242, 239, 232, 0.38);
  --gold: #e8c67a;
  --gold-dim: rgba(232, 198, 122, 0.55);
  --red: #d8433a;
  --line: rgba(232, 198, 122, 0.20);
  --glass: rgba(12, 16, 26, 0.78);
  --glass-lite: rgba(16, 21, 33, 0.62);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Songti SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#app { position: fixed; inset: 0; overflow: hidden; }

/* 无 WebGL 时的降级背景 */
body.no-3d #scene-canvas { display: none; }
body.no-3d #nameplates { display: none; }
body.no-3d #hover-tip { display: none; }
body.no-3d #app {
  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(200, 50, 45, 0.18), transparent 70%),
    radial-gradient(900px 600px at 80% 100%, rgba(30, 90, 140, 0.20), transparent 70%),
    linear-gradient(180deg, #06080e 0%, #0a0f1a 60%, #06080e 100%);
}

#scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#scene-canvas:active { cursor: grabbing; }

/* ============================================================
 *  顶栏
 * ============================================================ */
#topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.92) 0%, rgba(4, 6, 12, 0.42) 62%, transparent 100%);
  z-index: 30;
  pointer-events: none;
}
#topbar > * { pointer-events: auto; }

.brand { display: flex; align-items: center; gap: 13px; }

.brand-star {
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(232, 198, 122, 0.75);
  animation: starPulse 3.4s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.brand-text h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: var(--kai);
}
.brand-text p {
  margin: 3px 0 0;
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--gold-dim);
}

.topbar-nav { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }

.scene-btn, .ghost-btn {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 1.4px;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.24s ease;
  white-space: nowrap;
}
.scene-btn:hover, .ghost-btn:hover {
  color: var(--ink);
  border-color: var(--gold-dim);
  background: rgba(232, 198, 122, 0.10);
}
.scene-btn.active {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold), #c9a35c);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(232, 198, 122, 0.28);
  font-weight: 700;
}

.badge {
  display: inline-block;
  min-width: 17px;
  padding: 0 5px;
  margin-left: 4px;
  font-style: normal;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  transition: all 0.3s ease;
}
.badge.zero { background: rgba(255, 255, 255, 0.14); color: var(--ink-faint); }

/* ============================================================
 *  场景文字
 * ============================================================ */
#stage-label {
  position: absolute;
  left: 30px;
  top: 92px;
  z-index: 20;
  pointer-events: none;
  max-width: 300px;
}
#stage-label b {
  display: block;
  font-family: var(--kai);
  font-size: 26px;
  letter-spacing: 5px;
  color: var(--ink);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.9);
}
#stage-label span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 1.4px;
  color: var(--ink-faint);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

#scene-hint {
  position: absolute;
  left: 30px;
  bottom: 168px;
  max-width: 330px;
  z-index: 20;
  pointer-events: none;
  font-family: var(--kai);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 1.2px;
  color: rgba(242, 239, 232, 0.72);
  padding-left: 14px;
  border-left: 2px solid var(--red);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

#op-hint {
  position: absolute;
  bottom: 148px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-faint);
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 11, 18, 0.55);
  transition: opacity 1.4s ease;
}
#op-hint.fade { opacity: 0; }

#hover-tip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 190px);
  z-index: 21;
  pointer-events: none;
  font-size: 13px;
  letter-spacing: 1.6px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease;
  text-shadow: 0 2px 14px #000;
}
#hover-tip.show { opacity: 1; }

/* ============================================================
 *  名牌
 * ============================================================ */
#nameplates { position: absolute; inset: 0; pointer-events: none; z-index: 15; }

.nameplate {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 16px;
  border-radius: 10px;
  background: rgba(6, 9, 16, 0.62);
  border: 1px solid rgba(232, 198, 122, 0.34);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  backdrop-filter: blur(7px);
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.35s ease, background 0.25s ease, transform 0.06s linear;
  will-change: transform;
}
.nameplate:hover { background: rgba(10, 14, 24, 0.88); }

.np-name {
  font-family: var(--kai);
  font-size: 16px;
  letter-spacing: 2.4px;
  color: var(--ink);
  text-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent);
}
.np-sub {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ============================================================
 *  底部人物条
 * ============================================================ */
#figure-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 11px;
  z-index: 25;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(6, 9, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(11px);
  max-width: calc(100vw - 40px);
  overflow-x: auto;
  scrollbar-width: none;
}
#figure-bar::-webkit-scrollbar { display: none; }

.fig-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.030);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.26s ease;
  font-family: var(--serif);
  white-space: nowrap;
}
.fig-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 198, 122, 0.5);
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  transform: translateY(-3px);
}
.fig-card.active {
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border-color: var(--c);
  box-shadow: 0 5px 24px color-mix(in srgb, var(--c) 30%, transparent);
}

.fig-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.fig-meta { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.fig-name {
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 1.6px;
  color: var(--ink);
}
.fig-alias { font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.6px; }
.fig-life { font-size: 10px; color: rgba(232, 198, 122, 0.55); letter-spacing: 0.6px; }

/* ============================================================
 *  对话面板
 * ============================================================ */
#chat-panel {
  position: absolute;
  top: 0; right: 0;
  width: 470px;
  max-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(8, 11, 19, 0.95) 0%, rgba(9, 13, 22, 0.92) 100%);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transform: translateX(102%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 40;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.55);
}
#chat-panel.open { transform: translateX(0); }

.chat-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-avatar {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(232, 198, 122, 0.5);
  border-color: color-mix(in srgb, var(--c, #e8c67a) 55%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c, #e8c67a) 28%, transparent);
}
.chat-avatar canvas { width: 100%; height: 100%; display: block; }

.chat-id { flex: 1; min-width: 0; }
.chat-id h2 {
  margin: 0;
  font-family: var(--kai);
  font-size: 21px;
  letter-spacing: 2.6px;
  font-weight: 700;
}
.chat-id p {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
}

.icon-btn {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: var(--sans);
}
.icon-btn:hover { background: rgba(216, 67, 58, 0.22); color: #fff; border-color: rgba(216, 67, 58, 0.5); }

.chat-tag {
  margin: 0 20px 12px;
  align-self: flex-start;
  font-family: var(--kai);
  font-size: 13px;
  letter-spacing: 1.4px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.025);
  flex-shrink: 0;
}

.chat-flow {
  flex: 1;
  overflow-y: auto;
  padding: 6px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-flow::-webkit-scrollbar { width: 5px; }
.chat-flow::-webkit-scrollbar-thumb { background: rgba(232, 198, 122, 0.22); border-radius: 3px; }
.chat-flow::-webkit-scrollbar-track { background: transparent; }

.bubble-row { display: flex; align-items: flex-start; gap: 9px; max-width: 100%; }
.bubble-row.me { justify-content: flex-end; }

.bubble-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-top: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

.bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: 0.7px;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 84%;
}
.bubble-row.them .bubble {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 4px;
  font-family: var(--kai);
  color: rgba(242, 239, 232, 0.95);
}
.bubble-row.me .bubble {
  background: linear-gradient(135deg, rgba(232, 198, 122, 0.90), rgba(201, 163, 92, 0.86));
  color: #1a1206;
  border-top-right-radius: 4px;
  font-weight: 600;
}

.hint-line {
  align-self: center;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.hint-line.ok {
  color: var(--gold);
  border-color: rgba(232, 198, 122, 0.42);
  border-style: solid;
  background: rgba(232, 198, 122, 0.07);
  animation: riseIn 0.5s ease;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 12px;
  flex-shrink: 0;
}
.suggest-chip {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.suggest-chip:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(232, 198, 122, 0.09);
}

.farewell-btn {
  margin: 0 20px 12px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(135deg, rgba(232, 198, 122, 0.16), rgba(216, 67, 58, 0.12));
  color: var(--gold);
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 2.6px;
  cursor: pointer;
  transition: all 0.26s ease;
  flex-shrink: 0;
  animation: glowPulse 2.6s ease-in-out infinite;
}
.farewell-btn:hover { background: rgba(232, 198, 122, 0.26); color: #fff; }
.farewell-btn.done {
  color: rgba(232, 198, 122, 0.8);
  background: rgba(232, 198, 122, 0.07);
  border-color: rgba(232, 198, 122, 0.28);
  animation: none;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 198, 122, 0); }
  50% { box-shadow: 0 0 22px rgba(232, 198, 122, 0.26); }
}

.hidden { display: none !important; }

.chat-form {
  display: flex;
  gap: 9px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}
.chat-form input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 13px 17px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.6px;
  outline: none;
  transition: all 0.22s ease;
}
.chat-form input::placeholder { color: rgba(242, 239, 232, 0.28); }
.chat-form input:focus {
  border-color: var(--gold-dim);
  background: rgba(232, 198, 122, 0.07);
}
.chat-form button {
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--gold), #c9a35c);
  color: #1a1206;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-form button:hover { filter: brightness(1.1); box-shadow: 0 5px 20px rgba(232, 198, 122, 0.3); }

/* ============================================================
 *  弹层
 * ============================================================ */
.modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(2, 4, 8, 0.74);
  backdrop-filter: blur(9px);
  animation: fadeIn 0.3s ease;
}
.modal.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0b1019 0%, #0a0e17 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  animation: cardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-head h3 {
  margin: 0;
  font-family: var(--kai);
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 700;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.6px;
}
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(232, 198, 122, 0.22); border-radius: 3px; }

.modal-body h4 {
  margin: 22px 0 9px;
  font-family: var(--kai);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin: 0 0 12px; color: var(--ink-dim); }
.modal-body ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-dim); }
.modal-body li { margin-bottom: 7px; }
.modal-body b { color: var(--ink); }
.modal-body code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(232, 198, 122, 0.11);
  color: var(--gold);
}
.about-intro {
  font-family: var(--kai);
  font-size: 15px;
  line-height: 2.05;
  color: rgba(242, 239, 232, 0.85) !important;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(216, 67, 58, 0.07);
  border-left: 3px solid var(--red);
}
.about-foot {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint) !important;
  letter-spacing: 2px;
}

.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-faint);
  font-family: var(--kai);
  font-size: 15px;
  line-height: 2.2;
}

/* 信箱卡片 */
.letter-card {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 20px 18px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.030);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--c);
}
.letter-card header {
  display: flex;
  align-items: baseline;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.lc-name {
  font-family: var(--kai);
  font-size: 19px;
  letter-spacing: 2.4px;
  color: var(--c);
  font-weight: 700;
}
.lc-alias { font-size: 11.5px; color: var(--ink-faint); }
.lc-life { font-size: 11.5px; color: rgba(232, 198, 122, 0.5); }
.lc-title {
  margin: 0 0 8px !important;
  font-size: 12.5px !important;
  letter-spacing: 2px;
  color: var(--gold) !important;
}
.lc-text {
  margin: 0 !important;
  font-family: var(--kai);
  font-size: 15px;
  line-height: 2.05;
  color: rgba(242, 239, 232, 0.9) !important;
}

.modal-foot {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-foot p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.8px;
}
.primary-btn {
  padding: 13px 26px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--gold), #c9a35c);
  color: #1a1206;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.6px;
  cursor: pointer;
  transition: all 0.24s ease;
  white-space: nowrap;
}
.primary-btn:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 6px 26px rgba(232, 198, 122, 0.32); }
.primary-btn:disabled { opacity: 0.34; cursor: not-allowed; }

/* ============================================================
 *  启动页
 * ============================================================ */
#start-screen {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 620px at 50% 34%, rgba(200, 50, 45, 0.20), transparent 68%),
    radial-gradient(700px 500px at 50% 96%, rgba(30, 90, 140, 0.22), transparent 70%),
    linear-gradient(180deg, #05070c 0%, #080c14 100%);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
#start-screen.gone { opacity: 0; transform: scale(1.06); pointer-events: none; }

.start-inner { text-align: center; padding: 30px; max-width: 760px; }

.start-star {
  font-size: 34px;
  color: var(--red);
  text-shadow: 0 0 32px rgba(216, 67, 58, 0.85);
  margin-bottom: 22px;
  animation: starPulse 3s ease-in-out infinite;
}

.start-inner h1 {
  margin: 0;
  font-family: var(--kai);
  font-size: clamp(19px, 4.1vw, 40px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff8e8 0%, var(--gold) 62%, #a8823c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.start-inner > p#start-sub {
  margin: 16px 0 0;
  font-family: var(--kai);
  font-size: 18px;
  letter-spacing: 5px;
  text-indent: 5px;
  color: rgba(232, 198, 122, 0.85);
}

.start-line {
  width: 92px;
  height: 1px;
  margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.start-meta {
  margin: 7px 0;
  font-size: 12.5px;
  letter-spacing: 1.8px;
  color: var(--ink-faint);
}

#start-btn {
  margin-top: 38px;
  padding: 16px 52px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(232, 198, 122, 0.07);
  color: var(--gold);
  font-family: var(--kai);
  font-size: 17px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.32s ease;
}
#start-btn:hover {
  background: linear-gradient(135deg, var(--gold), #c9a35c);
  color: #1a1206;
  box-shadow: 0 10px 44px rgba(232, 198, 122, 0.34);
  transform: translateY(-2px);
}

.start-note {
  margin-top: 26px;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  color: rgba(242, 239, 232, 0.26);
}

/* ============================================================
 *  响应式
 * ============================================================ */
@media (max-width: 1100px) {
  #chat-panel { width: 420px; }
  #stage-label { left: 22px; }
  #scene-hint { left: 22px; bottom: 158px; max-width: 260px; font-size: 13.5px; }
}

@media (max-width: 780px) {
  #topbar { padding: 11px 14px; flex-wrap: wrap; gap: 10px; }
  .brand-text h1 { font-size: 15px; letter-spacing: 1.6px; }
  .brand-text p { display: none; }
  .scene-btn, .ghost-btn { font-size: 11.5px; padding: 6px 12px; }
  #stage-label { top: 78px; left: 14px; }
  #stage-label b { font-size: 19px; letter-spacing: 3px; }
  #stage-label span { font-size: 11px; }
  #scene-hint { display: none; }
  #op-hint { bottom: 176px; font-size: 10.5px; letter-spacing: 1px; padding: 6px 12px; }
  #figure-bar { bottom: 12px; padding: 8px 10px; gap: 8px; border-radius: 16px; }
  .fig-card { padding: 6px 10px 6px 6px; }
  .fig-avatar { width: 36px; height: 36px; }
  .fig-name { font-size: 13px; }
  .fig-alias, .fig-life { display: none; }
  #chat-panel { width: 100%; }
  .modal { padding: 14px; }
  .modal-card { max-height: 92vh; border-radius: 16px; }
  .start-inner { padding: 18px; }
  .start-inner > p#start-sub { font-size: 13px; letter-spacing: 2.4px; }
  .start-meta { font-size: 11px; letter-spacing: 1px; }
  #start-btn { padding: 14px 34px; font-size: 15px; }
  #hover-tip { display: none; }
}
