:root{color-scheme:dark;--ink:#1e3436;--paper:#f4efe3;--muted:#9badab;--gold:#d8b879;--line:rgba(213,224,214,.16);font-family:Arial,Helvetica,sans-serif;background:#182b30;color:#e7e8db}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #d39143;outline-offset:4px}button[hidden],[hidden]{display:none!important}.skip-link{position:absolute;left:20px;top:-70px;z-index:20;padding:14px;background:var(--paper);color:var(--ink)}.skip-link:focus{top:10px}.masthead{height:76px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:12px;letter-spacing:2px;font-weight:700;text-decoration:none;color:#e2e9de;display:flex;align-items:center;gap:12px}.brand-mark{font-size:30px;color:var(--gold);font-weight:normal}.brand-divider{color:#5f7879;font-weight:400;padding:0 5px}.edition{font-size:10px;letter-spacing:1.7px;color:#a2b3ad;font-weight:400}.app-shell{max-width:1720px;margin:0 auto;min-height:calc(100dvh - 76px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(400px,1fr)}.world-panel{padding:52px 5.4% 24px;min-width:0;background:radial-gradient(ellipse at 45% 25%,#2b4245,transparent 72%)}.scene-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:12px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700}.live-dot{font-size:9px;letter-spacing:1.3px;color:#a8bab2;display:flex;align-items:center;gap:8px}.live-dot i{width:5px;height:5px;background:#c8b37a;border-radius:50%}.stage-wrap{position:relative;background:#172930;box-shadow:0 28px 66px #0e1e2670;border:1px solid #73857a26;padding:10px}canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;image-rendering:pixelated;image-rendering:crisp-edges}.stage-corner{position:absolute;width:20px;height:20px;pointer-events:none}.top-left{left:-1px;top:-1px;border-top:1px solid #9ba28a;border-left:1px solid #9ba28a}.bottom-right{right:-1px;bottom:-1px;border-right:1px solid #9ba28a;border-bottom:1px solid #9ba28a}.world-caption{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;font:italic 13px/1.7 Georgia,serif;color:#b3c0b9;margin-top:21px}.blockout-tag{font:8px/1.5 Arial,sans-serif;letter-spacing:1.1px;border:1px solid #7f94864d;padding:5px 7px;white-space:nowrap;color:#9dad9c}.stage-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:25px;margin-top:34px}.tiny-label{font-size:9px;letter-spacing:1.5px;color:#d3be8d}.stage-footer p{font-size:12px;line-height:1.7;color:#afbeb5;max-width:420px;margin:9px 0 0}.quiet-button{align-self:flex-start;background:none;border:1px solid #81948d55;padding:9px 13px;color:#c8d2c7;font-size:11px;white-space:nowrap}.inspector{margin-top:38px;font-size:11px;color:#9dadab}.inspector summary{cursor:pointer}.inspector summary span{display:block;font-size:10px;color:#7e9492;margin-top:7px;margin-left:13px}.inspector pre{font-size:10px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:#14272c;max-height:300px;overflow:auto}.reading-panel{background:var(--paper);color:var(--ink);padding:49px 11% 25px;display:flex;flex-direction:column;min-width:0}.book-heading .eyebrow{color:#768276;font-size:9px;letter-spacing:2px}h1{font:normal clamp(38px,4.15vw,66px)/1.01 Georgia,'Times New Roman',serif;letter-spacing:-2.3px;margin:20px 0 18px}.title-dot{color:#b78849}.deck{font:italic 15px/1.65 Georgia,serif;color:#707c70;margin:0 0 30px}.setup{padding-top:23px;border-top:1px solid #b3b5a84d;display:flex;flex-direction:column;gap:18px}.form-row{display:grid;gap:14px}.form-row.two{grid-template-columns:1fr 1fr}label{display:flex;flex-direction:column;gap:8px;font-size:10px;font-weight:700;color:#6d796d;letter-spacing:.3px}select,input{width:100%;min-width:0;border:1px solid #9eaa974f;background:#fffdf455;color:var(--ink);border-radius:0;padding:12px 10px;font-size:12px;font-weight:400;letter-spacing:0;color-scheme:light}input{font-family:monospace;font-size:13px}.setup-note{font-size:11px;line-height:1.75;color:#7a806e;margin:1px 0 3px;min-height:38px}.button-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.primary{background:#234344;color:#f3ecda;border:1px solid #234344;padding:15px 21px;font-size:12px;letter-spacing:.2px;display:flex;gap:25px;justify-content:space-between;align-items:center}.primary:not(:disabled):hover{background:#345453}.secondary{padding:13px 11px;font-size:11px;border:1px solid #a6ae9c80;background:transparent;color:#415a51}.chapter-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:22px;border-top:1px solid #a2ac965e}.muted{font-size:10px;color:#809082}h2{font:normal 23px/1.3 Georgia,serif;letter-spacing:-.2px;margin:14px 0 18px}.prose{font:17px/1.9 Georgia,'Times New Roman',serif;margin:0 0 23px;color:#39493f;min-height:155px}.choice-list{display:grid;gap:9px;margin:12px 0}.choice{padding:15px 16px;border:1px solid #9daa9577;background:#e7e7d759;color:#2d4943;text-align:left;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:15px}.choice:hover{background:#e1e5d3}.choice .choice-arrow{color:#967d4a}.route-notice{font-size:11px;line-height:1.7;color:#80836f;margin:10px 0 15px;min-height:18px}.transport{display:flex;flex-wrap:wrap;gap:0;margin-top:17px}.transport button{border:0;background:transparent;font-size:10px;color:#6c7f6d;padding:8px 12px 8px 0;margin-right:10px}.transport button:hover{text-decoration:underline}.transcript{border-top:1px solid #abb39f55;padding-top:14px;margin-top:20px;color:#6c786b;font-size:11px}.transcript summary{cursor:pointer}.transcript p{font:14px/1.85 Georgia,serif}.transcript h3{font:16px/1.5 Georgia,serif}.message{font-size:11px;line-height:1.6;color:#887142;min-height:30px;padding-top:12px}.reading-footer{margin-top:auto;padding-top:32px;display:flex;justify-content:space-between;gap:14px;font-size:8px;letter-spacing:1.1px;color:#8f9987}.reading-footer b{font-weight:400;padding:0 5px}body.running .book-heading h1{font-size:36px;line-height:1.05;letter-spacing:-1px;margin:13px 0 20px}body.running .book-heading h1 br{display:none}body.running .deck{display:none}body.running .reading-panel{padding-top:37px}body.running .prose{min-height:190px}body.running .reading-footer{padding-top:25px}@media(min-width:1450px){.world-panel{padding-top:70px}.reading-panel{padding-left:12%;padding-right:12%}.stage-wrap{margin-top:50px}.prose{font-size:18px}}@media(max-width:1020px){.app-shell{grid-template-columns:minmax(0,1fr) minmax(350px,1fr)}.world-panel{padding:38px 6% 20px}.reading-panel{padding:37px 8% 24px}.desktop-only{display:none}.stage-footer{flex-direction:column}.scene-head{align-items:flex-start}.live-dot{font-size:8px}.world-caption{flex-direction:column}.blockout-tag{font-size:7px}}@media(orientation:portrait),(max-width:740px){.masthead{height:56px;padding:0 6%}.brand{font-size:10px;gap:8px}.brand-mark{font-size:24px}.brand .edition{font-size:8px;letter-spacing:1.1px}.app-shell{display:flex;flex-direction:column;min-height:calc(100dvh - 56px)}.world-panel{padding:22px 6% 20px}.scene-head{margin-bottom:16px}.stage-wrap{padding:5px;max-width:670px;margin:0 auto}.world-caption{margin-top:12px;font-size:12px;display:block}.blockout-tag{display:none}.stage-footer{padding-top:14px;margin-top:17px;flex-direction:row;align-items:flex-start}.stage-footer p{font-size:11px;margin-top:5px}.tiny-label{font-size:8px}.quiet-button{padding:8px 10px}.inspector{margin-top:14px}.inspector summary span{display:none}.reading-panel,body.running .reading-panel{padding:31px 8% 23px}.book-heading h1{font-size:50px;margin:13px 0 14px}.book-heading h1 br{display:none}.deck{margin-bottom:23px;font-size:14px}.deck br{display:none}.prose,body.running .prose{font-size:17px;min-height:0}.reading-footer{margin-top:22px}.scene-head .eyebrow{font-size:9px}.live-dot{font-size:8px}body.running .book-heading h1{font-size:31px}body.running .book-heading .eyebrow{font-size:8px}.chapter-line{padding-top:16px}.message{min-height:21px}}@media(max-width:365px){.form-row.two{grid-template-columns:1fr}.edition{display:none}.reading-footer{line-height:1.8;flex-direction:column;gap:3px}.button-row{align-items:stretch;flex-direction:column}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Keep the stage visible while the reader scrolls prose: a true split viewport. */
body{height:100dvh;overflow:hidden}.app-shell{height:calc(100dvh - 76px);min-height:0}.world-panel,.reading-panel{overflow-y:auto;min-height:0}.reading-panel{overscroll-behavior:contain}
@media(orientation:portrait),(max-width:740px){.app-shell{height:calc(100dvh - 56px);min-height:0}.world-panel{flex:0 0 auto;overflow:hidden;padding:16px 6% 14px}.world-panel .scene-head{margin-bottom:12px}.world-panel .stage-wrap{width:100%;max-width:min(670px,calc(71dvh - 90px))}.world-caption,.stage-footer,.inspector{display:none}.reading-panel,body.running .reading-panel{flex:1 1 0;min-height:0;padding:24px 8% 20px;overflow-y:auto}body.running .book-heading .eyebrow{display:none}body.running .book-heading h1{font-size:28px;margin:3px 0 20px}.reading-footer{margin-top:12px}}

@media(orientation:portrait),(max-width:740px){.stage-footer{display:flex;border:0;padding:0;margin:8px 0 0;justify-content:flex-end}.stage-footer>div{display:none}.stage-footer .quiet-button{font-size:9px;padding:4px 8px}}

.import-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 4px;padding:13px 0;border-top:1px solid #abb39f55;border-bottom:1px solid #abb39f55}
.import-row p{flex:1 1 200px;margin:0;color:#727e70;font-size:10px;line-height:1.6}
#chapter-title:focus{outline:2px solid #b78849;outline-offset:5px}
@media(orientation:landscape) and (max-height:520px){.world-panel{padding:12px 4% 8px}.scene-head{margin-bottom:8px}.stage-wrap{width:min(100%,calc((100dvh - 180px)*16/9));margin:0 auto;padding:6px}.stage-footer{margin-top:10px;padding-top:10px}.inspector{margin-top:10px}}
@media(max-width:365px){.import-row{align-items:stretch;flex-direction:column}.import-row p{flex-basis:auto}}
 .scene-controls{display:flex;align-items:center;gap:12px;flex:0 0 auto}.scene-head .quiet-button{padding:7px 9px;font-size:10px}
@media(orientation:landscape) and (max-height:520px){.world-panel{padding:12px 4% 8px}.scene-head{margin-bottom:8px}.stage-wrap{width:min(100%,calc((100dvh - 180px)*16/9));margin:0 auto;padding:6px}.world-caption,.stage-footer{display:none}.scene-head .quiet-button{padding:5px 8px;font-size:9px}}
@media(max-width:365px){.scene-head{gap:8px}.scene-controls{gap:6px}.scene-head .eyebrow{font-size:8px;letter-spacing:1px}.scene-head .live-dot{font-size:7px;letter-spacing:0}.scene-head .quiet-button{padding:5px 6px;font-size:9px}}

/* Make the optional soundtrack visible before the story starts. */
.scene-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:6px}
.scene-controls{display:contents}.scene-head>.eyebrow{grid-column:1;grid-row:1;align-self:end}
.scene-head .live-dot{grid-column:1;grid-row:2;align-self:start}
.sound-toggle{grid-column:2;grid-row:1 / span 2;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:1px solid var(--gold);background:var(--gold);color:var(--ink);font-size:12px;font-weight:700;white-space:nowrap}
.sound-toggle::before{content:'♫';font-size:18px;line-height:1}
.sound-toggle:not(:disabled):hover{background:#ead099}
.sound-toggle[aria-pressed="true"]{background:#294749;color:#f4efe3}
.sound-toggle[aria-pressed="true"]:hover{background:#365757}
.sound-toggle:disabled{background:transparent;color:#c8d2c7;border-color:#81948d55}

.reading-tools{margin-top:14px;color:#6c786b;font-size:11px}
.reading-tools>summary{cursor:pointer;padding:7px 0;min-height:28px}
.reading-tools .transport{margin-top:4px}.reading-tools .import-row{margin-bottom:0}
@media(orientation:portrait),(max-width:740px),(max-height:520px){
  .masthead{height:36px;padding:0 5%}.brand{font-size:9px;gap:7px}.brand-mark{font-size:20px}.brand .edition,.desktop-only{display:none}
  .app-shell{height:calc(100dvh - 36px)}
  body.running .book-heading,body.running .reading-footer,body.running .stage-footer{display:none}
  body.running .reading-panel{padding:14px 6% 12px}
  body.running .chapter-line{padding:0;border:0}.chapter-line .eyebrow{font-size:8px;letter-spacing:1px}
  body.running h2{font-size:18px;margin:5px 0 10px;line-height:1.25}
  body.running .prose{font-size:16px;line-height:1.55;min-height:0;margin:0 0 10px}
  body.running .choice-list{gap:6px;margin:6px 0}.choice-list:empty{display:none}
  body.running .choice{padding:8px 10px;font-size:12px;min-height:34px}
  body.running .route-notice{font-size:10px;margin:4px 0 8px;min-height:0}
  body.running .route-notice[data-important="false"],body.running .choice-list:not(:empty)+.route-notice{display:none}
  body.running .choice-list:not(:empty)~.button-row{display:none}
  body.running #story-reader>.button-row{flex-direction:row;align-items:center;gap:8px}
  body.running #continue{flex:1}body.running #skip{flex:0 0 auto}
  body.running .primary,body.running .secondary{min-height:34px;padding:8px 11px;font-size:11px}
  body.running .reading-tools{margin-top:6px}.reading-tools .transport button{font-size:11px;padding:8px 10px 8px 0}
  body.running .message{min-height:0;padding-top:4px;font-size:10px}.message:empty{display:none}
}
@media(orientation:portrait),(max-width:740px){
  .world-panel{padding:12px 6% 10px}.world-panel .scene-head{margin-bottom:10px}
}
@media(orientation:landscape) and (max-height:520px){
  .masthead{height:32px}.app-shell{height:calc(100dvh - 32px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .world-panel .stage-wrap{max-width:none;width:min(100%,calc((100dvh - 120px)*16/9))}
  body.running .reading-panel{padding:10px 5%}body.running .prose{font-size:15px;line-height:1.5}
  body.running h2{font-size:17px;margin:4px 0 8px}
}
@media(orientation:landscape) and (max-height:520px) and (max-width:740px){
  .app-shell{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  body.running .prose{font-size:14px;line-height:1.45}body.running h2{font-size:16px}
}
@media(orientation:portrait) and (max-height:600px){
  body.running .world-panel{padding:6px 6%}.world-panel .scene-head{margin-bottom:4px}
  body.running .world-panel .stage-wrap{max-width:clamp(128px,calc(100dvh - 352px),240px)}
  body.running .chapter-line{display:none}body.running .reading-panel{padding:4px 6%}
  body.running h2{font-size:16px;margin:2px 0 4px}
  body.running .prose{font-size:14px;line-height:1.35;margin-bottom:6px}
  body.running .route-notice{display:none}
  body.running .choice-list{gap:4px;margin:4px 0}
  body.running .choice{padding:6px 8px;font-size:11px;min-height:30px}
  body.running .primary,body.running .secondary{min-height:32px;padding:6px 8px}
  body.running .reading-tools{margin-top:2px}.reading-tools>summary{padding:4px 0;min-height:22px}
}

@media(orientation:portrait),(max-width:740px),(max-height:520px){
  body.running #story-reader[data-finished="true"]>.button-row{display:none}
}

/* Fit ordinary desktop reading while preserving overflow for expanded content. */
@media(orientation:landscape) and (min-width:741px) and (min-height:521px){
  body.running .book-heading,body.running .reading-footer{display:none}
  body.running .reading-panel{padding-top:24px;padding-bottom:18px}
  body.running .chapter-line{padding-top:0;border:0}
  body.running h2{margin:10px 0 14px}
  body.running .prose{min-height:0;line-height:1.65;margin-bottom:14px}
  body.running .route-notice[data-important="false"]{display:none}
  body.running #story-reader[data-finished="true"]>.button-row{display:none}
  .world-panel{padding-top:28px;padding-bottom:18px}
  .scene-head{margin-bottom:16px}
  .world-panel .stage-wrap{width:min(100%,calc((100dvh - 400px)*16/9));margin:0 auto}
  .world-panel .stage-footer{margin-top:18px;padding-top:14px}
  .world-panel .inspector{margin-top:14px}
}
@media(orientation:landscape) and (min-width:741px) and (min-height:521px) and (max-height:900px){
  .reading-panel{padding-top:28px;padding-bottom:18px}
  .book-heading h1{font-size:44px;margin:10px 0 12px}
  .deck{font-size:14px;line-height:1.5;margin-bottom:16px}
  .setup{padding-top:16px;gap:12px}.setup input,.setup select{padding:9px 10px}
  .setup-note{min-height:0}.reading-footer{padding-top:16px}
  .import-row{margin-top:12px;padding:8px 0}
}

/* Put scene identity and sound in the header, leaving the stage for artwork. */
:root{--header-height:48px}
.masthead{height:var(--header-height);gap:12px}
.app-shell{height:calc(100dvh - var(--header-height))}
.header-scene{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.header-scene .eyebrow{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-scene .live-dot{font-size:7px;letter-spacing:.7px}
.sound-toggle{min-height:44px;padding:6px 8px;font-size:10px;gap:5px;flex:0 0 auto;background:transparent;color:var(--gold);border-color:transparent}
.sound-toggle::before{font-size:14px}.sound-toggle:not(:disabled):hover{background:#d8b87918}
.sound-toggle[aria-pressed="true"]{background:transparent;color:#c8d2c7;border-color:#81948d55}
body.running .brand .edition{display:none}
body.running .world-caption,body.running .stage-footer{display:none}
body.running .world-panel{display:flex;flex-direction:column;padding:16px 4%}
body.running .world-panel .stage-wrap{width:min(100%,calc((100dvh - var(--header-height) - 80px)*16/9));margin:auto}
@media(orientation:landscape) and (max-height:520px){:root{--header-height:44px}}
@media(orientation:portrait),(max-width:740px){
  .masthead{gap:8px}.brand-divider{display:none}
  .header-scene .eyebrow{font-size:8px;letter-spacing:.7px}
  body.running .world-panel{padding:10px 6%}
}
@media(orientation:portrait) and (max-height:600px){
  body.running .world-panel{padding:6px 6%}
  body.running .world-panel .stage-wrap{max-width:clamp(160px,calc(100dvh - 288px),280px)}
}

body.running .choice-list:not(:empty)+.route-notice,body.running .choice-list:not(:empty)~.button-row{display:none}

/* Center the reading presentation when it fits, with reachable overflow. */
body.running .reading-panel{justify-content:safe center}
body.running .message:empty{display:none}

/* The divider overlays the existing pane boundary until a reader changes the split. */
.app-shell{position:relative;--reader-scale:1;--reader-prose-size:17px;--reader-choice-size:12px}
.reader-divider{position:absolute;z-index:5;width:28px;height:100%;touch-action:none;cursor:col-resize;background:transparent}
.reader-divider::after{content:'';position:absolute;left:13px;top:calc(50% - 20px);width:3px;height:40px;border-radius:2px;background:#81948d}
.reader-divider:hover,.reader-divider:focus-visible{background:#d8b87945}
.reader-divider:focus-visible{outline:3px solid #d39143;outline-offset:-3px}
.app-shell[data-display-axis="stacked"] .reader-divider{width:100%;height:28px;cursor:row-resize}
.app-shell[data-display-axis="stacked"] .reader-divider::after{left:calc(50% - 20px);top:13px;width:40px;height:3px}
.resizing-reader{user-select:none}
body.running .app-shell[data-custom-split="true"][data-display-axis="side"]{display:grid;grid-template-columns:minmax(0,var(--scene-share)) minmax(0,1fr)}
body.running .app-shell[data-custom-split="true"][data-display-axis="stacked"]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,var(--scene-share)) minmax(0,1fr)}
body.running .app-shell[data-custom-split="true"] .world-panel{overflow:hidden;min-height:0}
body.running .app-shell[data-custom-split="true"] .world-panel .stage-wrap{max-width:none;width:min(100%,var(--stage-max-width));flex-shrink:0}
body.running .prose{font-size:calc(var(--reader-prose-size) * var(--reader-scale))}
body.running .choice{font-size:calc(var(--reader-choice-size) * var(--reader-scale))}
body.running .transcript p{font-size:calc(14px * var(--reader-scale))}
body.running .transcript h3{font-size:calc(16px * var(--reader-scale))}
.reader-tools-row{position:relative;margin-top:14px}
.reader-tools-row .reading-tools{margin-top:0}
.reader-tools-row .reading-tools>summary{padding-right:110px}
.reader-size-controls{position:absolute;right:0;top:0;display:flex;align-items:center;gap:4px;color:#415a51;z-index:1}
.reader-size-controls button{border:1px solid #a6ae9c80;background:transparent;color:#415a51;min-width:28px;height:28px;padding:0 4px;font-size:12px}
.reader-size-controls output{font-size:10px;min-width:32px;text-align:center}
@media(min-width:1450px){.app-shell{--reader-prose-size:18px}}
@media(orientation:portrait),(max-width:740px),(max-height:520px){.app-shell{--reader-prose-size:16px}.reader-tools-row{margin-top:6px}}
@media(orientation:landscape) and (max-height:520px){.app-shell{--reader-prose-size:15px}}
@media(orientation:landscape) and (max-height:520px) and (max-width:740px){.app-shell{--reader-prose-size:14px}}
@media(orientation:portrait) and (max-height:600px){.app-shell{--reader-prose-size:14px;--reader-choice-size:11px}.reader-tools-row{margin-top:2px}.reader-size-controls button{height:22px;min-width:25px}}

/* Keep Sound compact while preserving a forgiving touch target. */
.sound-toggle{position:relative;min-height:28px;height:28px;padding:4px 8px}
.sound-toggle::after{content:"";position:absolute;inset:-8px 0}

/* Contain the drag overlay while viewport resize events catch up. */
body.running .app-shell{overflow:clip}

/* Keep required loading feedback visible beside a disabled choice frontier. */
body.running #story-reader[data-loading="true"]>.route-notice{display:block}
.header-navigation{display:flex;align-items:center;gap:.6rem;min-width:0}
.header-navigation .edition{color:inherit;text-decoration:none;white-space:nowrap}
.header-navigation .brand:hover .brand-label,.header-navigation .edition:hover{text-decoration:underline;text-underline-offset:.25em}
.story-overview{max-height:calc(100dvh - var(--header-height,76px));width:min(1040px,100%);margin:auto;padding:clamp(24px,5vw,72px);overflow:auto}
.library-heading h1{font-family:var(--serif,Georgia,serif);font-size:clamp(2.5rem,7vw,5rem);line-height:1.05;margin:.3em 0}
.library-heading p{color:var(--muted,#a8b5ae);line-height:1.6}
.story-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:20px;margin:32px 0}
.story-card{display:block;padding:28px;border:1px solid #52625d;border-radius:12px;background:#20352f;color:inherit;text-decoration:none}
.story-card:hover{border-color:#d3bb7a;background:#293d34}
.story-card h2{font-family:Georgia,serif;font-size:1.8rem;line-height:1.2;margin:16px 0}
.story-card p{line-height:1.6;color:#bcc8bf}
.story-card-action{display:block;margin-top:24px;color:#e4c987;font-weight:600}
#library-message{line-height:1.6;overflow-wrap:anywhere}
#leave-without-save{display:inline-block;text-decoration:none}
@media(max-width:740px){.header-navigation{gap:.4rem}.header-navigation .edition{font-size:10px}.story-overview{padding:24px 18px}.story-card{padding:22px}}

.header-navigation .edition{display:block;overflow:hidden;text-overflow:ellipsis;max-width:180px}
@media(max-width:740px){.header-navigation .edition{max-width:105px;font-size:9px;letter-spacing:.8px}.header-navigation .brand-divider{display:none}}
@media(max-width:480px){.masthead .header-scene{display:none}.header-navigation{flex:1}.header-navigation .brand{flex-shrink:0}.header-navigation .edition{min-width:0}}
