/* Reading and library layouts share the black / red identity. */
.profiles-art{background-size:cover;background-position:center 38%}
.profile-promo{max-width:700px;padding-inline:20px}
.profile-promo h1{font-size:clamp(28px,4vw,48px)}
.profile-promo p{max-width:580px;margin:12px auto 0;text-wrap:pretty;line-height:1.8}
.shelf-head h2{font-size:clamp(18px,2.1vw,27px)}
.shelf-head .more{white-space:nowrap;flex-shrink:0}
.series-intro{display:grid;grid-template-columns:260px 1fr;gap:40px;align-items:center;max-width:1000px;margin:25px auto 45px}
.series-intro>img{width:100%;border-radius:12px;box-shadow:0 20px 55px #000}
.series-cover-art{display:block;position:relative;aspect-ratio:2/3;width:100%;overflow:hidden;border-radius:8px;background:#151217}
.series-cover-art img,.poster-card .series-cover-art img{width:100%;height:100%;object-fit:cover;opacity:1}
.series-cover-art:after{display:none}
.series-cover-type{position:absolute;top:8%;left:5%;right:5%;text-align:center;font-size:11px;letter-spacing:1px;z-index:1;color:#eed7af;text-shadow:0 1px 6px #000}
.series-cover-title{position:absolute;bottom:15%;left:8%;right:8%;z-index:1;text-align:center}
.series-cover-title b{display:block;font-family:Cairo;font-size:clamp(17px,2vw,28px);line-height:1.7;color:#f9e6bb;text-shadow:0 2px 15px #000}
.series-cover-title small{display:block;font-size:11px;margin-top:13px;color:#ddd0ba}
.series-intro>.series-cover-art{box-shadow:0 20px 55px #000}
.account-stars{color:#e8bd76;margin:22px 0;font-size:16px}
.series-intro h1{font-size:36px;margin:12px 0 20px}
.series-intro p{line-height:1.9;max-width:630px;margin:15px 0}
.episode-grid{grid-template-columns:repeat(3,minmax(0,250px));justify-content:start}
.episode-card{background:#191114;text-align:right;display:flex;flex-direction:column}
.poster-card.episode-card .card-tag{position:static;order:3;display:block;width:100%;max-width:none;margin-top:auto;padding:4px 2px;border-radius:0;flex-shrink:0}
.episode-caption{display:block;padding:15px 12px}
.episode-caption small{color:#e695a3;font-size:12px;display:block;margin-bottom:6px}
.episode-caption b{font-size:16px;line-height:1.6;display:block}
.branch-continue-rail{display:flex;overflow-x:auto;gap:16px;padding:0 var(--pad) 16px;scroll-snap-type:x mandatory}
.branch-continue-rail .continue-card{margin:0;min-width:min(340px,84vw);max-width:400px;scroll-snap-align:start}
.branch-brief{padding:25px var(--pad) 60px;max-width:1280px;margin:auto}
.branch-intro{display:grid;grid-template-columns:minmax(230px,360px) 1fr;gap:60px;align-items:center;margin:28px 0}
.branch-book{padding:0 0 22px 12px;border-bottom:1px solid #702a3b}
.branch-book img{width:100%;border-radius:8px;box-shadow:12px 20px 60px #0008}
.branch-intro-copy h1{font-size:clamp(28px,3.5vw,46px);margin:14px 0}
.branch-subtitle{font-size:22px;line-height:1.75;color:#f1d6dc}
.branch-description{font-size:18px;line-height:1.95;margin:18px 0;color:#ccc6c8}
.branch-facts{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #ffffff1c;margin:24px 0}
.branch-facts>div{padding:18px 12px;border-left:1px solid #ffffff1c}
.branch-facts>div:last-child{border:0}
.branch-facts b{display:block;font-size:28px;font-weight:400}
.branch-facts small{font-size:12px}
.reading-note{font-size:14px;line-height:1.8;color:#aaa1a4}
.branch-entry-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.branch-completed{font-size:14px;color:#dcb4be;margin-top:20px}
.branch-byline{display:block;margin-top:25px;font-size:13px}
.branch-screen{min-height:100svh;background:radial-gradient(ellipse at 90% 0,#37151d55,transparent 55%),#0c090b;padding-bottom:60px}
.branch-topbar{position:sticky;top:0;z-index:6;min-height:76px;background:#100b0ff2;backdrop-filter:blur(18px);border-bottom:1px solid #ffffff14;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px var(--pad)}
.branch-topbar>div{text-align:center}
.branch-topbar b{display:block;font-size:17px}
.branch-topbar small{font-size:11px;color:#c4909d}
.branch-reader{max-width:1350px;padding:35px var(--pad);margin:auto;display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);align-items:start;gap:50px}
.branch-visual{position:sticky;top:105px;min-width:0}
.scene-picture{width:100%;display:block;position:relative;background:#171014;border:1px solid #57313b;border-radius:12px;overflow:hidden;padding:0}
.scene-picture img{width:100%;max-height:420px;object-fit:contain}
.scene-picture span{display:block;padding:8px 12px;font-size:11px;text-align:left;color:#ccacb4;background:#171014}
.scene-picture:hover{border-color:#da536d}
.branch-scene-meta{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;color:#cbb6bd;font-size:12px;margin:14px 0 25px}
.branch-impact{border-top:1px solid #ffffff17;padding-top:20px}
.branch-impact h3{font-size:16px;margin-bottom:14px}
.branch-impact summary{cursor:pointer;font-size:15px;font-weight:700;padding-bottom:14px;color:#d7bac4}
.branch-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.branch-stats>div{border:1px solid #50313c;border-radius:8px;padding:11px 14px;background:#21131a;display:flex;justify-content:space-between;align-items:center;gap:14px}
.branch-stats small{font-size:12px;line-height:1.5;color:#cdbcc2}
.branch-stats b{font-size:23px;font-weight:400;color:#f3bccb;flex-shrink:0}
.branch-timing{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#b9a6ae;border-top:1px solid #ffffff17;margin-top:24px;padding-top:18px}
.autosave{display:flex;align-items:center;gap:8px;margin-top:17px;font-size:12px;color:#a29b9e}
.autosave .icon{width:14px;height:14px;color:#98af9f}
.branch-chapter{min-width:0}
.branch-chapter h1{font-size:clamp(25px,2.5vw,36px);margin:8px 0 25px}
.branch-chapter h1:focus{outline:none}
.branch-prose{font-size:19px;line-height:2;color:#e4dce0;overflow-wrap:break-word}
.branch-prose p{margin:0 0 23px;white-space:pre-line}
.branch-feedback{border:1px solid #70414e;border-right:3px solid #d94b6c;background:linear-gradient(100deg,#341722,#211018);border-radius:8px;padding:18px 20px;margin:0 0 26px}
.branch-feedback small{font-size:12px;color:#ef93ac;display:block;margin-bottom:7px}
.branch-feedback p{font-size:16px;line-height:1.9;color:#e7cdd5;white-space:pre-line}
.branch-screen blockquote{margin:28px 0;padding:18px 23px;border-right:2px solid #a9576c;color:#efb4c5;font-size:21px;line-height:1.9;background:#32142155}
.choice-heading{margin:34px 0 18px;display:flex;flex-direction:column;gap:6px}
.choice-heading h2{font-size:23px}
.choice-heading small{font-size:12px}
.branch-choice{display:flex;align-items:center;gap:15px;text-align:right;width:100%;padding:19px 17px;margin:11px 0;border-radius:11px;border:1px solid #69404d;background:linear-gradient(135deg,#30202a,#191115);box-shadow:inset 0 1px #ffffff0c;transition:background .2s,border-color .2s,transform .2s}
.branch-choice:hover:not(:disabled),.branch-choice:active:not(:disabled){border-color:#ed5f7f;background:linear-gradient(135deg,#571a2b,#2a1019);transform:translateX(-3px);box-shadow:0 0 20px #ec275f18}
.choice-number{border:1px solid #6c4050;display:grid;place-items:center;border-radius:50%;width:31px;height:31px;flex-shrink:0;color:#e4a4b7;font-size:14px}
.branch-choice b{display:block;font-size:17px;line-height:1.7}
.branch-choice small{display:block;font-size:13px;color:#b8aab0;margin-top:6px;line-height:1.7}
.choice-arrow{margin-right:auto;color:#dd849e;font-size:24px}
.choice-saved{opacity:.6;transition:opacity .2s}
.reader-footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid #ffffff17}
.branch-puzzle{background:#17161b;border:1px solid #665760;padding:24px;border-radius:12px;margin:30px 0}
.branch-puzzle h3{font-size:18px;margin:8px 0 20px;line-height:1.8}
.puzzle-inputs{display:grid;gap:14px;margin:20px 0}
.puzzle-inputs label{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);align-items:center;gap:14px;font-size:14px}
.puzzle-inputs select{width:100%;min-width:0;border:1px solid #68505a;background:#0f0d11;color:#fff;padding:12px;border-radius:7px;font-size:14px}
.puzzle-feedback{font-size:14px;line-height:1.9;color:#afcbb8;margin-top:17px}
.puzzle-feedback.failed{color:#f1b18f}
.branch-summary{margin:25px 0;border:1px solid #57414b;border-radius:10px;padding:8px 18px;font-size:14px}
.branch-summary>div{padding:12px 0;border-bottom:1px solid #ffffff12}
.branch-summary>div:last-child{border-bottom:0}
.branch-summary dt{color:#d2a6b5;margin-bottom:5px}
.branch-summary dd{margin:0;color:#c5bec2;line-height:1.7}
.branch-log{margin-top:25px;display:grid;gap:20px}
.branch-log article{padding:0 18px 20px;border-right:2px solid #ba405f;border-bottom:1px solid #ffffff14}
.branch-log h3{font-size:17px;margin:8px 0}
.branch-log p{font-size:15px;line-height:1.9;color:#cfbfc5}
.branch-log-modal{max-width:780px}
.branch-image-modal{max-width:1050px}
.branch-full-image{width:100%;height:auto}
.branch-ending{max-width:960px;margin:30px auto;padding:0 24px}
.ending-art{background:#100e11;border:1px solid #4b303b;border-radius:15px;overflow:hidden}
.ending-art img{width:100%;max-height:470px;object-fit:contain}
.branch-ending article{max-width:740px;margin:35px auto}
.branch-ending h1{font-size:clamp(28px,4vw,42px);margin:12px 0 20px}
.ending-status{display:inline-flex;align-items:center;gap:9px;color:#e3b39b;padding:8px 15px;border:1px solid #785648;border-radius:30px;font-size:13px;margin-bottom:20px}
.ending-status.success{color:#b6d4c1;border-color:#486453}
.ending-verdict{font-size:21px;color:#efbed0;line-height:1.9;margin-bottom:25px}
.ending-record{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 0;border-block:1px solid #ffffff1a;color:#c6b2bb;font-size:14px;margin-top:30px}
.large-text .branch-prose{font-size:22px}.large-text .branch-choice b{font-size:20px}
@media(max-width:760px){
 .profile-promo p{font-size:13px;max-width:350px}
 .shelf-head{align-items:center;gap:10px}.shelf-head h2{line-height:1.65;max-width:76%}
 .series-intro{display:flex;flex-direction:column;gap:22px;align-items:center;margin:22px 0 30px}
 .series-intro>.series-cover-art{max-width:205px}
 .series-intro .series-cover-title b{font-size:25px}
 .poster-card .series-cover-type{font-size:8px;letter-spacing:0}
 .poster-card .series-cover-title b{font-size:17px}
 .poster-card .series-cover-title small{font-size:9px;margin-top:8px}
 .series-intro h1{font-size:24px;margin:6px 0 10px}.series-intro p{font-size:14px;margin:10px 0}.series-intro .kicker{font-size:10px;letter-spacing:0}
 .series-intro .notice{font-size:12px}.series-intro .btn{padding:10px 13px}
 .episode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .episode-caption{padding:12px 9px}.episode-caption b{font-size:14px}
 .episode-card .card-tag{font-size:11px;padding:4px 2px}
 .branch-brief{padding:15px 20px 30px}.branch-intro{display:block;margin-top:15px}
 .branch-book{max-width:230px;margin:0 auto 28px;padding:0;border:0}
 .branch-intro-copy h1{font-size:29px}.branch-intro-copy>.kicker{font-size:10px;letter-spacing:0}
 .branch-subtitle{font-size:19px}.branch-description{font-size:16px}.branch-facts b{font-size:26px}.branch-facts>div{padding:14px 7px}
 .branch-topbar{min-height:68px;padding:8px 12px;gap:8px}.branch-topbar .linkbtn{font-size:12px;padding:5px}.branch-topbar .icon{width:19px}
 .branch-topbar b{font-size:14px}.branch-topbar small{font-size:10px}
 .branch-reader{display:flex;flex-direction:column;padding:18px 16px;gap:24px}
 .branch-visual{position:static;width:100%}.scene-picture img{max-height:280px}
 .branch-scene-meta{margin-bottom:15px}.branch-impact{padding-top:12px}.branch-impact h3{font-size:14px;margin-bottom:10px}
 .branch-stats{gap:7px}.branch-stats>div{padding:8px 10px}.branch-stats small{font-size:11px}.branch-stats b{font-size:20px}
 .branch-timing{margin-top:13px;padding-top:12px}.autosave{margin-top:10px}
 .branch-chapter h1{font-size:27px;margin-bottom:20px}.branch-prose{font-size:18px;line-height:1.95}
 .branch-feedback{padding:15px 16px}.branch-feedback p{font-size:15px}
 .branch-screen blockquote{font-size:19px;padding:15px 17px}
 .branch-choice{gap:11px;padding:16px 12px}.branch-choice b{font-size:16px}.branch-choice small{font-size:12px}.choice-number{width:27px;height:27px}
 .branch-puzzle{padding:18px 14px}.puzzle-inputs label{gap:8px}.puzzle-inputs select{font-size:13px;padding:11px 7px}
 .reader-footer{flex-wrap:wrap}.branch-ending{padding:0 17px;margin-top:18px}.branch-ending article{margin-top:25px}
 .branch-entry-actions .btn{flex:1;min-width:140px}.ending-verdict{font-size:19px}
}

.poster-card .series-cover-title small{display:none}
/* Clear reader context, a single step number, optional secondary details. */
.branch-role{display:flex;flex-direction:column;gap:5px;margin:22px 0;padding:13px 17px;border-right:3px solid #d94b6c;background:#28141c;border-radius:7px}
.branch-role small{color:#bc9ba5;font-size:12px}.branch-role b{font-size:17px;line-height:1.8}
.branch-location{display:flex;align-items:center;gap:12px;color:#dab7c2;font-size:14px;line-height:1.8;margin-bottom:15px}
.chapter-number{font-family:Arial,sans-serif;direction:ltr;display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;border:1px solid #754252;border-radius:9px;color:#f0b1c3;background:#331623}
.choice-number{font-family:Arial,sans-serif;direction:ltr}
.branch-impact{margin-top:18px}.branch-impact .reading-note{margin-top:13px}
.branch-notebook{margin:24px 0;border-block:1px solid #49313c;padding:16px 0}
.branch-notebook summary{color:#d8afbb;cursor:pointer;line-height:1.8;font-size:15px}
.branch-notebook .branch-summary{margin-bottom:0}
.branch-intro .reading-note{max-width:570px;font-size:15px;color:#c0b4b9}
@media(max-width:760px){.branch-location{font-size:13px}.branch-role b{font-size:16px}.branch-visual .autosave{margin-top:13px}}
/* Second-edition reader: story context and discovered facts, no abstract meters. */
.branch-objective{display:flex;flex-direction:column;gap:5px;line-height:1.8;padding:12px 16px;margin:-8px 0 25px;background:#24151c;border-right:3px solid #a83955;border-radius:6px;font-size:16px;color:#f1dde4}
.branch-objective small{font-size:11px;color:#cb90a0}
.edition-note{font-size:12px;color:#db9caf;margin:15px 0}
.story-guide{margin-top:20px;border-block:1px solid #ffffff16}
.story-guide details,.branch-intro-copy>.branch-cast{padding:14px 0;border-bottom:1px solid #ffffff12}
.story-guide details:last-child{border:0}
.story-guide summary,.branch-cast summary{font-size:14px;cursor:pointer;color:#d9bbc5;line-height:1.9}
.branch-map summary b{font-weight:400;color:#f2dce3;margin-inline-start:8px}
.branch-map ol{padding-inline-start:22px;margin:14px 0;list-style:decimal;font-size:13px;line-height:2.4;color:#a8989e}
.branch-map li[aria-current]{color:#f2c2cf;font-weight:700}.branch-map li span{font-size:10px;border:1px solid #995365;border-radius:4px;padding:2px 5px;margin-inline-start:10px}
.branch-cast dl,.branch-notes dl{margin-top:12px;font-size:13px}.branch-cast dl div,.branch-notes dl div{padding:9px 0}.branch-cast dt,.branch-notes dt{color:#f1c5d2;font-weight:700}.branch-cast dd,.branch-notes dd{margin:4px 0 0;line-height:1.9;color:#c5b7bd}
.branch-notes p{font-size:13px;line-height:1.8;padding-top:10px;color:#ab9fa5}
.reader-v2 .scene-picture{max-width:255px;margin-inline:auto}.reader-v2 .scene-picture img{max-height:320px;display:block;margin:auto;object-fit:contain}.reader-v2 .scene-picture span{text-align:center}
@media(max-width:760px){.reader-v2 .scene-picture{max-width:100%;display:flex;align-items:center;justify-content:flex-start;gap:15px;padding:10px 14px;background:#191116}.reader-v2 .scene-picture img{width:56px;height:84px;margin:0;border-radius:4px}.reader-v2 .scene-picture span{background:none;font-size:13px}.reader-v2 .story-guide{margin-top:12px}.branch-objective{font-size:15px}.branch-reader:has(.reader-v2){gap:22px}}

/* Keep episode counts below the artwork so baked author credits remain visible. */
.poster-card.series-card .card-tag{position:static;display:block;background:#171717;backdrop-filter:none;padding:5px 2px}

/* Compact, single-line library headings. */
.shelf .shelf-head{flex-wrap:wrap;gap:8px 12px}
.shelf .shelf-head>div{min-width:0;flex:1}
.shelf .shelf-head h2{font-size:clamp(16px,1.9vw,25px);line-height:1.5;max-width:none;white-space:nowrap}
@media(max-width:600px){
 .shelf .shelf-head{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .shelf .shelf-head>div{grid-column:1/-1}
 .shelf .shelf-head h2{font-size:clamp(13px,3.6vw,18px)}
 .shelf .shelf-head>h2{grid-column:1/-1}
 .shelf .shelf-head .more{grid-column:2;justify-self:end}
 .shelf .shelf-head .theme-description{margin-top:4px}
}
