/* Chapter outcomes: illustration first, reflection remains below. */
.ending-card { margin: 0 0 16px; }
.ending-illustration { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--ink, #1d1627); }
.ending-card figcaption { padding: 22px 0 6px; }
.ending-card .eyebrow { font-size: 13px; margin: 0 0 8px; }
.ending-code { font-size: 14px; color: var(--gold, #dec18a); letter-spacing: .03em; }
.ending-card h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 10px 0 14px; color: var(--gold, #dec18a); }
.ending-card .ending-result { font-size: 18px; line-height: 1.6; max-width: 70ch; }
.ending-share-controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ending-share-controls button { min-height: 48px; }
.ending-save-status:empty { display: none; }
.ending-save-status, .ending-privacy { font-size: 14px; line-height: 1.5; }
.collection-progress { font-size: 17px; color: var(--gold, #dec18a); }
.collection-intro { font-size: 16px; line-height: 1.6; max-width: 65ch; }
.ending-art-collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 26px 0 34px; }
.ending-art-collection figure { margin: 0; min-width: 0; }
.ending-art-collection img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.ending-art-collection figcaption p { font-size: 17px; line-height: 1.3; margin: 12px 0 6px; }
.ending-art-collection .ending-unlock-label { font-size: 14px; color: var(--gold, #dec18a); }
.ending-locked-art { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px dashed var(--gold, #dec18a); background: var(--ink, #1d1627); padding: 16px; text-align: center; }
.ending-locked-art p { font-size: 14px; }
.ending-catalog { list-style: none; padding: 0; }
.ending-catalog li { padding: 14px 0; border-bottom: 1px solid rgba(201, 162, 94, .3); }
.ending-catalog summary { cursor: pointer; font-size: 17px; line-height: 1.5; }
.ending-catalog details > p { font-size: 16px; line-height: 1.6; }
.ending-undiscovered { font-size: 16px; opacity: .75; }
@media (max-width: 760px) {
 .ending-art-collection { grid-template-columns: 1fr; gap: 26px; }
 .ending-card figcaption { padding-top: 16px; }
 .ending-share-controls { align-items: stretch; flex-direction: column; }
 .ending-share-controls button { width: 100%; }
}
