/*
 * 艺人说的话 = 米白气泡 + 她的色名牌；
 * 艺人想的 = 近黑点阵脑子牌 + 她的色边；
 * 客人 = 近黑磨砂 + 左一道灰；自己 = 左一道绿；本子 = 左一道金。
 * 舞台保留逐字、已念 / 未念和小方点，由播放器掌管时间与定位。
 * chat / card 一次显全文；想牌无旧行遮罩，说气泡无播放进度点。
 * 色彩来自 cast-data 的艺人 color，身份由调用方传 cid；不按场景另造一套皮肤。
 */
 .v-mind {position:relative;z-index:26;box-sizing:border-box;max-height:none;max-width:none;overflow:visible;margin:0;transform:none;padding:9px 12px 11px;border:2px solid var(--c);border-radius:4px;color:#eef2f4;background:radial-gradient(circle,color-mix(in srgb,var(--c) 20%,transparent) 1px,transparent 1px) 0 0/8px 8px,#06080a;box-shadow:0 0 20px color-mix(in srgb,var(--c) 30%,transparent);font:600 18px/1.5 var(--font-body)}
 .v-mind[hidden] {display:none!important}
.v-mind::before,.v-mind::after {display:none!important}
.v-mind .v-mind__who {display:flex;align-items:center;gap:7px;margin-bottom:5px;color:var(--c);font:400 11.5px/16px var(--font-latin);white-space:nowrap}
.v-mind .v-mind__who svg {width:20px;height:16px;flex:none;shape-rendering:crispEdges}
.v-mind a {margin-left:auto;color:var(--c);font:700 12px/16px var(--font-body);text-decoration:none}
.v-mind .v-mind__text {font:inherit;margin:0;max-height:4.5em;overflow:hidden;white-space:pre-wrap}
.v-mind .v-mind__text.has-old {mask-image:linear-gradient(#ffffff61,#fff 34%);filter:blur(.1px)}
.v-mind .has-cursor::after {content:'';display:inline-block;width:8px;height:15px;margin-left:3px;background:var(--c);vertical-align:-2px}
.v-mind.is-compact .v-mind__text {display:none}.v-mind.is-compact .v-mind__who {margin:0}
.v-mind>button {font:700 11px/16px var(--font-body);color:var(--c);padding:0;background:none;border:0}
.v-say {position:relative;box-sizing:border-box;padding:11px 13px 12px;background:#F7F3E8;color:#15181b;border:2px solid #07090b;border-radius:6px;box-shadow:4px 4px 0 var(--c),0 10px 26px #0008;font:700 22px/1.42 var(--font-body);letter-spacing:.01em;transition:opacity 200ms;overflow-wrap:anywhere;pointer-events:auto}
.v-say[hidden] {display:none}.v-say.is-leaving {opacity:0}
.v-say__unspoken {color:#a39d8f}
.v-say__who {position:absolute;left:10px;top:-13px;height:22px;padding:0 8px;background:var(--c);color:#0b0d0f;border:2px solid #07090b;border-radius:4px;font:700 13px/18px var(--font-body);white-space:nowrap;box-sizing:border-box}
.v-say__tail {position:absolute;width:22px;height:22px;left:-22px;top:var(--tail-y,18px);shape-rendering:crispEdges}
.v-say.tail-right .v-say__tail {left:auto;right:-22px;transform:scaleX(-1)}
.v-say.tail-up .v-say__tail {left:var(--tail-x,40px);top:-22px;transform:rotate(90deg)}
.v-say__dots {position:absolute;right:8px;bottom:-6px;display:flex;gap:3px;max-width:90%;flex-wrap:wrap}
.v-say__dots i {width:7px;height:7px;background:#07090b;border:1px solid #F7F3E8}.v-say__dots .is-now {background:var(--c)}
@media(max-width:600px),(max-height:520px){.v-say {padding:8px 10px 9px;box-shadow:3px 3px 0 var(--c),0 8px 18px #0008}.v-say__who {font-size:12px;height:20px;line-height:16px;top:-12px}}
@media(prefers-reduced-motion:reduce){.v-say {transition:none}}
.v-mind .v-mind__who {flex-wrap:wrap;white-space:normal}
.v-mind .v-mind__who>span {flex:1;min-width:0}
.v-mind .v-mind__text.has-old {position:relative;filter:none}
.v-mind .v-mind__text.has-old::before {content:'';position:sticky;display:block;top:0;height:1.5em;margin-bottom:-1.5em;backdrop-filter:blur(.5px);pointer-events:auto}
 .v-mind.is-compact {padding:5px 7px;box-shadow:0 0 18px color-mix(in srgb,var(--c) 40%,transparent)}
.v-mind .v-mind__text {line-height:1.5;max-height:4.5em}
.v-mind .v-mind__text.has-old {-webkit-mask-image:none;mask-image:none;filter:none} /* 东家 11-16 20:1x：上一行压暗像被盖住，两行都照原亮度 */
.v-mind .v-mind__text.has-old::before {content:none}
.v-say,.v-mind {--c:#2bd982;min-width:0;max-width:100%;margin:18px 4px 12px 22px;white-space:pre-wrap;text-align:left}
.v-mind {position:relative}
.v-say.v-size-chat,.v-mind.v-size-chat {font-size:16px}
.v-say.v-size-card,.v-mind.v-size-card {font-size:14px}
.v-say.tail-down .v-say__tail {left:var(--tail-x,40px);top:auto;bottom:-22px;transform:rotate(-90deg)}
.v-say.tail-none .v-say__tail {display:none}
.v-say:not(.v-size-stage) .v-say__dots {display:none}
.v-mind:not(.v-size-stage) .v-mind__text {max-height:none;overflow:visible;mask-image:none;-webkit-mask-image:none}
.v-mind__who {overflow-wrap:anywhere}
.v-mind:not(.v-size-stage) .v-mind__text::after {content:none}
.v-guest,.v-self,.v-book {background:#10161cde;border:0;border-left:3px solid #79828b;border-radius:4px;padding:10px 12px;backdrop-filter:blur(8px);color:#eef2f4;overflow-wrap:anywhere}
.v-self {border-left-color:#2bd982}.v-book {border-left-color:#d4ad60}

.v-say,.v-mind{position:relative;padding-right:38px}
.v-say>.v-quote,.v-mind>.v-quote{position:absolute;right:4px;top:4px;width:28px;height:28px;padding:3px;border:1px solid #ffffff45;background:#090c12;color:#fff;cursor:pointer;opacity:0}
.v-quote svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.v-say:hover>.v-quote,.v-mind:hover>.v-quote,.v-quote:focus-visible{opacity:1}
.v-mind__who{padding-right:0}
@media(hover:none),(max-width:767px){.v-say>.v-quote,.v-mind>.v-quote{opacity:1}}
/* 世界弹窗（body[data-skin=dlg]，world.js 里的 DLG_CSS 把她的气泡整条 unset、名牌也藏了，颜色只剩一颗 ▼）：
   这里把 .v-say 的名牌和艺人色硬影穿回来；逐字回话的气泡（.tk-voice.hm-msg__bubble）同一身皮，颜色走 --c / --a。
   每条都比 DLG_CSS 多一层类且带 !important，专门压过它（DLG_CSS 是 tools/world_site/dlg_css.py 生成的，这边不跟它合流）。 */
body[data-skin=dlg] .tk .hm-msg--her:not(.is-called) .v-say,
body[data-skin=dlg] .tk .hm-msg--her:not(.is-called) .tk-voice.hm-msg__bubble {display:block!important;position:relative!important;box-sizing:border-box!important;margin:14px 0 2px!important;padding:6px 20px 8px 11px!important;background:#F7F3E8!important;color:#15181b!important;border:2px solid #07090b!important;border-radius:6px!important;box-shadow:4px 4px 0 var(--c,var(--a)),0 10px 26px #0008!important;font:400 16px/1.6 var(--font-body)!important;letter-spacing:.01em!important;overflow-wrap:anywhere!important;white-space:pre-wrap!important;text-align:left!important;pointer-events:auto!important}
body[data-skin=dlg] .tk .hm-msg--her:not(.is-called) .v-say .v-say__who {display:block!important;position:absolute!important;left:10px!important;top:-11px!important;height:22px!important;padding:0 8px!important;background:var(--c)!important;color:#0b0d0f!important;border:2px solid #07090b!important;border-radius:4px!important;font:700 13px/18px var(--font-body)!important;white-space:nowrap!important;box-sizing:border-box!important;z-index:2!important}
body[data-skin=dlg] .tk .hm-msg--her .tk-cue {color:#15181b!important} /* 表情小像在米白底上跟着字黑，不在白上摆白 */

/* ── R2-BUBBLE（美术中心 11-26）：客人自己说的话 .v-me ──
   和艺人的米白 v-say 一眼分开：深底 + 2px 描边 + 3px 硬黑影，方角，靠右，右边一个像素小尾巴朝外（艺人的尾巴朝左）。
   当众说 = 金边（金 = 公开）；悄悄话 = 紫虚线边 + 深紫底（紫 = 私下）；别的客人当众说 = 白边（不是你的话不用金）。 */
.v-me {--me:var(--fb-gold,#f5c542);position:relative;box-sizing:border-box;width:fit-content;max-width:100%;margin:0;padding:8px 12px;background:#0d1116;color:#f2f4f6;border:2px solid var(--me);border-radius:0;box-shadow:3px 3px 0 #000;font:500 15px/1.5 var(--font-body);text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;backdrop-filter:none}
.v-me.is-quiet {--me:#a78bfa;border-style:dashed;background:#170f2a}
.v-me.is-other {--me:#e8ecef}
.v-me::after {content:'';position:absolute;right:-10px;bottom:6px;width:8px;height:10px;background:var(--me);clip-path:polygon(0 0,50% 0,50% 25%,100% 25%,100% 75%,50% 75%,50% 100%,0 100%);pointer-events:none}
/* 世界弹窗（DLG_CSS 把你那句压成灰框 + !important）：你的话同一身 .v-me，当众金边 */
body[data-skin=dlg] .tk .hm-msg--me .hm-msg__bubble.v-me {border:2px solid var(--me,var(--fb-gold))!important;background:#0d1116!important;color:#f2f4f6!important;box-shadow:3px 3px 0 #000!important;overflow:visible!important}
body[data-skin=dlg] .tk .hm-msg--me .hm-msg__bubble.v-me.is-quiet {border-style:dashed!important;background:#170f2a!important}
