.story-play {
  display: block;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 20px;
  background: var(--story-paper, #faf5eb);
}
.story-play .play-stage {
  display: block;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.story-play #puzzle-widget {
  display: block;
  overflow: auto;
  padding: 0 !important;
  min-height: 0;
  height: 100%;
}
.story-book {
  color: var(--story-ink, #233f36);
  background: var(--story-paper, #faf5eb);
}
.story-bookmarks {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #fffaf2;
  border-bottom: 1px solid #d8c9ad;
}
.story-bookmarks button {
  width: 42px;
  min-height: 36px;
  padding: 5px;
  font:
    700 13px "Noto Sans",
    sans-serif;
  color: var(--story-ink);
  background: transparent;
  border: 1px solid #d8c9ad;
  border-radius: 8px;
}
.story-bookmarks button[aria-current="page"] {
  color: #fffaf2;
  background: var(--story-accent, #385848);
  border-color: var(--story-accent);
}
.story-bookmarks button:disabled {
  opacity: 0.35;
}
.story-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: start;
}
.story-illustration {
  margin: 0;
  position: sticky;
  top: 0;
  min-height: 380px;
  background: #213c37;
}
.story-illustration > img {
  display: block;
  width: 100%;
  height: clamp(370px, 55vh, 610px);
  object-fit: cover;
}
.story-illustration figcaption {
  display: grid;
  gap: 9px;
  padding: 22px 26px;
  background: linear-gradient(120deg, #193d35, #38584c);
  color: #f8e8c6;
}
.story-illustration figcaption span {
  font:
    400 23px/1.35 "Lora",
    serif;
}
.story-illustration figcaption strong {
  font:
    600 10px "Noto Sans",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d9b77d;
}
.story-reading {
  padding: 28px clamp(20px, 3vw, 48px) 35px;
  min-width: 0;
  border-left: 1px solid #d8c9ad;
  box-shadow: inset 15px 0 25px -24px #584b36;
}
.story-eyebrow {
  font:
    700 10px "Noto Sans",
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--story-accent);
  margin: 0 0 12px;
}
.story-reading h2 {
  font:
    600 clamp(25px, 2.5vw, 35px)/1.15 "Lora",
    serif;
  margin: 0 0 22px;
  color: var(--story-ink);
}
.story-reading h2:focus {
  outline: none;
}
.story-prose,
.story-feedback,
.story-memory {
  font:
    400 16px/1.85 "Lora",
    Georgia,
    serif;
}
.story-prose p {
  margin: 0 0 19px;
}
.story-prose p:first-child:first-letter {
  font-size: 1.7em;
  color: var(--story-accent);
}
.story-actions {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.story-choice,
.story-deduction button,
.story-help button,
.story-chapter-end button {
  min-height: 47px;
  text-align: left;
  padding: 12px 15px;
  background: #fffcf6;
  color: var(--story-ink);
  border: 1px solid #c8b99e;
  border-radius: 9px;
  box-shadow: 0 3px 0 #daceb9;
  font:
    600 13px/1.5 "Noto Sans",
    sans-serif;
}
.story-choice:not(:disabled):hover {
  background: #eee6d7;
  transform: translateY(-1px);
}
.story-choice small {
  display: block;
  font-weight: 400;
  font-size: 10px;
}
.story-choice:disabled {
  opacity: 0.43;
  box-shadow: none;
}
.story-continue {
  background: var(--story-accent, #35584a);
  color: #fffaf2;
  border-color: var(--story-accent);
}
.story-choice.story-continue:not(:disabled):hover {
  background: #244b3c;
}
.story-deduction {
  display: grid;
  gap: 10px;
  padding: 17px;
  border: 1px solid #c8b99e;
  background: #efe7d7;
  border-radius: 12px;
}
.story-deduction label {
  font:
    700 14px/1.5 "Noto Sans",
    sans-serif;
}
.story-deduction > div {
  display: grid;
  gap: 10px;
}
.story-deduction input {
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  font:
    500 17px "Lora",
    serif;
  padding: 10px 12px;
  border: 1px solid #aa997c;
  border-radius: 7px;
  color: var(--story-ink);
  background: #fffdf8;
}
.story-deduction button {
  text-align: center;
  background: var(--story-accent);
  color: #fffaf2;
}
.story-feedback,
.story-memory {
  border-left: 3px solid #ad8243;
  padding: 12px 17px;
  background: #ede5d6;
  margin: 22px 0 0;
  font-size: 15px;
}
.story-feedback p,
.story-memory p {
  margin: 0 0 10px;
}
.story-feedback p:last-child,
.story-memory p:last-child {
  margin: 0;
}
.story-gentle-hint {
  border-left-color: #bc7b59;
}
.story-evidence-cards {
  display: grid;
  gap: 11px;
  margin: 22px 0;
}
.story-evidence-cards section {
  padding: 14px 17px;
  background: #fffcf5;
  border: 1px solid #d8c9ad;
  border-radius: 8px;
}
.story-evidence-cards h3 {
  margin: 0 0 7px;
  font:
    600 18px "Lora",
    serif;
}
.story-evidence-cards p {
  margin: 0;
  font:
    400 14px/1.6 "Noto Sans",
    sans-serif;
}
.story-help {
  margin-top: 24px;
  color: #70654e;
  font:
    400 13px/1.6 "Noto Sans",
    sans-serif;
}
.story-help summary {
  cursor: pointer;
}
.story-help button {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 12px;
}
.story-satchel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid #d8c9ad;
  background: #eee6d7;
  font:
    400 13px/1.6 "Noto Sans",
    sans-serif;
}
.story-satchel > details {
  border: 1px solid #d0c1a9;
  border-radius: 9px;
  padding: 12px 15px;
  background: #faf6ed;
}
.story-satchel summary {
  cursor: pointer;
  font-weight: 700;
}
.story-satchel summary > span {
  float: right;
  color: var(--story-accent);
}
.story-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.story-items details {
  padding: 9px 11px;
  border: 1px solid #d9ccb5;
  background: #fffdf7;
  border-radius: 7px;
}
.story-items small {
  color: #4c7357;
}
.story-save-note {
  padding: 8px 20px 15px;
  font:
    400 10px "Noto Sans",
    sans-serif;
  color: #736b5b;
  background: #eee6d7;
  text-align: center;
}
.story-chapter-end {
  margin-top: 24px;
  padding: 20px;
  color: #294d3a;
  background: #e7ecdc;
  border-radius: 12px;
}
.story-chapter-end > strong {
  font:
    600 23px "Lora",
    serif;
}
.story-chapter-end p {
  font:
    400 13px/1.6 "Noto Sans",
    sans-serif;
}
.book-puzzle-live[data-live-kind="adventure"] {
  overflow: auto;
}
@media (max-width: 800px) {
  .story-spread {
    grid-template-columns: 1fr;
  }
  .story-illustration {
    position: static;
    min-height: 0;
  }
  .story-illustration > img {
    height: 250px;
    object-position: center;
  }
  .story-illustration figcaption {
    padding: 15px 22px;
  }
  .story-illustration figcaption span {
    font-size: 20px;
  }
  .story-reading {
    border-left: 0;
    padding: 24px 22px;
  }
  .story-satchel {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .story-bookmarks {
    gap: 5px;
    padding: 10px;
  }
  .story-bookmarks button {
    width: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-choice:not(:disabled):hover {
    transform: none;
  }
}
