#screen-dialogue{max-width:1180px;margin:0 auto;padding:22px clamp(14px,3vw,38px) 30px}.dialogue-toolbar,.dialogue-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialogue-toolbar{margin:0 0 16px;color:#b9c8ce;font-size:12px}.dialogue-toolbar span{letter-spacing:.1em;color:#c9b88c}.dialogue-toolbar button,.dialogue-actions button{padding:10px 16px;font-size:12px}.story-theatre{--speaker:#a4c9d5;border:1px solid #465862;border-radius:12px;overflow:hidden;box-shadow:0 18px 60px #0005}.story-scenery{height:clamp(200px,36vh,330px);position:relative;overflow:hidden;color:#bba97c;background:radial-gradient(ellipse at 50% 80%,#344e56,#11242f 56%,#0a151f)}.story-scenery>svg{position:absolute;width:100%;height:100%;opacity:.46;inset:0}.chapter-mine .story-scenery{color:#9bd1b2;background:radial-gradient(ellipse at 50% 90%,#344d42,#13282b 55%,#0a151f)}.chapter-city .story-scenery{color:#d3c1a1}.chapter-orbit .story-scenery,.chapter-quantum .story-scenery{color:#c9b1e9;background:radial-gradient(ellipse at 50% 30%,#41405a,#16243b 55%,#0b1728)}.chapter-life .story-scenery{color:#96d4ad}.chapter-fleet .story-scenery{color:#a4c3d9;background:linear-gradient(#10253c,#35535d)}.story-place{position:absolute;left:25px;top:20px;right:20px;text-shadow:0 2px 8px #07121c}.story-place small{font-size:11px;letter-spacing:.15em;color:#d9cfb4}.story-place h2{font-size:clamp(18px,2.4vw,27px);margin:8px 0;font-weight:500;color:#eff1e7}.story-cast{position:absolute;bottom:0;inset-inline:0;display:flex;justify-content:space-evenly;align-items:end;pointer-events:none}.story-cast figure{width:160px;height:220px;margin:0;position:relative;transition:filter .18s,opacity .18s;color:var(--person)}.story-cast svg{width:100%;height:100%;filter:drop-shadow(0 3px 10px #0009)}.story-cast figure.listening{filter:saturate(.55) brightness(.7);opacity:.7}.story-cast figcaption{position:absolute;bottom:4px;left:0;right:0;text-align:center;font-size:10px;text-shadow:0 1px 4px #000}.story-speech{position:relative;min-height:168px;padding:20px 28px 27px;border-top:2px solid var(--speaker);background:linear-gradient(115deg,#172933,#101d28);color:#eef1ed}.story-name{display:flex;align-items:baseline;gap:12px}.story-name strong{font-size:18px;color:var(--speaker);font-weight:600}.story-name span{font-size:11px;color:#9eb0bb}.story-speech>p{font-size:clamp(16px,1.5vw,19px);line-height:1.95;margin:15px 0 10px;max-width:900px;overflow-wrap:anywhere}.story-page{position:absolute;bottom:10px;right:19px;color:#8ea6b0;font-size:11px}.dialogue-actions{margin-top:15px;flex-wrap:wrap}.dialogue-actions>div{display:flex;gap:8px}.dialogue-actions .launch-button{min-width:190px}.dialogue-hint{font-size:11px;text-align:right;color:#859aa7;margin-top:10px}.story-backlog{max-height:240px;overflow:auto;background:#09151e;padding:15px 25px}.story-backlog p{display:grid;grid-template-columns:75px 1fr;gap:10px;font-size:12px;line-height:1.8;color:#bbcad0}.story-backlog b{color:#d8caa3;font-weight:500}.story-episode .episode-brief blockquote{font-style:normal;border-left:2px solid #9c8b62;padding-left:14px}.story-replay{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.story-replay button{font-size:11px}.story-locked{padding:32px;border:1px solid #394c56;background:#101e29;border-radius:10px;line-height:1.9}.story-cast-list{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.story-cast-list span{font-size:11px;color:#cbd6da;background:#1b2b36;border:1px solid #354b57;border-radius:20px;padding:6px 12px}.story-characters{margin-top:15px;border-top:1px solid #354953;padding-top:14px}.story-characters summary{cursor:pointer;color:#c5d6dc;font-size:12px}.story-characters article{display:flex;gap:15px;border-bottom:1px solid #2b3d49;padding:12px 0}.story-characters .character-mini{width:65px;height:93px;flex:none}.character-mini svg{width:100%;height:100%}.story-characters h4{margin:4px 0;color:#d5dcd8;font-size:14px}.story-characters p{font-size:12px;line-height:1.8;color:#9fb5c0;margin:4px 0}.story-result-dialogue{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-bottom:18px;padding:15px;border:1px solid #5b685b;border-radius:6px;background:#14272d}.story-result-dialogue p{font-size:13px;color:#c3d2d3;margin:0}.story-result-dialogue button{font-size:13px;padding:12px 18px}
@media(max-width:600px){#screen-dialogue{padding-top:14px}.dialogue-toolbar{font-size:10px}.dialogue-toolbar button{font-size:11px;padding:8px}.story-scenery{height:210px}.story-place{left:17px;top:14px}.story-cast figure{width:120px;height:180px}.story-place h2{font-size:18px}.story-speech{padding:17px 18px 28px;min-height:200px}.story-name{gap:8px;flex-wrap:wrap}.story-name span{font-size:10px}.story-speech>p{font-size:16px;line-height:1.85}.dialogue-actions{gap:9px}.dialogue-actions button{padding:10px 12px}.dialogue-actions .launch-button{min-width:0;flex:1}.dialogue-hint{display:none}.story-backlog{padding:12px}.story-backlog p{grid-template-columns:50px 1fr}.story-cast-list{padding:5px 0}}
@media(prefers-reduced-motion:reduce){.story-cast figure{transition:none}}
.dialogue-actions>.launch-button{width:auto;margin:0;flex:0 0 auto;min-height:40px}.dialogue-actions>div{flex-wrap:wrap}@media(max-width:600px){.dialogue-actions>.launch-button{flex:1 1 100%}.dialogue-actions>div{gap:5px}.dialogue-actions>div>button{font-size:11px;padding:9px}}

/* Painted art is composited at its intended reading size, independently of text. */
#screen-dialogue{max-width:1280px;padding-top:16px}
.story-theatre{border-color:#71614a;border-radius:4px;box-shadow:0 18px 65px #0007,inset 0 0 0 1px #c4aa6c22}
.story-scenery{height:clamp(290px,45vh,440px)}
.painted-scenery{position:absolute;inset:0;display:block;background:#1a242c}
.painted-scenery img{width:100%;height:100%;object-fit:cover;object-position:center 50%;display:block}
.story-scenery::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(#07111d55,transparent 24%,transparent 72%,#0b1524c9);z-index:2}
.story-place{z-index:4;left:0;right:0;top:0;text-align:center;padding:12px 20px;background:linear-gradient(#08111cda,#08111c66,transparent);pointer-events:none}
.story-place small{font-size:10px;letter-spacing:.17em;color:#e2c48c}.story-place h2{font-size:clamp(16px,1.7vw,23px);margin:5px 0;text-shadow:0 2px 5px #000}
.story-cast{inset:0;justify-content:space-between;padding:0 4%;z-index:1;align-items:stretch}
.story-cast figure{height:100%;width:35%;max-width:390px;filter:none}
.story-cast figure.listening{opacity:1;filter:brightness(.9) saturate(.95)}
.story-cast figure.speaking{filter:drop-shadow(0 0 13px #ffe5ab1c)}
.painted-portrait{display:block;position:relative;width:100%;aspect-ratio:2/3}
.story-cast .painted-portrait{position:absolute;top:22px;left:0;filter:drop-shadow(0 8px 9px #040b1680)}
.painted-portrait img{display:block;width:100%;height:auto;position:relative;z-index:1}
.story-cast [data-person=lin] .painted-portrait{transform:scaleX(-1)}
.portrait-placeholder{display:none}.art-failed img{visibility:hidden}.art-failed .portrait-placeholder{display:grid;position:absolute;inset:0;place-items:center;color:#e1d2b3;font-size:18px;border:1px solid #a79057;background:#172531}
.story-cast figcaption{bottom:9px;font-size:10px;letter-spacing:.25em;color:#e5d7ba;z-index:4;text-shadow:0 1px 4px #000}
.story-speech{min-height:150px;padding:18px 30px 26px;background:linear-gradient(115deg,#16232fee,#0c1622fa);border-top:1px solid #bda16c;box-shadow:inset 0 1px #f5e1a51a}
.story-name strong{font-size:19px;letter-spacing:.12em}.story-speech>p{margin:12px 0 5px;line-height:1.85;font-size:clamp(16px,1.4vw,19px)}
.character-mini .painted-portrait{height:100%;aspect-ratio:auto;overflow:hidden}.character-mini .painted-portrait img{width:100%;height:140%;object-fit:cover;object-position:top}
@media(max-width:600px){
 #screen-dialogue{padding:10px 10px 22px}.dialogue-toolbar{margin-bottom:10px}.dialogue-toolbar span{font-size:9px;letter-spacing:.04em}
 .story-scenery{height:300px}.story-cast{padding:0;left:-28px;right:-28px}.story-cast figure{width:56%;max-width:none;height:100%}
 .story-cast .painted-portrait{top:55px}.story-place{padding:10px 6px}.story-place h2{font-size:16px;margin:5px 0}.story-place small{font-size:9px}
 .story-speech{padding:15px 17px 25px;min-height:160px}.story-speech>p{font-size:16px;line-height:1.85}.story-name strong{font-size:17px}.story-name span{font-size:10px}
 .dialogue-actions{margin-top:10px}.story-cast figcaption{display:none}
}
