/* ==================================================================
 * 对战舞台（stage.css）· 暗色演播厅 + 3D 长桌 + 9 位独立造型人物
 * ------------------------------------------------------------------
 * 1. 场景：LED 背景屏 + 灯光桁架 + 摆动光束 + 浮尘 + 观众席剪影 + 反光地板
 * 2. 人物：肩胸腰/手臂手/颈脸下颌/五官(睫·瞳·高光·唇·腮红)/发型/配饰
 * 3. 坐标只写在 CSS（--x/--y/--sc/--ry/--z），JS 不参与布局
 * 4. --y = 脚底线；--z 决定与桌面的遮挡（后排 --z:2 被桌沿挡住下半身）
 * 5. 手机竖屏：长桌竖放（顺着桌子的走廊视角），左右两列对坐
 * ================================================================== */

.stage {
  --neon-p: #3ee6a8;      /* 正方 霓虹青绿 */
  --neon-c: #ff5f95;      /* 反方 霓虹粉红 */
  --neon-m: #5cb8ff;      /* 主席 霓虹蓝 */
  --wood-1: #58402e; --wood-2: #35251a; --wood-3: #150e08;
  position: relative;
  height: 470px;
  margin: 10px 0 0;
  border: 1px solid #223049;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: #e9f0fb;
  background:
    radial-gradient(120% 72% at 50% 112%, rgba(92, 184, 255, .18), transparent 62%),
    radial-gradient(80% 56% at 50% -14%, rgba(255, 95, 149, .16), transparent 64%),
    linear-gradient(180deg, #0b1226 0%, #111c39 40%, #0a1022 72%, #050810 100%);
  perspective: 780px;
  perspective-origin: 50% 30%;
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .05);
  user-select: none;
}
.stage::after {                            /* 暗角，把视线收到中间 */
  content: '';
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: radial-gradient(116% 92% at 50% 46%, transparent 52%, rgba(0, 0, 0, .5) 100%);
}

/* --------------------------- 背景：LED 屏 + 辩题牌 --------------------------- */
.stage .wall { position: absolute; left: 0; right: 0; top: 0; height: 54%; z-index: 0; }
.stage .wall::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 66%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 66%, transparent 100%);
}
.stage .wall::after {
  content: '';
  position: absolute; left: 50%; top: -18%; width: 74%; height: 92%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(92, 184, 255, .22), transparent 70%);
  filter: blur(6px);
}
.stage .board {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  z-index: 1; max-width: 88%;
  padding: 5px 18px 6px; border-radius: 4px;
  font-size: 14px; font-weight: 800; letter-spacing: 3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: #f2f8ff;
  background: linear-gradient(180deg, rgba(20, 32, 60, .72), rgba(8, 14, 30, .5));
  border: 1px solid rgba(120, 190, 255, .34);
  box-shadow: 0 0 18px rgba(92, 184, 255, .22), inset 0 0 14px rgba(92, 184, 255, .12);
  text-shadow: 0 0 6px rgba(120, 200, 255, .95), 0 0 20px rgba(92, 184, 255, .55), 0 0 42px rgba(255, 95, 149, .3);
}
.stage .board i { font-style: normal; color: var(--neon-c); text-shadow: 0 0 10px rgba(255, 95, 149, .9); }

/* --------------------------- 灯光桁架 / 光束 / 浮尘 --------------------------- */
.stage .truss { position: absolute; left: 4%; right: 4%; top: 46px; height: 8px; z-index: 1; }
.stage .truss::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #2b3550, #101827);
  border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.stage .truss i {
  position: absolute; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #9fd0ff 45%, #2b4a72 100%);
  box-shadow: 0 0 10px 2px rgba(140, 200, 255, .75);
  animation: lampBlink 3.6s ease-in-out infinite;
}
@keyframes lampBlink { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.stage .beams {
  position: absolute; left: -12%; right: -12%; top: 42px; height: 74%;
  z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .5;
}
.stage .beams i {
  position: absolute; top: 0; width: 22%; height: 132%;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(7px); transform-origin: 50% 0;
}
.stage .beams i:nth-child(1) { left: 4%;  background: linear-gradient(180deg, rgba(120, 195, 255, .5), transparent 70%); animation: sway1 11s ease-in-out infinite; }
.stage .beams i:nth-child(2) { left: 28%; background: linear-gradient(180deg, rgba(255, 110, 165, .42), transparent 70%); animation: sway2 13s ease-in-out infinite; }
.stage .beams i:nth-child(3) { left: 52%; background: linear-gradient(180deg, rgba(90, 235, 180, .38), transparent 70%); animation: sway1 9.5s ease-in-out infinite reverse; }
.stage .beams i:nth-child(4) { left: 74%; background: linear-gradient(180deg, rgba(160, 140, 255, .42), transparent 70%); animation: sway2 15s ease-in-out infinite reverse; }
@keyframes sway1 { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(6deg); } }
@keyframes sway2 { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-5deg); } }

.stage .dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.stage .dust i {
  position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(210, 235, 255, .75); filter: blur(.5px);
  animation: dustUp linear infinite;
}
@keyframes dustUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .85; }
  100% { transform: translateY(-430px) translateX(18px); opacity: 0; }
}
/* 系统要求减少动效时，只留静态构图 */
@media (prefers-reduced-motion: reduce) {
  .stage .dust, .stage .beams { display: none; }
  .stage .truss i, .stage .crowd i, .fig .person { animation: none !important; }
}

/* --------------------------- 观众席剪影（左右两簇） --------------------------- */
.stage .crowd { position: absolute; top: 21%; height: 30px; z-index: 1; pointer-events: none; opacity: .9; }
.stage .crowd.l { left: 0; width: 16%; }
.stage .crowd.r { right: 0; width: 16%; }
.stage .crowd i {
  position: absolute; bottom: 0; width: 15px; height: 15px;
  border-radius: 50% 50% 40% 40%; background: #050914;
  box-shadow: 0 12px 0 6px #050914, inset 1px 2px 0 rgba(140, 195, 255, .32);
  animation: bob 4.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ------------------------------ 地板 ------------------------------ */
.stage .floor {
  position: absolute; left: -26%; right: -26%; top: 46%; bottom: -12%; z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, #16213d 0%, #0d1428 46%, #070b16 100%);
  transform: rotateX(70deg); transform-origin: 50% 0%;
}
.stage .floor::after {
  content: ''; position: absolute; left: 6%; right: 6%; top: 6%; height: 32%;
  background: linear-gradient(180deg, rgba(120, 190, 255, .18), transparent);
  filter: blur(10px);
}

/* ------------------------------ 长桌 ------------------------------ */
.stage .table {
  position: absolute; left: 50%; top: 56%; width: 74%; height: 30%;
  transform: translate(-50%, -50%) rotateX(58deg);
  transform-origin: 50% 50%;
  z-index: 3; border-radius: 12px;
  pointer-events: none;                          /* 纯装饰层：不许抢人物的点击（手机竖屏桌面矩形盖住大半屏，点人全被它吃掉） */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, var(--wood-1) 0%, var(--wood-2) 52%, var(--wood-3) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 200, .18),
    inset 0 -14px 22px rgba(0, 0, 0, .5),
    0 26px 34px -18px rgba(0, 0, 0, .85);
}
.stage .table::before {                    /* 木纹 + 中缝 */
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 46px),
    linear-gradient(90deg, transparent 49.4%, rgba(0, 0, 0, .38) 50%, transparent 50.6%);
}
.stage .table::after {                     /* 桌沿冷光带 */
  content: ''; position: absolute; left: 1%; right: 1%; bottom: -3px; height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(92, 184, 255, .8) 22%, rgba(255, 95, 149, .7) 78%, transparent);
  filter: blur(1.6px); opacity: .85;
}
.stage .table .skirt {                     /* 台裙（桌子的正脸） */
  position: absolute; left: 2%; right: 2%; top: 100%; height: 62%;
  transform: rotateX(-58deg); transform-origin: 50% 0%;
  background: linear-gradient(180deg, #1a2338 0%, #0d1322 60%, #070b14 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(140, 195, 255, .28);
}
.stage .table .skirt::after {
  content: attr(data-brand); position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%);
  font-size: 11px; letter-spacing: 7px; white-space: nowrap;
  color: rgba(190, 220, 255, .5); text-shadow: 0 0 10px rgba(92, 184, 255, .45);
}
.stage .table .plate {                     /* 桌面席卡 */
  position: absolute; width: 12%; height: 26%; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #fdf6e6, #d9cbb0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  font-size: 9px; line-height: 1.25; color: #3a2c1c; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; white-space: nowrap;
}
.stage .table .plate.pro { box-shadow: 0 0 8px rgba(62, 230, 168, .4), 0 1px 3px rgba(0, 0, 0, .5); }
.stage .table .plate.con { box-shadow: 0 0 8px rgba(255, 95, 149, .4), 0 1px 3px rgba(0, 0, 0, .5); }
.stage .table .gear {                      /* 桌面稿件与水杯 */
  position: absolute; width: 7%; height: 16%; border-radius: 1px;
  background: linear-gradient(180deg, #f4f0e6, #cfc7b6); opacity: .82;
}
.stage .table .gear.cup {
  width: 3.4%; height: 12%; border-radius: 2px 2px 5px 5px; opacity: 1;
  background: linear-gradient(180deg, rgba(220, 245, 255, .95), rgba(120, 180, 220, .55));
  box-shadow: 0 0 6px rgba(140, 200, 255, .5);
}

/* ------------------------- 人物：定位与层级 ------------------------- */
.fig {
  --skin: #f6d9bf; --hair: #2b2621; --cloth: #2f4258; --shirt: #fff;
  --tie: #1f6feb; --lip: #d1566b; --frame: #7d8ea8;
  position: absolute; left: var(--x); top: var(--y);
  width: 86px; height: 126px;
  transform: translate(-50%, -100%) scale(var(--sc, 1)) rotateY(var(--ry, 0deg));
  transform-origin: 50% 100%;
  cursor: pointer; z-index: var(--z, 2);
}
.fig.on { z-index: calc(var(--z, 2) + 1); }
.fig .person {
  position: absolute; inset: 0;
  transition: transform .34s cubic-bezier(.22, .9, .3, 1.2), filter .3s, opacity .3s;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55));
  animation: breathe 3.4s ease-in-out infinite;
  animation-delay: calc(-1 * var(--ph, 0s));   /* 每席错相位，不像复制粘贴 */
}
/* 发言时：位移与微摆直接由音量 --vox / 慢摆 --sway 驱动（JS 每帧写） */
.fig.on .person {
  transform: translateY(calc(-18px - var(--vox, 0) * 5px)) rotate(calc(var(--sway, 0) * 1.25deg));
  animation: none;
  transition: transform .1s ease-out, filter .3s, opacity .3s;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6));
}
@keyframes breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.008 1.014; } }
.fig.pro { --neon: var(--neon-p); } .fig.con { --neon: var(--neon-c); } .fig.mid { --neon: var(--neon-m); }

.fig .beam {                               /* 追光锥 */
  position: absolute; left: 50%; top: -46%; width: 116px; height: 168%;
  transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, rgba(190, 225, 255, .34), rgba(190, 225, 255, .04) 58%, transparent 76%);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  filter: blur(4px); opacity: 0; transition: opacity .3s;
}
.fig .pool {                               /* 地面光斑 */
  position: absolute; left: 50%; bottom: -10px; width: 108px; height: 26px;
  transform: translateX(-50%); pointer-events: none; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, var(--neon), transparent 72%);
  opacity: 0; transition: opacity .3s; mix-blend-mode: screen;
}
.fig.on .beam { opacity: calc(.62 + var(--vox, 0) * .38); }
.fig.on .pool { opacity: calc(.5 + var(--vox, 0) * .5); scale: calc(1 + var(--vox, 0) * .16) 1; }
.stage.focused .fig:not(.on) .person { opacity: .5; filter: brightness(.62) saturate(.7); animation: none; }
.fig.silent { opacity: .8; }

.fig .tag {                                /* 席卡 */
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  font-size: 10px; line-height: 1.4; padding: 1px 7px; border-radius: 8px; white-space: nowrap;
  border: 1px solid var(--neon, rgba(140, 195, 255, .45));
  background: rgba(6, 11, 22, .78); color: #dbe7f8;
  box-shadow: 0 0 10px -2px var(--neon, rgba(92, 184, 255, .6));
  transition: all .2s;
}
.fig.pro .tag { color: #b7ffdd; } .fig.con .tag { color: #ffd0e0; } .fig.mid .tag { color: #cfe8ff; }
.fig.on .tag {
  background: var(--neon); color: #041018; font-weight: 800;
  transform: translateX(-50%) scale(1.1); box-shadow: 0 0 18px var(--neon);
}
.fig .dot {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  font-size: 9px; padding: 0 6px; border-radius: 8px; white-space: nowrap;
  background: rgba(92, 184, 255, .18); color: #bfe0ff; border: 1px solid rgba(92, 184, 255, .45);
  opacity: 0; transition: opacity .2s;
}
.fig.thinking .dot { opacity: 1; animation: pulse 1.1s ease-in-out infinite; }
.fig.ready .dot { opacity: 1; background: rgba(62, 230, 168, .16); color: #a9f5d3; border-color: rgba(62, 230, 168, .5); }
.fig.err .dot { opacity: 1; background: rgba(255, 95, 120, .18); color: #ffc4cc; border-color: rgba(255, 95, 120, .5); }
@keyframes pulse { 50% { transform: translateX(-50%) translateY(-2px); } }

/* ------------------------------ 身体 ------------------------------ */
.fig .torso {
  position: absolute; left: 50%; bottom: 6px; width: 54px; height: 52px;
  transform: translateX(-50%);
  border-radius: 26px 26px 10px 10px / 22px 22px 10px 10px;
  background: linear-gradient(180deg, var(--cloth), rgba(0, 0, 0, .42) 210%);
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, .12),
    inset -3px 0 6px rgba(0, 0, 0, .28),
    inset 3px 0 6px rgba(140, 200, 255, .12);
}
.fig[data-sex=f] .torso { width: 46px; border-radius: 22px 22px 14px 14px / 20px 20px 16px 16px; }
.fig .torso::before {                      /* 衬衫门襟 */
  content: ''; position: absolute; left: 50%; top: 4px; bottom: 0; width: 12px;
  transform: translateX(-50%); background: var(--shirt); border-radius: 5px; opacity: .95;
}
.fig .lap {                                /* 坐姿大腿 */
  position: absolute; left: 50%; bottom: 0; width: 48px; height: 16px;
  transform: translateX(-50%); border-radius: 8px 8px 6px 6px;
  background: var(--cloth); filter: brightness(.55);
}
.fig .shoulder {                           /* 肩线轮廓光 */
  position: absolute; left: 50%; top: 0; width: 58px; height: 12px;
  transform: translateX(-50%); border-radius: 12px 12px 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(190, 225, 255, .5), transparent 78%);
}
.fig[data-sex=f] .shoulder { width: 50px; }
.fig .collar {
  position: absolute; left: 50%; top: 1px; width: 26px; height: 13px;
  transform: translateX(-50%); background: var(--shirt);
  clip-path: polygon(0 0, 42% 0, 50% 100%, 58% 0, 100% 0, 100% 30%, 55% 100%, 45% 100%, 0 30%);
}
.fig .tie {
  position: absolute; left: 50%; top: 7px; width: 8px; height: 26px;
  transform: translateX(-50%); background: var(--tie);
  clip-path: polygon(50% 0, 100% 16%, 74% 100%, 26% 100%, 0 16%);
  box-shadow: inset -2px 0 3px rgba(0, 0, 0, .35);
}
.fig .bow {
  display: none; position: absolute; left: 50%; top: 5px; width: 24px; height: 12px;
  transform: translateX(-50%); background: var(--tie); border-radius: 3px;
  clip-path: polygon(0 0, 42% 42%, 42% 100%, 0 100%, 0 0, 100% 0, 58% 42%, 58% 100%, 100% 100%, 100% 0);
}
.fig[data-tie=bow] .bow { display: block; } .fig[data-tie=bow] .tie { display: none; }
.fig .brooch {
  display: none; position: absolute; left: 11px; top: 15px; width: 9px; height: 6px;
  background: linear-gradient(135deg, #fff6d8, #d8b25a); border-radius: 1px 3px 1px 3px;
  box-shadow: 0 0 6px rgba(216, 178, 90, .85);
}
.fig[data-deco~=brooch] .brooch { display: block; }
.fig .necklace {
  display: none; position: absolute; left: 50%; top: 9px; width: 20px; height: 12px;
  transform: translateX(-50%); border: 1.5px solid #ffe9a8; border-top: 0;
  border-radius: 0 0 12px 12px; box-shadow: 0 0 6px rgba(255, 233, 168, .7);
}
.fig[data-deco~=necklace] .necklace { display: block; }
.fig .arm {
  position: absolute; bottom: 14px; width: 13px; height: 36px;
  background: linear-gradient(180deg, var(--cloth), rgba(0, 0, 0, .4) 240%);
  border-radius: 7px; transform-origin: 50% 5px;
  box-shadow: inset 0 -5px 7px rgba(0, 0, 0, .28), inset 2px 0 4px rgba(190, 225, 255, .12);
}
.fig .arm.l { left: 6px; transform: rotate(10deg); }
.fig .arm.r { right: 6px; transform: rotate(-10deg); }
.fig .arm .cuff {
  position: absolute; left: -1px; bottom: 5px; width: 15px; height: 4px;
  background: var(--shirt); border-radius: 2px; opacity: .9;
}
.fig .arm .hand {
  position: absolute; left: 0; bottom: -5px; width: 13px; height: 13px;
  border-radius: 50% 50% 44% 44%; background: var(--skin);
  box-shadow: inset -2px -3px 4px rgba(120, 70, 40, .32);
}

/* ---------------------------- 衣装款式 ---------------------------- */
.fig .lapel {                              /* 西装 / 大衣 翻领 */
  display: none; position: absolute; top: 2px; width: 16px; height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .35)), var(--cloth);
  filter: brightness(.82);
}
.fig .lapel.l { left: 3px; clip-path: polygon(0 0, 100% 6%, 42% 100%, 0 86%); }
.fig .lapel.r { right: 3px; clip-path: polygon(0 6%, 100% 0, 100% 86%, 58% 100%); }
.fig[data-cloth=suit] .lapel, .fig[data-cloth=coat] .lapel, .fig[data-cloth=tux] .lapel { display: block; }
.fig[data-cloth=coat] .torso { height: 54px; border-radius: 24px 24px 12px 12px / 22px 22px 12px 12px; }
.fig[data-cloth=coat] .torso::before { width: 8px; opacity: .55; }
.fig[data-cloth=tux] .torso { background: linear-gradient(180deg, #16203a, #060a14); }
.fig[data-cloth=tux] .lapel { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .04)); filter: none; }
.fig[data-cloth=dress] .torso { border-radius: 24px 24px 18px 18px / 20px 20px 22px 22px; }
.fig[data-cloth=dress] .torso::before { width: 18px; border-radius: 9px 9px 0 0; opacity: .9; }
.fig[data-cloth=dress] .collar, .fig[data-cloth=dress] .tie, .fig[data-cloth=dress] .lapel { display: none; }
.fig[data-cloth=dress] .lap { width: 58px; height: 22px; background: var(--cloth); filter: brightness(.92); border-radius: 10px 10px 16px 16px; }
.fig[data-cloth=hoodie] .torso { border-radius: 22px 22px 12px 12px; }
.fig[data-cloth=hoodie] .torso::before { width: 20px; border-radius: 10px; opacity: .42; }
.fig[data-cloth=hoodie] .collar, .fig[data-cloth=hoodie] .tie { display: none; }
.fig .hood {                               /* 帽兜 */
  display: none; position: absolute; left: 50%; bottom: 44px; width: 52px; height: 22px;
  transform: translateX(-50%); border-radius: 26px 26px 8px 8px;
  background: var(--cloth); filter: brightness(.78);
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, .35);
}
.fig[data-cloth=hoodie] .hood { display: block; }
.fig .pocket {                             /* 卫衣口袋 */
  display: none; position: absolute; left: 50%; bottom: 12px; width: 30px; height: 9px;
  transform: translateX(-50%); border-radius: 4px; border: 1px dashed rgba(0, 0, 0, .3);
}
.fig[data-cloth=hoodie] .pocket { display: block; }
.fig[data-tie=none] .tie, .fig[data-tie=none] .bow { display: none; }

/* ------------------------------ 头部 ------------------------------ */
.fig .head { position: absolute; left: 50%; bottom: 50px; width: 40px; height: 46px; transform: translateX(-50%); }
.fig .neck {
  position: absolute; left: 50%; top: 2px; width: 11px; height: 13px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--skin), rgba(150, 90, 60, .6));
}
.fig .face {
  position: absolute; inset: 5px 2px 0;
  background:
    radial-gradient(60% 40% at 30% 22%, rgba(255, 255, 255, .3), transparent 70%),
    linear-gradient(180deg, var(--skin), rgba(210, 150, 118, .55) 320%);
  border-radius: 44% 44% 42% 42% / 34% 34% 62% 62%;
  box-shadow:
    inset 0 -5px 7px rgba(150, 88, 54, .28),
    inset -3px 2px 4px rgba(190, 225, 255, .22),
    0 0 0 1px rgba(0, 0, 0, .06);
}
.fig[data-sex=f] .face { border-radius: 46% 46% 46% 46% / 32% 32% 66% 66%; }
.fig .ear {
  position: absolute; top: 18px; width: 6px; height: 11px; border-radius: 50%;
  background: var(--skin); box-shadow: inset -1px 1px 2px rgba(140, 80, 50, .5);
}
.fig .ear.l { left: -2px; } .fig .ear.r { right: -2px; }
.fig .chin {
  position: absolute; left: 50%; bottom: 0; width: 15px; height: 8px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(150, 90, 55, .2); filter: blur(2.5px);
}

/* ------------------------------ 五官 ------------------------------ */
.fig .brow { position: absolute; top: 14px; width: 9px; height: 2.5px; border-radius: 2px; background: var(--hair); opacity: .92; }
.fig .brow.l { left: 6px; transform: rotate(-6deg); }
.fig .brow.r { right: 6px; transform: rotate(6deg); }
.fig[data-sex=f] .brow { height: 2px; width: 8px; border-radius: 60% 60% 2px 2px; }
.fig[data-brow=up] .brow.l { transform: rotate(-14deg) translateY(-1px); }
.fig[data-brow=up] .brow.r { transform: rotate(14deg) translateY(-1px); }
.fig[data-brow=stern] .brow.l { transform: rotate(9deg); }
.fig[data-brow=stern] .brow.r { transform: rotate(-9deg); }
.fig .eye {
  position: absolute; top: 19px; width: 10px; height: 9px; overflow: hidden;
  border-radius: 52% 52% 48% 48% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #fff, #e6edf6);
  box-shadow: inset 0 1px 2px rgba(90, 60, 40, .35);
}
.fig .eye.l { left: 5px; } .fig .eye.r { right: 5px; }
.fig .eye .iris {
  position: absolute; left: 2.5px; top: 2.5px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #6b4a34, #241812 72%);
}
.fig .eye .glit {
  position: absolute; left: 5.5px; top: 1.6px; width: 2.4px; height: 2.4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 3px rgba(255, 255, 255, .9);
}
.fig .eye .lid {
  position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  border-radius: 50%; background: #241a14;
}
.fig .lash {
  display: none; position: absolute; top: 18px; width: 5px; height: 4px;
  border-top: 1.6px solid #1b1410; border-radius: 50%;
}
.fig .lash.l { left: 2px; transform: rotate(-16deg); }
.fig .lash.r { right: 2px; transform: rotate(16deg); }
.fig[data-sex=f] .lash { display: block; }
.fig[data-eye=squint] .eye { height: 5px; top: 21px; }
.fig[data-eye=wide] .eye { height: 11px; }
.fig .nose {
  position: absolute; left: 50%; top: 24px; width: 4px; height: 5px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(160, 95, 60, .3); box-shadow: 1px 1px 0 rgba(255, 255, 255, .35);
}
.fig .mouth {
  position: absolute; left: 50%; top: 31px; width: 11px; height: 4px; transform: translateX(-50%);
  border-radius: 3px 3px 7px 7px; background: var(--lip); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .3);
}
.fig[data-sex=f] .mouth { width: 12px; height: 5px; }
.fig .mouth .t { position: absolute; left: 2px; right: 2px; top: 0; height: 1.5px; background: #fff; opacity: .8; border-radius: 1px; }
.fig .blush {
  position: absolute; top: 26px; width: 9px; height: 5px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 110, 130, .55), transparent 72%);
  filter: blur(.6px);
}
.fig .blush.l { left: 1px; } .fig .blush.r { right: 1px; }
.fig[data-deco~=noblush] .blush { display: none; }
.fig .stubble {
  display: none; position: absolute; left: 50%; bottom: 1px; width: 21px; height: 9px;
  transform: translateX(-50%); border-radius: 0 0 12px 12px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(40, 30, 25, .4), transparent 78%);
}
.fig[data-deco~=beard] .stubble { display: block; }

/* ------------------------------ 发型 ------------------------------ */
.fig .hair { position: absolute; background: var(--hair); }
.fig .hair.back {                          /* 后发：给头部体积 */
  display: none; left: 50%; top: 1px; width: 44px; height: 46px;
  transform: translateX(-50%); border-radius: 22px 22px 16px 16px; filter: brightness(.7);
}
.fig[data-hair=long] .hair.back, .fig[data-hair=bob] .hair.back,
.fig[data-hair=pony] .hair.back, .fig[data-hair=wavy] .hair.back,
.fig[data-hair=bun] .hair.back { display: block; }
.fig .hair.main {                          /* 顶发 + 发丝高光 */
  left: 50%; top: -2px; width: 44px; height: 26px; transform: translateX(-50%);
  border-radius: 22px 22px 8px 8px / 24px 24px 6px 6px;
  background:
    linear-gradient(118deg, transparent 32%, rgba(255, 255, 255, .3) 43%, transparent 53%),
    linear-gradient(180deg, var(--hair), rgba(0, 0, 0, .55) 300%);
}
.fig .hair.bang {                          /* 刘海：齐 / 斜 / 中分 */
  position: absolute; left: 50%; top: 4px; width: 38px; height: 12px; transform: translateX(-50%);
  background: var(--hair); border-radius: 0 0 40% 40% / 0 0 100% 100%;
}
.fig[data-bang=side] .hair.bang { border-radius: 0 60% 70% 10% / 0 100% 100% 40%; width: 40px; }
.fig[data-bang=mid] .hair.bang { clip-path: polygon(0 0, 100% 0, 100% 34%, 55% 100%, 50% 42%, 45% 100%, 0 34%); border-radius: 0; }
.fig[data-bang=none] .hair.bang { display: none; }
.fig .hair.side {                          /* 两侧垂发 */
  display: none; left: 50%; top: 6px; width: 48px; height: 44px; transform: translateX(-50%);
  border-radius: 14px 14px 22px 22px;
  background: linear-gradient(180deg, var(--hair), rgba(0, 0, 0, .5) 260%);
}
.fig[data-hair=long] .hair.side, .fig[data-hair=wavy] .hair.side { display: block; }
.fig[data-hair=wavy] .hair.side { border-radius: 16px 16px 30px 30px / 12px 12px 40px 40px; }
.fig[data-hair=bob] .hair.side { display: block; height: 26px; width: 46px; }
.fig .hair.pony { display: none; right: -7px; left: auto; top: 12px; width: 14px; height: 36px; transform: rotate(11deg); border-radius: 8px 8px 14px 14px; }
.fig[data-hair=pony] .hair.pony { display: block; }
.fig .hair.bun { display: none; left: 50%; top: -12px; width: 18px; height: 16px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 34%, rgba(255, 255, 255, .26), transparent 62%), var(--hair); }
.fig[data-hair=bun] .hair.bun { display: block; }
.fig .hair.twin-l, .fig .hair.twin-r { display: none; top: 12px; width: 12px; height: 32px; border-radius: 7px 7px 14px 14px; }
.fig .hair.twin-l { left: -7px; transform: rotate(-9deg); }
.fig .hair.twin-r { right: -7px; left: auto; transform: rotate(9deg); }
.fig[data-hair=twin] .hair.twin-l, .fig[data-hair=twin] .hair.twin-r { display: block; }
.fig .hair.tuft { display: none; left: 52%; top: -9px; width: 13px; height: 11px; border-radius: 50% 90% 0 0; background: var(--hair); transform: rotate(24deg); }
.fig[data-deco~=tuft] .hair.tuft { display: block; }
.fig[data-hair=short] .hair.main { height: 21px; border-radius: 20px 20px 4px 4px / 22px 22px 4px 4px; }
.fig[data-hair=cap] .hair.main { height: 18px; border-radius: 18px 18px 3px 3px; }

/* ------------------------------ 配饰 ------------------------------ */
.fig .glasses, .fig .headset, .fig .earring, .fig .fan, .fig .cup { display: none; }
.fig .glasses {
  position: absolute; left: 50%; top: 17px; width: 32px; height: 12px; transform: translateX(-50%);
  border: 1.6px solid var(--frame); border-radius: 5px 5px 7px 7px; border-top-color: transparent;
  box-shadow: 0 0 6px rgba(160, 210, 255, .35), inset 0 0 6px rgba(160, 210, 255, .3);
}
.fig .glasses::before { content: ''; position: absolute; left: 50%; top: -1px; width: 5px; height: 2px; transform: translateX(-50%); background: var(--frame); }
.fig[data-deco~=glasses] .glasses { display: block; }
.fig[data-glasses=round] .glasses { border-radius: 50%; width: 30px; }
.fig[data-glasses=cat] .glasses { border-radius: 3px 11px 7px 7px; }
.fig .earring {
  position: absolute; top: 26px; width: 3px; height: 7px; border-radius: 2px;
  background: linear-gradient(180deg, #fff, #ffd86b); box-shadow: 0 0 5px rgba(255, 216, 107, .9);
}
.fig .earring.l { left: -2px; } .fig .earring.r { right: -2px; }
.fig[data-deco~=earring] .earring { display: block; }
.fig .headset {
  position: absolute; left: 50%; top: -3px; width: 44px; height: 26px; transform: translateX(-50%);
  border: 3px solid #38445c; border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 0 8px rgba(92, 184, 255, .35);
}
.fig .headset::after {
  content: ''; position: absolute; left: -6px; bottom: -9px; width: 10px; height: 15px;
  border-radius: 5px; background: #38445c; box-shadow: 46px 0 0 #38445c, 0 0 8px rgba(0, 0, 0, .6);
}
.fig .headset::before {
  content: ''; position: absolute; left: 2px; bottom: -15px; width: 15px; height: 11px;
  border-left: 2px solid #38445c; border-bottom: 2px solid #38445c; border-radius: 0 0 0 8px;
}
.fig[data-deco~=headset] .headset { display: block; }
.fig .fan {
  position: absolute; right: 2px; bottom: 24px; width: 21px; height: 14px; border-radius: 0 16px 0 0;
  transform-origin: 0 100%; transform: rotate(-18deg);
  background: repeating-linear-gradient(90deg, #f7f2e2 0 3px, #ddd2b6 3px 4px);
  border: 1px solid #b9a982; box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
}
.fig[data-deco~=fan] .fan { display: block; }
.fig .cup {
  position: absolute; left: 4px; bottom: 18px; width: 10px; height: 11px;
  background: linear-gradient(180deg, rgba(230, 250, 255, .95), rgba(130, 190, 230, .6));
  border: 1px solid rgba(200, 230, 255, .5); border-radius: 1px 1px 4px 4px;
  box-shadow: 0 0 6px rgba(140, 200, 255, .4);
}
.fig[data-deco~=cup] .cup { display: block; }
.fig .mic {
  position: absolute; left: 50%; bottom: -3px; width: 4px; height: 17px; transform: translateX(-50%);
  background: linear-gradient(180deg, #8f9db3, #3d4657); border-radius: 2px;
}
.fig .mic::after {
  content: ''; position: absolute; left: -3px; top: -7px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #6c788c, #232b3a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.fig .mic::before {
  content: ''; position: absolute; left: 50%; top: -13px; width: 4px; height: 4px;
  transform: translateX(-50%); border-radius: 50%; background: #4a5568; transition: all .2s;
}
.fig.on .mic::before {
  background: #ff5f6b;
  box-shadow: 0 0 calc(6px + var(--vox, 0) * 13px) calc(2px + var(--vox, 0) * 4px) rgba(255, 95, 107, .85);
}

/* ---------------------------- 讲话动画 ---------------------------- */
.fig .talk {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  display: flex; gap: 3px; opacity: 0; transition: opacity .2s;
}
.fig .talk i {
  width: 3px; height: 9px; border-radius: 2px;
  background: linear-gradient(180deg, var(--neon), rgba(255, 255, 255, .55)); box-shadow: 0 0 6px var(--neon);
}
.fig.on .talk { opacity: 1; }
.fig.on .talk i { scale: 1 calc(.55 + var(--vox, 0) * 1.9); }
.fig.on .talk i:nth-child(1) { animation: wave .42s ease-in-out infinite alternate; }
.fig.on .talk i:nth-child(2) { animation: wave .42s .1s ease-in-out infinite alternate; }
.fig.on .talk i:nth-child(3) { animation: wave .42s .2s ease-in-out infinite alternate; }
@keyframes wave { from { height: 3px; } to { height: 15px; } }
.fig.on .mouth { animation: talk .3s steps(2, end) infinite; }
@keyframes talk {
  0% { height: 3px; width: 11px; }
  50% { height: 9px; width: 7px; border-radius: 4px 4px 8px 8px; }
  100% { height: 4px; width: 10px; }
}
.fig.on .head { animation: nod 1.15s ease-in-out infinite; }
@keyframes nod {
  0%, 100% { transform: translateX(-50%) rotate(0); }
  22% { transform: translateX(-50%) rotate(-3.5deg) translateY(-1.5px); }
  62% { transform: translateX(-50%) rotate(3.5deg) translateY(.5px); }
}
.fig.on .arm.r { animation: gesture 1.3s ease-in-out infinite; }
.fig.on .arm.l { animation: gesture 1.3s .5s ease-in-out infinite reverse; }
@keyframes gesture {
  0%, 100% { transform: rotate(-10deg); }
  34% { transform: rotate(-48deg) translateY(-4px); }
  62% { transform: rotate(-24deg); }
}
.fig.on .shoulder { background: linear-gradient(180deg, rgba(255, 255, 255, .78), transparent 80%); }

/* ------------------------ 字幕（一行只装当前一句） ------------------------
 * 刻意做薄：人名 + 当前这一句 + 句进度 排成一行，整块高 ≤ 40px；
 * 只用底部半透渐变收边（不是实心卡片），不会挡住台上站着发言的人 */
.stage .cap {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: min(96%, 720px); z-index: 12; display: none;
  pointer-events: none;                          /* 只读字幕条，不拦截底部人物的点击 */
  align-items: center; gap: 8px;
  padding: 4px 16px 8px;
  background: linear-gradient(180deg, rgba(5, 9, 18, 0), rgba(4, 8, 16, .7) 48%, rgba(3, 6, 13, .92));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .7);
}
.stage .cap.show { display: flex; }
.cap .who { flex: none; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.cap.pro .who { color: var(--neon-p); text-shadow: 0 0 10px rgba(62, 230, 168, .55); }
.cap.con .who { color: var(--neon-c); text-shadow: 0 0 10px rgba(255, 95, 149, .55); }
.cap.mid .who { color: var(--neon-m); text-shadow: 0 0 10px rgba(92, 184, 255, .55); }
.cap .stg {
  flex: none; max-width: 22%; font-size: 10px; color: #93a7c6; padding: 0 5px;
  border: 1px solid rgba(150, 200, 255, .22); border-radius: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cap .txt {
  flex: 1 1 auto; min-width: 0; text-align: center;
  font-size: 17px; line-height: 1.3; font-weight: 700; color: #f6faff;
  max-height: 2.6em; overflow: hidden; word-break: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.cap .pg { flex: none; font-size: 10px; color: #7f93b3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cap .bar { position: absolute; left: 8%; right: 8%; bottom: 2px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cap .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--neon-m), var(--neon-p)); box-shadow: 0 0 8px rgba(62, 230, 168, .8); }

/* -------------------- 发言倒计时徽标（右上角） --------------------
 * 绿→黄→红三态：正常 / 最后 5 秒（同时响「嘀」）/ 已超时（显示 +超时时长） */
.stage .cdz {
  position: absolute; right: 12px; top: 12px; z-index: 16; display: none;
  pointer-events: none;                          /* 只读徽标，不抢点击 */
  align-items: center; gap: 7px; padding: 4px 10px; border-radius: 9px;
  font-size: 10px; color: #dbe8ff;
  background: linear-gradient(180deg, rgba(10, 18, 34, .82), rgba(5, 9, 20, .9));
  border: 1px solid rgba(140, 195, 255, .32); box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.stage .cdz.show { display: flex; }
.cdz .cl { color: #93a7c6; letter-spacing: .5px; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdz .ct { font-size: 16px; font-weight: 800; color: #eaf3ff; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.cdz .cw { color: #7f93b3; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdz .cbar { position: relative; display: inline-block; width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cdz .cbar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--neon-p), var(--neon-m)); transition: width .18s linear; }
.cdz.warn { border-color: rgba(255, 207, 77, .7); box-shadow: 0 0 16px rgba(255, 190, 60, .35), 0 6px 16px rgba(0, 0, 0, .45); animation: cdPulse .86s ease-in-out infinite; }
.cdz.warn .ct { color: #ffcf4d; }
.cdz.warn .cbar b { background: linear-gradient(90deg, #ffcf4d, #ff9d3d); }
.cdz.over { border-color: rgba(255, 107, 107, .8); background: linear-gradient(180deg, rgba(48, 8, 12, .86), rgba(24, 4, 8, .92)); animation: none; }
.cdz.over .ct, .cdz.over .cl { color: #ff8a8a; }
.cdz.over .cbar b { background: linear-gradient(90deg, #ff6b6b, #ffb36b); }
@keyframes cdPulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .cdz.warn { animation: none; } }

/* ------------------------ 点击头像看整段 ------------------------ */
.para {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(88%, 580px); max-height: 84%; z-index: 20;
  background: linear-gradient(180deg, rgba(14, 22, 40, .97), rgba(8, 13, 26, .98));
  border: 1px solid rgba(150, 200, 255, .3); border-radius: 14px;
  box-shadow: 0 24px 60px -20px #000, inset 0 0 26px rgba(92, 184, 255, .08);
  display: none; flex-direction: column; overflow: hidden; color: #e9f0fb;
}
.para.show { display: flex; }
.para .ph { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid rgba(150, 200, 255, .22); background: rgba(255, 255, 255, .04); }
.para .ph b { font-size: 13px; }
.para .ph .side { font-size: 10px; padding: 0 7px; border-radius: 9px; border: 1px solid rgba(150, 200, 255, .35); color: #9fb6d6; }
.para .ph .sp { flex: 1; }
.para .ph button {
  padding: 3px 10px; font-size: 11px; border-radius: 7px;
  background: rgba(120, 170, 255, .16); border: 1px solid rgba(160, 200, 255, .55); color: #eaf2ff;
}
.para .ph button:hover { background: rgba(120, 170, 255, .32); color: #fff; }
.para .ph button[data-act="close"] {
  min-width: 28px; padding: 3px 9px; font-size: 13px; line-height: 1.2;
  color: #ffe0e6; border-color: rgba(255, 150, 170, .6); background: rgba(255, 90, 120, .16);
}
.para .ph button[data-act="close"]:hover { background: rgba(255, 90, 120, .34); color: #fff; }
.para .pb { padding: 10px 14px 12px; overflow: auto; font-size: 14px; line-height: 1.9; color: #e2eaf7; }
.para .pb .now { font-weight: 600; }
.para .pb .now em { font-style: normal; background: rgba(92, 184, 255, .26); border-radius: 3px; box-shadow: 0 0 10px rgba(92, 184, 255, .3); }
.para .stage-lbl { font-size: 11px; color: #8fa4c2; margin-bottom: 5px; }
.para .pl { border-top: 1px dashed rgba(150, 200, 255, .22); padding: 8px 14px 12px; max-height: 34%; overflow: auto; }
.para .pl .row { font-size: 12px; color: #a9bcd8; padding: 3px 0; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.para .pl .row:hover { color: var(--neon-m); }
.para .pl .row i { font-style: normal; color: #e9f0fb; }
.para .empty { color: #8fa4c2; font-size: 12px; }
.para .pb::-webkit-scrollbar, .para .pl::-webkit-scrollbar { width: 6px; }
.para .pb::-webkit-scrollbar-thumb, .para .pl::-webkit-scrollbar-thumb { background: rgba(150, 200, 255, .25); border-radius: 3px; }

/* ------------------------ 舞台下方工具条 ------------------------ */
.stage-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; font-size: 11px; color: var(--dim);
}
.stage-tools .chip { cursor: pointer; }
.stage-tools b { color: var(--fg); }
.stage-tools .vs { font-weight: 700; display: flex; align-items: baseline; gap: 8px; width: 100%; }
.stage-tools .vs .p, .stage-tools .vs .c {
  display: inline-block; max-width: 44%; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; vertical-align: bottom; font-weight: 400;
}
.stage-tools .vs .p { color: var(--pro); } .stage-tools .vs .c { color: var(--con); }

/* ========================= 座位坐标 · 桌面 9 席 =========================
 * 后排（正方 + 计时）默认 --z:2，被桌沿挡住下半身；前排与两端 --z:4 压住桌沿 */
.fig[data-role=host]    { --x: 8%;  --y: 66%; --sc: 1.00; --ry: 22deg; --z: 4; }
.fig[data-role=pro1]    { --x: 29%; --y: 51%; --sc: .86; --ry: 8deg; }
.fig[data-role=pro2]    { --x: 47%; --y: 51%; --sc: .86; }
.fig[data-role=pro3]    { --x: 65%; --y: 51%; --sc: .86; --ry: -8deg; }
.fig[data-role=con1]    { --x: 28%; --y: 91%; --sc: 1.08; --ry: 6deg;  --z: 4; }
.fig[data-role=con2]    { --x: 47%; --y: 96%; --sc: 1.12; --z: 4; }
.fig[data-role=con3]    { --x: 66%; --y: 91%; --sc: 1.08; --ry: -6deg; --z: 4; }
.fig[data-role=auditor] { --x: 93%; --y: 66%; --sc: .98; --ry: -22deg; --z: 4; }
.fig[data-role=timer]   { --x: 19%; --y: 27%; --sc: .62; }

.table .plate[data-role=pro1] { left: 23%; top: 12%; }
.table .plate[data-role=pro2] { left: 42%; top: 6%; }
.table .plate[data-role=pro3] { left: 61%; top: 12%; }
.table .plate[data-role=con1] { left: 22%; top: 62%; }
.table .plate[data-role=con2] { left: 42%; top: 70%; }
.table .plate[data-role=con3] { left: 61%; top: 62%; }
.table .gear.g1 { left: 8%;  top: 30%; }
.table .gear.g2 { left: 86%; top: 34%; }
.table .gear.c1 { left: 34%; top: 42%; }
.table .gear.c2 { left: 55%; top: 38%; }

/* ========================= 9 位角色：独立配色与造型 ========================= */
.fig[data-role=host]    { --cloth: #1b2740; --shirt: #f7fbff; --tie: #c0457c; --hair: #a9b2c0; --skin: #f2d6bb; --lip: #b85a62; }
.fig[data-role=pro1]    { --cloth: #12503c; --shirt: #ffffff; --tie: #d8b25a; --hair: #17161a; --skin: #f5d7b8; }
.fig[data-role=pro2]    { --cloth: #17a381; --shirt: #f2fffb; --tie: #0b6b52; --hair: #4a2f22; --skin: #fbe1c9; --lip: #e0576f; }
.fig[data-role=pro3]    { --cloth: #2b6fa8; --shirt: #eef7ff; --tie: #0d3f63; --hair: #6b4b32; --skin: #f3d3b3; }
.fig[data-role=con1]    { --cloth: #8f2f5f; --shirt: #fdf6f9; --tie: #d8b25a; --hair: #1b1520; --skin: #fbe0c8; --lip: #d1436a; --frame: #d8b25a; }
.fig[data-role=con2]    { --cloth: #e0799f; --shirt: #fff4f8; --tie: #b03a68; --hair: #5a2b3a; --skin: #fce5d0; --lip: #d94f70; }
.fig[data-role=con3]    { --cloth: #6b3a7d; --shirt: #f7f2fb; --tie: #2f1a3d; --hair: #221c26; --skin: #f2d2ae; }
.fig[data-role=auditor] { --cloth: #9a7a3f; --shirt: #fffaf0; --tie: #6b4a1c; --hair: #b8bec9; --skin: #eed1b4; --frame: #6b4a1c; --lip: #a85a58; }
.fig[data-role=timer]   { --cloth: #2f7d8c; --shirt: #eefaf9; --tie: #12525e; --hair: #2b3550; --skin: #f9dfc6; --lip: #cf5b74; }

/* ========================= 手机竖屏：长桌竖放（走廊视角） =========================
 * 相机顺着长桌看过去：远端（主席）窄而小，近端宽而大；正方坐左列、反方坐右列。
 * 桌子用 2D 梯形（clip-path）而不是 rotateX 透视：因为 .fig 的 --y 是「脚底」位置，
 * 3D 桌面与人物不在同一套坐标里，算不出桌沿线在哪 → 上次才会出现「有人浮在桌上、有人掉在桌下」。
 * 现在桌沿是两条直线：leftX(y)=43.6-25.6*(y-18)/74、rightX(y)=56.4+25.6*(y-18)/74，
 * 每席脚底都放到桌沿再往里 7% → 下半身被桌子（z-index 3）自然挡住，只露半身。 */
@media (max-width: 760px) {
  .stage { height: 560px; perspective: 620px; perspective-origin: 50% 24%; border-radius: 14px; }
  .stage .wall { height: 30%; }
  .stage .board { font-size: 12px; letter-spacing: 1px; padding: 4px 12px 5px; max-width: 62%; }
  .stage .truss { top: 40px; }
  .stage .crowd { display: none; }
  .stage .floor { top: 24%; }
  /* 桌面：上窄下宽的梯形。梯形只裁桌面面板(.skirt)，席卡(.plate)是 .table 的独立子元素、
     不再被斜边裁掉文字（旧版把 clip-path 加在 .table 上，导致左右席卡「正方/一辩」被切没） */
  .stage .table {
    left: 50%; top: 18%; width: 64%; height: 74%;
    transform: translateX(-50%);
    background: none; clip-path: none; box-shadow: none; filter: none;
  }
  .stage .table::before { content: none; }
  .stage .table::after { display: none; }
  .stage .table .skirt {                          /* 外层：霓虹渐变桌沿（圆角梯形，裁剪路径由 stage.js 里的 SVG #tbl-trap 提供） */
    display: block; position: absolute; inset: 0; height: auto; left: 0; right: 0; top: 0; bottom: 0;
    transform: none; border-radius: 0;
    clip-path: url(#tbl-trap);
    background: linear-gradient(180deg, rgba(62, 230, 168, .9), rgba(92, 184, 255, .72) 46%, rgba(255, 95, 149, .9));
    box-shadow: none;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
  }
  .stage .table .skirt::before {                  /* 内缩 2px 的木纹面，外圈露出霓虹桌沿 */
    content: ''; position: absolute; inset: 2px;
    clip-path: url(#tbl-trap);
    background:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 46px),
      linear-gradient(90deg, transparent 49.2%, rgba(0, 0, 0, .3) 50%, transparent 50.8%),
      linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 24%),
      linear-gradient(180deg, var(--wood-1) 0%, var(--wood-2) 52%, var(--wood-3) 100%);
  }
  .stage .table .skirt::after { content: none; }    /* 竖屏不显台裙品牌字 */
  /* 席卡：贴在梯形桌面内侧、对应座位高度（往内收，不被斜边裁切）；
     新桌沿 leftX_local(y)=44-44y，逐档往内收 */
  .stage .table .plate { width: 17%; height: 6.5%; font-size: 8px; }
  .table .plate[data-role=pro1] { left: 32%; top: 25%; }
  .table .plate[data-role=pro2] { left: 24%; top: 45%; }
  .table .plate[data-role=pro3] { left: 15%; top: 65%; }
  .table .plate[data-role=con1] { right: 32%; left: auto; top: 25%; }
  .table .plate[data-role=con2] { right: 24%; left: auto; top: 45%; }
  .table .plate[data-role=con3] { right: 15%; left: auto; top: 65%; }
  .table .gear { display: none; }
  .fig { width: 62px; height: 96px; }
  .fig .torso { width: 40px; height: 40px; bottom: 5px; }
  .fig[data-sex=f] .torso { width: 35px; }
  .fig .head { bottom: 38px; width: 30px; height: 35px; }
  .fig .hair.main { width: 33px; height: 20px; }
  .fig .hair.bang { width: 29px; height: 9px; }
  .fig .hair.side { width: 36px; height: 34px; }
  .fig .hair.back { width: 33px; height: 35px; }
  .fig .eye { width: 8px; height: 7px; top: 15px; }
  .fig .eye .iris { left: 1.6px; top: 1.8px; width: 5px; height: 5px; }
  .fig .eye .glit { left: 4px; top: 1px; }
  .fig .brow { top: 11px; width: 7px; }
  .fig .mouth { top: 24px; width: 9px; }
  .fig .arm { height: 28px; width: 11px; bottom: 11px; }
  .fig .mic { height: 13px; }
  .fig .tag { font-size: 9px; }
  /* 手机上只留「人名 + 当前一句」，进度信息挪到播放条，保证字幕占一行 */
  .cap .txt { font-size: 15px; }
  .cap .stg, .cap .pg { display: none; }
  .stage .cap { bottom: 0; width: 100%; padding: 3px 10px 7px; }
  .fig.on .person { transform: translateY(calc(-12px - var(--vox, 0) * 4px)) rotate(calc(var(--sway, 0) * 1.1deg)); }
  /* 9 席：脚底压在桌沿上，身体内侧伸进梯形一点（桌沿从腰斜切过去 → 只露半身）。
     上边收窄到 44%~56% 后桌沿变为 leftX(y)=46.16-28.16*(y-18)/74，各席跟着内移；
     主席位上边让开后放大一号，身体露得更宽 */
  .fig[data-role=host]    { --x: 50%; --y: 23%; --sc: .68; --ry: 0deg; --z: 2; }
  .fig[data-role=pro1]    { --x: 30.5%; --y: 47%; --sc: .72; --ry: 16deg; --z: 2; }
  .fig[data-role=pro2]    { --x: 23%; --y: 65%; --sc: .85; --ry: 16deg; --z: 2; }
  .fig[data-role=pro3]    { --x: 15%; --y: 85%; --sc: 1.00; --ry: 16deg; --z: 2; }
  .fig[data-role=con1]    { --x: 69.5%; --y: 47%; --sc: .72; --ry: -16deg; --z: 2; }
  .fig[data-role=con2]    { --x: 77%; --y: 65%; --sc: .85; --ry: -16deg; --z: 2; }
  .fig[data-role=con3]    { --x: 85%; --y: 85%; --sc: 1.00; --ry: -16deg; --z: 2; }
  .fig[data-role=auditor] { --x: 35%; --y: 28%; --sc: .56; --ry: 10deg; --z: 1; }
  .fig[data-role=timer]   { --x: 65%; --y: 28%; --sc: .54; --ry: -10deg; --z: 1; }
  /* 发言的人也不许跳到桌面之上（否则一站起来就“浮在桌上”，这是图3 问题的根） */
  .fig.on { z-index: var(--z, 2); }
  /* 倒计时徽标：挪到右上角、缩一号，不与辩题牌重台 */
  .stage .cdz { top: 46px; right: 8px; padding: 3px 7px; }
  .cdz .cw { display: none; }
}

/* ========================= AI 立绘层（百炼免费额度出图） =========================
 * .sprite 加载成功 → 盖在 CSS 人偶上；404/加载中 → .puppet 顶上，永不裸崩 */
.fig .sprite {
  position: absolute; left: 50%; bottom: 0; height: 118%; width: auto; max-width: none;
  transform: translateX(-50%);
  display: none;   /* 立绘本身接收点击（热区=人物图像范围），冒泡到 .fig 触发看稿 */
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5));
}
.fig.hasimg .sprite { display: block; }
.fig.hasimg .puppet { display: none; }
.fig.on .sprite {
  filter: brightness(1.13) saturate(1.06) drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
  animation: spriteTalk .82s ease-in-out infinite alternate;
}
@keyframes spriteTalk {
  from { transform: translateX(-50%) rotate(-1.1deg); }
  to   { transform: translateX(-50%) rotate(1.1deg) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .fig.on .sprite { animation: none !important; }
}

/* 暖色书房实景背景（半透叠在 LED 层上，手机换竖构图） */
.stage .backdrop {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(art/bg-landscape.jpg) center 34% / cover no-repeat;
  opacity: .42;
  filter: saturate(.85) brightness(.72) contrast(1.05);
}
.stage .backdrop::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 22, .62), rgba(6, 10, 22, .18) 44%, rgba(5, 8, 16, .78));
}
@media (max-width: 760px) {
  .stage .backdrop { background-image: url(art/bg-portrait.jpg); background-position: 50% 28%; }
}
