/* =========================================================
   戏剧工坊 · 样式
   风格：夜间剧院（丝绒酒红 + 金箔）× 剧本纸（暖米白）
   目录：1 设计变量 · 2 基础 · 3 通用组件 · 4 顶栏 · 5 首页
        6 工作台框架 · 7 各步骤组件 · 8 剧本纸 · 9 文档页
        10 弹层与提示 · 11 幕布与谢幕 · 12 课堂模式/响应式 · 13 打印
   ========================================================= */

/* ---------- 1 设计变量 ---------- */
:root {
  --velvet-950: #1c0609; --velvet-900: #2a0a10; --velvet-800: #3d0f18; --velvet-700: #571522;
  --velvet-600: #731b2c; --velvet-500: #8f2337; --velvet-400: #b03a4f;
  --gold-700: #8a6a24; --gold-600: #a8822f; --gold-500: #c9a24a; --gold-400: #dcbc6c; --gold-200: #eedfb6; --gold-100: #f8f0da;
  --paper-0: #fffdf8; --paper-1: #fbf7ee; --paper-2: #f4eddf; --paper-3: #eae0cc;
  --ink-900: #2a211c; --ink-700: #4d4037; --ink-500: #7a6b5f; --ink-400: #9b8d80; --ink-300: #c2b5a6;
  --line: #e7dcc8; --line-strong: #d6c6aa;
  --ok: #3e7c52; --ok-bg: #eef6ef; --ok-line: #c3dcc8;
  --warn: #b0612a; --warn-bg: #fdf3e6; --warn-line: #f0d2b0;
  --info-bg: #fbf5e4; --info-line: #ecdcb0;

  --r-xs: 6px; --r-sm: 9px; --r: 13px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(60, 30, 15, .06), 0 1px 1px rgba(60, 30, 15, .04);
  --sh-2: 0 6px 18px -6px rgba(70, 30, 15, .16), 0 2px 4px rgba(70, 30, 15, .05);
  --sh-3: 0 22px 48px -16px rgba(40, 8, 4, .35), 0 4px 10px rgba(40, 8, 4, .08);
  --ring: 0 0 0 3px rgba(201, 162, 74, .28);

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --fs: 15px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 60px;
}

/* ---------- 2 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans); font-size: var(--fs); line-height: 1.7; color: var(--ink-900);
  background-color: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); margin: 0; font-weight: 700; letter-spacing: .02em; }
p { margin: 0; }
b, strong { color: var(--velvet-600); font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
code, kbd { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--gold-200); }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.spacer { flex: 1; }
.muted { color: var(--ink-500); font-size: 13px; }
.lead { color: var(--ink-700); margin-bottom: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* 插画位：有图显示图片，没图显示 emoji */
.art { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; line-height: 1; vertical-align: middle; }
.art img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; }
.art.fb::before { content: attr(data-fb); font-size: .95em; }
.art-lg { font-size: 54px; }
.art-xl { font-size: 72px; }
.art-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-cover img { object-fit: cover; }
.art-cover.fb { display: none; }

/* ---------- 3 通用组件 ---------- */
.btn { --bg: var(--velvet-600); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 14.5px; letter-spacing: .02em; white-space: nowrap;
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s, filter .2s; }
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(180deg, var(--velvet-500), var(--velvet-600)); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 12px -4px rgba(115,27,44,.55); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 18px -6px rgba(115,27,44,.6); }
.btn-gold { --fg: var(--velvet-900); background: linear-gradient(180deg, #e8c977, var(--gold-500)); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 4px 14px -4px rgba(168,130,47,.6); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-secondary { --bg: var(--paper-0); --fg: var(--velvet-600); border: 1px solid var(--line-strong); box-shadow: var(--sh-1); }
.btn-secondary:hover { border-color: var(--gold-500); background: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink-700); }
.btn-ghost:hover { --bg: rgba(115,27,44,.06); --fg: var(--velvet-600); }
.btn-ghost-light { --bg: rgba(255,255,255,.06); --fg: var(--gold-100); border: 1px solid rgba(220,188,108,.35); }
.btn-ghost-light:hover { --bg: rgba(255,255,255,.13); border-color: var(--gold-400); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .38; cursor: not-allowed; filter: none; transform: none; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; gap: 5px; }
.btn-sm .i { width: 15px; height: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); color: var(--ink-400); transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(115,27,44,.08); color: var(--velvet-600); }
.icon-btn .i { width: 17px; height: 17px; }
.icon-btn-sm { width: 26px; height: 26px; } .icon-btn-sm .i { width: 15px; height: 15px; }
.icon-btn-xs { width: 22px; height: 22px; border-radius: 6px; } .icon-btn-xs .i { width: 13px; height: 13px; }
.link { color: var(--velvet-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-400); display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration-color: currentColor; }

.seal { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px;
  font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--gold-200);
  background: linear-gradient(145deg, var(--velvet-500), var(--velvet-700)); box-shadow: inset 0 0 0 1px rgba(220,188,108,.45), 0 1px 2px rgba(0,0,0,.25); }
.seal-sm { width: 24px; height: 24px; font-size: 12.5px; border-radius: 6px; }
.seal-xs { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }

.card { background: var(--paper-0); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-1); }
.card-flush { padding: 0; overflow: hidden; }
.sub-t { display: flex; align-items: center; gap: 7px; font-size: 16px; color: var(--velvet-700); margin-bottom: 14px; }
.sub-t .i { color: var(--gold-600); }

.input { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 13px; background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s; line-height: 1.6; }
.input::placeholder, textarea::placeholder, input::placeholder { color: var(--ink-300); }
.input:hover { border-color: var(--ink-300); }
.input:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--ring); }
textarea.input { resize: vertical; min-height: 46px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a6b5f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input-sm { padding: 6px 10px; font-size: 13.5px; }
select.input-sm { padding-right: 28px; background-position: right 9px center; }
.input-quiet { background: var(--paper-1); border-color: transparent; }
.input-quiet:hover { border-color: var(--line); }
input[type=range] { accent-color: var(--velvet-600); }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink-700); margin-bottom: 7px; }
.field > label .i { color: var(--gold-600); }
.field-ok { color: var(--ok) !important; opacity: 0; transform: scale(.6); transition: .25s var(--ease); }
.field.done .field-ok { opacity: 1; transform: none; }
.field-short { max-width: 240px; }
.hint { color: var(--ink-500); font-size: 12.5px; margin-top: 6px; }

.inspire, .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 9px; }
.inspire-l, .chips-l { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gold-700); font-weight: 600; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: var(--r-pill);
  background: var(--paper-1); border: 1px solid var(--line); font-size: 13px; color: var(--ink-700); transition: .15s; }
.chip:hover { border-color: var(--gold-500); color: var(--velvet-600); background: #fff; }
.chip.on { background: var(--velvet-600); border-color: var(--velvet-600); color: #fff; }
.chip-rel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip-rel.on { background: var(--c); border-color: var(--c); }
.chip-rel.on::before { background: rgba(255,255,255,.8); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: #fff; background: var(--c, var(--ink-500)); white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.tag .i { width: 13px; height: 13px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 6px 0 13px; border-radius: var(--r-pill); font-size: 13.5px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(220,188,108,.3); color: var(--gold-100); transition: .15s; }
.pill span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(0,0,0,.25); font-size: 11.5px; display: grid; place-items: center; }
.pill:hover { border-color: var(--gold-400); }
.pill.on { background: var(--gold-500); color: var(--velvet-900); border-color: var(--gold-500); font-weight: 600; }
.pill-dark { padding: 0 13px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.65;
  background: var(--info-bg); border: 1px solid var(--info-line); color: var(--ink-700); }
.note > .i { color: var(--gold-600); margin-top: 3px; }
.note .nt { display: block; color: var(--ink-900); }
.note-good { background: var(--ok-bg); border-color: var(--ok-line); } .note-good > .i { color: var(--ok); }
.note-warn { background: var(--warn-bg); border-color: var(--warn-line); } .note-warn > .i { color: var(--warn); }
.note-task { background: var(--paper-0); border-style: dashed; border-color: var(--line-strong); } .note-task > .i { color: var(--velvet-500); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 34px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-500); background: rgba(255,253,248,.6); margin-bottom: 14px; }
.empty > .i { width: 28px; height: 28px; color: var(--gold-500); }
.empty-lg { padding: 50px 20px; }

.meter { height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); transition: width .5s var(--ease); }
.meter-dark { background: rgba(255,255,255,.1); }

.switch { width: 38px; height: 22px; border-radius: 11px; background: var(--ink-300); position: relative; transition: background .2s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch.on { background: var(--velvet-600); }
.switch.on i { transform: translateX(16px); }

/* ---------- 4 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 20px;
  color: var(--gold-100); background: linear-gradient(180deg, var(--velvet-700), var(--velvet-800)); box-shadow: 0 1px 0 rgba(220,188,108,.25), 0 6px 18px rgba(20,4,6,.3); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; pointer-events: none;
  background: radial-gradient(circle at 10px 0, var(--velvet-800) 8.5px, transparent 9.5px) 0 0 / 20px 9px repeat-x; filter: drop-shadow(0 2px 1px rgba(30,6,10,.25)); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--velvet-800);
  background: linear-gradient(145deg, #ecd08a, var(--gold-500)); box-shadow: 0 2px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.5); }
.brand-mark .i { width: 21px; height: 21px; stroke-width: 1.9; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .18em; color: #fff3d8; }
.play-title { display: flex; align-items: center; gap: 1px; margin-left: 10px; padding: 3px 10px; border-radius: var(--r-sm); font-family: var(--serif); font-size: 16.5px; color: #fff; border: 1px solid transparent; transition: .15s; }
.play-title:hover, .play-title:focus-within { border-color: rgba(220,188,108,.4); background: rgba(255,255,255,.05); }
.play-title > span { color: var(--gold-400); }
.play-title .i { width: 14px; height: 14px; margin-left: 6px; color: var(--gold-400); opacity: .6; }
.title-input { background: transparent; border: 0; color: inherit; font: inherit; padding: 0; outline: none; max-width: 260px; }
.saved { font-size: 12px; color: var(--gold-200); opacity: 0; transition: opacity .4s; display: inline-flex; align-items: center; gap: 6px; }
.saved.on { opacity: .75; }
.saved::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fd19e; }
.tb-group { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r); background: rgba(0,0,0,.16); box-shadow: inset 0 0 0 1px rgba(220,188,108,.14); }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px; font-size: 13.5px; color: var(--gold-100); transition: .15s; }
.tb-btn .i { width: 16px; height: 16px; color: var(--gold-400); }
.tb-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.tb-btn.on { background: var(--gold-500); color: var(--velvet-900); } .tb-btn.on .i { color: var(--velvet-800); }
.tb-switch { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: var(--r-pill); font-size: 13.5px; color: var(--gold-100); border: 1px solid rgba(220,188,108,.3); transition: .15s; }
.tb-switch > .i { width: 16px; height: 16px; color: var(--gold-400); }
.tb-switch:hover { border-color: var(--gold-400); }
.tb-switch .sw { width: 32px; height: 18px; border-radius: 9px; background: rgba(255,255,255,.18); position: relative; transition: .2s; }
.tb-switch .sw i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.tb-switch.on { background: rgba(201,162,74,.18); border-color: var(--gold-500); }
.tb-switch.on .sw { background: var(--gold-500); } .tb-switch.on .sw i { transform: translateX(14px); }
.snd-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 12px); width: 330px; z-index: 60; padding: 16px 18px; color: var(--ink-900);
  background: var(--paper-0); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); animation: popIn .18s var(--ease); }
.pop::before { content: ""; position: absolute; top: -7px; right: 30px; width: 12px; height: 12px; background: var(--paper-0); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.pop-t { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--velvet-700); margin-bottom: 8px; }
.pop-t .i { color: var(--gold-600); }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--paper-3); font-size: 14px; }
.pop-row:first-of-type { border-top: 0; }
.pop-row > span small { display: block; color: var(--ink-500); font-size: 12px; }
.pop-row select, .pop-row input[type=range] { width: 180px; }
.pop-hint { font-size: 12.5px; color: var(--ink-500); margin: -4px 0 4px; }
.pop-foot { font-size: 12px; color: var(--ink-500); padding-top: 10px; border-top: 1px solid var(--paper-3); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 5 首页 ---------- */
.home { position: relative; min-height: calc(100vh - var(--top-h)); overflow: hidden; color: var(--gold-100);
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255,214,140,.22), transparent 60%), radial-gradient(ellipse at 50% 120%, #12030a, transparent 60%), linear-gradient(180deg, var(--velvet-800), var(--velvet-950)); }
.home-curtain { position: absolute; top: 0; bottom: 0; width: 15%; max-width: 230px; z-index: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 30%, rgba(0,0,0,.25)), repeating-linear-gradient(90deg, #4d0e18 0 22px, #7a1c2b 22px 38px, #5e1522 38px 52px);
  box-shadow: 0 0 60px rgba(0,0,0,.6); border-radius: 0 0 60% 0 / 0 0 12% 0; }
.home-curtain.l { left: 0; }
.home-curtain.r { right: 0; transform: scaleX(-1); }
.home-valance { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 1;
  background: radial-gradient(circle at 28px 46px, transparent 26px, #4a0c16 27px) 0 0 / 56px 46px repeat-x; border-bottom: 2px solid var(--gold-600); }
.home-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 84px 24px 70px; text-align: center; }
.hero-mark { display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; margin-bottom: 8px;
  background: radial-gradient(circle, rgba(255,214,140,.3), transparent 70%); animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { to { filter: drop-shadow(0 0 18px rgba(255,200,110,.45)); } }
.hero-k { font-size: 13px; letter-spacing: .4em; color: var(--gold-400); margin-bottom: 8px; }
.hero h1 { font-size: 60px; letter-spacing: .3em; margin-right: -.3em; color: #fff4dc; text-shadow: 0 4px 30px rgba(0,0,0,.5), 0 0 40px rgba(255,200,120,.15); }
.hero-sub { font-size: 17px; margin: 12px 0 34px; color: var(--gold-200); opacity: .9; }
.hero-cta { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; padding: 6px; border-radius: var(--r-pill); background: rgba(255,248,232,.1); border: 1px solid rgba(220,188,108,.35); backdrop-filter: blur(6px); }
.hero-cta .input { border: 0; background: transparent; color: #fff; padding: 0 18px; font-size: 15px; }
.hero-cta .input::placeholder { color: rgba(238,223,182,.55); }
.hero-cta .input:focus { box-shadow: none; }
.hero-cta .btn { height: 44px; padding: 0 24px; }
.programme { list-style: none; margin: 36px auto 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.programme li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--gold-200); }
.shelf { margin-top: 56px; text-align: left; }
.shelf h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--gold-200); margin-bottom: 14px; }
.shelf h2 .i { color: var(--gold-400); }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.proj { cursor: pointer; padding: 16px 18px; border-radius: var(--r-lg); color: var(--ink-900); background: linear-gradient(180deg, var(--paper-0), var(--paper-1)); box-shadow: var(--sh-3); transition: transform .2s var(--ease), box-shadow .2s; }
.proj:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -16px rgba(0,0,0,.55); }
.proj-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.proj h3 { font-size: 19px; color: var(--velvet-700); line-height: 1.4; }
.proj-meta { font-size: 12.5px; color: var(--ink-500); margin: 4px 0 14px; }
.proj-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-500); margin-top: 8px; }
.proj-foot b { color: var(--gold-700); }
.home-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.home-note { font-size: 12.5px; color: var(--gold-200); opacity: .55; margin-top: 18px; }

/* ---------- 6 工作台框架 ---------- */
.ws { display: grid; grid-template-columns: 252px minmax(0, 1fr) 340px; min-height: calc(100vh - var(--top-h));
  background: radial-gradient(ellipse 50% 360px at 50% -40px, rgba(255,226,160,.5), transparent 70%); }

.side-l { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 24px 14px 20px; color: var(--gold-100);
  background: linear-gradient(180deg, var(--velvet-900), var(--velvet-950)); box-shadow: inset -1px 0 0 rgba(220,188,108,.12); scrollbar-width: thin; scrollbar-color: rgba(220,188,108,.2) transparent; }
.side-head, .side-badges { padding: 0 8px; }
.sh-row { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; color: var(--gold-200); opacity: .8; margin-bottom: 8px; }
.sh-row b { color: var(--gold-400); font-weight: 600; }
.acts { list-style: none; margin: 20px 0; padding: 0; }
.act { margin-bottom: 2px; }
.act-h { width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: var(--r); text-align: left; transition: background .15s; }
.act-h:hover { background: rgba(255,255,255,.05); }
.act .seal { background: rgba(255,255,255,.06); color: var(--gold-200); box-shadow: inset 0 0 0 1px rgba(220,188,108,.25); }
.act.done .seal { background: linear-gradient(145deg, var(--gold-400), var(--gold-600)); color: var(--velvet-900); box-shadow: none; }
.act.cur .seal { background: linear-gradient(145deg, var(--velvet-400), var(--velvet-600)); color: #fff; box-shadow: inset 0 0 0 1px var(--gold-400), 0 0 14px rgba(201,162,74,.35); }
.act-nm { flex: 1; min-width: 0; line-height: 1.3; }
.act-nm b { display: block; color: #fbeed2; font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.act-nm small { font-size: 11.5px; color: var(--gold-200); opacity: .5; }
.act-st { font-size: 11.5px; color: var(--gold-200); opacity: .55; font-variant-numeric: tabular-nums; }
.act-st .i { width: 15px; height: 15px; color: var(--gold-400); }
.act.done .act-st { opacity: 1; }
.act.cur > .act-h { background: rgba(201,162,74,.12); }
.act-steps { list-style: none; margin: 4px 0 10px 22px; padding: 0 0 0 16px; border-left: 1px solid rgba(220,188,108,.2); }
.act-steps button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 8px; border-radius: 8px; font-size: 13.5px; color: var(--gold-200); opacity: .62; text-align: left; transition: .15s; }
.act-steps button i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; margin-left: -28px; margin-right: 12px; background: var(--velvet-900); }
.act-steps button:hover { opacity: 1; }
.act-steps button.ok i { background: var(--gold-400); border-color: var(--gold-400); }
.act-steps button.cur { opacity: 1; color: #fff; font-weight: 600; background: rgba(255,255,255,.06); }
.act-steps button.cur i { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.side-badges { padding-top: 16px; border-top: 1px solid rgba(220,188,108,.15); }
.bm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; cursor: pointer; }
.bm { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-size: 17px; background: rgba(255,255,255,.04); filter: grayscale(1); opacity: .28; transition: .3s; }
.bm.got { filter: none; opacity: 1; background: rgba(201,162,74,.14); }
.bm .art { width: 100%; height: 100%; }

.main { width: 100%; max-width: 900px; margin: 0 auto; padding: 34px 40px 90px; }
.step-head { margin-bottom: 26px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); letter-spacing: .04em; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.step-title { font-size: 34px; color: var(--velvet-700); margin: 8px 0 12px; letter-spacing: .06em; }
.step-dots { display: flex; gap: 6px; }
.step-dots i { width: 26px; height: 4px; border-radius: 2px; background: var(--paper-3); transition: .3s; }
.step-dots i.ok { background: var(--gold-400); }
.step-dots i.cur { background: var(--velvet-500); width: 40px; }
.step-nav { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-nav-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.nudge { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 7px 12px; border-radius: var(--r-sm); animation: popIn .2s var(--ease); }

.side-r { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 24px 20px 30px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(251,247,238,.85), rgba(244,237,223,.85)); border-left: 1px solid var(--line); scrollbar-width: thin; }
.mentor { flex: none; background: var(--paper-0); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.mentor-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; background: linear-gradient(180deg, var(--velvet-700), var(--velvet-800)); color: var(--gold-100); }
.mentor-av { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; font-size: 24px;
  background: radial-gradient(circle at 50% 40%, #fff0c8, var(--gold-500)); box-shadow: 0 0 0 2px var(--gold-400), 0 0 16px rgba(255,200,110,.45); }
.mentor-av .art { width: 100%; height: 100%; }
.mentor-av.sm { width: 34px; height: 34px; font-size: 19px; }
.mentor-name { font-family: var(--serif); font-weight: 700; font-size: 16px; color: #fff3d8; letter-spacing: .1em; }
.mentor-role { font-size: 12px; opacity: .7; }
.mentor-say { padding: 14px 16px 16px; font-size: 14.5px; line-height: 1.8; color: var(--ink-700); }
.live-fb { flex: none; display: flex; flex-direction: column; gap: 10px; }
.live-fb:empty { display: none; }
.panel { flex: none; }
.panel-t { display: flex; align-items: center; gap: 7px; font-size: 15px; color: var(--velvet-700); margin: 6px 2px 10px; }
.panel-t .i { color: var(--gold-600); }
.tip { background: var(--paper-0); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; overflow: hidden; transition: box-shadow .2s; }
.tip[open] { box-shadow: var(--sh-1); }
.tip summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary span { font-family: var(--serif); font-weight: 700; font-size: 15px; flex: 1; }
.tip summary small { font-size: 12px; color: var(--ink-500); }
.tip-chev { width: 15px; height: 15px; color: var(--ink-400); transition: transform .2s; }
.tip[open] .tip-chev { transform: rotate(180deg); }
.tip-b { padding: 0 14px 14px; font-size: 14px; line-height: 1.75; color: var(--ink-700); }
.tip-ex { margin-top: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--paper-1); border-left: 3px solid var(--gold-400); font-size: 13px; color: var(--ink-500); }
.tip-ex span { display: block; font-size: 11.5px; letter-spacing: .1em; color: var(--gold-700); font-weight: 600; margin-bottom: 2px; }
.ticket { flex: none; position: relative; padding: 14px 18px; border-radius: var(--r); background: var(--paper-0); border: 1px solid var(--line); font-size: 14px; color: var(--ink-700);
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket-h { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-weight: 700; color: var(--velvet-700); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1.5px dashed var(--line-strong); }
.ticket-h .i { color: var(--gold-600); }
.class-card { flex: none; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(160deg, #20313f, #172430); color: #dfe8ef; font-size: 14px; box-shadow: var(--sh-2); }
.class-card ol { margin: 6px 0 12px; padding-left: 20px; }
.class-card p { margin: 4px 0; }
.cc-h { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #ffd27a; }
.cc-h span { margin-left: auto; font-weight: 400; font-size: 12px; opacity: .75; }
.cc-sub { font-size: 12px; letter-spacing: .12em; color: #ffd27a; margin-top: 10px; }
.cc-q { border-left: 2px solid #ffd27a; padding-left: 9px; }

/* ---------- 7 各步骤组件 ---------- */
.deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; perspective: 1200px; }
.scard { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; position: relative; transform-style: preserve-3d; transition: transform .7s var(--ease); cursor: pointer; }
.scard:not(.flipped):hover { transform: translateY(-6px) rotate(-1deg); }
.scard.flipped { transform: rotateY(180deg); }
/* 翻牌：先抬起、翻到侧面时最高，再落下露出正面 */
.deck .scard.scard.flipping { animation: cardFlip .9s cubic-bezier(.45, .05, .25, 1) both; z-index: 2; }
.scard.flipping .front { animation: revealGlow .9s ease-out both; }
@keyframes cardFlip {
  0%   { transform: translateY(0) rotateY(0) scale(1); }
  30%  { transform: translateY(-22px) rotateY(20deg) scale(1.06); }
  60%  { transform: translateY(-26px) rotateY(150deg) scale(1.08); }
  100% { transform: translateY(0) rotateY(180deg) scale(1); }
}
@keyframes revealGlow {
  0%, 55% { box-shadow: 0 0 0 0 rgba(255,214,140,0), var(--sh-2); }
  75%     { box-shadow: 0 0 0 4px rgba(255,214,140,.55), 0 24px 40px -12px rgba(115,27,44,.45); }
  100%    { box-shadow: var(--sh-2); }
}
/* 发牌：三张卡依次从上方落到桌面 */
.deck.dealing .scard { animation: dealIn .55s cubic-bezier(.2, .8, .3, 1.15) backwards; }
.deck.dealing .scard:nth-child(2) { animation-delay: .1s; }
.deck.dealing .scard:nth-child(3) { animation-delay: .2s; }
@keyframes dealIn { from { opacity: 0; transform: translateY(-40px) rotate(-6deg) scale(.92); } }
.scard .face { grid-area: 1 / 1; align-self: stretch; width: 100%; min-width: 0; position: relative; aspect-ratio: 3 / 4.4; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-lg); }
.scard .face > .art-cover, .sc-art .art-cover { border-radius: inherit; overflow: hidden; }
.sc-art { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.scard .back { display: grid; place-items: center; box-shadow: var(--sh-3);
  background: radial-gradient(ellipse 80% 55% at 50% 40%, rgba(255,214,140,.16), transparent 70%), linear-gradient(180deg, var(--velvet-800), var(--velvet-950)); }
/* 卡背：英国古典剧院的台口与大幕（没有放 card-back.png 时显示） */
.back-frame { position: absolute; inset: 10px; border: 1px solid rgba(220,188,108,.45); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--gold-200); }
.back-stage { width: 80%; height: auto; margin-bottom: 6px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); transition: transform .3s var(--ease); }
.scard:not(.flipped):hover .back-stage { transform: scale(1.03); }
.back-stage .pc-gold { fill: none; stroke: #d9b866; }
.back-stage rect.pc-gold { fill: #2a0a10; }
.back-stage .pc-goldf { fill: #d9b866; }
.back-stage .pc-bulb { fill: #ffe3a3; filter: drop-shadow(0 0 2px #ffcf70); }
.back-t { font-family: var(--serif); font-size: 21px; letter-spacing: .5em; margin-right: -.5em; color: #fff0cc; }
.back-s { font-size: 11px; letter-spacing: .3em; opacity: .6; }
.scard .back:has(.art:not(.fb)) .back-frame { display: none; }
.back-hint { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px 0 12px; text-align: center; font-family: var(--serif); font-size: 13px; letter-spacing: .4em; color: var(--gold-200);
  background: linear-gradient(0deg, rgba(20,4,6,.85), transparent); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.scard .back:has(.art:not(.fb)) .back-hint { display: block; }
.scard:not(.flipped):hover .back-hint { color: #fff3d6; }
.scard .front { transform: rotateY(180deg); display: flex; flex-direction: column; padding: 16px 16px 14px; background: var(--paper-0); border: 1px solid var(--line-strong); box-shadow: var(--sh-2); }
.sc-art { position: relative; margin: -18px -18px 12px; height: 0; overflow: hidden; }
.sc-art:has(.art:not(.fb)) { height: 96px; }
.sc-k { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: var(--gold-700); }
.sc-genre { letter-spacing: .05em; font-size: 11.5px; padding: 0 8px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--velvet-600); }
.sc-src { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.sc-src .i { width: 13px; height: 13px; color: var(--gold-600); }
.genre-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 20px; }
.chip-n { font-size: 11px; opacity: .55; margin-left: 1px; }
.fb-src { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ok-line); font-size: 13px; color: var(--ink-500); }
.fb-src b { display: block; color: var(--ink-700); }
.scard .front h3 { font-size: 21px; color: var(--velvet-700); margin: 2px 0 8px; letter-spacing: .1em; }
.scard dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 13.5px; }
.scard dt { color: var(--ink-400); }
.scard dd { margin: 0; color: var(--ink-700); }
.sc-pr { margin-top: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-bg); border-left: 3px solid var(--velvet-500); font-size: 13.5px; color: var(--ink-900); line-height: 1.6; }
.sc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-hint { font-size: 12px; color: var(--velvet-500); }
.scard.chosen .front { border-color: var(--velvet-500); box-shadow: 0 0 0 3px rgba(143,35,55,.25), var(--sh-2); }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ccard { position: relative; cursor: pointer; text-align: center; padding: 22px 16px 16px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.ccard-del { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .15s; }
.ccard:hover .ccard-del, .ccard:focus-within .ccard-del { opacity: 1; }
.ccard-av { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: radial-gradient(circle, var(--gold-100), var(--paper-2)); box-shadow: inset 0 0 0 2px var(--gold-200); }
.ccard-av .art { width: 100%; height: 100%; }
.ccard h3 { font-size: 19px; color: var(--ink-900); }
.ccard-meta { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.ccard-want { margin-top: 10px; font-size: 13px; color: var(--ink-700); text-align: left; background: var(--paper-1); border-radius: var(--r-sm); padding: 7px 10px; line-height: 1.55; }
.ccard-want span { display: block; font-size: 11px; color: var(--gold-700); letter-spacing: .1em; }
.seg { display: flex; gap: 3px; margin-top: 12px; }
.seg i { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-3); }
.seg i.ok { background: var(--gold-500); }
.ccard-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; border: 1.5px dashed var(--gold-400); background: rgba(255,253,248,.5); box-shadow: none; color: var(--velvet-600); }
.ccard-add small { color: var(--ink-500); font-size: 12.5px; }
.add-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--velvet-600); color: #fff; box-shadow: 0 6px 14px -4px rgba(115,27,44,.5); margin-bottom: 4px; }
.add-ic .i { width: 22px; height: 22px; }

.wizard { background: var(--paper-0); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
.wizard-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-1), var(--paper-0)); }
.wizard-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle, var(--gold-100), var(--paper-2)); box-shadow: inset 0 0 0 2px var(--gold-200); }
.wizard-av .art { width: 100%; height: 100%; }
.wizard-name { flex: 1; line-height: 1.3; }
.wizard-name small { display: block; font-size: 12px; color: var(--ink-500); }
.wizard-name b { font-family: var(--serif); font-size: 21px; color: var(--ink-900); }
.stepper { list-style: none; display: flex; margin: 0; padding: 14px 20px 0; gap: 4px; overflow-x: auto; }
.stepper li { flex: 1; min-width: 0; }
.stepper button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 2px 12px; font-size: 12.5px; color: var(--ink-500); border-bottom: 2px solid var(--paper-3); white-space: nowrap; transition: .15s; }
.stepper button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--paper-2); color: var(--ink-500); }
.stepper button span .i { width: 13px; height: 13px; }
.stepper button.ok span { background: var(--gold-200); color: var(--gold-700); }
.stepper button.ok { border-bottom-color: var(--gold-400); }
.stepper button.cur { color: var(--velvet-600); font-weight: 600; border-bottom-color: var(--velvet-600); }
.stepper button.cur span { background: var(--velvet-600); color: #fff; }
.wizard-say { display: flex; gap: 12px; align-items: flex-start; margin: 18px 20px 0; padding: 13px 15px; border-radius: var(--r); background: var(--paper-1); font-size: 14.5px; line-height: 1.75; color: var(--ink-700); }
.wizard-body { padding: 20px; }
.wizard-f { display: flex; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--paper-1); }
.arche { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.arche-i { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; text-align: left; border-radius: var(--r); background: var(--paper-1); border: 1px solid var(--line); transition: .15s; }
.arche-i:hover { border-color: var(--gold-400); background: #fff; transform: translateY(-2px); }
.arche-i.on { background: #fff; border-color: var(--velvet-500); box-shadow: 0 0 0 2px rgba(143,35,55,.2); }
.arche-art { font-size: 28px; width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 2px; }
.arche-art .art { width: 100%; height: 100%; }
.arche-i b { font-family: var(--serif); font-size: 16px; color: var(--ink-900); }
.arche-i small { font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }

.hot-who { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 14px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--velvet-900); }
.hot-stage { position: relative; padding: 30px 32px 26px; border-radius: 0 0 var(--r-xl) var(--r-xl); color: var(--gold-100); text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 45% 60% at 50% 0%, rgba(255,226,160,.38), transparent 70%), linear-gradient(180deg, var(--velvet-800), var(--velvet-950)); box-shadow: var(--sh-3); }
.hot-stage::before { content: ""; position: absolute; left: 50%; top: -20px; width: 380px; height: 300px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255,236,190,.18), transparent); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); pointer-events: none; }
.hot-seat { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.hot-seat > .art { position: relative; z-index: 1; width: 84px; height: 84px; }
.hot-chair { font-size: 30px; margin-top: -10px; opacity: .85; }
.hot-name { position: relative; font-family: var(--serif); font-size: 18px; margin: 8px 0 18px; color: var(--gold-200); }
.hot-name b { color: #fff; font-size: 21px; }
.hot-q { position: relative; text-align: left; padding: 18px 22px; border-radius: var(--r-lg); background: var(--paper-0); color: var(--ink-900); box-shadow: var(--sh-2); }
.hot-q::after { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; background: var(--paper-0); transform: translateX(-50%) rotate(45deg); }
.hot-asker { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--velvet-500); font-weight: 600; margin-bottom: 4px; }
.hot-q p { font-family: var(--serif); font-size: 21px; line-height: 1.55; }
.hot-a { margin-top: 14px; min-height: 96px; font-size: 16px; background: rgba(255,253,248,.97); border-color: var(--gold-400); resize: vertical; }
.hot-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.hot-own { display: flex; gap: 8px; max-width: 420px; margin: 12px auto 0; }
.hot-own .input { background: rgba(255,255,255,.08); border-color: rgba(220,188,108,.3); color: #fff; }
.hot-own .input::placeholder { color: rgba(238,223,182,.5); }
.hot-progress { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--gold-200); }
.pips { display: flex; gap: 5px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold-400); transition: .3s; }
.pips i.on { background: var(--gold-400); box-shadow: 0 0 8px rgba(220,188,108,.7); }
.hot-log { margin-top: 26px; }
.qa { background: var(--paper-0); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.qa-q { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.qa-a { font-family: var(--serif); font-size: 15.5px; color: var(--ink-900); margin-top: 3px; }

.rel { display: grid; gap: 16px; }
.rel-side { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rel-svg { display: block; width: 100%; height: auto; background: radial-gradient(circle at 50% 45%, var(--paper-0), var(--paper-1)); }
.rl-node { fill: var(--paper-0); stroke: var(--gold-500); stroke-width: 2.5; filter: drop-shadow(0 3px 6px rgba(70,30,15,.18)); }
.rl-art { width: 48px; height: 48px; display: grid; place-items: center; font-size: 26px; }
.rl-art .art { width: 100%; height: 100%; }
.rl-name { font: 700 15px var(--serif); fill: var(--ink-900); text-anchor: middle; }
.rl-lbl { font: 600 12px var(--sans); fill: #fff; text-anchor: middle; }
.rl-empty { font: 14px var(--sans); fill: var(--ink-400); text-anchor: middle; }
.rel-pick { display: flex; align-items: center; gap: 8px; color: var(--ink-400); }
.rel-side .chips { margin: 12px 0; }
.rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px 9px 12px; border-radius: var(--r); background: var(--paper-0); border: 1px solid var(--line); font-size: 13.5px; }
.rel-list li > div { flex: 1; }
.rel-list li b { color: var(--ink-900); }
.rel-list li p { color: var(--ink-500); font-size: 12.5px; }

.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; text-align: left; border-radius: var(--r-lg);
  background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .2s var(--ease); }
.opt:hover { border-color: var(--gold-400); transform: translateY(-2px); box-shadow: var(--sh-2); }
.opt.on { border-color: var(--velvet-500); box-shadow: 0 0 0 3px rgba(143,35,55,.16), var(--sh-2); }
.opt-art { width: 54px; height: 54px; display: grid; place-items: center; font-size: 30px; border-radius: var(--r); background: var(--paper-1); margin-bottom: 6px; }
.opt-art .art { width: 100%; height: 100%; }
.opt-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); color: transparent; transition: .2s; }
.opt-check .i { width: 14px; height: 14px; stroke-width: 2.5; }
.opt.on .opt-check { background: var(--velvet-600); border-color: var(--velvet-600); color: #fff; }
.opt-n { font-family: var(--serif); font-size: 19px; color: var(--ink-900); }
.opt-d { font-size: 13.5px; color: var(--ink-700); line-height: 1.6; }
.opt-c { display: flex; gap: 6px; align-items: flex-start; margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--velvet-500); line-height: 1.5; }
.opt-c .i { margin-top: 2px; }
.opt-x { font-size: 12.5px; color: var(--gold-700); background: var(--gold-100); padding: 3px 9px; border-radius: var(--r-pill); margin-top: 6px; }

.forge { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; }
.forge-side { padding: 20px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); border-top: 4px solid; }
.forge-side.hero { border-top-color: #3d6f9e; } .forge-side.rival { border-top-color: var(--velvet-500); }
.forge-who { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.forge-who > .art { width: 52px; height: 52px; font-size: 30px; border-radius: 50%; background: var(--paper-1); }
.forge-who small { font-size: 12px; letter-spacing: .15em; color: var(--ink-500); }
.forge-who h3 { font-size: 21px; }
.forge-vs { display: grid; place-items: center; }
.forge-vs span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--gold-200);
  background: radial-gradient(circle, var(--velvet-500), var(--velvet-800)); box-shadow: 0 0 0 3px var(--gold-500), 0 0 22px rgba(226,88,34,.45); animation: vs 1.8s ease-in-out infinite; }
@keyframes vs { 50% { transform: scale(1.1); box-shadow: 0 0 0 3px var(--gold-400), 0 0 34px rgba(226,88,34,.7); } }

.logline { padding: 30px 34px; border-radius: var(--r-xl); background: var(--paper-0); border: 1px solid var(--line-strong); box-shadow: var(--sh-2); position: relative; }
.logline::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-200); border-radius: 20px; pointer-events: none; }
.logline-k { display: flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: .2em; color: var(--gold-700); margin-bottom: 10px; }
.logline p { font-family: var(--serif); font-size: 21px; line-height: 2.6; color: var(--ink-900); }
.blank { position: relative; width: var(--w); max-width: 100%; font-family: var(--serif); font-size: 19px; padding: 2px 8px; margin: 0 2px; border: 0; border-bottom: 2px solid var(--gold-400); background: linear-gradient(0deg, var(--gold-100), transparent 70%); color: var(--velvet-700); border-radius: 4px 4px 0 0; transition: .15s; }
.blank:focus { outline: none; border-bottom-color: var(--velvet-500); background: linear-gradient(0deg, #fde9c9, transparent 80%); }

.dice-bar { display: flex; align-items: center; gap: 18px; padding: 14px 20px; margin-bottom: 16px; border-radius: var(--r-lg); color: var(--gold-100);
  background: radial-gradient(ellipse at 10% 50%, rgba(255,214,140,.2), transparent 50%), linear-gradient(135deg, var(--velvet-800), var(--velvet-950)); box-shadow: var(--sh-2); }
.dice { width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 34px; background: rgba(255,255,255,.07); border: 1px solid rgba(220,188,108,.35); transition: transform .2s; }
.dice:hover { transform: rotate(-8deg) scale(1.05); background: rgba(255,255,255,.12); }
.dice .art { width: 46px; height: 46px; }
.dice.roll { animation: roll .7s var(--ease); }
@keyframes roll { 50% { transform: rotate(360deg) scale(1.3); } 100% { transform: rotate(720deg); } }
.dice-txt { flex: 1; line-height: 1.5; }
.dice-txt b { color: #fff; font-family: var(--serif); font-size: 17px; display: block; }
.dice-txt small { font-size: 13px; color: var(--gold-200); opacity: .8; display: block; }
.twist { font-family: var(--serif); font-size: 19px; color: #fff; margin: 2px 0 8px; }
.dice-use { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.curve { padding: 14px 14px 12px; margin-bottom: 18px; }
.curve-svg { display: block; width: 100%; height: auto; }
.cv-grid { stroke: var(--paper-3); stroke-dasharray: 3 5; }
.cv-axis { font-size: 11px; fill: var(--ink-400); }
.cv-line { fill: none; stroke: var(--velvet-600); stroke-width: 2.75; stroke-linecap: round; }
.cv-pt { fill: var(--velvet-600); stroke: #fff; stroke-width: 2.5; }
.cv-pt.peak { fill: #d9542b; }
.cv-lbl { font: 600 12.5px var(--sans); fill: var(--ink-700); text-anchor: middle; }
.cv-val { font: 700 12px var(--sans); fill: var(--velvet-600); text-anchor: middle; }
.curve-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.curve-notes .note { padding: 7px 12px; font-size: 13.5px; }
.beats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.beat { display: grid; grid-template-columns: 140px minmax(0, 1fr) 130px; gap: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.beat-peak { border-color: #e6b8a3; background: linear-gradient(90deg, #fff6f1, var(--paper-0) 40%); }
.beat-l { display: flex; gap: 10px; align-items: flex-start; }
.beat-n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--velvet-600); background: var(--paper-2); margin-top: 2px; }
.beat-l b { display: block; font-family: var(--serif); font-size: 16px; color: var(--ink-900); }
.beat-l small { font-size: 12px; color: var(--ink-500); }
.beat-q { font-size: 13px; color: var(--ink-500); margin-bottom: 6px; }
.beat-r { text-align: center; }
.beat-r small { font-size: 11.5px; color: var(--ink-500); letter-spacing: .08em; }
.beat-r b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--velvet-600); }
.beat-r input { width: 100%; }

.plant { position: relative; display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; gap: 8px; align-items: start; padding: 16px 40px 16px 16px; margin-bottom: 12px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.plant-c label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.plant-c label .i { color: var(--gold-600); }
.plant-arrow { color: var(--gold-400); padding-top: 32px; }
.plant-del { position: absolute; top: 10px; right: 8px; }

.scene { padding: 16px 20px 20px; margin-bottom: 16px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: border-color .4s, box-shadow .4s; }
.scene.lit { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(220,188,108,.25), 0 10px 30px -10px rgba(201,162,74,.55); }
.scene-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.scene-no { flex: none; font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--gold-200); background: linear-gradient(145deg, var(--velvet-500), var(--velvet-700)); padding: 3px 11px; border-radius: 7px; }
.scene-title { flex: 1; min-width: 0; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink-900); border: 0; border-bottom: 1px dashed transparent; background: transparent; padding: 2px 0; }
.scene-title:hover { border-bottom-color: var(--line-strong); }
.scene-title:focus { outline: none; border-bottom-color: var(--gold-500); }
.lights { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-500); }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-3); transition: .3s; }
.lights i.on { background: var(--gold-400); box-shadow: 0 0 7px rgba(220,188,108,.9); }
.lights span { margin-left: 4px; min-width: 38px; }
.scene-tools { display: flex; }
.scene-beat { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-500); margin-bottom: 10px; }
.scene-beat .i { color: var(--gold-600); margin-top: 3px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.q-cell label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.bulb { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-3); transition: .3s; }
.bulb.on { background: var(--gold-400); box-shadow: 0 0 6px rgba(220,188,108,.9); }

.subx { margin-bottom: 16px; }
.subx-sit { font-family: var(--serif); font-size: 17px; line-height: 1.7; margin-bottom: 16px; color: var(--ink-900); }
.subx-sit span { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--gold-700); background: var(--gold-100); padding: 1px 9px; border-radius: var(--r-pill); margin-right: 8px; vertical-align: 2px; }
.subx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.subx-pair .field { margin: 0; }
.subx-pair .meant .input { background: var(--paper-1); border-style: dashed; font-style: italic; }

/* ---------- 8 剧本纸 ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: var(--r); background: var(--paper-3); margin-bottom: 16px; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 9px; font-size: 13.5px; color: var(--ink-700); transition: .15s; }
.tabs button span { font-size: 11px; padding: 0 6px; border-radius: 8px; background: rgba(0,0,0,.06); }
.tabs button:hover { background: rgba(255,255,255,.5); }
.tabs button.cur { background: var(--paper-0); color: var(--velvet-700); font-weight: 600; box-shadow: var(--sh-1); }
.paper { position: relative; padding: 40px 52px 30px; border-radius: 4px; font-family: var(--serif); background-color: var(--paper-0);
  background-image: linear-gradient(90deg, transparent 38px, rgba(176,58,79,.18) 38px, rgba(176,58,79,.18) 39px, transparent 39px);
  box-shadow: 0 1px 0 var(--line), 0 3px 0 -1px var(--paper-0), 0 4px 0 -1px var(--line), 0 7px 0 -2px var(--paper-0), 0 8px 0 -2px var(--line), var(--sh-2); }
.paper-h { text-align: center; margin: 0 0 22px; }
.rline + .paper-h { margin-top: 34px; }
.paper-h h2 { font-size: 21px; letter-spacing: .1em; }
.paper-h p { font-family: var(--sans); font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.paper-note { font-family: var(--sans); margin-bottom: 16px; }
.paper-empty { text-align: center; font-family: var(--sans); font-size: 14px; color: var(--ink-400); padding: 20px 0; }
.line { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; border-radius: 8px; }
.line .who { flex: none; width: 112px; padding-top: 4px; }
.line .who select { width: 100%; border: 0; background: transparent; text-align: right; text-align-last: right; font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--velvet-600); cursor: pointer; padding: 0; appearance: none; -webkit-appearance: none; }
.line .who select:hover { color: var(--velvet-400); }
.line .body { flex: 1; min-width: 0; }
.line textarea { display: block; width: 100%; border: 1px solid transparent; background: transparent; resize: none; overflow: hidden; font-family: var(--serif); font-size: 16.5px; line-height: 1.7; padding: 3px 8px; border-radius: 6px; min-height: 34px; color: var(--ink-900); transition: .15s; }
.line textarea:hover { background: var(--paper-1); }
.line textarea:focus { outline: none; background: #fff; border-color: var(--gold-400); box-shadow: var(--ring); }
.line .paren { display: block; width: 100%; border: 0; background: transparent; padding: 0 8px; font-family: var(--serif); font-size: 13.5px; font-style: italic; color: var(--ink-500); }
.line .paren:focus { outline: none; color: var(--ink-700); }
.line .paren:placeholder-shown { opacity: 0; height: 0; transition: opacity .15s; }
.line:hover .paren:placeholder-shown, .line:focus-within .paren:placeholder-shown { opacity: 1; height: auto; }
.line.dir .who { font-family: var(--sans); font-size: 12px; color: var(--ink-400); text-align: right; padding-top: 8px; letter-spacing: .1em; }
.line.dir textarea { font-style: italic; font-size: 15px; color: var(--ink-700); background: var(--paper-1); }
.line-tools { position: absolute; right: -6px; top: -14px; z-index: 2; display: flex; gap: 1px; padding: 2px; border-radius: 8px; background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-2); opacity: 0; pointer-events: none; transition: opacity .15s; }
.line:hover .line-tools, .line:focus-within .line-tools { opacity: 1; pointer-events: auto; }
.addbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--sans); }
.kbd-hint { margin-left: auto; font-size: 12px; color: var(--ink-400); }
.checkup { padding: 14px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.checkup-h { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-weight: 700; color: var(--velvet-700); margin-bottom: 6px; }
.checkup-h .i { color: var(--gold-600); }
.ci { position: relative; font-size: 13.5px; line-height: 1.6; padding: 7px 0 7px 16px; border-top: 1px solid var(--paper-3); color: var(--ink-700); }
.ci::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; }
.ci.w::before { background: var(--warn); } .ci.g::before { background: var(--ok); }
.remind { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper-1); font-size: 13px; }
.remind dt { color: var(--gold-700); font-weight: 600; }
.remind dd { margin: 0; color: var(--ink-700); }
.reader { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--r-lg); color: var(--gold-100); background: linear-gradient(135deg, var(--velvet-800), var(--velvet-950)); box-shadow: var(--sh-2); }
.reader-l { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-weight: 700; }
.reader .input { width: auto; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--gold-500); }
.rline { padding: 5px 12px; margin: 2px -12px; border-radius: 8px; font-size: 16.5px; line-height: 1.8; transition: background .3s; }
.rline b { display: inline-block; min-width: 92px; color: var(--velvet-600); }
.rline i { color: var(--ink-500); font-size: 14px; }
.rline.dir { color: var(--ink-500); font-style: italic; font-size: 15px; padding-left: 116px; }
.rline.speaking { background: linear-gradient(90deg, var(--gold-100), #fff7e2); box-shadow: inset 3px 0 0 var(--gold-500); }

.finale { text-align: center; padding: 36px 24px 30px; margin-bottom: 18px; border-radius: var(--r-xl); color: var(--gold-100);
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255,214,140,.35), transparent 70%), linear-gradient(180deg, var(--velvet-700), var(--velvet-950)); box-shadow: var(--sh-3); }
.finale-k { font-size: 13px; letter-spacing: .4em; color: var(--gold-400); margin-top: 4px; }
.finale h2 { font-size: 36px; letter-spacing: .12em; color: #fff4dc; margin: 4px 0 18px; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.stats div { min-width: 92px; padding: 10px 12px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(220,188,108,.2); }
.stats b { display: block; font-family: var(--serif); font-size: 28px; color: #fff4dc; line-height: 1.2; }
.stats span { font-size: 12px; opacity: .75; }
.script-view { padding: 56px 64px; background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-2); font-family: var(--serif); font-size: 16px; line-height: 1.95; }
.script-view h1 { text-align: center; font-size: 32px; letter-spacing: .15em; color: var(--ink-900); }
.sv-by { text-align: center; font-family: var(--sans); font-size: 13.5px; color: var(--ink-500); margin-top: 6px; }
.script-view h3 { text-align: center; font-size: 18px; margin: 32px 0 12px; letter-spacing: .12em; color: var(--ink-900); }
.script-view h3::before, .script-view h3::after { content: "—"; color: var(--gold-500); margin: 0 10px; }
.sv-cast { margin: 0 auto; border-collapse: collapse; }
.sv-cast td { padding: 2px 14px; } .sv-cast td:first-child { font-weight: 700; text-align: right; }
.sv-c { text-align: center; }
.sv-dir { font-style: italic; color: var(--ink-500); margin: 6px 0 6px 2em; }
.sv-c.sv-dir { margin-left: 0; }
.sv-line { margin: 5px 0; }
.sv-line b { color: var(--ink-900); margin-right: 1em; }
.sv-line i { color: var(--ink-500); }
.sv-end { text-align: center; margin-top: 44px; color: var(--ink-500); letter-spacing: .2em; }

/* ---------- 9 文档页 ---------- */
.doc { max-width: 980px; margin: 0 auto; padding: 36px 28px 90px; }
.doc-h { margin-bottom: 12px; }
.doc-h h1 { display: flex; align-items: center; gap: 12px; font-size: 34px; color: var(--velvet-700); margin: 12px 0 6px; }
.doc-h h1 .i { color: var(--gold-600); }
.doc-h p { color: var(--ink-500); }
.doc h2 { font-size: 21px; color: var(--velvet-700); margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--gold-500); }
.doc-ol { margin: 0; padding-left: 22px; } .doc-ol li { margin: 6px 0; } .doc-ol.sm li { margin: 2px 0; }
.table-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.doc table { width: 100%; border-collapse: collapse; background: var(--paper-0); font-size: 14px; }
.doc th { background: var(--velvet-700); color: var(--gold-100); text-align: left; padding: 11px 14px; font-weight: 600; }
.doc td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.doc tbody tr:nth-child(even) td { background: var(--paper-1); }
.td-act { display: flex; gap: 8px; align-items: flex-start; }
.td-act small { color: var(--ink-500); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.lib-grid .tip { margin: 0; }
.lib-card { padding: 18px; }
.lib-art { width: 48px; height: 48px; display: grid; place-items: center; font-size: 28px; border-radius: var(--r); background: var(--paper-1); margin-bottom: 8px; }
.lib-art .art { width: 100%; height: 100%; }
.lib-card h3 { font-size: 18px; margin-bottom: 4px; }
.lib-card p { font-size: 14px; color: var(--ink-700); }
.lib-card .lib-c { margin-top: 8px; font-size: 13px; color: var(--ink-500); padding-top: 8px; border-top: 1px solid var(--paper-3); }

/* ---------- 10 弹层与提示 ---------- */
.toast { position: fixed; top: calc(var(--top-h) + 18px); left: 50%; z-index: 150; display: flex; align-items: center; gap: 14px; min-width: 280px; padding: 12px 22px 12px 14px; border-radius: var(--r-lg);
  color: var(--gold-100); background: linear-gradient(135deg, var(--velvet-800), var(--velvet-950)); border: 1px solid var(--gold-600); box-shadow: var(--sh-3);
  opacity: 0; transform: translate(-50%, -16px) scale(.96); transition: .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast-art { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: radial-gradient(circle, rgba(255,214,140,.35), transparent 70%); }
.toast-art .art { width: 100%; height: 100%; }
.toast-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,162,74,.2); color: var(--gold-400); }
.toast-k { font-size: 11.5px; letter-spacing: .2em; color: var(--gold-400); }
.toast-t { font-family: var(--serif); font-size: 18px; color: #fff; }
.toast-d { font-size: 13px; opacity: .8; }
.modal-bg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(28,6,9,.6); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.modal { position: relative; width: 100%; max-width: 800px; max-height: 86vh; overflow-y: auto; padding: 30px; border-radius: var(--r-xl); background: var(--paper-1); box-shadow: var(--sh-3); animation: popIn .25s var(--ease); }
.modal .script-view { box-shadow: none; padding: 30px 20px; border: 0; background: transparent; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 1; }
.modal-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.modal-h h2 { font-size: 26px; color: var(--velvet-700); }
.modal-h span { color: var(--gold-700); font-weight: 600; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.badge { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--paper-0); border: 1px solid var(--line); }
.badge-art { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 28px; border-radius: 50%; background: var(--paper-2); filter: grayscale(1); opacity: .4; }
.badge-art .art { width: 100%; height: 100%; }
.badge b { display: block; font-family: var(--serif); color: var(--ink-500); }
.badge small { font-size: 12px; color: var(--ink-400); }
.badge.got { border-color: var(--gold-400); background: linear-gradient(135deg, #fffaf0, var(--paper-0)); }
.badge.got .badge-art { filter: none; opacity: 1; background: radial-gradient(circle, var(--gold-100), var(--gold-200)); box-shadow: 0 0 0 2px var(--gold-400); }
.badge.got b { color: var(--velvet-700); }
.badge.got small { color: var(--ink-500); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ---------- 11 幕布与谢幕 ---------- */
.curtain-ov { position: fixed; inset: 0; z-index: 200; overflow: hidden; cursor: pointer; }
.cur-l, .cur-r { position: absolute; top: 0; bottom: 0; width: 51%;
  background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 20%, transparent 80%, rgba(0,0,0,.45)), repeating-linear-gradient(90deg, #4d0e18 0 26px, #85202f 26px 44px, #64172a 44px 60px);
  transition: transform 1.3s cubic-bezier(.65, 0, .35, 1); box-shadow: 0 0 60px rgba(0,0,0,.7); }
.cur-l { left: 0; transform-origin: left; } .cur-r { right: 0; transform-origin: right; }
.cur-valance { position: absolute; top: 0; left: 0; right: 0; height: 70px; z-index: 2; background: radial-gradient(circle at 30px 70px, transparent 28px, #3d0a12 29px) 0 0 / 60px 70px repeat-x; border-bottom: 2px solid var(--gold-500); transition: transform 1.3s ease-in; }
.cur-text { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); text-align: center; color: var(--gold-200); padding: 70px 110px; border-radius: 50%; white-space: nowrap;
  background: radial-gradient(ellipse, rgba(255,226,160,.3), transparent 70%); animation: spotIn .8s ease-out both; transition: opacity .4s; }
.cur-text .k { font-size: 15px; letter-spacing: .5em; }
.cur-text .t { font-family: var(--serif); font-size: 64px; color: #fff4dc; letter-spacing: .3em; margin: 8px -.3em 8px 0; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.cur-text .s { font-size: 16px; letter-spacing: .3em; opacity: .85; }
.cur-text .hint { font-size: 12px; opacity: .4; margin-top: 22px; letter-spacing: .2em; }
.curtain-ov.open { pointer-events: none; }
.curtain-ov.open .cur-l { transform: translateX(-100%) scaleX(.7); }
.curtain-ov.open .cur-r { transform: translateX(100%) scaleX(.7); }
.curtain-ov.open .cur-valance { transform: translateY(-100%); }
.curtain-ov.open .cur-text { opacity: 0; }
@keyframes spotIn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.bow-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: rgba(14,3,5,.9); animation: fadeIn .5s; }
.bow-ov.leave { animation: fadeOut .5s forwards; }
.bow-spot { position: absolute; left: 50%; top: -10%; width: 900px; height: 120%; transform: translateX(-50%);
  background: radial-gradient(ellipse 40% 55% at 50% 62%, rgba(255,230,160,.35), transparent 70%), linear-gradient(180deg, rgba(255,236,190,.18), transparent 70%);
  clip-path: polygon(42% 0, 58% 0, 85% 100%, 15% 100%); animation: spotSwing 6s ease-in-out infinite alternate; }
.bow-box { position: relative; z-index: 2; text-align: center; color: var(--gold-200); animation: rise .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.bow-box .k { letter-spacing: .5em; font-size: 15px; }
.bow-box .t { font-family: var(--serif); font-size: 66px; color: #fff4dc; letter-spacing: .2em; margin: 8px 0 12px; text-shadow: 0 0 40px rgba(255,200,120,.5); }
.bow-box .l { font-size: 18px; margin-bottom: 28px; line-height: 1.8; }
.bow-box .l b { color: #ffd98a; }
.bow-box .l small { font-size: 14px; opacity: .8; }
.bow-box .btn { height: 46px; padding: 0 30px; font-size: 16px; }
.petal { position: absolute; top: -40px; z-index: 1; pointer-events: none; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(60px, 110vh) rotate(540deg); opacity: .7; } }
@keyframes spotSwing { from { transform: translateX(-52%) rotate(-3deg); } to { transform: translateX(-48%) rotate(3deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.92); } }
.bow-ov.still .bow-spot { animation: none; }

/* ---------- 12 课堂模式 / 响应式 / 动效偏好 ---------- */
body.classroom { --fs: 17.5px; }
body.classroom .step-title { font-size: 40px; }
body.classroom .mentor-say { font-size: 16.5px; }
body.classroom .ws { grid-template-columns: 236px minmax(0, 1fr) 370px; }
@media (max-width: 1280px) { .ws { grid-template-columns: 224px minmax(0, 1fr) 300px; } .main { padding: 28px 28px 80px; } }
@media (max-width: 1080px) {
  .ws, body.classroom .ws { grid-template-columns: 210px minmax(0, 1fr); }
  .side-r { grid-column: 1 / -1; position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .tb-btn span, .tb-switch span:not(.sw) { display: none; }
}
@media (max-width: 860px) {
  .ws, body.classroom .ws { grid-template-columns: 1fr; }
  .side-l { position: static; height: auto; }
  .deck, .opts, .opts-3, .three, .grid2, .subx-pair, .rel-side { grid-template-columns: 1fr; }
  .forge { grid-template-columns: 1fr; } .forge-vs { padding: 10px 0; }
  .beat { grid-template-columns: 1fr; }
  .plant { grid-template-columns: 1fr; } .plant-arrow { display: none; }
  .hero h1 { font-size: 42px; }
  .home-curtain { width: 8%; }
  .paper { padding: 30px 22px; } .line .who { width: 80px; }
  .brand-name, .play-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- 13 打印 ---------- */
@media print {
  .topbar, .side-l, .side-r, .no-print, .finale, .step-head, .step-nav, .card { display: none !important; }
  body { background: #fff; }
  .ws { display: block; background: none; }
  .main { padding: 0; max-width: none; }
  .script-view { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- 人物头像：放入的图片自动裁成圆形（不论是否去过背景） ---------- */
.ccard-av, .wizard-av, .mentor-av, .forge-who > .art, .hot-seat > .art, .rl-art .art { border-radius: 50%; overflow: hidden; }
.ccard-av img, .wizard-av img, .mentor-av img, .forge-who > .art img, .hot-seat > .art img, .rl-art img { object-fit: cover; }
.hero-mark .art:not(.fb) { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--gold-500), 0 0 30px rgba(255,200,110,.35); }
.hero-mark .art img { object-fit: cover; }

/* ---------- 有插画时：半身像以大幅肖像展示，道具清楚可见 ---------- */
.ccard:has(.ccard-av .art:not(.fb)) { padding-top: 12px; }
.ccard-av:has(.art:not(.fb)) { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r); margin-bottom: 12px;
  background: radial-gradient(ellipse at 50% 35%, #6a2a1e, var(--velvet-950)); box-shadow: inset 0 0 0 1px rgba(201,162,74,.5), var(--sh-1); }
.ccard-av .art:not(.fb) { width: 100%; height: 100%; }
.mentor-av { width: 56px; height: 56px; }
.mentor-av:has(.art:not(.fb)), .wizard-av:has(.art:not(.fb)), .forge-who > .art:not(.fb) { background: radial-gradient(circle at 50% 35%, #6a2a1e, var(--velvet-950)); }
.wizard-av { width: 64px; height: 64px; }
.forge-who > .art { width: 72px; height: 72px; }
.hero-mark { width: 190px; height: 190px; }
.hero-mark .art:not(.fb) { width: 180px; height: 180px; background: radial-gradient(circle at 50% 35%, #6a2a1e, var(--velvet-950)); }
.hot-seat > .art:not(.fb) { width: 170px; height: 170px; border-radius: var(--r-lg); box-shadow: 0 0 0 2px var(--gold-500), 0 10px 30px rgba(0,0,0,.5); background: var(--velvet-950); }

/* ---------- 原型插画：小图标位统一圆形；人物卡上标明“原型”，避免误认为是学生的角色本人 ---------- */
.arche-art { width: 52px; height: 52px; }
.arche-art:has(.art:not(.fb)), .lib-art:has(.art:not(.fb)) { border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--gold-400); }
.arche-art .art img, .lib-art .art img { object-fit: cover; }
.ccard-av { position: relative; }
.av-tag { display: none; position: absolute; left: 8px; bottom: 8px; padding: 1px 9px; border-radius: var(--r-pill); font-size: 11.5px; color: var(--gold-100); background: rgba(28,6,9,.72); backdrop-filter: blur(2px); }
.ccard-av:has(.art:not(.fb)) .av-tag { display: block; }

/* ---------- 首页背景插画（assets/art/home-bg.png）：有图时替代 CSS 画的幕布，中间压暗保证文字清楚 ---------- */
.home > .home-bg { z-index: 0; }
.home > .home-bg img { object-position: center 40%; }
.home-shade { display: none; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 58% at 50% 46%, rgba(20,4,7,.62) 0%, rgba(20,4,7,.4) 55%, transparent 100%),
    linear-gradient(180deg, rgba(20,4,7,.55) 0%, transparent 22%, transparent 70%, rgba(20,4,7,.75) 100%); }
.home:has(.home-bg:not(.fb)) .home-shade { display: block; }
.home:has(.home-bg:not(.fb)) .home-curtain, .home:has(.home-bg:not(.fb)) .home-valance { display: none; }
.home:has(.home-bg:not(.fb)) .shelf .proj { backdrop-filter: none; }

/* ---------- 左上角 logo（assets/art/logo.png）：有图时替代金色方块里的面具图标 ---------- */
.brand-art { width: 100%; height: 100%; }
.brand-art.fb { display: none; }
.brand-mark:has(.brand-art:not(.fb)) { width: 40px; height: 40px; background: none; box-shadow: none; }
.brand-mark:has(.brand-art:not(.fb)) > .i { display: none; }
.brand-art img { filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.hot-chair .art:not(.fb) { width: 72px; height: 72px; }
.hot-chair:has(.art:not(.fb)) { margin-top: -6px; opacity: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }

/* ---------- 自创人物：男 / 女两种形象 ---------- */
.custom-figs { display: grid; grid-template-columns: 168px 168px minmax(0, 1fr); gap: 10px; align-items: start; }
.custom-figs .field { margin: 0; }
@media (max-width: 860px) { .custom-figs { grid-template-columns: 1fr 1fr; } .custom-figs .field { grid-column: 1 / -1; } }
/* 设定卡插画：按原图比例显示 */
.sc-art:has(.art:not(.fb)) { height: auto; aspect-ratio: 2.35 / 1; }

/* =========================================================
   幕次编号：漂亮的衬线阿拉伯数字
   ========================================================= */
.seal { font-family: "Bodoni 72", "Didot", "Playfair Display", "Baskerville", Georgia, serif; font-style: italic; font-weight: 700;
  font-size: 18px; line-height: 1; padding-bottom: 1px; font-variant-numeric: lining-nums; }
.seal-sm { font-size: 15px; }
.seal-xs { font-size: 13px; }

/* =========================================================
   代码画的幕布：按卡背插画的配色更新（砖红丝绒 + 古金流苏 + 垂幔）
   ========================================================= */
:root {
  --drape-deep: #1e0b08; --drape-shadow: #3d120c; --drape: #6a1d14; --drape-lit: #8a2a1c; --drape-hi: #a3382a;
  --fringe: #b8822f; --fringe-dk: #6e4416; --fringe-hi: #e0b45c;
}
/* 丝绒褶皱：柔和的明暗过渡，而不是硬条纹 */
.cur-l, .cur-r, .home-curtain {
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 18%, transparent 72%, rgba(0,0,0,.5) 100%),
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255,150,90,.12), transparent 70%),
    repeating-linear-gradient(90deg, var(--drape-deep) 0, var(--drape-shadow) 6px, var(--drape) 13px, var(--drape-lit) 19px, var(--drape-hi) 22px, var(--drape-lit) 25px, var(--drape) 30px, var(--drape-shadow) 36px, var(--drape-deep) 42px);
}
.cur-l, .cur-r { overflow: hidden; }
.cur-l { box-shadow: inset -24px 0 40px rgba(0,0,0,.45), 0 0 60px rgba(0,0,0,.7); }
.cur-r { box-shadow: inset 24px 0 40px rgba(0,0,0,.45), 0 0 60px rgba(0,0,0,.7); }
/* 幕布下摆：一道红金饰带 + 一排金流苏 */
.cur-l::after, .cur-r::after, .home-curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px;
  background:
    linear-gradient(180deg, var(--fringe-dk) 0 2px, var(--fringe) 2px 5px, #7a1f16 5px 11px, var(--fringe) 11px 14px, var(--fringe-dk) 14px 15px, transparent 15px),
    linear-gradient(180deg, transparent 15px, rgba(0,0,0,0) 15px, rgba(0,0,0,.35) 100%),
    repeating-linear-gradient(90deg, var(--fringe-hi) 0 1px, var(--fringe) 1px 3px, var(--fringe-dk) 3px 5px);
  -webkit-mask: linear-gradient(180deg, #000 15px, transparent 15px), repeating-linear-gradient(90deg, #000 0 4px, rgba(0,0,0,.75) 4px 5px);
  -webkit-mask-composite: source-over; mask-composite: add; }
/* 顶部垂幔：浅而宽的弧形褶兜，彼此相连，下沿镶金流苏；交接处垂一枚金穗 */
.cur-valance, .home-valance { height: 92px; border-bottom: 0;
  background:
    radial-gradient(ellipse 62% 78% at 50% 0, transparent 0 88%, var(--fringe-hi) 88.5%, var(--fringe) 90%, var(--fringe-dk) 95%, transparent 96%) -110px 0 / 220px 92px repeat-x,
    radial-gradient(ellipse 62% 78% at 50% 0, var(--drape-lit) 0, var(--drape) 45%, var(--drape-shadow) 75%, var(--drape-deep) 88%, transparent 88.5%) -110px 0 / 220px 92px repeat-x,
    linear-gradient(180deg, var(--drape-deep) 0 18px, transparent 18px);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.home-valance { height: 70px; background-size: 170px 70px, 170px 70px, auto; background-position: -85px 0, -85px 0, 0 0; }
.cur-valance::after { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 64px;
  background:
    radial-gradient(circle at 50% 7px, var(--fringe-hi) 0 5px, var(--fringe) 6px 8px, transparent 9px) 0 0 / 220px 64px repeat-x,
    radial-gradient(ellipse 50% 60% at 50% 100%, var(--fringe) 0, var(--fringe-dk) 90%, transparent 100%) 0 30px / 220px 34px repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent 0 101px, #000 101px 119px, transparent 119px) 0 0 / 220px 100% repeat-x;
          mask: linear-gradient(90deg, transparent 0 101px, #000 101px 119px, transparent 119px) 0 0 / 220px 100% repeat-x;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
/* 首页的代码幕布（没有首页背景插画时显示）也换成同样的丝绒 */
.home-curtain { border-radius: 0; box-shadow: inset -30px 0 50px rgba(0,0,0,.5), 0 0 60px rgba(0,0,0,.6); }


/* ---------- 第六幕：场景卡的“对应结构 / 伏笔” ---------- */
.scene-links { margin-bottom: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--paper-1); }
.scene-links .chips { margin-top: 0; }
.scene-links .chips + .chips, .scene-links .note { margin-top: 8px; }
.beat-notes { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--ink-700); }
.beat-notes li { padding: 2px 0; }
.beat-notes b { display: inline-block; min-width: 76px; color: var(--gold-700); font-weight: 600; }
.plant-chip.pc-plant { background: #eef6ef; border-color: var(--ok-line); color: var(--ok); }
.plant-chip.pc-payoff { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

/* ---------- 第七幕：说话人头像 + 本场速查 ---------- */
.line .who { display: flex; align-items: center; gap: 6px; }
.who-av { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--gold-400); background: var(--velvet-900); }
.who-av .art { width: 100%; height: 100%; font-size: 15px; }
.who-av .art img { object-fit: cover; }
.who-av.empty { background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.line .who select { min-width: 0; flex: 1; }
.line .who { width: 132px; }
.brief { padding: 14px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); margin-bottom: 10px; }
.brief-c { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--paper-3); font-size: 13px; }
.brief-c:first-of-type { border-top: 0; }
.brief-c b { font-family: var(--serif); font-size: 15px; color: var(--ink-900); }
.brief-c small { display: block; color: var(--ink-500); font-size: 11.5px; margin-bottom: 2px; }
.brief-c p, .brief-s p { margin: 2px 0; line-height: 1.5; color: var(--ink-700); }
.brief-c p span, .brief-s p span { display: inline-block; min-width: 34px; margin-right: 6px; font-size: 11.5px; color: var(--gold-700); font-weight: 600; }
.brief-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--gold-400); background: var(--velvet-900); display: grid; place-items: center; }
.brief-av .art { width: 100%; height: 100%; font-size: 20px; }
.brief-av .art img { object-fit: cover; }
.brief-s { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 13px; }
.brief .link { margin-top: 8px; font-size: 13px; }

/* ---------- 人物速查抽屉 ---------- */
.drawer-bg { place-items: stretch end; padding: 0; }
.drawer { width: min(520px, 100vw); height: 100vh; overflow-y: auto; background: var(--paper-1); box-shadow: var(--sh-3); padding: 20px 22px 40px; animation: drawerIn .25s var(--ease); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.drawer-h h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; color: var(--velvet-700); }
.dc { margin-top: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.dc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dc-h b { display: block; font-family: var(--serif); font-size: 17px; }
.dc-h small { color: var(--ink-500); font-size: 12px; }
.dc-f { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dc-f label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--gold-700); font-weight: 600; }
.dc-f label.wide { grid-column: 1 / -1; }
.dc-f .input { font-size: 13.5px; padding: 6px 9px; font-weight: 400; color: var(--ink-900); }

/* =========================================================
   小剧场：选角 + 舞台
   ========================================================= */
.act-face { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--velvet-900); box-shadow: 0 0 0 2px var(--gold-400); }
.act-face img { width: 100%; height: 100%; object-fit: cover; }
.act-face.empty { background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.act-face.lg { width: 92px; height: 92px; box-shadow: 0 0 0 3px var(--gold-400), var(--sh-2); }
.casting { padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.casting-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.casting-h h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--velvet-700); }
.cast-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cast-slot { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--paper-1); border: 1px solid var(--line); opacity: .7; transition: .15s; }
.cast-slot.in { opacity: 1; background: #fff; border-color: var(--gold-400); }
.cast-slot:hover { border-color: var(--velvet-500); opacity: 1; }
.cs-t { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.cs-t b { font-family: var(--serif); font-size: 14.5px; color: var(--ink-900); }
.cs-t small { font-size: 12px; color: var(--ink-500); }
.cs-in { position: absolute; top: -7px; right: 8px; font-style: normal; font-size: 10.5px; padding: 0 6px; border-radius: 8px; background: var(--velvet-600); color: #fff; }
.actor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 14px; }
.actor-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; text-align: left; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); transition: .15s; }
.actor-card:hover { border-color: var(--gold-400); transform: translateY(-2px); box-shadow: var(--sh-2); }
.actor-card.on { border-color: var(--velvet-500); box-shadow: 0 0 0 2px rgba(143,35,55,.2); }
.ac-b { flex: 1; min-width: 0; }
.ac-n { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ac-n b { font-family: var(--serif); font-size: 19px; color: var(--ink-900); }
.ac-n small { font-size: 12px; color: var(--ink-500); }
.actor-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 0; font-size: 13px; line-height: 1.5; }
.actor-card dt { color: var(--gold-700); font-weight: 600; }
.actor-card dd { margin: 0; color: var(--ink-700); }
.ac-from { margin-top: 6px; font-size: 12px; color: var(--ink-400); font-style: italic; }
.ac-taken { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--warn); }
.actor-card .tag { margin-top: 6px; }

.stage-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); background: var(--velvet-950); }
.stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; cursor: pointer; user-select: none; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-actors { position: absolute; inset: 0; }
.stage-actor { position: absolute; bottom: 20%; height: calc(46% * var(--h)); transform: translateX(-50%); transition: opacity .6s, filter .4s, transform .4s var(--ease); filter: brightness(.82) saturate(.9); transform-origin: 50% 100%; }
.stage-actor img { height: 100%; width: auto; display: block; filter: drop-shadow(0 10px 8px rgba(20,5,3,.55)); }
.stage-actor.speaking { filter: brightness(1.08) saturate(1.05); transform: translateX(-50%) translateY(3%) scale(1.05); z-index: 2; }
.stage-actor.speaking::before { content: ""; position: absolute; left: 50%; bottom: -6%; width: 170%; height: 115%; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 60%, rgba(255,226,160,.42), transparent 70%); pointer-events: none; }
.stage-actor.off { opacity: 0; transform: translateX(-50%) translateY(4%); }
.sa-tag { position: absolute; left: 50%; top: 102%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; padding: 1px 9px; border-radius: var(--r-pill); background: rgba(28,6,9,.72); color: var(--gold-100); opacity: 0; transition: opacity .3s; }
.sa-tag b { color: #ffe1a0; font-weight: 600; }
.stage:not(.playing) .sa-tag, .stage.ended .sa-tag, .stage-actor.speaking .sa-tag { opacity: 1; }
.stage-night, .stage-dark, .stage-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.stage-night { background: radial-gradient(ellipse 50% 60% at 50% 55%, rgba(30,40,90,.15), rgba(10,15,45,.6)); mix-blend-mode: multiply; }
.stage.night .stage-night { opacity: 1; }
.stage-dark { background: rgba(4,2,2,.86); }
.stage.dark .stage-dark { opacity: 1; }
.stage-flash { background: #f3f0ff; transition: none; }
.stage.flash .stage-flash { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .85; } 18% { opacity: 0; } 28% { opacity: .5; } 100% { opacity: 0; } }
.stage-bubble { position: absolute; top: 10%; max-width: 46%; min-width: 180px; transform: translateX(-50%) translateY(6px); padding: 12px 16px; border-radius: 14px; z-index: 5;
  background: rgba(255,251,240,.97); color: var(--ink-900); font-family: var(--serif); font-size: 17px; line-height: 1.6; box-shadow: 0 10px 24px rgba(0,0,0,.4); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.stage-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.stage-bubble.show { opacity: 1; transform: translateX(-50%); }
.stage-bubble b { display: block; font-size: 12.5px; color: var(--velvet-600); font-family: var(--sans); letter-spacing: .1em; }
.stage-bubble i { color: var(--ink-500); font-size: 14px; }
.stage-caption { position: absolute; left: 50%; bottom: 4%; max-width: 70%; transform: translateX(-50%); padding: 6px 16px; border-radius: 8px; z-index: 5; background: rgba(20,5,6,.72); color: var(--gold-100); font-family: var(--serif); font-style: italic; font-size: 15px; text-align: center; opacity: 0; transition: opacity .4s; pointer-events: none; }
.stage-caption.show { opacity: 1; }
.stage-curtain-call { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); text-align: center; color: #fff3d6; opacity: 0; transition: opacity .8s .4s; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.stage-curtain-call b { display: block; font-family: var(--serif); font-size: 42px; letter-spacing: .4em; margin-right: -.4em; }
.stage-curtain-call span { font-size: 14px; letter-spacing: .2em; }
.stage.ended .stage-curtain-call { opacity: 1; }
.stage-actor.bow { animation: bow 1.6s var(--ease) forwards; }
@keyframes bow { 0% { transform: translateX(-50%); } 35% { transform: translateX(-50%) translateY(2%) rotate(0) scaleY(.9); } 60% { transform: translateX(-50%) translateY(2%) scaleY(.9); } 100% { transform: translateX(-50%); } }
.stage.ended .stage-actor { filter: brightness(1.05); }
.stage-empty { position: absolute; left: 50%; top: 45%; transform: translateX(-50%); padding: 10px 18px; border-radius: 10px; background: rgba(20,5,6,.75); color: var(--gold-100); font-size: 14px; }
.stage-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; background: linear-gradient(180deg, var(--velvet-800), var(--velvet-950)); color: var(--gold-100); }
.stage-ctl .btn-ghost { --fg: var(--gold-100); }
.stage-ctl .btn-ghost:hover { --bg: rgba(255,255,255,.08); --fg: #fff; }
.stage-voice { margin-left: auto; }

/* =========================================================
   每一幕开头的插画横幅
   ========================================================= */
.act-hero { position: relative; height: 190px; margin: -6px 0 22px; border-radius: var(--r-lg); overflow: hidden; background: var(--velvet-950); box-shadow: var(--sh-2); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,4,6,.78) 0%, rgba(20,4,6,.25) 45%, rgba(20,4,6,.05) 100%), linear-gradient(0deg, rgba(20,4,6,.45), transparent 50%); pointer-events: none; }
.hero-cap { position: absolute; left: 22px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--gold-100); }
.hero-cap b { font-family: var(--serif); font-size: 22px; color: #fff3d6; letter-spacing: .1em; }
.hero-cap small { font-size: 12.5px; letter-spacing: .2em; opacity: .8; }
.hero-row { position: absolute; z-index: 1; right: 18px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; max-width: 72%; flex-wrap: nowrap; }
.hero-row .hero-pic { flex: none; display: grid; place-items: center; }
.hero-row .art { width: 100%; height: 100%; }
.hero-row.faces .hero-pic { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--gold-400), 0 4px 10px rgba(0,0,0,.5); background: var(--velvet-900); }
.hero-row.faces .art img { object-fit: cover; }
.hero-row.faces:has(.hero-pic:nth-child(9)) .hero-pic { width: 48px; height: 48px; margin-left: -6px; }
.hero-row.linked::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed rgba(220,188,108,.7); z-index: -1; }
.hero-row.icons .hero-pic { width: 110px; height: 110px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.hero-actors { position: absolute; z-index: 1; right: 6%; bottom: 0; height: 92%; display: flex; align-items: flex-end; gap: 4px; }
.hero-actors img { height: calc(100% * var(--h)); width: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
@media (max-width: 860px) { .hero-row { display: none; } .hero-actors { display: none; } }

/* =========================================================
   首演海报
   ========================================================= */
.poster { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; background: var(--velvet-950); color: var(--gold-100); font-family: var(--serif); container-type: inline-size;
  box-shadow: inset 0 0 0 1px rgba(220,188,108,.6), inset 0 0 0 6px var(--velvet-950), inset 0 0 0 7px rgba(220,188,108,.45); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.poster-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.poster-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,4,6,.55) 0%, rgba(20,4,6,.15) 30%, rgba(20,4,6,.35) 55%, rgba(20,4,6,.92) 78%, rgba(20,4,6,.97) 100%); }
.poster-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 7cqw 7cqw 6cqw; text-align: center; }
.po-k { font-size: 2.6cqw; letter-spacing: .5em; color: var(--gold-400); margin-right: -.5em; }
.po-rule { width: 30%; height: 1px; margin: 2.5cqw 0; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }
.po-t { font-size: 11cqw; line-height: 1.15; color: #fff3d6; letter-spacing: .06em; text-shadow: 0 4px 20px rgba(0,0,0,.7); margin: 0; }
.po-tag { margin-top: 3cqw; max-width: 86%; font-size: 3.4cqw; line-height: 1.6; color: var(--gold-200); font-style: italic; }
.po-cast { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 3cqw 4cqw; }
.po-m { display: flex; flex-direction: column; align-items: center; width: 17cqw; }
.po-face { display: grid; place-items: center; width: 15cqw; height: 15cqw; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 .5cqw var(--gold-400); background: var(--velvet-900); font-size: 7cqw; }
.po-face img, .po-face .art, .po-face .art img { width: 100%; height: 100%; object-fit: cover; }
.po-m b { margin-top: 1.5cqw; font-size: 3.2cqw; color: #fff3d6; font-weight: 700; }
.po-m small { font-size: 2.4cqw; color: var(--gold-200); opacity: .85; }
.po-foot { display: flex; justify-content: center; gap: 6cqw; width: 100%; margin-top: 5cqw; padding-top: 3cqw; border-top: 1px solid rgba(220,188,108,.4); }
.po-foot div { display: flex; flex-direction: column; gap: .5cqw; }
.po-foot span { font-size: 2.2cqw; letter-spacing: .3em; color: var(--gold-400); }
.po-foot b { font-size: 3.2cqw; color: #fff3d6; font-weight: 600; }

/* =========================================================
   节目单
   ========================================================= */
.programme-sheet { background: var(--paper-0); color: var(--ink-900); padding: 44px 48px; font-family: var(--serif); line-height: 1.8; border: 1px solid var(--line);
  box-shadow: inset 0 0 0 8px var(--paper-0), inset 0 0 0 9px var(--gold-400); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pg-h { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--gold-400); margin-bottom: 18px; }
.pg-k { font-size: 13px; letter-spacing: .5em; color: var(--gold-700); margin-right: -.5em; }
.pg-h h1 { font-size: 34px; color: var(--velvet-700); margin: 6px 0; letter-spacing: .08em; }
.pg-h p { font-family: var(--sans); font-size: 13px; color: var(--ink-500); }
.programme-sheet section { margin-top: 18px; }
.programme-sheet h3 { font-size: 15px; letter-spacing: .3em; color: var(--velvet-600); margin-bottom: 6px; }
.programme-sheet h3::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 4px; background: var(--gold-400); }
.pg-syn, .pg-note { font-size: 16px; }
.pg-note { font-style: italic; color: var(--ink-700); }
.pg-cast { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.pg-m { display: flex; gap: 12px; align-items: flex-start; }
.pg-m .po-face { width: 54px; height: 54px; flex: none; box-shadow: 0 0 0 2px var(--gold-400); font-size: 26px; }
.pg-m b { font-size: 17px; }
.pg-m small { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-500); }
.pg-actor { margin: 2px 0 0; font-size: 14px; color: var(--velvet-600); }
.pg-actor span { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-500); }
.pg-scenes { margin: 0; padding-left: 0; list-style: none; }
.pg-scenes li { display: flex; gap: 14px; padding: 4px 0; border-bottom: 1px dotted var(--line-strong); }
.pg-scenes li span { font-family: var(--sans); font-size: 13px; color: var(--ink-500); }
.pg-f { margin-top: 26px; text-align: center; font-size: 13px; letter-spacing: .2em; color: var(--ink-400); }

/* 终幕里的海报区 */
.showcase { margin: 0 0 18px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.sc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 10px; }
.sc-cell { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sc-thumb { width: 100%; max-width: 300px; cursor: zoom-in; transition: transform .2s var(--ease); }
.sc-thumb:hover { transform: translateY(-3px); }
.sc-thumb.pg { height: 450px; overflow: hidden; border-radius: 6px; box-shadow: var(--sh-2); -webkit-mask: linear-gradient(180deg, #000 80%, transparent); mask: linear-gradient(180deg, #000 80%, transparent); }
.sc-thumb.pg .programme-sheet { transform: scale(.55); transform-origin: top left; width: 182%; }
.sc-thumb .poster { box-shadow: var(--sh-3), inset 0 0 0 1px rgba(220,188,108,.6), inset 0 0 0 6px var(--velvet-950), inset 0 0 0 7px rgba(220,188,108,.45); }
.sheet-view { max-width: 560px; margin: 0 auto; }
.sheet-view .programme-sheet { padding: 34px 36px; }

/* 只打印海报或节目单 */
#print-root { display: none; }
@media print {
  body.print-only > *:not(#print-root) { display: none !important; }
  body.print-only #print-root { display: block; }
  body.print-only .poster { width: 17cm; margin: 0 auto; box-shadow: none; }
  body.print-only .programme-sheet { border: 0; box-shadow: none; padding: 0; }
  @page { margin: 1.2cm; }
}


/* =========================================================
   选角会：九位演员站在台上
   ========================================================= */
.audition { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.aud-h { padding: 16px 18px 6px; }
.aud-h h3 { display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--velvet-700); }
.aud-h p { margin-top: 4px; font-size: 14px; color: var(--ink-700); }
.aud-roles { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 18px 14px; }
.aud-role { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--paper-1); border: 1.5px solid var(--line); transition: .15s; }
.aud-role:hover { border-color: var(--gold-400); }
.aud-role.cur { background: #fff; border-color: var(--velvet-500); box-shadow: 0 0 0 3px rgba(143,35,55,.15); }
.aud-role .act-face .art { width: 100%; height: 100%; font-size: 22px; }
.aud-role .act-face .art img { object-fit: cover; }
.aud-stage { cursor: default; }
.aud-actor { bottom: 19%; height: calc(44% * var(--h)); background: none; border: 0; padding: 0; cursor: pointer; filter: brightness(.86) saturate(.92); }
.aud-actor:hover { filter: brightness(1.05); transform: translateX(-50%) translateY(-2%); z-index: 2; }
.aud-actor.picked { filter: brightness(1.12) saturate(1.05); transform: translateX(-50%) translateY(-3%) scale(1.06); z-index: 3; }
.aud-actor.picked::before { content: ""; position: absolute; left: 50%; bottom: -6%; width: 190%; height: 118%; transform: translateX(-50%); z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 60%, rgba(255,226,160,.5), transparent 70%); pointer-events: none; }
.aud-actor.taken { filter: brightness(.62) saturate(.7); }
.aud-actor.taken.picked, .aud-actor.taken:hover { filter: brightness(1); }
.aud-actor .sa-tag { opacity: 1; font-size: 10.5px; padding: 1px 7px; }
.aud-actor.taken .sa-tag { background: rgba(115,27,44,.9); }
.aud-cue { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); padding: 6px 16px; border-radius: var(--r-pill); background: rgba(20,5,6,.72); color: var(--gold-100); font-size: 14px; white-space: nowrap; }
.aud-cue b { color: #ffe1a0; }
.aud-panel { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; min-height: 96px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-1), var(--paper-0)); }
.aud-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 0; font-size: 14px; line-height: 1.55; }
.aud-panel dt { color: var(--gold-700); font-weight: 600; }
.aud-panel dd { margin: 0; color: var(--ink-700); }
.aud-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; flex: none; max-width: 240px; text-align: right; }
.aud-hint { display: flex; align-items: center; gap: 8px; color: var(--ink-500); font-size: 14px; margin: auto 0; }
.aud-foot { display: flex; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.casting-h .btn { margin-left: auto; }
@media (max-width: 860px) { .aud-panel { flex-direction: column; } .aud-act { margin-left: 0; align-items: flex-start; } }


/* ---------- 小剧场：设定卡画在后幕上 ---------- */
.stage-backdrop { position: absolute; left: 22.5%; right: 22.5%; top: 23.5%; bottom: 31%; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent) , linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.stage-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .9; filter: sepia(.18) saturate(.9) brightness(.92); }
.stage-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,15,8,.35), transparent 30%, transparent 75%, rgba(40,15,8,.3)); }

/* ---------- 演员手记 ---------- */
.stage-notes { display: none; padding: 14px 16px 18px; background: var(--paper-1); }
.stage-notes.show { display: block; animation: popIn .4s var(--ease); }
.notes-h { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--velvet-700); margin-bottom: 10px; }
.notes-h .i { color: var(--gold-600); align-self: center; }
.notes-h span { font-family: var(--sans); font-weight: 400; font-size: 12.5px; color: var(--ink-500); }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.note-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.note-card b { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink-900); }
.note-card b small { margin-left: 6px; font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--ink-500); }
.note-card p { margin-top: 2px; font-size: 13.5px; line-height: 1.6; color: var(--ink-700); }

/* ---------- 首页书架：海报封面 ---------- */
.shelf-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.proj { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.proj-cover { position: relative; background: var(--velvet-950); }
.proj-cover .poster { border-radius: 0; }
.proj-go { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: var(--gold-500); color: var(--velvet-900); opacity: 0; transform: translateY(6px); transition: .2s var(--ease); }
.proj:hover .proj-go { opacity: 1; transform: none; }
.proj-info { padding: 12px 14px 14px; }
.proj-info h3 { font-size: 16px; }
.proj-info .proj-meta { margin: 2px 0 10px; }

/* ---------- 班级作品墙 ---------- */
.wall-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 20px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.wall-card { cursor: pointer; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-2); transition: transform .2s var(--ease), box-shadow .2s; }
.wall-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.wall-card .poster { border-radius: 0; }
.wall-info { padding: 10px 12px 12px; }
.wall-info > b { display: block; font-family: var(--serif); font-size: 15.5px; color: var(--velvet-700); }
.wall-info > small { color: var(--ink-500); font-size: 12px; }
.wall-meta { font-size: 12px; color: var(--ink-500); margin: 4px 0 6px; }
.wall-score { display: flex; align-items: center; gap: 3px; font-size: 12px; }
.wall-score i { width: 14px; height: 6px; border-radius: 3px; background: var(--paper-3); }
.wall-score i.s1 { background: #e3b27a; } .wall-score i.s2 { background: var(--gold-400); } .wall-score i.s3 { background: var(--ok); }
.wall-score b { margin-left: auto; color: var(--velvet-600); }
.wall-detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.wd-left { position: sticky; top: 0; }
.wd-right h2 { font-size: 24px; color: var(--velvet-700); }
.wd-rubric { width: 100%; border-collapse: collapse; font-size: 14px; }
.wd-rubric th { text-align: left; width: 60px; padding: 5px 0; font-family: var(--serif); color: var(--ink-900); }
.wd-rubric td { padding: 4px; }
.wd-opt { width: 100%; padding: 6px 0; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper-1); font-size: 13px; color: var(--ink-700); }
.wd-opt:hover { border-color: var(--gold-400); }
.wd-opt.on { background: var(--velvet-600); border-color: var(--velvet-600); color: #fff; }
.wd-ref p { padding: 8px 12px; margin-bottom: 6px; border-radius: var(--r-sm); background: var(--paper-1); font-size: 14px; }
.wd-script .script-view { padding: 24px; box-shadow: none; max-height: 520px; overflow-y: auto; }
.modal:has(.wall-detail) { max-width: 1000px; }
@media (max-width: 860px) { .wall-detail { grid-template-columns: 1fr; } .wd-left { position: static; max-width: 260px; } }

.hero-demo { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 16px; border-radius: var(--r-pill); font-size: 14px; color: var(--gold-200); border: 1px solid rgba(220,188,108,.35); background: rgba(20,4,6,.35); transition: .15s; }
.hero-demo:hover { color: #fff3d6; border-color: var(--gold-400); background: rgba(20,4,6,.55); }
.wd-rubric td { width: 30%; }

/* =========================================================
   首页重写：一个标题、一句话、一个按钮、三张图
   ========================================================= */
.home-inner { padding-top: 64px; }
.hero-mark { width: 150px; height: 150px; margin-bottom: 4px; }
.hero-mark .art:not(.fb) { width: 140px; height: 140px; }
.hero h1 { font-size: 64px; }
.hero-sub { font-family: var(--serif); font-size: 22px; letter-spacing: .12em; margin: 10px 0 30px; color: #f4e2b8; opacity: 1; }
.hero-demo { margin-top: 14px; border: 0; background: none; padding: 4px 6px; font-size: 14px; letter-spacing: .1em; color: var(--gold-200); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(220,188,108,.45); }
.hero-demo:hover { background: none; color: #fff3d6; text-decoration-color: var(--gold-400); }
.hero-steps { list-style: none; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 46px auto 0; padding: 0; }
.hero-steps li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-steps b { margin-top: 10px; font-family: var(--serif); font-size: 17px; letter-spacing: .15em; color: #fff3d6; }
.hero-steps small { font-size: 12.5px; color: var(--gold-200); opacity: .75; }
.hs-arrow { color: var(--gold-400); opacity: .6; padding-bottom: 46px; }
.hs-arrow .i { width: 22px; height: 22px; }
.hs-pic { position: relative; display: block; width: 168px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--velvet-900);
  box-shadow: 0 0 0 1px rgba(220,188,108,.55), 0 14px 30px -10px rgba(0,0,0,.7); transition: transform .3s var(--ease); }
.hero-steps li:hover .hs-pic { transform: translateY(-4px) rotate(-1deg); }
.hs-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hs-faces { display: flex; align-items: center; justify-content: center; gap: 0; background: radial-gradient(circle at 50% 40%, #6a2a1e, var(--velvet-950)); }
.hs-faces img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold-400), 0 4px 10px rgba(0,0,0,.5); margin: 0 -6px; }
.hs-faces img:nth-child(2) { width: 72px; height: 72px; z-index: 1; }
.hs-stage .hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hs-stage .hs-actor { position: absolute; bottom: 12%; height: 62%; }
.hs-stage .hs-actor:nth-of-type(2) { left: 20%; } .hs-stage .hs-actor:nth-of-type(3) { left: 44%; } .hs-stage .hs-actor:nth-of-type(4) { left: 66%; }
.shelf { margin-top: 64px; }
.home-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(220,188,108,.18); }
.home-links button { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gold-200); opacity: .75; transition: opacity .15s; }
.home-links button:hover { opacity: 1; color: #fff3d6; }
.home-links .i { width: 15px; height: 15px; }
@media (max-width: 860px) { .hs-arrow { display: none; } .hero-steps { flex-wrap: wrap; } .hs-pic { width: 140px; height: 94px; } }
.hero-steps b, .hero-steps small, .hero-sub, .hero-demo, .home-links button { text-shadow: 0 1px 6px rgba(10,2,3,.9), 0 0 2px rgba(10,2,3,.8); }
.hero-steps small { opacity: .95; }

/* ---------- 新手引导 ---------- */
.tour-ov { position: fixed; inset: 0; z-index: 250; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(14,3,5,.72), 0 0 0 2px var(--gold-400), 0 0 30px rgba(255,214,140,.45); transition: all .35s var(--ease); pointer-events: none; }
.tour-box { position: fixed; width: 340px; padding: 16px 18px 14px; border-radius: var(--r-lg); background: var(--paper-0); box-shadow: var(--sh-3); border: 1px solid var(--gold-400); transition: left .35s var(--ease), top .35s var(--ease); animation: popIn .3s var(--ease); }
.tour-h { display: flex; align-items: center; gap: 10px; }
.tour-t { font-family: var(--serif); font-size: 18px; color: var(--velvet-700); }
.tour-x { margin: 10px 0 14px; font-size: 14.5px; line-height: 1.75; color: var(--ink-700); }
.tour-f { display: flex; align-items: center; gap: 8px; }
.tour-f .link { font-size: 13px; font-weight: 400; color: var(--ink-500); text-decoration-color: var(--line-strong); }
.tour-n { margin-left: auto; font-size: 12px; color: var(--ink-400); }

/* ============ 舞台效果（舞台提示触发的灯光、天气） ============ */
.stage-warm, .stage-red, .stage-weather, .stage-spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.stage-warm { background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(255,170,70,.28), rgba(70,25,5,.55)); mix-blend-mode: multiply; }
.stage.warm .stage-warm { opacity: 1; }
.stage-red { background: rgba(200,20,20,.32); mix-blend-mode: multiply; }
.stage.red .stage-red { opacity: 1; animation: alarm 1.4s ease-in-out infinite; }
@keyframes alarm { 50% { opacity: .35; } }
.stage { --sx: 50%; }
.stage-spot { background: radial-gradient(ellipse 14% 46% at var(--sx) 64%, transparent 55%, rgba(4,2,2,.86) 100%); transition: opacity 1s, background-position .6s; }
.stage.spot .stage-spot { opacity: 1; }
.stage.flicker { animation: flicker 1.6s steps(1) 1; }
@keyframes flicker { 0%, 100% { filter: none; } 10% { filter: brightness(.35); } 18% { filter: none; } 30% { filter: brightness(.25); } 36% { filter: brightness(.9); } 52% { filter: brightness(.3); } 60% { filter: none; } }
.stage-weather { background-repeat: repeat; }
.stage.rain .stage-weather { opacity: .55;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(200,215,255,.35) 18px 19px, transparent 19px 47px),
                    repeating-linear-gradient(100deg, transparent 0 31px, rgba(200,215,255,.25) 31px 32px, transparent 32px 73px);
  background-size: 120px 240px, 170px 300px; animation: rainfall .45s linear infinite; }
@keyframes rainfall { to { background-position: -40px 240px, -50px 300px; } }
.stage.snow .stage-weather { opacity: .85;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 1.5px, transparent 2.5px), radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 2px);
  background-size: 90px 90px, 55px 55px; animation: snowfall 9s linear infinite; }
@keyframes snowfall { to { background-position: 30px 450px, -20px 330px; } }
.cap-cues { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; font-style: normal; }
.cap-cues em { font-style: normal; font-family: var(--sans); font-size: 11.5px; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(212,170,90,.22); color: #ffe1a0; letter-spacing: .05em; }

/* 写作时的效果标签与工具箱 */
.cue-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0 8px; font-family: var(--sans); }
.cue-chips:not(:empty) { margin-top: 4px; }
.cue-lead { font-size: 11.5px; color: var(--ink-400); }
.cue-chip { display: inline-flex; align-items: center; gap: 3px; font-family: var(--sans); font-size: 12px; line-height: 1.5; padding: 1px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper-0); color: var(--ink-700); }
button.cue-chip { cursor: pointer; padding: 3px 11px; font-size: 13px; transition: .15s; }
button.cue-chip:hover { transform: translateY(-1px); border-color: var(--gold-400); box-shadow: var(--sh-1); }
.cue-chip.g-light { background: #fff6dc; border-color: #ecd48f; }
.cue-chip.g-weather { background: #e9f1fb; border-color: #b9cde6; }
.cue-chip.g-sound { background: #f8ebe4; border-color: #e2bfae; }
.cue-chip.g-music { background: #efe9f7; border-color: #cbbde3; }
.cue-box { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper-1); border: 1px solid var(--line); animation: popIn .25s ease-out; }
.cue-box-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-family: var(--sans); }
.cue-box-h b { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--serif); color: var(--velvet-700); }
.cue-box-h span { flex: 1; font-size: 12.5px; color: var(--ink-500); line-height: 1.6; }
.cue-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px dashed var(--paper-3); }
.cue-g { width: 3em; font-family: var(--sans); font-size: 12px; color: var(--ink-400); letter-spacing: .1em; }
.line.cue-new textarea { animation: cueNew 1.4s ease-out; }
@keyframes cueNew { 0% { background: #fff1c4; } 100% { background: var(--paper-1); } }

/* ============ 精简后的流程 ============ */
.sub-t small { margin-left: 6px; font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--ink-400); }
/* 第一幕：自己搭舞台 */
.diy { display: flex; align-items: center; gap: 18px; margin: 22px 0 18px; padding: 20px 22px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, #3a0d16, #5c1a26 60%, #6e2330); color: #f6e9cf; box-shadow: var(--sh-2); border: 1px solid rgba(220,188,108,.45); }
.diy-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(220,188,108,.18); color: #ffe1a0; box-shadow: inset 0 0 0 1.5px rgba(220,188,108,.6); }
.diy-ic .i { width: 26px; height: 26px; }
.diy-t { flex: 1; min-width: 0; }
.diy-t b { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: .06em; color: #ffe8b8; }
.diy-t p { margin-top: 4px; font-size: 14px; color: rgba(246,233,207,.82); line-height: 1.6; }
.diy .btn { flex: none; font-size: 15px; padding: 11px 20px; }
.diy.on { background: linear-gradient(120deg, #2e0b12, #4a1520); }
.diy .tag { flex: none; }
.here { scroll-margin-top: 90px; }
@media (max-width: 700px) { .diy { flex-wrap: wrap; } }
/* 第二幕：人物卡上的热座 */
.ccard-hot { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 3px 12px; border-radius: var(--r-pill); font-size: 12.5px; color: var(--velvet-600); background: var(--paper-1); border: 1px solid var(--line); transition: .15s; }
.ccard-hot .i { width: 14px; height: 14px; }
.ccard-hot:hover { background: #fff; border-color: var(--gold-400); color: var(--velvet-700); }
.hot-back { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
/* 第三幕：冲突熔炉一页 */
.cf-sec + .cf-sec { margin-top: 30px; }
.cf-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; color: var(--velvet-700); }
.cf-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--velvet-600); color: #ffe8b8; font-family: var(--serif); font-size: 15px; }
.opts-sm { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.opts-sm .opt { padding: 12px; }
.opts-sm .opt-art { width: 56px; height: 56px; }
.opts-sm .opt-d { font-size: 12.5px; line-height: 1.5; }
.opts-sm .opt-c { display: none; }
@media (max-width: 900px) { .opts-sm { grid-template-columns: repeat(2, 1fr); } }
.forge-side .field:first-child { margin-bottom: 12px; }
/* 第四幕：高潮里的突转与发现 */
.beat-twist { margin-top: 12px; padding: 14px 14px 4px; border-radius: var(--r-md, 10px); background: #fff8e8; border: 1px dashed var(--gold-400); }
.beat-twist-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 14px; color: var(--velvet-700); }
.beat-twist-h .i { align-self: center; color: var(--gold-600); }
.beat-twist-h small { color: var(--ink-400); font-size: 12px; }
/* 第六幕：开幕提示与热身 */
.open-prompt { margin: 6px 0 14px; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(180deg, #fff8e6, #fdf1d6); border: 1px solid var(--gold-200); }
.open-prompt > b { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 17px; color: var(--velvet-700); }
.open-prompt p { margin: 8px 0 12px; font-size: 14.5px; color: var(--ink-700); line-height: 1.7; }
.warmup { margin-bottom: 16px; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.warmup > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; color: var(--velvet-700); }
.warmup > summary::-webkit-details-marker { display: none; }
.warmup > summary small { margin-left: 4px; color: var(--ink-400); font-size: 12.5px; }
.warmup > summary .tip-chev { margin-left: auto; transition: transform .2s; }
.warmup[open] > summary .tip-chev { transform: rotate(180deg); }
.warmup[open] { padding-bottom: 6px; }
.warmup > .lead, .warmup > .subx { margin-left: 16px; margin-right: 16px; }
/* 读剧会：分角色 */
.rd-cast { margin-bottom: 14px; }
.rd-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 12px; margin-bottom: 14px; }
.rd-role { display: flex; align-items: center; gap: 8px; }
.rd-role b { flex: none; min-width: 3.5em; font-size: 14px; color: var(--velvet-700); }
.rd-role .input { flex: 1; min-width: 0; }
.rd-cast .reader { margin: 0; }
.rd-tts { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-400); }
.rd-name { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-style: normal; line-height: 1.7; vertical-align: 2px; background: var(--gold-100); color: var(--gold-700); border: 1px solid var(--gold-200); }
.rline.dir .rd-name { margin-left: -4px; }
.paper.rd-big .rline { font-size: 24px; line-height: 1.75; padding-top: 8px; padding-bottom: 8px; }
.paper.rd-big .rline.dir { font-size: 21px; }
.paper.rd-big .rline b { min-width: 130px; }
.paper.rd-big .rline i { font-size: 19px; }
.along { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 18px; border-radius: var(--r-pill);
  background: rgba(36,8,14,.94); color: #f6e9cf; box-shadow: 0 12px 30px rgba(0,0,0,.35); border: 1px solid rgba(220,188,108,.4); animation: popIn .25s ease-out; }
.along-n { font-variant-numeric: tabular-nums; font-size: 13px; color: rgba(246,233,207,.7); }
.along-who { min-width: 14em; font-size: 15px; } .along-who b { color: #ffe1a0; font-weight: 600; }
.along small { font-size: 11.5px; color: rgba(246,233,207,.55); }

/* 声音面板：没声音时告诉用户原因 */
.snd-help { margin: 4px 0 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.6; color: var(--ink-500); background: var(--paper-1); }
.snd-help.warn { color: #8a4b12; background: #fff3dc; border: 1px solid #f0d49b; }

/* ============ 手机与平板 ============ */
.tb-menu, .nav-shade { display: none; }
.mentor-mini { display: none; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-lg);
  background: var(--paper-0); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: 14px; line-height: 1.7; color: var(--ink-700); }
.mentor-mini .mentor-av { flex: none; }
.aud-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 平板横屏及以下：右栏挪到正文下方，提灯人的话放到每一步顶部 */
@media (max-width: 1080px) {
  .mentor-mini { display: flex; }
  .side-r .mentor { display: none; }
}

/* 平板竖屏、手机：节目单收进抽屉 */
@media (max-width: 860px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .tb-menu { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; color: var(--gold-100);
    background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(220,188,108,.3); }
  .tb-menu .i { width: 20px; height: 20px; }
  .tb-group { min-width: 0; flex-shrink: 1; overflow-x: auto; scrollbar-width: none; }
  .tb-group::-webkit-scrollbar { display: none; }
  .tb-btn { flex: none; padding: 0 9px; }
  .saved { display: none; }
  .side-l { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(300px, 84vw); z-index: 90; padding-top: 22px;
    transform: translateX(-104%); transition: transform .3s var(--ease); box-shadow: 10px 0 30px rgba(0,0,0,.45); }
  body.nav-open .side-l { transform: none; }
  .nav-shade { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(20,4,8,.55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .nav-shade { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .main { padding: 18px 16px 24px; }
  .step-title { font-size: 28px; }
  .step-nav { position: sticky; bottom: 0; z-index: 20; margin: 26px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250,244,232,.96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 -6px 16px rgba(60,20,20,.08); }
  .side-r { padding: 18px 16px 30px; grid-template-columns: 1fr; }
  .aud-scroll .aud-stage { min-width: 760px; }
  .tour-box { width: min(340px, calc(100vw - 24px)); }
}

/* 手机 */
@media (max-width: 600px) {
  .tb-switch { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .main { padding: 14px 12px 20px; }
  .step-nav { margin: 22px -12px 0; padding-left: 12px; padding-right: 12px; }
  .step-nav .nudge { font-size: 12.5px; }
  .step-title { font-size: 24px; }
  .lead { font-size: 14.5px; }
  .card { padding: 16px; }
  .paper { padding: 22px 14px; }
  /* 台词：说话人放到台词上方，台词能占满一整行 */
  .line { flex-wrap: wrap; gap: 4px; }
  .line .who, body.classroom .line .who { width: 100%; padding-top: 0; }
  .line .who select { flex: none; width: auto; max-width: 60%; }
  .line.dir .who { text-align: left; padding-top: 0; }
  .line-tools { right: 0; }
  .rline b { min-width: 0; margin-right: 8px; }
  .rline.dir { padding-left: 12px; }
  .paper.rd-big .rline { font-size: 19px; }
  .paper.rd-big .rline.dir { font-size: 17px; }
  /* 小剧场 */
  .stage-bubble { top: 5%; max-width: 80%; min-width: 0; padding: 7px 11px; font-size: 13.5px; line-height: 1.5; border-radius: 10px; }
  .stage-caption { max-width: 94%; font-size: 12.5px; padding: 4px 10px; }
  .stage-curtain-call b { font-size: 28px; }
  .cap-cues em { font-size: 10.5px; }
  /* 首页三张小图排成一行 */
  .hero-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; padding: 0 12px; }
  .hs-arrow { display: none; }
  .hs-pic { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  /* 其他 */
  .diy { padding: 16px; gap: 12px; }
  .diy .btn { width: 100%; justify-content: center; }
  .cf-h { font-size: 16px; }
  .opts-sm { grid-template-columns: 1fr 1fr; }
  .modal { padding: 20px 14px; max-height: 92vh; border-radius: var(--r-lg); }
  .along { left: 8px; right: 8px; bottom: calc(10px + env(safe-area-inset-bottom)); transform: none; flex-wrap: wrap; justify-content: center; border-radius: 16px; padding: 10px 12px; }
  .along small { display: none; }
  .along-who { flex: 1 1 100%; min-width: 0; text-align: center; font-size: 14px; }
  .rd-roles { grid-template-columns: 1fr; }
  .rd-tts { width: 100%; }
}

/* 触屏：没有“鼠标悬停”，原来悬停才出现的按钮直接显示；输入框用 16px 字，避免 iPhone 点进去时自动放大 */
@media (hover: none) {
  .ccard-del { opacity: 1; }
  .line:focus-within .line-tools { opacity: 1; pointer-events: auto; }
}
@media (hover: none) and (max-width: 1180px) {
  input, textarea, select, .input, .input-sm, .line textarea, .line .paren, .title-input { font-size: 16px; }
}
@media (max-width: 600px) {
  .hero-cap { left: 14px; right: 14px; bottom: 12px; flex-wrap: wrap; gap: 4px 8px; }
  .hero-cap b { font-size: 18px; white-space: nowrap; }
  .hero-cap small { flex: 1 1 100%; font-size: 11.5px; letter-spacing: .12em; }
}
@media (max-width: 860px) { .paper { background-image: none; } }
@media (max-width: 600px) { .stage-bubble { left: 50% !important; } .stage-bubble::after { display: none; } }
@media (max-width: 860px) { .ws, body.classroom .ws { grid-template-columns: minmax(0, 1fr); } .audition, .aud-scroll { min-width: 0; max-width: 100%; } }
#tts-status:empty { display: none; }
