:root{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#293135;background:#f3f2ee;line-height:1.85;--accent:#794943}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:32px}body{margin:0}a{color:inherit;text-underline-offset:5px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b9795f;outline-offset:4px}.topbar{max-width:1060px;margin:auto;padding:30px 40px;display:flex;justify-content:space-between;font-size:13px;color:#6f7474}.paper{position:relative;max-width:1060px;margin:0 auto 70px;background:#fff;border:1px solid #e1dfd9;border-radius:6px;box-shadow:0 12px 50px #342e2106;padding:65px 88px}.eyebrow{font-size:11px;letter-spacing:.2em;color:var(--accent);font-weight:700}h1{font-size:clamp(34px,5vw,56px);line-height:1.25;letter-spacing:-.04em;margin:17px 0 13px}.subtitle{color:#7a7c79;font-size:14px;margin:0 0 48px}.pitch{padding:28px 0;border-top:1px solid #e8e4df}.pitch h2{font-size:12px;letter-spacing:.13em;color:var(--accent);margin:0 0 17px}.pitch p{margin:0 0 16px;font-size:16px;line-height:2}.pitch.logline p{font-size:21px;line-height:1.85;font-weight:500}.contents{display:flex;gap:9px 24px;flex-wrap:wrap;padding:24px 0 34px;font-size:13px;color:#6f7474}.script-body{margin-top:20px}.script-body p{margin:0 0 13px;line-height:1.95;overflow-wrap:anywhere}.script-body strong{font-weight:750;color:#252c2f}.script-body .document-title{font-size:25px;border-top:2px solid #343b3c;padding-top:38px;margin:0 0 25px}.script-body .act{font-size:30px;border-top:1px solid #dcdedc;margin:64px 0 22px;padding-top:30px;line-height:1.4}.script-body .subheading{font-size:22px;line-height:1.5;margin:24px 0 20px}.script-body .scene{font-size:19px;line-height:1.5;margin:36px 0 22px}.script-body .timing{font-size:13px;color:#888b86;letter-spacing:.07em;margin:0 0 10px}.script-body .choice{background:#f7eee8;color:#794943;border-left:3px solid #b57e62;font-size:21px;padding:13px 18px;margin:38px 0 24px}.script-body .ending{font-size:24px;color:#794943;margin:38px 0 24px}.script-body .quote{margin:10px 0 18px 13px;padding-left:18px;border-left:3px solid #d5dcd8;color:#596461}.script-body .metadata{font-size:14px;margin-bottom:5px;color:#686e6c}.tools{position:fixed;right:max(12px,calc((100vw - 1320px)/2));top:130px;width:108px;z-index:20;background:#fff;border:1px solid #dfded9;border-radius:14px;padding:12px;box-shadow:0 6px 30px #292a2910;display:flex;flex-direction:column;gap:7px}.tools-title{font-size:11px;letter-spacing:.13em;color:#747872;text-align:center;margin-bottom:3px}.tools button{border:1px solid #e3e4df;border-radius:7px;background:#fff;color:#4b5552;padding:6px;font-size:13px}.tools button[aria-pressed=true]{background:#794943;color:white;border-color:#794943}.tools button:disabled{opacity:.4;cursor:default}.tools label{font-size:11px;color:#747872}.tools input{width:100%;accent-color:#794943;display:block}.tools input[type=color]{height:25px;padding:0;border:0;background:none}.tools small{font-size:10px;line-height:1.5;color:#8a8f88;text-align:center}.ink-layer{position:absolute;inset:0;width:100%;height:100%;z-index:10;pointer-events:none;overflow:visible}.drawing .ink-layer{pointer-events:auto;touch-action:none;cursor:crosshair}.erasing .ink-layer{cursor:cell}.ink-layer path{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.page-footer{text-align:center;font-size:12px;color:#878b83;margin:35px 0 0}#ink-status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#303e38;color:#fff;padding:6px 15px;border-radius:30px;font-size:12px;z-index:25;pointer-events:none}#ink-status:empty{display:none}@media(max-width:1320px){.paper{margin-left:24px;margin-right:140px;padding:50px 55px}.topbar{margin-right:140px}}@media(max-width:750px){.topbar{margin:0;padding:22px 20px}.topbar span{font-size:11px}.paper{margin:0 10px 180px;padding:32px 23px}.subtitle{margin-bottom:30px}.pitch.logline p{font-size:18px}.pitch p,.script-body p{font-size:15px}.script-body .act{font-size:26px}.tools{top:auto;bottom:12px;left:12px;right:12px;width:auto;flex-direction:row;align-items:center;justify-content:center;padding:10px;gap:6px;flex-wrap:wrap}.tools-title,.tools small{display:none}.tools button{padding:7px 10px}.tools label{width:55px}.tools label.color-label{width:32px}.tools input[type=color]{height:24px}#ink-status{bottom:116px;max-width:95vw;white-space:nowrap;font-size:11px}}@media print{body{background:white}.topbar,.tools,#ink-status,.contents,.page-footer{display:none}.paper{border:0;box-shadow:none;margin:0;max-width:none;padding:0}.script-body h2,.script-body h3,.script-body h4{break-after:avoid}.pitch{break-inside:avoid}.ink-layer{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


.continuous-script .paper{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;min-height:0}.continuous-script .script-body{margin:0}.reader-page{background:#fff;border:1px solid #deded8;border-radius:3px;box-shadow:0 5px 20px #342e2108;padding:58px 88px 25px;margin-bottom:28px;scroll-margin-top:28px}.reader-page>.act:first-child,.reader-page>.scene:first-child,.reader-page>.choice:first-child,.reader-page>.document-title:first-child{margin-top:0;padding-top:0;border-top:0}.reader-page>.choice:first-child{padding-top:13px}.sheet-number{text-align:center;font-size:11px;letter-spacing:.13em;color:#96998f;border-top:1px solid #efefea;padding-top:15px;margin-top:38px}.continuous-script .contents{margin-bottom:0;padding-bottom:0}.continuous-script .page-footer{margin-top:0;padding-bottom:20px}@media(max-width:1320px){.reader-page{padding:45px 55px 22px}}@media(max-width:750px){.reader-page{padding:30px 23px 18px;margin-bottom:20px}.sheet-number{margin-top:28px}.continuous-script .paper{margin-bottom:180px}}@media print{.reader-page{border:0;box-shadow:none;border-radius:0;padding:0;margin:0;break-before:page}.reader-page:first-child{break-before:auto}.sheet-number{display:none}.continuous-script .paper{margin:0}.continuous-script .contents{display:none}}

[hidden]{display:none!important}.version-switcher{max-width:1060px;margin:0 auto 22px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 22px;background:#e9e8e2;border:1px solid #ddddd4;border-radius:9px}.version-switcher>span{font-size:12px;color:#727970}.version-options{display:flex;gap:4px;padding:4px;background:#dcded5;border-radius:7px}.version-options button{font:inherit;font-size:13px;border:0;background:transparent;color:#626b63;border-radius:5px;padding:8px 19px}.version-options button[aria-pressed=true]{background:white;color:#75473f;box-shadow:0 2px 6px #31382b0c;font-weight:650}.version-switcher small{font-size:12px;color:#727970}.narrative-body p.narrative-paragraph{line-height:2.05;margin-bottom:22px;text-align:justify}.narrative-body p.narrative-dialogue{border-left:2px solid #d8ddd4;padding-left:18px;margin-left:0;color:#3f4b43}.narrative-body .scene{margin-bottom:27px}.narrative-body .sheet-number{margin-top:34px}@media(max-width:1320px){.version-switcher{margin-left:24px;margin-right:140px}}@media(max-width:750px){.version-switcher{margin:0 10px 20px;padding:13px 16px;gap:9px 13px}.version-switcher small{flex-basis:100%}.version-options button{padding:7px 13px}.narrative-body p.narrative-paragraph{line-height:2;margin-bottom:19px}}@media print{.version-switcher{display:none}}

.version-switcher{position:sticky;top:12px;z-index:30;background:#e9e8e2f7;box-shadow:0 3px 16px #302d2410;backdrop-filter:blur(12px)}.continuous-script .reader-page,[data-ink-block]{scroll-margin-top:115px}.tools{top:145px}.narrative-body .act{margin-top:0}.narrative-body>.reader-page>.scene:first-child{font-size:23px;line-height:1.6}@media(max-width:750px){.version-switcher{top:6px}.version-switcher small{display:none}.version-switcher>span{display:none}.version-options{width:100%;justify-content:center}.version-options button{flex:1;white-space:nowrap}.tools{top:auto}.continuous-script .reader-page,[data-ink-block]{scroll-margin-top:105px}}
.continuous-script{overflow-anchor:none}.continuous-script .paper{overflow-anchor:none}

.narrative-body{font-family:"Courier New","Microsoft YaHei",monospace;font-size:16px}.narrative-body .slugline{font-size:17px;line-height:1.65;letter-spacing:.02em;font-weight:700;margin:30px 0 23px;text-transform:uppercase}.narrative-body .reader-page>.slugline:first-child{margin-top:0}.narrative-body p.screenplay-action{line-height:1.85;margin:0 0 20px;text-align:left}.screenplay-dialogue{width:62%;margin:24px auto;break-inside:avoid}.character-cue{padding-left:17%;font-size:16px;font-weight:650;line-height:1.65}.parenthetical{padding-left:11%;font-size:14px;line-height:1.65}.narrative-body p.spoken-line{margin:0;line-height:1.85}.narrative-body .branch-heading{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:16px;color:#794943;border-top:1px solid #e4dfd8;padding-top:24px;margin:38px 0 24px}.narrative-body p.screenplay-transition{text-align:right;font-size:14px;margin:24px 0}.narrative-body p.screen-text{margin:20px 8%;font-size:15px;line-height:1.85}.narrative-body .choice{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:18px}.narrative-body .slugline,.character-cue{break-after:avoid}@media(max-width:750px){.narrative-body{font-size:15px}.screenplay-dialogue{width:86%}.character-cue{font-size:15px;padding-left:12%}.parenthetical{padding-left:8%;font-size:13px}.narrative-body .slugline{font-size:16px}.narrative-body p.screenplay-action{line-height:1.9}.narrative-body p.spoken-line{line-height:1.85}}

.narrative-body p.spoken-translation{margin:4px 0 0;color:#737b78;font-size:14px;line-height:1.65}@media(max-width:750px){.narrative-body p.spoken-translation{font-size:13px}}

/* Picture-board version: one line of picture description per shot, with the shot size in brackets at the end. */
.board-body{font-family:"Courier New","Microsoft YaHei",monospace;font-size:16px}
.board-body .slugline{font-size:17px;line-height:1.65;letter-spacing:.02em;font-weight:700;margin:30px 0 23px;text-transform:uppercase}
.board-body .reader-page>.slugline:first-child{margin-top:0}
.board-body p.screenplay-action{line-height:1.95;margin:0 0 20px;text-align:left}
.board-body .branch-heading{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:16px;color:#794943;border-top:1px solid #e4dfd8;padding-top:24px;margin:38px 0 24px}
.board-body .screenplay-dialogue{width:66%}
.board-body .slugline,.character-cue{break-after:avoid}
@media(max-width:750px){.board-body{font-size:15px}.board-body .slugline{font-size:16px}.board-body p.screenplay-action{line-height:2}.board-body .screenplay-dialogue{width:90%}}

/* Appendix: character / location / prop continuity tables. */
.board-body .part-heading{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:20px;letter-spacing:.02em;color:#743f37;margin:44px 0 10px;padding-top:26px;border-top:3px solid #e4dfd8;break-after:avoid}
.board-body .part-heading:first-child{margin-top:0;border-top:0;padding-top:0}
.part-note{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:13px;line-height:1.8;color:#6b675f;margin:0 0 24px;padding-left:14px;border-left:3px solid #d9cfc4}
.notes-page .notes-line{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.95;color:#4c4a44;margin:0 0 16px;padding-left:14px;border-left:3px solid #e4dfd8}
/* 四个部分：极浅底色 + 负责人标签 */
.part-section{border-radius:14px;padding:54px 72px 22px;margin-bottom:30px;border:1px solid #e6e2da}
.tint-1{background:#fbf8f2}
.tint-2{background:#f6f8f3}
.tint-3{background:#f9f5f7}
.tint-4{background:#f3f7f9}
.part-section .part-heading{margin-top:0;border-top:0;padding-top:0}
.part-owner{display:flex;align-items:center;gap:9px;font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:12px;color:#8a8178;margin:0 0 18px;letter-spacing:.02em}
.part-owner span{font-size:10px;letter-spacing:.14em;color:#a29688;border:1px solid #ded6c9;border-radius:999px;padding:2px 9px;background:#fff9}
.part-cont{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:11px;letter-spacing:.18em;color:#a49b90;margin:38px 0 16px;padding-top:16px;border-top:1px dashed #e2ddd4}
@media(max-width:750px){.part-section{padding:34px 24px 16px;border-radius:10px;margin-bottom:20px}}
@media print{.part-section{background:transparent!important;border:0;padding:0;margin:0}}
.chapter-sidebar a.toc-part{font-weight:650;color:#743f37}
.chapter-sidebar a.toc-sub{padding-left:22px;font-size:11px;color:#7a7f76}
.board-body .appendix-heading{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:15px;color:#794943;border-top:1px solid #e4dfd8;padding-top:18px;margin:30px 0 12px;break-after:avoid}
.board-table{width:100%;border-collapse:collapse;margin:16px 0 26px;font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:13px;line-height:1.65;break-inside:avoid}
.board-table th,.board-table td{border:1px solid #e2ded5;padding:8px 10px;text-align:left;vertical-align:top}
.board-table th{background:#f4f1ea;color:#5a544a;font-weight:650;white-space:nowrap}
.board-table td:first-child{color:#4a3f38;font-weight:600}
.appendix-list{margin:10px 0 22px;padding-left:24px;font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.85;color:#4c4a44}
.appendix-list li{margin:6px 0}
@media(max-width:750px){.board-table{display:block;overflow-x:auto;font-size:12px}.board-table th,.board-table td{padding:6px 8px}.appendix-list{font-size:13px;padding-left:20px}}

/* 分镜图片已从页面移除（原粗糙分镜九宫格）；这里是它残留的占位注释，不再有对应样式。 */

/* Persistent chapter navigation */
.chapter-sidebar{position:fixed;left:18px;top:24px;bottom:24px;width:226px;z-index:35;background:#fafaf7;border:1px solid #deded6;border-radius:12px;display:flex;flex-direction:column;box-shadow:0 5px 24px #302d2408}
.chapter-header{display:flex;align-items:center;justify-content:space-between;padding:18px 17px 14px;border-bottom:1px solid #e5e3dc;font-size:14px;color:#794943}
.chapter-sidebar nav{overflow-y:auto;overscroll-behavior:contain;padding:9px;scrollbar-width:thin;min-height:0}
.chapter-sidebar a{display:flex;align-items:baseline;gap:9px;text-decoration:none;padding:10px 9px;margin:3px 0;border-radius:7px;font-size:12px;line-height:1.65;color:#626961}
.chapter-number{font-size:10px;color:#92978d;flex-shrink:0;font-variant-numeric:tabular-nums}
.chapter-sidebar a:hover{background:#efeee8}.chapter-sidebar a[aria-current]{background:#ede1d9;color:#743f37;font-weight:650}.chapter-sidebar a[aria-current] .chapter-number{color:#794943}
.chapter-close,.chapter-toggle{display:none}.has-chapter-sidebar .contents{display:none}
.has-chapter-sidebar .paper,.has-chapter-sidebar .version-switcher,.has-chapter-sidebar .topbar{margin-left:266px;margin-right:140px;max-width:1060px}
.has-chapter-sidebar .reader-page{padding-left:clamp(28px,4vw,70px);padding-right:clamp(28px,4vw,70px)}
@media(min-width:1550px){.has-chapter-sidebar .paper,.has-chapter-sidebar .version-switcher,.has-chapter-sidebar .topbar{margin-left:max(266px,calc((100vw - 1060px)/2));margin-right:140px}}
@media(max-width:1000px){
.chapter-sidebar{display:none;top:80px;bottom:155px;width:min(310px,calc(100vw - 32px));left:16px;box-shadow:0 12px 60px #24251f30}.chapter-sidebar.is-open{display:flex}
.chapter-close{display:block;border:0;background:transparent;font-size:24px;line-height:1;padding:4px 8px;color:#794943}
.chapter-toggle{display:block;position:fixed;right:18px;top:18px;z-index:40;border:1px solid #d5c7bc;border-radius:8px;padding:8px 13px;background:#fff;color:#794943;font-size:13px;box-shadow:0 2px 10px #302d2415}
.has-chapter-sidebar .paper,.has-chapter-sidebar .version-switcher,.has-chapter-sidebar .topbar{margin-left:24px;margin-right:140px}.has-chapter-sidebar .topbar span{display:none}
}
@media(max-width:750px){.has-chapter-sidebar .paper,.has-chapter-sidebar .version-switcher{margin-left:10px;margin-right:10px}.has-chapter-sidebar .topbar{margin:0;padding-right:100px}.chapter-toggle{top:15px}.has-chapter-sidebar .version-switcher{top:65px}.has-chapter-sidebar .reader-page{padding-left:23px;padding-right:23px}.has-chapter-sidebar .reader-page,[data-ink-block]{scroll-margin-top:155px}}
@media print{.chapter-sidebar,.chapter-toggle{display:none!important}.has-chapter-sidebar .paper{margin:0;max-width:none}.has-chapter-sidebar .reader-page{padding:0}}
/* 并列排版：选项卡片 / 分支脚本 / 双结局 */
.option-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}
.option-col{margin:0;padding:15px 19px;background:#f7f3ee;border:1px solid #e6ddd3;border-left:3px solid #b57e62;border-radius:4px}
.option-col p.screen-text{margin:0;font-size:15px;font-weight:650;color:#743f37}
.branch-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;align-items:start;margin:30px 0 26px}
.branch-col{min-width:0}
.branch-col>.branch-heading:first-child{margin-top:0;border-top:3px solid #e4dfd8;padding-top:18px}
.has-branch-row{padding-left:clamp(26px,3vw,58px);padding-right:clamp(26px,3vw,58px)}
.branch-col .screenplay-dialogue,.side-row .screenplay-dialogue{width:100%;margin:18px 0}
.side-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin-bottom:28px}
.side-row>.reader-page{margin-bottom:0;padding:44px clamp(24px,3vw,48px) 20px}
.side-row p.screenplay-action{line-height:1.82}
@media(max-width:900px){
.option-row,.branch-row,.side-row{grid-template-columns:minmax(0,1fr);gap:18px}
.has-branch-row{padding-left:23px;padding-right:23px}
.side-row>.reader-page{padding:30px 23px 18px}
}
@media print{.option-row,.branch-row,.side-row{grid-template-columns:minmax(0,1fr)}}
