.chapter-card {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  position: relative;
  overflow: hidden;
  border: 1px solid #526888;
  border-radius: 16px;
  background: #101827;
  margin-block: 1.25rem;
}
.chapter-card:empty { display: none; }
.chapter-cover {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
}
.chapter-summary { padding: clamp(1rem, 3vw, 2.25rem); align-self: center; }
.chapter-summary h2, .chapter-reading h2 { margin: .25rem 0; font-size: clamp(1.6rem, 4vw, 2.7rem); }
.chapter-summary p:not(.chapter-kicker) { max-width: 42ch; line-height: 1.55; color: #c3cee1; }
.chapter-kicker { color: #8be7ec; letter-spacing: .08em; font-size: .86rem; margin: 0; }
[dir="rtl"] .chapter-kicker { letter-spacing: 0; }
.chapter-dialog {
  width: min(94vw, 55rem);
  max-height: min(90dvh, 52rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #587493;
  border-radius: 18px;
  background: #0c1422;
  color: #edf5ff;
  box-shadow: 0 1rem 4rem #000b;
}
.chapter-dialog::backdrop { background: #030914e8; }
.chapter-dialog-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.chapter-portrait {
  display: block;
  position: sticky;
  top: 0;
  width: 100%;
  height: auto;
  min-height: 21rem;
  max-height: min(90dvh, 52rem);
  object-fit: cover;
}
.chapter-reading { padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.chapter-close { float: inline-end; margin: 0 0 .75rem .5rem; min-height: 2.75rem; }
.chapter-role { margin: 0; color: #a4b7ce; }
.chapter-caption, .chapter-puzzle { line-height: 1.6; font-size: 1.06rem; }
.chapter-puzzle { background: #1a2638; border-inline-start: 3px solid #8be7ec; padding: .75rem; }
.chapter-feedback { color: #ffd999; }
.chapter-feedback:empty { margin: 0; }
.chapter-options { display: grid; gap: .5rem; }
.chapter-options button { display: grid; text-align: start; gap: .25rem; min-height: 2.75rem; white-space: normal; }
.chapter-options span { font-weight: 400; color: #c3cee1; }
.chapter-options small { color: #8be7ec; }
.chapter-options button:disabled { opacity: .64; }
.chapter-reward { color: #dfd1ff; }
.chapter-reputation { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; }
.chapter-reputation li { padding: .35rem .6rem; background: #1b2a40; border-radius: 6px; }
.chapter-journal { border-block-start: 1px solid #344863; padding-block-start: .6rem; }
.chapter-journal summary { cursor: pointer; padding-block: .45rem; }
.chapter-journal li { margin-block: .75rem; }
.chapter-journal p { margin: .25rem 0; }
.chapter-reveal .chapter-caption, .chapter-reveal .chapter-portrait { animation: chapter-fade-in 750ms ease-out both; }
@keyframes chapter-fade-in { from { opacity: .48; } to { opacity: 1; } }
body.reduced .chapter-reveal * { animation: none; }
@media (prefers-reduced-motion: reduce) { .chapter-reveal * { animation: none; } }
@media (max-width: 620px) {
  .chapter-card, .chapter-dialog-inner { grid-template-columns: minmax(0, 1fr); }
  .chapter-cover { height: 11rem; }
  .chapter-portrait { position: static; height: 11.5rem; min-height: 0; object-position: center 33%; }
}
.world-meter { display: grid; gap: .35rem; margin-block: .8rem; }
.world-meter progress { width: 100%; }
