/* 《末日狂袭》专属舞台。作用域须同时满足舞台模式与内置剧目标识。 */
@font-face { font-family: MoriMing; src: url("assets/汇文明朝体.otf") format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: MoriKai; src: url("assets/FangZhengKaiTiJianTi-1.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: MoriScript; src: url("assets/custom-theater/mori/GreatVibes-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

#custom-theater-app.ct-stage-mode.ct-mori-stage {
    --mori-ash: #dfd7c8;
    --mori-ink: #383630;
    --mori-red: #80453e;
    --mori-faint: #79705f;
    --mori-line: rgba(99, 83, 64, .27);
    --mori-art: url("assets/custom-theater/mori/wasteland-stage-v1.png");
    --ct-ink: #d9d0be;
    --ct-ink-soft: #ada28e;
    --ct-paper: #292a26;
    --ct-paper-soft: #34342e;
    --ct-navy: #77453d;
    --ct-line: rgba(173, 154, 121, .28);
    --ctb-topbar-bg: transparent;
    --ctb-topbar-text: #ded5c3;
    --ctb-topbar-btn-bg: rgba(193, 174, 139, .07);
    --ctb-stage-bg-image: linear-gradient(rgba(24, 25, 22, .36), rgba(24, 25, 22, .74)), var(--mori-art);
    --ctb-stage-bg: #292a26;
    --ctb-stage-text: #d9d0be;
    --ctb-actorbar-bg: transparent;
    --ctb-actorbar-border: 1px solid rgba(178, 154, 114, .24);
    --ctb-actorbar-shadow: 0 7px 18px #14161233;
    --ctb-actorbar-toggle-color: #b5aa96;
    --ctb-actorbar-avatar-size: 43px;
    --ctb-actorbar-avatar-border: 1px solid #ad9470;
    --ctb-actorbar-avatar-radius: 7px 7px 3px 3px;
    --ctb-actorbar-avatar-shadow: 0 0 0 3px #1d211e, 0 0 0 4px #69533e, 0 5px 10px #131611;
    --ctb-actorbar-name-color: #c7baa3;
    --ctb-actorbar-name-size: 9px;
    --ctb-actorbar-gap: 14px;
    --ctb-opening-bg: linear-gradient(110deg, #d9d0be, #e9e2d5 48%, #e2dacb);
    --ctb-opening-border: 1px solid #b5a68b;
    --ctb-opening-radius: 2px;
    --ctb-opening-shadow: 0 6px 23px #11150f4d;
    --ctb-opening-header-bg: transparent;
    --ctb-opening-title-color: #3a3730;
    --ctb-narration-color: #403c35;
    --ctb-narration-size: 15px;
    --ctb-narration-line: 2;
    --ctb-narration-font: "Noto Serif SC", "Songti SC", "STSong", serif;
    --ctb-dialogue-font: MoriKai, "KaiTi", "STKaiti", serif;
    --ctb-dialogue-color: #87483e;
    --ctb-dialogue-size: 1.08em;
    --ctb-dialogue-weight: 400;
    --ctb-voice-bg: #c9b49d44;
    --ctb-voice-border: 1px solid #98665366;
    --ctb-actorpanel-bg: #2d302a;
    --ctb-actorpanel-border: 1px solid #96815f;
    --ctb-actorpanel-radius: 4px;
    --ctb-actorpanel-shadow: 0 16px 48px #080b09a6;
    --ctb-actorpanel-divider: 1px solid #9785654d;
    --ctb-actorpanel-kicker-color: #ad9674;
    --ctb-actorpanel-name-color: #e0d3bc;
    --ctb-actorpanel-name-size: 20px;
    --ctb-actorpanel-sub-color: #c0b298;
    --ctb-actorpanel-avatar-radius: 3px;
    --ctb-actorpanel-cell-bg: #373a32;
    --ctb-actorpanel-cell-border: 1px solid #93836433;
    --ctb-actorpanel-cell-radius: 2px;
    --ctb-actorpanel-label-color: #c2a27d;
    --ctb-actorpanel-label-size: 10px;
    --ctb-actorpanel-text-color: #e0d8c5;
    --ctb-actorpanel-text-size: 13px;
    --ctb-actorpanel-pager-btn-bg: #b1966e17;
    --ctb-actorpanel-pager-btn-border: 1px solid #9d846052;
    --ctb-notes-bg: #dfd6c5;
    --ctb-notes-border: 1px solid #a99a7e;
    --ctb-notes-title-color: #554a3c;
    --ctb-notes-text-color: #61594c;
    --ctb-cg-bg: #ded5c5;
    --ctb-cg-border: 1px solid #a79a83;
    --ctb-cg-radius: 3px;
    --ctb-cg-title-color: #554a3c;
    --ctb-composer-bg: #292c27;
    --ctb-composer-border: 1px solid #9e866146;
    --ctb-composer-input-bg: #383a31;
    --ctb-composer-input-color: #e5dcc9;
    --ctb-send-bg: #74463e;
    --ctb-send-color: #efe3d1;
    background: #282a25;
}
#custom-theater-app.ct-stage-mode.ct-mori-stage .ct-background { background-image: var(--mori-art); filter: none; transform: none; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ct-background::after { background: #20251dc2; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ct-topbar { border-bottom: 1px solid #a38c683b; backdrop-filter: none; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ct-topbar-title { font-family: MoriMing, serif; font-weight: 400; font-size: 22px; letter-spacing: .2em; line-height: 1.15; text-shadow: 0 2px 7px #121712; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ct-topbar-title::after { content: "Ashes remember"; display: block; margin-top: 2px; font: 400 17px/1 MoriScript, cursive; letter-spacing: .02em; color: #d3c3a5; }
/* 同一幅画覆盖标题栏与演员栏；高度跟随头像折叠，不占据正文版面。 */
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-cast-dock { position: relative; isolation: isolate; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-cast-dock::before { content: ""; position: absolute; z-index: -1; inset: calc(-54px - var(--ct-safe-top)) 0 0; pointer-events: none; background: linear-gradient(90deg, #1b211e55, #1b211e88), var(--mori-art) 48% 48% / cover; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-cast-toggle,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-actor { text-shadow: 0 1px 5px #111c11; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ct-back,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ct-topbar-settings { border: 1px solid #aa926335; border-radius: 3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-actors { padding-top: 9px; padding-bottom: 11px; scrollbar-color: rgba(141,121,91,.6) transparent; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-actors::-webkit-scrollbar-thumb { background: rgba(141,121,91,.6); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-cast-dock.is-collapsed .ctf-stage-actors { padding-top: 0; padding-bottom: 0; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-actor { gap: 8px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-avatar img { filter: saturate(.68) contrast(1.08); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-actor:focus-visible { outline: 1px solid #dbba84; outline-offset: 5px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-cast-toggle { font-size: 10px; letter-spacing: .12em; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-content { padding: 0 max(15px, var(--ct-safe-right)) calc(132px + var(--ct-safe-bottom)) max(15px, var(--ct-safe-left)); scrollbar-color: #8d795b transparent; }


#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-opening-scene,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-live-opening { position: relative; color: var(--mori-ink); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-live-opening { border: var(--ctb-opening-border); border-radius: var(--ctb-opening-radius); background: var(--ctb-opening-bg); box-shadow: var(--ctb-opening-shadow); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-frontispiece { position: relative; padding: 25px 24px 0; border: 0; background: transparent; text-align: center; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-scene-meta { display: grid; gap: 7px; font: 10px/1.65 MoriKai, serif; letter-spacing: .12em; color: #6d6251; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-scene-meta span { display: block; color: #776957; font: inherit; overflow-wrap: anywhere; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-act { display: flex; justify-content: center; align-items: center; gap: 13px; margin: 24px 0 10px; color: #875245; font: 11px/1.4 MoriKai, serif; letter-spacing: .18em; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-act i { width: 32px; height: 1px; background: #876c495c; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-scene-title { margin: 0; color: var(--ctb-opening-title-color); font: 400 clamp(24px, 6.5vw, 31px)/1.75 MoriMing, serif; letter-spacing: .13em; overflow-wrap: anywhere; text-wrap: balance; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-volume { margin: 9px 0 24px; font: 7px/1.8 Georgia, serif; letter-spacing: .22em; color: #8b7b60; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-epigraph { width: fit-content; max-width: 100%; margin: 0 auto; font: 14px/1.9 MoriKai, serif; text-align: left; color: #68614f; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-epigraph p { margin: 0; overflow-wrap: anywhere; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-epigraph .ctf-mori-initial { display: inline; color: #8b473e; font: 400 2.2em/.85 MoriMing, serif; margin-right: .07em; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-opening-copy { padding: 26px 24px 30px; overflow-wrap: anywhere; }
/* 两个空白行以诗句行高计，布局处理，不污染正文内容或语音台词索引。 */
#custom-theater-app.ct-stage-mode.ct-mori-stage .has-epigraph + .ctf-opening-copy { padding-top: calc(2 * 14px * 1.9); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-opening-copy > p:first-of-type::first-letter { float: left; font: 400 2.7em/1 MoriMing, serif; color: #87463c; padding: .08em .12em 0 0; }

/* 惩罚直播框架：题词之后、正文之前的折叠“直播间”。默认折叠；展开后正文区隐藏滚动条可上下滑动，
   观看者弹幕只在展开时滚动，刷新重进不产生任何动画开销。 */
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live { margin: 0 0 26px; border: 1px solid #5d4a3f; border-radius: 4px; background: #1b1c1a; color: #e3d9c6; box-shadow: 0 8px 22px #0f120e59, inset 0 0 0 1px #ffffff0a; overflow: hidden; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live.is-decline { border-color: #6b5a3a; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live.is-fail { border-color: #6e3f3a; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live.is-leak { border-color: #4f3a5e; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live > summary { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 12px; cursor: pointer; list-style: none; user-select: none; background: linear-gradient(90deg, #262624, #1f201d); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live > summary::-webkit-details-marker { display: none; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live > summary:focus-visible { outline: 1px solid #dbba84; outline-offset: -3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-badge { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 2px 7px; border-radius: 2px; background: #b13b3b; color: #fff; font: 700 10px/1.4 Georgia, serif; letter-spacing: .14em; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live[open] .ctf-mori-live-badge i { animation: ctf-mori-live-blink 1.1s steps(2, end) infinite; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-head { flex: 1; min-width: 0; display: grid; gap: 2px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-head strong { font: 400 14px/1.4 MoriMing, serif; letter-spacing: .1em; color: #e9d9b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-head small { font: 10px/1.5 MoriKai, serif; color: #a89c86; overflow-wrap: anywhere; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-toggle { flex: none; font: 10px/1.4 MoriKai, serif; letter-spacing: .1em; color: #c9ae86; border: 1px solid #8c7350; border-radius: 2px; padding: 4px 8px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-toggle em { font-style: normal; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-toggle em + em,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live[open] .ctf-mori-live-toggle em:first-child { display: none; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live[open] .ctf-mori-live-toggle em + em { display: inline; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-player { position: relative; margin: 0 8px 8px; border: 1px solid #ffffff12; border-radius: 3px; background: radial-gradient(120% 90% at 50% 0%, #2a2623, #121311 70%); overflow: hidden; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-topbar { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; font: 10px/1.5 MoriKai, serif; letter-spacing: .08em; color: #9d917c; background: #00000055; border-bottom: 1px solid #ffffff0d; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-danmaku { position: absolute; z-index: 2; inset: 30px 0 auto 0; height: 92px; pointer-events: none; overflow: hidden; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-bullet { position: absolute; top: calc(var(--lane) * 23px); left: 100%; display: inline-flex; gap: 6px; align-items: baseline; padding: 1px 6px; border-radius: 2px; background: #00000066; white-space: nowrap; font: 12px/1.6 MoriKai, serif; color: #f1e6cf; text-shadow: 0 1px 2px #000; opacity: 0; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-bullet b { font-weight: 400; color: #e0b07a; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live[open] .ctf-mori-live-bullet { animation: ctf-mori-live-scroll 13s linear infinite; animation-delay: var(--delay); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-screen { position: relative; z-index: 1; max-height: min(62vh, 520px); padding: 104px 16px 22px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; font: 14px/2 var(--ctb-narration-font); color: #ded4c0; mask-image: linear-gradient(#0000, #000 46px, #000 calc(100% - 20px), #0000); -webkit-mask-image: linear-gradient(#0000, #000 46px, #000 calc(100% - 20px), #0000); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live:not(.has-danmaku) .ctf-mori-live-screen { padding-top: 22px; mask-image: linear-gradient(#000 calc(100% - 20px), #0000); -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), #0000); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-screen::-webkit-scrollbar { display: none; width: 0; height: 0; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-screen:focus-visible { outline: 1px solid #dbba84; outline-offset: -2px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-screen p { margin: 0 0 1.2em; overflow-wrap: anywhere; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-screen p:last-child { margin-bottom: 0; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-screen p:first-child::first-letter { float: none; font: inherit; color: #e0b07a; padding: 0; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-caption { padding: 6px 10px; text-align: center; font: 10px/1.6 MoriKai, serif; letter-spacing: .16em; color: #c9ae86; background: #00000066; border-top: 1px solid #ffffff0d; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-danmaku-list { list-style: none; margin: 0 8px 10px; padding: 8px 10px; display: grid; gap: 4px; border: 1px solid #ffffff10; border-radius: 3px; background: #ffffff05; font: 11px/1.7 MoriKai, serif; color: #cbbfa8; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-danmaku-list li { display: flex; gap: 8px; align-items: baseline; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-danmaku-list b { flex: none; font-weight: 400; color: #e0b07a; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-danmaku-list span { overflow-wrap: anywhere; }
@keyframes ctf-mori-live-scroll { 0% { transform: translateX(0); opacity: 0; } 4% { opacity: 1; } 96% { opacity: 1; } 100% { transform: translateX(calc(-100% - 100vw)); opacity: 0; } }
@keyframes ctf-mori-live-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
    #custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-danmaku { display: none; }
    #custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live-screen { padding-top: 22px; }
    #custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-live[open] .ctf-mori-live-badge i { animation: none; }
}
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-opening-copy p { margin-bottom: 1.35em; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-opening-copy p:last-child { margin-bottom: 0; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-opening-copy .ctf-dialogue { text-shadow: 0 0 0 currentColor; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-director-note { border-radius: 3px; border-color: #91765670; background: #d0c4ad; box-shadow: 0 4px 12px #11160f33; color: #4b463b; }

/* 人物档案、系统终端与选项采用同一套旧铜框、炭灰底。 */
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-actor-panel { top: 12px; max-height: calc(100% - 110px); overflow-y: auto; overscroll-behavior: contain; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-actor-panel-card header strong { font-family: MoriMing, serif; font-weight: 400; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-actor-facts > div { box-shadow: none; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-actor-panel-card footer button { min-height: 40px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choices { border: 1px solid #8e7a57; border-radius: 3px; padding: 13px; background: #363a31; box-shadow: 0 7px 16px #11160d40; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choices header span { color: #c9af88; font-size: 10px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choices header small { color: #b1a794; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choice { min-height: 44px; border-radius: 2px; border-color: #a8916b45; background: #272d2566; color: #ded5c1; font: 13px/1.6 MoriKai, serif; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choice:hover:not(:disabled) { background: #5b5a4344; border-color: #c1aa7f; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choice.is-selected { border-color: #ba8268; background: #794b3d40; box-shadow: inset 2px 0 #ba8268; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choice i { color: #dfd2b8; border: 1px solid #ab95704d; background: #585a47; border-radius: 1px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choice.is-relation i { background: #704b42; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choice.is-flavor i { background: #716348; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choice-go { min-height: 40px; border-radius: 2px; background: #775047; color: #eee0ca; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-terminal,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-terminal-missing { border: 1px solid #9d835b; border-radius: 3px; background: #252d26; color: #ded5bf; box-shadow: 0 8px 20px #14180e55; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-terminal summary { min-height: 48px; padding: 8px 12px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-terminal summary strong { font: 17px/1.6 MoriMing, serif; letter-spacing: .15em; color: #d6c39e; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-terminal summary small { color: #b7ae98; font-size: 9px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-logo { border: 1px solid #aa8561; background: #694338; color: #ecd8b9; border-radius: 1px; font-family: MoriMing, serif; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-tabs,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-task,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-facts > div { border-radius: 2px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-tabs button { min-height: 38px; border-radius: 2px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-tabs button.is-active { background: #b8a382; color: #262d23; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-chips em { border-radius: 1px; color: #20261e; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-chips em.is-main { background: #aab08e; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-chips em.is-emergency { background: #c4ad81; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-chips em.is-private { background: #b58978; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-task { border-left-color: #a0a887; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-task.is-emergency { border-left-color: #bca073; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-task.is-private { border-left-color: #b18371; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-task b { color: #e5d6b7; font-size: 13px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-task p { font-size: 11px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-bar i b { background: linear-gradient(90deg, #8c9978, #c1b087); }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-partners { background: #af7d6121; border-radius: 2px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-partners > span { color: #c6a58d; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-partners li b { background: #b58c74; }

#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-composer textarea { border: 1px solid #89785755; border-radius: 3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-composer textarea::placeholder { color: #b4ac98; opacity: 1; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-receive { color: #ddc7a9; border: 1px solid #a3765766; background: #463e2f; border-radius: 3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-send { border-radius: 3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-extras-handle { color: #d9c6a2; background: #30362c; border: 1px solid #a18760; box-shadow: 0 4px 14px #141b115c; border-radius: 3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-extras-panel { color: #d7c9ae; background: #30362c; border: 1px solid #927a58; border-radius: 3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-extras-panel button { background: #454638; color: #dfd2b8; border-radius: 2px; }
/* 跳转胶囊底色/文字/确认键已随 --ctb-composer-* / --ctb-send-* 走本剧配色，这里只补黄铜描边与字体 */
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-jump-capsule { --ctf-jump-bg: #30362cf2; --ctf-jump-line: #927a58; --ctf-jump-shadow: 0 6px 18px #141b1173; font-family: MoriMing, serif; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-jump-field input { border-color: #89785799; }
/* MoriMing 只有 400 字重，加粗会被浏览器假粗体糊成一团 */
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-jump-field,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-jump-field input,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-jump-go { font-weight: 400; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-empty,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-scene-hold { background: #32382deb; color: #d6c7a8; border: 1px solid #927b58; border-radius: 3px; box-shadow: 0 6px 16px #12191066; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-stage-settings { color: #d9d0be; background: #292d26; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-settings-tile { color: #d9d0be; background: #363c30; border: 1px solid #8e77514d; border-radius: 3px; }
/* 设置与长按菜单有自己的浅纸区域，局部文字变量避免深底皮肤降低对比度。 */
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-settings-topbar { background: #30362c; border-color: #a8906844; color: #d9d0be; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-settings-body,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-turn-editor,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-bubble-menu-layer { --ct-ink: #403c35; --ct-ink-soft: #6c6151; color: #403c35; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-settings-body { background: #c6baa4; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-settings-body .ctf-settings-tile { --ct-ink-soft: #b9ab91; box-shadow: none; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-settings-card,
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-turn-editor { background: #e0d6c3; border-radius: 3px; box-shadow: none; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-select-bar button { background: #d9cbb0; color: #403c35; border-radius: 3px; }
#custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-select-bar button.is-primary { background: #774b40; color: #ecdcc1; }

@media (max-width: 340px) {
    #custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-frontispiece { padding-left: 19px; padding-right: 19px; }
    #custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-opening-copy { padding-left: 19px; padding-right: 19px; }
    #custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-scene-title { letter-spacing: .09em; }
    #custom-theater-app.ct-stage-mode.ct-mori-stage .ctf-mori-choices header { flex-wrap: wrap; }
}
