#journeyJournal {
  --jn-ink: #e9dfc5;
  --jn-gold: #bda06a;
  box-sizing: border-box;
  width: min(1460px, 96vw);
  height: min(1040px, 94dvh);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: clamp(22px, 4vw, 64px);
  overflow: auto;
  overscroll-behavior: none;
  color: var(--jn-ink);
  background: radial-gradient(ellipse at 70% 0, #35463c66, transparent 55%), #141c1a;
  border: 1px solid #aa95605c;
  border-radius: 12px;
  box-shadow: 0 35px 100px #000b;
  font: 15px/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
}
/* Keep the viewport cover independent of the game's painting during journal scrolling. */
#journeyJournal::backdrop, #journalIllustration::backdrop { background: #070d0c; }
.jn-exploration { display: block; padding: 8px 12px; color: #cfbc96; font-size: 11px; }
.jn-exploration .jn-meter { display: inline-flex; width: calc(100% - 42px); margin-right: 6px; }
.jn-exploration .jn-meter > span { display: none; }
#journalFeedback { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10000; padding: 10px 20px; border: 1px solid #bda06a; border-radius: 20px; background: #141c1a; color: #e9dfc5; pointer-events: none; }
.jn-new { display: inline-block; vertical-align: middle; padding: 1px 5px; border: 1px solid #e8ba6e88; border-radius: 3px; background: #6a3d19; color: #ffe4a3; font: 700 10px/1.5 system-ui, sans-serif; letter-spacing: .03em; white-space: nowrap; }
.jn-results { margin: 20px 0; padding: 18px 0; border-top: 1px solid #bda06a66; border-bottom: 1px solid #bda06a44; text-align: left; }
.jn-results h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 18px; }
.jn-results h3 > span { color: #d7b573; font-variant-numeric: tabular-nums; }
.jn-result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 3px; }
.jn-result-card { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 7px; color: inherit; background: #bda06a0c; border: 1px solid #bda06a44; border-radius: 5px; text-align: left; font: inherit; cursor: pointer; }
.jn-result-card img { width: 36px; height: 48px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.jn-result-card > span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.jn-result-card small { display: block; opacity: .75; font-size: 11px; }
.jn-result-card > span:last-child { margin-left: auto; font-size: 11px; color: #bda06a; }
.jn-result-empty { opacity: .7; font-size: 13px; }
.jn-results h4 { margin: 16px 0 10px; font-size: 14px; }
.jn-result-unlocks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.jn-result-unlocks button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; min-height: 44px; border: 1px solid #bda06a55; border-radius: 4px; background: #bda06a12; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.jn-result-unlocks svg, #endJournal svg { width: 18px; height: 18px; vertical-align: middle; margin-right: 5px; }
.jn-results button:focus-visible { outline: 2px solid #e8ba6e; outline-offset: 2px; }
.jn-results button:hover { background: #bda06a22; }
#journeyJournal *, #journeyJournal *::before, #journeyJournal *::after { box-sizing: border-box; }
#journeyJournal [hidden] { display: none !important; }
#journeyJournal button { font: inherit; color: inherit; cursor: pointer; }
#journeyJournal button:focus-visible, #journeyJournal [tabindex]:focus-visible { outline: 2px solid #f4cd80; outline-offset: 4px; }
#journeyJournal svg { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
#journeyJournal h1, #journeyJournal h2, #journeyJournal h3, #journeyJournal p { margin: 0; }
#journeyJournal h1, #journeyJournal h3 { font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; }
#journeyJournal .jn-close { position: sticky; top: 0; z-index: 4; float: right; display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -34px 0; border: 1px solid #bda06a55; border-radius: 50%; background: #141c1aee; }
.jn-hero { position: relative; display: flex; align-items: center; min-height: 270px; margin-bottom: 36px; border-bottom: 1px solid #bda06a38; overflow: hidden; }
.jn-hero-copy { position: relative; z-index: 1; width: 55%; padding: 18px 0 36px; }
.jn-eyebrow { color: #b4a486; font-size: 10px; letter-spacing: .24em; }
#journeyJournal h1 { margin: 10px 0 8px; font-size: clamp(30px, 4vw, 52px); font-weight: 500; letter-spacing: .16em; }
.jn-hero-copy p { color: #a4b2a7; letter-spacing: .14em; }
.jn-total { width: min(300px, 100%); margin-top: 24px; }
.jn-total > span { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #cfbc96; }
.jn-not-started { color: #89978d; font-size: 11px; }
.jn-meter { display: flex; align-items: center; gap: 12px; width: 100%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jn-meter progress { appearance: none; flex: 1; min-width: 24px; width: 100%; height: 3px; border: 0; border-radius: 2px; background: #76817035; overflow: hidden; accent-color: #c9ab72; }
.jn-meter progress::-webkit-progress-bar { background: #76817035; }
.jn-meter progress::-webkit-progress-value { background: #c9ab72; }
.jn-meter progress::-moz-progress-bar { background: #c9ab72; }
.jn-meter small { color: #8e9b90; }
.jn-hero-art { position: absolute; right: 4%; top: 28px; width: 39%; height: 100%; display: flex; align-items: flex-start; justify-content: center; gap: 4%; pointer-events: none; }
.jn-hero-art img { width: 36%; height: 86%; object-fit: cover; border: 1px solid #bda06a80; border-radius: 80px 80px 3px 3px; box-shadow: 0 14px 28px #0008; }
.jn-hero-art img:first-child { transform: rotate(-12deg) translateY(28px); }
.jn-hero-art img:last-child { transform: rotate(12deg) translateY(28px); }
.jn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
#journeyJournal h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; letter-spacing: .12em; }
.jn-section-head { display: flex; align-items: center; justify-content: space-between; color: #d7c498; }
.jn-section-head > span { color: #86988a; font-size: 12px; }
.jn-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px; }
.jn-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 44px; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 12px !important; }
.jn-filters button[aria-pressed="true"] { border-color: #bda06a77; background: #bda06a12; color: #e5c992 !important; }
.jn-filters svg { width: 16px !important; height: 16px !important; }
.jn-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 18px; }
.jn-wonder { display: block; min-width: 0; padding: 0 0 8px; text-align: left; background: none; border: 0; border-radius: 5px; }
.jn-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid #bda06a55; border-radius: 80px 80px 3px 3px; background: #26332c; }
.jn-art img { position: absolute; display: block; width: 112%; max-width: none; height: auto; left: -6%; top: -17%; transition: transform .3s ease, filter .3s ease; filter: saturate(.72); }
.jn-art::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #07120dc9); pointer-events: none; }
.jn-card-seal { position: absolute; z-index: 1; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d5bd8777; border-radius: 50%; color: #e0cc9e; background: #17241ed9; }
.jn-card-seal svg { width: 15px !important; height: 15px !important; }
.jn-card-id { position: absolute; z-index: 1; left: 10px; bottom: 12px; color: #e5dbbf; font: 11px/1.5 Georgia, serif; letter-spacing: .12em; }
.jn-card-name { display: block; margin-top: 10px; font: 16px/1.5 "Songti SC", Georgia, serif; }
.jn-card-foot { display: flex; gap: 5px; align-items: center; margin-top: 5px; color: #92a292; font-size: 10px; }
.jn-card-foot svg { width: 13px !important; height: 13px !important; }
.jn-card-foot > span:last-child { margin-left: auto; color: #c5b28a; font-variant-numeric: tabular-nums; }
.jn-discovered .jn-art { border-color: #dbc182; }
.jn-discovered img { filter: none; }
.jn-archives { min-width: 0; }
.jn-archives > h2 { margin-bottom: 18px !important; color: #d7c498; }
.jn-realm { margin-bottom: 16px; border: 1px solid #bda06a30; border-radius: 5px; overflow: hidden; background: #09140d33; }
.jn-realm-banner { position: relative; height: 72px; overflow: hidden; }
.jn-realm-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .4; }
.jn-realm-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #102019dd, transparent); }
#journeyJournal .jn-realm-banner h3 { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 22px 14px; font-weight: 500; font-size: 18px; letter-spacing: .15em; }
.jn-volume { display: grid; grid-template-columns: 18px 1fr 16px; align-items: center; gap: 2px 8px; width: 100%; padding: 11px 14px; text-align: left; background: none; border: 0; border-top: 1px solid #bda06a25; font-size: 12px !important; }
.jn-volume > svg { width: 16px !important; height: 16px !important; color: #a99874; }
.jn-volume > svg:last-child { grid-column: 3; grid-row: 1 / span 2; }
.jn-volume .jn-meter { grid-column: 2; font-size: 10px; }
.jn-warning { padding: 12px; margin: 0 0 24px !important; border: 1px solid #d09b64; background: #5b361a66; color: #f0c89d; }
.jn-reader-head { display: flex; align-items: center; gap: 28px; padding-right: 44px; margin: 4px 0 30px; }
.jn-reader-head button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; background: none; border: 0; color: #c3ae83 !important; white-space: nowrap; }
.jn-reader-head h2 { min-width: 0; letter-spacing: .04em !important; }
.jn-reader-views { display: flex; gap: 8px; margin-bottom: 18px; }
.jn-reader-views button { min-height: 44px; padding: 8px 18px; border: 1px solid #bda06a55; border-radius: 4px; background: transparent; }
.jn-reader-views button[aria-pressed="true"] { background: #bda06a22; border-color: #dbc182; }
.jn-panorama-view .jn-book { display: block; height: auto; min-height: 280px; border: 1px solid #bda06a55; background: #0c1412; color: #e9dfc5; box-shadow: none; }
.jn-panorama-view .jn-frontispiece { display: none; }
.jn-panorama-view .jn-leaf { padding: clamp(12px, 2vw, 24px); background: none; box-shadow: none; color-scheme: dark; }
.jn-panorama-view .jn-page { overflow: visible; height: auto; min-height: 240px; }
#journeyJournal .jn-panorama-view .jn-prose { max-width: none; height: auto; }
#journeyJournal .jn-panorama-view .jn-prose .jn-page-title { color: #e9dfc5; border-color: #bda06a55; }
.jn-panorama-view .jn-print { flex: none; }
.jn-panorama-view .jn-plate { width: auto; max-width: 100%; height: auto; max-height: max(180px, calc(94dvh - 300px)); margin-inline: auto; object-fit: contain; mix-blend-mode: normal; filter: none; mask-image: none; -webkit-mask-image: none; }
.jn-panorama-view .jn-page-nav { display: none; }
.jn-book { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); height: min(640px, 65dvh); min-height: 260px; border: 5px solid #5b432c; border-radius: 6px 12px 12px 6px; background: #d7c9a7; box-shadow: 0 22px 50px #0007, 4px 4px 0 #c6b894, 7px 7px 0 #725a3c; color: #392e20; overflow: hidden; }
.jn-frontispiece { position: relative; overflow: hidden; background: #23332b; }
.jn-frontispiece > img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.jn-frontispiece::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #0d1a13f2); }
.jn-frontispiece > div { position: absolute; z-index: 1; bottom: 9%; left: 8%; right: 8%; text-align: center; color: #f0e2be; }
#journeyJournal .jn-frontispiece h3 { margin: 12px 0; font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; }
.jn-frontispiece small { color: #ccbd99; font-size: 10px; }
.jn-leaf { min-height: 0; min-width: 0; padding: clamp(18px, 3vw, 46px); background: linear-gradient(90deg, #95846966, transparent 9%, #fff8df55 80%, #b4a48344), #e5d9bb; box-shadow: inset 12px 0 22px -12px #291b10b3; color-scheme: light; }
.jn-page { height: 100%; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #a28b64 transparent; padding: 4px 8px 8px; touch-action: pan-y; }
#journeyJournal .jn-page h3 { font-size: 22px; font-weight: 500; margin: 0 0 24px; }
#journeyJournal .jn-page p { margin: 0 0 1em; white-space: pre-line; font: 16px/1.95 "Songti SC", "Noto Serif CJK SC", Georgia, serif; }
#journeyJournal .jn-prose { max-width: 36em; margin-inline: auto; color: #342e26; font: 17px/1.95 "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif; letter-spacing: .025em; text-align: start; }
#journeyJournal .jn-prose p { margin: 0 0 1.15em; color: inherit; font: inherit; white-space: normal; }
#journeyJournal .jn-prose .jn-page-title { color: #4a3526; font-family: inherit; font-size: 23px; line-height: 1.5; letter-spacing: .06em; padding-bottom: .7em; border-bottom: 1px solid #8e765a40; }
#journeyJournal .jn-prose :is(h4, h5, h6) { margin: 1.4em 0 .65em; color: #503c2b; font-family: inherit; font-size: 19px; line-height: 1.6; font-weight: 600; letter-spacing: .04em; }
#journeyJournal .jn-prose :is(h4, h5, h6):first-child { margin-top: 0; }
#journeyJournal .jn-prose strong { color: #3d2c20; font-weight: 700; }
#journeyJournal .jn-prose em { color: #655039; }
#journeyJournal .jn-prose blockquote { margin: 1.2em 0; padding: .3em 0 .3em 1em; border-left: 2px solid #9a7f54; color: #594b3b; background: #8e765a08; }
#journeyJournal .jn-prose blockquote p:last-child { margin-bottom: 0; }
#journeyJournal .jn-prose :is(ul, ol) { margin: .8em 0 1.2em; padding-left: 1.6em; color: inherit; font: inherit; }
#journeyJournal .jn-prose li { margin-bottom: .45em; }
#journeyJournal .jn-prose hr { width: 35%; margin: 1.6em auto; border: 0; border-top: 1px solid #937a565c; }
#journeyJournal .jn-prose code { padding: .1em .3em; border-radius: 3px; background: #7d684512; color: #503c2b; font: .85em/1.7 ui-monospace, monospace; }
#journeyJournal .jn-prose ::selection { background: #b89a5f55; color: #211b15; }
.jn-locked { display: flex; flex-direction: column; min-height: 100%; justify-content: center; align-items: center; text-align: center; color: #897a5e; }
.jn-locked > svg { width: 48px !important; height: 48px !important; margin-bottom: 24px; opacity: .65; }
#journeyJournal .jn-locked h3 { font-size: 20px; letter-spacing: .2em; margin-bottom: 12px; }
#journeyJournal .jn-locked p { max-width: 240px; font: 12px/1.8 system-ui, sans-serif; color: #897a5e; }
.jn-lock-rule { margin-top: 36px; opacity: .5; }
.jn-illustrated article { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#journeyJournal .jn-illustrated h3 { flex: 0 0 auto; margin-bottom: 12px; }
.jn-print { position: relative; display: block; flex: 1; min-height: 0; width: 100%; padding: 0; border: 0; background: transparent; isolation: isolate; cursor: zoom-in !important; }
.jn-plate { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; filter: saturate(.8) contrast(.96); -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 38%, #000e 55%, #0008 76%, #0002 92%, transparent 100%); mask-image: radial-gradient(ellipse closest-side at center, #000 38%, #000e 55%, #0008 76%, #0002 92%, transparent 100%); }
.jn-print-expand { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #897a5e77; border-radius: 50%; background: #e5d9bbcc; color: #594b32; pointer-events: none; }
#journalIllustration { box-sizing: border-box; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); border: 0; background: #070d0cf5; overflow: hidden; overscroll-behavior: none; }
#journalIllustration[open] { display: flex; align-items: center; justify-content: center; }
#journalIllustration > img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
#journalIllustration > button { position: absolute; z-index: 1; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #bda06a88; border-radius: 50%; background: #141c1aee; color: #e9dfc5; cursor: pointer; }
#journalIllustration > button svg { width: 24px; height: 24px; }
#journalIllustration > button:focus-visible { outline: 2px solid #f4cd80; outline-offset: 3px; }
#journalIllustration > .jn-zoom { right: max(72px, calc(env(safe-area-inset-right) + 56px)); }
#journalIllustration[open].jn-zoomed { display: block; overflow: auto; }
#journalIllustration.jn-zoomed > img { max-width: none; max-height: none; margin: auto; }
#journalIllustration.jn-zoomed > button { position: fixed; }
.jn-page-nav { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 28px; }
.jn-page-nav button { display: grid; place-items: center; width: 48px; height: 44px; background: #bda06a10; border: 1px solid #bda06a55; border-radius: 3px; }
#journeyJournal button:disabled { opacity: .28; cursor: default; }
.jn-page-number { min-width: 90px; text-align: center; font-size: 13px; letter-spacing: .15em; color: #c4b38d; font-variant-numeric: tabular-nums; }
.lb-journal { position: absolute; top: max(56px, calc(92 * var(--s))); right: max(14px, env(safe-area-inset-right)); min-height: 44px; min-width: 0; z-index: 2; gap: 8px; }
.lb-journal .lb-ic { width: 20px; height: 20px; }
#app #btnJournal { display: grid; place-items: center; flex: 0 0 40px; width: 40px; min-height: 40px; padding: 0; }
@media (hover: hover) {
  .jn-wonder:hover img { transform: scale(1.045); filter: saturate(1); }
  .jn-volume:hover, .jn-filters button:hover { background: #bda06a18; }
}
@media (max-width: 950px) {
  .jn-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; }
  .jn-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px 12px; }
}
@media (max-width: 650px) {
  #journeyJournal { width: 100vw; height: 100dvh; border: 0; border-radius: 0; padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
  .jn-hero { min-height: 230px; margin-bottom: 24px; }
  .jn-hero-copy { width: 70%; }
  .jn-hero-art { right: -14%; top: 60px; width: 50%; opacity: .55; }
  .jn-eyebrow { letter-spacing: .1em; font-size: 9px; }
  .jn-hero-copy p { font-size: 12px; }
  .jn-total { width: 82%; }
  .jn-layout { display: flex; flex-direction: column; }
  .jn-archives { order: -1; }
  .jn-archive-volumes { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior: contain; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
  .jn-realm { flex: 0 0 160px; margin-bottom: 0; scroll-snap-align: start; }
  .jn-realm-banner { height: 52px; }
  #journeyJournal .jn-realm-banner h3 { padding: 12px; font-size: 16px; }
  .jn-volume { padding: 8px; gap: 2px 5px; }
  .jn-history .jn-volume { min-height: 90px; }
  .jn-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jn-filters { gap: 2px; }
  .jn-filters button { padding: 6px 9px; }
  .jn-reader-head { gap: 10px; margin-bottom: 16px; }
  .jn-reader-head button { font-size: 12px !important; }
  .jn-reader-head h2 { font-size: 14px !important; }
  .jn-book { display: flex; flex-direction: column; height: calc(100dvh - 180px); min-height: 320px; }
  .jn-frontispiece { flex: 0 0 105px; }
  .jn-frontispiece > img { object-position: 50% 30%; }
  .jn-frontispiece > div { bottom: 10px; }
  .jn-frontispiece > div > span, .jn-frontispiece small { display: none; }
  .jn-frontispiece small.jn-story-pending { display: block; }
  #journeyJournal .jn-frontispiece h3 { font-size: 20px; }
  .jn-leaf { flex: 1; padding: 20px; }
  .jn-page-nav { margin-top: 16px; }
}
@media (max-height: 500px) and (min-width: 651px) {
  #journeyJournal { width: 98vw; height: 98dvh; padding: 18px 30px; }
  .jn-hero { min-height: 200px; }
  .jn-reader-head { margin: 0 0 10px; }
  .jn-book { height: calc(98dvh - 145px); min-height: 150px; }
  .jn-leaf { padding: 16px 24px; }
  .jn-page-nav { margin-top: 12px; }
}
@media (max-width: 950px), (max-height: 600px) {
  #journeyJournal:has(.jn-reader:not([hidden])) {
    width: 100vw;
    height: 100dvh;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }
  #journeyJournal:has(.jn-reader:not([hidden])) .jn-close {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    margin: 0;
  }
  #journeyJournal .jn-reader { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 8px; }
  .jn-reader > .jn-reader-head { flex: 0 0 auto; min-height: 44px; margin: 0; padding-right: 52px; gap: 12px; }
  .jn-reader-head h2 { overflow-wrap: anywhere; }
  .jn-reader > .jn-reader-views { flex: 0 0 auto; margin: 0; }
  .jn-reader > .jn-book { flex: 1 1 0; height: auto; min-height: 0; }
  .jn-reader .jn-leaf { min-height: 0; padding: 12px 16px; }
  .jn-reader .jn-page { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
  #journeyJournal .jn-reader .jn-prose { height: auto; min-height: 100%; }
  .jn-reader .jn-illustrated .jn-print { flex: 0 0 auto; height: clamp(140px, 40dvh, 320px); }
  .jn-reader.jn-panorama-view > .jn-book { display: flex; flex-direction: column; }
  .jn-reader.jn-panorama-view .jn-leaf { flex: 1 1 0; }
  .jn-reader.jn-panorama-view .jn-page { overflow: hidden; }
  #journeyJournal .jn-reader.jn-panorama-view .jn-prose { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  #journeyJournal .jn-reader.jn-panorama-view .jn-page-title { flex: 0 0 auto; margin-bottom: 8px; padding-bottom: 4px; font-size: 18px; }
  .jn-reader.jn-panorama-view .jn-print { flex: 1 1 0; height: auto; min-height: 0; }
  .jn-reader.jn-panorama-view .jn-plate { width: 100%; height: 100%; max-height: 100%; }
  .jn-reader > .jn-page-nav { flex: 0 0 auto; margin: 0; }
}
@media (max-width: 650px) {
  .jn-reader .jn-frontispiece { flex-basis: 72px; }
}
@media (max-width: 650px) and (max-height: 500px) {
  .jn-reader .jn-frontispiece { display: none; }
}
@media (prefers-reduced-motion: reduce) { .jn-art img { transition: none; } }
