.game[data-screen="recovery"] #stage { display: none; }
.game[data-screen="recovery"] #main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 20px clamp(16px, 5vw, 64px) 32px;
}
.game[data-screen="recovery"] #story {
  width: min(100%, 840px);
  min-height: 0;
  max-width: none;
  margin: auto;
  padding: 0;
}
.journal {
  --journal-ink: #173e3b;
  --journal-paper: #fffaf0;
  overflow: hidden;
  color: var(--journal-ink);
  background: var(--journal-paper);
  border: 1px solid #cec9b8;
  border-radius: 15px;
  box-shadow: 0 3px #e8dcca, 0 5px #c2b5a4, 0 14px 32px #183a342b;
}
.journal-header, .journal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px clamp(18px, 3vw, 34px);
}
.journal-header {
  color: #fffaf0;
  background: #285550;
  font-size: 16px;
  font-weight: 700;
}
.journal-page-count { font-size: 13px; font-weight: 500; }
.journal-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  touch-action: pan-y pinch-zoom;
}
.journal-art-page, .journal-text-page { position: relative; }
.journal-art-page {
  display: grid;
  align-content: center;
  padding: clamp(26px, 4vw, 46px) clamp(22px, 3.5vw, 38px);
  background: linear-gradient(90deg, #efe5d1 0%, #f8efdc 8%, #f9f0dd 94%, #ddcfb6 100%);
}
.journal-print {
  position: relative;
  margin: 0;
  padding: 8px 8px 0;
  background: #fffdf4;
  box-shadow: 0 3px 6px #5e514530;
  transform: rotate(-2deg);
}
.journal-print::before {
  position: absolute;
  content: '';
  z-index: 1;
  top: -8px;
  left: calc(50% - 30px);
  width: 60px;
  height: 16px;
  background: #dcad75b8;
  transform: rotate(-5deg);
}
.journal-picture {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
  height: clamp(194px, 25vw, 260px);
  overflow: hidden;
  background-size: cover;
  background-position: 67% center;
}
.journal-picture--centro { background-image: url('assets/centro.png'); }
.journal-picture--costa { background-image: url('assets/costa.png'); }
.journal-picture .journal-portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
}
.journal-print figcaption {
  padding: 10px 4px 11px;
  color: #53625a;
  font-size: 13px;
  text-align: center;
}
.journal-text-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 4vw, 50px) clamp(22px, 3.4vw, 42px);
  background: linear-gradient(90deg, #e1d5be99, transparent 14px), var(--journal-paper);
}
.journal-date { color: #92513c; font-size: 14px; font-weight: 700; }
#story .journal h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--journal-ink);
  font-family: inherit;
  font-size: clamp(26px, 3.25vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.09;
}
#story .journal p { max-width: 36ch; margin: 0; font-size: 16px; line-height: 1.55; color: #405850; }
.journal-nav { border-top: 1px solid #d8cfbb; }
.journal-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}
.journal-prev { color: var(--journal-ink); background: transparent; }
.journal-prev:enabled:hover { background: #e8e5d7; }
.journal-next { color: white; background: #7133b2; }
.journal-next:hover { background: #5c2599; }
.journal-nav button:focus-visible { outline: 3px solid #ac563b; outline-offset: 3px; }
@media (max-width: 660px) {
  .game[data-screen="recovery"] #main { padding: 8px 16px 22px; }
  .journal-spread { grid-template-columns: minmax(0, 1fr); }
  .journal-header, .journal-nav { padding: 12px 16px; }
  .journal-art-page { padding: 16px 24px 12px; background: #f3e9d4; }
  .journal-print { width: min(100%, 320px); margin: auto; transform: rotate(-1.4deg); }
  .journal-picture { height: clamp(128px, 21svh, 176px); }
  .journal-print figcaption { padding: 5px; font-size: 12px; }
  .journal-text-page { padding: 18px 20px 20px; gap: 8px; background: var(--journal-paper); }
  #story .journal h2 { max-width: none; font-size: 25px; }
  #story .journal p { max-width: none; font-size: 15px; }
}
