/* The story cover is the primary entrance; each collection keeps its own progress. */
#app > .story-browser{max-width:1320px;width:100%;margin:0 auto;padding:32px 32px 40px;box-sizing:border-box;color:#e4d9c1}
.story-bookmark{display:flex;align-items:center;gap:9px;color:#b5bdaa;font-size:14px;line-height:1.7}
.story-current{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);background:linear-gradient(120deg,#29382ae6,#12261deb);border:1px solid #b49b6257;box-shadow:0 18px 50px #0003;overflow:hidden}
.story-current-copy{padding:clamp(26px,3.6vw,48px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.story-current-chapter{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 23px;color:#c9b184;font-size:14px;letter-spacing:.08em;line-height:1.6}
.story-current-chapter>span{border-left:1px solid #ba9e6866;padding-left:12px;font-family:Georgia,serif}
.story-current h2{font:500 clamp(28px,3.05vw,43px)/1.5 var(--font-heading);margin:0 0 20px;color:#ecdfc0;letter-spacing:.04em;text-wrap:balance}
.story-current-description{color:#bfc6b4;font-size:16px;line-height:1.95;margin:0 0 32px;max-width:28em}
.story-current .story-continue{display:inline-flex;align-items:center;gap:28px;min-height:48px;padding:12px 22px;font-size:16px;line-height:1.5;text-decoration:none}
.story-current-art{position:relative;min-width:0;margin:0;align-self:stretch;background:#101c16;display:flex;align-items:center}
.story-current-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.story-current-art figcaption{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;gap:16px;padding:40px 22px 16px;background:linear-gradient(transparent,#06120de6);color:#ede0c6;font-size:13px;letter-spacing:.1em;pointer-events:none}
.story-current-art figcaption>span:first-child{font-family:Georgia,serif;letter-spacing:.12em}
.story-history{margin-top:40px}
.story-history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.story-history-heading h2{margin:0;font:500 22px/1.6 var(--font-heading);color:#d7c49c;letter-spacing:.08em}
.story-history-heading>span{font-size:13px;line-height:1.7;color:#a7b2a1}
.story-history-chapter{border-top:1px solid #a78e5e45}
.story-history-chapter:last-child{border-bottom:1px solid #a78e5e45}
.story-history-chapter>summary{list-style:none;display:flex;align-items:center;gap:22px;padding:18px 0;cursor:pointer}
.story-history-chapter>summary::-webkit-details-marker{display:none}
.story-history-chapter>summary>img{width:108px;height:72px;object-fit:cover;border:1px solid #b99a6345;flex:none}
.story-history-name{flex:1;min-width:0;display:grid;gap:5px}
.story-history-name small{font-size:12px;color:#bba578;letter-spacing:.08em}
.story-history-name strong{font:400 22px/1.5 var(--font-heading);color:#dcd1b6}
.story-history-count{font-size:13px;color:#aab5a3}
.story-history-toggle{font-size:22px;color:#c6ab74;margin-left:8px;transition:transform .2s}
.story-history-chapter[open] .story-history-toggle{transform:rotate(45deg)}
.story-history-pages{margin:0 0 12px 130px;border-top:1px solid #b49b6228}
.story-history-pages>a{display:flex;align-items:baseline;gap:20px;padding:13px 0;border-bottom:1px solid #b49b6228;text-decoration:none;font-size:15px;color:#c9cdbb;line-height:1.7}
.story-history-pages>a:hover{color:#ecd7a6}
.story-history-pages>a>span{font:400 14px/1.7 Georgia,serif;color:#c2a976;min-width:26px}
.story-history-pages>a>strong{flex:1;font-weight:400}
.story-history-pages>a>span:last-child{text-align:right}
.story-open-arrow{display:inline-block;width:18px;height:18px;vertical-align:-.15em;flex:none;pointer-events:none}
.story-history-pages>a>.story-open-arrow{align-self:center;margin-left:auto;color:#c2a976}
.story-history .chronicle-replay-control{margin:10px 0 20px 130px;padding:10px 0 0;border:0;gap:14px}
.story-history .chronicle-replay-control>span{font-size:13px}
.story-history .chronicle-replay-button{font-size:14px;padding:8px 13px;min-height:42px}
.story-replay-return{display:flex;justify-content:flex-end;margin-top:16px}
.story-replay-return button{font-size:14px}
@media(max-width:980px){.story-current-copy{padding:28px}.story-current h2{font-size:30px}.story-current-chapter{margin-bottom:15px}.story-current-description{margin-bottom:24px}}
@media(max-width:740px){
 #app > .story-browser{padding:24px 16px 32px}
 .story-current{grid-template-columns:minmax(0,1fr)}
 .story-current-art{grid-row:1}
 .story-current-copy{padding:24px}
 .story-current h2{font-size:30px;margin-bottom:12px}
 .story-current-chapter{font-size:13px;margin-bottom:12px}
 .story-current-description{margin-bottom:22px;font-size:16px;line-height:1.85}
 .story-current .story-continue{width:100%;justify-content:space-between}
 .story-current-art figcaption{padding:28px 16px 12px;font-size:12px}
 .story-bookmark{font-size:13px}
 .story-history{margin-top:30px}
 .story-history-heading{align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:13px}
 .story-history-heading h2{font-size:20px}
 .story-history-chapter>summary{gap:12px;padding:15px 0;flex-wrap:wrap}
 .story-history-chapter>summary>img{width:72px;height:54px}
 .story-history-name strong{font-size:19px}
 .story-history-count{font-size:12px}
 .story-history-toggle{margin:0;font-size:18px}
 .story-history-pages,.story-history .chronicle-replay-control{margin-left:0}
 .story-history-pages>a{gap:12px}
 .story-history .chronicle-replay-control{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.story-history-toggle{transition:none}}

.story-current-art>a{display:block;width:100%;color:inherit}
.story-current h2>a{color:inherit;text-decoration:none}
.story-cover-pager{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #b49b6238}
.story-cover-pager button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:110px;min-height:44px;padding:8px 15px;border:1px solid #b49b6277;background:#13271ddd;color:#dfcca4;font:inherit;font-size:15px;cursor:pointer}
.story-cover-pager button:hover:not(:disabled){background:#334532}
.story-cover-pager button:disabled{opacity:.32;cursor:default}
.story-cover-count{color:#b9bdac;font:16px Georgia,serif;white-space:nowrap}
.story-cover-browser:focus-visible,.story-cover-pager button:focus-visible,.story-current-return:focus-visible,.story-current a:focus-visible{outline:2px solid #d1b378;outline-offset:4px}
.story-current-return{border:0;border-bottom:1px solid #b49b6266;background:transparent;padding:6px 0;cursor:pointer}
@media(max-width:740px){.story-cover-pager{gap:10px;padding:10px 0}.story-cover-pager button{min-width:88px;padding:8px 10px;gap:6px;font-size:14px}.story-current-return{font-size:13px}}

/* Semantic line breaks for the four parts of the Echo Warehouse case. */
.story-title-main{display:inline-block;max-width:100%;vertical-align:baseline;white-space:normal}.story-title-phrase,.story-title-part{display:inline-block;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;vertical-align:baseline}

/* Two clear location lines keep the date readable on narrow covers. */
.story-current-art figcaption{align-items:flex-end;line-height:1.5}
.story-current-art figcaption>span:first-child{flex:0 0 auto}
.story-cover-location{display:grid;gap:2px;min-width:0;text-align:right;letter-spacing:.03em;overflow-wrap:anywhere}
.story-cover-location>span{display:block}
@media(max-width:400px){.story-current-art figcaption{gap:8px;padding-inline:12px}.story-cover-location{letter-spacing:0}}

.story-replay-menu{max-width:42rem;margin:0 auto 1rem;color:#c2a976;font-size:14px}
.story-replay-menu>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;width:fit-content;gap:.65rem}
.story-replay-menu>summary::after{content:'+'}
.story-replay-menu[open]>summary::after{content:'−'}
.story-replay-menu .chronicle-replay-control{margin:0;padding:0;border:0;display:flex;align-items:flex-start;gap:4px;flex-direction:column}
.story-replay-menu .chronicle-replay-control>span{display:none}
.story-replay-menu .chronicle-replay-button{width:auto;min-height:44px;padding:8px 0;border:0;background:none;font-size:14px;text-align:left}
.story-replay-menu .chronicle-replay-button::before{display:none}
.story-replay-return .chronicle-replay-button{width:auto;border:0;background:none;font-size:14px;padding:8px 0;min-height:44px}

.story-history-unread{display:block;margin-top:2px;color:#aaa995;font-size:12px;line-height:1.6;font-weight:400}

.story-directory-context{display:flex;align-items:center;justify-content:flex-end;min-height:30px;margin:0 0 12px}
.story-directory-context .story-bookmark{font-size:14px;line-height:1.7}

.story-history a:focus-visible,.story-history summary:focus-visible{outline:2px solid #d1b378;outline-offset:5px}
