.rin-avatar{image-rendering:pixelated;object-fit:contain}
.voyage-select{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.voyage-select a{display:flex;gap:8px;align-items:center;padding:5px 12px 5px 8px;line-height:1.13;color:#c5bacc;text-decoration:none;background:#1a1720;border:1px solid #49414e;border-radius:6px}
.voyage-select a[aria-current]{background:#302238;border-color:#967ab0;color:#ffe9ff}
.voyage-select a:hover{border-color:#b89acc}.voyage-select img{width:30px;height:30px;object-fit:contain}
.voyage-select strong,.voyage-select small{display:block}.voyage-select strong{font-family:var(--head);font-size:1rem}
.voyage-select small{font-size:.77rem;margin-top:1px;color:#c4b8c9}
#story-screen{--gold:#ffce83;--scene-border:#49404f;--scene-sub:#b8adbd}
.play-scene.collecting-fork .story-range:not(.incoming){visibility:hidden}
[data-story-mode="two"] #story-shields{gap:6px;min-width:52px;color:#ffe7e6}
#story-shields .health-segments{display:flex;gap:2px;align-items:center}
.health-segments i{width:7px;height:10px;border:1px solid #ffa29d;background:#ee585e;border-radius:1px;box-shadow:inset 0 2px #ffc0aa}
#story-shields[aria-valuenow="1"] .health-segments i:nth-child(n+2),#story-shields[aria-valuenow="2"] .health-segments i:last-child{background:#332125;border-color:#875859;box-shadow:none}
#story-shields strong{font:inherit}
[data-practice="rescue"] .scene-hud .hud-instruments{display:grid}
[data-practice="rescue"] :is(.hud-fragments,#story-radar){display:none}
.mend-station{padding:14px clamp(12px,3vw,26px);background:#262027;border-block-start:1px solid #8a605d}
.mend-station[hidden],.mend-station [hidden]{display:none}
.mend-heading,.mend-inputs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mend-heading h3{margin:0;font:600 1.16rem var(--head);color:#ffeee1}
.mend-lamp{width:9px;height:9px;background:#ff958a;border:2px solid #ffd3b4;border-radius:50%}
#mend-mode{margin-left:auto;font:.76rem var(--mono);color:#efd2c5}
.mend-station p{color:#e6d9d5;margin:6px 0 10px;max-width:68ch}
.mend-key{min-height:40px;padding:4px 12px;border:1px solid #a87d73;background:#36272b;color:#ffebe3}
.mend-key kbd{color:#ffe0c9;margin-right:5px}
.mend-entry label{color:#dec6bf}.mend-word{display:inline-block;font:600 1.1rem var(--mono);letter-spacing:.1em;margin-left:12px;color:#ffdb97}
.mend-inputs{margin-top:5px}.mend-inputs input{width:11ch;max-width:100%;font:1.13rem var(--mono);color:#fff4e8;background:#18161c;border:1px solid #b39485;border-radius:4px;padding:7px}
.mend-inputs input[aria-invalid="true"]{border:2px dashed #ff9a89}
.roost-objective{padding:9px 16px;background:#1a2224;border-top:1px solid #49594f;color:#e5e2ce}
.roost-objective summary{cursor:pointer}.roost-objective summary strong{font:600 1rem var(--head);color:#e6d5aa}
.roost-objective summary span{margin-left:10px;font:.78rem var(--mono);white-space:nowrap;color:#c0d2bd}
.roost-objective p{margin:7px 0;max-width:70ch}.roost-hint summary{color:#c1dccb}
.duel-vital{display:flex;align-items:center;gap:7px;margin:6px 0;font:.76rem var(--mono);color:#e9ccc6}
.duel-vital meter{appearance:none;display:inline-block;width:3.5rem;height:.55rem;border:1px solid #aa776e;border-radius:2px;background:#372329}
.duel-vital meter::-webkit-meter-bar{height:100%;border:0;background:#372329}
.duel-vital meter::-webkit-meter-optimum-value{background:#ee676a}.duel-vital meter::-moz-meter-bar{background:#ee676a}
@media(max-width:410px){#story-shields .health-segments{gap:1px}.health-segments i{width:5px;height:8px}.mend-heading{gap:6px}.mend-heading h3{font-size:1.03rem}}
.learned-motion em{display:block;color:#cebed5;font-style:normal}.learned-motion span{min-width:0}
.repair-workbench{padding:14px clamp(12px,3vw,26px);border-top:1px solid #73664e;background:#242123}
.repair-console{padding:4px;outline-offset:3px}.repair-console small{color:#eac48e;font-family:var(--mono)}
.repair-console h3{margin:2px 0}.repair-console p{margin:6px 0;color:#e6d9cd}
.repair-buffer{display:flex;align-items:center;gap:12px;padding:8px 0;color:#c3b5a7}
.repair-buffer code{font:600 1.15rem var(--mono);letter-spacing:.08em;background:#15151a;color:#cde2d1;padding:4px 8px;border-radius:4px}
.repair-buffer mark{background:#ffcb86;color:#241e20}.repair-console button{min-width:42px;margin:2px}
.repair-workbench .next-room{margin-top:8px}.repair-workbench [hidden]{display:none}
#patrol-pause-note{position:absolute;z-index:2;inset:auto auto 12px 12px;padding:4px 10px;border:1px solid #e8bf82;background:#241e24;color:#ffdfa9;font:600 .85rem var(--mono);pointer-events:none}
@media(max-width:600px){#story-lesson{align-items:flex-start;flex-wrap:wrap}#story-lesson span{flex-basis:100%}}
.voyage-select a.duel-preview-link{font-size:.84rem;background:transparent;color:#e3c2a1;border:1px dashed #7e6555}
.duel-preview-heading{margin-bottom:14px}.duel-preview-heading h1{margin:0}.duel-preview-heading p{margin:4px 0;color:#c5bacc}
[data-preview="true"] :is(.story-objective,.story-controls,.story-route,.story-help,.hud-instruments){display:none}
.duel-preview-result{padding:18px}.duel-preview-result h3{margin:0 0 12px}
.patrol-trial-actions{padding:12px 18px;background:#282127}
.field-weapons{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 16px;background:#201d24;border-top:1px solid #4e4551}
.field-weapons[hidden],.weapon-button[hidden]{display:none}
.weapon-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 11px;border:1px solid #8e7561;border-radius:6px;color:#ffe0b0;background:#352b29;font-weight:600}
.weapon-button .icon{width:20px;height:20px;flex:none}.weapon-button kbd{font:.72rem var(--mono);color:inherit;background:#211e24;border-color:currentColor;padding:2px 5px}
.weapon-button.blaster-action,.duel-button.blaster-action{color:#a7edf2;background:#203236;border-color:#587e84}
.weapon-button:not(:disabled):hover,.weapon-button.pressed{border-color:currentColor;filter:brightness(1.13)}
.patrol-trial-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.patrol-trial-actions[hidden]{display:none}
@media(max-width:500px){.field-weapons,.patrol-trial-actions{padding:7px 8px;gap:5px}.weapon-button{flex:1;padding:5px 7px;gap:4px;justify-content:center;font-size:.86rem}}
@media(max-width:500px){.voyage-select{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.voyage-select a{min-width:0;padding:5px 6px;gap:5px}.voyage-select a.duel-preview-link{min-height:36px;font-size:.77rem}}
#chapter-title{display:block;color:var(--gold);font:600 .85rem var(--mono);margin-bottom:3px}
.duel-panel{padding:14px clamp(12px,3vw,30px);color:#fff3dc;background:linear-gradient(112deg,#302329,#28212a 70%,#322625);border-block:1px solid #82634a}
.duel-panel[hidden],.duel-panel [hidden]{display:none}
.duel-heading,.duel-entry-row{display:flex;align-items:center;gap:12px}
.duel-heading{justify-content:space-between}
.duel-heading small,.duel-heading b,.duel-panel label{font:600 .74rem var(--mono);color:#edbd83}
.duel-heading h3{margin:2px 0;font:600 clamp(1.2rem,2vw,1.65rem) var(--head);line-height:1.15}
.duel-heading b{border:1px solid #806853;padding:3px 7px;border-radius:4px}
.duel-panel p{margin:7px 0;color:#e4d7c9;font-size:.92rem}
#duel-word{display:block;margin:6px 0;color:#fce7bf;letter-spacing:.13em;font:600 1.65rem var(--mono);overflow-wrap:anywhere}
#duel-word strong{color:#8ce4bc}
.duel-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;border-color:#ad825a;background:#423027;color:#ffedcf}
.duel-button.quick-cut{background:transparent}
.duel-panel input{background:#17151b;color:#fff4e0;border:1px solid #c39970;border-radius:4px;font:1rem var(--mono);min-width:0;width:min(16em,100%);padding:8px}
.duel-panel input[aria-invalid="true"]{border:2px solid #ff987f}
.duel-entry-row{margin-top:4px;flex-wrap:wrap}
.keepsake-ledger{margin-top:12px;padding:9px 12px;border:1px solid #4d424c;border-radius:5px;background:#1f1b22;color:#e9dfd3}
.keepsake-ledger summary{cursor:pointer;font-weight:600}.keepsake-ledger summary b{font:500 .78rem var(--mono);color:#f3c785;margin-left:6px}
.keepsake-ledger ul{padding:0;list-style:none;margin:8px 0 2px}.keepsake-ledger li{display:flex;gap:12px;padding:4px 0}.keepsake-ledger li span{color:#bcadc0}
.story-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.story-eyebrow,.hud-kicker,.story-small,.story-chapters,.radio-from,.act-card small{font-family:var(--mono)}
.story-eyebrow,.hud-kicker,.story-small{display:flex;align-items:center;gap:8px;letter-spacing:.105em;font-size:.72rem;line-height:1.5}
.story-eyebrow{color:#d5aaf3}
.live-symbol{width:7px;height:7px;background:#d2a4f3;box-shadow:4px 0 #796087}
.story-heading h1{font-size:clamp(2rem,3.55vw,3.6rem);letter-spacing:-.043em;line-height:1.07;margin-top:3px}
.story-chapters{display:flex;flex-direction:column;align-items:flex-end;gap:6px;color:#ddd3e5;font-size:.68rem;letter-spacing:.09em}
.story-chapters em{font-style:normal;color:var(--muted)}
.story-meter{display:flex;gap:3px}.story-meter i{width:12px;height:4px;background:#38323e}.story-meter i.filled{background:#a4d6bb}.story-meter i.here{background:#c59cde}
.story-cabinet{border:1px solid var(--scene-border);border-radius:8px;background:#1a1720;overflow:hidden}
.play-scene{position:relative;isolation:isolate;width:100%;height:clamp(305px,29vw,425px);background-color:#242232;background-position:center 48%;background-size:cover;overflow:hidden}
.scene-dock{background-image:url('./assets/story/dock.jpg')}.scene-greenhouse{background-image:url('./assets/story/greenhouse.jpg')}.scene-observatory{background-image:url('./assets/story/observatory.jpg')}
#story-screen[data-room="1"] .play-scene{background-image:url('./assets/story/baggage-hall.jpg')}
#story-screen[data-room="3"] .play-scene{background-image:url('./assets/story/glass-river.jpg')}
.terrain-shade{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 68% 32%,#f2ba820b,transparent 58%),linear-gradient(180deg,#12101c48,transparent 36%,#1b243a31 70%,#1116248a),linear-gradient(110deg,#1b172d58,transparent 57%)}
.scene-panorama{position:absolute;inset:0 -3%;pointer-events:none;background:inherit;will-change:transform}
.relay-wildlife{position:absolute;inset:0;pointer-events:none}
.relay-animal{position:absolute;pointer-events:none}
.relay-flight{width:100%;height:100%;overflow:hidden}
.relay-wings{display:block;height:100%;max-width:none}
#story-screen[data-story-mode="two"] #story-board{image-rendering:auto}
.scene-greenhouse .terrain-shade{background:radial-gradient(ellipse at 69% 27%,#d1eac017,transparent 56%),linear-gradient(180deg,#10242850,transparent 42%,#14312b35 75%,#1425268a)}
.scene-observatory .terrain-shade{background:radial-gradient(ellipse at 54% 17%,#c9caff11,transparent 60%),linear-gradient(180deg,#191a315b,transparent 35%,#27294432 65%,#13132298)}
#story-screen[data-room="3"] .terrain-shade{background:radial-gradient(ellipse at 53% 32%,#d8eff621,transparent 57%),linear-gradient(180deg,#13223368,transparent 40%,#142e3d29 72%,#14233590)}
.scene-hud::before{content:"";position:absolute;z-index:-1;inset:-17px -22px -26px;background:linear-gradient(#12131ac4,#15142374 56%,transparent)}
.direction-arrow{font:normal .77rem var(--mono);color:#abbbcc}
.walk-control{touch-action:none;user-select:none;-webkit-touch-callout:none}
.story-range{position:absolute;bottom:10px;left:13px;display:flex;align-items:center;gap:7px;max-width:75%;padding:5px 9px;border:1px solid #6caca4;border-radius:4px;background:#172a2cef;color:#c5f6e8;font-size:.81rem;pointer-events:none}
.story-range .icon{width:15px;height:15px;flex-shrink:0}
.story-range.incoming{color:#ffe2b1;background:#322722ed;border-color:#bf8b61}
.story-range[data-threat="chase"]{color:#ffe4a8;background:#322920f5;border-color:#d99455}
.story-range[data-threat="strike"]{color:#fff3dd;background:#58252cf5;border-color:#ffab86;border-left-width:4px}
.story-range[data-threat="return"]{color:#c3e3d8;background:#1a2c2bf2}
.play-scene.collecting-fork .story-range[data-threat="chase"]{visibility:visible}
.story-controls .pulse-control kbd{color:#a7f2e7;border-color:#578d88;background:#273a3b}
.control-line{flex-wrap:wrap}
.motion-buttons{flex:1}
@media(max-width:410px){.motion-control .direction-arrow{display:none}.scene-hud h2{line-height:1.04}.story-range{font-size:.72rem;bottom:6px;left:6px}}
.scene-hud{position:absolute;inset:16px 21px auto 21px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;z-index:2;pointer-events:none;color:white;text-shadow:1px 2px 3px #100c19}
.hud-kicker{display:flex;align-items:center;gap:7px;color:#ffe1ab;font-size:.68rem;letter-spacing:.095em}
.hud-kicker>span{display:inline-block;width:6px;height:6px;background:#ffd492;box-shadow:0 0 6px #eaac69}
.hud-kicker>b{color:#bbaaac;font-weight:400}
.scene-hud h2{margin-top:3px;font-family:var(--head);font-size:clamp(1.4rem,2.1vw,2rem);letter-spacing:-.02em}
.hud-stats{display:flex;gap:6px;font:.76rem var(--mono);text-shadow:none}
.hud-instruments{display:grid;justify-items:end;gap:5px}
#story-radar{display:block;width:clamp(88px,11vw,155px);height:clamp(20px,2.4vw,32px);padding:3px;background:#151321dd;border:1px solid #82708b8c;border-radius:4px;image-rendering:pixelated}
.learned-motion{--power-metal:#ebbd78;display:flex;align-items:center;gap:12px;padding:10px clamp(11px,2vw,19px);border-top:1px solid #5b5040;border-inline-start:3px solid var(--power-metal);background:#292520;color:#f5eee2}
.learned-motion[hidden],.crew-roll[hidden],.crew-roll [hidden]{display:none}
.learned-motion[data-phase=walk]{--power-metal:#a2d8d1;background:#20292a;border-top-color:#39494a}
.learned-motion[data-phase=used]{--power-metal:#a6d9aa;background:#212a26}
.learned-motion>kbd{flex:none;min-width:36px;padding:5px 7px;text-align:center;border:1px solid var(--power-metal);border-bottom-width:3px;border-radius:5px;background:#1a1b1c;color:var(--power-metal);font:600 1.04rem var(--mono)}
.learned-motion small{margin-inline-end:8px;color:var(--power-metal);font:.7rem var(--mono)}
.learned-motion strong{color:#fbf4e9;font-size:.95rem}
.learned-motion p{margin:3px 0 0;color:#e2dcd1;font-size:.89rem;line-height:1.4}
.motion-control.teaching-key kbd{border-color:#a1d6c9;color:#dcfff5;background:#294039}
.power-notes ul{padding-inline-start:0;list-style:none}
.power-notes li{display:flex;align-items:baseline;gap:9px;margin:.6em 0;line-height:1.45}
.power-notes li>kbd{flex:none}
.crew-roll{padding:14px clamp(12px,3vw,26px);background:#252422;border-top:2px solid #b49a67;color:#f1eee1}
.roll-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.roll-heading h3,.crew-roll p{margin:0}
.roll-heading span{font:.75rem var(--mono);color:#e4c990}
.crew-roll p{margin:.45rem 0;color:#e2dccf;line-height:1.4}
.roll-page{margin:.65rem 0;padding:8px 13px;background:#e2d4b8;color:#282926;border-inline-start:5px solid #998465;font:600 1rem/1.6 var(--mono);max-width:28em;border-radius:2px}
#roll-existing{white-space:pre-line}
#roll-new{border-top:1px dashed #9d8d71}
#roll-input{width:100%;border:0;border-bottom:1px solid #82755d;background:#fff3d9;color:#192c28;font:inherit;line-height:1.6;border-radius:0}
.crew-roll button{min-height:40px;padding:4px 12px}.crew-roll button kbd{margin-inline-end:5px}
.find-targets{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px;color:#ceb7dd;font-size:.83rem}
.find-targets button{min-height:36px;padding:4px 8px}
.story-dialog pre{max-width:100%;overflow:auto}
@media(pointer:coarse){#story-screen .find-targets button{min-height:44px}}
.hud-stats>span{display:flex;align-items:center;justify-content:center;gap:3px;padding:5px 8px;min-height:29px;border:1px solid #77657b85;background:#191622df;border-radius:4px;color:#e9dfed}
.hud-stats img{width:18px;height:18px;image-rendering:pixelated}.hud-stats .icon{width:14px;height:14px;stroke:#9de5c5;fill:#3a776580;stroke-width:1.7}.hud-stats .lost .icon{stroke:#887889;fill:none}
#story-board{position:absolute;display:block;inset:0;width:100%;height:100%;image-rendering:pixelated;outline:none}
#story-board:focus-visible{outline:2px solid #ccb3e5;outline-offset:-3px}
#story-count{position:absolute;bottom:10px;right:13px;border:1px solid #e8c392;border-radius:4px;color:#ffdc98;background:#2c2427;font:.78rem var(--mono);padding:3px 8px}
.story-objective{display:flex;align-items:center;gap:12px;padding:12px 19px;background:#26202b;border-top:1px solid #534451}
.objective-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;border:1px solid #594735;background:#352d28;border-radius:5px;color:var(--gold)}
.objective-icon .icon{width:18px;height:18px}.story-small{font-size:.64rem;color:#e7bc85}
.story-objective p{margin:2px 0 0;color:#f1e9ee;line-height:1.4;font-size:.98rem}
.first-cue{font-size:.80rem;white-space:nowrap;margin-left:auto;color:#dfd2e7}
.first-cue kbd{color:#f5dcad;margin:0 3px;border-color:#665644;background:#382e28}
.story-controls{padding:10px 17px;border-top:1px solid #39313c;border-radius:0 0 7px 7px;background:#1d1922}
.control-line,.motion-buttons,.motion-control,.guide-trigger,.control-caption,.story-section-label,.radio-from,.story-end-actions{display:flex;align-items:center}
.control-line{gap:15px}.control-caption{flex-shrink:0;gap:6px;font-size:.82rem;color:#c9bfcc}
.control-caption .icon,.guide-trigger .icon{width:17px;height:17px;color:#beaccd}
.motion-buttons{gap:5px 8px;flex-wrap:wrap}
.motion-control,.guide-trigger,.story-help button{display:inline-flex;align-items:center;gap:6px;color:#c9becf;background:transparent;border:1px solid transparent;padding:4px;border-radius:4px;font-size:.83rem}
.motion-control kbd{font-size:.83rem;min-height:1.6rem;min-width:1.65rem;line-height:1;background:#332b39;border-color:#54475b;color:#efe2f8}
.motion-control:not(:disabled):hover,.motion-control.pressed{background:#392c40;color:#f2dfff}.motion-control.pressed kbd{background:#c19ed5;border-color:#986db6;color:#241a2c}
.guide-trigger{margin-left:auto;background:#292330;border-color:#46384d;padding:5px 9px}
.count-pad{margin-top:8px;display:flex;flex-wrap:wrap;gap:4px}.count-pad button{min-width:34px;padding:5px;font: .8rem var(--mono)}
.story-lower{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-top:13px;background:#1b1821;border:1px solid var(--subline);border-radius:7px;padding:13px 15px}
.story-radio{display:flex;align-items:center;gap:12px;min-width:0}
.echo-portrait{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;background:#2a2634;border:1px solid #504456;border-radius:6px}.echo-portrait img{width:32px;height:32px;image-rendering:pixelated}
.radio-from{gap:9px;color:#a89bb0;font-size:.61rem;letter-spacing:.065em}.radio-from strong{color:#d4adf2;font-size:.8rem}
.radio-copy p{color:#ddd3e3;font-size:.91rem;line-height:1.48;margin:2px 0 0;text-wrap:pretty}
.story-help{display:flex;align-items:center;flex-shrink:0;gap:5px}.story-help button{white-space:nowrap;font-size:.77rem;padding:5px 7px}
.story-help button:first-child{color:#d9bce9;background:#2d2334;border-color:#483850}.story-help .icon{width:14px;height:14px}
.story-route{margin-top:21px}.story-section-label{gap:9px;margin-bottom:12px}
.story-section-label .icon{color:var(--purple);width:18px;height:18px}.story-section-label h2{font-size:1.16rem}
.story-act-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.act-card{display:flex;align-items:center;gap:10px;padding:9px 11px;background:#1a1720;border:1px solid var(--subline);border-radius:6px;min-width:0}
.act-thumbnail{flex-shrink:0;width:55px;aspect-ratio:1.6;border-radius:3px;background-size:cover;background-position:65% center;border:1px solid #49414e}
.act-card>span:nth-child(2){min-width:0}.act-card small,.act-card strong{display:block}.act-card small{font-size:.59rem;letter-spacing:.07em;color:#ab9ab4}.act-card strong{font:1.02rem var(--head);color:#e4dae9;line-height:1.2}
.act-card.active{border-color:#5a4167;background:#241d2c}.act-card.active small,.act-card.active .act-status{color:var(--purple)}
.act-card.locked .act-thumbnail{filter:saturate(.6) brightness(.77)}.act-status{margin-left:auto;color:var(--muted)}.act-status .icon{width:15px}.act-card.done .act-status{color:var(--mint)}
.act-journal{min-width:0}.act-journal summary{cursor:pointer;list-style:none}.act-journal summary::-webkit-details-marker{display:none}.act-journal summary:hover,.act-journal[open] summary{border-color:#8b7196}
.act-chapters{list-style:none;margin:0;padding:4px 8px;background:#1a1720;border-radius:4px}
.act-chapters li{display:flex;align-items:flex-start;gap:6px;padding:8px 0;color:#cdbfd2;border-bottom:1px solid #38303e}.act-chapters li:last-child{border:0}
.act-chapters .chapter-number{font: .66rem var(--mono);color:#ab96b6;padding-top:3px}
.act-chapters strong{font:.94rem var(--head);line-height:1.15}.act-chapters li[aria-current] strong{color:#ebcfff}
.act-chapters p{font-size:.82rem;line-height:1.35;color:#cbbfd1;margin:4px 0}.act-chapters .icon{width:12px;height:12px;flex-shrink:0;margin:3px 0 0 auto;color:#aab8ad}
@media(max-width:690px){.story-act-list:has(.act-journal[open]){grid-template-columns:1fr}.act-journal[open] .act-chapters{padding:4px 10px}.story-act-list:has(.act-journal[open]) .act-card{flex-direction:row;align-items:center}.story-act-list:has(.act-journal[open]) .act-thumbnail{width:46px}}
.room-cut{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#12101ac7,#1913239e);z-index:3;padding:10px}
.cut-card{width:min(92%,460px);padding:19px 22px;background:#211a29f5;border:1px solid #836486;border-radius:7px;box-shadow:0 5px 25px #0e0b15a0;color:#f0e9f3}
.cut-card .hud-kicker{color:#a7e5cd}.cut-card .hud-kicker .icon{width:16px;height:16px}.cut-card h3{margin:4px 0;font-size:1.7rem}.cut-card p{color:#d4c7dc;font-size:.93rem;line-height:1.45}
.next-room{margin-top:11px;background:#b9e5cd;color:#19291f;border-color:#b9e5cd;padding:7px 13px;font-weight:600}.next-room:not(:disabled):hover{background:#d2f3df;color:#19291f}
.story-ending{overflow:hidden;border:1px solid #594854;border-radius:9px;background:#28212a}
.ending-art{min-height:clamp(220px,24vw,390px);background:url('./assets/story/reunion.jpg') center/cover no-repeat}
.ending-text{padding:20px 25px 24px}.ending-text h2{margin:6px 0;font-size:clamp(1.8rem,3vw,2.7rem)}.ending-text p{max-width:70ch;color:#dbd0e0}
.story-end-actions{gap:9px;margin-top:15px;flex-wrap:wrap}
.story-dialog{width:min(480px,calc(100vw - 24px))}.story-dialog p{font-size:.92rem}.story-dialog .story-guide-keys{list-style:none;padding:0;display:grid;gap:5px}.story-guide-keys li{display:flex;gap:10px;align-items:center;color:#ddd3e3;font-size:.86rem}.story-dialog details{border-top:1px solid var(--line);padding-top:10px}.story-dialog summary{cursor:pointer;color:var(--purple)}.story-dialog pre{color:#b9e5cd}
@media(pointer:coarse){#story-screen .motion-control,#story-screen .guide-trigger,#story-screen .count-pad button,#story-screen .story-help button{min-height:44px}}
@media(min-width:1650px){.play-scene{height:470px}}
@media(max-width:1180px){.story-help{flex-direction:column;align-items:flex-start}.act-thumbnail{width:46px}.act-card{gap:8px}.control-line{gap:9px}.motion-buttons{gap:2px}}
@media(max-width:690px){.story-heading{margin:1px 0 12px}.story-heading h1{font-size:2.35rem}.story-eyebrow{font-size:.65rem}.story-chapters{font-size:.58rem}.story-meter i{width:7px}.play-scene{height:285px;background-position:62% center}.scene-hud{inset:12px 13px auto}.scene-hud h2{font-size:1.45rem}.hud-kicker{font-size:.58rem}.hud-stats{gap:3px;font-size:.65rem}.hud-stats>span{padding:3px 5px;min-height:22px;gap:1px}.hud-stats .icon{width:11px;height:11px}.hud-stats img{width:14px;height:14px}.story-controls{padding:7px 8px}.control-line{gap:5px;align-items:flex-start}.control-caption{display:none}.motion-control,.guide-trigger{min-height:36px;font-size:.76rem;padding:2px}.guide-trigger{padding:3px 6px}.motion-buttons{gap:2px 4px;flex:1}.story-objective{gap:8px;padding:9px 11px}.story-objective p{font-size:.9rem}.objective-icon{width:29px;height:29px}.first-cue{display:none}.story-lower{align-items:flex-start;flex-direction:column;gap:7px;margin-top:10px;padding:11px}.story-help{flex-direction:row;align-self:flex-end}.story-act-list{gap:5px}.act-card{flex-direction:column;align-items:flex-start;gap:4px;padding:5px;position:relative}.act-thumbnail{width:100%;aspect-ratio:3.3}.act-card .act-status{position:absolute;top:7px;right:7px;line-height:1;background:#191522cd;border-radius:3px}.act-card .act-status .icon{width:11px;height:11px}.act-card strong{font-size:.85rem}.story-route{margin-top:14px}.story-section-label{margin-bottom:7px}.echo-portrait{width:36px;height:36px}.radio-copy p{font-size:.87rem}.ending-text{padding:14px}.ending-art{background-position:66% center}}
@media(max-width:410px){.play-scene{height:260px}.scene-hud h2{font-size:1.28rem}.hud-stats{gap:2px}.story-chapters{gap:4px}.story-meter{gap:2px}.story-heading h1{font-size:2.08rem}.motion-control{gap:3px}.motion-control kbd{min-width:1.35rem;min-height:1.4rem;font-size:.73rem}.guide-trigger span{display:none}.guide-trigger{padding:0 5px}.cut-card{padding:13px}.cut-card h3{font-size:1.3rem}.cut-card p{font-size:.82rem}}
