/* VELA wiki · Sunset Poster, 09 November 2026. One product with the site: the tokens below are copied from
   site/assets/poster.css and must keep the same values. This layer loads after wiki.css, which stays the structural
   base; every old colour name is rebound here, so no component needs a colour of its own. Oswald for posters, Manrope for
   reading. Hard edges, hard shadows, no glows. Surfaces rebind the shared variables, components follow. */

:root {
 --p-ink:#121016; --p-night:#16111d; --p-indigo:#211332; --p-indigo-2:#2b1b4f; --p-plum:#38203f; --p-card:#261b37; --p-card-2:#30234a;
 --p-sand:#f6e3c5; --p-sand-2:#fff3df; --p-coral:#ff795d; --p-orange:#ff8a3d; --p-sun:#ffd23f; --p-pink:#f2387c; --p-lagoon:#1fc8c8;
 --p-rule:#856486; --p-soft:#e8dde5; --p-muted:#cbbfd0; --p-wine:#8a1f4b;
 --p-gap:clamp(16px,2.2vw,28px); --p-section:clamp(60px,8vw,112px);
 --p-shadow:6px 6px 0 var(--p-plum); --p-shadow-sm:4px 4px 0 var(--p-plum);
 --p-h1:clamp(50px,7.1vw,108px); --p-h2:clamp(36px,4.8vw,68px); --p-h3:clamp(22px,2.3vw,30px);

 /* The names wiki.css reads. */
 --petrol:#1fc8c8; --plum:#38203f; --coral:#ff795d; --obsidian:#121016; --ivory:#f6e3c5; --red:#ff795d; --stone:#cbbfd0; --ash:#2b1b4f; --rose:#ffd23f; --red-deep:#a32055; --red-text:#ff8a3d;
 --surface:#261b37; --surface-2:#30234a; --surface-3:#2b1b4f; --line:rgba(246,227,197,.16); --line-strong:rgba(246,227,197,.34); --glow:transparent;
 --head:'Oswald','Arial Narrow','Segoe UI',sans-serif; --text:'Manrope','Segoe UI',system-ui,sans-serif;
 --radius:0px; --read:880px;
 --bar-h:64px; --header-h:64px;
 --hero-split:max(47%,calc((100% - var(--max))/2 + 700px));
}

/* --- Art. A block names its picture with data-poster; phones get the lighter copy. --------------------------- */
[data-poster] { --art:url('brand/world.webp'); --art-sm:url('brand/poster/world-900.webp'); --art-pos:center 42%; }
[data-poster=hero] { --art:url('brand/hero.webp'); --art-sm:url('brand/poster/hero-900.webp'); --art-pos:58% 30%; }
[data-poster=world] { --art:url('brand/world.webp'); --art-sm:url('brand/poster/world-900.webp'); --art-pos:78% 40%; }
[data-poster=multiclass] { --art:url('brand/multiclass.webp'); --art-sm:url('brand/poster/multiclass-900.webp'); --art-pos:50% 22%; }
[data-poster=tower] { --art:url('brand/tower.webp'); --art-sm:url('brand/poster/tower-900.webp'); --art-pos:60% 26%; }
[data-poster=rebirth] { --art:url('brand/rebirth.webp'); --art-sm:url('brand/poster/rebirth-900.webp'); --art-pos:62% 24%; }
[data-poster=runes] { --art:url('brand/runes.webp'); --art-sm:url('brand/poster/runes-900.webp'); --art-pos:42% 30%; }
[data-poster=pvp] { --art:url('brand/pvp.webp'); --art-sm:url('brand/poster/pvp-900.webp'); --art-pos:42% 24%; }
[data-poster=desert] { --art:url('brand/zones/desert.webp'); --art-sm:url('brand/poster/desert-900.webp'); --art-pos:55% 40%; }
[data-poster=forest] { --art:url('brand/zones/forest.webp'); --art-sm:url('brand/poster/forest-900.webp'); --art-pos:60% 40%; }
[data-poster=ice] { --art:url('brand/zones/ice.webp'); --art-sm:url('brand/poster/ice-900.webp'); --art-pos:60% 40%; }
[data-poster=ruins] { --art:url('brand/zones/ruins.webp'); --art-sm:url('brand/poster/ruins-900.webp'); --art-pos:50% 40%; }
[data-poster=underground] { --art:url('brand/zones/underground.webp'); --art-sm:url('brand/poster/underground-900.webp'); --art-pos:50% 45%; }
[data-poster=volcano] { --art:url('brand/zones/volcano.webp'); --art-sm:url('brand/poster/volcano-900.webp'); --art-pos:58% 45%; }
[data-poster=s-wiki-home] { --art:url('brand/scenes/wiki-home.webp'); --art-sm:url('brand/poster/scene-wiki-home-900.webp'); --art-pos:60% 40%; }
[data-poster=s-wiki-pvp] { --art:url('brand/scenes/wiki-pvp.webp'); --art-sm:url('brand/poster/scene-wiki-pvp-900.webp'); --art-pos:60% 40%; }
[data-poster=s-wiki-economy] { --art:url('brand/scenes/wiki-economy.webp'); --art-sm:url('brand/poster/scene-wiki-economy-900.webp'); --art-pos:62% 40%; }
[data-poster=s-wiki-world] { --art:url('brand/scenes/wiki-world.webp'); --art-sm:url('brand/poster/scene-wiki-world-900.webp'); --art-pos:60% 45%; }

/* --- Ground rules. --------------------------------------------------------------------------------------- */
*,*::before,*::after { border-radius:0 !important; }  /* the brand has no rounded corners, new components included */
html { background:var(--p-ink); }
body { background:var(--p-ink); color:var(--p-sand); }
body::before { display:none; }
::selection { background:var(--p-sun); color:#121016; }
:focus-visible { outline:3px solid var(--p-sun); outline-offset:2px; }
input::placeholder { color:var(--p-muted); opacity:1; }
a:hover { color:var(--p-sun); border-color:var(--p-sun); }
h1,h2,h3,h4 { font-family:var(--head); font-weight:700; line-height:1.08; letter-spacing:-.01em; }
kbd { background:#121016; color:var(--p-sand); border:1px solid var(--p-rule); box-shadow:2px 2px 0 var(--p-plum); font-size:13px; }

.surface-indigo { background:var(--p-indigo); }
.surface-paper { --ivory:#17121f; --paper:#17121f; --stone:#42304a; --rose:#8a1f4b; --red-text:#8a1f4b; --red:#a32055; --line:rgba(23,18,31,.22); --line-strong:rgba(23,18,31,.5); --surface:#fff3df; --surface-2:#fff3df; --p-soft:#2c2130; --p-muted:#42304a; --p-card:#fff3df; --p-card-2:#fff9ee; --p-rule:#17121f; --p-plum:#17121f; background:var(--p-sand); color:#17121f; }
.surface-paper :focus-visible { outline-color:#121016; }
.surface-paper a:hover { color:#8a1f4b; border-color:#8a1f4b; }

.kicker { display:flex; align-items:center; gap:10px; margin:0 0 14px; font:800 13px/1.5 var(--text); letter-spacing:.14em; text-transform:uppercase; color:var(--p-orange); }
.kicker::before { content:''; display:block; flex:none; width:11px; height:11px; background:var(--p-lagoon); transform:rotate(-12deg); }
.surface-paper .kicker { color:var(--p-wine); }

/* --- Buttons. --------------------------------------------------------------------------------------------- */
.btn { min-height:54px; padding:14px 22px; font:600 16px/1.2 var(--head); letter-spacing:.02em; text-transform:uppercase; background:#121016; color:#f6e3c5; border:2px solid #aa8db3; box-shadow:5px 5px 0 var(--p-plum); transition:transform .16s,box-shadow .16s,background .16s,color .16s; }
.btn:hover { background:var(--p-indigo-2); color:#f6e3c5; border-color:#f6e3c5; transform:translate(-2px,-2px); box-shadow:7px 7px 0 var(--p-plum); }
.btn:active { transform:translate(2px,2px); box-shadow:2px 2px 0 var(--p-plum); }
.btn-primary { background:var(--p-coral); color:#121016; border:2px solid #121016; box-shadow:5px 5px 0 var(--p-sand); }
.btn-primary:hover { background:#ffb18c; color:#121016; border-color:#121016; box-shadow:7px 7px 0 var(--p-sand); }
.btn-ink { background:#121016; color:#f6e3c5; border:2px solid #121016; box-shadow:5px 5px 0 var(--p-coral); }
.btn-ink:hover { background:#121016; color:var(--p-sun); border-color:#121016; box-shadow:7px 7px 0 var(--p-coral); }

/* --- Header: the bar stays on screen, the section row scrolls inside itself and never the page. ---------------- */
.w-header { z-index:60; background:var(--p-ink); border-bottom:0; backdrop-filter:none; }
.w-header::after { bottom:-3px; height:3px; background:var(--p-coral); }
.w-bar { min-height:var(--bar-h); padding-top:10px; padding-bottom:10px; gap:8px; }
.brand { flex:0 1 auto; min-width:0; min-height:44px; align-items:center; gap:8px; }
.brand img { display:block; width:84px; height:auto; }
.w-bar .brand small { margin:0; padding:3px 7px; background:var(--p-sun); color:#121016; font:600 14px/1.2 var(--head); letter-spacing:.04em; transform:rotate(-3deg); box-shadow:2px 2px 0 var(--p-coral); }
.search-btn { margin-left:auto; flex:none; justify-content:center; width:44px; min-width:44px; min-height:44px; padding:0; background:#121016; color:var(--p-sand); border:2px solid #aa8db3; font:500 16px/1 var(--text); }
.search-btn:hover { background:var(--p-indigo-2); color:var(--p-sand); border-color:var(--p-sand); }
.search-btn svg { width:20px; height:20px; }
.search-btn kbd { background:var(--p-indigo-2); }
.lang-sw { justify-content:center; flex:none; min-width:44px; min-height:44px; padding:0 8px; background:#121016; color:var(--p-sand); border:2px solid #aa8db3; font:600 16px/1 var(--head); letter-spacing:.04em; }
.lang-sw:hover { background:var(--p-indigo-2); color:var(--p-sand); border-color:var(--p-sand); }
.to-site { flex:none; display:inline-flex; align-items:center; gap:5px; min-height:44px; padding:0 11px; background:var(--p-sand); color:#121016; border:2px solid var(--p-sand); font:600 15px/1 var(--head); letter-spacing:.02em; text-transform:uppercase; }
.to-site:hover { background:var(--p-sun); color:#121016; border-color:var(--p-sun); }

.w-sections { position:relative; z-index:55; background:var(--p-indigo); border-bottom:3px solid #121016; }
.w-nav { display:flex; gap:2px; margin:0 auto; padding-top:0; padding-bottom:0; overflow-x:auto; scrollbar-width:none; -webkit-mask:none; mask:none; }
.w-nav a { flex:none; display:inline-flex; align-items:center; min-height:46px; padding:0 13px; border:0; color:#f6e3c5; font:500 16px/1 var(--head); letter-spacing:.03em; text-transform:uppercase; white-space:nowrap; }
.w-nav a:first-child { margin-left:-13px; }
.w-nav a:hover { background:var(--p-coral); color:#121016; }
.w-nav a[aria-current] { background:var(--p-sun); color:#121016; border-color:transparent; }

/* --- Poster hero: the composition of the site, usable by any page. --------------------------------------------- */
.page-hero { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; min-height:clamp(440px,42vw,640px); padding:clamp(48px,5.6vw,84px) 0 clamp(64px,7vw,108px); background:var(--p-indigo); border-bottom:8px solid #121016; }
.page-hero>.wrap { position:relative; z-index:2; width:100%; }
.page-hero>.wrap>* { max-width:min(640px,calc(47vw - 36px)); }
.page-hero .page-hero-bg { position:absolute; inset:18px 18px 44px var(--hero-split); z-index:-2; background:var(--p-orange) var(--art) var(--art-pos)/cover no-repeat; clip-path:polygon(11% 0,100% 0,100% 90%,0 100%); }
.page-hero::after { content:''; position:absolute; z-index:-1; left:calc(var(--hero-split) + 1.2%); top:-12%; width:9px; height:130%; background:var(--p-coral); transform:rotate(11deg); pointer-events:none; }
.page-hero .kicker { color:#f6e3c5; margin-bottom:18px; }
.page-hero h1 { margin:0 0 24px; font:700 var(--p-h1)/.98 var(--head); letter-spacing:-.04em; text-transform:uppercase; color:#fff4e7; text-shadow:4px 4px 0 #121016; overflow-wrap:break-word; }
.page-hero h1 .red { display:inline-block; margin-top:.08em; padding:.02em .16em .1em .12em; color:#121016; background:#f6e3c5; text-shadow:none; transform:rotate(-2deg); box-shadow:.07em .07em 0 #121016; }
.page-hero .lead { color:#f0e5eb; font-size:clamp(16px,1.3vw,18px); line-height:1.7; margin:0 0 26px; }
.page-hero .cta-row { margin-top:24px !important; }

/* Search: a sheet of paper with a coral key. The home page, /search/ and 404 share it. */
.hero-search { position:relative; max-width:680px; box-shadow:7px 7px 0 #121016; }
.hero-search::before { display:none; }
.hero-search form { display:flex; align-items:stretch; gap:0; padding:0; background:var(--p-sand); border:3px solid #121016; }
.hero-search svg { align-self:center; flex:none; width:26px; height:26px; margin-left:18px; color:#121016; }
.hero-search input { flex:1; min-width:0; height:66px; padding:0 14px; text-overflow:ellipsis; background:transparent; color:#17121f; font:600 18px/1.2 var(--text); }
.hero-search input::placeholder { color:#55435c; opacity:1; text-overflow:ellipsis; }
.hero-search button { flex:none; height:auto; padding:0 26px; background:var(--p-coral); color:#121016; border:0; border-left:3px solid #121016; font:700 22px/1 var(--head); letter-spacing:.02em; text-transform:uppercase; }
.hero-search button:hover { background:#ffb18c; }
.hero-search:focus-within { outline:3px solid var(--p-sun); outline-offset:3px; }

.quick { gap:8px; margin-top:20px; color:#f6e3c5; font:800 13px/1.4 var(--text); letter-spacing:.08em; text-transform:uppercase; }
.quick a { display:inline-flex; align-items:center; min-height:44px; padding:0 13px; background:#121016; color:#f6e3c5; border:2px solid var(--p-rule); font:500 16px/1 var(--head); letter-spacing:.03em; }
.quick a:hover { background:var(--p-coral); color:#121016; border-color:#121016; }

/* --- Home page. ------------------------------------------------------------------------------------------- */
.home-poster { padding-top:clamp(40px,4vw,60px); padding-bottom:clamp(56px,5vw,76px); }
.home-poster h1 { font-size:clamp(84px,9.2vw,140px); }
.home-poster h1 .red { display:block; width:fit-content; }
.hero-stamp { position:absolute; z-index:1; top:clamp(34px,4vw,60px); right:clamp(36px,4.4vw,76px); display:grid; justify-items:center; min-width:158px; padding:12px 20px 14px; background:var(--p-sun); color:#121016; border:3px solid #121016; box-shadow:8px 8px 0 #121016; transform:rotate(4deg); text-align:center; }
.hero-stamp small { font:800 13px/1.35 var(--text); letter-spacing:.08em; text-transform:uppercase; }
.hero-stamp b { font:700 clamp(50px,4.6vw,70px)/1.02 var(--head); letter-spacing:-.02em; }
.hero-stamp small:last-child:not(:nth-child(3)) { margin-top:6px; padding-top:6px; border-top:2px solid #121016; }

.hero-jump { display:block; margin:0; padding:0; overflow:visible; background:#121016; border-bottom:2px solid var(--p-plum); }
.hero-jump .wrap { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
.hero-jump a { display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; min-height:96px; padding:12px 16px; overflow-wrap:anywhere; background:none; color:#f6e3c5; border:0; box-shadow:0 0 0 1px var(--p-plum); font:600 20px/1.08 var(--head); letter-spacing:.005em; text-transform:uppercase; }
.hero-jump b { display:block; flex:none; width:auto; height:auto; background:none; color:var(--p-coral); font:700 34px/1 var(--head); }
.hero-jump a:nth-child(3n+2) b { color:#ff9eb5; }
.hero-jump a:nth-child(3n) b { color:var(--p-lagoon); }
.hero-jump a:hover { background:var(--p-coral); color:#121016; }
.hero-jump a:hover b { color:#121016; }

.band { padding:var(--p-section) 0; }
.band-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px 44px; margin-bottom:clamp(28px,4vw,52px); }
.band-head>div { flex:1 1 420px; min-width:0; max-width:920px; }
.band-head h2 { margin:0; font:700 var(--p-h2)/1.03 var(--head); letter-spacing:-.03em; text-transform:uppercase; color:var(--ivory); }
.band-sub { margin:16px 0 0; max-width:760px; color:var(--p-soft); font-size:clamp(16px,1.3vw,18px); line-height:1.7; }
.band .callout { margin-bottom:clamp(32px,4vw,52px); }

.band-start .start-grid { gap:var(--p-gap); align-items:stretch; }
.band-start .steps { gap:var(--p-gap); }
.step { flex-direction:column; gap:12px; padding:24px 22px; }
.step .step-n { display:block; width:auto; height:auto; border:0; background:none; font:700 clamp(46px,4.6vw,62px)/1 var(--head); color:var(--p-coral); }
.steps li:nth-child(3n+2) .step-n { color:#ff9eb5; }
.steps li:nth-child(3n) .step-n { color:var(--p-lagoon); }
.step b { font:600 clamp(24px,2.1vw,30px)/1.12 var(--head); text-transform:uppercase; margin-bottom:8px; }
.step span:not(.step-n) { font-size:16px; line-height:1.6; color:var(--p-soft); }
.start-cta { display:flex; flex-direction:column; justify-content:center; padding:clamp(24px,2.6vw,36px); background:var(--p-sun); color:#121016; border:3px solid #121016; box-shadow:8px 8px 0 var(--p-coral); }
.start-cta p { color:#121016; font-size:17px; line-height:1.62; }
.start-cta .side-h { margin:0 0 12px; font:700 clamp(38px,3.6vw,54px)/1 var(--head); letter-spacing:-.02em; color:#121016; }
.start-cta .cta-row { margin-top:18px !important; gap:14px; }
.start-cta .btn-primary { box-shadow:5px 5px 0 #121016; }
.start-cta .btn-primary:hover { box-shadow:7px 7px 0 #121016; }

/* Stages of the path. The compact row is a filmstrip on phones. */
.journey { gap:var(--p-gap); margin:0; }
.journey-card { padding:22px 20px; background:var(--p-card); border:2px solid var(--p-rule); border-top:6px solid var(--p-coral); box-shadow:var(--p-shadow); }
.journey-card:nth-child(3n+2) { border-top-color:var(--p-pink); }
.journey-card:nth-child(3n) { border-top-color:var(--p-lagoon); }
.journey-card:target { border-color:var(--p-sun); box-shadow:6px 6px 0 var(--p-sun); }
.journey-top { align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:14px; color:var(--p-sun); font:700 14px/1.3 var(--text); }
.journey-top>span:last-child { text-align:right; }
.journey-number { display:block; width:auto; height:auto; border:0; background:none; color:var(--p-coral); font:700 clamp(46px,4vw,58px)/.95 var(--head); }
.journey-card:nth-child(3n+2) .journey-number { color:#ff9eb5; }
.journey-card:nth-child(3n) .journey-number { color:var(--p-lagoon); }
.journey-card h3 { margin:0 0 10px; font:600 clamp(24px,1.9vw,28px)/1.1 var(--head); text-transform:uppercase; letter-spacing:0; color:var(--ivory); }
.journey-compact .journey-card h3 { font-size:clamp(24px,1.9vw,28px); }
.journey-goal,.journey-compact .journey-goal { font-size:16px; line-height:1.55; color:var(--p-soft); }
.journey-gear { border-top:2px solid var(--p-rule); padding-top:14px; }
.journey-gear>small { color:var(--p-orange); font:800 13px/1.4 var(--text); letter-spacing:.08em; margin-bottom:6px; }
.journey-gear>b { font:600 15px/1.45 var(--text); color:var(--p-sand); }
.journey-items { flex-direction:column; flex-wrap:nowrap; gap:6px; margin-top:10px; }
.journey-items:empty { display:none; }
.journey-item { flex:none; min-height:48px; padding:6px 8px; background:#121016; color:#f6e3c5; border:1px solid var(--line-strong); font-size:14px; line-height:1.3; }
.journey-item:hover { color:#121016; background:var(--p-sand); border-color:var(--p-sand); }
.journey-item span { overflow-wrap:break-word; min-width:0; }
.journey-more { display:inline-flex; align-items:center; min-height:44px; margin-top:10px; border:0; color:var(--p-sun); font:800 15px/1.2 var(--text); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }

/* Sand band: the one bright sheet of the page, the art cut on a slant. */
.band-systems { display:grid; grid-template-columns:minmax(0,38%) minmax(0,1fr); padding:0; }
.band-systems .band-art { --art-pos:37% 40%; min-height:100%; background:var(--p-orange) var(--art) var(--art-pos)/cover no-repeat; clip-path:polygon(0 0,100% 0,84% 100%,0 100%); }
.band-systems .band-body { min-width:0; padding:var(--p-section) max(var(--gutter),calc((100vw - var(--max))/2 + var(--gutter))) var(--p-section) clamp(10px,2vw,32px); }
.band-systems .sys-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 clamp(24px,3vw,44px); }
.band-systems .sys.spot { display:block !important; padding:16px 0 22px; background:none; border:0; border-top:2px solid #17121f; box-shadow:none; color:#17121f; overflow:visible; }
.band-systems .sys.spot:hover { background:none; color:#17121f; transform:none; box-shadow:none; }
.band-systems .sys .art { display:none; }
.band-systems .sys-sec { color:var(--p-wine); font:800 13px/1.4 var(--text); letter-spacing:.1em; }
.band-systems .sys b { margin:4px 0 6px; font:600 clamp(24px,2vw,30px)/1.1 var(--head); text-transform:uppercase; color:#17121f; }
.band-systems .sys-sum { font-size:16px; line-height:1.55; color:#2c2130; }
.band-systems .sys:hover b { color:var(--p-wine); }

.db-grid { gap:var(--p-gap); grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr)); }
a.db-card { min-height:0; padding:24px 20px 22px; background:var(--p-card); border:2px solid var(--p-rule); border-top:6px solid var(--p-coral); box-shadow:var(--p-shadow); }
a.db-card:nth-child(5n+2) { border-top-color:var(--p-pink); }
a.db-card:nth-child(5n+3) { border-top-color:var(--p-lagoon); }
a.db-card:nth-child(5n+4) { border-top-color:var(--p-sun); }
a.db-card:nth-child(5n) { border-top-color:var(--p-orange); }
.db-card b { font:600 clamp(26px,2.2vw,32px)/1.08 var(--head); text-transform:uppercase; }
.db-card span:not(.num):not(.art) { font-size:16px; line-height:1.55; color:var(--p-soft); -webkit-line-clamp:6; }
.db-card .num { font:700 clamp(42px,3.8vw,56px)/1 var(--head); color:var(--p-sun); padding-top:12px; }
.db-card .num small { display:block; margin:6px 0 0; font:800 13px/1.3 var(--text); letter-spacing:.1em; color:var(--p-muted); }

.band-updates .wrap { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:32px clamp(40px,6vw,96px); align-items:start; }
.band-updates .band-head { display:block; margin:0; position:sticky; top:calc(var(--header-h) + 28px); }
.band-updates .band-head .btn { margin-top:26px; }
.band-updates .timeline::before { display:none; }
.band-updates .timeline>li { display:grid; grid-template-columns:130px minmax(0,1fr); gap:6px 24px; padding:22px 0; border-top:2px solid var(--p-rule); }
.band-updates .timeline>li::before { display:none; }
.band-updates .timeline>li:last-child { border-bottom:2px solid var(--p-rule); }
.band-updates .timeline time { grid-row:span 2; font:600 20px/1.2 var(--head); letter-spacing:.01em; text-transform:none; color:var(--p-sun); }
.band-updates .timeline h3 { margin:0; font:600 clamp(24px,2.1vw,30px)/1.12 var(--head); text-transform:uppercase; }
.band-updates .timeline h3 a { color:var(--p-sand); }
.band-updates .timeline h3 a:hover { color:var(--p-sun); }
.band-updates .timeline p { font-size:16px; line-height:1.6; color:var(--p-soft); margin:0; }

.home-foot { margin:0 auto; padding-top:20px; padding-bottom:20px; color:var(--p-muted); font-size:16px; line-height:1.4; }
.home-foot a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; color:var(--p-sand); border:0; text-decoration:underline; text-decoration-color:var(--p-rule); text-underline-offset:4px; }
.home-foot a:hover { color:var(--p-sun); text-decoration-color:var(--p-sun); }

/* Wiki entrance: search and routes lead; one small poster keeps the shared visual identity. */
.home-entry { position:relative; padding:clamp(28px,4vw,52px) 0; background:var(--p-indigo); border-bottom:4px solid var(--p-coral); }
.home-entry-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); align-items:stretch; gap:clamp(32px,5vw,72px); }
.home-entry-copy { min-width:0; }
.home-entry .kicker { margin-bottom:14px; color:var(--p-sand); }
.home-entry h1 { margin:0 0 20px; color:var(--p-sand-2); font:700 clamp(46px,5vw,72px)/1.05 var(--head); letter-spacing:-.035em; text-transform:uppercase; }
.home-entry h1 .red { display:inline-block; padding:0 .14em .07em; color:var(--p-ink); background:var(--p-sand); box-shadow:4px 4px 0 var(--p-ink); transform:rotate(-2deg); }
.home-intro { max-width:62ch; margin:0 0 24px; color:var(--p-soft); font-size:17px; line-height:1.65; }
.home-entry .hero-search { max-width:none; }
.home-entry .hero-search input { height:60px; }
.home-entry .quick { margin-top:18px; gap:6px; letter-spacing:.04em; }
.home-entry .quick>span { margin-right:4px; }
.home-entry .quick a { padding-inline:10px; font-size:15px; min-height:40px; }
.home-entry-art { position:relative; align-self:center; width:100%; height:clamp(260px,24vw,340px); background:var(--p-orange) var(--art-sm,var(--art)) var(--art-pos)/cover no-repeat; border:3px solid var(--p-ink); box-shadow:8px 8px 0 var(--p-coral); }
.home-entry-art::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(18,16,22,.75)); }
.home-entry-art span { position:absolute; z-index:1; left:22px; bottom:18px; color:var(--p-sand-2); font:700 clamp(32px,3vw,46px)/1 var(--head); letter-spacing:-.02em; text-shadow:3px 3px 0 var(--p-ink); }
.home-heading { display:flex; align-items:center; justify-content:space-between; gap:16px 28px; margin-bottom:22px; }
.home-heading h2 { margin:0; font:600 clamp(28px,3vw,40px)/1.15 var(--head); letter-spacing:-.02em; color:var(--p-sand); }
.home-heading .kicker { margin-bottom:8px; }
.home-heading>a { display:inline-flex; align-items:center; min-height:44px; flex:none; color:var(--p-sand); border:0; font-size:15px; text-decoration:underline; text-underline-offset:5px; text-decoration-color:var(--p-rule); }
.home-heading>a:hover { color:var(--p-sun); text-decoration-color:currentColor; }
.home-routes { padding-top:32px; padding-bottom:40px; }
.home-route-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.home-route { --route-accent:var(--p-coral); position:relative; min-width:0; display:flex; flex-direction:column; padding:20px 18px 12px; background:var(--p-card); border:1px solid var(--p-rule); border-top:4px solid var(--route-accent); }
.home-route:nth-child(2) { --route-accent:var(--p-sun); }
.home-route:nth-child(3) { --route-accent:var(--p-lagoon); }
.home-route:nth-child(4) { --route-accent:var(--p-pink); }
.home-route-n { margin-bottom:12px; color:var(--route-accent); font:600 20px/1 var(--head); }
.home-route h3 { margin:0 0 8px; font:600 clamp(23px,2vw,28px)/1.15 var(--head); color:var(--p-sand); }
.home-route>p { margin:0 0 16px; color:var(--p-muted); font-size:14px; line-height:1.6; }
.home-route ul { list-style:none; margin:auto 0 0; padding:0; }
.home-route li { margin:0; border-top:1px solid var(--line-strong); }
.home-route li a { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:8px 0; border:0; color:var(--p-sand); font-size:14px; line-height:1.45; }
.home-route li a span { flex:none; color:var(--route-accent); font-size:17px; }
.home-route li a:hover { color:var(--p-sun); }
.home-directory { padding:36px 0 40px; background:var(--p-night); border-top:1px solid var(--p-plum); }
.home-section-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
a.home-section { min-width:0; display:flex; flex-direction:column; padding:20px; background:var(--p-indigo); border:1px solid var(--p-plum); color:var(--p-sand); }
.home-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.home-section h3 { margin:0; font:600 25px/1.2 var(--head); color:inherit; }
.home-section-head>span { flex:none; color:var(--p-coral); font-size:20px; line-height:1.4; }
.home-section p { margin:10px 0 18px; color:var(--p-muted); font-size:14px; line-height:1.6; }
.home-section small { margin-top:auto; color:var(--p-soft); font-size:13px; }
a.home-section:hover { border-color:var(--p-sand); background:var(--p-indigo-2); color:var(--p-sun); }
.home-reference { display:flex; flex-wrap:wrap; gap:12px 28px; margin-top:24px; padding-top:16px; border-top:1px solid var(--p-plum); }
.home-reference a { display:inline-flex; align-items:center; gap:12px; min-height:44px; color:var(--p-sand); font-size:15px; border:0; }
.home-reference a span { color:var(--p-coral); }
.home-reference a:hover { color:var(--p-sun); }
.home-language-note { max-width:75ch; margin:16px 0 0; color:var(--p-muted); font-size:14px; }
.home-status,.balance-note { padding:10px 14px; border-left:3px solid var(--p-lagoon); background:var(--p-ink); color:var(--p-soft); font-size:14px; line-height:1.6; }
.home-status { margin:18px 0 0; }
.balance-note { margin:18px 0 0; }
.home-updates { padding-top:32px; padding-bottom:40px; }
.home-updates .timeline { margin:0; }
@media (max-width:1100px) {
 .home-entry-grid { grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:28px; }
 .home-route-grid,.home-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .home-entry-art { box-shadow:5px 5px 0 var(--p-coral); }
}
@media (max-width:760px) {
 .home-entry { padding:28px 0 24px; }
 .home-entry-grid { display:block; }
 .home-entry-art { display:none; }
 .home-entry h1 { font-size:52px; margin-bottom:18px; }
 .home-entry .kicker { font-size:11px; letter-spacing:.08em; }
 .home-intro { font-size:16px; margin-bottom:20px; }
 .home-entry .hero-search input { height:56px; font-size:16px; }
 .home-entry .quick { gap:6px; margin-top:16px; }
 .home-entry .quick>span { width:100%; font-size:11px; }
 .home-heading { align-items:flex-start; flex-wrap:wrap; gap:4px 18px; margin-bottom:16px; }
 .home-heading h2 { font-size:30px; }
 .home-heading>a { font-size:14px; }
 .home-routes { padding-top:24px; padding-bottom:28px; }
 .home-directory { padding:28px 0; }
 .home-route { padding:18px 16px 10px; }
 .home-section { padding:16px; }
 .home-section h3 { font-size:24px; }
}
@media (max-width:520px) {
 .home-route-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
 .home-route { display:grid; grid-template-columns:28px minmax(0,1fr); column-gap:10px; }
 .home-route-n { grid-column:1; grid-row:1; margin:4px 0 0; }
 .home-route h3 { grid-column:2; }
 .home-route>p { grid-column:2; margin-bottom:10px; }
 .home-route ul { grid-column:1 / -1; width:100%; margin-top:0; }
 .home-section-grid { gap:10px; }
 a.home-section { padding:14px 12px; }
 .home-section-head { gap:6px; }
 .home-section h3 { font-size:21px; }
 .home-section-head>span { font-size:16px; }
 .home-section p { margin:8px 0 14px; font-size:13px; }
 .home-section small { font-size:12px; }
 .home-reference { gap:4px 20px; margin-top:20px; }
}
@media (max-width:359px) {
 .home-section-grid { grid-template-columns:minmax(0,1fr); }
}
@media print {
 .home-entry-art,.home-entry .quick { display:none; }
 .home-entry,.home-directory,.home-route,a.home-section { background:none; color:#000; border-color:#777; box-shadow:none; }
 .home-entry h1,.home-entry h1 .red,.home-heading h2,.home-route h3,.home-route p,.home-route a,.home-section p,.home-section small { color:#000; background:none; box-shadow:none; }
}

/* 404 */
.not-found { min-height:calc(100vh - var(--header-h) - 60px); }
.not-found h1 { font-size:clamp(50px,5.8vw,84px); }
.err-code { margin:0 0 6px; font:700 clamp(84px,8.4vw,128px)/.92 var(--head); letter-spacing:-.03em; color:var(--p-sun); text-shadow:6px 6px 0 #121016; }

/* --- Footer: one clear next step, then the map of the site. ---------------------------------------------------- */
.w-foot { margin-top:0; padding:0 0 32px; background:#0e0c12; border-top:0; color:var(--p-muted); font-size:16px; }
.w-foot::before { content:''; display:block; height:8px; background:linear-gradient(90deg,var(--p-pink) 0 25%,var(--p-orange) 25% 50%,var(--p-sun) 50% 75%,var(--p-lagoon) 75%); }
.footer-cta { background:var(--p-coral); color:#121016; border-bottom:6px solid #121016; }
.footer-cta .wrap { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); align-items:center; gap:clamp(20px,4vw,56px); padding-top:clamp(32px,4vw,52px); padding-bottom:clamp(32px,4vw,52px); }
.w-foot .footer-cta h2 { margin:0; font:700 clamp(38px,4.6vw,66px)/1 var(--head); letter-spacing:-.03em; text-transform:uppercase; color:#121016; }
.footer-steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.w-foot .footer-steps li { padding:0; }
.w-foot .footer-steps a { display:flex; align-items:center; gap:12px; min-height:76px; height:100%; padding:12px 14px; background:#121016; color:#f6e3c5; border:2px solid #121016; font:600 clamp(18px,1.5vw,22px)/1.12 var(--head); text-transform:uppercase; letter-spacing:.005em; transition:transform .16s,background .16s,color .16s; }
.w-foot .footer-steps a:hover { background:#f6e3c5; color:#121016; transform:translate(-2px,-2px); }
.footer-steps b { flex:none; font-size:clamp(34px,3vw,44px); line-height:1; color:var(--p-sun); }
.w-foot .footer-steps a:hover b { color:#121016; }
.foot-map { display:grid; grid-template-columns:minmax(200px,300px) minmax(0,1fr); align-items:start; gap:clamp(24px,4vw,56px) clamp(24px,5vw,72px); padding-top:clamp(36px,5vw,64px); }
.foot-brand .brand { display:inline-block; }
.foot-brand .brand img { width:150px; }
.foot-brand p { margin:14px 0 14px; font-size:15px; line-height:1.65; color:var(--p-muted); }
.w-foot .foot-lang { display:inline-flex; align-items:center; min-height:44px; padding:0 13px; background:#121016; color:#f6e3c5; border:2px solid var(--p-rule); font:500 16px/1 var(--head); letter-spacing:.03em; text-transform:uppercase; }
.w-foot .foot-lang:hover { background:var(--p-coral); color:#121016; border-color:#121016; }
.footer-col { min-width:0; }
.footer-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(20px,3vw,44px); }
.w-foot .footer-col h2 { margin:0 0 10px; font:600 22px/1.2 var(--head); letter-spacing:.01em; text-transform:uppercase; color:var(--p-orange); }
.w-foot .footer-col ul { display:grid; }
.w-foot .footer-col li { padding:0; }
.w-foot .footer-col a { display:inline-flex; align-items:center; min-width:44px; min-height:44px; overflow-wrap:break-word; color:#e8dde5; font-size:15px; font-weight:500; line-height:1.3; }
.w-foot .footer-col a:hover { color:var(--p-sun); }
.w-foot .fine { grid-column:1/-1; display:block; margin:0; padding-top:18px; border-top:2px solid var(--p-plum); color:var(--p-muted); font-size:13px; line-height:1.6; }

/* --- Search palette. ----------------------------------------------------------------------------------------- */
.pal-dim { background:rgba(18,16,22,.88); }
.pal-box { background:var(--p-card); border:3px solid #121016; box-shadow:10px 10px 0 var(--p-coral); animation:none; }
.pal-in { padding:0 8px 0 16px; background:var(--p-sand); border-bottom:3px solid #121016; }
.pal-in svg { color:#121016; }
.pal-in input { height:62px; color:#17121f; font-weight:600; }
.pal-in input::placeholder { color:#55435c; }
.pal-x { height:44px; min-width:44px; color:#121016; border:2px solid #121016; font-size:13px; }
.pal-x:hover { background:#121016; color:var(--p-sand); }
.pal-g { font:800 13px/1.4 var(--text); letter-spacing:.12em; color:var(--p-orange); }
.pal-res a { min-height:50px; }
.pal-res a b { font-size:16px; }
.pal-res a small { font-size:13px; color:var(--p-muted); }
.pal-res a mark,.sres mark { color:var(--p-sun); }
.pal-res a:hover { background:var(--p-indigo-2); color:var(--p-sand); }
.pal-res a.on { background:var(--p-coral); color:#121016; box-shadow:none; }
.pal-res a.on small,.pal-res a.on mark { color:#121016; }
.pal-res .allres { color:var(--p-sand); font-size:16px; }
.pal-note { background:var(--p-indigo-2); border:0; border-left:6px solid var(--p-coral); color:var(--p-soft); }
.pal-foot { font-size:13px; color:var(--p-muted); }
.pal-hint { color:var(--p-soft); font-size:16px; }

.to-top { right:16px; bottom:16px; width:48px; height:48px; background:var(--p-coral); color:#121016; border:2px solid #121016; box-shadow:4px 4px 0 #121016; }
.to-top:hover { background:#ffb18c; }

/* --- The rest of the wiki, until its own pages are redrawn: same colours, no soft effects. ----------------------- */
.spot { background:var(--p-card); border:2px solid var(--p-rule); box-shadow:var(--p-shadow); }
.spot::before { display:none; }
.spot:hover { border-color:var(--p-coral); box-shadow:var(--p-shadow); }
a.spot:hover { color:var(--ivory); transform:none; }
.art { background:var(--p-indigo-2); box-shadow:0 0 0 2px var(--p-rule); }
.art::before { inset:18%; background:url('brand/icon.svg') center/contain no-repeat; }
.art::after { display:none; }
.art img { filter:none; transform:none; }
:hover > .art img, :hover > * > .art img { filter:none; transform:none; }
:hover > .art, :hover > * > .art { box-shadow:0 0 0 2px var(--p-coral); }
.art-sm { box-shadow:0 0 0 2px var(--p-rule); }
.gi { background:var(--p-indigo-2); box-shadow:inset 0 0 0 1px var(--line-strong); }
.chips .gi,.ch .gi { font-size:13px; }
.gi-lg { box-shadow:inset 0 0 0 1px var(--line-strong); }
.gi.gi-raid { box-shadow:0 0 0 2px var(--p-coral); }
.gi.gi-raid::after { display:none; }
.gi-doc { background:var(--p-indigo-2); color:var(--p-sun); }
.page-head h1 { font-size:clamp(40px,5.2vw,72px); font-weight:700; line-height:1.03; letter-spacing:-.03em; text-transform:uppercase; }
.page-head { padding:24px 0; }
.block-h h2 { font-size:clamp(30px,3.6vw,48px); letter-spacing:-.02em; }
.block-h a { color:var(--p-sun); }
.block-sub { font-size:16px; color:var(--p-soft); }
.entity-popover { background:var(--p-card); border:3px solid #121016; box-shadow:8px 8px 0 var(--p-coral); }
.entity-popover-head h2 { font:600 22px/1.2 var(--head); text-transform:uppercase; }
.entity-popover-head img { background:#121016; }
.image-dialog { background:var(--p-card); border:3px solid #121016; }
.image-dialog::backdrop { background:rgba(18,16,22,.92); backdrop-filter:none; }
.filters,.advanced-filters,.category-card,.gear-step { background:var(--p-card); }
.filters input,.filters select,.advanced-filters select { background:#17121f; border:2px solid #aa8db3; color:var(--p-sand); }
.filters input:focus,.filters select:focus { border-color:var(--p-sun); }
.category-card[aria-current="true"] { background:var(--p-indigo-2); border-color:var(--p-sun); }
.db-row a,.sres a { background:var(--p-card); border:2px solid var(--p-rule); }
.db-row a:hover,.sres a:hover { background:var(--p-card-2); border-color:var(--p-coral); }
.pager span[aria-current] { background:var(--p-sun); color:#121016; border-color:#121016; }

/* --- Widths. ---------------------------------------------------------------------------------------------------- */
@media (min-width:640px) {
 .search-btn { flex:0 1 330px; justify-content:flex-start; width:auto; gap:10px; padding:0 12px; }
 .search-btn .lbl { display:inline; color:var(--p-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
 .search-btn kbd { display:inline-block; margin-left:auto; }
 .to-site { padding:0 14px; font-size:16px; }
}
@media (min-width:960px) {
 :root { --bar-h:72px; --header-h:121px; }
 .w-bar { gap:12px; }
 .brand img { width:106px; }
 .w-sections { position:sticky; top:var(--bar-h); }
}
@media (max-width:1099px) {
 .band-updates .wrap { grid-template-columns:1fr; }
 .band-updates .band-head { position:static; display:flex; align-items:flex-end; }
 .band-updates .band-head .btn { margin-top:0; }
}
@media (min-width:761px) and (max-width:1100px) {
 .hero-stamp { top:auto; bottom:clamp(62px,9vw,96px); right:30px; min-width:0; padding:8px 16px 10px; box-shadow:6px 6px 0 #121016; }
 .hero-stamp b { font-size:46px; }
 .hero-stamp small:first-child,.hero-stamp small:last-child:not(:nth-child(3)) { display:none; }
}
@media (max-width:1000px) {
 .hero-search svg { display:none; }
 .hero-search button { padding:0 16px; font-size:19px; }
}
@media (max-width:959px) {
 .band-systems { display:block; }
 .band-systems .band-art { height:clamp(200px,38vw,320px); min-height:0; background-image:var(--art-sm,var(--art)); clip-path:polygon(0 0,100% 0,100% 84%,0 100%); }
 .band-systems .band-body { padding:clamp(28px,5vw,44px) var(--gutter) var(--p-section); }
 .footer-cta .wrap { grid-template-columns:1fr; }
 .foot-map { grid-template-columns:1fr; }
}
@media (max-width:760px) {
 :root { --p-gap:14px; --p-shadow:4px 4px 0 var(--p-plum); }
 .page-hero { display:block; min-height:0; padding:190px 0 40px; border-bottom-width:5px; }
 .page-hero>.wrap>* { max-width:none; }
 .page-hero .page-hero-bg { inset:10px 10px auto 10px; height:196px; clip-path:polygon(0 0,100% 0,100% 86%,0 100%); background-image:var(--art-sm,var(--art)); }
 .page-hero::after { left:-5%; top:178px; width:110%; height:7px; transform:rotate(-6deg); }
 .page-hero h1 { font-size:clamp(44px,13.4vw,70px); text-shadow:3px 3px 0 #121016; margin-bottom:20px; }
 .page-hero .kicker { width:fit-content; padding:6px 10px; background:#121016; margin-bottom:14px; }
 .not-found { padding-top:208px; }
 .not-found h1 { font-size:clamp(44px,13.4vw,70px); }
 .home-poster { padding-top:190px; padding-bottom:40px; }
 .home-poster h1 { font-size:clamp(84px,27vw,130px); line-height:.94; }
 .page-hero .kicker { letter-spacing:.05em; }
 .hero-stamp { top:18px; right:18px; min-width:0; padding:6px 12px 8px; border-width:2px; box-shadow:4px 4px 0 #121016; }
 .hero-stamp b { font-size:36px; }
 .hero-stamp small { font-size:12px; letter-spacing:.04em; }
 .hero-stamp small:first-child,.hero-stamp small:last-child:not(:nth-child(3)) { display:none; }
 .hero-search { box-shadow:4px 4px 0 #121016; }
 .hero-search input { height:58px; font-size:16px; padding:0 10px; }
 .err-code { text-shadow:4px 4px 0 #121016; }
 .hero-jump .wrap { grid-template-columns:repeat(2,minmax(0,1fr)); padding-left:0; padding-right:0; }
 .hero-jump a { flex-direction:row; justify-content:flex-start; align-items:center; min-height:66px; padding:10px var(--gutter); gap:10px; font-size:18px; }
 .hero-jump b { font-size:28px; }
 .band-head .btn { width:100%; }
 .steps { grid-template-columns:minmax(0,1fr); }
 .start-cta { box-shadow:5px 5px 0 var(--p-coral); }
 .start-cta .btn { flex:1 1 100%; }
 .journey-card { padding:20px 18px; }
 .journey-compact { display:flex; gap:12px; margin-inline:calc(var(--gutter)*-1); padding:0 var(--gutter) 14px; overflow-x:auto; scroll-snap-type:x proximity; scroll-padding-inline:var(--gutter); scrollbar-width:thin; scrollbar-color:var(--p-rule) transparent; }
 .journey-compact .journey-card { flex:0 0 min(290px,84vw); scroll-snap-align:start; }
 .band-systems .sys-grid { grid-template-columns:minmax(0,1fr); }
 .db-grid { grid-template-columns:minmax(0,1fr); }
 a.db-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 14px; padding:18px; }
 .db-card b { align-self:start; }
 .db-card .num { grid-column:2; grid-row:1; margin:0; padding:0; text-align:right; font-size:36px; }
 .db-card .num small { margin-top:2px; }
 .db-card span:not(.num):not(.art) { grid-column:1/-1; }
 .band-updates .band-head { display:block; }
 .band-updates .band-head .btn { margin-top:20px; }
 .band-updates .timeline>li { grid-template-columns:1fr; }
 .band-updates .timeline time { grid-row:auto; }
 .footer-steps { grid-template-columns:1fr; }
 .w-foot .footer-steps a { min-height:64px; }
 .foot-map { grid-template-columns:1fr; }
 .footer-columns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
 .footer-columns>.footer-col:last-child { grid-column:1/-1; }
 .footer-columns>.footer-col:last-child ul { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); column-gap:18px; }
}
@media (max-width:400px) {
 .w-bar { gap:6px; }
 .brand { gap:6px; }
 .brand img { width:72px; }
 .to-site { padding:0 8px; font-size:14px; }
 .to-site span { display:none; }
}

/* --- Reading pages: poster head, long-form column, callouts, tables, lists. ----------------------------------- */
html:has(.doc-bar) { scroll-padding-top:calc(var(--header-h) + 76px); }

/* The poster head: the composition of the site, sized to leave the text on the first screen. */
.doc-hero { min-height:clamp(340px,30vw,470px); padding:clamp(20px,2.4vw,36px) 0 clamp(52px,5vw,78px); }
/* --title: the size for the length of the title. --title-em: the widest word in em (from the build); the word must fit the column whole. */
.doc-hero { --title-col:min(640px,calc(47vw - 36px)); --title:clamp(60px,6.4vw,100px); }
.doc-hero[data-title=l] { --title:clamp(46px,4.7vw,72px); }
.doc-hero[data-title=xl] { --title:clamp(36px,3.5vw,54px); }
.doc-hero h1 { font-size:max(20px,min(var(--title),calc(var(--title-col)/var(--title-em,1)))); margin:0 0 20px; }
.doc-hero[data-title=l] h1 { line-height:1; text-shadow:3px 3px 0 #121016; }
.doc-hero[data-title=xl] h1 { line-height:1.04; letter-spacing:-.03em; text-shadow:3px 3px 0 #121016; }
.doc-hero h1 .red { max-width:100%; overflow-wrap:anywhere; }
.doc-hero[data-plate] h1 .red { white-space:nowrap; }
.doc-hero .lead { font-size:clamp(16px,1.25vw,18px); line-height:1.62; margin:0 0 18px; }
.doc-hero nav { margin:0 0 clamp(10px,1.4vw,20px); }
.doc-hero .crumbs { align-items:center; gap:0 8px; padding:0; color:#f6e3c5; font:800 13px/1.4 var(--text); letter-spacing:.1em; text-transform:uppercase; }
.doc-hero .crumbs::before { content:''; flex:none; width:11px; height:11px; margin-right:4px; background:var(--p-lagoon); transform:rotate(-12deg); }
.doc-hero .crumbs a { display:inline-flex; align-items:center; min-height:44px; color:#f6e3c5; }
.doc-hero .crumbs a:hover { color:var(--p-sun); }
.doc-hero .crumbs li + li::before { border-color:var(--p-orange); opacity:1; }
.doc-hero .crumbs span[aria-current] { color:#f6e3c5; }
.doc-hero .crumbs li:last-child:nth-child(n+3) { display:none; }
.doc-hero .meta { gap:6px 20px; margin:0 0 14px; color:#f6e3c5; font:600 14px/1.5 var(--text); }
.doc-hero .meta svg { width:16px; height:16px; color:var(--p-sun); }
.doc-hero .tags { gap:6px; }
.tag { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; background:#121016; color:#f6e3c5; border:2px solid var(--p-rule); font:500 15px/1 var(--head); letter-spacing:.03em; text-transform:uppercase; }
a.tag:hover { background:var(--p-coral); color:#121016; border-color:#121016; }
.page-hero-bg img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 12%; }
.hero-stamp.stamp-count { padding:10px 18px 12px; }
.hero-stamp.stamp-count b { font-size:clamp(44px,4vw,60px); }
.hero-stamp.stamp-count small:last-child:not(:nth-child(3)) { display:block; margin:0; padding:0; border:0; }

/* Two columns of navigation beside the text; below desktop they open from the bar as a sheet. */
.doc-shell { min-width:0; }
.doc-bar { position:sticky; top:var(--header-h); z-index:40; background:var(--p-indigo); border-bottom:3px solid #121016; }
.doc-bar .wrap { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; padding-top:8px; padding-bottom:8px; }
.doc-bar-btn { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:46px; min-width:0; padding:0 12px; background:#121016; color:#f6e3c5; border:2px solid var(--p-rule); font:500 16px/1.1 var(--head); letter-spacing:.03em; text-transform:uppercase; cursor:pointer; }
.doc-bar-btn::after { content:''; flex:none; width:8px; height:8px; border-right:2px solid var(--p-sun); border-bottom:2px solid var(--p-sun); transform:translateY(-2px) rotate(45deg); }
.doc-bar-btn:hover { background:var(--p-coral); color:#121016; border-color:#121016; }
.doc-bar-btn:hover::after { border-color:#121016; }
@supports not selector(:popover-open) { .doc-bar { display:none; } }

.doc { gap:clamp(32px,3.2vw,48px); padding-top:clamp(28px,3.6vw,52px); padding-bottom:clamp(56px,6vw,96px); }
.doc-side,.doc-toc,.path-text .doc-toc { padding-top:0; }
.doc-side[popover],.doc-toc[popover] { position:static; inset:auto; width:auto; height:auto; margin:0; padding:0; border:0; overflow:visible; background:none; color:inherit; }
.doc-side:popover-open,.doc-toc:popover-open { position:fixed; inset:auto 0 0 0; display:block; max-height:min(78dvh,680px); padding:20px var(--gutter) 24px; overflow:auto; background:var(--p-card); color:var(--p-sand); border-top:6px solid var(--p-coral); }
.doc-side::backdrop,.doc-toc::backdrop { background:rgba(18,16,22,.84); }
.doc-side:popover-open .sticky,.doc-toc:popover-open .sticky { position:static; max-height:none; overflow:visible; padding:0; }
.doc-side:popover-open .side-nav a,.doc-toc:popover-open .toc a { min-height:46px; }
.side-h { margin:0 0 10px; color:var(--p-orange); font:800 13px/1.4 var(--text); letter-spacing:.12em; text-transform:uppercase; }
.sticky { scrollbar-color:var(--p-rule) transparent; }
.side-nav { display:grid; gap:2px; margin:0 0 26px; border-left:0; }
.side-nav a { display:flex; align-items:center; min-height:38px; margin:0; padding:7px 10px; border:0; border-left:4px solid transparent; color:var(--p-soft); font:600 15px/1.3 var(--text); }
.side-nav a:hover { background:var(--p-indigo-2); color:var(--p-sand); border-left-color:var(--p-coral); }
.side-nav a[aria-current] { background:var(--p-sun); color:#121016; border-left-color:#121016; font-weight:800; }
.toc { border-left:2px solid var(--p-plum); }
.toc a { display:flex; align-items:center; min-height:34px; padding:6px 0 6px 14px; color:var(--p-muted); font:600 14px/1.3 var(--text); }
.toc .l3 a { padding-left:26px; font-size:14px; font-weight:500; }
.toc a { overflow-wrap:anywhere; }
.toc a:hover,.toc a.on { color:var(--p-sun); }
.toc-mark { left:-2px; width:4px; background:var(--p-coral); box-shadow:none; }

/* Long-form text. */
.prose { font-size:17px; line-height:1.72; }
.prose p,.prose li { color:var(--p-soft); }
.prose h2 { margin:clamp(48px,5vw,68px) 0 16px; padding-top:0; color:var(--p-sand); font:700 clamp(32px,3.5vw,48px)/1.06 var(--head); letter-spacing:-.022em; text-transform:uppercase; }
.prose h2::before { width:56px; height:6px; margin-bottom:16px; background:var(--p-coral); }
.prose h3 { margin:34px 0 10px; color:var(--p-sand); font:600 clamp(23px,2vw,28px)/1.18 var(--head); }
.prose h4 { margin:26px 0 8px; color:var(--p-orange); font:600 20px/1.25 var(--head); letter-spacing:.01em; }
.prose .anchor { color:var(--p-orange); }
@media (hover:none),(max-width:760px) { .prose .anchor { display:none; } }
.prose a { color:var(--p-sun); border-bottom:1px solid var(--p-orange); }
.prose a:hover { color:#fff4e7; border-bottom-color:var(--p-sun); }
.prose a.btn,.prose a.btn:hover { color:#f6e3c5; border:2px solid #aa8db3; }
.prose a.btn:hover { border-color:#f6e3c5; }
.prose a.btn-primary,.prose a.btn-primary:hover { color:#121016; border-color:#121016; }
.prose a.btn-ink,.prose a.btn-ink:hover { border-color:#121016; }
.prose a.btn-ink:hover { color:var(--p-sun); }
.prose code { background:var(--p-indigo-2); color:var(--p-sun); border:1px solid var(--line); font-size:.88em; }
.prose pre { background:#17121f; border:2px solid var(--p-rule); }
/* Any unbroken string a future article brings (URL, code, long word) wraps instead of widening the page. */
.prose p,.prose li,.prose td,.prose dd,.prose blockquote,.prose h2,.prose h3,.prose h4,.prose code { overflow-wrap:anywhere; }
.prose :not(pre) > code { white-space:normal; box-decoration-break:clone; }
.prose blockquote { padding:6px 0 6px 18px; border-left:6px solid var(--p-coral); color:var(--p-soft); font-style:normal; }
.prose hr { height:6px; width:120px; margin:44px 0; background:linear-gradient(90deg,var(--p-pink) 0 25%,var(--p-orange) 25% 50%,var(--p-sun) 50% 75%,var(--p-lagoon) 75%); opacity:1; }
.prose li::marker { color:var(--p-orange); }
.prose a.missing { color:var(--p-muted); border-bottom:1px dashed var(--p-rule); }
.entity-inline { background:rgba(255,210,63,.08); border-bottom:1px solid var(--p-orange); box-decoration-break:clone; }
.entity-inline:hover { background:rgba(255,210,63,.18); }
.prose .entity-inline.entity-static,.prose .entity-inline.entity-static:hover { padding:0; background:none; border:0; color:inherit; }

/* Where is the button: the loudest thing in an article. */
.howto { --p-soft:#17121f; --ivory:#17121f; --stone:#2f2030; --red-text:#121016; --rose:#8a1f4b; --line:rgba(18,16,22,.3); --line-strong:rgba(18,16,22,.55); position:relative; margin:0 8px clamp(30px,3vw,42px) 0; padding:clamp(18px,2vw,26px) clamp(18px,2.4vw,32px) clamp(18px,2vw,26px); background:var(--p-sun); color:#17121f; border:3px solid #121016; border-radius:0; box-shadow:8px 8px 0 var(--p-coral); }
.howto-h { display:inline-flex; align-items:center; gap:10px; margin:0 0 12px; padding:.2em .5em .24em; background:#121016; color:var(--p-sun); font:700 clamp(22px,2vw,28px)/1.1 var(--head); letter-spacing:.01em; text-transform:uppercase; transform:rotate(-1.5deg); box-shadow:3px 3px 0 var(--p-coral); }
.howto-h svg { width:24px; height:24px; color:var(--p-sun); }
.howto p,.howto li { color:#17121f; font-size:clamp(17px,1.35vw,19px); font-weight:600; line-height:1.55; }
.howto p:last-child { margin-bottom:0; }
.howto strong { color:#121016; font-weight:800; }
.howto a { color:#121016; border-bottom:2px solid #121016; font-weight:800; }
.howto a:hover { color:#8a1f4b; border-bottom-color:#8a1f4b; }
.howto li::marker { color:#121016; }
.howto code { background:#121016; color:var(--p-sun); border-color:#121016; }
.howto .entity-inline { background:rgba(18,16,22,.1); border-bottom:2px solid #121016; }
.howto .entity-inline:hover { background:rgba(18,16,22,.2); }
.path { max-width:100%; }
.path b { min-width:0; padding:2px 9px; background:var(--p-indigo-2); border:1px solid var(--line-strong); font-size:.92em; white-space:normal; overflow-wrap:break-word; }
.path b:first-child { border-color:var(--p-coral); }
.path i { color:var(--p-orange); }
.howto .path b,.howto .path b:first-child { background:#121016; color:#f6e3c5; border-color:#121016; }
.howto .path i { color:#121016; }
.howto .path b a,.howto .path b .entity-inline { color:var(--p-sun); background:none; border-bottom:2px solid var(--p-sun); }
.howto .path b a:hover,.howto .path b .entity-inline:hover { color:#fff4e7; background:none; border-bottom-color:#fff4e7; }
.howto-h + * { margin-top:0; }

/* Note, tip, warning: one shape, the label and the bar carry the colour. */
.callout { margin:0 0 1.6em; padding:16px 20px 18px; background:var(--p-indigo-2); border:0; border-left:8px solid var(--p-rule); border-radius:0; }
.callout-h { display:inline-block; margin:0 0 10px; padding:3px 9px 4px; background:var(--p-sand); color:#121016; font:600 16px/1.2 var(--head); letter-spacing:.03em; text-transform:uppercase; }
.callout p,.callout li { font-size:16px; line-height:1.65; }
.callout-note { border-left-color:var(--p-lagoon); }
.callout-note .callout-h { background:var(--p-lagoon); }
.callout-tip { border-left-color:var(--p-sun); }
.callout-tip .callout-h { background:var(--p-sun); color:#121016; }
.callout-warn { background:var(--p-indigo-2); border-left-color:var(--p-coral); }
.callout-warn .callout-h { background:var(--p-coral); color:#121016; }
.stub-box .cta-row { display:flex; flex-wrap:wrap; gap:14px; margin:18px 0 6px; }

/* Numbers as a poster strip. */
.stats { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:2px; margin:0 8px 1.9em 0; padding:0; background:var(--p-rule); border:2px solid var(--p-rule); box-shadow:var(--p-shadow); }
.stat { padding:18px 16px 16px; background:var(--p-card); border:0; }
.stat b { font:700 clamp(40px,3.9vw,58px)/1 var(--head); letter-spacing:-.02em; color:var(--p-sun); overflow-wrap:anywhere; word-break:normal; }
.stat:nth-child(4n+2) b { color:var(--p-coral); }
.stat:nth-child(4n+3) b { color:var(--p-lagoon); }
.stat:nth-child(4n) b { color:#ff9eb5; }
.stat span { margin-top:8px; color:var(--p-soft); font-size:14px; line-height:1.4; }

/* Tables: a poster header row, the frame scrolls and never the page. */
.tbl { margin:0 8px 1.9em 0; background:var(--p-card); border:2px solid var(--p-rule); box-shadow:var(--p-shadow-sm); scrollbar-width:auto; scrollbar-color:var(--p-coral) #121016; }
.tbl table { font-size:15px; line-height:1.55; }
.tbl th,.tbl td { padding:12px 14px; }
.tbl th { background:var(--p-indigo-2); color:var(--p-sun); border-bottom:3px solid var(--p-coral); font:600 16px/1.25 var(--head); letter-spacing:.01em; text-transform:uppercase; }
.tbl td { border-bottom:1px solid var(--line-strong); color:var(--p-soft); }
.tbl tbody tr:nth-child(even) { background:rgba(246,227,197,.045); }
.tbl tbody tr:hover td { background:rgba(246,227,197,.07); }

/* Pictures. */
.fig img { border:2px solid var(--p-rule); box-shadow:var(--p-shadow); }
.fig-window img { border:0; box-shadow:none; }
.fig figcaption { margin-top:12px; color:var(--p-muted); font-size:14px; line-height:1.5; }
.figure-open:hover img { border-color:var(--p-coral); }
.entity-portrait,.class-gallery .class-card { background:var(--p-ink); border:2px solid var(--p-rule); }
.entity-portrait figcaption { padding:9px 12px; border-top:1px solid var(--line); color:var(--p-muted); background:var(--p-card); font-size:13px; line-height:1.5; }
.shot { background:var(--p-card); border:2px dashed var(--p-rule); }
.pathbar,.skill-what { background:var(--p-card); border:2px solid var(--p-rule); }
.pb-track .on a::before { box-shadow:none; }

/* What the article mentions: game icons with names, tooltips stay as they were. */
.article-kit { margin:0 8px clamp(28px,3vw,40px) 0; padding:16px 18px 18px; background:var(--p-card); border:2px solid var(--p-rule); border-radius:0; box-shadow:var(--p-shadow-sm); }
.article-kit-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 16px; margin:0 0 12px; }
.article-kit-head h2 { color:var(--p-sand); font:600 22px/1.2 var(--head); text-transform:uppercase; letter-spacing:.005em; }
.article-kit-head p { margin:0; color:var(--p-muted); font-size:14px; }
.entity-tiles { gap:6px; }
.entity-tile { min-height:56px; padding:6px 10px 6px 6px; background:#121016; border:1px solid var(--line-strong); border-radius:0; }
.entity-tile:hover { background:var(--p-indigo-2); border-color:var(--p-coral); color:var(--p-sand); }
.entity-tile img { width:42px; height:42px; }
.entity-tile small { color:var(--p-orange); font-size:13px; font-weight:700; line-height:1.3; }
.entity-tile b { color:var(--p-sand); font-size:14px; font-weight:700; line-height:1.3; overflow-wrap:break-word; }

/* The end of an article: where to go next. */
.doc-foot { margin-top:clamp(44px,5vw,64px); padding-top:0; border-top:0; }
.doc-foot::before { content:''; display:block; height:8px; margin-bottom:22px; background:linear-gradient(90deg,var(--p-pink) 0 25%,var(--p-orange) 25% 50%,var(--p-sun) 50% 75%,var(--p-lagoon) 75%); }
.updated-note { margin:0; color:var(--p-muted); font-size:14px; line-height:1.55; }
.foot-h { margin:clamp(30px,4vw,44px) 0 16px; color:var(--p-sand); font:700 clamp(30px,3vw,42px)/1.05 var(--head); letter-spacing:-.02em; text-transform:uppercase; }
.related { gap:var(--p-gap); margin-top:0; }
.rel { display:block; padding:16px 18px; }
.rel b { font:600 22px/1.15 var(--head); text-transform:uppercase; letter-spacing:0; }
.rel span { margin-top:6px; color:var(--p-soft); font-size:15px; line-height:1.45; }
.pn { gap:var(--p-gap); margin-top:clamp(22px,3vw,34px); }
.pn a { display:flex; flex-direction:column; justify-content:center; gap:6px; min-height:96px; padding:14px 20px; color:var(--p-sand); font:600 clamp(22px,2vw,28px)/1.12 var(--head); text-transform:uppercase; overflow-wrap:break-word; }
.pn small { color:var(--p-orange); font:800 13px/1.3 var(--text); letter-spacing:.1em; }
a.spot.next { background:var(--p-coral); color:#121016; border-color:#121016; box-shadow:6px 6px 0 var(--p-sand); }
a.spot.next small { color:#121016; }
a.spot.next:hover { background:#ffb18c; color:#121016; border-color:#121016; box-shadow:6px 6px 0 var(--p-sand); }

/* Cards of the section lists. */
a.spot { transition:transform .16s,box-shadow .16s,border-color .16s; }
a.spot:hover { transform:translate(-2px,-2px); box-shadow:8px 8px 0 var(--p-plum); }
.section-intro { padding-top:clamp(32px,4vw,56px); padding-bottom:clamp(20px,2.4vw,34px); }
.intro { color:var(--p-soft); }
.list-band,.gallery-band { padding:clamp(40px,5vw,76px) 0 clamp(56px,6vw,100px); }
.alist { gap:var(--p-gap); padding-bottom:0; }
.aitem { flex-direction:column; gap:0; padding:20px 20px 18px; border-top:6px solid var(--p-coral); }
.list-band .aitem { background:#121016; }
.aitem:nth-child(3n+2) { border-top-color:var(--p-pink); }
.aitem:nth-child(3n) { border-top-color:var(--p-lagoon); }
.aitem > div { display:flex; flex-direction:column; flex:1; min-width:0; }
.aitem h2,.aitem h3 { margin:0 0 8px; color:var(--p-sand); font:600 clamp(24px,2vw,29px)/1.12 var(--head); letter-spacing:0; text-transform:uppercase; overflow-wrap:break-word; }
.aitem:hover h2,.aitem:hover h3 { color:var(--p-sun); }
.aitem p { color:var(--p-soft); font-size:16px; line-height:1.55; }
.aitem .when { margin-top:auto; padding-top:12px; color:var(--p-muted); font-size:13px; letter-spacing:.02em; }
.pill { background:var(--p-sun); color:#121016; border:0; font:600 13px/1 var(--head); padding:4px 7px; vertical-align:middle; }

.class-gallery { grid-template-columns:repeat(auto-fill,minmax(min(100%,178px),1fr)); gap:var(--p-gap); margin:20px 0 0; }
.alist.class-gallery { margin:0; }
.class-gallery .class-card { flex-direction:column; padding:0; border-top:2px solid var(--p-rule); box-shadow:var(--p-shadow-sm); }
.class-gallery .class-card:hover { border-color:var(--p-coral); }
.class-card-art { aspect-ratio:3/4; object-fit:cover; object-position:50% 12%; background:var(--p-indigo-2); }
.class-gallery .class-card > div { justify-content:center; min-height:62px; padding:8px 10px; background:#121016; border-top:4px solid var(--p-coral); }
.class-gallery .class-card:nth-child(3n+2) > div { border-top-color:var(--p-pink); }
.class-gallery .class-card:nth-child(3n) > div { border-top-color:var(--p-lagoon); }
.class-gallery .class-card h2,.class-gallery .class-card h3 { margin:0; font:600 19px/1.12 var(--head); }

/* Systems: bands of night and indigo. */
.sys-band:nth-of-type(odd) { background:var(--p-indigo); }
.sys-band:nth-of-type(odd) .sys { background:#121016; }
.sys-band { padding:clamp(48px,6vw,88px) 0; }
.sys-band .band-head { margin-bottom:clamp(20px,3vw,36px); }
.sys-band .sys-grid { gap:var(--p-gap); }
.sys { padding:20px; border-top:6px solid var(--p-coral); }
.sys:nth-child(3n+2) { border-top-color:var(--p-pink); }
.sys:nth-child(3n) { border-top-color:var(--p-lagoon); }
.sys-sec { color:var(--p-orange); font:800 13px/1.4 var(--text); letter-spacing:.1em; }
.sys b { margin:4px 0 8px; font:600 clamp(24px,2vw,29px)/1.12 var(--head); text-transform:uppercase; overflow-wrap:break-word; }
.sys:hover b { color:var(--p-sun); }
.sys-sum { color:var(--p-soft); font-size:16px; line-height:1.55; }
.sys-band .sys-sum { -webkit-line-clamp:4; }

/* The feed of updates: dates in a rail, every entry a poster line. */
.feed-wrap { padding-top:clamp(24px,3vw,44px); padding-bottom:clamp(56px,6vw,96px); }
.timeline.feed::before,.timeline.feed > li::before,.timeline.feed > li:first-child::before { display:none; }
.timeline.feed > li { display:grid; grid-template-columns:minmax(0,230px) minmax(0,var(--read)); gap:0 clamp(28px,4vw,64px); padding:clamp(26px,3vw,40px) 0; border-top:3px solid var(--p-rule); }
.timeline.feed > li:first-child { border-top:0; }
.feed time { position:sticky; top:calc(var(--header-h) + 20px); grid-row:1 / span 2; align-self:start; width:fit-content; color:var(--p-sun); font:700 clamp(26px,2.3vw,34px)/1.08 var(--head); letter-spacing:-.01em; }
.feed > li:first-child time { padding:.14em .3em .18em; background:var(--p-sun); color:#121016; box-shadow:4px 4px 0 var(--p-coral); transform:rotate(-2deg); }
.feed > li > h3 { margin:0 0 16px; font:700 clamp(30px,3vw,44px)/1.06 var(--head); letter-spacing:-.02em; text-transform:uppercase; }
.feed > li > h3 a { color:var(--p-sand); }
.feed > li > h3 a:hover { color:var(--p-sun); }
.feed .prose p { margin:0 0 1em; font-size:17px; color:var(--p-soft); }
.feed .prose h2 { margin:34px 0 10px; font-size:clamp(25px,2.3vw,32px); letter-spacing:-.01em; }
.feed .prose h2::before { width:40px; height:5px; margin-bottom:12px; }
.feed .prose h3 { margin:26px 0 8px; font:600 clamp(21px,1.8vw,25px)/1.2 var(--head); }
.doc.doc-entry { grid-template-columns:minmax(0,1fr); padding-top:clamp(32px,4vw,56px); }
.doc.doc-entry > article { margin-inline:0; }
.doc-entry .doc-foot::before { display:none; }
.doc article > h2 { margin:clamp(48px,5vw,68px) 0 16px; color:var(--p-sand); font:700 clamp(32px,3.5vw,48px)/1.06 var(--head); letter-spacing:-.022em; text-transform:uppercase; }

/* All articles A-Z. */
.az-jump { background:#121016; border-bottom:2px solid var(--p-plum); }
.az-jump .wrap { display:flex; flex-wrap:wrap; gap:2px; padding-top:8px; padding-bottom:8px; }
.az-jump a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; color:#f6e3c5; font:600 20px/1 var(--head); }
.az-jump a:hover { background:var(--p-coral); color:#121016; }
.az { column-gap:clamp(32px,4vw,64px); padding:clamp(32px,4vw,60px) 0 clamp(56px,6vw,96px); }
.az section { margin-bottom:clamp(24px,2.4vw,36px); }
.az h2 { margin:0 0 4px; padding-bottom:4px; border-bottom:3px solid var(--p-rule); color:var(--p-sun); font:700 clamp(52px,5vw,72px)/1 var(--head); }
.az section:nth-child(3n+2) h2 { color:var(--p-coral); }
.az section:nth-child(3n) h2 { color:var(--p-lagoon); }
.az li { display:flex; flex-wrap:wrap; align-items:center; gap:0 10px; padding:0; border-bottom:1px solid var(--line); }
.az li a { display:flex; align-items:center; min-height:44px; color:var(--p-sand); font-size:16px; font-weight:600; line-height:1.25; overflow-wrap:anywhere; }
.az li a:hover { color:var(--p-sun); }
.az li small { margin-left:auto; color:var(--p-muted); font-size:13px; }

/* The hero's journey: a chain of stages, then the ladder of gear. */
.journey-jump { background:#121016; border-bottom:2px solid var(--p-plum); }
.journey-jump .wrap { display:grid; grid-template-columns:repeat(auto-fit,minmax(116px,1fr)); margin:0 auto; }
.journey-jump a { display:flex; flex-direction:column; justify-content:center; gap:4px; min-height:86px; padding:10px 12px; background:none; color:#f6e3c5; border:0; box-shadow:0 0 0 1px var(--p-plum); font:600 16px/1.1 var(--head); letter-spacing:.01em; text-transform:uppercase; }
.journey-jump b { color:var(--p-coral); font:700 30px/1 var(--head); }
.journey-jump a:nth-child(3n+2) b { color:#ff9eb5; }
.journey-jump a:nth-child(3n) b { color:var(--p-lagoon); }
.journey-jump a:hover { background:var(--p-coral); color:#121016; }
.journey-jump a:hover b { color:#121016; }
.journey-band { padding-top:clamp(32px,4vw,60px); padding-bottom:clamp(56px,6vw,96px); }
.journey-intro { gap:18px 40px; margin:0 8px clamp(32px,4vw,52px) 0; padding:20px 24px; background:var(--p-indigo-2); border:0; border-left:8px solid var(--p-coral); }
.journey-intro p { color:var(--p-soft); font-size:17px; line-height:1.6; }
.journey-intro .btn { flex:none; }
.journey-actions { margin:0 0 16px; padding-left:20px; font-size:16px; line-height:1.55; color:var(--p-soft); }
.journey-actions li::marker { color:var(--p-orange); }
.journey-links { gap:6px; margin-top:16px; }
.journey-links a { display:inline-flex; align-items:center; min-height:44px; padding:6px 12px; background:#121016; color:#f6e3c5; border:2px solid var(--p-rule); font:500 15px/1.15 var(--head); letter-spacing:.02em; text-transform:uppercase; }
.journey-links a:hover { background:var(--p-coral); color:#121016; border-color:#121016; }
.journey-card,.gear-map,.gear-step { scroll-margin-top:0; } /* the offset of the sticky bars is the scroll-padding of the page */
.gear-band { padding:clamp(48px,6vw,92px) 0; }
.gear-map { margin:0; }
.gear-map .block-h { flex-wrap:wrap; align-items:flex-end; gap:16px 40px; margin-bottom:12px; }
.gear-map h2 { margin:0; font:700 var(--p-h2)/1.03 var(--head); letter-spacing:-.03em; text-transform:uppercase; }
.gear-map .block-h a.btn { color:#f6e3c5; font:600 16px/1.2 var(--head); letter-spacing:.02em; white-space:normal; }
.gear-map > p { color:var(--p-soft); font-size:17px; }
.gear-steps { gap:var(--p-gap); margin:clamp(20px,3vw,36px) 0 0; }
.gear-step { display:flex; flex-direction:column; padding:20px; background:#121016; border:2px solid var(--p-rule); border-top:6px solid var(--p-coral); box-shadow:var(--p-shadow); }
.gear-step:nth-child(3n+2) { border-top-color:var(--p-pink); }
.gear-step:nth-child(3n) { border-top-color:var(--p-lagoon); }
.gear-step h3 { margin:0 0 10px; color:var(--p-sand); font:600 clamp(23px,1.9vw,27px)/1.14 var(--head); text-transform:uppercase; letter-spacing:0; }
.gear-step p { color:var(--p-soft); font-size:16px; line-height:1.55; }
.gear-examples { gap:6px; margin:6px 0 14px; }
.gear-example { min-width:0; min-height:56px; padding:6px 8px; background:var(--p-card); border:1px solid var(--line-strong); color:var(--p-sand); font-size:13px; line-height:1.3; }
.gear-example:hover { background:var(--p-indigo-2); border-color:var(--p-coral); color:var(--p-sand); }
.gear-step > a { display:inline-flex; align-items:center; margin-top:auto; min-height:44px; color:var(--p-sun); font-size:15px; font-weight:800; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.path-text { gap:clamp(32px,4vw,64px); padding-top:clamp(36px,5vw,72px); padding-bottom:clamp(56px,6vw,96px); margin-top:0; border-top:0; }

@media (min-width:960px) {
 .journey-full { display:block; }
 .journey-full .journey-card { position:relative; display:grid; grid-template-columns:150px minmax(0,1.3fr) minmax(0,1fr); grid-template-rows:auto auto 1fr auto; grid-template-areas:"top title gear" "top goal gear" "top actions gear" "top links gear"; gap:0 clamp(24px,3vw,44px); margin:0 0 var(--p-gap); padding:26px 26px 24px 24px; border-top:2px solid var(--p-rule); border-left:8px solid var(--p-coral); }
 .journey-full .journey-card:nth-child(3n+2) { border-top-color:var(--p-rule); border-left-color:var(--p-pink); }
 .journey-full .journey-card:nth-child(3n) { border-top-color:var(--p-rule); border-left-color:var(--p-lagoon); }
 .journey-full .journey-card:not(:last-child)::after { content:''; position:absolute; left:66px; top:100%; width:8px; height:calc(var(--p-gap) + 4px); background:var(--p-coral); }
 .journey-full .journey-top { grid-area:top; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:6px; margin:0; }
 .journey-full .journey-top > span:last-child { text-align:left; font-size:15px; line-height:1.3; }
 .journey-full .journey-number { font-size:clamp(72px,7vw,104px); line-height:.9; letter-spacing:-.03em; }
 .journey-full .journey-card h3 { grid-area:title; font-size:clamp(30px,3vw,44px); letter-spacing:-.02em; line-height:1.05; }
 .journey-full .journey-goal { grid-area:goal; font-size:17px; color:var(--p-sand); margin-bottom:12px; }
 .journey-full .journey-actions { grid-area:actions; }
 .journey-full .journey-gear { grid-area:gear; align-self:start; margin:0; padding:14px 16px; background:#121016; border:2px solid var(--p-plum); }
 .journey-full .journey-links { grid-area:links; align-self:end; }
}
@media (min-width:1024px) {
 .doc { grid-template-columns:minmax(0,1fr) 230px; }
 .doc.doc-no-toc { grid-template-columns:minmax(0,1fr); }
 .doc-bar-toc { display:none; }
 .doc-bar .wrap { grid-auto-columns:minmax(0,320px); }
 .path-text { grid-template-columns:minmax(0,var(--read)) 230px; }
}
@media (min-width:1280px) {
 .doc { grid-template-columns:260px minmax(0,1fr) 230px; }
 .doc.doc-no-toc { grid-template-columns:260px minmax(0,1fr); }
 .doc-bar { display:none; }
 html:has(.doc-bar) { scroll-padding-top:calc(var(--header-h) + 20px); }
}
@media (min-width:1100px) { .sys-band .sys-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1100px) {
 .timeline.feed > li { grid-template-columns:minmax(0,1fr); }
 .feed time { position:static; grid-row:auto; margin-bottom:12px; }
}
@media (min-width:761px) {
 .doc-side:popover-open,.doc-toc:popover-open { inset:auto auto 0 0; width:min(460px,100vw); border-right:3px solid #121016; }
}
@media (max-width:760px) {
 html:has(.doc-bar) { scroll-padding-top:calc(var(--header-h) + 72px); }
 .doc-hero { padding:150px 0 30px; }
 .doc-hero .page-hero-bg { height:156px; }
 .doc-hero::after { top:140px; }
 .doc-hero { --title-col:calc(100vw - 2*var(--gutter)); --title:clamp(46px,13.6vw,70px); }
 .doc-hero[data-title=l] { --title:clamp(36px,10.4vw,54px); }
 .doc-hero[data-title=xl] { --title:clamp(29px,8.4vw,44px); }
 .doc-hero[data-title=l] h1,.doc-hero[data-title=xl] h1 { text-shadow:2px 2px 0 #121016; }
 .doc-hero .crumbs { font-size:13px; letter-spacing:.05em; }
 .doc-hero .tags { flex-wrap:nowrap; margin-inline:calc(var(--gutter)*-1); padding-inline:var(--gutter); overflow-x:auto; scrollbar-width:none; }
 .doc-hero .tag { flex:none; }
 .page-hero-bg img { object-position:50% 16%; }
 .hero-stamp.stamp-count { padding:5px 12px 7px; }
 .hero-stamp.stamp-count b { font-size:34px; }
 .hero-stamp.stamp-count small:last-child:not(:nth-child(3)) { display:block; font-size:13px; }
 .prose { font-size:16px; }
 .prose p,.prose li { line-height:1.68; }
 .prose h2 { font-size:clamp(30px,9vw,38px); }
 .howto,.tbl,.stats,.article-kit,.journey-intro { margin-right:5px; }
 .howto { box-shadow:5px 5px 0 var(--p-coral); }
 .stats { grid-template-columns:repeat(2,minmax(0,1fr)); box-shadow:4px 4px 0 var(--p-plum); }
 .stat { padding:14px 12px; }
 .stat b { font-size:clamp(34px,10.4vw,44px); }
 .tbl table { font-size:14px; }
 .tbl th { font-size:15px; }
 .tbl th,.tbl td { padding:10px 11px; }
 .entity-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .entity-tile { min-height:52px; align-items:flex-start; padding:6px; gap:7px; }
 .entity-tile img { width:34px; height:34px; }
 .entity-tile small { font-size:13px; }
 .entity-tile b { font-size:13.5px; overflow-wrap:anywhere; hyphens:auto; }
 .doc-bar-btn { padding:0 10px; font-size:15px; letter-spacing:.02em; }
 .class-gallery .class-card h2,.class-gallery .class-card h3 { font-size:clamp(15px,4.6vw,18px); }
 .class-gallery .class-card > div { min-height:54px; padding:6px 8px; }
 .feed .prose p { font-size:16px; }
 .related,.pn { grid-template-columns:minmax(0,1fr); }
 .pn .next { text-align:left; }
 .alist { grid-template-columns:minmax(0,1fr); }
 .class-gallery,.alist.class-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .sys-band .sys-grid { grid-template-columns:minmax(0,1fr); }
 .sys-band .band-head .btn { width:100%; }
 .az { columns:1; }
 .journey-jump .wrap { display:flex; padding:0; overflow-x:auto; scrollbar-width:none; }
 .journey-jump a { flex:0 0 112px; min-height:72px; }
 .journey-jump b { font-size:26px; }
 .journey-intro { padding:16px 16px 18px; }
 .journey-intro .btn { width:100%; }
 .gear-map .block-h .btn { width:100%; }
 .gear-steps,.journey-full { grid-template-columns:minmax(0,1fr); }
 .doc-side:popover-open,.doc-toc:popover-open { max-height:82dvh; }
}
@media (prefers-reduced-motion:reduce) {
 a.spot,a.spot:hover { transition:none; transform:none; }
}

@media (prefers-reduced-motion:reduce) {
 .btn:hover,.btn:active,.w-foot .footer-steps a:hover { transform:none; }
}
@media (prefers-contrast:more) {
 .spot,.journey-card,.db-card { border-color:var(--p-sand); }
}
@media print {
 html,body { background:#fff; color:#000; }
 .w-header,.w-sections,.w-foot,.to-top,.pal,.hero-search,.hero-jump,.page-hero-bg,.band-art,.hero-stamp,.doc-bar,.journey-jump,.az-jump { display:none !important; }
 .page-hero,.band,.surface-indigo,.surface-paper,.tbl,.callout,.howto,.journey-card { background:none !important; color:#000 !important; box-shadow:none !important; }
 .page-hero::after { display:none; }
 .page-hero h1,.page-hero h1 .red,.band-head h2,.prose p,.prose li,.prose h2,.prose h3 { color:#000 !important; text-shadow:none !important; background:none; box-shadow:none; }
}

/* --- Database: a poster head that leaves the list on the first screen, then dense hard-edged rows. Everything here
   works from the markup alone: no per-item rules, so regenerated data needs no design work. --------------------- */
[hidden] { display:none !important; }
html:not(.js) .filters,html:not(.js) .category-grid,html:not(.js) .strip,html:not(.js) .db-toolbar button { display:none; }

.db-hero { --title:clamp(54px,5.2vw,80px); min-height:clamp(230px,18vw,280px); padding:clamp(6px,.8vw,12px) 0 clamp(36px,3.4vw,50px); }
.db-home,.search-hero { min-height:clamp(270px,22vw,340px); }
.db-hero[data-title=l] { --title:clamp(42px,4.2vw,64px); }
.db-hero[data-title=xl] { --title:clamp(32px,3.2vw,48px); }
.db-hero h1 { margin-bottom:14px; }
.db-hero .lead { margin-bottom:12px; font-size:16px; line-height:1.55; }
.db-hero .meta { margin:0; }
.db-hero .badge { min-width:34px; padding:5px 8px; background:var(--p-sun); color:#121016; border:2px solid #121016; font:600 17px/1 var(--head); text-align:center; }
.db-hero .badge.red { background:var(--p-coral); color:#121016; border-color:#121016; }
.db-kind { font:800 13px/1.4 var(--text); letter-spacing:.1em; text-transform:uppercase; color:#f6e3c5; }
.db-hero .hero-search { margin:6px 8px 0 0; }
.db-entry > .gi-lg { position:absolute; z-index:1; top:clamp(26px,2.6vw,40px); right:clamp(40px,5.4vw,92px); width:128px; height:128px; background:#121016; border:4px solid #f6e3c5; box-shadow:8px 8px 0 #121016; font:700 64px/1 var(--head); color:var(--p-sun); }
.db-entry > .gi-lg img { width:100%; height:100%; image-rendering:pixelated; }

/* Game icons: 64 px art shown at 64 or 32, so it stays sharp. A missing icon leaves the first letter on a dark tile. */
.gi { background:#121016; color:var(--p-sun); font-family:var(--head); font-weight:700; }
.gi img { image-rendering:auto; }
@media (min-width:761px) { .db-row .gi img[src*="/icons/items/"],.db-row .gi img[src*="/icons/skills/"] { image-rendering:pixelated; } }
@media (min-resolution:1.9dppx) { .db-row .gi img,.sres .gi img { image-rendering:pixelated; } }

/* The five parts of the base. */
.db-types-band { padding:clamp(28px,3.4vw,52px) 0 clamp(52px,6vw,92px); }
.db-types { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,232px),1fr)); gap:var(--p-gap); }
.db-type { display:flex; flex-direction:column; min-width:0; background:#121016; color:var(--p-sand); border:2px solid var(--p-rule); border-top:6px solid var(--p-coral); box-shadow:var(--p-shadow); transition:transform .16s,box-shadow .16s,border-color .16s; }
.db-type:nth-child(5n+2) { border-top-color:var(--p-pink); }
.db-type:nth-child(5n+3) { border-top-color:var(--p-lagoon); }
.db-type:nth-child(5n+4) { border-top-color:var(--p-sun); }
.db-type:nth-child(5n) { border-top-color:var(--p-orange); }
.db-type:hover { color:var(--p-sand); border-color:var(--p-coral); transform:translate(-2px,-2px); box-shadow:8px 8px 0 var(--p-plum); }
.db-type-art { display:block; aspect-ratio:16/10; background:var(--p-orange) var(--art) var(--art-pos)/cover no-repeat; clip-path:polygon(0 0,100% 0,100% 86%,0 100%); }
.db-type-body { flex:1; min-width:0; padding:8px 18px 20px; }
.db-type-n { margin:0 0 6px; color:var(--p-muted); }
.db-type-n b { color:var(--p-sun); font:700 clamp(46px,4.2vw,62px)/1 var(--head); letter-spacing:-.02em; }
.db-type:nth-child(5n+2) .db-type-n b { color:#ff9eb5; }
.db-type:nth-child(5n+3) .db-type-n b { color:var(--p-lagoon); }
.db-type:nth-child(5n) .db-type-n b { color:var(--p-coral); }
.db-type-n small { font:800 13px/1.3 var(--text); letter-spacing:.08em; text-transform:uppercase; }
.db-type h2 { margin:0 0 8px; font:600 clamp(30px,2.6vw,38px)/1.05 var(--head); letter-spacing:-.01em; text-transform:uppercase; color:var(--p-sand); overflow-wrap:anywhere; }
.db-type:hover h2 { color:var(--p-sun); }
.db-type-sum { margin:0; color:var(--p-soft); font-size:16px; line-height:1.5; }

/* A list of the base: search and filters first, ready presets next, then the rows. */
.db-band { padding-top:clamp(18px,2vw,30px); padding-bottom:clamp(48px,5vw,80px); }
.filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin:0 8px 0 0; padding:16px; background:var(--p-card); border:2px solid var(--p-rule); box-shadow:var(--p-shadow-sm); }
.filters > label { flex:1 1 180px; min-width:0; gap:6px; color:var(--p-orange); font:800 13px/1.3 var(--text); letter-spacing:.08em; }
.filters > .full { flex:2 1 300px; }
.filters input,.filters select,.advanced-filters select { width:100%; height:52px; min-height:52px; margin:0; padding:0 12px; background-color:#17121f; color:var(--p-sand); border:2px solid #aa8db3; font:600 16px/1.2 var(--text); letter-spacing:0; text-transform:none; }
.filters input[type=search] { background:var(--p-sand); color:#17121f; border-color:#121016; }
.filters input[type=search]::placeholder { color:#55435c; }
.filters input::-webkit-search-cancel-button { -webkit-appearance:none; display:none; }
.filters select,.advanced-filters select { -webkit-appearance:none; appearance:none; padding-right:36px; text-overflow:ellipsis; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffd23f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:12px 8px; }
.filters select option { background:#17121f; color:var(--p-sand); }
.filters select:has(option:checked:not([value=""])) { border-color:var(--p-sun); box-shadow:inset 0 0 0 1px var(--p-sun); }
.filters input:focus,.filters select:focus,.advanced-filters select:focus { outline:3px solid var(--p-sun); outline-offset:1px; border-color:var(--p-sun); }
.filters input[type=search]:focus { border-color:#121016; }
.filters .pair { gap:6px; }
.filters .pair input { min-width:0; }
.filters .advanced-filters { flex:0 0 auto; margin:0; padding:0; border:0; background:none; }
.filters .advanced-filters[open] { flex:1 1 100%; padding-top:2px; border-top:2px solid var(--p-plum); }
.advanced-filters summary { display:flex; align-items:center; gap:10px; min-height:52px; padding:0 6px; color:var(--p-sand); font:500 17px/1.1 var(--head); letter-spacing:.03em; text-transform:uppercase; list-style:none; }
.advanced-filters summary::-webkit-details-marker { display:none; }
.advanced-filters summary::before { content:''; flex:none; width:8px; height:8px; border-right:2px solid var(--p-sun); border-bottom:2px solid var(--p-sun); transform:rotate(-45deg); }
.advanced-filters[open] summary::before { transform:translateY(-2px) rotate(45deg); }
.advanced-filters summary:hover { color:var(--p-sun); }
.advanced-filters > div { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:12px; margin:10px 0 2px; }
.advanced-filters label { display:flex; flex-direction:column; gap:6px; min-width:0; color:var(--p-orange); font:800 13px/1.3 var(--text); letter-spacing:.08em; text-transform:uppercase; }

.db-rule { margin:14px 0 12px; color:var(--p-soft); font-size:16px; line-height:1.55; max-width:900px; }
.category-card,.strip-row a { transition:background .16s,border-color .16s,color .16s; }
.category-card { padding:12px 12px 12px; background:var(--p-card); border:2px solid var(--p-rule); color:var(--p-sand); }
.category-card:hover { background:var(--p-card-2); border-color:var(--p-coral); color:var(--p-sand); }
.category-icons { min-height:32px; gap:4px; }
.category-icons .gi { width:32px; height:32px; font-size:16px; }
.category-icons .gi img { width:32px; height:32px; }
.category-icons small { color:var(--p-sun); font:700 26px/1 var(--head); }
.category-card > b { margin:10px 0 4px; font:600 22px/1.08 var(--head); letter-spacing:.005em; text-transform:uppercase; overflow-wrap:anywhere; }
.category-card > span:last-child { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; color:var(--p-soft); font-size:14px; line-height:1.4; }
.category-card[aria-current="true"],.category-card[aria-current="true"]:hover { background:var(--p-sun); color:#121016; border-color:#121016; box-shadow:4px 4px 0 var(--p-coral); }
.category-card[aria-current="true"] small,.category-card[aria-current="true"] > span:last-child { color:#121016; }

.strip { margin:14px 0; }
.strip-h { margin-bottom:6px; color:var(--p-orange); font:800 13px/1.4 var(--text); letter-spacing:.1em; }
.strip-row { gap:6px; }
.strip-row a { justify-content:center; min-width:0; min-height:56px; padding:6px 12px; background:#121016; color:var(--p-sand); border:2px solid var(--p-rule); }
.strip-row a:hover { background:var(--p-indigo-2); border-color:var(--p-coral); color:var(--p-sand); }
.strip-row b { font:600 19px/1.1 var(--head); letter-spacing:.01em; text-transform:uppercase; }
.strip-row small { color:var(--p-muted); font-size:13px; line-height:1.2; }
.strip-row a.active,.strip-row a[aria-current],.strip-row a.active:hover { background:var(--p-sun); color:#121016; border-color:#121016; }
.strip-row a.active small { color:#121016; }

.db-toolbar { justify-content:space-between; gap:10px 16px; margin:20px 8px 12px 0; }
.db-count { margin:0; color:var(--p-sun); font:600 clamp(22px,2vw,28px)/1.15 var(--head); letter-spacing:.01em; text-transform:uppercase; }
.db-toolbar .btn { min-height:44px; padding:8px 14px; font-size:15px; box-shadow:3px 3px 0 var(--p-plum); }
.db-toolbar .btn:disabled { display:none; }

.db-list { gap:6px; }
.db-row a { gap:12px; min-height:82px; padding:7px 12px 7px 7px; transition:background .12s,border-color .12s; }
.db-row .gi { width:64px; height:64px; font-size:32px; }
.db-row .gi img { width:64px; height:64px; }
.db-row .nm { display:block; }
.db-row b { color:var(--p-sand); font:700 16px/1.28 var(--text); white-space:normal; overflow-wrap:anywhere; }
.db-row small { margin-top:3px; color:var(--p-muted); font-size:13px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
.db-row a:hover b { color:var(--p-sun); }
.badge { min-width:34px; padding:5px 7px; background:#121016; color:var(--p-sand); border:2px solid var(--p-rule); font:600 16px/1 var(--head); letter-spacing:.02em; text-align:center; }
.badge.red { background:var(--p-coral); color:#121016; border-color:#121016; }
.empty { padding:32px 16px; background:var(--p-card); color:var(--p-soft); border:2px dashed var(--p-rule); font-size:17px; }
.db-list > .empty { grid-column:1/-1; }

.more { margin:24px 0 0; }
.pager { gap:6px; margin:28px 0 0; }
.pager a,.pager span { min-width:48px; height:48px; padding:0 12px; background:#121016; color:var(--p-sand); border:2px solid var(--p-rule); font:600 20px/1 var(--head); }
.pager a:hover { background:var(--p-indigo-2); color:var(--p-sand); border-color:var(--p-coral); }
.pager span[aria-current] { background:var(--p-sun); color:#121016; border-color:#121016; box-shadow:3px 3px 0 var(--p-coral); }
.pager .gap { min-width:24px; padding:0; background:none; border:0; color:var(--p-muted); }
.pager a[rel] { padding:0 18px; font-size:18px; letter-spacing:.02em; text-transform:uppercase; }
.pager a[rel=next],.pager a[rel=next]:hover { background:var(--p-coral); color:#121016; border-color:#121016; box-shadow:3px 3px 0 var(--p-sand); }
.pager a[rel=next]:hover { background:#ffb18c; }

/* One entry: the sheet of numbers first, then where it comes from and what it is for. */
.entity { gap:clamp(24px,3vw,44px); padding-bottom:0; }
.entity > .prose { max-width:none; min-width:0; }
.entity > aside { min-width:0; }
.entity .lead-p { margin:0 0 18px; color:var(--p-sand); font-size:clamp(17px,1.4vw,19px); font-weight:600; line-height:1.55; }
.kv { grid-template-columns:fit-content(60%) minmax(0,1fr); margin:0 8px 1.4em 0; background:var(--p-card); border:2px solid var(--p-rule); box-shadow:var(--p-shadow-sm); overflow:visible; }
.kv dt,.kv dd { display:flex; align-items:center; min-height:48px; padding:8px 14px; border-bottom:1px solid var(--line-strong); }
.kv dt { min-width:0; overflow-wrap:anywhere; background:var(--p-indigo-2); color:var(--p-orange); font:800 13px/1.3 var(--text); letter-spacing:.06em; }
.kv dd { color:var(--p-sand); font:700 16px/1.35 var(--text); display:block; padding-top:13px; padding-bottom:12px; }
.kv dd a { color:var(--p-sun); border-bottom:1px solid var(--p-orange); }
.entity .prose h2 { margin:clamp(28px,3vw,42px) 0 12px; font-size:clamp(28px,2.7vw,40px); }
.entity .prose h2::before { width:44px; height:5px; margin-bottom:12px; }
.entity .prose h3 { margin:22px 0 8px; color:var(--p-orange); font-size:clamp(21px,1.8vw,25px); }
.entity .muted { color:var(--p-muted); }
.entity > aside .side-h { margin:0 0 10px; }
.entity > aside > p:last-child { margin:0; }
.db-back { display:inline-flex; align-items:center; min-height:48px; padding:0 16px; background:#121016; color:var(--p-sand); border:2px solid var(--p-rule); font:500 17px/1 var(--head); letter-spacing:.03em; text-transform:uppercase; }
.db-back:hover { background:var(--p-coral); color:#121016; border-color:#121016; }
.entity-portrait { margin:0 8px 22px 0; }

/* Chips: a game icon and a name, a link wherever the entry exists. */
.chips { gap:6px; }
.chips a,.chips > span:not(.gi),.ch { min-height:44px; max-width:100%; padding:4px 10px 4px 4px; background:#121016; color:var(--p-sand); border:1px solid var(--line-strong); font:600 15px/1.25 var(--text); }
.chips .gi,.ch .gi { flex:none; width:32px; height:32px; font-size:16px; }
.chips a:hover,a.ch:hover { background:var(--p-indigo-2); color:var(--p-sand); border-color:var(--p-coral); }
.ch small,.chips small { color:var(--p-sun); font:800 13px/1 var(--text); }
.ch > span:not(.gi) { min-width:0; overflow-wrap:anywhere; }
.tbl td .ch,.tbl td .chips a { padding:2px 8px 2px 2px; background:none; border-color:transparent; }
.tbl td a.ch:hover,.tbl td .chips a:hover { background:var(--p-indigo-2); border-color:var(--p-coral); }
.tbl td .chips { gap:2px 6px; }
.tbl td.num { font-weight:700; color:var(--p-sand); white-space:nowrap; }
.tbl tbody tr:hover td { background:rgba(246,227,197,.07); }

/* Where the entry sits on the path of the hero: one tile per stage. */
.pathbar { margin:clamp(24px,3vw,36px) 8px 0 0; padding:14px 16px 16px; background:var(--p-card); border:2px solid var(--p-rule); box-shadow:var(--p-shadow-sm); }
.prose > .pathbar:last-child { margin:clamp(24px,3vw,36px) 8px 0 0; }
.pb-h { align-items:center; gap:4px 14px; margin-bottom:12px; }
.pb-k { color:var(--p-orange); font:800 13px/1.4 var(--text); letter-spacing:.1em; }
.prose .pb-h a { display:inline-flex; align-items:center; min-height:44px; color:var(--p-sand); border:0; font:600 clamp(21px,1.9vw,26px)/1.12 var(--head); text-transform:uppercase; }
.prose .pb-h a:hover { color:var(--p-sun); }
.pb-lv { color:var(--p-soft); font-size:14px; }
.pb-track { grid-template-columns:repeat(auto-fit,minmax(44px,1fr)); gap:4px; row-gap:4px; }
.prose .pb-track a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; height:100%; min-height:48px; padding:4px; background:#121016; color:var(--p-soft); border:2px solid var(--p-plum); text-align:center; }
.pb-track a::before { display:none; }
.prose .pb-track a:hover { background:var(--p-indigo-2); border-color:var(--p-coral); color:var(--p-sand); }
.pb-track span { font:700 20px/1 var(--head); }
.prose .pb-track .done a { background:var(--p-indigo-2); color:var(--p-sand); }
.prose .pb-track .on a { background:var(--p-sun); color:#121016; border-color:#121016; box-shadow:3px 3px 0 var(--p-coral); }
.pb-track small { font-size:13px; line-height:1.2; }
.pb-chips .pill { display:inline-flex; align-items:center; min-height:32px; padding:4px 9px; font-size:15px; background:var(--p-indigo-2); color:var(--p-sand); }
.prose .pb-chips a.pill { min-height:44px; background:var(--p-sun); color:#121016; border:0; }
.prose .pb-chips a.pill:hover { background:var(--p-coral); color:#121016; }

/* Skills: what it does, then the levels. */
.skill-what { margin:0 8px 1.6em 0; padding:16px 18px 6px; background:var(--p-card); border:2px solid var(--p-rule); box-shadow:var(--p-shadow-sm); }
.prose .skill-what h2 { margin-top:0; }
.prose .skill-fx li { padding:8px 12px; background:var(--p-indigo-2); border-left:6px solid var(--p-coral); border-radius:0; color:var(--p-sand); font-size:16px; line-height:1.5; }
.skill-lv > summary { display:flex; align-items:center; min-height:44px; margin:clamp(24px,3vw,36px) 0 12px; font:700 clamp(28px,2.7vw,40px)/1.06 var(--head); letter-spacing:-.022em; text-transform:uppercase; color:var(--p-sand); }
.skill-lv > summary::after { content:''; flex:none; width:11px; height:11px; margin-left:14px; border-right:3px solid var(--p-sun); border-bottom:3px solid var(--p-sun); transform:translateY(-3px) rotate(45deg); }
.skill-lv:not([open]) > summary::after { content:''; transform:rotate(-45deg); }

/* A pinned or hovered description. */
.entity-popover { padding:16px 18px 12px; line-height:1.5; }
.entity-popover-close { top:4px; right:4px; width:44px; height:44px; color:var(--p-sand); font-size:26px; }
.entity-popover-close:hover { background:var(--p-coral); color:#121016; }
.entity-popover-head { margin:0 40px 12px 0; }
.entity-popover-head img { width:64px; height:64px; border:2px solid #121016; }
.entity-popover-head small { margin-bottom:3px; color:var(--p-orange); font:800 13px/1.3 var(--text); letter-spacing:.06em; }
.entity-popover p { margin-bottom:12px; color:var(--p-soft); font-size:15px; }
.entity-popover-facts { gap:6px 12px; margin:0 0 8px; padding-top:10px; border-top:2px solid var(--p-rule); font-size:14px; }
.entity-popover-facts dt { color:var(--p-muted); }
.entity-popover-facts dd { color:var(--p-sand); font-weight:700; }
.entity-popover-link { display:inline-flex; align-items:center; min-height:44px; padding:0; color:var(--p-sun); font-size:15px; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.entity-popover-link:hover { color:#fff4e7; }

/* Search results and the palette. */
.search-out { padding-top:clamp(20px,2.4vw,36px); padding-bottom:clamp(56px,6vw,96px); min-height:170px; }
.search-out > .muted { margin:0; color:var(--p-soft); font-size:17px; }
.search-out .pal-note { max-width:none; margin:0 0 12px; font-size:15px; }
.sres-g { margin:clamp(26px,3vw,42px) 0 12px; color:var(--p-sand); font:700 clamp(28px,2.8vw,40px)/1.05 var(--head); letter-spacing:-.02em; }
.search-out > .sres-g:first-child,.search-out > .pal-note + .sres-g { margin-top:0; }
.sres { max-width:none; grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr)); gap:6px; }
.sres a { gap:12px; min-height:72px; height:100%; padding:7px 12px 7px 7px; }
.sres .tx { min-width:0; }
.sres b { color:var(--p-sand); font:700 17px/1.28 var(--text); overflow-wrap:anywhere; }
.sres small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:3px; color:var(--p-muted); font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.sres .gi-doc svg { width:26px; height:26px; }
.sres .gi { flex:none; width:56px; height:56px; font-size:28px; }
.sres a mark,.pal-res a mark { background:none; color:var(--p-sun); }
.pal-res .gi { width:40px; height:40px; font-size:20px; }

@media (min-width:761px) {
 .category-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,164px),1fr)); gap:8px; margin:0 8px 0 0; }
 .strip { display:flex; align-items:center; gap:14px; }
 .strip-h { flex:none; margin:0; max-width:150px; }
 .strip-row { flex-wrap:wrap; overflow:visible; padding:0; }
 .category-grid + .strip { margin-top:14px; }
 .db-list { padding-right:0; }
}
@media (min-width:1000px) {
 .kv { grid-template-columns:fit-content(30%) minmax(0,1fr) fit-content(30%) minmax(0,1fr); }
 .entity > aside .chips { flex-direction:column; align-items:stretch; }
}
@media (max-width:1100px) {
 .db-entry > .gi-lg { width:96px; height:96px; }
 .category-card > span:last-child { display:none; }
}
@media (max-width:760px) {
 .db-hero { --title-col:calc(100vw - 2*var(--gutter)); --title:clamp(44px,13vw,64px); min-height:0; padding:106px 0 22px; }
 .db-hero[data-title=l] { --title:clamp(34px,10vw,50px); }
 .db-hero[data-title=xl] { --title:clamp(27px,7.8vw,40px); }
 .db-hero .page-hero-bg { height:98px; }
 .db-hero::after { top:88px; }
 .db-hero nav { margin:0; }
 .db-hero h1 { margin-bottom:12px; }
 .db-entry-art { padding-top:166px; }
 .db-entry-art .page-hero-bg { height:158px; }
 .db-entry-art::after { top:148px; }
 .db-hero .hero-search { margin:4px 5px 0 0; }
 .db-entry > .gi-lg { top:10px; right:14px; width:80px; height:80px; border-width:3px; box-shadow:5px 5px 0 #121016; font-size:40px; }
 .db-types { gap:12px; }
 .db-type { display:grid; grid-template-columns:96px minmax(0,1fr); }
 .db-type-art { aspect-ratio:auto; min-height:100%; background-image:var(--art-sm,var(--art)); clip-path:polygon(0 0,100% 0,82% 100%,0 100%); }
 .db-type-body { padding:12px 14px 14px 8px; }
 .db-type-n b { font-size:38px; }
 .db-type h2 { font-size:30px; }

 .filters { gap:10px; margin-right:5px; padding:12px; }
 .filters > label { flex:1 1 calc(50% - 5px); }
 .filters > .full { flex-basis:100%; }
 .advanced-filters > div { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .db-rule { margin:14px 0 12px; }
 .db-list-head .lead { display:none; }
 .filters .advanced-filters,.filters .advanced-filters[open] { flex:1 1 100%; border-top:2px solid var(--p-plum); }
 .advanced-filters summary { min-height:44px; padding:0; }
 .category-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(150px,max-content); gap:6px; margin:0 calc(var(--gutter)*-1); padding:0 var(--gutter) 8px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--p-rule) transparent; }
 .category-card { justify-content:space-between; padding:10px; }
 .category-card > span:last-child { display:none; }
 .category-card > b { margin:8px 0 0; font-size:20px; }
 .strip { margin:10px calc(var(--gutter)*-1); }
 .strip-h { padding:0 var(--gutter); }
 .strip-row { padding:0 var(--gutter) 4px; scroll-padding-inline:var(--gutter); }
 .db-toolbar { margin-right:0; }
 .db-row a { min-height:66px; padding:6px 10px 6px 6px; gap:10px; }
 .db-row .gi { width:52px; height:52px; font-size:26px; }
 .db-row .gi img { width:52px; height:52px; }
 .pager a[rel] { order:-1; flex:1 1 calc(50% - 3px); }

 .kv { grid-template-columns:fit-content(50%) minmax(0,1fr); margin-right:5px; }
 .kv dt,.kv dd { padding-left:10px; padding-right:10px; }
 .entity { display:flex; flex-direction:column; }
 .entity > .prose,.entity > aside { width:100%; }
 .db-back { width:100%; justify-content:center; }

 .tbl-cards { margin-right:0; overflow:visible; background:none; border:0; box-shadow:none; }
 .tbl-cards table { display:block; width:100%; min-width:0; }
 .tbl-cards thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .tbl-cards tbody { display:grid; gap:6px; }
 .tbl-cards tr { display:grid; grid-template-columns:repeat(auto-fit,minmax(84px,1fr)); gap:6px 10px; padding:8px 10px; background:var(--p-card); border:2px solid var(--p-rule); }
 .tbl-cards tbody tr:nth-child(even) { background:var(--p-card); }
 .tbl-cards tbody tr:hover td { background:none; }
 .tbl-cards td,.tbl-cards td:first-child { display:block; min-width:0; padding:0; border:0; text-align:left; color:var(--p-sand); font-size:15px; font-weight:700; white-space:normal; }
 .tbl-cards td:first-child { grid-column:1/-1; font-size:16px; }
 .tbl-cards td.num { text-align:left; }
 .tbl-cards td:not(:first-child):has(.chips) { grid-column:1/-1; }
 .tbl-cards td:not(:first-child)::before { content:attr(data-th); display:block; margin-bottom:1px; color:var(--p-orange); font:800 13px/1.3 var(--text); letter-spacing:.05em; text-transform:uppercase; }
 .tbl-cards td .ch,.tbl-cards td .chips a { padding-left:0; }

 .sres { grid-template-columns:minmax(0,1fr); }
 .sres a { min-height:64px; padding:6px 10px 6px 6px; }
 .sres .gi { width:48px; height:48px; font-size:24px; }
 .entity-popover-head img { width:48px; height:48px; }
}
@media (prefers-reduced-motion:reduce) {
 .db-type,.db-type:hover,.category-card,.strip-row a,.db-row a { transition:none; transform:none; }
}
@media print {
 .filters,.category-grid,.strip,.db-toolbar,.pager,.more,.db-entry > .gi-lg { display:none !important; }
 .db-type,.db-row a,.kv { background:none !important; box-shadow:none !important; color:#000 !important; }
}

/* The fixed "to top" button must never cover the last line of the footer on phones. */
@media(max-width:900px) { .w-foot { padding-bottom:84px; } }
/* Item names and their 32px icons need room; the existing table region scrolls on phones. */
@media(max-width:600px) { .tbl:not(.tbl-cards):has(.ch) table { min-width:560px; } }
.entity-popover small { font-size:12px; }
