/* Cinematic prologue: restrained amber light, generous dialogue, original pixel sets. */
dialog.opening{--story-gold:#e5c391;--story-muted:#9aabb8;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#0b131d;color:#e9e9df;overflow:auto;z-index:1000;box-shadow:none}
.opening::backdrop{background:#0b131d}.opening *{box-sizing:border-box}.opening button{font:inherit;cursor:pointer;min-height:44px}.opening button:focus-visible{outline:2px solid #e5c391;outline-offset:4px}.opening button:disabled{opacity:.3;cursor:default}.opening-inner{min-height:100%;display:flex;flex-direction:column;position:relative}.opening-top{display:flex;justify-content:space-between;align-items:center;padding:20px 4.5%;gap:14px;min-height:76px;background:#0c141e}.opening-brand{font-size:17px;letter-spacing:4px;font-weight:700;display:flex;align-items:center;gap:12px}.opening-brand i{font-style:normal;color:var(--story-gold);font-size:28px}.opening-brand small{color:#87949f;font-size:9px;letter-spacing:2px;font-weight:400}.opening-tools{display:flex;gap:24px}.opening-tools button,.opening-reading button{border:0;background:none;color:#afbdc7;font-size:12px;padding:3px 6px}.opening-tools [data-opening="skip"]{color:#dfcbb0}.opening-scene{position:relative;isolation:isolate;flex:1;min-height:280px;height:45vh;max-height:520px;overflow:hidden;background:#14212b}.opening-scene canvas{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated;image-rendering:crisp-edges;opacity:.88}.opening-scene-shade{position:absolute;inset:0;background:linear-gradient(90deg,#08111cd9 0%,#08111c59 36%,transparent 67%),linear-gradient(0deg,#0b131d 0%,transparent 34%);pointer-events:none}.opening-location{position:absolute;top:22px;left:4.5%;right:4.5%;display:flex;justify-content:space-between;gap:12px;color:#b3c2c8;font-size:11px;letter-spacing:.06em}.opening-location span:first-child:before{content:'';display:inline-block;width:5px;height:5px;background:var(--story-gold);margin:0 9px 2px 0}.opening-caption{position:absolute;left:8%;right:6%;bottom:38px;max-width:760px}.opening-caption>span{font-size:10px;letter-spacing:3px;color:#b69a75}.opening-caption h1{font-size:clamp(28px,3.7vw,55px);letter-spacing:-.045em;line-height:1.35;margin:12px 0 10px;font-weight:600;text-wrap:balance;color:#f0e8db;white-space:pre-line}.opening-caption p{font-size:13px;color:#b6bcb9;letter-spacing:.04em}.opening[data-scene="dawn"] .opening-caption h1{color:#f1d5a7}.opening-scene-number{position:absolute;bottom:44px;right:4.5%;font-family:monospace;font-size:11px;letter-spacing:3px;color:#82929d}.opening-script{width:100%;max-width:1120px;margin:0 auto;padding:24px 48px 30px}.opening-chapters{display:flex;gap:12px;margin-bottom:28px}.opening-chapters>span{flex:1;min-width:0}.opening-chapters i{display:block;height:2px;background:#283440}.opening-chapters small{display:block;font-size:9px;color:#596b7a;margin-top:10px;letter-spacing:.04em}.opening-chapters .is-current i{background:#e5c391;box-shadow:0 0 10px #d6b78533}.opening-chapters .is-current small{color:#dbc49f}.opening-chapters .is-past i{background:#796b57}.opening-chapters .is-past small{color:#88969e}.opening-dialogue{display:flex;align-items:flex-start;gap:24px;min-height:144px}.opening-speaker-portrait{height:74px;width:64px;flex:0 0 64px;border:1px solid #3d4546;background:linear-gradient(145deg,#2e363c,#15222d);overflow:hidden;position:relative;box-shadow:4px 4px 0 #080f17}.opening-speaker-portrait>svg{width:98px;height:112px;max-width:none;transform:translate(-17px,-4px)}.opening-speaker-portrait>span{display:grid;place-content:center;height:100%;color:var(--story-gold);font-size:22px;font-weight:300}.opening-copy{flex:1;min-width:0}.opening-speaker{display:flex;align-items:baseline;gap:16px;margin-bottom:14px}.opening-speaker b{font-size:16px;color:var(--story-gold);letter-spacing:.04em}.opening-speaker span{color:#7f909e;font-size:11px}.opening-copy #opening-line{font-size:clamp(16px,1.6vw,21px);line-height:1.9;letter-spacing:-.025em;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere;margin:0;min-height:80px;font-weight:400}.opening-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #25313a;padding-top:16px;margin-top:12px}.opening-reading{display:flex;align-items:center;gap:22px}.opening-reading button{font-size:11px}.opening-keyboard{font-size:9px;color:#526777;letter-spacing:.08em}.opening-next{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;border:1px solid #b39b76;background:#ddc59e;color:#17232a;padding:14px 24px;font-size:13px!important;font-weight:700;min-width:170px}.opening-next:hover{background:#f1d9b4}.opening-next span{font-size:21px;font-weight:400}.opening-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}.opening-confirm{position:fixed;inset:0;z-index:2;background:#060d17eb;display:grid;place-items:center;padding:24px}.opening-confirm[hidden]{display:none}.opening-confirm>div{width:100%;max-width:440px;border:1px solid #5b564b;background:#121f29;padding:34px}.opening-kicker{color:#b89f7b;letter-spacing:2px;font-size:9px}.opening-confirm h2{margin:18px 0;font-size:24px;line-height:1.5}.opening-confirm p{font-size:13px;color:#aab6bc;line-height:1.8;margin-bottom:25px}.opening-confirm button{width:100%;margin-top:10px;justify-content:center}.opening-confirm [data-opening="cancel-skip"]{background:transparent;border:1px solid #43515d;color:#d5dcd9;font-size:13px}.opening-save-note{color:#d8b686;font-size:11px;line-height:1.7;margin-top:12px}.opening-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;margin:0 0 24px;border:1px solid #5c5140;background:linear-gradient(105deg,#262721,#17232a)}.opening-entry small{display:block;letter-spacing:2px;color:#bfaa88;font-size:9px;margin-bottom:6px}.opening-entry strong{font-size:16px;color:#e9d9bb}.opening-entry p{font-size:11px;color:#9dabae;line-height:1.7;margin:6px 0 0}.opening-entry button{flex-shrink:0;border:1px solid #79694f;background:none;color:#e5cdab;padding:12px 18px;font-size:12px;cursor:pointer;min-height:44px}.opening-entry button:hover{background:#d4bd8b15}
@media(min-width:1500px){.opening-caption{left:calc(50% - 590px)}}
@media(max-width:760px){.opening-top{padding:12px 20px;min-height:64px}.opening-brand{font-size:13px;letter-spacing:2px;gap:7px}.opening-brand small{display:none}.opening-brand i{font-size:23px}.opening-tools{gap:12px}.opening-tools button{font-size:10px}.opening-scene{flex:none;height:34vh;min-height:220px;max-height:330px}.opening-location{font-size:9px;top:17px;left:20px;right:20px}.opening-caption{left:24px;right:24px;bottom:28px}.opening-caption h1{font-size:30px;margin-top:10px}.opening-caption>span{font-size:8px;letter-spacing:2px}.opening-caption p{font-size:11px;line-height:1.7}.opening-scene-number{display:none}.opening-script{padding:20px 24px 24px;flex:1;display:flex;flex-direction:column}.opening-chapters{gap:7px;margin-bottom:24px}.opening-chapters small{display:none}.opening-dialogue{gap:15px;min-height:180px;flex:1}.opening-speaker-portrait{width:43px;height:53px;flex-basis:43px}.opening-speaker-portrait>svg{width:73px;height:88px;transform:translate(-15px,-3px)}.opening-speaker-portrait>span{font-size:17px}.opening-speaker{display:block;margin-bottom:13px}.opening-speaker b{font-size:14px}.opening-speaker span{display:block;font-size:9px;margin-top:6px}.opening-copy #opening-line{font-size:17px;line-height:1.85;min-height:155px}.opening-bottom{flex-wrap:wrap;margin-top:20px;gap:14px;padding-top:12px}.opening-reading{width:100%;justify-content:space-between;gap:12px}.opening-keyboard{display:none}.opening-next{width:100%;padding:12px 18px}.opening-entry{align-items:flex-start;padding:18px;gap:15px;flex-direction:column}.opening-entry button{width:100%}}
@media(max-width:360px){.opening-script{padding-left:18px;padding-right:18px}.opening-caption h1{font-size:26px}.opening-copy #opening-line{font-size:15px}.opening-dialogue{gap:12px}.opening-top{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:no-preference){.opening-caption{animation:opening-fade .7s ease both}.opening-dialogue{animation:opening-fade .9s ease both}@keyframes opening-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}
.story-archive{margin:0 0 26px;padding:24px;border:1px solid #3e4845;background:#162126}.story-archive-heading h2{font-size:18px;margin:8px 0}.story-archive-heading p{font-size:12px;color:#99aaa9;line-height:1.7}.story-archive-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.story-archive article{padding:20px;background:#101a21;border:1px solid #4d4c3f;min-width:0}.story-archive article small{font-size:9px;color:#bda77f;letter-spacing:.06em}.story-archive h3{font-size:16px;margin:12px 0;color:#e4d6bb}.story-archive article p{font-size:12px;color:#adbbb7;line-height:1.8;margin-bottom:16px}.story-archive .story-locked{border-style:dashed;border-color:#354348}.story-archive .story-locked h3{color:#94a5a9}.story-archive .story-locked small{color:#7f929a}.story-archive button{min-height:44px;font-size:12px}@media(max-width:760px){.story-archive{padding:18px}.story-archive-grid{grid-template-columns:1fr}.story-archive article{padding:18px}.story-archive article button{width:100%}}
/* Keep the stage clear for walking actors and the current speaker's gestures. */
.opening .opening-caption{top:64px;bottom:auto;left:4.5%;max-width:470px;pointer-events:none}.opening .opening-caption h1{font-size:clamp(24px,2.6vw,36px);text-shadow:0 2px 15px #08111c}.opening .opening-caption p{font-size:11px}.opening .opening-scene canvas{opacity:1}.opening .opening-scene-shade{background:linear-gradient(90deg,#08111cb0,transparent 65%),linear-gradient(0deg,#0b131d55,transparent 25%)}@media(max-width:760px){.opening .opening-caption{top:45px;left:24px;right:24px;max-width:none}.opening .opening-caption h1{font-size:23px;margin:7px 0}.opening .opening-caption>span{font-size:7px}.opening .opening-caption p{font-size:9px}.opening .opening-scene{min-height:265px;height:36vh}}
.opening .opening-scene canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}@media(max-width:760px){.opening .opening-scene canvas{object-fit:cover}}
