.wiki-page { background: #0d0914; color: #eee5f5; }
.wiki-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 52px 0 80px; }
.wiki-heading { margin-bottom: 30px; }
.wiki-heading h1 { margin: 12px 0 18px; font: 500 clamp(2.1rem, 4.5vw, 4.3rem)/1.12 Cinzel, serif; overflow-wrap: anywhere; }
.wiki-heading h1 em { color: #e799ee; font-style: normal; }
.wiki-heading > p:not(.eyebrow) { color: #c7b8d4; line-height: 1.7; }
.wiki-home-heading { max-width: 760px; }
.wiki-count { display: inline-block; margin-top: 18px; padding: 8px 14px; border: 1px solid #714187; border-radius: 20px; color: #e9b2f1; font-size: .8rem; }
.wiki-notice { padding: 20px 24px; margin: 24px 0 30px; background: #20142b; border: 1px solid #654074; border-left: 3px solid #cf7bdc; border-radius: 8px; }
.wiki-notice strong { color: #f1cff6; font-size: .95rem; }
.wiki-notice p { color: #d1c0dc; font-size: .88rem; line-height: 1.8; margin: 8px 0; }
.wiki-notice a, .wiki-source-note a, .wiki-credits a { color: #efa6e2; text-decoration: underline; text-underline-offset: 3px; }
.wiki-notice > a { font-size: .86rem; }
.wiki-search { display: grid; grid-template-columns: minmax(0, 1fr) 235px auto; gap: 16px; align-items: end; }
.wiki-search label { display: block; margin-bottom: 8px; color: #ceb9dd; font-size: .82rem; }
.wiki-search input, .wiki-search select { width: 100%; min-width: 0; height: 48px; border: 1px solid #664578; border-radius: 6px; padding: 0 14px; background: #171020; color: #f6eefa; font: inherit; }
.wiki-search input::placeholder { color: #ab97b9; }
.wiki-search button { min-height: 48px; padding: 12px 24px; border: 0; border-radius: 6px; background: var(--neon-gradient); color: #fff; font: 700 .87rem Inter,sans-serif; cursor: pointer; }
.wiki-results { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 28px 0 18px; font-size: .82rem; color: #b5a3c4; }
.wiki-results a { color: #efa6e2; }
.wiki-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.wiki-card { display: flex; flex-direction: column; min-height: 205px; padding: 26px; border: 1px solid #412d52; border-radius: 10px; background: linear-gradient(140deg,#21152c,#15101e); transition: border-color .2s, transform .2s; }
.wiki-card:hover { border-color: #bb72dd; transform: translateY(-3px); }
.wiki-card-category { color: #e5a3e8; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.wiki-card h2 { color: #f2e5fa; font: 500 1.23rem/1.4 Cinzel,serif; margin: 16px 0 10px; }
.wiki-card p { margin: 0 0 24px; font-size: .8rem; color: #b4a0c5; line-height: 1.5; }
.wiki-card-open { display: flex; justify-content: space-between; margin-top: auto; color: #eaaeeb; font-size: .8rem; }
.wiki-source-note { margin: 34px 0 0; color: #bba9c9; font-size: .8rem; line-height: 1.8; }
.wiki-empty { padding: 30px 0; color: #d8c6e5; }
.wiki-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; color: #b5a2c3; font-size: .83rem; }
.wiki-breadcrumb a { color: #edadeb; }
.wiki-reading-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 44px; }
.wiki-sidebar { align-self: start; position: sticky; top: 24px; max-height: calc(100svh - 48px); overflow: auto; padding: 20px; border: 1px solid #422e52; border-radius: 8px; background: #15101e; }
.wiki-sidebar summary { cursor: pointer; font-size: .9rem; color: #ecd5f7; }
.wiki-sidebar h2 { font: 600 .72rem Inter,sans-serif; text-transform: uppercase; letter-spacing: .07em; margin: 26px 0 10px; color: #dd9de6; }
.wiki-sidebar a { display: block; font-size: .8rem; color: #bdaccb; line-height: 1.5; padding: 8px; border-radius: 4px; }
.wiki-sidebar a:hover, .wiki-sidebar a[aria-current="page"] { background: #33203e; color: #ffe4fa; }
.wiki-reading-main { min-width: 0; }
.wiki-reading-main .wiki-heading h1 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.wiki-article { color: #dbcede; font-size: .98rem; line-height: 1.85; overflow-wrap: anywhere; }
.wiki-article h2, .wiki-article h3, .wiki-article h4, .wiki-article h5, .wiki-article h6 { font-family: Cinzel,serif; font-weight: 500; color: #f5e6ff; line-height: 1.45; margin: 34px 0 15px; }
.wiki-article h2 { font-size: 1.55rem; border-bottom: 1px solid #4a315b; padding-bottom: 12px; }
.wiki-article h3 { font-size: 1.25rem; }
.wiki-article p { margin: 14px 0; }
.wiki-article ul, .wiki-article ol { padding-left: 26px; margin: 16px 0; }
.wiki-article li { margin: 7px 0; }
.wiki-article a { color: #efa6e2; text-decoration: underline; text-underline-offset: 3px; }
.wiki-article figure { margin: 18px 0; padding: 12px 16px; border: 1px dashed #674674; border-radius: 5px; background: #1a1123; font-size: .82rem; }
.wiki-article blockquote { border-left: 3px solid #a360b8; padding: 12px 22px; margin: 20px 0; background: #21152c; }
.wiki-article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; }
.wiki-article th, .wiki-article td { border: 1px solid #50395f; padding: 10px 14px; }
.wiki-article pre { overflow-x: auto; background: #171020; padding: 16px; }
.wiki-credits { background: #171020; border: 1px solid #493257; border-radius: 8px; margin-top: 38px; padding: 24px; }
.wiki-credits h2 { font: 500 1.1rem Cinzel,serif; margin: 0 0 14px; }
.wiki-credits p { color: #c0aecb; font-size: .79rem; line-height: 1.85; margin: 10px 0; }
.wiki-back { display: inline-block; margin-top: 28px; }
@media(max-width:1000px) { .wiki-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .wiki-reading-layout { grid-template-columns: 195px minmax(0,1fr); gap: 26px; } .wiki-search { grid-template-columns: minmax(0,1fr) 200px; } .wiki-search button { grid-column: 1 / -1; } }
@media(max-width:700px) { .wiki-shell { width: calc(100% - 32px); padding-top: 32px; } .wiki-grid, .wiki-reading-layout, .wiki-search { grid-template-columns: 1fr; } .wiki-card { min-height: 180px; } .wiki-sidebar { position: static; max-height: 230px; } .wiki-notice { padding: 18px; } .wiki-reading-layout { gap: 28px; } .wiki-credits { padding: 18px; } }
@media(prefers-reduced-motion:reduce) { .wiki-card { transition: none; } .wiki-card:hover { transform: none; } }
.wiki-credits { text-align: left; }
.wiki-credits p { text-transform: none; letter-spacing: normal; }

/* Original guide media: local files, original order and responsive proportions. */
.wiki-article figure { max-width: 100%; padding: 10px; margin: 24px auto; border-style: solid; border-color: #493257; }
.wiki-article figure.mw-halign-left, .wiki-article figure.mw-halign-none { margin-left: 0; }
.wiki-article figure.mw-halign-right { margin-right: 0; }
.wiki-article img.wiki-media { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
.wiki-article a:has(> img) { display: block; }
.wiki-article figcaption { color: #cdb8da; font-size: .82rem; line-height: 1.6; margin-top: 8px; text-align: center; }
.wiki-article figcaption:empty { display: none; }
.wiki-article .wikia-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 18px; margin: 24px 0; }
.wiki-article .wikia-gallery-item { min-width: 0; padding: 10px; background: #1a1123; border: 1px solid #493257; border-radius: 6px; }
.wiki-article .wikia-gallery-item img { width: 100%; height: 185px; object-fit: contain; }
.wiki-article .lightbox-caption { margin-top: 10px; font-size: .85rem; text-align: center; color: #e8d7ef; }
.wiki-article .wiki-video { position: relative; display: block; }
.wiki-article .wiki-video-label { display: block; background: #33203e; padding: 10px 14px; margin-top: 8px; border-radius: 4px; text-align: center; color: #f9d9f3; font-size: .85rem; }
@media (max-width: 480px) { .wiki-article .wikia-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .wiki-article .wikia-gallery-item img { height: 145px; } }

.wiki-media-credits { margin-top: 18px; font-size: .8rem; color: #cfb9db; }
.wiki-media-credits summary { cursor: pointer; }
.wiki-media-credits ul { margin-top: 12px; padding-left: 20px; line-height: 1.9; }

/* Decay knowledge hub. */
.wiki-page [hidden] { display: none !important; }
.wiki-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.wiki-hero { position: relative; padding: 38px 42px; border: 1px solid #543065; border-radius: 18px; background: radial-gradient(ellipse at 88% 5%,#55245c70,transparent 48%),linear-gradient(125deg,#1f112e,#110c1b); box-shadow: 0 14px 65px #0003; }
.wiki-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: #c2a9ce; font-size: .75rem; }
.wiki-brand-label { color: #f1a7df; letter-spacing: .2em; font-weight: 700; }
.wiki-hero .wiki-heading { margin: 36px 0 30px; }
.wiki-hero .wiki-heading h1 { font-size: clamp(2.3rem,4.4vw,4.1rem); line-height: 1.12; }
.wiki-hero .wiki-heading h1 em { color: #ed9edc; }
.wiki-hero .wiki-heading p { color: #c8b7d2; margin-top: 20px; font-size: .95rem; }
.wiki-hero .wiki-search { grid-template-columns: minmax(0,1fr) 190px auto; gap: 12px; }
.wiki-input-wrap { position: relative; }
.wiki-input-wrap > span { position: absolute; left: 16px; top: 9px; font-size: 28px; color: #d9afed; pointer-events: none; }
.wiki-search .wiki-input-wrap input { padding-left: 48px; }
.wiki-hero .wiki-search input,.wiki-hero .wiki-search select { height: 56px; background: #0f0a18; border-color: #79508b; border-radius: 8px; font-size: .9rem; }
.wiki-hero .wiki-search button { height: 56px; border-radius: 8px; padding: 12px 26px; }
.wiki-search input:focus,.wiki-search select:focus,.wiki-article-search input:focus { outline: 2px solid #e6a2ee; outline-offset: 3px; }
#wiki-search-help { margin: 12px 0 18px; color: #bca6ca; font-size: .75rem; line-height: 1.6; }
.wiki-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .73rem; }
.wiki-popular > span { color: #bba4c8; margin-right: 4px; }
.wiki-popular a { border: 1px solid #5d3a6d; padding: 7px 12px; border-radius: 20px; color: #e6cbea; background: #281634; }
.wiki-popular a:hover { background: #422151; border-color: #d78edf; }
.wiki-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 44px 0 22px; }
.wiki-section-heading .eyebrow { margin-bottom: 10px; }
.wiki-section-heading h2,#wiki-results-title { color: #f0e4f5; font: 500 clamp(1.35rem,2.3vw,1.8rem) Cinzel,serif; }
.wiki-section-heading > a { color: #e9a5de; font-size: .8rem; }
.wiki-topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.wiki-topic { border: 1px solid #493057; padding: 24px; border-radius: 10px; background: #17101f; transition: border-color .15s; }
.wiki-topic:hover { border-color: #cf7ed7; background: #21142d; }
.wiki-topic-icon { display: block; margin-bottom: 16px; color: #e79be0; font-size: 26px; }
.wiki-topic h3 { font: 600 .99rem Inter,sans-serif; color: #eee0f4; margin-bottom: 10px; }
.wiki-topic p { color: #b6a2c3; font-size: .8rem; line-height: 1.5; margin-bottom: 22px; }
.wiki-topic > span:last-child { display: flex; justify-content: space-between; font-size: .76rem; color: #da9cdd; }
.wiki-start { margin: 28px 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid #765083; border-radius: 10px; background: linear-gradient(110deg,#2c193a,#1a1023); }
.wiki-start h2 { margin: 10px 0; font: 500 1.4rem Cinzel,serif; color: #f2ddf4; }
.wiki-start p { font-size: .85rem; color: #cbb6d6; line-height: 1.7; }
.wiki-start > a { flex-shrink: 0; border: 1px solid #c580d2; padding: 13px 18px; border-radius: 6px; color: #f4d9f7; font-size: .83rem; }
#wiki-results { scroll-margin-top: 28px; margin-top: 36px; }
.wiki-results { align-items: center; }
.wiki-results p { margin-top: 10px; }
.wiki-grid[aria-busy="true"] { opacity: .6; }
.wiki-card p { font-size: .83rem; line-height: 1.75; }
.wiki-empty { padding: 42px 24px; text-align: center; background: #1a1124; border: 1px dashed #694379; border-radius: 10px; }
.wiki-empty h3 { margin-bottom: 14px; color: #f1ddf7; }
.wiki-empty p { max-width: 540px; margin: 0 auto 20px; line-height: 1.7; }
.wiki-empty a { color: #eba2e7; }
.wiki-credits > summary,.wiki-server-note > summary { cursor: pointer; color: #baa8c6; font-size: .8rem; }
.wiki-home-credits { background: transparent; border: 0; border-top: 1px solid #392442; padding: 20px 0 0; }
.wiki-server-note { margin: 0 0 25px; padding: 14px 18px; border: 1px solid #493257; border-radius: 6px; }
.wiki-server-note p { color: #c9b7d3; line-height: 1.8; font-size: .84rem; padding-top: 12px; }
.wiki-server-note a { color: #eea3e4; }
.wiki-article-search { display: flex; gap: 10px; margin-bottom: 30px; }
.wiki-article-search input { min-width: 0; flex: 1; padding: 13px 16px; color: #eee0f5; background: #191022; border: 1px solid #684577; border-radius: 6px; font: inherit; }
.wiki-article-search button { border: 0; border-radius: 6px; background: #6a347a; color: #fff; padding: 12px 22px; cursor: pointer; }
@media(max-width:1000px) { .wiki-hero .wiki-search { grid-template-columns: minmax(0,1fr) 170px; } .wiki-hero .wiki-search button { grid-column: 1 / -1; } .wiki-start { align-items: start; flex-direction: column; } }
@media(max-width:700px) { .wiki-hero { padding: 25px 20px; border-radius: 12px; } .wiki-hero .wiki-search { grid-template-columns: minmax(0,1fr); } .wiki-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .wiki-topic { padding: 18px 15px; } .wiki-section-heading { align-items: start; flex-direction: column; } .wiki-start { padding: 24px; } .wiki-start > a { white-space: normal; } .wiki-hero .wiki-heading h1 { font-size: clamp(2rem,8vw,2.8rem); } }

.wiki-search-icon { position: absolute; left: 16px; top: 17px; color: #d9afed; pointer-events: none; }

/* Editorial status and article navigation. */
.wiki-review-date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; }
.wiki-review-badge { display: inline-block; padding: 5px 9px; border-radius: 5px; border: 1px solid #826543; color: #f1d1a0; background: #332618; font-size: .7rem; }
.wiki-review-badge.confirmed { color: #b4e5c5; background: #15291f; border-color: #466e53; }
.wiki-review-badge.partial { color: #e4c5f0; background: #2b1937; border-color: #78528b; }
.wiki-review-panel { display: grid; gap: 12px; margin-bottom: 26px; }
.wiki-review-panel > div { border: 1px solid #4c355e; border-radius: 8px; padding: 18px 20px; background: #191120; }
.wiki-review-panel .wiki-confirmed { border-left: 3px solid #81bf98; }
.wiki-review-panel .wiki-pending { border-left: 3px solid #cda565; }
.wiki-review-panel h2 { font: 600 .87rem Inter,sans-serif; color: #e8dbf0; margin: 0 0 10px; }
.wiki-review-panel ul { padding-left: 18px; color: #ccbdd7; font-size: .82rem; line-height: 1.8; }
.wiki-review-panel p { color: #b8a4c7; font-size: .76rem; line-height: 1.7; margin-top: 10px; }
.wiki-toc { border: 1px solid #50365e; border-radius: 8px; margin: 22px 0 30px; padding: 18px 22px; background: #1b1225; }
.wiki-toc summary { cursor: pointer; color: #f0d5f5; font: 600 .9rem Inter,sans-serif; }
.wiki-toc ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.wiki-toc a { color: #d1b8df; font-size: .86rem; line-height: 1.5; }
.wiki-toc a:hover { color: #ffb4eb; text-decoration: underline; }
.wiki-toc .wiki-toc-level-3 { padding-left: 18px; }
.wiki-article h2,.wiki-article h3 { scroll-margin-top: 28px; }
.wiki-article [aria-haspopup="dialog"] { cursor: zoom-in; }
.wiki-related { border-top: 1px solid #4a3059; margin-top: 42px; padding-top: 30px; }
.wiki-related > h2 { font: 500 1.5rem Cinzel,serif; color: #f3dff9; margin-bottom: 22px; }
.wiki-related .wiki-card { min-height: 200px; padding: 20px; }
.wiki-related h3 { color: #f2e5fa; font: 500 1.08rem/1.4 Cinzel,serif; margin: 16px 0 10px; }
.wiki-related .wiki-grid { grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }

/* Accessible in-page image viewer with native focus trapping and Escape. */
body.wiki-lightbox-open { overflow: hidden; }
.wiki-lightbox { margin: auto; width: min(1200px,96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 1px solid #9362a7; border-radius: 10px; background: #100b18; color: #efdef9; box-shadow: 0 20px 100px #000b; }
.wiki-lightbox::backdrop { background: #050209e8; }
.wiki-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #4c315c; }
.wiki-lightbox-toolbar > div { display: flex; gap: 8px; }
.wiki-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #805593; border-radius: 6px; padding: 9px 14px; background: #2d193b; color: #f7e2fa; font: 500 .85rem Inter,sans-serif; cursor: pointer; }
.wiki-lightbox button:hover { background: #49235b; }
.wiki-lightbox button:disabled { opacity: .4; cursor: default; }
.wiki-lightbox-viewport { height: min(68dvh,800px); overflow: auto; padding: 12px; display: grid; place-items: center; }
.wiki-lightbox-viewport img { max-width: 100%; max-height: calc(68dvh - 24px); width: auto; height: auto; object-fit: contain; }
.wiki-lightbox.is-zoomed .wiki-lightbox-viewport { display: block; }
.wiki-lightbox.is-zoomed img { max-width: none; max-height: none; margin: 0 auto; }
.wiki-lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid #4c315c; }
.wiki-lightbox-bottom p { font-size: .8rem; color: #dac7e7; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
@media(max-width:700px) { .wiki-related .wiki-grid { grid-template-columns: 1fr; } .wiki-toc { padding: 17px; } .wiki-lightbox { width: 96vw; } .wiki-lightbox-toolbar { padding: 10px; } .wiki-lightbox-toolbar button { padding: 8px 10px; font-size: .75rem; } }
