/* EngAI 真 3D 形象舞台 — 只动自己，不改 app.css */

[hidden] { display: none !important; }

/* 舞台加宽（覆盖 app.css 写死的 352px，不改 app.css）
 * 3D 舞台是首页第一眼，太小会显得"是个小摆设"——按视口给足尺寸 */
@media (min-width:1180px){
  .core-wrap{ grid-template-columns: minmax(520px, 40%) minmax(0,1fr) !important; }
}
@media (min-width:1400px){
  .core-wrap{ grid-template-columns: 620px minmax(0,1fr) !important; }
}
@media (min-width:1700px){
  .core-wrap{ grid-template-columns: 720px minmax(0,1fr) !important; }
}
@media (max-width:1079px){
  .core-wrap{ grid-template-columns: 340px minmax(0,1fr) !important; }
}

/* 舞台高度：至少撑到视口可视高度的 72%，别让 6 个角色挤在一条窄缝里 */
.core-stage { min-height: clamp(520px, 72vh, 900px); }

#avatarStage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  border-radius: 14px;
  overflow: hidden;
}
#avatarStage:active { cursor: grabbing; }
#avatarStage canvas { display: block; width: 100% !important; height: 100% !important; }

/* 旧 holo-stage 容器背景按主题覆盖：浅色不得残留深色底 */
.holo-stage { background: transparent !important; }

html[data-theme="dark"] .holo-stage,
html[data-theme="dark"] #avatarStage { background: radial-gradient(120% 100% at 50% 30%, #10141c 0%, #0a0c12 100%) !important; }
html[data-theme="light"] .holo-stage,
html[data-theme="light"] #avatarStage { background: radial-gradient(120% 100% at 50% 30%, #f3f5f9 0%, #e9ecf2 100%) !important; }
html[data-theme="red"] .holo-stage,
html[data-theme="red"] #avatarStage { background: radial-gradient(120% 100% at 50% 30%, #2a0a12 0%, #140608 100%) !important; }

/* 旧扫描线/伪光晕在真 3D 下关掉（避免叠加在 canvas 上发灰发糊） */
.holo-stage .holo-scan, .holo-stage::before, .holo-stage::after { display: none !important; }

/* orb 皮肤时旧 .orb mini 仍在；3D orb 已在 canvas 里，不需要额外隐藏 */

/* 提示文字：舞台布局已满，直接隐藏，避免和胶囊/皮肤按钮/状态条重叠 */
.avatar-hint {
  display: none;
}
html[data-theme="light"] .avatar-hint { color: #4a5162; }

/* 角色名字标签 */
.avatar-label {
  position: absolute;
  top: 0; left: 0;
  font-size: 11px;
  letter-spacing: 1px;
  color: #cfd6e2;
  background: rgba(10, 14, 20, 0.55);
  border: 1px solid rgba(200, 16, 46, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 4;
  transition: opacity .25s, border-color .25s, color .25s;
  backdrop-filter: blur(2px);
}
.avatar-label.on {
  color: #fff;
  border-color: #C8102E;
  background: rgba(200, 16, 46, 0.35);
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}
html[data-theme="light"] .avatar-label {
  color: #3a3f4a;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(200, 16, 46, 0.5);
}
html[data-theme="light"] .avatar-label.on {
  color: #fff;
  background: rgba(200, 16, 46, 0.85);
}

/* 底部横排名单：贴到舞台最下缘，别压在角色脚上 */
.avatar-roster {
  position: absolute;
  bottom: 6px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px;
  max-width: 94%;
  z-index: 5; pointer-events: auto;
}
.avatar-roster-item {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12px; letter-spacing: .3px; font-weight: 500;
  padding: 5px 11px; min-width: 74px; min-height: 30px; border-radius: 999px; cursor: pointer;
  color: #b6becd; background: rgba(12,16,24,.66);
  border: 1px solid rgba(255,255,255,.12);
  transition: .18s; white-space: nowrap;
  backdrop-filter: blur(4px);
  user-select: none;
}
.avatar-roster-item::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #6d7686; box-shadow: 0 0 6px rgba(255,255,255,.2);
  flex: 0 0 auto;
}
.avatar-roster-item:nth-child(1)::before { background: #5ec8ff; box-shadow: 0 0 6px #5ec8ff; }
.avatar-roster-item:nth-child(2)::before { background: #35d6a4; box-shadow: 0 0 6px #35d6a4; }
.avatar-roster-item:nth-child(3)::before { background: #ffe0c2; box-shadow: 0 0 6px #ffe0c2; }
.avatar-roster-item:nth-child(4)::before { background: #ffb02e; box-shadow: 0 0 6px #ffb02e; }
.avatar-roster-item:nth-child(5)::before { background: #9b8cff; box-shadow: 0 0 6px #9b8cff; }
.avatar-roster-item:nth-child(6)::before { background: #ff5f9f; box-shadow: 0 0 6px #ff5f9f; }
.avatar-roster-item:hover { color: #fff; border-color: rgba(200,16,46,.55); transform: translateX(-3px); }
.avatar-roster-item:active { transform: scale(.97); }
.avatar-roster-item.on {
  color: #fff; background: #C8102E;
  border-color: #ff4d68; box-shadow: 0 0 16px rgba(200,16,46,.62);
  font-weight: 700; transform: translateX(-3px);
}
.avatar-roster-item.on::before { background: #fff; box-shadow: 0 0 8px #fff; }
html[data-theme="light"] .avatar-roster-item {
  color: #3c424e; background: rgba(255,255,255,.86);
  border-color: rgba(0,0,0,.1);
}
html[data-theme="light"] .avatar-roster-item.on { color:#fff; background: #C8102E; }
html[data-theme="red"] .avatar-roster-item { color: #e9c6ce; background: rgba(24,5,10,.66); border-color: rgba(255,255,255,.14); }
html[data-theme="red"] .avatar-roster-item.on {
  color: #fff; background: #C8102E; border-color: #ff4d68;
  box-shadow: 0 0 16px rgba(255,77,104,.55);
}

/* ==========================================================================
   四态（idle 门面 / working 干活 / focus 被叫 / alert 出问题）
   门面态不带任何 class，样式一行都不碰；下面规则只在 .is-working 时生效；
   alert 不再给舞台加任何 class / 红边 / 呼吸（平台告警只进数据，角色级仅头顶静态标签）。
   ========================================================================== */

/* 给 core-wrap 一个定位锚点（只加 position，不改任何尺寸/布局） */
.core-wrap { position: relative; }

/* ---------- working：3D 缩到左上角 176×168 小框，主区域让给实时面板 ---------- */
.core-wrap.is-working .core-stage {
  position: absolute;
  left: 0; top: 0;
  width: 176px; height: 168px;
  min-height: 0 !important;
  max-height: 168px;
  padding: 0;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: var(--stage-bg, #07090d);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}
/* 装饰性音频短条（.core-bars，8 根暗红竖条）：非信息非交互，纯装饰且红着像告警条，整条隐藏。
   样式定义在 app.css（B 线文件，不改），这里在舞台侧覆盖隐藏。 */
.core-stage .core-bars { display: none !important; }

/* 干活态主区域整块让给面板：聊天列不再挤在小框右侧 */
.core-wrap.is-working .core-chat { display: none; }
.core-wrap.is-working .core-stage .holo-stage { padding: 0; border-radius: 12px; }
.core-wrap.is-working .core-stage .core-bars,
.core-wrap.is-working .core-stage .core-meta,
.core-wrap.is-working .core-stage .avatar-hint,
.core-wrap.is-working .core-stage .holo-skins,
.core-wrap.is-working .core-stage .orb.mini { display: none !important; }
.core-wrap.is-working .core-stage .core-status {
  position: absolute; left: 8px; bottom: 6px;
  font-size: 10px; opacity: .72; pointer-events: none;
}

/* 干活态面板容器：只在这时出现 */
.stage-live-wrap { display: none; }
.core-wrap.is-working .stage-live-wrap {
  display: flex; flex-direction: column;
  position: absolute;
  left: 196px; right: 0; top: 0; bottom: 0;
  z-index: 25;
  padding: 10px 6px 6px 14px;
  border-left: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(6, 8, 11, .97) 0%, rgba(6, 8, 11, .88) 55%, rgba(6, 8, 11, .94) 100%);
}
.slive-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 10px 8px 2px;
}
.slive-bar-label {
  font: 600 10px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .16em; text-transform: uppercase; color: #6b7280;
}
.slive-close {
  font: 500 11px/1 inherit; color: #9aa1ad;
  background: transparent; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px; padding: 5px 9px; cursor: pointer;
}
.slive-close:hover { color: #fff; border-color: rgba(200, 16, 46, .72); }
#stageLiveHost { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; }

/* 窄屏（含 375×812）：竖排 —— 小框在上，面板在下，不硬挤左右 */
@media (max-width: 1080px) {
  .core-wrap.is-working { min-height: 640px; }
  .core-wrap.is-working .core-stage {
    position: relative; left: auto; top: auto;
    width: 100%; height: 170px;
    min-height: 170px !important; max-height: 170px;
  }
  .core-wrap.is-working .stage-live-wrap {
    left: 0; right: 0; top: 178px; bottom: 0;
    padding: 8px 10px 6px;
    border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06);
  }
}

/* 告警分级：平台级告警（心跳停摆 / 代理掉线 / 接口全挂）不碰舞台 DOM，
   不再给舞台加红边 / 红光 / 呼吸动画；此处旧的 is-alert 红边与无限 keyframes 已整体移除。 */

/* 角色头顶的角色级静态短标签（仅 role 作用域：任务失败 / 房间中断 / 门控拦截）：
   静态显示、不呼吸、不加红边；中性琥珀灰，不用告警红。 */
.stage-alert-tag {
  position: absolute; transform: translate(-50%, -100%);
  z-index: 40; pointer-events: none; display: none;
  font: 500 11px/1.35 ui-monospace, Menlo, Consolas, monospace;
  color: #e0b26a; background: rgba(18, 20, 26, .92);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px;
  padding: 3px 7px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.stage-alert-tag::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 1px; height: 6px; background: rgba(255, 255, 255, .18);
}

/* ==========================================================================
   平面皮时代遗留规则的 glb 兼容层
   1) 底部五个预设按钮（核/冷/萌/男/女）在 glb 模式下改成"灯光预设"，
      但 app.js 仍会写 data-skin="orb" —— 老规则 [data-skin="orb"] .holo-stage{display:none}
      会把整个 3D 舞台藏掉，看着像"点了没反应"。这里按引擎档位挡回来。
   2) 切预设时 .core-meta 文案高度会变（52px ↔ 40px），把 holo-stage 顶得变高变矮，
      3D 视口跟着重排 = 画面跳一下。统一给 meta 一个最小高度，切预设不再改布局。
   ========================================================================== */
/* 五档预设的兄弟元素高度必须完全一致，否则 3D 视口会跟着重排（画面"跳一下"）。
   基准取默认档「冷」：orb.mini 不占位 / core-status 30 / core-meta 54 */
html[data-engine="glb"] .core-stage[data-skin="orb"] .holo-stage { display: flex !important; }
html[data-engine="glb"] .core-stage .orb { display: none !important; }
html[data-engine="glb"] .core-stage .orb.mini { display: none !important; }
html[data-engine="glb"] .core-stage .core-status { min-height: 30px; }
html[data-engine="glb"] .core-stage .core-meta { min-height: 54px; }
html[data-engine="glb"] .core-stage[data-skin="orb"] { justify-content: center; padding-bottom: 0; gap: 16px; }

/* 灯光档切换的即时反馈（只在 glb 模式点五个预设时浮一下） */
.skin-toast {
  position: absolute; left: 14px; bottom: 12px; z-index: 45;
  font: 500 11px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .12em; color: #35e0ff;
  background: rgba(8, 11, 16, .88); border: 1px solid rgba(53, 224, 255, .45);
  border-radius: 6px; padding: 5px 9px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.skin-toast.on { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   镜头引擎（B 线）：伪景深径向渐隐 + 场景切换轻提示
   ★ 这是降级方案（无 BokehPass），不是真景深：
     FogExp2 按密度压远 + 网格压暗 + 下面这层 CSS 椭圆渐隐
   ========================================================================== */
/* 上面全局规则把 .holo-stage::before/::after 关了，这里按档位重新打开 */
.holo-stage.dof-strong::after,
.holo-stage.dof-mid::after,
.holo-stage.dof-weak::after {
  content: ''; display: block !important;
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none; border-radius: 14px;
}
.holo-stage.dof-strong::after {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 50%, rgba(0, 0, 0, .85) 100%);
}
.holo-stage.dof-mid::after {
  background: radial-gradient(ellipse 65% 55% at 50% 50%, transparent 55%, rgba(0, 0, 0, .60) 100%);
}
.holo-stage.dof-weak::after {
  background: radial-gradient(ellipse 72% 60% at 50% 50%, transparent 62%, rgba(0, 0, 0, .35) 100%);
}

/* 场景切换轻提示（#stageSceneToast）已整条移除：不再飘「场景 · 特写/展台」文字。 */

/* ==========================================================================
   场景条（scene-bar）：11 个镜头入口，叠在 .holo-stage 底边内部
   - position:absolute，不占文档流，不改 canvas 尺寸
   - 默认 opacity 0.35 克制门面；.holo-stage:hover 升到 1
   - 当前场景：品牌红 #C8102E 细下划线 + 微光
   - live/query/vload：名字后 3px 灰点（数据可视化待接入）
   ========================================================================== */
.scene-bar {
  position: absolute;
  left: 50%; bottom: 8px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex; flex-direction: row; align-items: center;
  gap: 1px;
  max-width: calc(100% - 14px);
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0.35;
  transition: opacity 200ms linear;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  pointer-events: auto;
}
.scene-bar::-webkit-scrollbar { display: none; width: 0; height: 0; }
.holo-stage:hover .scene-bar,
.holo-stage:focus-within .scene-bar { opacity: 1; }

.scene-sep {
  flex: 0 0 auto;
  width: 1px; height: 14px; margin: 0 4px;
  background: rgba(255, 255, 255, 0.14);
}

.scene-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 7px;
  font: 500 11px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .04em;
  color: #9aa3b2;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 180ms linear, border-color 180ms linear, box-shadow 180ms linear;
  -webkit-appearance: none; appearance: none;
}
.scene-btn:hover { color: #e6ebf2; }
.scene-btn:focus-visible { outline: 1px solid rgba(200, 16, 46, 0.6); outline-offset: 2px; }
.scene-btn.on {
  color: #fff;
  border-bottom-color: #C8102E;
  box-shadow: 0 2px 10px -3px rgba(200, 16, 46, 0.6);
}
.scene-btn.on .sc-ico { stroke: #ff5d78; }

.scene-btn .sc-ico {
  width: 12px; height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  transition: stroke 180ms linear;
}
.scene-btn .sc-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: #6d7686; flex: 0 0 auto;
  margin-left: 1px;
}
.scene-btn.on .sc-dot { background: rgba(255, 93, 120, 0.7); }

/* 浅色 / 红色主题微调 */
html[data-theme="light"] .scene-bar {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .scene-btn { color: #4a5162; }
html[data-theme="light"] .scene-btn:hover { color: #1a1d24; }
html[data-theme="light"] .scene-btn.on { color: #C8102E; }
html[data-theme="light"] .scene-sep { background: rgba(0, 0, 0, 0.12); }
html[data-theme="red"] .scene-bar {
  background: rgba(20, 5, 10, 0.66);
  border-color: rgba(255, 255, 255, 0.10);
}

/* 首次进入一句话引导浮字：在场景条上方，2 秒淡出 */
.scene-tip {
  position: absolute;
  left: 50%; bottom: 46px;
  transform: translateX(-50%);
  z-index: 19;
  font: 400 12px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .06em;
  color: #cfd6e2;
  background: rgba(8, 11, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 10px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 2000ms linear;
}
.scene-tip.show { opacity: 0.7; }
.scene-tip.fade { opacity: 0; }
html[data-theme="light"] .scene-tip {
  color: #3a3f4a;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

/* 手机 375×812：单行横滚，不换行，不压底部五档按钮和 HUD 卡 */
@media (max-width: 1080px) {
  .scene-bar {
    bottom: 6px;
    max-width: calc(100% - 10px);
    padding: 3px 5px;
    gap: 0;
  }
  .scene-btn { padding: 3px 6px; font-size: 10.5px; }
  .scene-btn .sc-ico { width: 11px; height: 11px; }
  .scene-tip { bottom: 40px; font-size: 11px; }
}

/* ==========================================================================
   舞台可点（C 线）：头顶气泡
   - 悬停浮标（.ix-hover-tip）已整条移除：悬停只保留无字高亮，不浮出文字。
   - 头顶气泡：仅当前发言角色说话时常驻，说完即隐；淡青色描边，不重。
   ========================================================================== */
.ix-bubble {
  position: absolute; left: 0; top: 0; z-index: 48;
  font: 500 12px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  color: #9be8ff;
  background: rgba(8, 16, 22, 0.55);
  border: 1px solid rgba(53, 224, 255, 0.30);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease-out;
  will-change: transform, opacity;
}
.ix-bubble.fade {
  opacity: 0.85;
  animation: ixBubbleFade 1.8s ease-in forwards;
}
@keyframes ixBubbleFade {
  0%   { opacity: 0.85; transform: translate(-50%, -100%) scale(0.85); }
  15%  { opacity: 0.95; transform: translate(-50%, -100%) scale(1.0); }
  100% { opacity: 0;   transform: translate(-50%, -110%) scale(0.98); }
}

/* ==========================================================================
   场景条可读性迭代（v2）：默认 0.35 在暗底上糊成一片，提到 0.55 + 渐变底衬
   ========================================================================== */
.scene-bar {
  opacity: 0.55;
  background: linear-gradient(180deg,
      rgba(10, 13, 19, 0.35) 0%,
      rgba(6, 8, 12, 0.62) 100%);
}
/* 首次进入亮一下（由 inline script 加 .flash，4 秒后移除） */
.scene-bar.flash { opacity: 1; }
.holo-stage:hover .scene-bar,
.holo-stage:focus-within .scene-bar { opacity: 1; }

/* 左端"场景"小标：让人一眼知道这是一排控件，不是装饰 */
.scene-bar-label {
  flex: 0 0 auto;
  font: 500 10px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .18em;
  color: #7a8290;
  padding: 0 8px 0 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  margin-right: 2px;
  user-select: none;
}
.scene-bar-label::before {
  content: '';
  display: inline-block;
  width: 3px; height: 10px;
  background: #C8102E;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(200, 16, 46, 0.6);
}
.scene-bar.flash .scene-bar-label,
.holo-stage:hover .scene-bar-label { color: #aab2c0; }

@media (max-width: 1080px) {
  .scene-bar-label { font-size: 9.5px; letter-spacing: .14em; padding: 0 6px 0 3px; }
  .scene-bar-label::before { height: 9px; margin-right: 5px; }
}
/* ==========================================================================
   v3: 11 项全挤进 619px 舞台（v2 在 1440 下"负载"被切在右边框外）
   ========================================================================== */
.scene-bar {
  gap: 0 !important;
  padding: 3px 4px !important;
  max-width: calc(100% - 10px) !important;
}
.scene-bar-label {
  padding: 0 6px 0 3px !important;
  margin-right: 0 !important;
  font-size: 9.5px !important;
  letter-spacing: .14em !important;
}
.scene-bar-label::before {
  width: 2.5px !important; height: 9px !important;
  margin-right: 5px !important;
}
.scene-sep {
  width: 1px !important; height: 12px !important;
  margin: 0 3px !important;
}
.scene-btn {
  gap: 3px !important;
  padding: 3px 5px !important;
  font-size: 10.5px !important;
  letter-spacing: .02em !important;
}
.scene-btn .sc-ico {
  width: 10px !important; height: 10px !important;
  stroke-width: 1.3 !important;
}
.scene-btn .sc-dot {
  width: 2.5px !important; height: 2.5px !important;
  margin-left: 0 !important;
}
/* 溢出提示：仅在 has-overflow 时显示右边渐隐 + 箭头 */
.scene-bar.has-overflow {
  mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent 100%);
}
.scene-bar.has-overflow::after {
  content: '';
  position: absolute;
  right: 4px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid rgba(255,255,255,0.55);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  pointer-events: none;
}
/* 溢出箭头：叠在场景条右端，仅溢出时显示（JS 控 opacity） */
.scene-bar-more {
  position: absolute;
  right: 14px; bottom: 8px;
  width: 0; height: 0;
  border-left: 5px solid rgba(255,255,255,0.6);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0;
  transition: opacity 200ms linear;
  pointer-events: none;
  z-index: 21;
}
@media (max-width: 1080px) {
  .scene-bar-more { bottom: 6px; right: 10px; }
}
/* ==========================================================================
   v4 收尾：默认更亮、文字提亮图标压暗、待接点对齐基线
   ========================================================================== */
.scene-bar { opacity: 0.65 !important; }
.scene-btn { color: rgba(216, 224, 234, 0.92) !important; }
.scene-btn .sc-ico {
  stroke: rgba(160, 170, 184, 0.75) !important;
  transition: stroke 180ms linear;
}
.scene-btn.on { color: #fff !important; }
.scene-btn.on .sc-ico { stroke: #ff5d78 !important; }
.scene-btn .sc-dot {
  font-style: normal;
  align-self: center;
  margin-left: 1px;
}

/* ==========================================================================
   手势交互（拖人 / 转视角 / 双击）：touch-action:none 只加在 canvas 上，
   容器本身不拦截页面底部滚动；指针事件统一走 pointerdown/move/up
   ========================================================================== */
#avatarStage { touch-action: auto; }
#avatarStage canvas { touch-action: none; }