/* Consistent chapter plates. The illustration is never cropped. */
#overlay .chapter-copy{display:contents}
#play #overlay{z-index:70}
#overlay.chapter-overlay{background:#102f3bd9;padding:20px;backdrop-filter:blur(8px)}
#overlay .card.world-chapter{display:grid;grid-template-columns:1.25fr 1fr;max-width:1120px;width:100%;padding:0!important;overflow:auto;max-height:calc(100svh - 40px);background:#f8f8ef;border:1px solid #afc5b5!important;border-radius:24px!important;box-shadow:0 24px 80px #06192766}
#overlay .world-chapter .chapter-copy{display:flex;flex-direction:column;justify-content:center;padding:30px;min-width:0;color:#153d43}
#overlay .world-chapter .chapter-art{margin:0;align-self:center;width:100%;background:#153d43;border-radius:0;overflow:hidden;line-height:0}
#chapterImage{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
#overlay .world-chapter #guidePortrait,#overlay .world-chapter #powerPreview{display:none!important}
#overlay .world-chapter .eyebrow{font-size:12px;line-height:1.5;text-transform:none;letter-spacing:.6px;color:#597568;margin-bottom:14px}
#overlay .world-chapter #modalTitle{font-size:clamp(27px,3vw,39px);line-height:1.05;letter-spacing:-1.1px;margin:0 0 16px}
#overlay .world-chapter #modalText{font-size:16px;line-height:1.65;margin:0 0 16px;color:#3e6157}
#overlay .world-chapter .chapter-quote{margin:0 0 16px;padding:13px 16px;background:#e2efd9;border-left:3px solid #6c9667;border-radius:0 12px 12px 0;font-size:15px;line-height:1.5;color:#294e42}
.chapter-quote strong,.chapter-mission strong{display:block;font-size:12px;margin-bottom:5px;letter-spacing:.4px}
#overlay .world-chapter .chapter-mission{font-size:14px;line-height:1.5;margin:0 0 14px;color:#46675c}
#overlay .world-chapter .chapter-controls{font-size:14px;line-height:1.6;margin:0 0 16px;color:#46675c}
.chapter-controls summary{cursor:pointer;font-weight:700;min-height:30px;line-height:30px;color:#153d43}.chapter-controls p{margin:8px 0 0}
#overlay .world-chapter #modalActions{margin:0;gap:8px;display:flex;flex-wrap:wrap}
#overlay .world-chapter #modalActions button{font-size:14px;min-height:46px;padding:12px 16px}
#overlay .world-chapter #modalActions button:last-child{background:transparent;color:#153d43;border:1px solid #b9cdbb!important}
#overlay .world-chapter #modalTitle:focus{outline:none}
@media(max-width:700px){
 #overlay.chapter-overlay{padding:12px;align-items:center}
 #overlay .card.world-chapter{grid-template-columns:1fr;max-width:540px;max-height:calc(100svh - 24px);border-radius:20px!important}
 #overlay .world-chapter .chapter-copy{padding:22px}
 #overlay .world-chapter #modalTitle{font-size:28px;margin-bottom:12px}
 #overlay .world-chapter #modalText{font-size:15px;line-height:1.5;margin-bottom:12px}
 #overlay .world-chapter .eyebrow{font-size:11px;margin-bottom:10px}
 #overlay .world-chapter .chapter-quote{font-size:14px;line-height:1.45;margin-bottom:12px}
 #overlay .world-chapter .chapter-mission{font-size:14px}
 #overlay .world-chapter #modalActions{display:grid;grid-template-columns:1fr;width:100%}
}
@media(max-height:500px) and (min-width:701px){
 #overlay.chapter-overlay{padding:10px}#overlay .card.world-chapter{max-height:calc(100svh - 20px);grid-template-columns:1fr 1.1fr}
 #overlay .world-chapter .chapter-copy{padding:20px}#overlay .world-chapter .chapter-art{align-self:start;position:sticky;top:0}
 #overlay .world-chapter #modalTitle{font-size:27px}
}
