/* Transparent home/wiki navigation, with readable pixel labels. */
.ui-direction-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
:is(.home-page,.wiki-page,.forum-page,.legal-page) svg.ui-direction-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
:is(.home-page,.wiki-page,.forum-page,.legal-page) svg.pixel-caret { fill: currentColor; stroke: none; shape-rendering: crispEdges; }
.main-menu .main-navigation > a,.main-menu .main-navigation > details > summary { font: 400 16px/1.5 var(--display-font); gap: 9px; letter-spacing: 0; }
.main-menu .main-navigation { gap: 26px; }
.main-menu .main-account { font-size: 14px; }
.main-menu .menu-dropdown { min-width: 330px; }
.main-menu .menu-dropdown a { font-size: 16px; line-height: 1.5; }
.main-menu .menu-dropdown small { font: 13px/1.6 var(--site-font); }
.main-menu .menu-signin { font-size: 14px; }
.main-menu .menu-status { border-radius: 0; }
.main-menu svg.menu-toggle-glyph { fill: currentColor; stroke: none; shape-rendering: crispEdges; }
.main-menu .ui-direction-icon { stroke-linecap: round; stroke-linejoin: round; }
.main-menu svg.pixel-caret { width: 9px; height: 5px; flex: 0 0 9px; fill: currentColor; stroke: none; shape-rendering: crispEdges; }
.main-menu .menu-explore > summary > svg.pixel-caret:last-child { width: 9px; height: 5px; margin-left: -4px; }
.site-header.main-menu.menu-floating.scrolled { background: #100c17f5; box-shadow: 0 8px 22px #05030933; pointer-events: auto; backdrop-filter: blur(12px); }
.home-page .main-brand.home-scroll-brand { visibility: hidden; opacity: 0; width: 0; overflow: hidden; pointer-events: none; }
.home-page .main-menu.scrolled .main-brand.home-scroll-brand { visibility: visible; opacity: 1; width: 155px; pointer-events: auto; margin-right: auto; }
.wiki-page .site-header.main-menu.menu-floating { position: sticky; top: 0; }
.wiki-page .wiki-navigation { top: 78px; height: calc(100svh - 78px); }
.account-note a { color: #c8a0e9; text-decoration: underline; text-underline-offset: 3px; }
.site-footer-information { max-width: 1200px; width: calc(100% - 110px); margin: 22px auto 0; padding: 22px 0; border-top: 1px solid #b394d01a; }
.site-footer-information nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.site-footer-information a { color: #b49bc6; font: 13px/1.7 var(--site-font); text-decoration: none; }
.site-footer-information a:hover { color: #e5c6ff; }
.site-footer-main nav .footer-media-link { color: #dcc2f0; font-size: 14px; font-weight: 600; }
.home-page .hero-brand { top: 30%; isolation: isolate; }
.home-page .hero-brand::before { content: ''; position: absolute; inset: -24px -70px -28px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse,#030a16b8 0%,#030a1666 44%,transparent 74%); }
.home-page .hero-brand .eyebrow,.home-page .hero-subtitle { color: #faf7ff; font-weight: 600; text-shadow: 0 2px 3px #02040a,0 0 12px #02040a,0 0 22px #02040a; }
.home-page .hero-brand .eyebrow { font-size: 13px; letter-spacing: .18em; }
.home-page .hero-subtitle { font-size: 13px; letter-spacing: .17em; }
.home-page .hero-action>p { color: #fff; font-weight: 600; text-shadow: 0 2px 4px #02040a,0 0 15px #02040a; }
.home-page .hero-bottom .scroll-cue { color: #eee7fa; text-shadow: 0 2px 5px #030611; }
.home-page .hero-brand h1 { width: clamp(340px,24vw,410px); max-width: calc(100vw - 60px); height: auto; }
.home-page .hero-brand h1 img { display: block; width: 100%; height: auto; }
.hero-background > canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.hero-background > canvas[data-ready] { opacity: 1; }
.hero-motion-toggle { position: absolute; z-index: 4; right: 38px; bottom: 75px; border: 0; background: #160f2380; border-radius: 6px; color: #d3bfdc; padding: 10px 14px; cursor: pointer; font: 12px var(--site-font); }
.hero-motion-toggle[hidden] { display: none; }
.home-page .hero-background { animation: none; }

/* The eight scene choices follow the original circular line, including mobile. */
.home-page .gallery { display: block; padding: 0; min-height: 900px; height: max(900px,100svh); }
.home-page .gallery-arc { display: block; position: absolute; border: 1px dashed #c3a4da55; border-radius: 50%; pointer-events: none; z-index: 0; }
.home-page .gallery-picker { display: block; position: absolute; inset: 0; width: auto; margin: 0; transform: none; pointer-events: none; }
.home-page .gallery-choice:nth-child(n) { position: absolute; left: calc(var(--gallery-x,160px) - 29px); top: var(--gallery-y,400px); display: flex; flex-flow: row nowrap; gap: 14px; margin: 0; transform: translateY(-50%); pointer-events: auto; }
.home-page .gallery-choice-label { width: 32px; flex: 0 0 32px; font-size: 11px; display: flex; align-items: center; justify-content: space-between; }
.home-page .gallery-choice-label i { width: 6px; height: 6px; margin: 0; }
.home-page .gallery-choice > img { width: 118px; height: 68px; object-fit: cover; border: 0; border-radius: 5px; box-shadow: none; opacity: .55; }
.home-page .gallery-choice.active > img { opacity: 1; border: 0; box-shadow: none; }
.home-page .gallery-choice-caption { display: inline; max-width: 150px; font: 12px/1.5 var(--site-font); opacity: 0; transition: opacity .2s; }
.home-page .gallery-choice.active .gallery-choice-caption { opacity: 1; }
.home-page .gallery-copy { position: absolute; left: 47%; right: 8%; top: 50%; bottom: auto; max-width: 690px; width: auto; transform: translateY(-50%); }
.home-page .gallery-controls { position: absolute; right: 8%; bottom: 10%; }

/* One crop-free native-map stage per expedition. */
.home-page .island.map-render { position: relative; width: 100%; height: clamp(230px,22vw,340px); margin: 12px auto 25px; }
.home-page .island.map-render img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; transform: none; clip-path: none; }
.home-page .guide-world[data-expedition="dungeons"] .map-render img { transform: translateY(-2%); }
.home-page .guide-world[data-expedition="vortexes"] .map-render img { transform: translateY(-3%); }
.home-page .guide-world[data-expedition="atlantis"] .map-render img { transform: translateY(-4.5%); }
.home-page .guide-world:hover .island.map-render img { filter: drop-shadow(0 20px 20px #050309aa); }
.home-page .island.map-render .island-ring { left: 50%; bottom: 2%; transform: translateX(-50%) rotateX(65deg); }

/* Art stays within each chapter, leaving a quiet, distinct section boundary. */
.home-page .gameplay-builds { background: #171020; }
.gameplay-builds .gameplay-inner { padding-bottom: 95px; gap: 55px 70px; }
.gameplay-build-art { margin: 0; justify-self: end; width: min(100%,440px); }
.gameplay-build-art img { display: block; width: 100%; height: auto; max-height: 580px; object-fit: contain; border-radius: 8px; }
.gameplay-build-art figcaption,.gameplay-route-art figcaption { color: #a28bb6; text-align: right; font: 9px/1.6 var(--site-font); letter-spacing: .1em; margin-top: 12px; }
.gameplay-builds .gameplay-class-browser { grid-column: 1/-1; }
.gameplay-builds .gameplay-class-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px 45px; }
.gameplay-builds .gameplay-class-panel[hidden] { display: none; }
.gameplay-builds .gameplay-skills { margin: 0; justify-content: flex-end; }
.gameplay-builds .gameplay-class-panel > .text-link { margin-top: 0; }
.home-page .gameplay-expeditions { background: #0d101a; display: block; padding-top: 100px; padding-bottom: 100px; min-height: 0; }
.home-page .gameplay-expeditions::before { content: none; }
.gameplay-expedition-intro { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.2fr); align-items: center; gap: 60px; }
.gameplay-route-art { margin: 0; min-width: 0; }
.gameplay-route-art img { display: block; width: 100%; height: auto; border-radius: 8px; }
.gameplay-expedition-steps { margin-top: 65px; }
.home-page .gameplay-together { background: #1c1222; padding: 100px max(80px,calc((100% - 1320px)/2)); grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 65px; }
.gameplay-community-art { height: auto; }
.gameplay-community-art > img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 8px; }
.gameplay-community-art::after { content: none; }
.gameplay-community-art > span { position: static; display: block; text-align: right; margin-top: 12px; }
.gameplay-community-copy { padding: 0; }
.gameplay-community-links > a > .ui-direction-icon:last-child { margin-left: auto; }

/* Separate, low-contrast environment paintings behind the three new chapters. */
.home-page .gameplay-section { isolation: isolate; }
.gameplay-atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gameplay-atmosphere img { width: 100%; height: 100%; object-fit: cover; opacity: .24; }
.gameplay-atmosphere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,var(--chapter-base),transparent 23%,transparent 77%,var(--chapter-base)); }
.gameplay-builds { --chapter-base: #171020; }.gameplay-expeditions { --chapter-base: #0d101a; }.gameplay-together { --chapter-base: #1c1222; }

/* Every entry uses one square stage; file-name prefixes cannot change tile size. */
.wiki-page .wiki-visual-entry > .game-icon { width: 112px; height: 112px; }
.wiki-page .wiki-visual-entry > .game-icon > img { width: 100%; height: 100%; padding: 5px; object-fit: contain; object-position: center; }
.wiki-page .wiki-visual-entry > .game-icon.portrait-icon > img { padding: 0; image-rendering: pixelated; }
.wiki-page .wiki-visual-entry > .game-icon.skill-icon { width: 96px; height: 96px; }
.wiki-page .wiki-visual-entry > .game-icon.skill-icon > img { padding: 0; }
.wiki-page .wiki-visual-grid:has(.set-icon) .wiki-visual-entry > .game-icon.set-icon { width: 100%; height: auto; aspect-ratio: 1; max-width: 160px; }
.wiki-page .wiki-visual-grid { align-items: stretch; grid-auto-rows: auto; row-gap: 10px; }
.wiki-page .wiki-visual-grid:has(.set-icon) { row-gap: 10px; }
.wiki-page .wiki-visual-entry { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: subgrid; grid-row: span 3; justify-items: center; align-items: start; gap: 10px; padding-bottom: 23px; }
.wiki-page .wiki-visual-entry > .game-icon { grid-row: 1; }
.wiki-page .wiki-visual-entry > strong { grid-row: 2; width: 100%; line-height: 1.6; min-height: 0; display: block; }
.wiki-page .wiki-visual-entry > small { grid-row: 3; margin: 0; line-height: 1.6; }
.wiki-page .wiki-portal-grid > a { align-items: center; min-height: 82px; }
.wiki-page .wiki-portal-grid > a > span:last-child { min-width: 0; }
.wiki-page .wiki-system-guides { align-items: stretch; row-gap: 16px; }
.wiki-page .wiki-system-guides > a { display: grid; grid-template-columns: minmax(0,1fr) 22px; grid-template-rows: subgrid; grid-row: span 3; align-items: start; gap: 16px 22px; }
.wiki-page .wiki-system-guides > a > img { grid-column: 1/-1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #1b1423; }
.wiki-page .wiki-system-guides > a > span { display: contents; }
.wiki-page .wiki-system-guides strong { grid-column: 1; grid-row: 2; min-height: 0; margin: 0; line-height: 1.5; }
.wiki-page .wiki-system-guides small { grid-column: 1; grid-row: 3; margin: 0; line-height: 1.85; }
.wiki-page .wiki-system-guides > a > .ui-direction-icon { grid-column: 2; grid-row: 2/4; align-self: center; }

/* Native complete-set bonus sweep is allowed; ordinary item tiles stay borderless. */
@property --wiki-set-turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:is(.wiki-page,.home-page,.forum-page) .game-icon[data-icon-effect="set"] { position: relative; isolation: isolate; }
:is(.wiki-page,.home-page,.forum-page) .game-icon.set-icon[data-icon-effect="set"]::after { content: ''; display: block; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 2; background: conic-gradient(from var(--wiki-set-turn),transparent 0 62%,#ffb400 78%,#fff3c4 86%,#ffb400 92%,transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: wiki-set-run 2.2s linear infinite; pointer-events: none; }
@keyframes wiki-set-run { to { --wiki-set-turn: 360deg; } }

@media(max-width:1200px) {
 .main-menu .main-navigation { gap: 19px; }
 .main-menu .main-navigation > a,.main-menu .main-navigation > details > summary { font-size: 15px; }
 .gameplay-expedition-intro { gap: 35px; }
 .home-page .gameplay-together { padding-inline: 40px; gap: 35px; }
 .home-page .gallery-choice-caption { display: none; }
 .home-page .gallery-choice > img { width: 105px; height: 61px; }
}
@media(max-width:900px) {
 .main-menu .main-navigation > a,.main-menu .main-navigation > details > summary { font-size: 18px; min-height: 46px; }
 .home-page .hero-brand { top: 30%; }
 .gameplay-builds .gameplay-class-panel { grid-template-columns: 1fr; }
 .gameplay-builds .gameplay-skills { justify-content: flex-start; }
 .gameplay-expedition-intro { grid-template-columns: 1fr; }
 .home-page .gameplay-together { grid-template-columns: 1fr; }
 .gameplay-community-copy { max-width: none; }
}
@media(max-width:860px) {
 .home-page .main-menu.scrolled .main-brand.home-scroll-brand { width: 120px; }
 .wiki-page .wiki-navigation { top: 68px; height: calc(100svh - 68px); }
}
@media(max-width:700px) {
 .site-footer-information { width: calc(100% - 40px); }
 .home-page .hero-brand { top: 30%; }
 .home-page .hero-brand .eyebrow,.home-page .hero-subtitle { font-size: 10px; letter-spacing: .1em; }
 .home-page .hero-brand::before { inset: -20px -24px; }
 .home-page .hero-brand h1 { width: clamp(236px,66vw,260px); }
 .hero-motion-toggle { right: 20px; bottom: 100px; }
 .home-page .gallery { height: auto; min-height: 1050px; }
 .home-page .gallery-choice > img { width: 78px; height: 44px; }
 .home-page .gallery-choice-caption { display: inline; max-width: min(140px,calc(100vw - 250px)); font-size: 11px; }
 .home-page .gallery-copy { top: 545px; left: 20px; right: 20px; transform: none; }
 .home-page .gallery-controls { right: 20px; bottom: 35px; }
 .gameplay-builds .gameplay-inner { gap: 35px; padding-bottom: 65px; }
 .gameplay-build-art { justify-self: center; width: min(100%,330px); }
 .gameplay-builds .gameplay-class-browser { grid-column: auto; }
 .home-page .gameplay-expeditions,.home-page .gameplay-together { padding: 65px 20px; }
 .gameplay-expedition-steps { margin-top: 35px; }
 .wiki-page .wiki-navigation { top: auto; height: auto; }
}
@media(max-width:860px) { .main-menu .main-menu-toggle { min-width: 44px; min-height: 44px; display: grid; place-items: center; }.main-menu .main-menu-inner { gap: 12px; }.main-menu .main-account { gap: 12px; }.main-menu .menu-dropdown { min-width: 0; }.main-menu .main-navigation { max-height: calc(100dvh - 68px); overflow-y: auto; }.main-menu.menu-open .main-navigation { background: #17101f; }.home-page .main-menu.scrolled .home-scroll-brand { width: 120px; } }
@media(max-width:360px) { .main-menu .menu-signin > span,.main-menu .menu-profile > summary > span:not(.member-avatar) { display: none; } }
@media(prefers-reduced-motion:reduce) { .home-page .gallery-choice-caption { transition: none; } :is(.wiki-page,.home-page,.forum-page) .game-icon.set-icon[data-icon-effect="set"]::after { animation: none; } }
