.chapter-overview{background:radial-gradient(ellipse at 80% 15%,#58346e,#251435 75%);border-block:1px solid #be91d333}.chapter-overview .intro{align-items:center}.chapter-overview .intro p{max-width:390px}.chapter-meter,.chapter-actions{max-width:1300px;margin:auto}.chapter-meter{display:flex;gap:18px;align-items:center;margin-bottom:25px}.chapter-meter progress{appearance:none;width:min(340px,45%);height:9px;border:0;border-radius:99px;overflow:hidden;background:#57396a;color:var(--gold)}.chapter-meter progress::-webkit-progress-bar{background:#57396a;border-radius:99px}.chapter-meter progress::-webkit-progress-value{background:var(--gold);border-radius:99px}.chapter-meter progress::-moz-progress-bar{background:var(--gold);border-radius:99px}.chapter-meter span{font-size:11px;color:#e1cce9;line-height:1.7}.chapter-stops{max-width:1300px;margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.chapter-stops button{text-align:left;min-width:0;background:#3a234b;border:1px solid #bc91d14d;padding:22px;border-radius:15px;min-height:130px;transition:background .2s}.chapter-stops button:hover{background:#4c2b62}.chapter-stops small{font-size:9px;color:var(--gold);letter-spacing:1.3px}.chapter-stops strong{display:block;font-size:17px;margin:12px 0;line-height:1.35}.chapter-stops span{display:block;font-size:11px;line-height:1.8;color:#d4bcdf}.chapter-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:25px}.chapter-actions p{flex:1;min-width:220px;font-size:12px;line-height:1.8;color:#d4bcdf}.chapter-actions .cta,.chapter-actions .pill{min-height:46px}.chapter-journal-link{margin-top:15px!important;min-height:44px;color:var(--ink);border-color:#bba0c8}
#chapter-dialog{max-width:1000px;width:calc(100% - 24px)}#chapter-dialog h3{font-size:31px;line-height:1.15}.chapter-ending{position:relative;isolation:isolate;overflow:hidden;background:#3c2450;color:var(--cream);border-radius:17px;padding:40px 30px;min-height:280px;display:flex;flex-direction:column;justify-content:end}.chapter-ending img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:60% 48%}.chapter-ending:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#1b0c2af5,#1b0c2a88 65%,#1b0c2a22)}.chapter-ending h4{font-size:28px;line-height:1.15;letter-spacing:-.8px;margin:10px 0 15px}.chapter-ending p{font-size:13px;line-height:1.8;max-width:630px}.chapter-dialog-copy{font-size:13px;color:#795982;line-height:1.8;margin:18px 0}.chapter-achievement-count{font-size:10px;color:#896125;letter-spacing:1px;font-weight:800;margin:22px 0 15px}.chapter-achievements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chapter-achievement{display:flex;gap:15px;border:1px solid #d6c4df;background:#f0e6ee;border-radius:13px;padding:19px;min-width:0}.chapter-achievement.earned{border-color:#c1a05d;background:#fff0c7}.chapter-achievement>span{color:#997629;flex-shrink:0;font-size:30px}.chapter-achievement h4{font-size:16px;line-height:1.4;margin:0}.chapter-achievement p{font-size:11px;line-height:1.8;color:#795982;margin:7px 0}.chapter-achievement small{font-size:8px;letter-spacing:.8px;font-weight:800;color:#87642a}.chapter-links{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.chapter-links .pill{color:var(--ink);border-color:#baa0c8;min-height:44px;font-size:11px}.chapter-boundary{font-size:11px;line-height:1.8;color:#795982;margin-top:20px}.cloud-bar #cloud-status{overflow-wrap:anywhere}.cloud-bar #cloud-actions a{white-space:normal}
@media(max-width:1000px){.chapter-stops{grid-template-columns:repeat(2,minmax(0,1fr))}.nav .tools{max-width:100%}}
@media(max-width:620px){.chapter-overview .intro{gap:20px}.chapter-meter{display:block}.chapter-meter progress{display:block;width:100%;margin-bottom:12px}.chapter-stops{gap:10px}.chapter-stops button{padding:17px 14px;min-height:150px}.chapter-stops strong{font-size:15px}.chapter-stops span{font-size:10px}.chapter-actions{display:grid;grid-template-columns:1fr;gap:13px}.chapter-actions p{min-width:0}.chapter-actions button{width:100%}#chapter-dialog{padding:22px;width:calc(100% - 16px)}#chapter-dialog .dialogtop{top:-22px}#chapter-dialog h3{font-size:25px}.chapter-achievements{grid-template-columns:1fr}.chapter-ending{padding:26px 20px;min-height:290px}.chapter-ending h4{font-size:25px}.chapter-ending p{font-size:12px}.chapter-links{display:grid;grid-template-columns:1fr}.chapter-dialog-actions>*{width:100%;min-height:46px}.chapter-dialog-actions{display:grid;gap:10px}.chapter-overview h2{overflow-wrap:normal}.stage{min-width:0}dialog img{max-width:100%}}
@media(max-width:360px){.chapter-stops{grid-template-columns:1fr}.chapter-stops button{min-height:115px}}
@media(prefers-reduced-motion:reduce){.chapter-stops button{transition:none}}body.motion-off .chapter-stops button{transition:none}
