.store-recap { margin-block: 24px; padding-block: 20px; border-block: 1px solid #cdbd9f; }
.store-recap h3 { margin: 0 0 16px; color: #302f29; font-size: 1.12rem; }
.store-recap ol { display: grid; gap: 18px; margin: 0; padding-inline-start: 24px; }
.store-recap li { padding-inline-start: 6px; }
.store-recap h4 { margin: 0 0 6px; font-size: 1rem; color: #59402b; }
.store-recap p { margin: 6px 0 0; line-height: 1.65; overflow-wrap: anywhere; color: #403c34; }
.store-recap .store-recap-choice { font-weight: 650; color: #302f29; }
.store-handover-echo { margin-block: 16px; padding: 14px 16px; border-inline-start: 3px solid #a45d32; background: #f7ead4; color: #3c3329; line-height: 1.65; }
.forest-story-invite-question { max-width: 48ch; margin-block: 12px 18px; color: #403c34; line-height: 1.65; overflow-wrap: anywhere; }

body.is-forest-story-view {
  background:
    radial-gradient(ellipse at 8% 18%, rgba(239, 193, 111, 0.17), transparent 30rem),
    radial-gradient(ellipse at 92% 42%, rgba(114, 147, 111, 0.12), transparent 28rem),
    #f4ecdf;
  color: #302f29;
}

body.is-forest-story-view .grain { opacity: 0.12; }

.forest-story-entry {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 28px 0 36px;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(92, 73, 44, 0.18);
  border-radius: 22px;
  background: linear-gradient(108deg, #fff9ed 0%, #f8efdc 58%, #f4e8ce 100%);
  box-shadow: 0 18px 40px rgba(94, 76, 48, 0.1);
}

.forest-story-entry::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(#efbd62, #d97b46);
  content: "";
}

.forest-story-entry-mark {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(157, 102, 44, 0.26);
  border-radius: 50%;
  color: #9a5c2e;
  background: radial-gradient(circle, #fff8e5 0 42%, #f0d8a7 43% 100%);
  font-size: 1.25rem;
}

.forest-story-entry-copy { min-width: 0; }
.forest-story-entry-copy h2 {
  margin: 2px 0 7px;
  color: #342d25;
  font: 700 clamp(1.3rem, 2.4vw, 1.85rem)/1.15 var(--display, Georgia), Georgia, serif;
  letter-spacing: -0.025em;
}
.forest-story-kicker {
  margin: 0;
  color: #845e37;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.forest-story-entry-copy > p:not(.forest-story-kicker) {
  max-width: 58ch;
  margin: 0;
  color: #4d4a40;
  font-size: 0.96rem;
  line-height: 1.62;
}
.forest-story-entry-detail {
  display: inline-block;
  margin-top: 10px;
  color: #777060;
  font-size: 0.82rem;
}

.forest-story-entry-action,
.forest-story-primary,
.forest-story-secondary,
.forest-story-home,
.forest-story-back {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.forest-story-entry-action,
.forest-story-primary {
  padding: 12px 20px;
  color: #352d22;
  background: #e9b861;
  box-shadow: 0 5px 0 rgba(150, 100, 47, 0.15);
}
.forest-story-entry-action:hover,
.forest-story-primary:hover { background: #f2c979; transform: translateY(-1px); }
.forest-story-entry-action span { margin-inline-start: 6px; }

.forest-story {
  width: min(100%, 840px);
  margin: clamp(26px, 5vw, 56px) auto 88px;
  padding-inline: clamp(12px, 3vw, 30px);
  color: #302f29;
}

.forest-story-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}
.forest-story-header h1 {
  max-width: 19ch;
  margin: 7px 0 0;
  color: #343026;
  font: 750 clamp(1.9rem, 5.8vw, 3.4rem)/1.04 var(--display, Georgia), Georgia, serif;
  letter-spacing: -0.045em;
}
.forest-story-home,
.forest-story-back,
.forest-story-secondary {
  padding: 9px 16px;
  border-color: rgba(77, 73, 61, 0.24);
  color: #48483d;
  background: rgba(255, 251, 241, 0.7);
}
.forest-story-home:hover,
.forest-story-back:hover,
.forest-story-secondary:hover { background: #fffaf0; border-color: #9a7746; }

.forest-story-progress-row {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 0 14px;
  color: #776849;
  font-size: 0.82rem;
  font-weight: 700;
}
.forest-story-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(111, 99, 73, 0.17);
}
.forest-story-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d98646, #e9b861);
  transition: width 220ms ease;
}

.forest-story-scene,
.forest-story-ending {
  position: relative;
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid rgba(94, 79, 51, 0.17);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 6%, rgba(234, 192, 115, 0.13), transparent 15rem),
    #fffaf0;
  box-shadow: 0 24px 58px rgba(79, 69, 48, 0.11);
}
.forest-story-scene-symbol {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border: 1px solid rgba(138, 105, 60, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle at 70% 28%, #fff4ce 0 10%, transparent 11%), #f4e5c3;
}
.forest-story-scene-symbol::before {
  position: absolute;
  inset: 11px 18px 8px;
  border-radius: 3px 3px 2px 2px;
  background: #75806a;
  content: "";
}
.forest-story-scene-symbol span {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e1a74e;
  box-shadow: 0 0 0 4px rgba(225, 167, 78, 0.17);
}
.forest-story-scene-symbol i,
.forest-story-scene-symbol b {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  width: 18px;
  height: 21px;
  border-radius: 55% 55% 0 0;
  background: #667661;
}
.forest-story-scene-symbol i { left: -5px; transform: rotate(-22deg); }
.forest-story-scene-symbol b { right: -5px; transform: rotate(22deg); }

.forest-story-scene > .forest-story-kicker { text-align: center; }
.forest-story-scene h2,
.forest-story-ending h2 {
  margin: 9px 0 18px;
  color: #332f28;
  font: 700 clamp(1.65rem, 4vw, 2.5rem)/1.14 var(--display, Georgia), Georgia, serif;
  letter-spacing: -0.035em;
  text-align: center;
}
.forest-story-passage,
.forest-story-branch,
.forest-story-ending-action,
.forest-story-ending-text {
  max-width: 64ch;
  margin: 0 auto;
  color: #4e4a41;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.78;
}
.forest-story-branch {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(111, 95, 63, 0.26);
  color: #765d3c;
}
.forest-story-choices {
  display: grid;
  gap: 5px;
  margin-top: 25px;
}
.forest-story-choice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-bottom-color: rgba(92, 80, 58, 0.2);
  border-radius: 12px;
  color: #39382f;
  background: transparent;
  font: inherit;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.forest-story-choice:hover { border-color: rgba(139, 105, 58, 0.25); background: #f8efd9; }
.forest-story-choice-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #805d31;
  background: #f2e2bf;
  font-size: 0.78rem;
  font-weight: 800;
}
.forest-story-choice-arrow {
  color: #956d35;
  text-align: center;
}
.forest-story-back { margin-top: 20px; }

.forest-story-ending-label,
.forest-story-ending-role {
  margin: 0;
  color: #8c6637;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}
.forest-story-ending-role { margin-top: 10px; letter-spacing: 0; text-transform: none; }
.forest-story-ending h2 { margin-bottom: 14px; }
.forest-story-ending-action { color: #715632; font-weight: 700; }
.forest-story-ending-text { margin-top: 12px; }
.forest-story-ending-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.forest-story-copy-status {
  min-height: 1.5em;
  margin: 13px 0 0;
  color: #56674e;
  font-size: 0.9rem;
  text-align: center;
}
.forest-story-copy-fallback { display: grid; gap: 8px; margin-top: 10px; }
.forest-story-copy-fallback[hidden] { display: none; }
.forest-story-copy-fallback label { color: #514c41; font-size: 0.88rem; font-weight: 700; }
.forest-story-copy-fallback textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #9a8967;
  border-radius: 10px;
  color: #332f28;
  background: #fffdf8;
  font: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.forest-story :focus-visible,
.forest-story-entry :focus-visible {
  outline: 3px solid #7b5028;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .forest-story-entry {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin-block: 22px 28px;
    padding: 19px 17px 19px 20px;
    border-radius: 18px;
  }
  .forest-story-entry-mark { width: 40px; }
  .forest-story-entry-action { grid-column: 1 / -1; justify-self: start; }
  .forest-story-header { flex-direction: column; gap: 14px; }
  .forest-story-header h1 { max-width: 16ch; }
  .forest-story-home { align-self: flex-start; }
  .forest-story-choice { grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 9px; padding-inline: 6px; }
  .forest-story-choice-mark { width: 27px; height: 27px; }
  .forest-story-ending-actions { align-items: stretch; flex-direction: column; }
  .forest-story-ending-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .forest-story-entry-action,
  .forest-story-primary,
  .forest-story-secondary,
  .forest-story-home,
  .forest-story-back,
  .forest-story-progress > span,
  .forest-story-choice {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Scene changes follow user choices; the existing original artwork is reused. */
.forest-story-previous-choice { display: grid; gap: 5px; margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid #aa6741; border-radius: 0 10px 10px 0; background: #f6ead4; color: #493b2c; font-size: .9rem; line-height: 1.65; }
.forest-story-previous-choice span { color: #745741; font-size: .78rem; }
.forest-story-scene-art { position: relative; isolation: isolate; }
.forest-story-scene-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#49342435,transparent 65%); }
.forest-story-scene[data-story-scene-step="2"] .forest-story-scene-art::after { background: linear-gradient(135deg,#27495255,transparent 65%); }
.forest-story-scene[data-story-scene-step="3"] .forest-story-scene-art::after { background: radial-gradient(ellipse at 65% 35%,#ffd58c44,transparent 60%); }
.forest-story-scene[data-story-scene-step="4"] .forest-story-scene-art::after { background: linear-gradient(160deg,#c9864640,transparent 65%); }
.forest-story-scene[data-story-scene-step="5"] .forest-story-scene-art::after { background: linear-gradient(0deg,#ecd4a044,transparent 70%); }
.forest-story-scene-art img { animation: story-scene-arrive 420ms ease-out both; }
.forest-story-clue-toggle[aria-expanded="true"] .forest-story-clue-mark { color: #286049; }
.forest-story-clue-copy:not([hidden]) { animation: story-scene-arrive 220ms ease-out; }
@keyframes story-scene-arrive { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion:reduce) { .forest-story-scene-art img,.forest-story-clue-copy:not([hidden]) { animation: none; } }

.forest-theater-entry {
  margin: 20px 0 38px;
  color: #302f29;
}
.forest-theater-heading { margin: 0 0 14px; }
.forest-theater-heading h2 {
  margin: 3px 0 0;
  color: #342d25;
  font: 750 clamp(1.55rem, 3vw, 2.15rem)/1.12 var(--display, Georgia), Georgia, serif;
  letter-spacing: -0.035em;
}
.forest-theater-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.forest-theater-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(92, 73, 44, 0.18);
  border-radius: 19px;
  background: linear-gradient(108deg, #fff9ed 0%, #f8efdc 58%, #f4e8ce 100%);
  box-shadow: 0 12px 28px rgba(94, 76, 48, 0.08);
}
.forest-theater-story::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(#efbd62, #d97b46);
  content: "";
}
.forest-theater-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #294b42; }
.forest-theater-story-copy { min-width: 0; padding: 22px 24px 18px; }
.forest-theater-story-copy h3 {
  margin: 3px 0 6px;
  color: #342d25;
  font: 750 clamp(1.15rem, 2.3vw, 1.55rem)/1.2 var(--display, Georgia), Georgia, serif;
  letter-spacing: -0.025em;
}
.forest-theater-description {
  max-width: 67ch;
  margin: 0;
  color: #4d4a40;
  font-size: 0.94rem;
  line-height: 1.55;
}
.forest-theater-story .forest-story-entry-detail { margin-top: 6px; }
.forest-theater-story .forest-story-entry-action { justify-self: start; margin-inline: 24px; white-space: nowrap; min-height: 44px; }
.forest-story-ending-portrait { width: 150px; height: 190px; margin: 0 auto 16px; }
.forest-story-ending-portrait > svg { width: 100%; height: 100%; }

.forest-story {
  width: min(100%, 900px);
  margin: 16px auto 72px;
}
.forest-story-header {
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.forest-story-header h1 {
  max-width: 25ch;
  margin-top: 2px;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.forest-story-progress-row { margin-bottom: 10px; }
.forest-story-scene,
.forest-story-ending {
  padding: clamp(17px, 3vw, 30px);
  border-radius: 22px;
}
.forest-story-scene h2,
.forest-story-ending h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  line-height: 1.2;
}
.forest-story-passage,
.forest-story-branch,
.forest-story-ending-action,
.forest-story-ending-text {
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  line-height: 1.62;
}
.forest-story-choices { gap: 2px; margin-top: 12px; }
.forest-story-choice {
  min-height: 49px;
  padding-block: 8px;
  line-height: 1.45;
}
.forest-story-ending-label { margin: 4px 0 0; }
.forest-story-ending-role { margin-top: 6px; }
.forest-story-ending h2 { margin-block: 5px 7px; }
.forest-story-ending-action-label {
  margin: 14px 0 4px;
  color: #8c6637;
  font-size: 0.81rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}
.forest-story-ending-action { font-weight: 750; text-align: center; }
.forest-story-ending-text { margin-top: 10px; }
.forest-story-share {
  margin-top: 22px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid rgba(94, 79, 51, 0.16);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(242, 228, 193, 0.45), rgba(255, 252, 244, 0.9));
}
.forest-story-share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.forest-story-share-heading h3 {
  margin: 3px 0 0;
  color: #332f28;
  font: 750 clamp(1.2rem, 2.8vw, 1.7rem)/1.2 var(--display, Georgia), Georgia, serif;
}
.forest-story-share-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #895c2f;
  background: #f3dfb3;
}
.forest-story-share-preview {
  width: min(100%, 432px);
  aspect-ratio: 4 / 5;
  margin: 16px auto 12px;
  overflow: hidden;
  border: 1px solid rgba(74, 64, 47, 0.18);
  border-radius: 14px;
  background: #f2e3c2;
  box-shadow: 0 12px 26px rgba(60, 48, 32, 0.14);
}
.forest-story-share-preview svg { display: block; width: 100%; height: 100%; }
.forest-story-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.forest-story-share-actions button { min-height: 44px; padding: 9px 16px; }
.forest-story-ending-actions { margin-top: 17px; }
.forest-story-next {
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid #bd8346;
  border-radius: 999px;
  color: #fff8e9;
  background: #6d7655;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.forest-story-next:hover { background: #596646; transform: translateY(-1px); }
.forest-story-next span { margin-inline-start: 5px; }
.forest-theater-entry :focus-visible,
.forest-story :focus-visible {
  outline: 3px solid #7b5028;
  outline-offset: 3px;
}

.forest-story-invite {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(100% - 24px, 720px);
  margin: clamp(28px, 8vh, 72px) auto;
  padding: clamp(24px, 6vw, 48px);
  border: 1px solid rgba(92, 73, 44, 0.18);
  border-radius: 24px;
  color: #332f28;
  background: linear-gradient(135deg, #fff9ed, #f2e4c6);
  box-shadow: 0 16px 42px rgba(94, 76, 48, 0.11);
}
.forest-story-invite h1 {
  max-width: 26ch;
  margin: 0;
  color: #342d25;
  font: 750 clamp(1.65rem, 5vw, 2.5rem)/1.2 var(--display, Georgia), Georgia, serif;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.forest-story-invite button { min-height: 48px; margin-top: 5px; }

.story-collection {
  min-width: 0;
  margin-top: 12px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(94, 79, 51, 0.16);
  border-radius: 13px;
  background: rgba(255, 252, 244, 0.7);
}
.story-collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.story-collection-heading h3 {
  min-width: 0;
  margin: 0;
  color: #42382a;
  font-size: 0.88rem;
  font-weight: 800;
}
.story-collection-heading p {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  margin: 0;
  color: #635841;
  font-size: 0.75rem;
}
.story-collection-heading strong { color: #74502d; font-size: 0.85rem; }
.story-collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.story-collection-slot {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 3px;
  border-radius: 9px;
  color: #3f493d;
  background: #f5eddb;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.story-collection-slot--found { background: #eee3c9; }
.story-collection-mark { flex: 0 0 auto; color: #a36a36; font-size: 0.8rem; }
.story-collection-slot--hidden { background: #e9e3d5; }
.story-collection-silhouette { display: block; width: 30px; height: 30px; fill: #6a5941; }
.story-collection-storage-note {
  margin: 7px 0 0;
  color: #665b48;
  font-size: 0.72rem;
  line-height: 1.4;
}
.forest-theater-collection-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 11px;
}
.forest-theater-collection-controls button { min-height: 42px; padding: 8px 14px; }
.forest-theater-collection-controls button:disabled { cursor: not-allowed; opacity: 0.58; }
.forest-theater-collection-controls > p { margin: 0; color: #514c41; font-size: 0.82rem; }
.forest-theater-clear-confirmation {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 108, 64, 0.2);
  border-radius: 12px;
  background: #f5f0e5;
}
.forest-theater-clear-confirmation[hidden] { display: none; }
.forest-theater-clear-confirmation p { margin: 0; color: #514c41; font-size: 0.86rem; line-height: 1.4; }
.forest-theater-clear-confirmation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.forest-story-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(139, 108, 64, 0.18);
  border-radius: 13px;
  color: #484332;
  background: rgba(249, 241, 220, 0.78);
}
.forest-story-feedback-art { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 10px; }
.forest-story-feedback-art svg { display: block; width: 64px; height: 64px; }
.forest-story-feedback p { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.forest-story-feedback--lantern .forest-story-feedback-art svg { animation: story-lantern-glow 240ms ease-out both; }
.forest-story-feedback--receipt .forest-story-feedback-art svg { animation: story-receipt-print 220ms ease-out both; }

.forest-story-scene-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(132px, 0.55fr);
  align-items: stretch;
  gap: 12px;
  margin: 0 0 18px;
}
.forest-story-scene-art {
  min-width: 0;
  min-height: 190px;
  max-height: 330px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(94, 79, 51, 0.16);
  border-radius: 17px;
  background: #d9d1bd;
  box-shadow: 0 10px 24px rgba(60, 48, 32, 0.12);
}
.forest-story-scene-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: 330px;
  object-fit: cover;
  object-position: center;
}
.forest-story-scene-art[data-story-scene-index="0"] img { object-position: 50% 42%; }
.forest-story-scene-art[data-story-scene-index="1"] img { object-position: 43% 48%; }
.forest-story-scene-art[data-story-scene-index="2"] img { object-position: 57% 52%; }
.forest-story-scene-art[data-story-scene-index="3"] img { object-position: 48% 60%; }
.forest-story-scene-art[data-story-scene-index="4"] img { object-position: 62% 46%; }
.forest-story-scene-art[data-story-scene-index="5"] img { object-position: 40% 54%; }
.forest-story-scene-cast {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 10px 8px;
  overflow: hidden;
  border: 1px solid rgba(94, 79, 51, 0.15);
  border-radius: 17px;
  background: linear-gradient(160deg, #f7ecd4, #ebe1ca);
}
.forest-story-scene-portrait {
  display: grid;
  width: min(100%, 116px);
  height: 142px;
  place-items: end center;
  overflow: hidden;
}
.forest-story-scene-portrait svg { display: block; width: 100%; height: 100%; }
.forest-story-scene-cast figcaption {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}
.forest-story-scene-cast figcaption span:first-child {
  color: #856947;
  font-size: 0.7rem;
  font-weight: 750;
}
.forest-story-scene-cast figcaption strong {
  color: #3b382f;
  font-size: 0.8rem;
  line-height: 1.3;
}
.forest-story-scene-cast figcaption [data-story-scene-location] {
  color: #665d4c;
  font-size: 0.72rem;
  line-height: 1.3;
}
.forest-story-clues {
  margin-block: 14px 16px;
  padding: 12px 13px;
  border: 1px solid rgba(133, 105, 71, 0.17);
  border-radius: 15px;
  background: rgba(245, 237, 218, 0.74);
}
.forest-story-clues-label {
  margin: 0 0 7px;
  color: #6f6049;
  font-size: 0.78rem;
  line-height: 1.4;
}
.forest-story-clue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.forest-story-clue { min-width: 0; }
.forest-story-clue-toggle {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(124, 98, 63, 0.2);
  border-radius: 11px;
  color: #493f30;
  background: #fffaf0;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}
.forest-story-clue-toggle:hover { background: #fff3d9; }
.forest-story-clue-toggle[aria-expanded="true"] { border-color: #bd8346; background: #f7e8c8; }
.forest-story-clue-mark { flex: 0 0 auto; color: #986333; font-size: 1.05rem; }
.forest-story-clue-chevron { flex: 0 0 auto; margin-inline-start: auto; color: #856947; }
.forest-story-clue-toggle[aria-expanded="true"] .forest-story-clue-chevron { transform: rotate(45deg); }
.forest-story-clue-copy {
  margin: 6px 2px 0;
  padding: 8px 10px;
  border-inline-start: 2px solid #bd8346;
  color: #4f493c;
  font-size: 0.82rem;
  line-height: 1.5;
}
.forest-story-clue-copy[hidden] { display: none; }
.forest-story-clue-toggle:focus-visible { outline: 3px solid #7b5028; outline-offset: 2px; }
.forest-story-replay-hint {
  flex: 1 1 100%;
  margin: 0;
  color: #655842;
  font-size: 0.82rem;
  line-height: 1.45;
}
.forest-story-invite :focus-visible { outline: 3px solid #7b5028; outline-offset: 3px; }

@keyframes story-lantern-glow {
  from { opacity: 0.64; filter: brightness(0.8); }
  to { opacity: 1; filter: brightness(1); }
}
@keyframes story-receipt-print {
  from { transform: translateY(-3px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 560px) {
  .forest-theater-entry { margin-block: 17px 30px; }
  .forest-theater-stories { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .forest-theater-heading { margin-bottom: 10px; }
  .forest-theater-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 0 18px;
    border-radius: 16px;
  }
  .forest-theater-art { max-height: none; }
  .forest-theater-story-copy { padding: 18px 18px 14px; }
  .forest-theater-story-copy h3 { font-size: 1.12rem; }
  .forest-theater-description { font-size: 0.9rem; }
  .forest-theater-story .forest-story-entry-action {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 44px;
    margin-inline: 18px;
    padding: 9px 16px;
  }
  .forest-story { margin-top: 12px; padding-inline: 10px; }
  .forest-story-header {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
  }
  .forest-story-header h1 { max-width: 20ch; font-size: clamp(1.2rem, 5vw, 1.55rem); }
  .forest-story-home { min-height: 42px; flex: 0 0 auto; padding: 8px 12px; }
  .forest-story-progress-row { grid-template-columns: auto minmax(70px, 1fr); gap: 9px; margin-bottom: 8px; }
  .forest-story-scene,
  .forest-story-ending { padding: 17px 16px; border-radius: 18px; }
  .forest-story-scene-visuals { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
  .forest-story-scene-art,
  .forest-story-scene-art img { min-height: 185px; max-height: 260px; }
  .forest-story-scene-cast { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 92px; padding: 7px 12px; }
  .forest-story-scene-portrait { width: 58px; height: 76px; flex: 0 0 auto; }
  .forest-story-scene-cast figcaption { justify-items: start; text-align: start; }
  .forest-story-clue-list { grid-template-columns: minmax(0, 1fr); }
  .forest-story-scene h2,
  .forest-story-ending h2 { font-size: 1.42rem; }
  .forest-story-passage { line-height: 1.55; }
  .forest-story-choice { grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 8px; padding: 7px 4px; }
  .forest-story-choice-mark { width: 25px; height: 25px; }
  .forest-story-share-actions { align-items: stretch; flex-direction: column; }
  .forest-story-share-actions button { width: 100%; }
  .forest-story-ending-actions { align-items: stretch; flex-direction: column; }
  .forest-story-ending-actions button { width: 100%; }
  .forest-theater-story .story-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .forest-theater-collection-controls { align-items: stretch; flex-direction: column; }
  .forest-theater-collection-controls button { width: 100%; }
  .forest-theater-clear-confirmation { align-items: stretch; flex-direction: column; }
  .forest-theater-clear-confirmation-actions { flex-direction: column; }
  .forest-story-feedback { align-items: flex-start; }
  .forest-story-replay-hint { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .forest-theater-story .forest-story-entry-action,
  .forest-story-next,
  .forest-story-feedback-art svg { animation: none; transition: none; }
}
