/* Reference corrections: scene photography, a scrolling forum header and natural footer spacing. */
:is(.home-page,.wiki-page,.forum-page) svg.voxel-icon { stroke: none; fill: currentColor; }
.game-icon > svg.voxel-icon { width: 76%; height: 76%; color: #c0a2e0; padding: 0; }
.game-icon.skill-icon { border-radius: 4px; background: #21162e; border: 0; }
.game-icon.skill-icon > img { width: 100%; height: 100%; padding: 0; object-fit: contain; image-rendering: pixelated; }
.member-avatar > svg.voxel-icon { width: 76%; height: 76%; margin: 12%; color: #c7a4e4; }
.forum-category-icon > svg.voxel-icon,.featured-category-icon > svg.voxel-icon { color: #eddbff; width: 26px; height: 26px; }
.wiki-piece-stat { display: inline-flex; flex-direction: column; gap: 4px; font-size: 13px; margin: 5px 15px 5px 0; color: #d3b7e8; }
.wiki-piece-stat small { color: #9475aa; font-size: 11px; }
.wiki-set-threshold { display: inline-grid; place-items: center; width: 31px; height: 31px; background: #6e4291; border-radius: 5px; color: #f5e5ff; margin-right: 10px; font-size: 16px; }
.wiki-set-bonus-table td > strong { color: #c5a1e2; font-size: 14px; font-weight: 500; }
.wiki-set-bonus-table dl { display: flex; gap: 18px; flex-wrap: wrap; margin: 15px 0 0; }
.wiki-set-bonus-table dl > div { display: grid; gap: 6px; font-size: 12px; color: #c7acd9; }
.wiki-set-bonus-table dt { color: #9272a8; font-size: 10px; }.wiki-set-bonus-table dd { margin: 0; }
body.forum-page { background: #101012; }
body.forum-page::before { position: absolute; inset: 0 0 auto; height: 1100px; background: linear-gradient(180deg,#141018b3 0,#141217c7 34%,#101012f0 78%,#101012 100%),url('../game/scenes/forum-city.webp') center top/cover no-repeat; opacity: .8; }
.forum-page .site-header.main-menu { position: relative; top: auto; left: auto; background: #111013b8; border-bottom: 1px solid #ffffff05; }
.forum-page .main-menu-inner { max-width: 1200px; }
.forum-page .forum-wrap { margin: 0 auto; padding-top: 18px; padding-bottom: 0; min-height: calc(100svh - 325px); }
.forum-page .forum-hero { height: 190px; min-height: 190px; background: linear-gradient(90deg,#111018e6 0,#18101d9c 48%,#2c163b20 100%),url('../game/scenes/forum-city.webp') center 48%/cover; border: 1px solid #ffffff0a; }
.forum-page .forum-hero h1 { max-width: 590px; font-size: 24px; line-height: 1.5; }
.forum-page .online-strip { background: #1b1a1ddd; border: 1px solid #ffffff0d; margin-top: 10px; padding: 20px 23px; }
.forum-page .forum-search { background: #1b1a1ddd; border-color: #ffffff0d; }
.forum-page :is(.discussion-row,.topic-post,.forum-category-row) { background-color: #1b1a1e; }
.forum-page .discussion-row:hover { background: #242127; }
.forum-page .featured-category { min-height: 82px; padding: 17px 26px; }
.forum-page .featured-category h2 { font-size: 20px; }
.forum-page .forum-category-list { gap: 14px; }
.forum-page .forum-category-row { min-height: 92px; }
.forum-page .discussion-row { min-height: 94px; padding: 14px 27px; }
.forum-page .topic-post > aside { background: #18171b; }
.forum-page .site-footer { margin-top: 54px; padding-top: 32px; background: #101012; border-top: 0; }
.forum-page .site-footer-main { padding-bottom: 29px; }
.forum-page .site-footer-main > p { color: #817a88; font-size: 12px; }
.forum-page .site-footer-bottom { padding: 19px 0 25px; }
.forum-page .footer-back-top { top: -52px; right: -36px; }
.forum-page :is(.profile-reference-layout,.profile-cover) { background-color: #1b191f; }
.wiki-page .main-brand { margin-right: auto; }
.wiki-page .main-brand img { width: 160px; height: 48px; }
.member-avatar[data-portrait="human.png"] > img,.member-avatar[data-portrait="elf.png"] > img,.member-avatar[data-portrait="dwarf.png"] > img,.member-avatar[data-portrait="orc.png"] > img,.game-icon img[src*="/icons/races/"],.game-icon img[src*="/game/blocks/"] { image-rendering: pixelated; }
.home-page .world-scene { min-height: 1000px; height: 110svh; background: #130e1b; }
.home-page .world-stage { top: 195px; bottom: 115px; }
.home-page .world-stage::after { z-index: 2; background: radial-gradient(ellipse at 50% 50%,transparent 37%,#130e1b20 62%,#130e1bcc 83%,#130e1b 100%); }
.world-edge-clouds { position: absolute; inset: -15px -10px; z-index: 2; pointer-events: none; overflow: hidden; }
.world-edge-clouds::before,.world-edge-clouds::after { content: ''; position: absolute; inset: -10%; opacity: .6; filter: blur(20px); background: radial-gradient(ellipse at 2% 40%,#70617d 0,#55445f 8%,transparent 23%),radial-gradient(ellipse at 7% 58%,#8a7797 0,#41334f 10%,transparent 28%),radial-gradient(ellipse at 95% 33%,#8d7c99 0,#4b3858 8%,transparent 24%),radial-gradient(ellipse at 101% 62%,#756082 0,#3c294a 14%,transparent 30%); }
.world-edge-clouds::after { transform: scaleY(-1); opacity: .38; filter: blur(28px); }
.home-page .world-label { z-index: 3; }
.home-page .world-load { z-index: 4; }
.home-page .world-expanded { min-height: 0; height: 100dvh; }
.home-page .world-expanded .world-stage { top: 165px; bottom: 110px; }
@media(max-width:1100px) { .forum-page .footer-back-top { right: -10px; } }
@media(max-width:760px) { .home-page .world-scene { min-height: 900px; height: 105svh; }.home-page .world-stage { top: 225px; bottom: 165px; }.home-page .world-expanded { min-height: 0; height: 100dvh; }.home-page .world-expanded .world-stage { top: 190px; bottom: 160px; }.world-edge-clouds::before { opacity: .4; }.wiki-page .main-brand img { width: 125px; height: 42px; } }
@media(max-width:650px) { .forum-page .site-footer { margin-top: 42px; }.forum-page .forum-hero { padding: 23px; }.forum-page .forum-hero h1 { font-size: 20px; }.forum-page .discussion-row { padding: 16px; }.forum-page .footer-back-top { right: 0; } }

/* One content measure for the portal, editorial articles and every compendium route. */
.wiki-page { --wiki-content-width: 1440px; --wiki-gutter: clamp(24px,3.2vw,56px); }
.wiki-page .site-header.main-menu.menu-floating { position: relative; inset: auto; }
.wiki-page .wiki-navigation { top: 20px; height: calc(100svh - 20px); }
.wiki-page .wiki-shell { grid-template-columns: 208px minmax(0,1fr); }
.wiki-page .wiki-topic-panel { display: none; }
.wiki-page .wiki-main > :is(.wiki-compendium,.wiki-article-layout,.wiki-catalogue-portal,.wiki-feature-banner,.wiki-content-grid,.wiki-catalogue-saved) {
  width: 100%; max-width: var(--wiki-content-width); margin-inline: auto; padding-inline: var(--wiki-gutter);
}
.wiki-page .wiki-article-layout { padding-top: 38px; padding-bottom: 64px; }
.wiki-page .wiki-article { width: 100%; max-width: none; }
.wiki-page .wiki-hero { padding-inline: max(var(--wiki-gutter),calc((100% - var(--wiki-content-width))/2 + var(--wiki-gutter))); }
.wiki-page .wiki-hero-background {
  opacity: 1;
  background: linear-gradient(90deg,#100d16 0%,#100d161a 24%,#100d161a 76%,#100d16 100%),linear-gradient(0deg,#100d16 0%,#100d1640 100%),url('../images/city.jpg') center 43%/cover;
}
.wiki-page .wiki-top-tabs { flex-wrap: wrap; overflow: visible; gap: 12px 26px; }
.wiki-page .wiki-content-grid { grid-template-columns: minmax(0,1fr) 240px; gap: 40px; }
.wiki-page .wiki-entry { align-items: center; gap: 22px; }
.wiki-page :is(.wiki-entry-orb,.wiki-entry-orb .member-avatar) { width: 76px; height: 76px; border-radius: 12px; }
.wiki-page .wiki-entry-orb { margin-top: 0; }
.wiki-page .wiki-entry-body > p { line-height: 1.8; }
.wiki-feature-heads { display: flex; gap: 10px; flex-shrink: 0; }
.wiki-feature-heads .game-icon { width: 68px; height: 68px; }
.wiki-page .wiki-article-image { width: 100%; margin: 34px 0; }
.wiki-page .wiki-article-image > img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; }
.wiki-page .wiki-article-roster { margin: 38px 0 44px; padding: 30px 0; border-block: 1px solid #b791d723; }
.wiki-page .wiki-entity-heading { align-items: center; }
.wiki-page .wiki-entity-heading .entity-heading-icon { width: 88px; height: 88px; flex-shrink: 0; }
.wiki-page .wiki-entity-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 36px; }
.wiki-page .wiki-location-photo { width: 100%; margin: 0 0 32px; }
.wiki-page .wiki-location-photo > img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.wiki-page .wiki-catalogue-nav a[aria-current] { background: #9b61db22; color: #f1dfff; box-shadow: inset 3px 0 #ba86f5; }
.wiki-page .wiki-catalogue-nav a.wiki-nav-subcategory { margin-left: 14px; padding-left: 12px; }
.wiki-page .wiki-catalogue-tabs { align-items: center; gap: 8px; }
.wiki-page .wiki-catalogue-tabs > a { align-items: center; min-height: 44px; gap: 8px; }

/* Centre both flex and grid tiles. Generic icon tiles have no outline. */
.wiki-page .game-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; border: 0; box-shadow: none; vertical-align: middle; }
.wiki-page .game-icon > :is(svg,img) { flex: 0 0 auto; margin: 0; align-self: center; }
.wiki-page .game-icon > img { object-position: center; }
.wiki-page .wiki-catalogue-tabs .game-icon { width: 24px; height: 24px; flex: 0 0 24px; justify-content: center; align-items: center; }
.wiki-page .wiki-catalogue-nav .game-icon { flex: 0 0 28px; width: 28px; height: 28px; }
.wiki-page .wiki-visual-grid { grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 32px 16px; }
.wiki-page .wiki-visual-entry .game-icon { width: 112px; height: 112px; }
.wiki-page .wiki-visual-entry .game-icon.skill-icon { width: 96px; height: 96px; }
.wiki-page .wiki-visual-entry .game-icon.set-icon { width: 112px; height: 112px; }
.wiki-page .game-icon img[src*='/heads/c_'] { padding: 0; image-rendering: pixelated; }
.wiki-page .wiki-visual-locations { grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); }
.wiki-page .wiki-quick-card > img { filter: none; }

/* Whole-set figures keep their native square art; the final layer supplies the bonus sweep. */
.wiki-page .game-icon.set-icon { overflow: hidden; border-radius: 10px; background: #2b203a; }
.wiki-page .game-icon.set-icon > img { width: 100%; height: 100%; padding: 3px; border-radius: inherit; image-rendering: pixelated; }
.wiki-page .wiki-infobox-art .set-icon { width: 192px; height: 192px; }
.wiki-page .wiki-stat-value { font-variant-numeric: tabular-nums; font-weight: 650; white-space: normal; }
.wiki-page .stat-positive { color: #8bdf85; }
.wiki-page .stat-negative { color: #ff7c87; }
.wiki-page .stat-neutral { color: #ddd0ea; }
.wiki-page .wiki-stat-table tbody th { min-width: 0; width: 58%; }
.wiki-page .wiki-stat-table td { text-align: right; }
.wiki-set-bonus-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.wiki-set-bonus { padding: 20px; background: #20172c; border-radius: 9px; }
.wiki-page .wiki-set-bonus h3 { display: flex; align-items: center; gap: 10px; font: 500 16px/1.5 var(--site-font); margin-bottom: 16px; color: #eddaff; }
.wiki-set-bonus .wiki-set-threshold { margin: 0; flex-shrink: 0; }
.wiki-page .wiki-set-bonus p { font-size: 14px; line-height: 1.7; color: #beaad0; }
.wiki-page :is(.wiki-set-bonus,.wiki-set-piece,.wiki-whole-set-bonus) dl { display: grid; gap: 10px; margin: 16px 0 0; }
.wiki-page :is(.wiki-set-bonus,.wiki-set-piece,.wiki-whole-set-bonus) dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; line-height: 1.5; }
.wiki-page :is(.wiki-set-bonus,.wiki-set-piece,.wiki-whole-set-bonus) dt { color: #ab95be; }
.wiki-page :is(.wiki-set-bonus,.wiki-set-piece,.wiki-whole-set-bonus) dd { margin: 0; text-align: right; }
.wiki-whole-set-bonus { margin-top: 22px; border-radius: 9px; padding: 20px; background: #2e1e41; }
.wiki-whole-set-bonus > div { display: flex; align-items: center; gap: 18px; }
.wiki-whole-set-bonus strong { display: block; color: #e5c9ff; font-size: 16px; }
.wiki-whole-set-bonus small { display: block; margin-top: 6px; color: #ac91c3; font-size: 12px; }
.wiki-set-piece-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.wiki-set-piece { padding: 18px; border-radius: 9px; background: #1d1626; }
.wiki-set-piece header > a { display: flex; align-items: center; gap: 16px; }
.wiki-set-piece header .game-icon { width: 76px; height: 76px; flex-shrink: 0; }
.wiki-set-piece header small { display: block; color: #a387bb; font-size: 12px; margin-bottom: 6px; }
.wiki-set-piece header strong { color: #e9d6f7; font-size: 16px; font-weight: 500; line-height: 1.5; }
.wiki-set-piece dl { padding-top: 16px; border-top: 1px solid #b58acf16; }
.wiki-set-discovery { margin: 0 0 30px; padding: 24px; border-radius: 10px; background: #21172d; }
.wiki-set-discovery > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wiki-page .wiki-set-discovery h2 { margin: 10px 0; font: 24px/1.5 var(--display-font); }
.wiki-page .wiki-set-discovery p { color: #b19ac3; font-size: 14px; line-height: 1.7; }
.wiki-set-discovery > header > a { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #d2a5ff; font-size: 14px; }
.wiki-set-discovery > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 20px; margin-top: 25px; }
.wiki-set-discovery > div > a { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wiki-set-discovery .game-icon { width: 96px; height: 96px; }
.wiki-set-discovery strong { color: #cbb2de; font-size: 13px; font-weight: 500; line-height: 1.6; }
.wiki-cartography figure { margin: 0; }
.wiki-cartography-stage { isolation: isolate; position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(#140c21d9,#140c21ed),var(--expedition-backdrop) center/cover; }
.wiki-cartography-stage > img { display: block; width: 100%; height: auto; object-fit: contain; mix-blend-mode: lighten; }
.wiki-cartography figcaption { margin-top: 12px; font-size: 12px; line-height: 1.7; color: #a489b8; }
@media(max-width:1200px) {
  .wiki-page .wiki-shell { grid-template-columns: 190px minmax(0,1fr); }
  .wiki-feature-heads .game-icon { width: 54px; height: 54px; }
  .wiki-feature-heads .game-icon:last-child { display: none; }
  .wiki-page .wiki-content-grid { grid-template-columns: minmax(0,1fr) 200px; gap: 28px; }
  .wiki-page .wiki-entity-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 24px; }
  .wiki-set-bonus-grid { grid-template-columns: 1fr; }
  .wiki-set-piece-grid { grid-template-columns: 1fr; }
}
@media(max-width:1000px) {
  .wiki-page .wiki-entity-layout { grid-template-columns: 1fr; }
  .wiki-page .wiki-infobox { position: static; order: -1; display: grid; grid-template-columns: 200px minmax(0,1fr); }
  .wiki-page .wiki-infobox-art { grid-row: span 2; padding: 18px; }
  .wiki-page .wiki-infobox-art .game-icon { width: 128px; height: 128px; }
  .wiki-page .wiki-infobox-art h2 { font-size: 20px; }
  .wiki-page .wiki-infobox-table tbody { display: table-row-group; }
  .wiki-page .wiki-infobox nav { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 16px; }
  .wiki-set-discovery > div { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .wiki-set-discovery > header { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media(max-width:700px) {
  .wiki-page { --wiki-gutter: 20px; }
  .wiki-page .wiki-shell { display: block; }
  .wiki-page .wiki-navigation { flex-wrap: wrap; overflow: visible; gap: 6px; top: auto; height: auto; }
  .wiki-page .wiki-navigation > a:not(.wiki-emblem) { white-space: normal; }
  .wiki-page .wiki-content-grid { grid-template-columns: 1fr; }
  .wiki-page .wiki-feature-banner { align-items: flex-start; }
  .wiki-feature-heads { display: none; }
  .wiki-page .wiki-entry { gap: 16px; align-items: flex-start; }
  .wiki-page :is(.wiki-entry-orb,.wiki-entry-orb .member-avatar) { width: 60px; height: 60px; }
  .wiki-page .wiki-quick { grid-template-columns: 1fr; gap: 16px; }
  .wiki-page .wiki-quick-card { min-height: 200px; }
  .wiki-page .wiki-entity-heading .entity-heading-icon { width: 64px; height: 64px; }
  .wiki-page .wiki-infobox { display: block; }
  .wiki-page .wiki-infobox-art .set-icon { width: 192px; height: 192px; }
  .wiki-page .wiki-visual-grid { grid-template-columns: repeat(auto-fill,minmax(116px,1fr)); gap: 26px 12px; }
  .wiki-page .wiki-visual-locations { grid-template-columns: 1fr; }
  .wiki-page .wiki-visual-entry .game-icon.set-icon { width: 96px; height: 96px; }
  .wiki-set-discovery { padding: 20px; }
  .wiki-set-discovery > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wiki-set-discovery .game-icon { width: 96px; height: 96px; }
}


/* Set tiles use the available column width, including inside the Items preview. */
.wiki-page .wiki-visual-grid:has(.set-icon) { grid-template-columns: repeat(auto-fit,minmax(min(100%,132px),1fr)); gap: 28px 20px; }
.wiki-page .wiki-visual-grid:has(.set-icon) .game-icon.set-icon,
.wiki-page .wiki-set-discovery .game-icon.set-icon { width: 100%; height: auto; aspect-ratio: 1; max-width: 160px; }
.wiki-page .wiki-set-discovery { container-type: inline-size; }
.wiki-page .wiki-set-discovery > div { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 24px 16px; }
@container(max-width:900px) { .wiki-page .wiki-set-discovery > div { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@container(max-width:440px) { .wiki-page .wiki-set-discovery > div { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@container(max-width:220px) { .wiki-page .wiki-set-discovery > div { grid-template-columns: 1fr; } }
