.chapter-fade { position:absolute; inset:0; z-index:45; background:#080d0b; opacity:0; pointer-events:auto; }
.selection-backdrop { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.has-selection-backdrop>.scene { background:none !important; }
.has-selection-backdrop>.scene:before { background:#172b2440; }
.has-selection-backdrop .scene-shade { background:linear-gradient(0deg,#f3eddf 0,transparent 35%); }
.chapter-end { color:#f5ecd7; padding:28px; background:linear-gradient(#173228e8,#14291ff5),var(--game-background) center/cover; }
.chapter-end .eyebrow { color:#c3b483; font-size:9px; letter-spacing:2.3px; }
.chapter-end .end-seal { width:66px; height:66px; border:1px solid #beae7b; color:#dbc58b; margin:24px 0; box-shadow:0 0 0 7px #cabb7820,0 0 0 8px #cabb7835; font-size:28px; }
.chapter-end h1 { font-size:36px; letter-spacing:6px; }
.chapter-end>p:not(.eyebrow) { color:#c8cbb5; font-size:13px; margin:15px 0 28px; letter-spacing:1px; }
.chapter-reward { width:100%; max-width:350px; display:flex; align-items:center; gap:16px; padding:20px 18px; margin-bottom:32px; border:1px solid #b3a87977; border-radius:4px; background:linear-gradient(115deg,#eddfba13,#fbf4d908); text-align:left; }
.chapter-reward-icon { color:#d2bd8c; font-size:33px; }
.chapter-reward div { flex:1; }
.chapter-reward div>span { display:block; color:#aebca3; font-size:10px; letter-spacing:1px; margin-bottom:8px; }
.chapter-reward strong { font:19px "Songti SC","SimSun",serif; letter-spacing:2px; }
.chapter-reward>i { color:#d5bb78; font:italic 11px Georgia,serif; }
.chapter-end-actions { display:grid; gap:10px; width:100%; max-width:350px; }
.chapter-end-actions .primary { color:#233b2e; background:#dcc993; border-color:#e7d7a9; min-height:52px; }
.chapter-end-actions .secondary { color:#ded7bf; border-color:#a1a88288; }
.chapter-end-actions .text-button { color:#aebda5; }
.game[data-scene="runnerMission"] { background:#080d0b; }
.game[data-scene="runnerMission"] .topbar { visibility:hidden; }
#runner-mission { overflow:hidden; background:#080d0b; padding:0 20px 64px; color:#f8efd8; gap:0; }
.emergency-lines { width:100%; position:relative; display:flex; align-items:flex-start; flex-direction:column; gap:17px; padding:25px 0 25px 13px; }
.emergency-lines::before { content:""; position:absolute; left:0; top:23px; bottom:20px; width:3px; background:#c3a261; opacity:0; }
#runner-mission[data-phase="holding"] .emergency-lines::before { opacity:.75; transition:opacity .2s; }
#emergency-label { white-space:nowrap; font:900 clamp(22px,6.1vw,31px)/1.4 Arial,sans-serif; color:#d5bb7f; letter-spacing:1px; opacity:0; transform:translateX(-700px); }
#emergency-title { font-size:clamp(46px,12.8vw,64px); font-weight:700; line-height:1.4; letter-spacing:4px; opacity:0; transform:translateX(-700px); }
@media(max-height:700px) {
  .chapter-end { padding:22px 25px; }
  .chapter-end .end-seal { width:50px; height:50px; margin:19px 0; font-size:23px; }
  .chapter-end h1 { font-size:30px; }
  .chapter-end>p:not(.eyebrow) { margin:12px 0 19px; }
  .chapter-reward { padding:16px; margin-bottom:21px; }
  .chapter-end-actions { gap:8px; }
}
@media(max-height:590px) {
  .chapter-end { padding:17px 24px; }
  .chapter-end .end-seal { width:40px; height:40px; margin:14px 0; }
  .chapter-end h1 { font-size:26px; }
  .chapter-end>p:not(.eyebrow) { margin:9px 0 14px; }
  .chapter-reward { padding:12px 14px; margin-bottom:16px; }
  .chapter-end-actions .primary,.chapter-end-actions .secondary { min-height:45px; padding:10px 15px; }
}
