/* The v5 entry owns its layout; the existing brass skin remains shared. */
.chapter-v5 #game{padding:0;display:flex;min-height:100svh;isolation:auto;justify-content:flex-start}
.chapter-v5 #game .topbar{position:relative;inset:auto;flex-wrap:wrap;z-index:8;padding:8px 24px;background:#191621;gap:10px;flex:none}
.chapter-v5 .topbar>div:first-child{margin-right:auto}.chapter-v5 .topbar nav{flex:none}
.chapter-v5 #game .visual{position:relative;inset:auto;z-index:0;height:42svh;min-height:240px;max-height:500px;flex:none}
.chapter-v5 #game .visual>#scene{object-fit:cover;object-position:center}
.chapter-v5 .cast,.chapter-v5 .with-evidence .cast{inset:12px 0 0;overflow:hidden}
.chapter-v5 .portrait,.chapter-v5 .with-evidence .portrait{bottom:-12px;max-height:none;height:calc(100% * var(--scale))}
.chapter-v5 .portrait[data-character=Gorven]{bottom:-12px}
.chapter-v5 #game .dialogue{position:relative;margin:14px auto 0;width:min(1180px,calc(100% - 32px));align-self:center;flex:1;padding:24px 32px 18px}
.chapter-v5 .speaker-identity{margin-top:0}.chapter-v5 #speaker{font-size:21px}
.chapter-v5 #content>p{max-width:72ch;font-size:var(--font);line-height:1.6}
.chapter-v5 #game .foot{position:relative;inset:auto;padding:10px 24px;flex:none}
.chapter-v5 #evidence{top:16px;max-height:calc(100% - 24px);width:min(52vw,520px);min-width:0}
.chapter-v5 .choices{max-width:none!important;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}
.chapter-v5 .choices button{display:block;font-size:calc(var(--font) - 2px);min-height:56px;overflow-wrap:anywhere}
.chapter-v5 .choice-body{display:flex;align-items:center;justify-content:space-between;gap:10px}.chapter-v5 .choice-label{flex:1}
.chapter-v5 .choices button:disabled{cursor:not-allowed;opacity:.8;filter:none;transform:none}.chapter-v5 .choice-reason{display:block;color:#f3e2bc;font-size:14px;line-height:1.4;margin-top:5px}
.chapter-v5 #exploration-banner{position:relative;inset:auto;margin:0;width:100%;flex:none}
.chapter-v5 .journal-entry{padding:10px 0;border-bottom:1px solid #655143}.chapter-v5 .journal-entry p{margin:5px 0}
.chapter-v5 .editor-note{max-width:70ch;padding:18px 22px;background:#211d27;border:1px solid #c9a25e;margin:18px 0;font-family:Georgia,serif}
.chapter-v5 .ending-card{margin:0;max-width:880px}.chapter-v5 .ending-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.chapter-v5 .ending-card figcaption{padding:20px}
.chapter-v5 #game[data-mode=ending] .visual{display:none}.chapter-v5 #game[data-mode=ending] .speaker-row{display:none}
.chapter-v5 .v5-hint{font-size:14px;line-height:1.5;color:#f3e2bc;background:#211d27;border:1px solid #c9a25e;padding:8px 12px;margin:0;max-width:72ch}
.chapter-v5 .profile-evidence{color:#dfd5c4}.chapter-v5 .settings-grid{display:grid;gap:14px}.chapter-v5 .settings-grid label{margin:0}.chapter-v5 select{display:block;width:100%;background:#211d27;color:#f3e2bc;padding:10px;border:1px solid #c9a25e;min-height:44px;font:inherit}
.chapter-v5 #content .decision-bar{margin:10px 0}.chapter-v5 .timed-notice{font-size:14px;line-height:1.5;margin:8px 0}
.chapter-v5 .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-contrast=high] .chapter-v5{--paper:#fff3d9;--muted:#e8dbca}html[data-contrast=high] .chapter-v5 .topbar{background:#111018}
html[data-motion=reduce] .chapter-v5 *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:760px){
 .chapter-v5 #game .topbar{padding:4px 10px;gap:4px}.chapter-v5 .wordmark{font-size:13px;letter-spacing:2px}.chapter-v5 .location{font-size:11px;max-width:100px}
 .chapter-v5 .topbar nav{gap:3px}.chapter-v5 .topbar nav button{width:44px;padding:4px!important}.chapter-v5 .topbar nav .button-label{display:none}.chapter-v5 .topbar .game-icon{width:20px;height:20px}
 .chapter-v5 #game .visual{height:25svh;min-height:145px;max-height:235px}.chapter-v5 .portrait[data-character=Elena]{min-height:90px;max-height:125px}
 .chapter-v5 #game .dialogue{width:calc(100% - 16px);margin:6px 8px 0;padding:14px 10px 10px!important;flex:1}
 .chapter-v5 #speaker{font-size:17px!important}.chapter-v5 #voice-label{font-size:10px}.chapter-v5 .speaker-row{margin-bottom:8px;gap:4px}
 .chapter-v5 #content>p{font-size:var(--font);line-height:1.45}.chapter-v5 .choices{grid-template-columns:1fr;gap:5px;margin-top:10px}.chapter-v5 .choices button{font-size:calc(var(--font) - 2px);line-height:1.4;padding:4px 8px!important}
 .chapter-v5 .choice-body{gap:5px}.chapter-v5 #evidence{width:64%;top:8px}.chapter-v5 #game .foot{padding:8px 14px}.chapter-v5 .foot>span:last-child{display:none}
 .chapter-v5 .actions{margin-top:8px}.chapter-v5 .actions button{min-height:44px}.chapter-v5 .menu-copy{padding:32px 24px}.chapter-v5 .menu h1{font-size:52px}
 .chapter-v5 .comparison{grid-template-columns:1fr}.chapter-v5 dialog{padding:16px}.chapter-v5 .ending-card figcaption{padding:14px}
}
@media(max-width:340px){.chapter-v5 #game .visual{height:20svh;min-height:115px}.chapter-v5 .choice-body{flex-wrap:wrap}.chapter-v5 .wordmark{font-size:12px}.chapter-v5 .location{max-width:95px}}
