.wiki-page {
  --night: #0a1724; --night-soft: #101f2d; --white: #f1e8d7; --muted: #bdb9ae;
  --gold: #c5a16a; --gold-light: #e6cc97; --panel: #102333; --panel-light: #162b3b;
  --line: rgba(197, 161, 106, .24); --paper: #eee3cc; --ink: #30362f;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.09'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  background: var(--grain), radial-gradient(ellipse at 70% 0, #1d3444 0, transparent 850px), var(--night);
}
.wiki-page [hidden] { display: none !important; }
.wiki-page button, .wiki-page input { font: inherit; }
.wiki-page button, .wiki-page input, .wiki-page summary { -webkit-tap-highlight-color: transparent; }
.wiki-page :is(button, input, summary, a):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
.wiki-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.wiki-shell { width: min(1240px, calc(100% - 72px)); margin: 0 auto; }
.wiki-page .site-header { background: #0a1724e8; }
.wiki-page .brand-accent, .wiki-page .footer-brand span { color: var(--brand-sky); }
.wiki-page .main-nav a { color: #c7c4bc; }
.wiki-page .main-nav a[aria-current="page"], .wiki-page .main-nav a:hover { color: var(--gold-light); }
.wiki-page .eyebrow { color: var(--gold); font-size: 11px; font-weight: 400; letter-spacing: .08em; }
.wiki-hero { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(28px, 5vw, 70px); padding: 62px 0 44px; }
.wiki-hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 28px; height: 1px; background: currentColor; }
.wiki-hero h1 { margin: 24px 0 0; font: 400 clamp(62px, 7.1vw, 94px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; text-wrap: balance; }
.wiki-hero h1 em { color: var(--gold-light); font-weight: 400; }
.wiki-hero-subtitle { margin: 22px 0 0; color: #dfd3bb; font: italic 18px/1.6 Georgia, serif; }
.wiki-intro { max-width: 47ch; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.wiki-hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 19px 26px; margin-top: 27px; }
.wiki-primary { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 46px; border: 1px solid #e4c693; border-radius: 2px; padding: 12px 18px; background: linear-gradient(115deg, #e6ce9c, #c3a06a); box-shadow: inset 0 0 0 3px #13233016, 0 5px 15px #0002; color: #172431; font-size: 12px; font-weight: 700; cursor: pointer; }
.wiki-primary:hover { background: #ead5ad; }
.wiki-secondary { display: inline-flex; gap: 12px; align-items: center; color: #d3c5a9; font-size: 12px; line-height: 1.7; }
.wiki-secondary:hover { color: var(--gold-light); }
.wiki-hero-art { position: relative; display: grid; place-items: center; height: 426px; max-width: 460px; width: 100%; justify-self: end; overflow: hidden; border: 1px solid #c5a16a70; border-radius: 210px 210px 6px 6px; background: var(--grain), radial-gradient(ellipse at 50% 52%, #886c3030, transparent 64%), linear-gradient(180deg, #1a3041, #0d1c2a); box-shadow: inset 0 0 65px #02081080, 0 20px 45px #0002; }
.wiki-hero-art::before { content: ""; position: absolute; inset: 9px; border: 1px solid #c5a16a3d; border-radius: inherit; pointer-events: none; }
.wiki-hero-art::after { content: "◆"; position: absolute; bottom: 9px; color: #c5a16a80; font-size: 8px; }
.art-coordinate { position: absolute; top: 61px; z-index: 1; color: #c7b58e; font-size: 9px; letter-spacing: .19em; }
.hero-solar-seal { position: absolute; top: 98px; width: 242px; height: 242px; color: #c5a16a4a; }
.hero-medallion { position: absolute; top: 116px; width: 204px; height: 204px; border: 1px solid #c5a16a40; border-radius: 50%; background: radial-gradient(circle, #be985329, transparent 70%); }
.wiki-hero-art img { position: absolute; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 12px 16px #0009); }
.hero-gold { z-index: 2; width: 204px; height: 204px; top: 116px; left: calc(50% - 102px); }
.hero-silver { z-index: 3; width: 84px; height: 84px; left: 10%; top: 241px; transform: rotate(10deg); }
.hero-copper { z-index: 3; width: 72px; height: 72px; right: 9%; top: 254px; transform: rotate(-10deg); }
.art-inscription { position: absolute; bottom: 67px; color: var(--gold-light); font: 18px Georgia, serif; letter-spacing: .03em; }
.art-caption { position: absolute; bottom: 38px; padding: 0 20px; color: #bcae93; font: italic 13px/1.5 Georgia, serif; text-align: center; }
.wiki-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.wiki-stats > div { display: flex; align-items: center; gap: 17px; padding: 0 28px; border-left: 1px solid var(--line); }
.wiki-stats > div:first-child { padding-left: 0; border-left: 0; }
.wiki-stats dt { order: 2; color: var(--muted); font-size: 11px; line-height: 1.7; }
.wiki-stats dd { margin: 0; color: var(--gold-light); font: 32px/1.1 Georgia, serif; }
.chapter-index { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 27px; min-height: 60px; padding: 10px 21px; border: 1px solid var(--line); border-top: 3px double #c5a16a63; background: #0e1f2ff5; box-shadow: 0 5px 14px #0003; }
.chapter-index-label { display: flex; align-items: center; gap: 11px; margin-right: auto; white-space: nowrap; color: #c5bda9; font: italic 13px Georgia, serif; }
.chapter-index-label svg { width: 29px; height: 29px; flex-shrink: 0; color: var(--gold); }
.chapter-index a { display: inline-flex; align-items: center; gap: 11px; min-height: 32px; color: #e0d6c1; font-size: 11px; line-height: 1.5; }
.chapter-index a > span { color: var(--gold); font: 16px Georgia, serif; }
.chapter-index a:hover { color: var(--gold-light); }
.wiki-catalog { padding: 58px 0 70px; scroll-margin-top: 10px; }
.chapter-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; color: var(--gold); font: 10px/1.6 "Trebuchet MS", sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.chapter-kicker > span { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #c5a16a63; outline: 1px solid #c5a16a25; outline-offset: 3px; color: var(--gold-light); font: 18px Georgia, serif; letter-spacing: 0; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 29px; }
.catalog-heading h2 { margin: 10px 0 0; font: 400 clamp(35px, 4.3vw, 49px)/1.15 Georgia, serif; letter-spacing: -.035em; }
.catalog-heading > p { margin: 0 0 4px; color: var(--muted); text-align: right; font: italic 14px/1.8 Georgia, serif; }
.search-row { display: flex; gap: 12px; align-items: stretch; }
.wiki-search { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 0 17px; border: 1px solid #c5a16a45; border-radius: 2px; background: #0c1c2a; box-shadow: inset 0 2px 7px #0002; }
.search-symbol { font: 27px/1 Georgia, serif; color: var(--gold); }
.wiki-search input { min-width: 0; width: 100%; min-height: 50px; padding: 8px 0; color: var(--white); background: none; border: 0; font-size: 13px; }
.wiki-search input::placeholder { color: #a6acaa; }
.wiki-search input:focus { outline: none; }
.wiki-search:focus-within { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.wiki-search kbd { min-width: 22px; padding: 3px 5px; border: 1px solid var(--line); border-radius: 2px; color: #a9a58f; text-align: center; font-size: 11px; }
.recipe-filter { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; color: #ddd4c0; font-size: 12px; cursor: pointer; }
.recipe-filter input { accent-color: var(--gold-light); }
.category-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.category-button { padding: 9px 13px; border: 1px solid transparent; border-radius: 2px; color: var(--muted); background: transparent; font-size: 12px !important; cursor: pointer; }
.category-button:hover { border-color: var(--line); color: var(--white); }
.category-button[aria-pressed="true"] { border-color: #c5a16a78; background: #c5a16a16; color: var(--gold-light); }
.results-row { display: flex; align-items: center; padding: 17px 0; }
.results-row p { margin: 0; color: #9da59f; font-size: 11px; }
.items-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px; }
.item-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #c5a16a42; border-radius: 3px; background: var(--grain), linear-gradient(145deg, #152a3a, #0e2131); box-shadow: 0 8px 18px #0002; scroll-margin-top: 10px; }
.item-card:hover { border-color: #c5a16a9c; }
.item-card:target { border-color: var(--gold-light); }
.item-preview { position: relative; display: grid; place-items: center; height: 190px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 58%, #b69c6223, transparent 62%), #0c1b28; }
.item-preview::before { content: ""; position: absolute; inset: 11px; border: 1px solid #c5a16a30; background: linear-gradient(var(--gold), var(--gold)) left top / 16px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) left top / 1px 16px no-repeat, linear-gradient(var(--gold), var(--gold)) right bottom / 16px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right bottom / 1px 16px no-repeat; pointer-events: none; opacity: .7; }
.item-preview::after { content: "◆"; position: absolute; bottom: 15px; left: calc(50% - 3px); color: #c5a16a75; font-size: 6px; }
.item-art { width: 125px; height: 125px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 12px 13px #0007); }
.item-category { position: absolute; left: 24px; top: 23px; color: #bdb296; font-size: 9px; letter-spacing: .04em; }
.item-card[data-category="muebles"] .item-art { width: 144px; height: 144px; }
.item-heading { padding: 23px 24px 0; }
.item-heading h3 { margin: 0; font: 400 23px/1.25 Georgia, serif; letter-spacing: -.02em; text-wrap: balance; }
.item-subtitle { margin: 9px 0 0; color: var(--gold); font: italic 13px/1.6 Georgia, serif; }
.item-description { min-height: 74px; margin: 13px 24px 22px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.item-card details { border-top: 1px solid var(--line); }
.item-card summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 24px; color: var(--gold-light); font-size: 11px; list-style: none; cursor: pointer; }
.item-card summary::-webkit-details-marker { display: none; }
.item-card summary > span { font: 21px/1 Georgia, serif; }
.item-card details[open] summary > span { transform: rotate(45deg); }
.item-card:has(details[open]) { --white: var(--ink); --muted: #555c50; --line: #6e624d3d; grid-column: 1 / -1; display: grid; grid-template-columns: 186px minmax(0, 1fr); column-gap: 30px; padding: 32px; border: 3px double #ad8b56; background: var(--grain), linear-gradient(90deg, #e3d6bb, #f0e6d2 8%, #eee3cc 48%, #ded0b5 50%, #eee3cc 53%, #f0e6d2 94%, #e3d6bb); color: var(--ink); box-shadow: 0 16px 35px #0004, inset 0 0 28px #8c6a3330; }
.item-card:has(details[open]) .item-preview { grid-row: 1 / 3; height: 169px; border: 1px solid #927641; border-radius: 2px; }
.item-card:has(details[open]) .item-category { top: 23px; left: 22px; }
.item-card:has(details[open]) .item-heading { align-self: end; padding: 10px 0 0; }
.item-card:has(details[open]) .item-heading h3 { font-size: 32px; }
.item-card:has(details[open]) .item-subtitle { color: #806332; font-size: 15px; }
.item-card:has(details[open]) .item-description { min-height: 0; margin: 11px 0 17px; max-width: 75ch; font-size: 14px; }
.item-card:has(details[open]) details { grid-column: 1 / -1; margin-top: 26px; }
.item-card:has(details[open]) summary { padding: 17px 0; color: #5b492d; font-size: 12px; }
.item-card:has(details[open]) :is(summary, a):focus-visible { outline-color: #5c4a2e; }
.item-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 55px; padding: 12px 0 10px; }
.item-detail--story { grid-template-columns: minmax(0, 1fr); }
.item-detail--story .item-guide { max-width: 80ch; }
.item-guide h4 { margin: 25px 0 11px; color: #705635; font: 400 17px/1.4 Georgia, serif; }
.item-guide h4:first-child { margin-top: 0; }
.item-guide :is(p, li) { color: var(--muted); font-size: 13px; line-height: 1.9; }
.item-guide p { margin: 0; }
.item-guide .item-story { color: var(--ink); font: 400 18px/1.85 Georgia, serif; }
.item-story::first-letter { float: left; margin: 4px 8px 0 0; color: #886639; font: 52px/.85 Georgia, serif; }
.item-guide ul { padding-left: 17px; margin: 0; }
.item-guide li + li { margin-top: 8px; }
.item-guide a, .recipe-panel a { text-decoration: underline; text-underline-offset: 3px; color: #79592c; }
.item-guide .item-notice { margin-top: 18px; padding: 13px 14px; border-left: 2px solid #98713d; background: #9e783d0f; color: #695534; font-size: 12px; }
.item-lore { margin: 23px 0 28px; padding: 12px 0 12px 17px; border-left: 2px solid #aa8550; color: #806439; font: italic 17px/1.7 Georgia, serif; }
.item-story-links { display: flex; flex-wrap: wrap; gap: 4px 25px; }
.item-permalink { display: inline-flex; gap: 12px; margin-top: 23px; font-size: 11px; }
.recipe-panel { position: relative; padding: 23px; border: 1px solid #a68c606b; outline: 1px solid #a68c6029; outline-offset: -6px; border-radius: 2px; background: var(--grain), #e4d8bc; box-shadow: 0 3px 10px #80633a0a; }
.recipe-panel + .recipe-panel { margin-top: 20px; }
.section-label { margin: 0; color: var(--gold-light); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.7; }
.recipe-panel .section-label { color: #72552f; }
.crafting { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 25px 0; }
.craft-grid { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 46px); gap: 4px; padding: 8px; border: 1px solid #9b7945; background: #122333; box-shadow: 0 4px 8px #5e4c2c20; }
.craft-slot { display: flex; align-items: center; justify-content: center; border: 1px solid #b8a17738; border-radius: 1px; background: #243849; text-decoration: none !important; }
a.craft-slot:hover { border-color: #debf86; background: #304658; }
.craft-slot img { width: 35px; height: 35px; object-fit: contain; image-rendering: pixelated; }
.craft-slot--empty { background: #192c3b; }
.craft-arrow { color: #8c6e41; font: 25px Georgia, serif; }
.craft-result { display: grid; justify-items: center; gap: 8px; color: #66553d; font-size: 11px; text-align: center; }
.item-icon { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.ingredients { margin: 0; padding: 0; list-style: none; }
.ingredients li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 45px; padding: 8px 0; border-bottom: 1px solid #9b83582e; color: #555748; font-size: 12px; line-height: 1.6; }
.ingredient-icon { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.ingredients strong { font-size: 11px; color: #4f503f; font-weight: 400; white-space: nowrap; }
.recipe-footnote { margin: 16px 0 0; color: #6a664f; font: italic 13px/1.75 Georgia, serif; }
.ritual-process { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 25px 0; }
.ritual-inputs { display: flex; align-items: center; gap: 10px; }
.ritual-input { display: grid; justify-items: center; gap: 8px; max-width: 83px; color: #615940; font-size: 10px; text-align: center; line-height: 1.7; }
.ritual-input .item-icon { width: 44px; height: 44px; }
.ritual-plus { color: #8c6e41; font-size: 17px; }
.catalog-note { margin: 26px 0 0; padding-left: 17px; border-left: 1px solid #c5a16a60; color: #ada995; font: italic 14px/1.8 Georgia, serif; max-width: 95ch; }
.wiki-empty { padding: 55px 20px; border: 1px solid var(--line); text-align: center; }
.wiki-empty h3 { font: 28px Georgia, serif; }
.wiki-empty p { margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.legacy-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); padding: 64px 0 75px; border-top: 3px double #c5a16a42; scroll-margin-top: 10px; }
.legacy-intro { align-self: start; position: sticky; top: 83px; }
.legacy-intro h2 { margin: 15px 0 24px; font: 400 clamp(44px, 5.5vw, 66px)/1.08 Georgia, serif; letter-spacing: -.04em; }
.legacy-intro h2 em { color: var(--gold-light); }
.legacy-intro > p:not(.eyebrow, .chapter-kicker) { max-width: 43ch; color: var(--muted); font-size: 13px; line-height: 1.9; }
.legacy-intro .legacy-note { padding-top: 18px; border-top: 1px solid var(--line); color: #b4ab94 !important; font-size: 12px !important; }
.legacy-intro > a { margin-top: 16px; color: var(--gold-light); }
.legacy-workshop { display: flex; align-items: center; gap: 22px; min-height: 144px; margin: 0 0 22px; padding: 14px 20px; border: 1px solid #c5a16a3d; background: var(--grain), radial-gradient(ellipse at 25% 70%, #a96d2225, transparent 65%), #0d1d2b; }
.legacy-workshop img { flex-shrink: 0; width: 103px; height: 103px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 8px 12px #0005); }
.legacy-workshop span { max-width: 17ch; color: #ccb992; font: italic 15px/1.7 Georgia, serif; }
.quest-list { list-style: none; margin: 0; padding: 0; }
.quest-step { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 21px; padding: 26px 27px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--grain), linear-gradient(120deg, #142a3a, #0e2130); }
.quest-step:last-child { margin-bottom: 0; }
.quest-step::after { content: ""; position: absolute; bottom: -17px; left: 48px; width: 1px; height: 16px; background: #c5a16a63; }
.quest-step:last-child::after { display: none; }
.quest-number { display: grid; place-items: center; align-self: start; width: 42px; height: 42px; border: 1px solid #c5a16a6b; border-radius: 50%; color: var(--gold-light); font: 19px Georgia, serif; background: #0b1b28; }
.quest-step h3 { margin: 4px 0 12px; color: #ede1c8; font: 22px/1.25 Georgia, serif; }
.quest-step ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.quest-step p { margin: 12px 0 0; color: #cdb68e; font-size: 12px; line-height: 1.8; }
.quest-step .quest-story { margin: 0 0 19px; color: #c4c0b4; font: 15px/1.8 Georgia, serif; }
.quest-step .quest-task-label { margin: 0 0 7px; color: var(--gold-light); font-size: 11px; }
.quest-step .quest-outcome { margin-top: 18px; padding-left: 12px; border-left: 1px solid #c5a16a68; }
.lore-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px clamp(36px, 6vw, 80px); padding: 64px 0 70px; border-top: 3px double #c5a16a42; scroll-margin-top: 10px; }
.lore-heading h2 { margin: 15px 0 23px; font: 400 clamp(38px, 4.5vw, 56px)/1.13 Georgia, serif; letter-spacing: -.035em; }
.lore-heading blockquote { margin: 0; padding: 16px 0 16px 19px; border-left: 2px solid var(--gold); color: #ddc7a0; font: italic 23px/1.6 Georgia, serif; }
.lore-story { position: relative; padding: 32px 34px; border: 3px double #ae8e5c; background: var(--grain), linear-gradient(110deg, #e6d9bd, #f0e6d1, #e6d9bd); box-shadow: inset 0 0 25px #876c3920; }
.lore-story::before { content: ""; position: absolute; inset: 8px; border: 1px solid #8d714735; pointer-events: none; }
.lore-story p { margin: 0 0 20px; color: var(--ink); font: 17px/1.85 Georgia, serif; }
.lore-story p:first-child::first-letter { float: left; margin: 5px 9px 0 0; color: #8b683a; font: 58px/.9 Georgia, serif; }
.lore-story p:last-child { margin-bottom: 0; }
.lore-pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 6px; }
.lore-pillar { position: relative; padding: 27px 27px 29px; border: 1px solid var(--line); background: var(--grain), linear-gradient(140deg, #152b3b, #102333); }
.lore-pillar::after { content: "◆"; position: absolute; top: 19px; right: 21px; color: var(--gold); font-size: 8px; }
.lore-pillar img { width: 100px; height: 100px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 8px 12px #0004); }
.lore-pillar h3 { margin: 13px 0 13px; font: 24px/1.3 Georgia, serif; }
.lore-pillar p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.lore-pillar a { color: var(--gold-light); }
.lore-closing { grid-column: 1 / -1; margin: 13px 0 0; padding: 18px 10px 0; color: #d8c6a3; font: italic 20px/1.7 Georgia, serif; text-align: center; }
.wiki-about { display: flex; align-items: center; gap: 28px; margin-bottom: 58px; padding: 29px 30px; border: 3px double #c5a16a42; background: var(--grain), #102333; }
.colophon-seal { width: 64px; height: 64px; flex-shrink: 0; color: var(--gold); }
.wiki-about > div { flex: 1; }
.wiki-about p:not(.section-label) { max-width: 70ch; color: var(--muted); font: 15px/1.8 Georgia, serif; margin: 10px 0 0; }
.wiki-about a { flex-shrink: 0; color: var(--gold-light); font-size: 11px; }
.wiki-about a span { margin-left: 13px; }
.wiki-page .site-footer { border-top: 1px solid var(--line); gap: 25px; padding: 22px 0; }
.wiki-footer-verse { color: #b3bbb5; font: italic 13px/1.8 Georgia, serif; }
.wiki-credits { max-width: 65ch; text-align: right; }
.wiki-page .wiki-credits p { color: #a9acaa; }
.wiki-credits p + p { margin-top: 8px; font-size: 10px; line-height: 1.7; }
.wiki-credits a { color: #ccb78f; text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .item-card:has(details[open]) { transform-origin: left center; animation: alba-book-open 580ms cubic-bezier(.22, .68, .22, 1); }
  .item-card summary > span { transition: transform 240ms ease; }
  .item-card details[open] .item-guide { --page-angle: 12deg; transform-origin: right center; animation: alba-page-unfold 620ms cubic-bezier(.22, .68, .22, 1) 30ms backwards; }
  .item-card details[open] .item-recipes { --page-angle: -20deg; transform-origin: left center; animation: alba-page-unfold 620ms cubic-bezier(.22, .68, .22, 1) 90ms backwards; }
  .item-card details[open] .item-detail--story .item-guide { --page-angle: -12deg; transform-origin: left center; }
  .item-card:has(details[open])::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 28%, #66491e22 46%, #fff8 55%, transparent 72%); opacity: 0; animation: alba-page-light 720ms ease-out; }
  :is(.lore-story, .quest-step).book-arriving { transform-origin: left center; animation: alba-book-open 650ms cubic-bezier(.22, .68, .22, 1); }
  @keyframes alba-book-open {
    from { opacity: .55; transform: perspective(1600px) rotateY(-9deg) translateY(8px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes alba-page-unfold {
    from { opacity: .3; transform: perspective(1200px) rotateY(var(--page-angle)); }
    to { opacity: 1; transform: none; }
  }
  @keyframes alba-page-light {
    0% { opacity: 0; transform: translateX(-65%); }
    25% { opacity: .65; }
    100% { opacity: 0; transform: translateX(65%); }
  }
}
@media (max-width: 1000px) {
  .wiki-hero { gap: 28px; }
  .wiki-hero-art { height: 400px; }
  .hero-gold { width: 188px; height: 188px; top: 112px; left: calc(50% - 94px); }
  .hero-solar-seal { width: 230px; height: 230px; top: 91px; }
  .hero-medallion { width: 188px; height: 188px; top: 112px; }
  .hero-silver { width: 72px; height: 72px; top: 233px; left: 7%; }
  .hero-copper { width: 64px; height: 64px; top: 246px; right: 6%; }
  .chapter-index { gap: 23px; }
  .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .item-detail { gap: 32px; }
  .item-card:has(details[open]) { padding: 27px; }
  .recipe-panel { padding: 20px; }
  .crafting { gap: 12px; }
  .craft-grid { grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(3, 42px); }
  .quest-step { gap: 16px; padding: 24px 22px; }
  .quest-step::after { left: 43px; }
  .legacy-workshop { gap: 14px; padding: 12px; }
  .legacy-workshop img { width: 88px; height: 88px; }
}
@media (max-width: 760px) {
  .wiki-shell { width: calc(100% - 40px); }
  .wiki-hero { grid-template-columns: minmax(0, 1fr) 270px; gap: 23px; padding: 43px 0 33px; }
  .wiki-hero h1 { font-size: 62px; }
  .wiki-hero-art { height: 345px; }
  .art-coordinate { top: 46px; font-size: 8px; }
  .hero-solar-seal { top: 69px; width: 210px; height: 210px; }
  .hero-medallion, .hero-gold { top: 94px; width: 160px; height: 160px; }
  .hero-gold { left: calc(50% - 80px); }
  .hero-silver { width: 57px; height: 57px; top: 210px; left: 8%; }
  .hero-copper { width: 51px; height: 51px; top: 218px; right: 8%; }
  .art-inscription { bottom: 53px; font-size: 16px; }
  .art-caption { bottom: 28px; font-size: 12px; }
  .chapter-index-label span { display: none; }
  .chapter-index { gap: 20px; padding-inline: 15px; }
  .chapter-index a { gap: 8px; font-size: 10px; }
  .wiki-stats > div { padding-inline: 18px; gap: 13px; }
  .item-card:has(details[open]) { grid-template-columns: 137px minmax(0, 1fr); column-gap: 23px; }
  .item-card:has(details[open]) .item-preview { height: 154px; }
  .item-card:has(details[open]) .item-heading h3 { font-size: 28px; }
  .item-detail { grid-template-columns: 1fr; gap: 27px; }
  .item-recipes { max-width: 500px; width: 100%; justify-self: center; }
  .legacy-section, .lore-section { grid-template-columns: 1fr; gap: 32px; padding: 49px 0 55px; }
  .legacy-intro { position: static; }
  .legacy-intro h2 { font-size: 51px; }
  .legacy-intro h2 br { display: none; }
  .legacy-intro > p:not(.eyebrow, .chapter-kicker) { max-width: 70ch; }
  .legacy-workshop { max-width: 390px; padding: 14px 22px; }
  .legacy-workshop img { width: 103px; height: 103px; }
  .legacy-workshop span { max-width: 22ch; }
  .lore-heading h2 { font-size: 45px; }
  .lore-story { padding: 28px 30px; }
  .lore-pillars { grid-template-columns: 1fr; gap: 16px; }
  .lore-pillar { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 24px; padding: 24px; }
  .lore-pillar img { grid-row: 1 / 4; width: 90px; height: 90px; }
  .lore-pillar h3 { margin: 0 0 11px; font-size: 25px; }
  .lore-pillar p { margin-bottom: 15px; }
  .lore-pillar a { grid-column: 2; }
  .wiki-about { flex-wrap: wrap; gap: 22px; padding: 25px; }
  .wiki-about a { margin-left: 86px; }
}
@media (max-width: 640px) {
  .wiki-hero { grid-template-columns: 1fr; gap: 31px; padding: 42px 0 31px; }
  .wiki-hero h1 { margin-top: 19px; font-size: clamp(64px, 14vw, 84px); }
  .wiki-hero-subtitle { margin-top: 19px; font-size: 17px; }
  .wiki-intro { max-width: 48ch; }
  .wiki-hero-art { justify-self: center; max-width: 320px; height: 333px; }
  .hero-silver { left: 12%; }
  .hero-copper { right: 11%; }
  .wiki-stats { padding: 22px 0; }
  .wiki-stats > div { display: block; padding: 0 12px; }
  .wiki-stats dt { margin-top: 7px; font-size: 10px; }
  .wiki-stats dd { font-size: 30px; }
  .chapter-index { gap: 12px; justify-content: space-between; min-height: 53px; padding: 8px 10px; }
  .chapter-index-label { display: none; }
  .chapter-index a { gap: 7px; font-size: 10px; }
  .chapter-index a > span { font-size: 15px; }
  .wiki-catalog { padding-top: 42px; }
  .catalog-heading { display: block; }
  .catalog-heading > p { margin-top: 14px; text-align: left; font-size: 13px; }
  .catalog-heading > p br { display: none; }
  .catalog-heading h2 { font-size: 39px; }
  .search-row { flex-wrap: wrap; }
  .wiki-search { flex-basis: 100%; }
  .wiki-search input { font-size: 16px; }
  .wiki-search kbd { display: none; }
  .recipe-filter { min-height: 39px; padding-inline: 12px; }
  .category-filters { gap: 4px; margin-top: 13px; }
  .category-button { padding: 8px 10px; font-size: 11px !important; }
  .items-grid { grid-template-columns: 1fr; gap: 16px; }
  .item-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 17px; }
  .item-preview { grid-row: 1 / 3; height: 100%; min-height: 170px; border-bottom: 0; border-right: 1px solid var(--line); }
  .item-preview::before { inset: 8px; }
  .item-art, .item-card[data-category="muebles"] .item-art { width: 84px; height: 84px; }
  .item-category { top: 20px; left: 15px; font-size: 8px; }
  .item-heading { padding: 22px 17px 0 0; }
  .item-heading h3 { font-size: 22px; }
  .item-subtitle { margin-top: 7px; font-size: 12px; }
  .item-description { min-height: 0; margin: 11px 17px 19px 0; font-size: 12px; }
  .item-card details { grid-column: 1 / -1; }
  .item-card summary { padding: 16px 20px; }
  .item-card:has(details[open]) { grid-template-columns: 96px minmax(0, 1fr); column-gap: 19px; padding: 22px; background: var(--grain), linear-gradient(105deg, #e6d9be, #f0e6d2, #e6d9be); }
  .item-card:has(details[open]) .item-preview { grid-row: 1; min-height: 123px; height: 123px; }
  .item-card:has(details[open]) .item-category { left: 14px; top: 18px; font-size: 8px; }
  .item-card:has(details[open]) .item-heading { align-self: center; padding-top: 0; }
  .item-card:has(details[open]) .item-heading h3 { font-size: 27px; }
  .item-card:has(details[open]) .item-subtitle { font-size: 14px; }
  .item-card:has(details[open]) .item-description { grid-column: 1 / -1; margin: 16px 0 0; font-size: 13px; }
  .item-card:has(details[open]) details { margin-top: 21px; }
  .item-guide .item-story { font-size: 17px; }
  .item-detail { padding-top: 8px; }
  .recipe-panel { padding: 22px; }
  .craft-grid { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); }
  .quest-step { padding: 23px 21px; gap: 17px; }
  .quest-step h3 { font-size: 23px; }
  .lore-story { padding: 26px; }
  .lore-story p { font-size: 17px; }
  .lore-pillar { grid-template-columns: 70px minmax(0, 1fr); column-gap: 18px; padding: 23px 21px; }
  .lore-pillar img { width: 70px; height: 70px; }
  .lore-pillar h3 { font-size: 23px; }
  .lore-pillar a { font-size: 11px; }
  .lore-pillar::after { display: none; }
  .lore-closing { font-size: 18px; }
  .wiki-about { gap: 17px; padding: 23px; }
  .colophon-seal { width: 46px; height: 46px; }
  .wiki-about p:not(.section-label) { font-size: 14px; }
  .wiki-about a { margin-left: 63px; }
  .wiki-page .site-footer { flex-direction: column; align-items: center; gap: 15px; padding-block: 25px; }
  .wiki-credits { text-align: center; }
  .wiki-page .wiki-credits p { max-width: none; text-align: center; }
}
@media (max-width: 420px) {
  .wiki-shell { width: calc(100% - 32px); }
  .wiki-hero .eyebrow { font-size: 10px; letter-spacing: .04em; }
  .wiki-hero-links { gap: 18px; }
  .wiki-primary { gap: 17px; }
  .chapter-index { gap: 8px; padding-inline: 9px; }
  .chapter-index a { gap: 5px; font-size: 9px; }
  .chapter-index a > span { font-size: 13px; }
  .item-card { grid-template-columns: 86px minmax(0, 1fr); column-gap: 15px; }
  .item-art, .item-card[data-category="muebles"] .item-art { width: 70px; height: 70px; }
  .item-category { left: 13px; font-size: 7px; }
  .item-heading h3 { font-size: 21px; }
  .item-card:has(details[open]) { grid-template-columns: 76px minmax(0, 1fr); column-gap: 15px; padding: 17px; }
  .item-card:has(details[open]) .item-heading h3 { font-size: 25px; }
  .item-card:has(details[open]) .item-preview { height: 106px; min-height: 106px; }
  .item-card:has(details[open]) .item-category { font-size: 6px; left: 10px; }
  .crafting { gap: 9px; }
  .craft-grid { grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); padding: 6px; gap: 3px; }
  .craft-slot img { width: 30px; height: 30px; }
  .craft-result .item-icon { width: 44px; height: 44px; }
  .recipe-panel { padding: 17px; }
  .quest-step { grid-template-columns: 34px minmax(0, 1fr); gap: 13px; padding: 22px 17px; }
  .quest-number { width: 34px; height: 34px; font-size: 17px; }
  .quest-step::after { left: 34px; }
  .quest-step h3 { font-size: 22px; }
  .ritual-process { gap: 9px; }
  .ritual-inputs { gap: 7px; }
  .ritual-input { font-size: 9px; }
  .ritual-input .item-icon { width: 36px; height: 36px; }
  .lore-story { padding: 24px; }
}
@media (max-width: 360px) {
  .chapter-index a { font-size: 8px; gap: 4px; }
  .crafting { gap: 7px; }
  .craft-grid { grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 34px); }
  .craft-result .item-icon { width: 37px; height: 37px; }
  .craft-arrow { font-size: 20px; }
  .recipe-panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiki-page *, .wiki-page *::before, .wiki-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
