:root{color-scheme:dark;--ink:#101c23;--paper:#e5dfce;--gold:#c8aa73;--muted:#9da9a8}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--paper);font-family:Georgia,'Times New Roman',serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #e6c27c;outline-offset:5px}header{min-height:100px;display:flex;align-items:center;justify-content:space-between;padding:25px 6%;border-bottom:1px solid #ffffff16}.brand{color:var(--paper);text-decoration:none;letter-spacing:.23em;font-size:19px}.brand span{display:block;font:9px/2.5 system-ui;letter-spacing:.3em;color:var(--gold)}nav{display:flex;gap:25px}nav button{background:none;border:0;font:11px system-ui;letter-spacing:.13em;text-transform:uppercase;color:#bbc4c2}button:disabled{opacity:.35;cursor:default}main{max-width:1440px;padding:0 5%;margin:auto}.chapter{display:flex;justify-content:space-between;padding:26px 0 18px;font:10px system-ui;letter-spacing:.22em;color:var(--muted)}.stage{height:350px;position:relative;overflow:hidden;border:1px solid #bdc7be28;background:#30494e}.stage svg{width:100%;height:100%;object-fit:cover;filter:saturate(.7)}.stage:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#10242c8a,transparent 70%),linear-gradient(0deg,#0e1e2aab,transparent 65%);pointer-events:none}.scene-label{position:absolute;z-index:2;left:5%;bottom:36px}.scene-label>span{font:10px system-ui;text-transform:uppercase;letter-spacing:.3em;color:#d5c7a3}h1{font-size:clamp(30px,4vw,53px);font-weight:400;margin:13px 0 10px;letter-spacing:-.025em}.scene-label p{font:12px system-ui;letter-spacing:.06em;color:#c2ccc8}.art-note{position:absolute;right:15px;top:15px;font:8px system-ui;letter-spacing:.15em;color:#cdd4cc;opacity:.6;z-index:2}.rain{position:absolute;inset:-100%;background:repeating-linear-gradient(110deg,transparent 0 45px,#c5e0e322 46px,transparent 47px 90px);animation:rain 1.1s linear infinite;pointer-events:none}@keyframes rain{to{transform:translate(-60px,130px)}}.reader{max-width:820px;margin:37px auto 50px;min-height:300px}.eyebrow{font:10px system-ui;letter-spacing:.23em;color:var(--gold)}h2{font-weight:400;font-size:29px;margin:14px 0 21px}#prose{font-size:17px;line-height:1.8;color:#cbd0c9}#prose p{margin:0 0 15px}#choices{display:grid;gap:10px;margin-top:29px}#choices button{background:linear-gradient(100deg,#c9ae7310,#ffffff02);border:1px solid #c4b27e44;text-align:left;padding:17px 22px;transition:background .2s,transform .2s}#choices button:hover{background:#bca5731e;transform:translateX(3px)}#choices span{display:block;font-size:16px}#choices small{display:block;color:#97a6a4;font:11px/1.7 system-ui;margin-top:5px}footer{border-top:1px solid #ffffff15;padding:22px 0 30px;display:flex;justify-content:space-between;gap:16px;color:#819290;font:10px/1.6 system-ui;letter-spacing:.04em}#shrine,#bridge,#fire,#boy{display:none}body[data-location=shrine] #shrine,body[data-location=bridge] #bridge,body[data-location=fire] #fire,body[data-location=forest] #boy{display:block}body:not([data-location=village]) #village{display:none}body[data-location=fire] .stage svg{filter:brightness(.55) sepia(.2)}body[data-location=fire] .rain{opacity:.2}body[data-location=bridge] .stage svg{filter:brightness(.7)}dialog{background:#182a31;color:var(--paper);border:1px solid #b59d6855;max-width:560px;width:90%;padding:35px;line-height:1.7}dialog::backdrop{background:#061118c9;backdrop-filter:blur(4px)}dialog button{background:#273d43;border:1px solid #c8aa7355;padding:10px 15px}#close{float:right;background:none;border:0;font-size:25px;padding:0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#d8c8a7;color:#182a31;padding:12px 22px;font:12px system-ui;z-index:10;max-width:90%;text-align:center}#toast:empty{display:none}@media(min-width:1000px){#choices:has(button:nth-child(4)){grid-template-columns:1fr 1fr}}@media(max-width:600px){header{padding:20px 6%;align-items:flex-start;gap:20px;flex-direction:column}.brand{font-size:16px}nav{gap:25px}.stage{height:280px}.scene-label{bottom:22px}.art-note{font-size:6px}.reader{margin-top:29px}h2{font-size:25px}#prose{font-size:16px;line-height:1.75}footer{flex-direction:column}main{padding:0 6%}.chapter{font-size:8px}#choices button{padding:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Cartoon-donghua art direction */
:root{--ink:#102d36;--paper:#fff0ce;--gold:#f2c47c;--muted:#a6cbc7}body{background:radial-gradient(ellipse at 15% 10%,#285660 0,transparent 50%),radial-gradient(ellipse at 90% 80%,#244d50 0,transparent 45%),#102d36}header{background:#102b32b8;border-bottom-color:#f5ce862e}.brand{font-weight:bold;color:#ffe4ac;text-shadow:0 2px #081f28;letter-spacing:.16em}nav{gap:10px}nav button{padding:9px 14px;border:1px solid #e8c88b40;border-radius:20px;color:#f1dab2;background:#ffffff06}nav button:hover{background:#edc58120}.chapter{color:#bdd8ce}.stage{height:420px;border:2px solid #e2bf7d80;border-radius:24px;box-shadow:0 22px 70px #061b2460;background-image:url('assets/qinghe-donghua.jpg');background-size:cover;background-position:center 40%;isolation:isolate}.stage svg{opacity:0}.stage:after{background:linear-gradient(90deg,#102c3b99,transparent 67%),linear-gradient(0deg,#082b3a99,transparent 70%)}.stage:before{content:'';position:absolute;inset:0;background-image:url('assets/scenery-donghua.jpg');background-size:200% 200%;opacity:0;z-index:-1}body[data-location=forest] .stage:before{opacity:1;background-position:left top}body[data-location=shrine] .stage:before{opacity:1;background-position:right top}body[data-location=bridge] .stage:before{opacity:1;background-position:left bottom}body[data-location=fire] .stage:before{opacity:1;background-position:right bottom}.scene-label{bottom:34px;max-width:58%}.scene-label>span{display:inline-block;padding:8px 12px;background:#183c42c9;border:1px solid #ffe5a65c;border-radius:8px;font-size:9px;color:#ffe7b0;letter-spacing:.2em}h1{font-size:clamp(34px,4.3vw,61px);font-weight:bold;text-shadow:0 3px 18px #072533;color:#fff0cf;line-height:1.08}.scene-label p{color:#f3e5c4;text-shadow:0 2px 5px #112f3c}.art-note{background:#113a4266;padding:7px 10px;border-radius:7px;color:#fff0c9;font-size:8px;opacity:.85}.rain{opacity:.45;z-index:1}.reader{position:relative;max-width:900px;padding:34px 42px;margin:26px auto 40px;background:linear-gradient(140deg,#fff5dc,#eddfb9);color:#29454a;border-radius:20px;border:2px solid #e7c388;box-shadow:0 16px 45px #041b2440}.reader:before{content:'✦';position:absolute;right:29px;top:24px;color:#b18c48;font-size:25px}.eyebrow{color:#96703e;font-weight:700;letter-spacing:.18em}h2{color:#214b51;font-weight:bold;margin-top:12px}#prose{color:#38565a;font-size:17px;line-height:1.85}#choices button{position:relative;border:1px solid #b8b88c;border-radius:12px;background:linear-gradient(100deg,#fffdf0,#e3ead5);color:#244e54;box-shadow:0 3px 0 #b5bc9766;padding:17px 42px 17px 20px}#choices button:after{content:'›';position:absolute;right:18px;top:16px;font-size:25px;color:#a37a3a}#choices button:hover{background:#d2e7d5;transform:translateY(-2px);border-color:#719b83}#choices span{font-weight:bold}#choices small{color:#64817b}footer{color:#abc8be;border-color:#e7c3882b}dialog{border-radius:20px;background:#fff0cf;color:#29454a;box-shadow:0 20px 80px #041b24a0}dialog h2{color:#214b51}dialog button{background:#dce7cd;color:#244e54;border-radius:9px}#toast{border-radius:12px;box-shadow:0 6px 30px #071f36aa}button:focus-visible,a:focus-visible{outline:3px solid #d59a37;outline-offset:4px}@media(min-width:1100px){.stage{height:470px}}@media(max-width:600px){header{gap:12px}.brand{font-size:17px}nav{gap:6px;width:100%;justify-content:space-between}nav button{font-size:9px;padding:8px 13px}.stage{height:350px;border-radius:18px;background-position:64% center}.stage:after{background:linear-gradient(0deg,#0a3445d9,transparent 85%)}.scene-label{max-width:90%;bottom:23px;left:7%}.scene-label h1{font-size:36px;max-width:280px}.scene-label p{font-size:10px}.reader{padding:25px 22px;border-radius:16px;margin-top:18px}.reader:before{right:18px;top:17px;font-size:19px}#prose{font-size:16px}h2{font-size:25px}#choices button{padding:15px 34px 15px 16px}#choices span{font-size:15px}.chapter{padding:20px 0 14px}.art-note{font-size:6px;top:10px;right:10px}.scene-label>span{font-size:8px}}
/* JRPG dialogue staging */
.stage{height:clamp(330px,49vh,550px)}.reader{margin:-20px auto 35px;z-index:3;max-width:1000px;min-height:230px;padding:28px 32px 24px 200px;border:3px solid #d3ad68;box-shadow:0 0 0 4px #14333a,0 15px 45px #041b2470}.reader h2{font-size:14px;font-weight:normal;margin:7px 0 15px;color:#7b7a59}.reader .eyebrow{font-size:18px;letter-spacing:.04em;color:#24595b}.reader:before{display:none}#portrait{position:absolute;left:23px;top:25px;width:150px;height:170px;border:3px solid #ba985e;border-radius:14px;background-image:url('assets/portraits-donghua.jpg');background-size:300% 200%;box-shadow:0 5px 12px #283e4c30;background-color:#587c71}#portrait[hidden]{display:none}.reader[data-narration=true]{padding-left:32px}#prose{min-height:100px;font-size:19px;line-height:1.7}#prose p{margin-bottom:10px}.dialogue-controls{display:flex;justify-content:space-between;align-items:center;font:10px system-ui;color:#7a866e;gap:12px}#dialogue-next{background:none;border:0;color:#55796f;padding:9px 0 9px 20px;font:12px system-ui;min-height:40px}#choices{margin-top:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.stage{height:330px}.reader{padding:22px;margin-top:-14px;min-height:260px}.reader:has(#portrait:not([hidden])) .eyebrow,.reader:has(#portrait:not([hidden])) h2{margin-left:87px}#portrait{width:72px;height:85px;left:20px;top:18px;border-radius:9px;border-width:2px}.reader h2{min-height:42px;font-size:12px;margin-top:8px;margin-bottom:13px}.reader .eyebrow{font-size:16px}#prose{font-size:17px;min-height:120px}.reader[data-narration=true]{padding-left:22px}.reader[data-narration=true] h2{min-height:0}}
@media(min-width:601px){#portrait{width:128px;height:200px}.reader:has(#portrait:not([hidden])){padding-left:180px;min-height:270px}}@media(max-width:600px){#portrait{width:64px;height:100px}.reader:has(#portrait:not([hidden])) h2{min-height:65px}}
#music[aria-pressed=true]{background:#d8bd7e2e;color:#ffe9aa;border-color:#e3c17f99}@media(max-width:600px){nav{flex-wrap:wrap;justify-content:flex-start}nav button{padding:8px 11px}}
/* Immersive scene composition */
main{position:relative}.chapter{padding:18px 0 12px}.stage{height:690px;max-height:none;border-radius:12px;margin-bottom:0}.stage:after{background:linear-gradient(0deg,#061d2be8 0%,#082a3b22 65%,#082a3b22)}.scene-label{top:24px;bottom:auto;left:24px;max-width:65%;padding:15px 20px;background:#102e3bc9;border:1px solid #e8c88b65;border-radius:5px;z-index:2}.scene-label>span{padding:0;border:0;background:none;font-size:9px}.scene-label h1{font-size:26px;line-height:1.2;margin:8px 0}.scene-label p{font-size:11px;margin:0}.art-note{font-size:7px}.reader{position:relative;margin:-245px 22px 0;min-height:220px;max-width:none;padding:26px 30px!important;border-radius:6px;background:linear-gradient(125deg,#fff5dfed,#f0e4c9f5);box-shadow:0 8px 35px #061c3280;border:2px solid #c3a66f;z-index:4}.reader .eyebrow{position:absolute;left:16px;top:-37px;background:#f5e8cb;border:1px solid #c3a66f;border-bottom:0;padding:11px 23px;min-width:160px;font:bold 17px Georgia;color:#304e50}.reader h2{display:none}.reader:has(#portrait:not([hidden])){min-height:220px;padding-left:30px!important}.reader[data-narration=true]{padding-left:30px!important}#prose{position:relative;z-index:2;min-height:112px;font-size:20px}#portrait{position:absolute;z-index:-1;left:4%;bottom:calc(100% + 25px);top:auto;width:260px;height:400px;border:0;border-radius:0;box-shadow:none;background-color:transparent;pointer-events:none;mask-image:linear-gradient(0deg,transparent 0%,#000 12%,#000 100%);filter:drop-shadow(0 8px 18px #061b3266)}.reader:has(#choices button){display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr);column-gap:28px}.reader:has(#choices button) #prose{grid-column:1;grid-row:1}.reader:has(#choices button) .dialogue-controls{grid-column:1;grid-row:2}.reader:has(#choices button) #choices{grid-column:2;grid-row:1 / 3;align-content:center;margin:0;grid-template-columns:1fr}.reader:has(#choices button) #choices button{padding:14px 30px 14px 17px;border-radius:5px}.dialogue-controls{position:relative;z-index:2}footer{margin-top:30px}.stage svg{display:none}#portrait[hidden]{display:none}
@media(min-width:1100px){.stage{height:720px}.reader{margin-top:-245px}#portrait{width:285px;height:440px;left:8%}}
@media(max-width:600px){.stage{height:570px;border-radius:9px}.scene-label{left:14px;top:16px;padding:12px 15px;max-width:85%}.scene-label h1{font-size:22px;max-width:none}.scene-label p{font-size:10px}.scene-label>span{font-size:8px}.art-note{display:none}.reader,.reader:has(#portrait:not([hidden])){margin:-180px 10px 0;min-height:180px;padding:20px 19px!important;display:block!important}.reader .eyebrow,.reader:has(#portrait:not([hidden])) .eyebrow{margin:0;left:10px;top:-34px;font-size:15px;padding:9px 17px;min-width:130px}#portrait{width:192px;height:300px;left:4%;bottom:calc(100% + 27px);top:auto;border:0}.reader:has(#choices button){display:block}#prose{font-size:17px;min-height:95px}.reader:has(#choices button) #choices{margin-top:12px}.reader:has(#choices button) #choices button{padding:13px 30px 13px 14px}footer{margin-top:22px}#choices span{font-size:14px}}
#portrait{left:auto;right:8%}@media(max-width:600px){#portrait{left:auto;right:4%}.scene-label{max-width:52%}.scene-label h1{font-size:19px}.scene-label p{line-height:1.5}.scene-label>span{line-height:1.6}}
#portrait{background-image:url('assets/speakers-donghua.png');width:400px;height:400px;right:5%}@media(min-width:1100px){#portrait{width:440px;height:440px}}@media(max-width:600px){#portrait{width:290px;height:290px;right:-8%;bottom:calc(100% + 28px)}}
/* Compact dialogue, larger cast */
.reader,.reader:has(#portrait:not([hidden])){min-height:0;margin-top:-145px;padding:16px 22px 10px!important}.reader #prose{min-height:0;font-size:19px;line-height:1.55}.reader #prose p{margin:0 0 4px}.dialogue-controls{font-size:9px;min-height:29px}#dialogue-next{min-height:28px;font-size:11px;padding:5px 0 5px 16px}.reader .eyebrow{top:-31px;padding:8px 19px;font-size:16px}.reader:has(#choices button){column-gap:20px}.reader:has(#choices button) #choices button{padding:10px 28px 10px 13px}#choices{gap:7px}#choices small{font-size:10px;line-height:1.4;margin-top:3px}#portrait{width:510px;height:510px;bottom:calc(100% + 9px);right:2%}.stage{height:720px}@media(min-width:1100px){#portrait{width:570px;height:570px}.stage{height:760px}}@media(max-width:600px){.stage{height:620px}.reader,.reader:has(#portrait:not([hidden])){margin-top:-125px;padding:13px 15px 8px!important;min-height:0}.reader #prose{font-size:16px;line-height:1.5;min-height:0}.reader .eyebrow,.reader:has(#portrait:not([hidden])) .eyebrow{top:-29px;padding:7px 14px;font-size:14px}#portrait{width:350px;height:350px;right:-9%;bottom:calc(100% + 9px)}.scene-label{max-width:48%;padding:10px}.scene-label h1{font-size:18px}.reader:has(#choices button) #choices{margin-top:8px}#choices span{font-size:13px}.reader:has(#choices button) #choices button{padding:10px 26px 10px 12px}}
#prose p{display:grid}#prose p>.text-reserve,#prose p>span[aria-hidden=true]:not(.text-reserve){grid-area:1/1}.text-reserve{visibility:hidden;pointer-events:none}
#portrait[data-character="1"]{background-image:url('assets/speakers-younger-chengan.png')}
.stage{background-image:url('assets/qinghe-younger-chengan.jpg')}
#portrait[data-character="1"]{background-image:url('assets/speakers-chengan-refined.png')}
.stage{background-image:url('assets/qinghe-chengan-refined.jpg')}
/* Clean character silhouettes without added fog, glow or faded edges. */
#portrait{filter:none;box-shadow:none;mask-image:none;-webkit-mask-image:none;bottom:100%}
.title-screen{position:fixed;inset:0;z-index:7;background:linear-gradient(90deg,#051d2aeb,#051d2a33),url('assets/qinghe-chengan-refined.jpg') center/cover;display:flex;align-items:center;padding:6vw;overflow:auto}.title-screen[hidden]{display:none}.title-card{max-width:550px;padding:25px 0}.title-card h1{font-size:clamp(48px,8vw,100px);letter-spacing:.04em;line-height:.98;margin:22px 0}.title-subtitle{color:#efdbac;font-size:20px}.title-actions{display:grid;gap:10px;max-width:290px;margin:35px 0 22px}.title-actions button{border:1px solid #d8bb7d88;background:#102e3dd9;border-radius:5px;text-align:left;padding:15px 20px;color:#fff0cf}.title-actions button:first-child{background:#e7d0a3;color:#193c45}.title-actions button:hover{border-color:#ffe4a5;transform:translateX(3px)}#title-resume{font:12px/1.6 system-ui;color:#c5d5cb}.save-slot{border-top:1px solid #b4996260;padding:14px 0}.save-slot h3{margin:0;font-size:18px}.save-slot p{font:12px/1.6 system-ui}.save-slot input{display:block;width:100%;margin:10px 0;padding:10px;background:#fff9e8;color:#254b50;border:1px solid #b49962;border-radius:4px}#modal-body label{display:block;margin:18px 0;font-size:17px}#modal-body select{display:block;margin-top:8px;padding:10px;background:#fff9e8;color:#254b50;border:1px solid #b49962;width:100%}#modal-body input[type=range]{display:block;width:100%;margin-top:14px;accent-color:#3b7977}#modal{z-index:20;max-height:85vh;overflow:auto}header nav{flex-wrap:wrap;justify-content:flex-end}@media(max-width:600px){.title-screen{padding:28px;background-position:60% center}.title-card{padding:20px 0}.title-card h1{font-size:58px}.title-subtitle{font-size:17px}.title-actions{max-width:250px}header nav{justify-content:flex-start}header{gap:12px}}
#modal.journal-modal{max-width:850px;width:94%}.journal-tabs{display:flex;gap:9px;margin:20px 0;flex-wrap:wrap}.journal-tabs button{font:13px system-ui;background:#f9f0d9}.journal-tabs button[aria-pressed=true]{background:#2c5b5e;color:#fff3d3;border-color:#2c5b5e}.character-entry{display:grid;grid-template-columns:135px 1fr;gap:23px;border-top:1px solid #b4996255;padding:23px 0}.encyclopedia-portrait{height:135px;width:135px;align-self:start;background-color:#c5d3bb;border:1px solid #b4996266;border-radius:8px;font-size:65px;display:grid;place-items:center;color:#829479}.character-entry h3{margin:0;font-size:23px;color:#254f54}.character-entry p{font-size:14px;line-height:1.65;margin:8px 0}.character-role{color:#8a6c3c;font-style:italic}.character-note{border-left:2px solid #a7b996;padding-left:12px;color:#496c64}@media(max-width:600px){.character-entry{grid-template-columns:80px 1fr;gap:13px}.encyclopedia-portrait{width:80px;height:80px}.character-entry h3{font-size:20px}.character-entry p{font-size:13px}.journal-modal{padding:23px}}
#portrait[data-character="han-mu"]{width:435px;height:620px}@media(min-width:1100px){#portrait[data-character="han-mu"]{width:465px;height:650px}}@media(max-width:600px){#portrait[data-character="han-mu"]{width:293px;height:390px;right:-3%}}
body[data-location=town] .stage{background-image:url('assets/border-town.jpg');background-position:center}body[data-location=town] .stage:before{opacity:0}body[data-location=town] .rain{display:none}body[data-location=town] .stage:before{opacity:0}#portrait[data-character="shen-yuelan"]{width:340px;height:510px}@media(min-width:1100px){#portrait[data-character="shen-yuelan"]{width:380px;height:570px}}@media(max-width:600px){#portrait[data-character="shen-yuelan"]{width:233px;height:350px;right:0}}
body[data-location=settlement] .stage{background-image:url('assets/refugee-settlement.jpg');background-position:center}body[data-location=settlement] .stage:before{opacity:0}#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{width:382px;height:510px}@media(min-width:1100px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{width:427px;height:570px}}@media(max-width:600px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{width:262px;height:350px;right:0}}
#portrait[data-character="he-lian"]{clip-path:inset(0 0 0 4%)}
#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{bottom:calc(100% - 28px)}@media(min-width:1100px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{bottom:calc(100% - 32px)}}@media(max-width:600px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{bottom:calc(100% - 20px)}}
body[data-location=ice] .stage{background-image:url('assets/frozen-river.jpg');background-position:center}body[data-location=ice] .stage:before{opacity:0}
/* Chapter 4 cast: match established on-screen head and torso scale. */
#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{width:435px;height:580px;bottom:100%;background-size:240% 120%!important;clip-path:none}
@media(min-width:1100px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{width:480px;height:640px}}
@media(max-width:600px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{width:293px;height:390px;right:0;bottom:100%}}
.character-entry:has(.encyclopedia-portrait[aria-label="Guo Ren portrait"]) .encyclopedia-portrait,.character-entry:has(.encyclopedia-portrait[aria-label="He Lian portrait"]) .encyclopedia-portrait{height:180px}
@media(max-width:600px){.character-entry:has(.encyclopedia-portrait[aria-label="Guo Ren portrait"]) .encyclopedia-portrait,.character-entry:has(.encyclopedia-portrait[aria-label="He Lian portrait"]) .encyclopedia-portrait{height:107px}}
#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{bottom:calc(100% - 18px)}@media(max-width:600px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{bottom:calc(100% - 10px)}}
#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{bottom:100%}@media(min-width:1100px){#portrait[data-character="guo-ren"],#portrait[data-character="he-lian"]{width:465px;height:620px}}
body[data-location=oath] .stage{background-image:url('assets/oath-shrine.jpg');background-position:center}body[data-location=oath] .stage:before{opacity:0}body[data-location=oath] .rain{display:none}
body[data-location=monastery] .stage{background-image:url('assets/monastery-waystation.jpg');background-position:center}body[data-location=monastery] .stage:before{opacity:0}body[data-location=monastery] .rain{display:none}
#portrait:is([data-character="wei-qinghe"],[data-character="duan-ming"]){width:435px;height:580px;bottom:100%;clip-path:none}@media(min-width:1100px){#portrait:is([data-character="wei-qinghe"],[data-character="duan-ming"]){width:465px;height:620px}}@media(max-width:600px){#portrait:is([data-character="wei-qinghe"],[data-character="duan-ming"]){width:293px;height:390px;right:0}}
.character-entry:has(.encyclopedia-portrait:is([aria-label="Wei Qinghe portrait"],[aria-label="Duan Ming portrait"])) .encyclopedia-portrait{height:180px}@media(max-width:600px){.character-entry:has(.encyclopedia-portrait:is([aria-label="Wei Qinghe portrait"],[aria-label="Duan Ming portrait"])) .encyclopedia-portrait{height:107px}}

/* Chapter 8: reuse all approved portraits over a dedicated city environment. */
body[data-location=city] .stage{background-image:url('assets/yunzhou-city.jpg');background-position:center}body[data-location=city] .stage:before{opacity:0}body[data-location=city] .rain{display:none}

/* Chapter 9: crisp reusable courier art and morning relay environment. */
body[data-location=relay] .stage{background-image:url('assets/yunzhou-relay.jpg');background-position:center}body[data-location=relay] .stage:before{opacity:0}body[data-location=relay] .rain{display:none}
#portrait[data-character="lu-wen"]{width:430px;height:520px;bottom:100%;clip-path:none}@media(min-width:1100px){#portrait[data-character="lu-wen"]{width:455px;height:550px}}@media(max-width:600px){#portrait[data-character="lu-wen"]{width:285px;height:345px;right:0}}
.character-entry:has(.encyclopedia-portrait[aria-label="Lu Wen portrait"]) .encyclopedia-portrait{height:180px;background-size:cover!important}@media(max-width:600px){.character-entry:has(.encyclopedia-portrait[aria-label="Lu Wen portrait"]) .encyclopedia-portrait{height:107px}}
body:is([data-scene=c9smoke],[data-scene=c9choice]) .stage{background-image:url('assets/yunzhou-relay-fire.jpg')}

/* Chapter 10: established cast and a quiet fork beyond Yunzhou. */
body[data-location=roadfork] .stage{background-image:url('assets/qinghe-roadfork.jpg');background-position:center}body[data-location=roadfork] .stage:before{opacity:0}body[data-location=roadfork] .rain{display:none}

/* Exclude the neighboring atlas cell's sleeve from Xiaoyu's silhouette. */
#portrait[data-character="lin-xiaoyu"]{clip-path:inset(0 0 0 12%)}
.character-entry:has(.encyclopedia-portrait[aria-label="Lin Xiaoyu portrait"]) .encyclopedia-portrait{clip-path:inset(0 0 0 12%)}

/* Chapter 11: distinct homeward and capital-relay environments. */
body[data-location=charcoal] .stage{background-image:url('assets/qinghe-charcoal-shelter.jpg');background-position:center}body[data-location=outerrelay] .stage{background-image:url('assets/capital-outer-relay.jpg');background-position:center}body:is([data-location=charcoal],[data-location=outerrelay]) .stage:before{opacity:0}body:is([data-location=charcoal],[data-location=outerrelay]) .rain{display:none}

/* Chapter 12: a quiet reusable care room; canonical portraits are unchanged. */
body[data-location=care] .stage{background-image:url('assets/care-room.jpg');background-position:center}body[data-location=care] .stage:before{opacity:0}body[data-location=care] .rain{display:none}

/* Shared scenery on every viewport; speaking portraits are separate foreground art. */
.stage{background-image:url('assets/qinghe-scenery-clean.jpg');background-position:center 40%}

/* Stable two-character blocking; no glow, blur or painted shadows. */
#companion-portrait{position:absolute;bottom:100%;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-color:transparent;border:0;box-shadow:none;opacity:1;filter:brightness(.88);width:440px;height:440px;left:0}
#companion-portrait[hidden]{display:none}
.reader[data-ensemble=true] #portrait{width:440px;height:440px;right:0;left:auto}
.reader[data-ensemble=true][data-speaker-side=left] #portrait{left:0;right:auto}
.reader[data-ensemble=true][data-speaker-side=left] #companion-portrait{right:0;left:auto}
#companion-portrait[data-character=lin-xiaoyu]{clip-path:inset(0 0 0 12%)}
body[data-event-art] .stage{background-image:var(--event-art)!important;background-position:center 35%;background-size:cover}
body[data-event-art] .stage:before{display:none}
body[data-event-art] #portrait,body[data-event-art] #companion-portrait{display:none}
body[data-event-art] .scene-label{max-width:38%;padding:10px 14px}
body[data-event-art] .scene-label h1{font-size:20px}




@media(max-width:600px){.reader[data-ensemble=true] #portrait,#companion-portrait{width:220px;height:220px}.reader[data-ensemble=true] #portrait{right:-8px}.reader[data-ensemble=true][data-speaker-side=left] #portrait{left:-8px;right:auto}#companion-portrait{left:-8px}.reader[data-ensemble=true][data-speaker-side=left] #companion-portrait{right:-8px;left:auto}body[data-event-art] .scene-label{max-width:70%;padding:8px}body[data-event-art] .scene-label h1{font-size:16px}.dialogue-controls{flex-wrap:wrap}}

@media(max-width:600px){body[data-event-art] .stage{height:460px;background-size:contain;background-repeat:no-repeat;background-position:center 42%;background-color:#112b34}body[data-event-art] .scene-label{top:10px;left:10px;max-width:90%}body[data-event-art] .stage:after{background:linear-gradient(0deg,#061d2b99,transparent 32%,transparent 85%,#061d2b44)}}

/* Compact mobile reading view: keep the scene, dialogue and choices together. */
.menu-action{display:block;width:100%;margin:8px 0;text-align:left;border-radius:10px;padding:12px 16px!important;background:#fff5dc;color:#29454a!important;border:1px solid #b8b88c!important}
@media(max-width:600px){
 header{min-height:0;padding:9px 4%;flex-direction:row;align-items:center;gap:8px}
 .brand{font-size:12px;letter-spacing:.1em;white-space:nowrap}
 .brand span{display:none}
 nav{display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:4px}
 nav button{padding:6px 7px;font-size:9px;letter-spacing:.03em;white-space:nowrap}
 main{padding:0 12px}
 .chapter{padding:7px 0 6px;font-size:8px}
 .stage{height:148px!important;border-radius:13px;margin-bottom:0}
 body[data-event-art] .stage{height:190px!important;background-size:cover}
 .scene-label{top:auto;bottom:9px;left:12px;max-width:82%;padding:0}
 .scene-label>span{padding:4px 7px;font-size:7px}
 .scene-label h1{font-size:21px;margin:5px 0 2px;line-height:1.05}
 .scene-label p{font-size:9px;margin:0}
 .art-note{display:none}
 .reader{min-height:0;margin:10px auto 12px;padding:14px 16px;border-radius:14px}
 .reader:before{display:none}
 .reader .eyebrow{font-size:9px;letter-spacing:.12em}
 .reader h2{min-height:0;font-size:18px;margin:5px 0 8px}
 #prose{min-height:0;font-size:14px;line-height:1.45}
 #prose p{margin:0 0 5px}
 .dialogue-controls{gap:8px;min-height:32px}
 #dialogue-next{min-height:32px;padding:5px 0 5px 12px}
 #choices{margin-top:6px;gap:6px}
 #choices button{padding:9px 12px}
 #choices span{font-size:14px}
 #choices small{font-size:10px;line-height:1.35;margin-top:2px}
 footer{padding:9px 0 14px;font-size:9px}
 .reader[data-ensemble=true] #portrait,#companion-portrait{width:150px;height:150px}
}
@media(max-width:400px){nav button{padding:5px 5px;font-size:8px}.brand{font-size:10px}.stage{height:132px!important}.scene-label h1{font-size:19px}}
@media(max-width:600px) and (max-height:760px){.stage{height:112px!important}body[data-event-art] .stage{height:160px!important}.reader{padding:11px 14px;margin-top:7px;margin-bottom:8px}#prose{font-size:13px}.reader[data-ensemble=true] #portrait,#companion-portrait{width:125px;height:125px}}
@media(max-width:600px){
 .reader:has(#portrait:not([hidden])){margin-top:10px!important}
 .reader #portrait:not([hidden]),.reader #companion-portrait{width:112px!important;height:126px!important;bottom:100%!important}
 .reader[data-ensemble=true] #portrait,.reader[data-ensemble=true] #companion-portrait{width:124px!important;height:132px!important}
}
/* Give mobile scenes enough height for the heading, atmosphere and listening cast. */
@media(max-width:600px){
 .stage{height:250px!important}
 body[data-event-art] .stage{height:230px!important}
 .scene-label{top:10px;bottom:auto;left:12px;max-width:90%;padding:6px 8px;z-index:6}
 .scene-label h1{font-size:17px;margin:4px 0}
 .scene-label p{display:block;font-size:9px;line-height:1.3;margin:0}
}
@media(max-width:400px){.stage{height:250px!important}.scene-label h1{font-size:16px}}
@media(max-width:600px) and (max-height:760px){.stage{height:180px!important}body[data-event-art] .stage{height:180px!important}.scene-label{top:8px}}
body[data-location=watchtower] .stage{background-image:url('assets/watchtower-interior.jpg');background-position:center;background-size:cover}body[data-location=watchtower] .stage:before{opacity:0}body[data-location=watchtower] .rain{display:none}
.chapter-card[hidden]{display:none!important}.chapter-card{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#0c202be8,#102f36d9 55%,#081921f2),url('assets/scenery-donghua.jpg') center/cover;color:#fff0cf}.chapter-card-panel{width:min(100%,760px);min-height:min(72vh,600px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:38px;padding:36px;border:1px solid #e7c38888;border-radius:24px;background:linear-gradient(145deg,#122e38b8,#09232eb8);box-shadow:0 26px 90px #06141db8;text-align:center}.chapter-card-rule{width:min(230px,60%);height:1px;background:linear-gradient(90deg,transparent,#f0ce8b,transparent)}#chapter-card-number{margin:0;color:#fff0cf;font-size:clamp(38px,8vw,78px);font-weight:700;letter-spacing:.16em;text-shadow:0 4px 24px #06151b}#chapter-card-continue{min-width:180px;padding:14px 28px;border:1px solid #f0ce8b;border-radius:999px;background:#f1dfb9;color:#24434a;font:700 15px system-ui;cursor:pointer}#chapter-card-continue:hover{background:#fff0cf;transform:translateY(-2px)}.chapter>span:first-child{font-size:10px;letter-spacing:.2em}
@media(max-width:600px){.chapter-card{padding:18px}.chapter-card-panel{min-height:58vh;padding:24px;gap:30px;border-radius:18px}#chapter-card-number{font-size:clamp(34px,10vw,54px);letter-spacing:.12em}#chapter-card-continue{min-width:160px;padding:13px 24px}}
/* Keep the scene corner tag location-only. */
.scene-label{top:clamp(12px,2.3vw,24px)!important;bottom:auto!important;left:clamp(12px,2.3vw,24px)!important;right:auto!important;width:max-content;max-width:min(82%,460px);padding:0!important}.scene-label h1,.scene-label p{display:none!important}.scene-label>span{font:700 10px/1.2 system-ui;letter-spacing:.14em;text-transform:uppercase;padding:8px 12px;background:#123740d9;border:1px solid #ffe5a65c;border-radius:8px;color:#ffe7b0}
@media(max-width:600px){.scene-label{left:12px!important;top:10px!important;max-width:82%}.scene-label>span{font-size:8px;padding:7px 10px}}
/* Opaque backing prevents the opening artwork's transparent pixels from revealing dialogue beneath it. */
.title-screen{background-color:#102b35}
/* Keep a character's apparent scale consistent between solo and paired dialogue. */
.reader[data-ensemble=true] #portrait,.reader[data-ensemble=true] #companion-portrait{width:510px!important;height:510px!important}
@media(min-width:1100px){.reader[data-ensemble=true] #portrait,.reader[data-ensemble=true] #companion-portrait{width:570px!important;height:570px!important}}
@media(max-width:600px){.reader[data-ensemble=true] #portrait,.reader[data-ensemble=true] #companion-portrait{width:112px!important;height:126px!important}}

.reader[data-thought=true] #prose{font-style:italic}.reader[data-thought=true] .eyebrow{font-style:italic}

/* The shared portrait fitter keeps art above the dialogue edge. */
#portrait,#companion-portrait{bottom:100%!important}

/* Reusable group blocking: add a scene to groupScenes in scene-staging.js. */
.reader .cast-extra{position:absolute;bottom:100%;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-color:transparent;border:0;box-shadow:none;opacity:1;filter:brightness(.9);}
.reader .cast-extra[hidden]{display:none}
.reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:510px!important;height:510px!important}
@media(min-width:1100px){.reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:570px!important;height:570px!important}}
@media(max-width:600px){.reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:112px!important;height:126px!important}}
.reader[data-cast-count="2"] #portrait[data-stage-index="0"],.reader[data-cast-count="2"] .cast-extra[data-stage-index="0"]{left:0;right:auto}
.reader[data-cast-count="2"] #portrait[data-stage-index="1"],.reader[data-cast-count="2"] .cast-extra[data-stage-index="1"]{left:auto;right:0}
.reader[data-cast-count="3"] #portrait,.reader[data-cast-count="3"] .cast-extra{width:clamp(112px,24vw,320px)!important;height:clamp(158px,34vw,420px)!important;bottom:100%!important;}
.reader[data-cast-count="3"] #portrait[data-stage-index="0"],.reader[data-cast-count="3"] .cast-extra[data-stage-index="0"]{left:0;right:auto}
.reader[data-cast-count="3"] #portrait[data-stage-index="1"],.reader[data-cast-count="3"] .cast-extra[data-stage-index="1"]{left:34%;right:auto}
.reader[data-cast-count="3"] #portrait[data-stage-index="2"],.reader[data-cast-count="3"] .cast-extra[data-stage-index="2"]{left:65%;right:auto}

/* Mobile: reclaim outer gutters for larger scenery and character art. */
@media(max-width:600px){
 header{min-height:0;padding:6px 9px}
 main{padding:0 8px}
 .chapter{padding:4px 0;font-size:8px}
 .stage{height:clamp(290px,40vh,380px)!important;height:clamp(290px,40svh,380px)!important;border-radius:9px}
 body[data-event-art] .stage{height:clamp(260px,38vh,350px)!important;height:clamp(260px,38svh,350px)!important}
 .reader{margin:6px auto 8px;padding:11px 13px!important}
 .reader:has(#portrait:not([hidden])){margin-top:6px!important}
 .reader #portrait:not([hidden]){width:clamp(155px,21vh,210px)!important;height:clamp(205px,30vh,280px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:145px!important;height:195px!important}
 .reader[data-cast-count="3"] #portrait,.reader[data-cast-count="3"] .cast-extra{width:130px!important;height:185px!important}
 .reader .cast-extra{bottom:100%!important}
 #prose{font-size:14px;line-height:1.42}
 #prose p{margin-bottom:4px}
 #choices{margin-top:5px;gap:5px}
 #choices button{padding:8px 11px}
 #choices span{font-size:13px}
 #choices small{font-size:9px;line-height:1.3}
 footer{padding:5px 0 9px}
}
@media(max-width:600px) and (max-height:760px){
 .stage{height:clamp(215px,36vh,275px)!important;height:clamp(215px,36svh,275px)!important}
 body[data-event-art] .stage{height:clamp(205px,34vh,260px)!important;height:clamp(205px,34svh,260px)!important}
 .reader #portrait:not([hidden]){width:clamp(140px,21vh,170px)!important;height:clamp(185px,28vh,225px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:126px!important;height:172px!important}
 .reader[data-cast-count="3"] #portrait,.reader[data-cast-count="3"] .cast-extra{width:118px!important;height:168px!important}
}

/* Mobile scene frame: location tag stays subtle, cast stays inside the art, dialogue joins the frame. */
@media(max-width:600px){
 .stage{height:clamp(380px,52vh,470px)!important;height:clamp(380px,52svh,470px)!important;border-radius:9px 9px 0 0;margin-bottom:0}
 body[data-event-art] .stage{height:clamp(330px,48vh,430px)!important;height:clamp(330px,48svh,430px)!important}
 .reader{margin:0 auto 8px!important;border-radius:0 0 14px 14px}
 .reader:has(#portrait:not([hidden])){margin-top:0!important}
 .scene-label{left:8px!important;top:7px!important;max-width:70%;padding:0!important}
 .scene-label>span{font-size:7px;line-height:1.05;letter-spacing:.08em;padding:4px 7px}
 .reader #portrait:not([hidden]){width:clamp(155px,21vh,210px)!important;height:clamp(205px,30vh,280px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:145px!important;height:195px!important}
 .reader[data-cast-count="3"] #portrait,.reader[data-cast-count="3"] .cast-extra{width:130px!important;height:185px!important}
}
@media(max-width:600px) and (max-height:760px){
 .stage{height:clamp(290px,44vh,340px)!important;height:clamp(290px,44svh,340px)!important}
 body[data-event-art] .stage{height:clamp(265px,40vh,315px)!important;height:clamp(265px,40svh,315px)!important}
 .reader #portrait:not([hidden]){width:clamp(140px,21vh,170px)!important;height:clamp(185px,28vh,225px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:126px!important;height:172px!important}
 .reader[data-cast-count="3"] #portrait,.reader[data-cast-count="3"] .cast-extra{width:118px!important;height:168px!important}
}

/* Full-bleed mobile art with portraits sized to the scene, not the page gutters. */
@media(max-width:600px){
 .stage{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);border-left:0;border-right:0;border-radius:0;box-shadow:none}
 .reader{margin-inline:0!important}
 .reader #portrait:not([hidden]){width:clamp(170px,27vh,240px)!important;height:clamp(235px,38vh,320px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:170px!important;height:235px!important}
 .reader[data-cast-count="3"] #portrait,.reader[data-cast-count="3"] .cast-extra{width:clamp(135px,37vw,168px)!important;height:clamp(190px,52vw,230px)!important}
 .reader[data-cast-count="3"] #portrait[data-stage-index="0"],.reader[data-cast-count="3"] .cast-extra[data-stage-index="0"]{left:0;right:auto}
 .reader[data-cast-count="3"] #portrait[data-stage-index="1"],.reader[data-cast-count="3"] .cast-extra[data-stage-index="1"]{left:30%;right:auto}
 .reader[data-cast-count="3"] #portrait[data-stage-index="2"],.reader[data-cast-count="3"] .cast-extra[data-stage-index="2"]{left:59%;right:auto}
}
@media(max-width:600px) and (max-height:760px){
 .reader #portrait:not([hidden]){width:clamp(155px,26vh,185px)!important;height:clamp(210px,33vh,240px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:145px!important;height:200px!important}
 .reader[data-cast-count="3"] #portrait,.reader[data-cast-count="3"] .cast-extra{width:clamp(122px,34vw,140px)!important;height:clamp(180px,48vw,205px)!important}
}

/* Use the footer's vertical room for the mobile scene; show the speaker and one listener. */
footer{display:none!important}
.reader[data-cast-count="1"] #portrait{left:50%!important;right:auto!important;transform:translateX(-50%)}
@media(max-width:600px){
 .stage{height:clamp(410px,60vh,540px)!important;height:clamp(410px,60svh,540px)!important}
 body[data-event-art] .stage{height:clamp(360px,52vh,460px)!important;height:clamp(360px,52svh,460px)!important}
 .reader #portrait:not([hidden]){width:clamp(180px,27vh,235px)!important;height:clamp(250px,40vh,340px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:185px!important;height:255px!important}
}
@media(max-width:600px) and (max-height:760px){
 .stage{height:clamp(310px,47vh,365px)!important;height:clamp(310px,47svh,365px)!important}
 body[data-event-art] .stage{height:clamp(285px,43vh,335px)!important;height:clamp(285px,43svh,335px)!important}
 .reader #portrait:not([hidden]){width:clamp(155px,26vh,185px)!important;height:clamp(215px,34vh,240px)!important}
 .reader[data-cast-count="2"] #portrait,.reader[data-cast-count="2"] .cast-extra{width:155px!important;height:215px!important}
}
@media(min-width:601px){
 .reader[data-cast-count="1"] #portrait{width:410px!important;height:560px!important;left:50%!important;right:auto!important;transform:translateX(-50%)}
}
@media(max-width:600px){
 .reader[data-cast-count="1"] #portrait{width:clamp(245px,34vh,300px)!important;height:clamp(340px,48vh,420px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)}
}
@media(max-width:600px) and (max-height:760px){
 .reader[data-cast-count="1"] #portrait{width:clamp(210px,31vh,245px)!important;height:clamp(285px,43vh,300px)!important}
}

/* Keep the chapter and canonical location together in the header row. */
.chapter{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}.chapter>#place{justify-self:center;letter-spacing:.16em;text-transform:uppercase;color:#e2c98f}.chapter>#position{justify-self:end}.scene-label{display:none!important}
@media(max-width:600px){.chapter{grid-template-columns:auto 1fr auto;gap:8px;padding:7px 0 8px}.chapter>span:first-child{white-space:nowrap;font-size:7px;letter-spacing:.12em}.chapter>#place{font-size:7px;letter-spacing:.1em}.chapter>#position{font-size:7px}}
@media(min-width:601px){.chapter{grid-template-columns:auto auto 1fr;justify-content:initial;gap:18px}.chapter>#place{justify-self:start}}
/* Solo square-atlas portraits receive a larger frame so they remain prominent without changing character proportions. */
@media(min-width:601px){.reader[data-cast-count="1"] #portrait:is([data-character="changyuan"],[data-character="chengan"],[data-character="lin-xiaoyu"],[data-character="elder-wu"],[data-character="chen-bo"],[data-character="yan-commander"]){width:560px!important;height:560px!important}}
@media(max-width:600px){.reader[data-cast-count="1"] #portrait:is([data-character="changyuan"],[data-character="chengan"],[data-character="lin-xiaoyu"],[data-character="elder-wu"],[data-character="chen-bo"],[data-character="yan-commander"]){width:clamp(230px,76vw,300px)!important;height:clamp(230px,76vw,300px)!important}}
#modal-body .membership-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;padding:0 17px;border:1px solid #b49962;border-radius:4px;background:#f3ead5;color:#254b50;font:700 13px system-ui;text-decoration:none}#modal-body .membership-link:hover{background:#e9ddbd}

/* Stable, cross-faded story artwork and cinematic playback layers. */
.event-art-layer{position:absolute;inset:0;z-index:0;opacity:0;background-position:center 35%;background-size:cover;background-repeat:no-repeat;transition:opacity 220ms ease-out;pointer-events:none;will-change:opacity}
body[data-event-art] .stage{background-image:none!important}
body[data-event-art] .event-art-layer{opacity:1}
.cinematic-video{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition:opacity 550ms ease;pointer-events:none}
.cinematic-video[data-visible=true]{opacity:1}
body[data-cinematic-playing=true] #portrait,body[data-cinematic-playing=true] #companion-portrait,body[data-cinematic-playing=true] .cast-extra{opacity:0!important;visibility:hidden!important;transition:opacity 220ms ease}
body[data-cinematic-playing=true] .rain{display:none!important}
.speaker-on-video-pin{position:absolute;z-index:5;left:var(--speaker-x);top:var(--speaker-y);width:18px;height:18px;border:3px solid #fff8e8;border-radius:50%;background:#f5c96d;box-shadow:0 0 0 5px #102d36a8,0 0 18px #fff4c8;transform:translate(-50%,-50%);pointer-events:none;animation:speaker-pulse 1.45s ease-in-out infinite}
.speaker-on-video-pin[hidden]{display:none}
@keyframes speaker-pulse{0%,100%{box-shadow:0 0 0 4px #102d36a8,0 0 12px #fff4c8}50%{box-shadow:0 0 0 8px #102d3670,0 0 20px #fff4c8}}
@media(max-width:600px){body[data-event-art] .event-art-layer{background-position:center 42%;background-size:contain;background-color:#112b34}.speaker-on-video-pin{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.event-art-layer,.cinematic-video{transition:none}.speaker-on-video-pin{animation:none}}
