/* Only the three Adventure chapters: no changes to page/scroll geometry. */
#chapters .chapter-copy{isolation:isolate}
#chapters .chapter-copy> :not(.chapter-atmosphere){position:relative;z-index:1}
#chapters .chapter-copy h2{margin-top:28px;margin-bottom:32px}
#chapters .chapter-lines{gap:19px;line-height:1.5;margin-top:6px}
#chapters .chapter-narrative{margin-top:32px;gap:18px}
#chapters .chapter-narrative li{padding-top:13px;line-height:1.5}
#chapters .chapter-narrative span{line-height:1.5}
#chapters .task-copy .chapter-support{line-height:1.65}
#chapters .chapter-atmosphere{position:absolute;left:-24px;bottom:-24px;width:calc(100% + 24px);height:clamp(120px,26vh,245px);z-index:0;pointer-events:none;filter:drop-shadow(0 0 7px #bca8e512)}
#chapters .chapter-three .chapter-atmosphere{opacity:.5;height:clamp(110px,23vh,215px)}
#chapters .chapter-one .chapter-atmosphere{opacity:.78}
#chapters .city-scan-hint{display:flex;flex-direction:column;gap:9px;margin-top:auto;padding-top:26px;padding-bottom:20px;color:#aaa5b7;font-size:11px;line-height:1.5}
#chapters .city-scan-hint strong{font-size:9px;letter-spacing:2px;font-weight:500;color:#c1afe2}
#chapters .city-scene{overflow:clip}
#chapters .city-scene>img{filter:brightness(.8);transform:none}
#chapters .city-node{width:44px;height:44px;--scan-near:0}
#chapters .city-node>span{position:relative;width:8px;height:8px;background:#eee5ff;border:0;border-radius:50%;box-shadow:0 0 8px #d5c0ffb3;filter:brightness(calc(1 + var(--scan-near)*.35));transition:scale .18s,filter .18s}
#chapters .city-node>span::after{content:'';position:absolute;inset:-8px;width:auto;height:auto;border:1px solid #c2a7eb8c;border-radius:50%;background:#bc9fe50d}
#chapters .city-node::before{content:'';inset:-5px;animation:none;border:1px solid #c2a7eb;border-radius:50%;background:#bd9fe80b;opacity:calc(.28 + var(--scan-near)*.35);scale:calc(1 + var(--scan-near)*.18);box-shadow:0 0 12px #c3a3ed16;transition:scale .2s,opacity .2s}
#chapters .city-node::after{content:'';position:absolute;inset:-5px;border:1px solid #d6b8fa;border-radius:50%;opacity:0;pointer-events:none}
#chapters .city-node.is-detected::after{animation:chapter-signal-hit .85s ease-out both}
#chapters .city-node[aria-expanded=true]>span{background:#fff;box-shadow:0 0 12px #ddc2ff;scale:1.25}
#chapters .city-node[aria-expanded=true]::before{opacity:.7;scale:1.2}
#chapters .city-scanner{position:absolute;left:0;top:0;width:0;height:0;z-index:3;pointer-events:none;opacity:0;transition:opacity .18s}
#chapters .is-scanning .city-scanner{opacity:1}
#chapters .city-scanner::before,#chapters .city-scanner::after{content:'';position:absolute;left:-73px;top:-73px;width:146px;height:146px;border:1px solid #cbb2f043;border-radius:50%;box-shadow:inset 0 0 22px #bc9ee608,0 0 12px #bc9ee608}
#chapters .city-scanner::after{left:-42px;top:-42px;width:84px;height:84px;border-color:#d9c8ef28;box-shadow:none}
#chapters .city-scan-wave{position:absolute;width:0;height:0;z-index:3;pointer-events:none}
#chapters .city-scan-wave::after{content:'';position:absolute;left:-20px;top:-20px;width:40px;height:40px;border:1px solid #d3bafa;border-radius:50%;opacity:0}
#chapters .city-scan-wave.is-pulsing::after{animation:chapter-scan-wave 1s ease-out both}
#chapters .city-detail{background:#23262eed;color:#f3eff9;border:1px solid #b8a2da60;box-shadow:0 8px 24px #11141b33;backdrop-filter:blur(8px);transition:opacity .11s ease;animation:none}
#chapters .city-detail strong{padding-right:14px}
#chapters .city-detail.is-changing{opacity:0}
#chapters .city-detail p,#chapters .city-detail small{color:#bbb6c8;line-height:1.45}
#chapters .city-close{color:#c9bfdb}
#chapters .city-detail .social-tags i{background:#b5a1d42b;color:#d7c9e8}
#chapters .city-detail .social-avatar{border:1px solid #c7b2e970}
#chapters .task-reward-note{margin-top:17px;padding:11px 12px;background:#e9e5ef8c;border-left:2px solid #bca9d6;border-radius:0 7px 7px 0;color:#6b6374;font-size:10px;line-height:1.5}
#chapters .task-reward-note strong{font-weight:500;color:#67567d}
#chapters .rewarded-task[data-state="3"] .task-reward-note{background:#e8e0f2;border-left-color:#9d85bc;color:#50465f}
@keyframes chapter-signal-hit{0%{opacity:.58;transform:scale(.9)}100%{opacity:0;transform:scale(1.8)}}
@keyframes chapter-scan-wave{0%{opacity:.4;transform:scale(.8)}100%{opacity:0;transform:scale(14)}}
@media(min-width:701px) and (max-height:850px){#chapters .chapter-copy h2{margin-top:20px;margin-bottom:24px}#chapters .chapter-lines{gap:14px}#chapters .chapter-narrative{margin-top:22px;gap:10px}#chapters .chapter-narrative li{padding-top:9px}#chapters .city-scan-hint{padding-top:20px;padding-bottom:8px}#chapters .chapter-one .chapter-footnote{margin-top:30px}}
@media(max-width:700px){#chapters .chapter-copy h2{margin-top:15px;margin-bottom:19px}#chapters .chapter-lines{gap:11px}#chapters .chapter-narrative{margin-top:16px;gap:9px 14px}#chapters .chapter-narrative li{padding-top:7px}#chapters .chapter-atmosphere{left:-8px;bottom:-8px;height:95px;width:85%;opacity:.5}#chapters .chapter-three .chapter-atmosphere{height:95px;opacity:.3}#chapters .city-scan-hint{display:none}#chapters .task-reward-note{margin-top:9px;padding:7px 9px;font-size:8px}#chapters .city-node{width:38px;height:38px}#chapters .city-node::before,#chapters .city-node::after{inset:-3px}}
@media(max-width:700px) and (max-height:740px){#chapters .chapter-copy h2{margin-top:10px;margin-bottom:12px}#chapters .chapter-lines{gap:7px}#chapters .chapter-narrative{margin-top:10px;gap:6px 10px}}
@media(hover:none){#chapters .city-scanner,#chapters .city-scan-hint{display:none}}
@media(prefers-reduced-motion:reduce){#chapters .city-node::after,#chapters .city-scan-wave::after{animation:none}#chapters .city-node::before,#chapters .city-scanner,#chapters .city-detail{transition:none}}
