/* The chronicle remains readable without JavaScript; the binding is enhanced. */
.wiki-book { display: none; }
body.book-ready .wiki-shell > :is(.wiki-hero, .wiki-stats, .wiki-catalog, .legacy-section, .lore-section, .wiki-about) { display: none; }
body.book-ready .wiki-book { display: block; }
body.book-ready .wiki-shell { width: min(1200px, calc(100% - 72px)); }
body.book-ready { background: var(--grain), radial-gradient(ellipse at 50% 220px, #254050 0, #102333 43%, #091722 80%); }
.wiki-book { --book-ink: #34382f; --book-muted: #626453; --book-gold: #866536; --book-line: #94744848; position: relative; margin: 30px auto 58px; scroll-margin-top: 24px; }
.book-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 3px 24px; }
.book-heading h1 { margin: 0; color: #eadfc7; font: 400 clamp(30px, 4vw, 42px)/1.1 Georgia, serif; letter-spacing: -.03em; }
.book-heading h1 em { color: #d5b882; font-weight: 400; }
.book-heading .chapter-kicker, .book-heading .eyebrow { margin: 0 0 9px; color: #c5ae85; font: 10px/1.6 "Trebuchet MS", sans-serif; letter-spacing: .11em; }
.book-heading > p { max-width: 31ch; margin: 0 0 2px; color: #bcb8a9; text-align: right; font: italic 13px/1.65 Georgia, serif; }
.book-tools { position: relative; z-index: 4; display: flex; gap: 12px; align-items: start; margin-bottom: -13px; padding-inline: 24px; }
.book-tools [data-book-chapters] { flex: 1; min-width: 0; }
.book-tools .chapter-index { position: static; z-index: auto; flex: 1; gap: 11px; min-height: 70px; padding: 0; border: 0; background: none; box-shadow: none; }
.book-tools .chapter-index a { --ribbon: #214f65; --ribbon-light: #39829b; position: relative; justify-content: center; gap: 9px; min-height: 71px; padding: 12px 16px 23px; border: 0; color: #edf1ed; background: repeating-linear-gradient(90deg, #ffffff09 0 1px, transparent 1px 3px), linear-gradient(90deg, #102c3c, var(--ribbon) 8%, var(--ribbon-light) 50%, var(--ribbon) 92%, #102c3c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%); font-size: 11px; text-decoration: none; text-shadow: 0 1px 1px #091722a0; transform-origin: top center; }
.book-tools .chapter-index a::before { content: ""; position: absolute; inset: 3px 5px 15px; border-inline: 1px dashed #e8dbb74a; border-top: 1px solid #e8dbb74a; pointer-events: none; }
.book-tools .chapter-index a:nth-of-type(2) { --ribbon: #7c623b; --ribbon-light: #b59961; }
.book-tools .chapter-index a:nth-of-type(3) { --ribbon: #263d53; --ribbon-light: #4b667f; }
.book-tools .chapter-index a > span { color: #e4d8b9; }
.book-tools .chapter-index a[aria-current="location"] { color: #fff7e5; transform: translateY(5px); }
.book-tools .chapter-index a[aria-current="location"]::before { border-color: #fff0c48c; }
.book-tools .chapter-index a:hover { color: #fff7e5; transform: translateY(4px); }
.book-tools .chapter-index a:focus-visible { outline: 3px solid #fff0c4; outline-offset: -8px; }
.book-tools .chapter-index a::after { display: none; }
.book-tools .chapter-index-label { display: none; }
.book-search-toggle, .book-reopen { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #c5a16a60; border-radius: 2px; color: #e5d6b5; background: #122838; font-size: 11px; cursor: pointer; }
.book-reopen { color: #c7baa0; border-color: #c5a16a30; background: #12283870; }
.book-reopen:hover { color: #fff0c4; border-color: #d7b47d; }
.book-search-toggle:hover, .book-search-toggle[aria-expanded="true"] { border-color: #d7b47d; background: #1a3242; }
.book-search-toggle svg { width: 18px; height: 18px; }
.book-search-panel { position: relative; z-index: 4; margin: 23px 0 18px; padding: 21px; border: 1px solid #c5a16a42; background: #0c1e2d; box-shadow: 0 12px 20px #0002; }
.book-search-panel .wiki-controls { margin: 0; }
.book-search-panel .results-row { padding-bottom: 0; }
.book-search-results { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 0 0; }
.book-search-results a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 11px; border: 1px solid #c5a16a40; color: #ded2b8; font-size: 11px; }
.book-search-results a:hover { border-color: #d7b47d; background: #c5a16a10; }
.book-search-results img { width: 25px; height: 25px; object-fit: contain; image-rendering: pixelated; }
.book-search-panel .wiki-empty { padding: 22px 15px; margin-top: 14px; }
.book-search-panel .wiki-empty h3 { margin-top: 0; }
.book-search-close { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-top: 14px; padding: 8px 0; border: 0; color: #c7b38b; background: none; font-size: 11px; cursor: pointer; }
.book-search-close:hover { color: #eed8ab; }
.book-search-close span { font-size: 19px; }

/* Leather binding, stacked page edges and a seam between facing leaves. */
.book-stage { position: relative; isolation: isolate; overflow: clip; padding: 20px 21px 19px; border: 1px solid #b08e547d; border-radius: 9px 12px 14px 9px; background: var(--grain), repeating-linear-gradient(113deg, #ffffff04 0 1px, transparent 1px 5px), linear-gradient(90deg, #081723, #203748 5%, #132936 47%, #06141d 50%, #18303f 54%, #0e2534); box-shadow: 0 28px 65px #0007, 0 6px 0 #08141d, 0 9px 0 #31424a, 0 13px 0 #07141d, inset 0 0 0 6px #091b2b, inset 0 0 0 7px #ac8a4b55; perspective: 2200px; }
.book-stage::before { content: ""; position: absolute; inset: 26px 19px 12px; z-index: -1; border-radius: 3px 3px 6px 6px; background: repeating-linear-gradient(0deg, #e1d6bd 0 1px, #a99570 1px 2px, #ede4cc 2px 4px); box-shadow: 0 5px 3px #0006; }
.book-stage::after { content: ""; position: absolute; top: 20px; bottom: 88px; left: 50%; z-index: 2; width: 27px; transform: translateX(-50%); background: repeating-linear-gradient(0deg, transparent 0 44px, #71552e66 44px 45px, #ffe8b933 45px 46px, transparent 46px 51px), linear-gradient(90deg, transparent, #7859320b 15%, #47392538 44%, #352d235e 50%, #725c3238 56%, #f9edcf0b 82%, transparent); pointer-events: none; }
.book-metal { position: absolute; z-index: 7; width: 29px; height: 29px; border: 1px solid #d0b17b; border-radius: 2px; background: var(--grain), linear-gradient(135deg, #ddc58f, #8c6b3b 47%, #bd9c60 50%, #664c2c); clip-path: polygon(0 0, 100% 0, 100% 22%, 31% 31%, 22% 100%, 0 100%); filter: drop-shadow(1px 2px 1px #0008); pointer-events: none; }
.book-metal::after { content: ""; position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: #e4cf9e; box-shadow: 0 1px 1px #372c24; }
.book-metal-tl { left: 4px; top: 4px; }.book-metal-tr { right: 4px; top: 4px; transform: rotate(90deg); }.book-metal-bl { left: 4px; bottom: 4px; transform: rotate(-90deg); }.book-metal-br { right: 4px; bottom: 4px; transform: rotate(180deg); }
.book-spread { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; min-height: 650px; color: var(--book-ink); }
.book-paper { --white: var(--book-ink); --muted: var(--book-muted); --line: var(--book-line); --gold: var(--book-gold); --gold-light: #896b3d; --ink: var(--book-ink); position: relative; display: flex; flex-direction: column; min-width: 0; padding: 37px 40px 57px; color: var(--book-ink); border-block: 1px solid #b5a07b; background: var(--grain), radial-gradient(ellipse at 12% 12%, #fffbef64, transparent 58%), linear-gradient(105deg, #e4d7b9, #f3ead6 14%, #eee4cd 85%, #decfb0); box-shadow: inset 0 0 36px #9c72371c; }
.book-paper-left { border-radius: 3px 0 0 3px; border-left: 1px solid #b5a07b; padding-right: 44px; background: var(--grain), radial-gradient(ellipse at 12% 12%, #fffbef64, transparent 58%), linear-gradient(90deg, #e1d1ae, #f2e9d4 6%, #eee4ce 84%, #dac9a6 98%, #b5a383); box-shadow: inset 0 0 36px #9c723716, inset -12px 0 22px -16px #302d27b3; }
.book-paper-right { border-radius: 0 3px 3px 0; border-right: 1px solid #b5a07b; padding-left: 44px; background: var(--grain), radial-gradient(ellipse at 80% 15%, #fffbef50, transparent 60%), linear-gradient(90deg, #b6a585, #dfd0ae 2%, #eee4cf 14%, #f1e8d3 92%, #dfcfae); box-shadow: inset 0 0 36px #9c723716, inset 12px 0 22px -16px #302d2780; }
.book-paper::before { content: ""; position: absolute; top: 20px; left: 26px; right: 26px; height: 10px; border-top: 1px solid #9b7d4840; background: linear-gradient(#9b7d48, #9b7d48) left top / 14px 1px no-repeat, linear-gradient(#9b7d48, #9b7d48) left top / 1px 8px no-repeat, linear-gradient(#9b7d48, #9b7d48) right top / 14px 1px no-repeat, linear-gradient(#9b7d48, #9b7d48) right top / 1px 8px no-repeat; opacity: .8; pointer-events: none; }
.book-paper::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 0 0, #8e642525, transparent 23%), radial-gradient(ellipse at 100% 100%, #92632620, transparent 28%), radial-gradient(ellipse at 86% 3%, #996b1b0e, transparent 18%); box-shadow: inset 0 0 1px 1px #9b79393a, inset 0 -4px 10px -6px #6d461c; pointer-events: none; }
.book-folio { position: absolute; left: 31px; right: 31px; bottom: 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #9b7d483b; color: #8a7652; font: 10px/1.6 Georgia, serif; letter-spacing: .03em; }
.book-folio > :last-child { color: #80643b; }
.book-folio::before { content: "Archivo del Alba"; font: italic 9px Georgia, serif; letter-spacing: .02em; opacity: .8; }
.book-folio::after { content: ""; width: 48px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Cg fill='none' stroke='%23836e49' stroke-width='.8'%3E%3Cpath d='M2 7q7-5 14 0t14 0t14 0t14 0M2 12q7-5 14 0t14 0t14 0t14 0M7 17q7-5 14 0t14 0t14 0'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; opacity: .55; }
.book-paper-left .book-folio::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Cg fill='none' stroke='%23836e49' stroke-width='.8'%3E%3Cpath d='M14 18 45 2Q41 13 20 16M20 14l3-6m4 3 3-7m-7 8 9 1M12 18h34'/%3E%3C/g%3E%3C/svg%3E"); }
.book-spread[data-chapter="legado"] .book-paper-right .book-folio::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Cpath fill='none' stroke='%23836e49' stroke-width='.8' d='M7 5h45L41 11H26v5h17v2H15v-2h9v-5L7 5Zm29-2 3-3m-9 3V0m-6 3-3-3'/%3E%3C/svg%3E"); }
.book-paper :is(a, button, input):focus-visible { outline-color: #70572e; }
.book-paper :is(h2, h3, h4) { color: var(--book-ink); }
.book-paper h2:focus { outline: none; }
.book-paper > h2 { margin: 1px 0 23px; font: 400 35px/1.13 Georgia, serif; letter-spacing: -.035em; }
.book-paper > h3 { margin: 6px 0 21px; font: 400 28px/1.2 Georgia, serif; letter-spacing: -.025em; }
.book-running-title { margin: 0 0 13px; color: #8a7048; font: 9px/1.7 "Trebuchet MS", sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.book-paper .book-page-title { margin-bottom: 17px; }
.book-index-intro { margin: 0 0 18px; color: #777359; font: italic 13px/1.7 Georgia, serif; }
.book-paper .chapter-kicker { margin: 0 0 14px; color: #80643b; font-size: 9px; letter-spacing: .12em; }
.book-paper .chapter-kicker > span { width: 30px; height: 30px; color: #7c633e; border-color: #9f805355; outline-color: #9f805322; font-size: 16px; }
.book-paper .section-label { color: #80643b; font-size: 9px; }
.book-paper a { color: #795a2d; text-decoration: underline; text-underline-offset: 3px; }
.book-paper p { line-height: 1.8; }

/* Title leaf and the hand-set table of contents. */
.book-frontispiece { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 552px; padding: 30px 40px 70px; text-align: center; }
.book-frontispiece > .section-label, .book-frontispiece > .chapter-kicker { justify-content: center; letter-spacing: .16em; }
.book-frontispiece > .book-volume { max-width: none; margin: 0 0 17px; color: #8a7048; font: 9px/1.7 "Trebuchet MS", sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.book-frontispiece h2 { max-width: 8ch; margin: 14px auto 20px; font: 400 clamp(45px, 4.7vw, 62px)/1.04 Georgia, serif; letter-spacing: -.05em; }
.book-frontispiece h2 em { color: #947442; font-weight: 400; }
.book-frontispiece > svg { width: 104px; height: 104px; margin: 2px auto 8px; color: #9b7c46; }
.book-frontispiece .book-cover-coin { width: 125px; height: 125px; margin: 11px auto 17px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 8px 10px #8d6e3b40); }
.book-frontispiece blockquote, .book-motto { margin: 18px 0 20px; max-width: 22ch; padding: 16px 21px; border-block: 1px solid #9b7d4844; color: #806238; font: italic 20px/1.6 Georgia, serif; }
.book-frontispiece > p:not(.section-label, .chapter-kicker, .book-motto) { max-width: 34ch; margin: 9px auto 0; color: #656350; font-size: 12px; line-height: 1.9; }
.book-frontispiece .book-open-hint { margin-top: 23px !important; color: #8a6f45 !important; font: italic 12px/1.7 Georgia, serif !important; }
.book-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.book-toc > li { margin: 0; padding: 0; }
.book-toc a { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; border-bottom: 1px solid #8c714326; color: #4a4d3e; font: 12px/1.45 Georgia, serif; text-decoration: none; }
.book-toc a:hover { color: #785928; background: #a8843610; }
.book-toc a > img { width: 27px; height: 27px; object-fit: contain; image-rendering: pixelated; }
.book-toc a > :last-child { color: #8c754e; font-size: 11px; font-variant-numeric: tabular-nums; }
.book-toc-chapters { display: grid; gap: 10px; padding-top: 19px; }
.book-toc-chapters a { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #795e35; font: 14px/1.5 Georgia, serif; text-decoration: none; }
.book-toc-chapters a:hover { text-decoration: underline; }
.book-toc-chapters a > :last-child { color: #8c754e; font-size: 11px; }

/* A relic's story faces its recipe and useful notes. */
.book-item { margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.book-item-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 26px; }
.book-item-head .item-preview { grid-row: auto; height: 136px; min-height: 0; border: 1px solid #9b7d4861; border-radius: 3px; background: radial-gradient(ellipse at 50% 60%, #b69c623b, transparent 64%), #dfd1b329; }
.book-item-head .item-preview::before { inset: 8px; border-color: #9b7d482b; opacity: .55; }
.book-item-head .item-preview::after { bottom: 10px; color: #a6874c80; }
.book-item { --relic-light: 166, 125, 55; }
.book-item#coinplata { --relic-light: 77, 144, 172; }
.book-item#coinbronze { --relic-light: 171, 92, 48; }
.book-item-head .item-art { width: 104px; height: 104px; filter: drop-shadow(0 10px 7px #5d482a42) drop-shadow(0 0 11px rgba(var(--relic-light), .35)); }
.book-item-head .item-preview { background: var(--grain), radial-gradient(ellipse at 50% 55%, rgba(var(--relic-light), .24), transparent 70%), #dfd1b329; box-shadow: inset 0 0 21px #fff7db4a, 0 6px 9px -9px #61482c; }
.book-item-head .item-category { top: 12px; left: 12px; color: #7d6843; font-size: 8px; }
.book-item-head .item-heading { align-self: center; padding: 0; }
.book-item-head .item-heading h2 { margin: 0; font: 400 31px/1.12 Georgia, serif; letter-spacing: -.03em; text-wrap: balance; }
.book-item-head .item-subtitle { margin: 11px 0 0; color: #876b3d; font: italic 13px/1.65 Georgia, serif; }
.book-item .item-description, .book-paper > .item-description { min-height: 0; margin: 0 0 23px; color: #626453; font-size: 12px; line-height: 1.85; }
.book-story.item-guide { max-width: none; }
.book-story.item-guide :is(h3, h4) { margin: 24px 0 11px; color: #7c6139; font: 400 17px/1.4 Georgia, serif; }
.book-story.item-guide :is(h3, h4):first-child { margin-top: 0; }
.book-story.item-guide .item-story { color: #3f4437; font-size: 17px; line-height: 1.9; }
.book-story.item-guide :is(p:not(.item-story), li) { color: #626453; font-size: 12px; line-height: 1.85; }
.book-story .item-lore { margin: 21px 0 26px; font-size: 16px; line-height: 1.75; }
.book-story .item-story-links { border-top: 1px solid #9b7d4833; margin-top: 24px; }
.book-story .item-permalink { margin-top: 15px; font-size: 10px; }
.book-recipe-title { padding-bottom: 14px; border-bottom: 1px solid #9b7d483b; }
.book-paper .item-recipes { width: 100%; max-width: none; }
.book-paper .recipe-panel { padding: 19px; border-color: #9b7d485b; outline-color: #9b7d4824; background: var(--grain), #decfaf54; box-shadow: none; }
.book-paper .crafting { margin: 22px 0; gap: 12px; }
.book-paper .craft-grid { grid-template-columns: repeat(3, 41px); grid-template-rows: repeat(3, 41px); gap: 4px; padding: 7px; }
.book-paper .craft-slot img { width: 32px; height: 32px; }
.book-paper .craft-result .item-icon { width: 48px; height: 48px; }
.book-paper .ingredients li { min-height: 42px; padding-block: 7px; font-size: 11px; }
.book-paper .ingredients strong { font-size: 10px; }
.book-paper .recipe-footnote { margin-top: 14px; font-size: 12px; }
.book-paper .ritual-process { gap: 9px; }
.book-paper .ritual-inputs { gap: 7px; }
.book-paper .ritual-input { max-width: 71px; }
.book-paper .ritual-input .item-icon { width: 38px; height: 38px; }
.book-uses { margin-top: 26px; padding-top: 20px; border-top: 1px solid #9b7d483b; }
.book-uses.item-guide :is(h3, h4) { margin: 0 0 11px; color: #7c6139; font: 400 17px/1.4 Georgia, serif; }
.book-uses.item-guide :is(p, li) { color: #626453; font-size: 12px; line-height: 1.85; }
.book-uses .item-notice { margin-top: 17px; }
.book-empty-leaf { margin-block: auto; text-align: center; }
.book-empty-leaf p { color: #766a50; font: italic 18px/1.8 Georgia, serif; }
.book-empty-leaf svg { width: 85px; height: 85px; margin-inline: auto; color: #a38a5b; }

/* Eldric and the first pact share the same parchment, not separate panels. */
.book-paper .legacy-intro { position: static; align-self: auto; }
.book-paper .legacy-intro h2 { margin: 14px 0 22px; font-size: 43px; line-height: 1.11; }
.book-paper .legacy-intro h2 em { color: #927441; }
.book-paper .legacy-intro > p:not(.eyebrow, .chapter-kicker) { max-width: none; color: #626453; font-size: 12px; }
.book-paper .legacy-intro .legacy-note { color: #7a6d50 !important; border-color: #9b7d4836; font-size: 11px !important; }
.book-paper .legacy-workshop { margin-bottom: 23px; min-height: 137px; padding: 15px; gap: 16px; border-color: #9b7d484a; background: var(--grain), radial-gradient(ellipse at 25% 70%, #a96d221c, transparent 65%), #dccbae35; }
.book-paper .legacy-workshop img { width: 89px; height: 89px; filter: drop-shadow(0 8px 8px #72532333); }
.book-paper .legacy-workshop span { color: #896b3d; font-size: 14px; }
.book-paper .legacy-intro > a { display: inline-flex; min-height: 35px; align-items: center; font-size: 12px; }
.book-quest-map { margin: 14px 0 0; padding-left: 20px; color: #977a47; }
.book-quest-map li { padding-left: 6px; }
.book-quest-map a { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 45px; border-bottom: 1px solid #9b7d4833; color: #575943; font: 15px/1.55 Georgia, serif; text-decoration: none; }
.book-quest-map a:hover { color: #82632e; }
.book-quest-page { list-style: none; margin: 0; padding: 0; }
.book-paper .quest-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; animation: none; }
.book-paper .quest-step::after { display: none; }
.book-paper .quest-number { width: 38px; height: 38px; border-color: #9b7d4878; color: #87683b; background: #b6955b0a; font-size: 17px; }
.book-paper .quest-step :is(h2, h3) { color: #3b4033; margin: 4px 0 17px; font: 400 28px/1.15 Georgia, serif; letter-spacing: -.025em; }
.book-paper .quest-step ul { color: #626453; font-size: 12px; line-height: 1.9; }
.book-paper .quest-step li + li { margin-top: 7px; }
.book-paper .quest-step p { color: #81683f; font-size: 12px; }
.book-paper .quest-step .quest-story { color: #414637; font: 17px/1.85 Georgia, serif; }
.book-paper .quest-step .quest-task-label { color: #81683f; margin-top: 24px; font-size: 11px; }
.book-paper .quest-step .quest-outcome { margin-top: 26px; border-color: #9b7d4863; }
.book-quest-reward { margin-top: 23px; }
.book-quest-reward a { display: inline-flex; align-items: center; gap: 15px; min-height: 82px; padding: 12px 16px; border: 1px solid #9b7d4842; color: #7b623b; background: #cbb48114; font: 15px/1.5 Georgia, serif; text-decoration: none; }
.book-quest-reward a:hover { border-color: #8d713e; }
.book-quest-reward img { width: 58px; height: 58px; object-fit: contain; image-rendering: pixelated; }
.book-solar-plate { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; margin: auto 0; padding: 48px 0; text-align: center; }
.book-solar-plate::before { content: ""; position: absolute; width: 226px; height: 226px; left: calc(50% - 113px); top: calc(50% - 158px); border: 1px solid rgba(var(--relic-light), .25); border-radius: 50%; outline: 1px solid rgba(var(--relic-light), .12); outline-offset: 9px; background: radial-gradient(circle, rgba(var(--relic-light), .14), transparent 68%); pointer-events: none; }
.book-solar-plate > img { position: relative; width: 168px; height: 168px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 10px #61472938) drop-shadow(0 0 18px rgba(var(--relic-light), .25)); }
.book-solar-plate > svg { width: 100px; height: 100px; color: #a18754; }
.book-solar-plate > p { max-width: 29ch; margin: 5px 0; color: #897046; font: italic 20px/1.65 Georgia, serif; }
.book-paper .lore-heading h2 { margin: 15px 0 23px; font-size: 43px; line-height: 1.12; }
.book-paper .lore-heading blockquote { margin: 0 0 22px; color: #8a6d3e; font-size: 21px; }
.book-paper .lore-story { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; animation: none; }
.book-paper .lore-story::before { display: none; }
.book-paper .lore-story p { margin: 0 0 21px; color: #414637; font-size: 17px; line-height: 1.9; }
.book-paper .lore-story p:first-child::first-letter { font-size: 56px; }
.book-paper .lore-pillar { display: block; margin-bottom: 24px; padding: 0 0 24px; border: 0; border-bottom: 1px solid #9b7d483b; background: none; }
.book-paper .lore-pillar:last-child { margin-bottom: 0; border-bottom: 0; }
.book-paper .lore-pillar::after { display: none; }
.book-paper .lore-pillar img { width: 88px; height: 88px; margin-bottom: 8px; filter: drop-shadow(0 8px 8px #72532326); }
.book-paper .lore-pillar h3 { margin-top: 14px; font-size: 27px; }
.book-paper .lore-pillar p { color: #626453; font-size: 12px; line-height: 1.9; }
.book-paper .lore-pillar a { font-size: 12px; }
.book-paper .lore-closing { margin: 18px 0 0; padding: 19px 0 0; border-top: 1px solid #9b7d483b; color: #8a6d3e; font-size: 19px; line-height: 1.85; }
.book-pact-seal { width: 102px; height: 102px; margin: 28px auto; color: #9f8350; }
.book-paper .wiki-about { display: block; margin: 0; padding: 0; border: 0; background: none; }
.book-paper .wiki-about .colophon-seal { width: 82px; height: 82px; margin: 0 auto 28px; color: #9f8350; }
.book-paper .wiki-about .section-label { text-align: center; }
.book-paper .wiki-about p:not(.section-label) { max-width: none; color: #555b47; font: 18px/1.85 Georgia, serif; }
.book-paper .wiki-about a { display: inline-flex; align-items: center; min-height: 44px; margin: 23px 0 0; color: #806137; font-size: 12px; }

.book-pagination { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 14px; min-height: 62px; margin: 3px 0 0; padding: 5px 16px; border: 1px solid #a18a6050; border-top: 3px double #a18a6050; border-radius: 0 0 3px 3px; background: var(--grain), linear-gradient(90deg, #d8c7a7, #eee2c7 12%, #e5d7b9 50%, #eee2c7 88%, #d8c7a7); box-shadow: 0 -3px 12px #573d1d14, 0 3px 0 #baaa86; }
.book-pagination button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 7px 14px; border: 1px solid transparent; border-radius: 2px; color: #6c522f; background: none; font: 14px/1.3 Georgia, serif; cursor: pointer; }
.book-pagination button:hover:not(:disabled) { border-color: #9773455c; background: #a5833412; }
.book-pagination button:disabled { opacity: .35; cursor: default; }
.book-pagination .book-next { border-color: transparent; background: none; color: #6c522f; }
.book-pagination .book-next:hover:not(:disabled) { border-color: #9773455c; background: #a5833412; }
.book-position { flex: 1; min-width: 0; margin: 0; padding-inline: 8px; color: #d4c3a0; text-align: center; font: 14px/1.6 Georgia, serif; }
.book-position small { display: block; margin-top: 2px; color: #a9aeaa; font: 10px/1.6 "Trebuchet MS", sans-serif; }
.book-pagination-center { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.book-pagination-center .book-position { flex: none; color: #7a6748; font: 9px/1.6 "Trebuchet MS", sans-serif; }
.book-pagination-center .book-index { min-height: 30px; padding-block: 4px; font: italic 12px/1.5 Georgia, serif; }
.book-pagination .book-index { color: #765c38; background: none; border-color: transparent; padding-inline: 12px; }
.book-mobile-hint { margin: 19px 0 0; color: #aaa99b; text-align: center; font: italic 12px/1.65 Georgia, serif; }
.book-turn-leaf { position: absolute; inset: 0; z-index: 5; display: none; pointer-events: none; transform-style: preserve-3d; }
.book-stage:is(.is-turning, .is-opening) .book-turn-leaf { display: block; }
.book-curl, .book-curl-hinge { position: absolute; transform-style: preserve-3d; }
.book-curl-face { position: absolute; inset: 0 -1px 0 0; overflow: hidden; backface-visibility: hidden; background: #eee3ca; }
.book-curl-back { transform: rotateY(180deg); }
.book-curl-face::after { content: ""; position: absolute; inset: 0; background: #352c21; opacity: var(--curl-shade, 0); pointer-events: none; }
.book-motion-copy { position: absolute; top: 0; overflow: hidden; border-radius: 0; }
.book-resting-leaf { z-index: -1; }
.book-leaf-shadow { position: absolute; background: linear-gradient(90deg, transparent, #39291885 45%, #392918); filter: blur(13px); opacity: 0; }
.book-opening-cover { position: absolute; transform-style: preserve-3d; transform-origin: left center; }
.book-cover-front, .book-cover-inside { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 45px; border: 1px solid #b7975c; border-radius: 2px 7px 7px 2px; backface-visibility: hidden; text-align: center; }
.book-cover-front { color: #c6a46b; background: var(--grain), repeating-linear-gradient(115deg, #ffffff03 0 1px, transparent 1px 4px), radial-gradient(ellipse at 50% 35%, #264c5e, transparent 72%), linear-gradient(90deg, #061722, #163142 6%, #102a3b 90%, #091d2b); box-shadow: inset 0 0 0 9px #081d2a, inset 0 0 0 10px #a7864b80, inset 0 0 0 15px #102a3b, inset 0 0 0 16px #a7864b30, 8px 5px 20px #0005; }
.book-cover-front::before { content: ""; position: absolute; inset: 28px; border: 1px solid #a7864b80; background: linear-gradient(#c7a268, #c7a268) left top / 30px 2px no-repeat, linear-gradient(#c7a268, #c7a268) left top / 2px 30px no-repeat, linear-gradient(#c7a268, #c7a268) right bottom / 30px 2px no-repeat, linear-gradient(#c7a268, #c7a268) right bottom / 2px 30px no-repeat; pointer-events: none; }
.book-cover-front .book-front-seal { width: 128px; height: 128px; margin: 0; color: #d7b578; filter: drop-shadow(0 2px 1px #07121d); }
.book-cover-volume { margin: 0; color: #b9af9a; font: 9px/1.7 "Trebuchet MS", sans-serif; text-transform: uppercase; letter-spacing: .15em; }
.book-cover-title { max-width: 9ch; margin: 0; font: 44px/1.13 Georgia, serif; text-wrap: balance; text-shadow: 0 2px 1px #07121d; }
.book-cover-inscription { max-width: 21ch; margin: 0; color: #bba880; font: italic 15px/1.8 Georgia, serif; }
.book-cover-inside { transform: rotateY(180deg); color: #8c744c; background: var(--grain), radial-gradient(ellipse at 50% 50%, #f2e9d4, #d4c29f); box-shadow: inset 0 0 0 12px #c7b38f, inset 0 0 0 13px #a58a5940; }
.book-cover-inside svg { width: 105px; height: 105px; opacity: .4; }
.book-cover-inside p { max-width: 22ch; margin: 0; font: italic 16px/1.8 Georgia, serif; }
@media (prefers-reduced-motion: no-preference) {
  .book-opening-cover { animation: book-cover-open 1100ms cubic-bezier(.24, .58, .25, 1) both; }
  .book-cover-front .book-front-seal { animation: book-sun-glint 700ms ease-out both; }
  .book-tools .chapter-index a[aria-current="location"] { animation: book-ribbon-settle 420ms ease-out; }
  .book-item-head .item-art { transition: transform 240ms ease; }
  .book-item-head .item-preview:hover .item-art { transform: translateY(-3px) rotate(-2deg); }
  @keyframes book-cover-open { 0%, 10% { transform: rotateY(0); } 92% { opacity: 1; } 100% { transform: rotateY(-180deg); opacity: 0; } }
  @keyframes book-sun-glint { 0%, 100% { filter: drop-shadow(0 2px 1px #07121d); } 38% { color: #ffe4a1; filter: drop-shadow(0 0 10px #dfbd75aa); } }
  @keyframes book-ribbon-settle { 0% { transform: translateY(0) rotate(-1deg); } 60% { transform: translateY(7px) rotate(.6deg); } 100% { transform: translateY(5px); } }
}
@media (max-width: 1100px) {
  body.book-ready .wiki-shell { width: calc(100% - 48px); }
  .book-paper { padding-inline: 29px; }
  .book-paper-left { padding-right: 34px; }
  .book-paper-right { padding-left: 34px; }
  .book-tools .chapter-index { gap: 9px; padding-inline: 0; }
  .book-tools .chapter-index-label span { display: none; }
  .book-item-head { grid-template-columns: 102px minmax(0, 1fr); gap: 17px; }
  .book-item-head .item-preview { height: 126px; }
  .book-item-head .item-art { width: 83px; height: 83px; }
  .book-item-head .item-heading h2 { font-size: 28px; }
  .book-paper .craft-grid { grid-template-columns: repeat(3, 37px); grid-template-rows: repeat(3, 37px); }
  .book-paper .craft-slot img { width: 29px; height: 29px; }
  .book-paper .recipe-panel { padding-inline: 15px; }
  .book-paper .crafting { gap: 9px; }
}
@media (max-width: 860px) {
  .book-tools { flex-wrap: wrap; gap: 10px; padding-inline: 18px; }
  .book-tools [data-book-chapters] { flex-basis: 100%; }
  .book-reopen, .book-search-toggle { order: -1; }
  .book-tools .chapter-index { gap: 11px; }
  .book-tools .chapter-index-label { display: none; }
  .book-search-toggle { padding-inline: 14px; }
  .book-paper { padding-inline: 25px; }
  .book-paper-left { padding-right: 29px; }
  .book-paper-right { padding-left: 29px; }
  .book-paper .recipe-panel { padding: 14px 10px; }
  .book-item-head { grid-template-columns: 85px minmax(0, 1fr); gap: 14px; }
  .book-item-head .item-preview { height: 111px; }
  .book-item-head .item-art { width: 72px; height: 72px; }
  .book-item-head .item-heading h2 { font-size: 26px; }
  .book-item-head .item-category { font-size: 7px; left: 8px; top: 10px; }
  .book-paper .craft-grid { grid-template-columns: repeat(3, 33px); grid-template-rows: repeat(3, 33px); }
  .book-paper .craft-slot img { width: 27px; height: 27px; }
  .book-paper .craft-result .item-icon { width: 38px; height: 38px; }
  .book-paper .craft-result { font-size: 9px; }
  .book-paper .ingredients li { gap: 7px; grid-template-columns: 24px minmax(0, 1fr) auto; }
  .book-paper .ingredient-icon { width: 24px; height: 24px; }
}
@media (max-width: 720px) {
  body.book-ready .wiki-shell { width: calc(100% - 28px); }
  .wiki-book { margin-top: 25px; margin-bottom: 36px; }
  .book-heading { padding: 0 6px 20px; display: block; }
  .book-heading h1 { font-size: clamp(31px, 6.3vw, 43px); }
  .book-heading > p { max-width: none; margin: 13px 0 0; text-align: left; font-size: 12px; }
  .book-tools { flex-wrap: wrap; gap: 10px; margin-bottom: -13px; padding-inline: 13px; }
  .book-tools [data-book-chapters] { flex-basis: 100%; }
  .book-tools .chapter-index { justify-content: stretch; gap: 8px; min-height: 71px; padding: 0; }
  .book-tools .chapter-index a { flex: 1; min-width: 0; min-height: 71px; gap: 7px; padding: 9px 8px 24px; font-size: 10px; line-height: 1.4; }
  .book-tools .chapter-index a > span { font-size: 15px; }
  .book-search-toggle { min-height: 44px; font-size: 11px; }
  .book-search-panel { padding: 16px; }
  .book-search-panel .category-button { min-height: 44px; }
  .book-stage { padding: 15px 11px 14px; border-radius: 7px; }
  .book-stage::before { inset: 19px 9px 7px; }
  .book-stage::after { display: none; }
  .book-metal { width: 23px; height: 23px; }
  .book-spread { grid-template-columns: 1fr; min-height: 0; }
  .book-paper { min-height: 520px; padding: 35px 30px 58px; border: 1px solid #b5a07b; border-radius: 2px; background: var(--grain), radial-gradient(ellipse at 8% 0, #fffbef73, transparent 60%), linear-gradient(105deg, #e1d0ad, #f2e9d4 7%, #eee4ce 93%, #decdac); box-shadow: inset 0 0 36px #9c72371d; }
  .book-paper-right { margin-top: 8px; }
  .book-paper-left, .book-paper-right { padding-inline: 30px; }
  .book-frontispiece { min-height: 466px; padding-block: 30px 70px; }
  .book-frontispiece h2 { font-size: 53px; margin-bottom: 17px; }
  .book-frontispiece > svg { width: 87px; height: 87px; }
  .book-frontispiece .book-cover-coin { width: 111px; height: 111px; margin-block: 8px 13px; }
  .book-frontispiece blockquote, .book-motto { margin-block: 17px; font-size: 19px; }
  .book-paper > h2 { font-size: 34px; }
  .book-toc { grid-template-columns: 1fr; }
  .book-toc a { min-height: 44px; font-size: 14px; }
  .book-toc-chapters a { min-height: 35px; }
  .book-item-head { grid-template-columns: 103px minmax(0, 1fr); gap: 19px; margin-bottom: 25px; }
  .book-item-head .item-preview { height: 126px; }
  .book-item-head .item-art { width: 86px; height: 86px; }
  .book-item-head .item-heading h2 { font-size: 29px; }
  .book-item-head .item-category { font-size: 8px; left: 10px; top: 12px; }
  .book-paper .recipe-panel { padding: 21px; }
  .book-paper .craft-grid { grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); }
  .book-paper .craft-slot img { width: 32px; height: 32px; }
  .book-paper .crafting { gap: 14px; }
  .book-paper .craft-result .item-icon { width: 46px; height: 46px; }
  .book-paper .craft-result { font-size: 11px; }
  .book-paper .ingredients li { gap: 10px; grid-template-columns: 28px minmax(0, 1fr) auto; font-size: 12px; }
  .book-paper .ingredient-icon { width: 28px; height: 28px; }
  .book-paper .ingredients strong { font-size: 11px; }
  .book-paper .quest-step { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .book-paper .quest-number { width: 34px; height: 34px; font-size: 16px; }
  .book-paper .quest-step :is(h2, h3) { font-size: 26px; }
  .book-paper .legacy-intro h2, .book-paper .lore-heading h2 { font-size: 40px; }
  .book-pagination { position: sticky; bottom: 0; flex-wrap: nowrap; justify-content: center; gap: 4px; min-height: 71px; padding: 6px 4px max(6px, env(safe-area-inset-bottom)); margin: 4px 0 0; }
  .book-position { order: -1; flex: 0 0 100%; padding: 0; font-size: 12px; line-height: 1.5; }
  .book-position small { display: inline; margin-left: 8px; font-size: 9px; }
  .book-pagination button { min-height: 44px; padding: 9px 5px; font-size: 12px; gap: 5px; }
  .book-pagination .book-prev, .book-pagination .book-next { flex: 1; }
  .book-pagination .book-index { min-width: 52px; padding-inline: 10px; }
  .book-pagination-center { flex: 0 1 auto; gap: 4px; max-width: 42%; }
  .book-pagination-center .book-index { min-height: 44px; padding: 7px 4px; font-size: 11px; }
  .book-pagination-center .book-position { order: 0; flex-basis: auto; font-size: 9px; }
  .book-mobile-hint { margin: 12px 0 0; font-size: 11px; }
  .book-cover-front, .book-cover-inside { padding: 32px; gap: 22px; }
  .book-cover-front::before { inset: 21px; }
  .book-cover-title { font-size: 39px; }
  .book-cover-front .book-front-seal { width: 108px; height: 108px; }
  @media (prefers-reduced-motion: no-preference) {
    .book-opening-cover { animation-name: book-cover-mobile-open; }
    @keyframes book-cover-mobile-open { 0%, 10% { transform: rotateY(0); } 65% { opacity: 1; } 100% { transform: rotateY(-105deg); opacity: 0; } }
  }
}
@media (max-width: 390px) {
  .book-paper, .book-paper-left, .book-paper-right { padding-inline: 21px; }
  .book-folio { left: 22px; right: 22px; }
  .book-item-head { grid-template-columns: 91px minmax(0, 1fr); gap: 14px; }
  .book-item-head .item-preview { height: 117px; }
  .book-item-head .item-art { width: 76px; height: 76px; }
  .book-item-head .item-heading h2 { font-size: 26px; }
  .book-item-head .item-subtitle { font-size: 12px; }
  .book-paper .recipe-panel { padding: 17px 13px; }
  .book-paper .craft-grid { grid-template-columns: repeat(3, 35px); grid-template-rows: repeat(3, 35px); gap: 3px; }
  .book-paper .craft-slot img { width: 28px; height: 28px; }
  .book-paper .crafting { gap: 11px; }
  .book-paper .craft-result .item-icon { width: 42px; height: 42px; }
  .book-paper .ritual-process { gap: 6px; }
  .book-paper .ritual-inputs { gap: 5px; }
  .book-paper .ritual-input { max-width: 64px; font-size: 9px; }
  .book-paper .ritual-input .item-icon { width: 35px; height: 35px; }
  .book-tools .chapter-index { gap: 6px; padding-inline: 0; }
  .book-tools .chapter-index a { gap: 5px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiki-book *, .wiki-book *::before, .wiki-book *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .book-turn-leaf { display: none !important; }
}
