.mars-world {
  background: radial-gradient(ellipse at top right, #ecd0b1, transparent 48%), #f8eee3;
}

.mars-banner {
  background: radial-gradient(ellipse at right bottom, #863b2c, transparent 62%), #2e2036;
  color: #fff6e8;
}

.mars-banner h1 { color: #fff6e8; }
.mars-banner .companion-stars { color: #f2cb79; }
.mars-banner img {
  justify-self: center;
  width: auto;
  max-width: 100%;
  max-height: clamp(240px, 47vw, 420px);
  object-fit: contain;
}

.mars-collection-card img {
  height: 245px;
  padding: 1rem;
  background: #39272e;
  object-fit: contain;
}

.chapter-banner { display: block; background: radial-gradient(ellipse at top left, #fffdf7, #f3e4d3); }
.chapter-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.chapter-links a {
  border: 1px solid #bc9b69;
  border-radius: 999px;
  padding: .4rem .85rem;
  color: #582b37;
  background: #fff9ed;
  font-weight: 700;
  text-underline-offset: .2em;
}

.story-panel { margin-top: 1.5rem; text-align: left; scroll-margin-top: 6rem; }
.story-panel h2, .story-panel a { color: var(--plum); }
.story-panel a { font-weight: 700; }
.companion-grid .story-panel { margin-top: 0; }
.chapter-status {
  display: inline-block;
  margin-left: .35rem;
  border-radius: .4rem;
  padding: 0 .4rem;
  color: #653a2d;
  background: #f7e9d6;
  font-size: .875rem;
}

.art-credit { text-align: center; margin-top: 1.5rem; }
.artwork-grid { align-items: start; }
.artwork-grid figure { margin: 0; text-align: center; }
.artwork-grid img { display: block; max-width: 100%; width: auto; height: auto; max-height: 520px; margin: auto; }
.artwork-grid figcaption { margin-top: 1rem; font-weight: 600; }

.album-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: 2rem;
  border: 1px solid #c9aa78;
  border-radius: 12px;
  padding: clamp(1rem, 5vw, 3rem);
  background: linear-gradient(90deg, #fff8e8 48%, #e7d5b7 50%, #fff8e8 52%);
  box-shadow: 0 7px 0 #b99b72, 0 16px 28px #58402325;
}

.album-entry { margin: 0; text-align: center; }
.album-entry h2 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
.album-entry p { margin-top: .2rem; color: #624c42; }
.photo-mount {
  display: grid;
  position: relative;
  aspect-ratio: 4 / 3;
  place-items: center;
  max-width: 320px;
  margin: 0 auto 1rem;
  border: 1px solid #d2b68d;
  background: radial-gradient(ellipse, #fffdf4, #f3e4c9);
}
.photo-mount span { color: #9a702d; font-size: 2rem; }
.photo-mount i { position: absolute; width: 23px; height: 23px; background: #8a6445; }
.photo-mount i:nth-child(1) { top: -2px; left: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.photo-mount i:nth-child(2) { top: -2px; right: -2px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.photo-mount i:nth-child(3) { bottom: -2px; left: -2px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.photo-mount i:nth-child(4) { bottom: -2px; right: -2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

@media (max-width: 650px) {
  .album-pages { grid-template-columns: 1fr; background: #fff8e8; }
}

.charlie-collection { background: transparent; }
.charlie-collection .chapter-banner {
  border: 1px solid #d7b989;
  background: radial-gradient(ellipse at top right, #efd2ba, transparent 65%), #fffbf2;
}
.charlie-featured-intro { font-family: Georgia, serif; font-style: italic; font-size: 1.25rem; }
.charlie-photo { margin: 1.4rem auto; max-width: 36rem; text-align: center; }
.charlie-photo img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.charlie-photo-placeholder {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .25rem;
  min-height: 9rem;
  padding: 1rem;
  border: 1px dashed #a77645;
  border-radius: .5rem;
  background: radial-gradient(ellipse at top, #fffbef, #f2ddc9);
  color: #5b3931;
}
.charlie-photo-placeholder span { color: #926421; font-size: 1.5rem; }
.charlie-photo-placeholder p { margin: 0; }
.charlie-photo figcaption { margin-top: .65rem; font-style: italic; }
.charlie-story-list { padding-inline-start: 1.6rem; }
.charlie-story-list li { padding-block: .3rem; }
.charlie-story p { max-width: 66ch; }
.charlie-prompts, .charlie-album { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.charlie-prompts details { background: #fcf1e0; border-radius: .5rem; padding: .8rem 1rem; }
.charlie-collection summary { cursor: pointer; font-weight: 700; }
.charlie-collection dt { font-weight: 700; }
.charlie-collection dd { margin: 0 0 .85rem; }
.charlie-magic {
  margin: 2rem auto;
  max-width: 52rem;
  padding: clamp(1.15rem, 5vw, 3rem);
  border: 1px solid #d7b989;
  border-radius: 1rem;
  background: radial-gradient(ellipse at top, #f2dfcc, transparent 58%), #fffbf1;
  color: #4c323b;
  scroll-margin-top: 6rem;
}
.charlie-magic h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.charlie-magic blockquote { margin: 1.5rem auto; max-width: 47ch; font: 1.15rem/1.65 Georgia, serif; }
.charlie-magic h4 { margin-bottom: .3rem; font-size: 1.15rem; }

@media (max-width: 650px) {
  .charlie-prompts, .charlie-album { grid-template-columns: 1fr; }
}

.charlie-scrapbook-image {
  display: block;
  max-width: min(100%, 320px);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: .5rem;
}
.charlie-home-photo {
  display: block;
  width: min(100%, 8rem);
  height: auto;
  border-radius: .5rem;
  margin: .75rem auto;
}
