/* 邂逅主题：vintage / starry / mono / cyber / 自定义
   —— 由 styles.css 第 3763–4363 行原样切分，规则与顺序未改动。 */
/* ====== 开始复制 ====== */
/* ====== 邂逅专属 CSS（默认主题）—— 支持自定义覆盖 ====== */
.encounter-mode-active {
  --enc-card-bg: #ffffff;
  --enc-card-border: 1px solid rgba(0, 0, 0, 0.06);
  --enc-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --enc-card-radius: 12px;
  --enc-card-padding: 20px 24px;

  --enc-header-height: 140px;
  --enc-header-bg: #fafafa;
  --enc-header-border: 1px solid rgba(0, 0, 0, 0.04);
  --enc-header-padding: 16px 24px;
  --enc-header-gap: 12px;

  --enc-title-color: #2c2c2c;
  --enc-title-font: "Noto Serif SC", "Songti SC", "STSong", serif;
  --enc-title-size: 32px;
  --enc-title-spacing: 10px;

  --enc-avatar-w: 90px;
  --enc-avatar-h: 110px;
  --enc-avatar-radius: 8px;

  --enc-body-color: #2c2c2c;
  --enc-body-size: 15px;
  --enc-body-line-height: 2;
  --enc-body-max-height: 400px;

  --enc-dialogue-color: #2c2c2c;
  --enc-dialogue-border: 2px solid #6b7b8d;
  --enc-dialogue-font-size: 16px;

  --enc-stamp-color: #7a7a7a;

  --enc-scene-bg: #f4f3f0;
  --enc-scene-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");

  background: var(--enc-scene-bg) !important;
  background-image: var(--enc-scene-image) !important;
  padding: 0 !important;
}

.encounter-mode-active .chatroom-messages {
  background: transparent !important;
  padding: 24px 16px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

.encounter-mode-active .msg-row {
  display: flex;
  width: 100%;
  margin-bottom: 28px;
  animation: fadeIn 0.6s ease-out;
  align-items: flex-start;
  box-sizing: border-box;
}
.encounter-mode-active .msg-row.is-ai { justify-content: flex-start; }
.encounter-mode-active .msg-row.is-user { justify-content: flex-end; }

.encounter-mode-active .msg-row .msg-card {
  width: 94%;
  max-width: 380px;
  background: var(--enc-card-bg);
  border-radius: var(--enc-card-radius);
  box-shadow: var(--enc-card-shadow);
  border: var(--enc-card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.encounter-mode-active .card-header {
  position: relative;
  height: var(--enc-header-height);
  background: var(--enc-header-bg);
  border-bottom: var(--enc-header-border);
  background-image: radial-gradient(rgba(107, 123, 141, 0.15) 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--enc-header-gap);
  padding: var(--enc-header-padding);
  box-sizing: border-box;
  flex-shrink: 0;
}
.encounter-mode-active .is-user .card-header {
  flex-direction: row-reverse;
}

.encounter-mode-active .rain-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.encounter-mode-active .rain-drop { position: absolute; background: linear-gradient(transparent, #6b7b8d); width: 1.5px; height: 24px; opacity: 0.5; animation: rainFall 2s linear infinite; }
.encounter-mode-active .rain-ripple { position: absolute; border: 1px solid #6b7b8d; border-radius: 50%; opacity: 0; animation: ripple 3s ease-out infinite; }
@keyframes rainFall { 0% { transform: translateY(-20px); opacity: 0; } 20% { opacity: 0.6; } 100% { transform: translateY(160px); opacity: 0; } }
@keyframes ripple { 0% { transform: scale(0.1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

.encounter-mode-active .card-title {
  position: relative;
  z-index: 2;
  font-size: var(--enc-title-size);
  font-weight: 300;
  color: var(--enc-title-color);
  font-family: var(--enc-title-font);
  letter-spacing: var(--enc-title-spacing);
  line-height: 1.2;
  writing-mode: vertical-rl;
  text-shadow: 0px 1px 0px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 10px;
  margin: 0;
}

.encounter-mode-active .card-avatar {
  position: relative;
  z-index: 2;
  width: var(--enc-avatar-w);
  height: var(--enc-avatar-h);
  background: #eee;
  border-radius: var(--enc-avatar-radius);
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transform: translateY(5px);
  flex-shrink: 0;
}

.encounter-mode-active .card-stamp {
  position: absolute;
  bottom: 12px;
  left: 24px;
  font-family: "Cinzel Decorative", serif;
  font-size: 9px;
  color: var(--enc-stamp-color);
  letter-spacing: 4px;
  z-index: 2;
}
.encounter-mode-active .is-user .card-stamp {
  left: auto;
  right: 24px;
}

.encounter-mode-active .card-body {
  padding: var(--enc-card-padding);
  font-size: var(--enc-body-size);
  color: var(--enc-body-color) !important;
  line-height: var(--enc-body-line-height);
  text-align: justify;
  flex: 1;
  overflow-y: auto;
  max-height: var(--enc-body-max-height);
  box-sizing: border-box;
  word-break: break-word;
}

.encounter-mode-active .story-narratage {
  margin-bottom: 16px;
  text-indent: 2em;
  width: 100%;
}
.encounter-mode-active .card-body .story-narratage:first-of-type::first-letter {
  float: left;
  font-size: 48px;
  line-height: 0.9;
  padding-right: 8px;
  padding-top: 2px;
  font-weight: 400;
  color: var(--enc-title-color);
  font-family: "Cinzel Decorative", serif;
}
.encounter-mode-active .story-dialogue {
  display: block;
  margin: 18px 0;
  padding-left: 14px;
  border-left: var(--enc-dialogue-border);
  font-style: italic;
  font-family: "Playfair Display", "Noto Serif SC", serif;
  font-size: var(--enc-dialogue-font-size);
  color: var(--enc-dialogue-color);
  text-indent: 0;
  letter-spacing: 0.5px;
}

.encounter-mode-active .story-divider { display: flex; align-items: center; justify-content: center; width: 100%; margin: 8px 0 20px; color: #7a7a7a; font-size: 12px; letter-spacing: 8px; }
.encounter-mode-active .story-divider::before, .encounter-mode-active .story-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent); margin: 0 12px; }
.encounter-mode-active .story-divider span { color: #6b7b8d; opacity: 0.6; }

/* 头部、输入框、底部按钮栏：统一透明化，跟随主题 */
.encounter-mode-active .chatroom-header {
  background: transparent !important;
  border-bottom: 1px dashed rgba(128, 128, 128, 0.3) !important;
}
.encounter-mode-active .chatroom-header-title { color: var(--enc-title-color) !important; }
.encounter-mode-active .chatroom-input { background: transparent !important; border-top-color: rgba(128, 128, 128, 0.2) !important; }
.encounter-mode-active .chatroom-input textarea { background: rgba(128, 128, 128, 0.1) !important; color: var(--enc-body-color) !important; }
.encounter-mode-active .wb-btn { background: transparent !important; color: var(--enc-body-color) !important; border: 1px solid rgba(128, 128, 128, 0.3) !important; }
.encounter-mode-active .wb-btn.primary { background: var(--enc-title-color) !important; color: #fff !important; border: none !important; }

/* ====== 主题 1：复古牛皮纸 (vintage) ====== */
.encounter-mode-active.theme-vintage {
  --enc-scene-bg: #f4ecd8;
  --enc-scene-image: none;
  --enc-card-bg: #fdfaf2;
  --enc-card-border: 1px solid #d7c8a8;
  --enc-card-shadow: 0 6px 18px rgba(139, 115, 85, 0.15);
  --enc-header-bg: #f0e6d2;
  --enc-header-border: 1px solid #d7c8a8;
  --enc-title-color: #5d4037;
  --enc-title-font: 'KaiTi', serif;
  --enc-body-color: #4a3b31;
  --enc-dialogue-color: #4a3b31;
  --enc-dialogue-border: 2px solid #8b7355;
  --enc-stamp-color: #8b7355;
}
.encounter-mode-active.theme-vintage .card-body,
.encounter-mode-active.theme-vintage .story-dialogue {
  font-family: 'KaiTi', serif;
}
.encounter-mode-active.theme-vintage .card-body .story-narratage:first-of-type::first-letter {
  color: #5d4037;
  font-family: 'KaiTi', serif;
}

/* ====== 主题 2：星夜私语 (starry) ====== */
.encounter-mode-active.theme-starry {
  --enc-scene-bg: #0d1117;
  --enc-scene-image: none;
  --enc-card-bg: #161b22;
  --enc-card-border: 1px solid #30363d;
  --enc-card-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --enc-header-bg: #0d1117;
  --enc-header-border: 1px solid #30363d;
  --enc-title-color: #c9d1d9;
  --enc-title-font: 'Cinzel Decorative', serif;
  --enc-body-color: #c9d1d9;
  --enc-dialogue-color: #e6edf3;
  --enc-dialogue-border: 2px solid #8b949e;
  --enc-stamp-color: #8b949e;
}
.encounter-mode-active.theme-starry .card-title {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.encounter-mode-active.theme-starry .card-body .story-narratage:first-of-type::first-letter {
  color: #c9d1d9;
  font-family: 'Cinzel Decorative', serif;
}
.encounter-mode-active.theme-starry .card-avatar {
  border-color: #30363d !important;
}

/* ====== 主题：黑白组件 (mono) ====== */
.encounter-mode-active.theme-mono {
  --enc-scene-bg: #f1f1ed;
  --enc-scene-image: radial-gradient(rgba(17,17,17,.10) 1px, transparent 1px);
  --enc-card-bg: #f7f7f4;
  --enc-card-border: 1.5px solid #111;
  --enc-card-shadow: 5px 5px 0 #111;
  --enc-card-radius: 0;
  --enc-card-padding: 16px 15px 18px;
  --enc-header-height: 84px;
  --enc-header-bg: #f7f7f4;
  --enc-header-border: 1.5px solid #111;
  --enc-header-padding: 11px 12px;
  --enc-header-gap: 8px;
  --enc-title-color: #111;
  --enc-title-font: "Noto Sans SC", "PingFang SC", sans-serif;
  --enc-title-size: 24px;
  --enc-title-spacing: -.04em;
  --enc-avatar-w: 44px;
  --enc-avatar-h: 44px;
  --enc-avatar-radius: 0;
  --enc-body-color: #202020;
  --enc-body-size: 13.5px;
  --enc-body-line-height: 1.9;
  --enc-dialogue-color: #111;
  --enc-dialogue-border: 2px solid #111;
  --enc-dialogue-font-size: 14px;
  --enc-stamp-color: #111;
  background-size: 16px 16px !important;
}
.encounter-mode-active.theme-mono .rain-layer,
.encounter-mode-active.theme-cyber .rain-layer { display: none !important; }
.encounter-mode-active.theme-mono .msg-row .msg-card { width: 94%; }
.encounter-mode-active.theme-mono .card-header { background-image: none; }
.encounter-mode-active.theme-mono .is-ai .card-header { flex-direction: row-reverse; }
.encounter-mode-active.theme-mono .card-title {
  writing-mode: horizontal-tb;
  height: auto;
  padding: 0;
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: var(--enc-title-spacing);
  text-shadow: none;
  text-transform: none;
}
.encounter-mode-active.theme-mono .card-title br { display: none; }
.encounter-mode-active.theme-mono .card-avatar {
  border: 1.5px solid #111;
  box-shadow: none;
  transform: none;
  background-color: #d8d8d2;
  filter: grayscale(1) contrast(1.15);
}
.encounter-mode-active.theme-mono .card-avatar span {
  color: #111;
  font-weight: 800;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}
.encounter-mode-active.theme-mono .is-user .card-avatar span { color: #f4f4ee; }
.encounter-mode-active.theme-mono .card-stamp {
  left: auto;
  right: 12px;
  bottom: 6px;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 5px;
  letter-spacing: .14em;
  color: #111;
}
.encounter-mode-active.theme-mono .is-user .card-stamp { left: 12px; right: auto; }
.encounter-mode-active.theme-mono .card-body {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  text-indent: 0;
}
.encounter-mode-active.theme-mono .story-narratage { text-indent: 0; margin-bottom: 13px; }
.encounter-mode-active.theme-mono .card-body .story-narratage:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  color: inherit;
  font-family: inherit;
}
.encounter-mode-active.theme-mono .story-dialogue {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-style: normal;
  margin: 14px 0;
  padding-left: 11px;
}
.encounter-mode-active.theme-mono .is-user .msg-card {
  background: #111;
  border-color: #111;
  box-shadow: 5px 5px 0 #8a8a80;
}
.encounter-mode-active.theme-mono .is-user .card-header {
  background: #111;
  border-bottom-color: #f7f7f4;
  background-image: none;
}
.encounter-mode-active.theme-mono .is-user .card-title,
.encounter-mode-active.theme-mono .is-user .card-body,
.encounter-mode-active.theme-mono .is-user .story-dialogue,
.encounter-mode-active.theme-mono .is-user .card-stamp { color: #f4f4ee !important; }
.encounter-mode-active.theme-mono .is-user .story-dialogue { border-left-color: #f4f4ee; }
.encounter-mode-active.theme-mono .is-user .card-avatar { border-color: #f4f4ee; }
.encounter-mode-active.theme-mono .chatroom-header { border-bottom: 1.5px solid #111 !important; }
.encounter-mode-active.theme-mono .chatroom-input textarea {
  background: #fff !important;
  color: #111 !important;
  border: 1.5px solid #111 !important;
}
.encounter-mode-active.theme-mono .wb-btn { border-color: #111 !important; color: #111 !important; }
.encounter-mode-active.theme-mono .wb-btn.primary { background: #111 !important; color: #fff !important; }
.encounter-mode-active.theme-mono .chatroom-input {
  background: #f1f1ed !important;
  border-top: 1.5px solid #111 !important;
}
.encounter-mode-active.theme-mono .chatroom-input > div {
  background: #fff !important;
  color: #111 !important;
  border-radius: 0 !important;
}
.encounter-mode-active.theme-mono .chatroom-input .menu-btn svg { fill: #111; }
.encounter-mode-active.theme-mono .send-btn { background: #111 !important; color: #fff !important; }
.encounter-mode-active.theme-mono .send-btn svg { fill: #fff; }
.encounter-mode-active.theme-mono .encounter-actions {
  background: #f7f7f4 !important;
  border-top-color: #111 !important;
}
.encounter-mode-active.theme-mono .encounter-actions .wb-btn {
  background: #fff !important;
  border-color: #111 !important;
  color: #111 !important;
}
.encounter-mode-active.theme-mono .encounter-actions .wb-btn svg { fill: #111 !important; }
.encounter-mode-active.theme-mono .encounter-actions .wb-btn.primary {
  background: #111 !important;
  color: #fff !important;
}
.encounter-mode-active.theme-mono .encounter-scene-strip {
  background: #f7f7f4;
  border: 1.5px solid #111;
  border-radius: 0;
  box-shadow: 5px 5px 0 #111;
  color: #111;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}
.encounter-mode-active.theme-mono .scene-kicker,
.encounter-mode-active.theme-mono .scene-title,
.encounter-mode-active.theme-mono .scene-title span,
.encounter-mode-active.theme-mono .scene-sub { color: #111; }
.encounter-mode-active.theme-mono .scene-kicker { font-family: ui-monospace, monospace; opacity: .55; }
.encounter-mode-active.theme-mono .scene-title { font-weight: 800; letter-spacing: 1px; }
.encounter-mode-active.theme-mono .scene-sub { opacity: .55; }

/* ====== 主题：赛博终端 (cyber) ====== */
.encounter-mode-active.theme-cyber {
  --enc-scene-bg: #02070a;
  --enc-scene-image: linear-gradient(rgba(0,232,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(0,232,255,.055) 1px, transparent 1px);
  --enc-card-bg: #06141a;
  --enc-card-border: 1px solid rgba(0,232,255,.58);
  --enc-card-shadow: 0 0 26px rgba(0,232,255,.12);
  --enc-card-radius: 0;
  --enc-card-padding: 15px 15px 17px;
  --enc-header-height: 84px;
  --enc-header-bg: #041017;
  --enc-header-border: 1px solid rgba(0,232,255,.38);
  --enc-header-padding: 11px 12px;
  --enc-header-gap: 8px;
  --enc-title-color: #eaffff;
  --enc-title-font: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  --enc-title-size: 18px;
  --enc-title-spacing: .12em;
  --enc-avatar-w: 44px;
  --enc-avatar-h: 44px;
  --enc-avatar-radius: 0;
  --enc-body-color: #b8dde0;
  --enc-body-size: 13px;
  --enc-body-line-height: 1.95;
  --enc-dialogue-color: #e5ffff;
  --enc-dialogue-border: 2px solid #00e8ff;
  --enc-dialogue-font-size: 13.5px;
  --enc-stamp-color: #ff2d8d;
  background-size: 34px 34px !important;
}
.encounter-mode-active.theme-cyber .msg-row .msg-card {
  width: 94%;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.encounter-mode-active.theme-cyber .card-header {
  background-image: repeating-linear-gradient(0deg, rgba(0,232,255,.05) 0 1px, transparent 1px 3px);
}
.encounter-mode-active.theme-cyber .is-ai .card-header { flex-direction: row-reverse; }
.encounter-mode-active.theme-cyber .card-title {
  writing-mode: horizontal-tb;
  height: auto;
  padding: 0;
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(0,232,255,.48);
}
.encounter-mode-active.theme-cyber .card-title br { display: none; }
.encounter-mode-active.theme-cyber .card-avatar {
  border: 1px solid #00e8ff;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0,232,255,.18);
  transform: none;
  background-color: #07161b;
  filter: grayscale(1) contrast(1.22) brightness(.82);
}
.encounter-mode-active.theme-cyber .card-avatar span {
  color: #eaffff;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  text-shadow: 0 0 8px rgba(0,232,255,.55);
}
.encounter-mode-active.theme-cyber .is-user .card-avatar span { color: #ffd9e8; text-shadow: 0 0 8px rgba(255,45,141,.45); }
.encounter-mode-active.theme-cyber .card-stamp {
  left: auto;
  right: 12px;
  bottom: 6px;
  font-family: ui-monospace, monospace;
  font-size: 5px;
  letter-spacing: .16em;
  color: #ff2d8d;
}
.encounter-mode-active.theme-cyber .is-user .card-stamp { left: 12px; right: auto; }
.encounter-mode-active.theme-cyber .card-body {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  background-image: repeating-linear-gradient(0deg, rgba(0,232,255,.028) 0 1px, transparent 1px 3px);
}
.encounter-mode-active.theme-cyber .story-narratage { text-indent: 0; margin-bottom: 13px; }
.encounter-mode-active.theme-cyber .card-body .story-narratage:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  color: inherit;
  font-family: inherit;
}
.encounter-mode-active.theme-cyber .story-dialogue {
  font-family: ui-monospace, monospace;
  font-style: normal;
  margin: 14px 0;
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(0,232,255,.06), transparent 70%);
}
.encounter-mode-active.theme-cyber .is-user .msg-card {
  background: #17030e;
  border-color: rgba(255,45,141,.65);
  box-shadow: 0 0 24px rgba(255,45,141,.12);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.encounter-mode-active.theme-cyber .is-user .card-header { background: #17030e; border-bottom-color: rgba(255,45,141,.4); }
.encounter-mode-active.theme-cyber .is-user .card-title,
.encounter-mode-active.theme-cyber .is-user .card-body,
.encounter-mode-active.theme-cyber .is-user .story-dialogue,
.encounter-mode-active.theme-cyber .is-user .card-stamp { color: #ffd9e8 !important; }
.encounter-mode-active.theme-cyber .is-user .story-dialogue { border-left-color: #ff2d8d; }
.encounter-mode-active.theme-cyber .is-user .card-avatar { border-color: #ff2d8d; }
.encounter-mode-active.theme-cyber .chatroom-header {
  border-bottom: 1px solid rgba(0,232,255,.35) !important;
}
.encounter-mode-active.theme-cyber .chatroom-header .icon-btn { color: #9fe7ec !important; }
.encounter-mode-active.theme-cyber .chatroom-header-title { color: #eaffff !important; }
.encounter-mode-active.theme-cyber .chatroom-input textarea {
  background: rgba(0,232,255,.055) !important;
  color: #d9ffff !important;
  border: 1px solid rgba(0,232,255,.32) !important;
}
.encounter-mode-active.theme-cyber .wb-btn { border-color: rgba(0,232,255,.35) !important; color: #b8dde0 !important; }
.encounter-mode-active.theme-cyber .wb-btn.primary { background: #00e8ff !important; color: #031014 !important; }
.encounter-mode-active.theme-cyber .chatroom-input {
  background: #02070a !important;
  border-top: 1px solid rgba(0,232,255,.38) !important;
}
.encounter-mode-active.theme-cyber .chatroom-input textarea {
  background: #06141a !important;
  color: #d9ffff !important;
  border: 1px solid rgba(0,232,255,.34) !important;
}
.encounter-mode-active.theme-cyber .chatroom-input textarea::placeholder { color: #5f8f95; }
.encounter-mode-active.theme-cyber .chatroom-input > div {
  background: #06141a !important;
  color: #d9ffff !important;
  border-radius: 0 !important;
  border: 1px solid rgba(0,232,255,.3) !important;
}
.encounter-mode-active.theme-cyber .chatroom-input .menu-btn svg { fill: #9fe7ec; }
.encounter-mode-active.theme-cyber .send-btn {
  background: #ff2d8d !important;
  color: #031014 !important;
  box-shadow: 0 0 14px rgba(255,45,141,.35);
}
.encounter-mode-active.theme-cyber .send-btn svg { fill: #031014; }
.encounter-mode-active.theme-cyber .encounter-actions {
  background: #02070a !important;
  border-top-color: rgba(0,232,255,.35) !important;
}
.encounter-mode-active.theme-cyber .encounter-actions .wb-btn {
  background: #06141a !important;
  border-color: rgba(0,232,255,.35) !important;
  color: #b8dde0 !important;
}
.encounter-mode-active.theme-cyber .encounter-actions .wb-btn svg { fill: #9fe7ec !important; }
.encounter-mode-active.theme-cyber .encounter-actions .wb-btn.primary {
  background: #00e8ff !important;
  color: #031014 !important;
}
.encounter-mode-active.theme-cyber .encounter-scene-strip {
  background: #040b0f;
  border: 1px solid rgba(0,232,255,.45);
  border-radius: 0;
  box-shadow: 0 0 24px rgba(0,232,255,.1), inset 0 0 18px rgba(0,232,255,.04);
  color: #d9ffff;
  font-family: ui-monospace, monospace;
}
.encounter-mode-active.theme-cyber .scene-kicker { color: #ff2d8d; font-family: ui-monospace, monospace; opacity: .95; }
.encounter-mode-active.theme-cyber .scene-title { color: #eaffff; text-shadow: 0 0 10px rgba(0,232,255,.4); }
.encounter-mode-active.theme-cyber .scene-title span,
.encounter-mode-active.theme-cyber .scene-sub { color: #9fe7ec; opacity: .65; }

/* ====== 主题 3：自定义（云端小铺） ====== */
.encounter-mode-active.theme-custom {
  --enc-card-bg: #fff;
  --enc-card-border: 1px solid rgba(0, 0, 0, 0.06);
  --enc-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --enc-card-radius: 12px;
  --enc-card-padding: 20px 24px;
  --enc-header-height: 140px;
  --enc-header-bg: #fafafa;
  --enc-title-color: #2c2c2c;
  --enc-body-color: #2c2c2c;
}
.encounter-mode-active.theme-custom .msg-row .msg-card {
  background: var(--enc-card-bg);
  border: var(--enc-card-border);
  border-radius: var(--enc-card-radius);
  box-shadow: var(--enc-card-shadow);
}
/* ====== 结束复制 ====== */


/* ============================================================
   ONLY-DEFAULT-TITLE · 「限定雨季」这行宣传语只属于限定雨季主题
   ------------------------------------------------------------
   .card-title 渲染的是 encounterThemeWords（主题文案），原本所有
   主题共用，于是切到黑白/赛博/自定义也会顶着「限定雨季」四个字。
   这里统一在其他主题里隐藏，限定雨季（theme-default）保持原样。
   ============================================================ */
.encounter-mode-active.theme-mono .card-title,
.encounter-mode-active.theme-cyber .card-title,
.encounter-mode-active.theme-starry .card-title,
.encounter-mode-active.theme-custom .card-title {
  display: none !important;
}