/* Shared finishing rules: native game pictures, readable type and the reference's page rhythm. */
:root { --violet: #8a5cf0; --violet-dark: #5a36b8; }
:is(.home-page,.wiki-page,.forum-page) .member-avatar[data-portrait] { background: #30243e; border: 1px solid #a98fc32b; border-radius: 9px; overflow: hidden; }
:is(.home-page,.wiki-page,.forum-page) .member-avatar[data-portrait] > img { width: 100%; height: 100%; inset: 0; padding: 1px; max-width: none; object-fit: contain; }
.no-scroll { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* A larger chapter rail with a proper touch target and a readable active label. */
.home-page .section-nav { right: 22px; gap: 5px; counter-reset: chapters; }
.home-page .section-nav > a { width: 44px; height: 44px; display: grid; place-items: center; counter-increment: chapters; }
.home-page .section-nav > a > i { width: 12px; height: 12px; border: 1px solid #b89add8c; background: #271b37b3; transform: rotate(45deg); transition: background .2s,box-shadow .2s,transform .2s; }
.home-page .section-nav > a.active > i { width: 16px; height: 16px; border-color: #d7b7ff; background: #a17ae8; box-shadow: 0 0 0 5px #9970cf21,0 0 24px #8a5cf04d; }
.home-page .section-nav > a:hover > i { background: #c49aee; transform: rotate(45deg) scale(1.12); }
.home-page .section-nav > a > span { right: 51px; font: 12px/1.5 var(--site-font); letter-spacing: .03em; padding: 7px 11px; border-radius: 4px; color: #dfc9f4; background: #1e132cbd; }
.home-page .section-nav > a > span::before { content: counter(chapters,decimal-leading-zero) ' / '; color: #ad82dc; }
.home-page .section-nav > a.active > span, .home-page .section-nav > a:focus-visible > span { opacity: 1; }

/* The three original expedition maps have room to breathe, without card backplates. */
.home-page .adventure { background: #130e1b; }
.home-page .adventure-backdrop { opacity: .24; background-image: radial-gradient(ellipse at 50% 45%,#59357742,transparent 65%); }
.home-page .adventure-content { max-width: 1250px; width: calc(100% - 190px); padding: 105px 0 90px; }
.home-page .center-heading > p:last-child { max-width: 680px; margin: 18px auto 0; color: #b5a3c9; }
.home-page .guide-worlds { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px; margin-top: 55px; }
.home-page .guide-world { --path-accent: #b790e8; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0; position: relative; }
.home-page .guide-world:nth-child(2) { --path-accent: #aa9af2; }
.home-page .guide-world:nth-child(3) { --path-accent: #85b6c9; }
.home-page .guide-top { justify-content: center; gap: 12px; min-height: 40px; width: 100%; }
.home-page .guide-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #9a6bc65e; border-radius: 6px; color: var(--path-accent); background: #b18bdb08; font: 16px var(--display-font); }
.home-page .guide-level { color: var(--path-accent); font: 12px/1.6 var(--site-font); letter-spacing: .06em; min-height: 0; }
.home-page .world-connector { height: 30px; background: linear-gradient(#a77bd854,transparent); margin-top: 12px; }
.home-page .island.map-render { width: 100%; height: 280px; margin: 5px 0 20px; overflow: visible; }
.home-page .island.map-render img { width: 132%; height: 116%; left: -16%; top: -8%; object-fit: contain; transform: none; clip-path: none; filter: drop-shadow(0 24px 17px #0503099c); }
.home-page .guide-world:hover .island.map-render img { transform: translateY(-9px); }
.home-page .island-glow { opacity: .6; background: radial-gradient(ellipse,#8b57ba35,transparent 68%); }
.home-page .island-ring { opacity: .25; }
.home-page .guide-world h3 { font: 400 24px/1.5 var(--display-font); margin: 12px 0 10px; color: #f0e5fc; min-height: 0; }
.home-page .guide-world > p { flex: 1; font: 16px/1.85 var(--site-font); color: #ab99bf; max-width: 340px; margin: 0 auto 22px; }
.home-page .guide-world > .text-link { font: 13px var(--site-font); color: var(--path-accent); gap: 12px; }
.home-page .game-facts { margin-top: 64px; gap: 40px; padding-top: 35px; border-top: 1px solid #aa86c31c; justify-content: center; }
.home-page .game-facts strong { color: #dfc6f8; }
.home-page .game-facts span { font-size: 11px; letter-spacing: .1em; color: #9880ae; }

/* The sea is transparent and ordinary wheel/touch scrolling stays with the page. */
.home-page .world-scene { background: radial-gradient(ellipse at 50% 45%,#2d1f3a 0,#1c1426 42%,#130e1b 75%); }
.home-page #world-canvas { touch-action: pan-y; }
.home-page .world-stage { top: 245px; bottom: 110px; }
.home-page .world-stage::after { background: linear-gradient(90deg,#130e1b55,transparent 8%,transparent 92%,#130e1b55); }
.home-page .world-controls { gap: 18px; bottom: 35px; }
.home-page .world-controls select { font-size: 13px; max-width: 250px; color: #c9b3df; }
.home-page .world-controls button { min-width: 37px; min-height: 37px; font-size: 23px; border: 1px solid #b58bd126; border-radius: 6px; background: #21172d80; }
.home-page .world-controls button:hover { background: #49305e; }
.home-page .world-hint { bottom: 90px; font-size: 11px; color: #a18ab6; }
.home-page .world-label { font-size: 12px; letter-spacing: .02em; color: #e1cff3; text-shadow: 0 2px 5px #000,0 0 12px #130e1b; }
.home-page .world-expanded .world-stage { top: 190px; }
.home-page .gallery-copy { bottom: 20%; }

/* A low, two-tier footer, matching the forum reference's hierarchy. */
.site-footer { position: relative; background: #110d16; color: #91819d; font-family: var(--site-font); border-top: 1px solid #ffffff08; padding: 36px 0 0; }
.site-footer-main, .site-footer-bottom { width: calc(100% - 110px); max-width: 1200px; margin: auto; }
.site-footer-main { position: relative; display: grid; grid-template-columns: 165px minmax(0,1fr) auto; align-items: center; gap: 35px; padding-bottom: 27px; }
.site-footer-brand img { display: block; width: 155px; height: 50px; object-fit: contain; }
.site-footer-main > p { color: #a08fae; font: 13px/1.9 var(--site-font); max-width: 580px; margin: 0; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.site-footer nav a { color: #ac95bf; font-size: 12px; text-decoration: none; }
.site-footer nav a:hover { color: #e1c4ff; }
html:root body .footer-back-top { position: fixed; inset: auto max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) auto; z-index: 45; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #ad8bcd50; border-radius: 0; clip-path: var(--px-button-shape); box-shadow: 0 6px 20px #0005; background: #292230f2; color: #e6d7f5; }
html:root body .footer-back-top[hidden] { display: none; }
html:root body .footer-back-top:hover { background: #493359; }
html:root body .footer-back-top:focus-visible { outline: 2px solid #d1b0f3; outline-offset: 4px; }
.footer-back-top svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; transform: rotate(-90deg); }
.site-footer-bottom { display: flex; align-items: center; gap: 25px; justify-content: space-between; padding: 20px 0 24px; border-top: 1px solid #ffffff09; }
.site-footer-bottom > p { margin: 0; font-size: 10px; line-height: 1.8; }
.site-footer-bottom nav { gap: 18px; }
.site-footer-bottom nav a { font-size: 10px; }
.footer-signal { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #8f72aa; font-size: 9px; letter-spacing: .04em; }
.footer-signal i { width: 5px; height: 5px; background: #a777e3; transform: rotate(45deg); }

/* Forum scenery and geometry follow the original, with violet replacing orange. */
body.forum-page { background: #100d13; position: relative; isolation: isolate; }
body.forum-page::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg,#131016b8,#110d14cf 48%,#100d13f7 100%),url('../game/locations/alba.png') center top/cover no-repeat; }
.forum-page .main-menu { background: #100d132e; border: 0; box-shadow: none; }
.forum-page .forum-wrap { max-width: 1200px; width: calc(100% - 110px); padding-top: 16px; }
.forum-page .forum-hero { height: 195px; min-height: 195px; padding: 30px 38px; background: linear-gradient(90deg,#120e1de6 0,#211329a6 54%,#3d245231),url('../game/locations/alba.png') center 42%/cover; border-radius: 7px; }
.forum-page .forum-hero h1 { font: 400 24px/1.55 var(--display-font); max-width: 610px; margin: 0; }
.forum-page .forum-hero p { color: #c8b7d2; font-size: 13px; }
.forum-page .online-strip { margin-top: 10px; padding: 20px 23px; background: #1b181fdb; border-color: #ffffff0e; }
.forum-page .forum-search { background: #1b181edb; }
.forum-page .forum-category-row { background: #1c191fd9; border-color: #ffffff0e; }
.forum-page .forum-category-row.is-featured, .forum-page .featured-category { background: linear-gradient(100deg,#49305ac9,#2e213ac9 58%,#1e1923dc); }
.forum-page .forum-category-icon, .forum-page .featured-category-icon { background: #8150c5; width: 42px; height: 42px; border-radius: 9px; overflow: hidden; border: 1px solid #c9a3fc42; box-shadow: inset 0 1px #d9bbff2b; }
.forum-category-icon img, .featured-category-icon img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.forum-page .forum-category-copy > strong { font: 400 20px/1.45 var(--display-font); }
.forum-page .discussion-list { overflow: hidden; border-radius: 8px; }
.forum-page .discussion-row { min-height: 98px; padding: 15px 27px; background: #1b181f; border-bottom: 1px solid #ffffff0c; }
.forum-page .discussion-row:hover { background: #25202b; }
.forum-page .discussion-info h2 { font: 400 20px/1.4 var(--display-font); }
.forum-page .discussion-info > p { font-size: 14px; line-height: 1.7; color: #a79aaf; }
.forum-page .discussion-byline, .forum-page .discussion-byline > time { font-size: 12px; color: #94879e; }
.forum-page .discussion-byline > a { color: #ded0e9; }
.forum-page .discussion-metric { color: #cdc0d7; font-size: 13px; }
.forum-page .discussion-icon .member-avatar { width: 42px; height: 42px; }
.forum-page .participant-stack { display: flex; align-items: center; justify-content: flex-end; }
.forum-page .participant-stack .member-avatar { width: 34px; height: 34px; margin-left: -6px; border: 2px solid #1b181f; border-radius: 9px; }
.forum-topic-summary { display: grid; grid-template-columns: 42px minmax(0,1fr) 65px 75px 190px; align-items: center; gap: 18px; padding: 18px 27px; min-height: 98px; border: 1px solid #ffffff10; background: #1c1920; border-radius: 7px; margin-bottom: 22px; }
.forum-topic-summary > .member-avatar { width: 42px; height: 42px; }
.topic-summary-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.forum-page .forum-topic-summary h1 { font: 400 20px/1.4 var(--display-font); color: #eee1f7; }
.forum-topic-summary p { margin-top: 3px !important; color: #a192ae; font-size: 14px; line-height: 1.6; }
.topic-summary-byline { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 12px; color: #93809f; }
.topic-summary-byline > a { color: #dbc9e6; }
.forum-page .topic-post { background: #1b181f; border-color: #ffffff10; border-radius: 7px; }
.forum-page .topic-post > aside { background: #17141b; padding: 26px 18px; }
.forum-page .topic-post > aside .member-avatar { width: 66px; height: 66px; }
.forum-page .topic-post strong { font-size: 14px; }
.forum-page .topic-post > aside > small { color: #95809f; font-size: 11px; }
.forum-page .post-body { font-size: 16px; line-height: 1.9; min-height: 150px; color: #d4c8dc; }
.post-body p { margin: 0 0 16px !important; }
.post-body ul { padding-left: 22px; margin: 15px 0 22px; }
.post-body li { margin-bottom: 9px; }
.post-body blockquote { margin: 18px 0; padding: 15px 20px; background: #26202e; border-left: 3px solid #9264c9; color: #c3aed1; border-radius: 0 5px 5px 0; }
.post-body figure { margin: 22px 0; }
.post-body figure img { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 8px; }
.post-body figcaption { color: #91779f; font-size: 12px; margin-top: 8px; }
.forum-page .forum-replies-heading { font: 400 24px/1.5 var(--display-font); color: #e6d5f2; margin: 30px 0 22px; }
.forum-replies-heading span { font: 14px var(--site-font); color: #a688bd; padding-left: 8px; }
.forum-page .topic-post:not(:first-child) { border-radius: 0; margin: 0; border-bottom: 0; }
.forum-page .topic-post:last-of-type { border-bottom: 1px solid #ffffff10; border-radius: 0 0 7px 7px; }
.forum-page .topic-post:not(:first-child) > aside .member-avatar { width: 35px; height: 35px; }
.forum-page .topic-post:not(:first-child) .post-content { padding-left: 75px; }
.forum-page .post-content > footer { border-top-color: #ffffff08; }
.forum-editor-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 9px; background: #25212b; border-radius: 5px; }
.forum-editor-tools > button { width: 35px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: #ae9cba; font-size: 18px; cursor: pointer; border-radius: 4px; }
.forum-editor-tools > button:hover { background: #9e72cb22; color: #ead4ff; }
.editor-image-picker { position: relative; margin-left: 8px; }
.editor-image-picker > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: #bca1d1; font-size: 12px; }
.editor-image-picker > div { position: absolute; left: 0; top: calc(100% + 15px); width: min(560px,75vw); z-index: 20; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 14px; background: #21172b; border: 1px solid #b087d443; border-radius: 8px; box-shadow: 0 16px 35px #0008; }
.editor-image-picker button { display: block; background: #2d2039; border: 0; border-radius: 5px; overflow: hidden; color: #d9bee9; padding: 0; cursor: pointer; text-align: left; }
.editor-image-picker button > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.editor-image-picker button > span { display: block; padding: 8px; font-size: 11px; }
.forum-page .compose-panel { background: #1b181f; }
.forum-page .forum-editor textarea { background: #242029; }

/* Profiles have their own cover, sidebar and activity stream, as in the reference. */
.forum-page .profile-cover { display: block; min-height: 248px; padding: 28px 32px; border: 1px solid #ffffff10; border-radius: 7px 7px 0 0; background: #211927; }
.forum-page .profile-cover-art { object-position: 70% 46%; opacity: .48; }
.forum-page .profile-cover::after { background: linear-gradient(90deg,#1c1523f5 10%,#26192e99 60%,#16101c66); }
.forum-page .profile-heading { align-items: center; gap: 19px; }
.forum-page .profile-avatar { width: 74px; height: 74px; border-radius: 9px; }
.profile-role { color: #b796d0; font-size: 10px; letter-spacing: .08em; }
.forum-page .profile-heading h1 { font: 400 24px/1.4 var(--display-font); margin-top: 7px; }
.forum-page .profile-heading > div > p { font-size: 12px; color: #a995b8; margin-top: 8px; }
.forum-page .profile-stats { gap: 11px; margin-top: 20px; }
.forum-page .profile-stats > span { min-width: 76px; border-radius: 7px; padding: 9px 12px; background: #2d2335c9; font-size: 11px; color: #a88fbb; }
.forum-page .profile-stats b { font: 400 24px/1.2 var(--display-font); margin-bottom: 6px; color: #eddbfb; }
.profile-last-seen { position: absolute; left: 326px; bottom: 36px; font-size: 12px; color: #b09bbf; }
.profile-edit-link { position: absolute; top: 23px; right: 24px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #ffffff17; border-radius: 5px; color: #c6add8; font-size: 12px; background: #20192590; }
.profile-reference-layout { display: grid; grid-template-columns: 265px minmax(0,1fr); min-height: 500px; background: #1a161e; border: 1px solid #ffffff10; border-top: 0; border-radius: 0 0 7px 7px; }
.profile-reference-layout > aside { display: grid; align-content: start; gap: 14px; padding: 20px; border-right: 1px solid #ffffff09; }
.profile-about { border: 1px solid #ffffff10; border-radius: 7px; padding: 15px; }
.forum-page .profile-about h2 { font: 400 16px/1.6 var(--display-font); color: #dcc4ee; padding-bottom: 12px; border-bottom: 1px solid #ffffff0c; margin-bottom: 12px; }
.profile-about > p { color: #a58faf; font-size: 13px; line-height: 1.9; }
.profile-about > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #ba98d3; font-size: 12px; line-height: 1.8; margin: 10px 0; }
.profile-about > a > svg { width: 13px; height: 13px; }
.profile-about dl { margin: 0; font-size: 12px; color: #a791b7; }
.profile-about dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.profile-about dd { margin: 0; color: #d0b7e2; }
.profile-feed { min-width: 0; padding: 22px 30px; }
.profile-feed-tabs { display: flex; gap: 20px; border-bottom: 1px solid #ffffff0b; }
.profile-feed-tabs a { display: block; padding: 13px 15px; color: #9a82ac; font-size: 13px; border-bottom: 2px solid transparent; }
.profile-feed-tabs a[aria-current] { color: #e2caf4; border-bottom-color: #a070d7; background: linear-gradient(#8052ad20,#8052ad0a); }
.forum-page .profile-feed > h2 { font: 400 20px/1.5 var(--display-font); color: #d6c0e6; margin: 25px 0 20px; }
.profile-reference-card { background: #242029; border: 1px solid #ffffff06; border-radius: 7px; padding: 22px; margin-bottom: 16px; }
.profile-card-context { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #b19bc0; margin-bottom: 17px; }
.profile-card-context > a { color: #d8bfe9; }
.profile-card-context .forum-category-icon { width: 27px; height: 27px; flex-basis: 27px; border: 0; border-radius: 6px; }
.profile-card-context .forum-category-icon img { padding: 3px; }
.profile-reference-card > div { display: flex; gap: 15px; align-items: flex-start; }
.profile-reference-card > div > .member-avatar { width: 38px; height: 38px; }
.forum-page .profile-reference-card h3 { font: 400 20px/1.4 var(--display-font); color: #e5d4ef; }
.profile-reference-card p { color: #aa95b7; font-size: 14px; line-height: 1.8; margin-top: 8px !important; overflow-wrap: anywhere; }
.profile-reference-card > div > div > span { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 11px; color: #8c729d; }
.profile-reference-card strong { color: #cdb2de; font-weight: 500; }

@media(max-width:1100px) {
  .site-footer-main, .site-footer-bottom, .forum-page .forum-wrap { width: calc(100% - 60px); }
  .site-footer-main { grid-template-columns: 145px minmax(0,1fr); gap: 25px; }
  .site-footer-main > nav { grid-column: 2; }
  .site-footer-bottom { flex-wrap: wrap; gap: 15px; }
  .home-page .adventure-content { width: calc(100% - 140px); }
  .home-page .guide-worlds { gap: 25px; }
  .home-page .island.map-render { height: 220px; }
  .home-page .game-facts { gap: 25px; }
  .forum-topic-summary { grid-template-columns: 38px minmax(0,1fr) 48px 55px 130px; gap: 12px; padding: 18px 22px; }
  .profile-reference-layout { grid-template-columns: 235px minmax(0,1fr); }
  .profile-feed { padding: 20px; }
}
@media(max-width:800px) {
  .forum-topic-summary { grid-template-columns: 36px minmax(0,1fr) 42px 48px; }
  .forum-topic-summary > .participant-stack { display: none; }
  .home-page .section-nav { right: 5px; }
  .home-page .section-nav > a > span { display: none; }
  .home-page .adventure-content { width: calc(100% - 100px); }
  .home-page .guide-worlds { grid-template-columns: 1fr; gap: 55px; }
  .home-page .guide-world { max-width: 480px; width: 100%; margin: auto; }
  .home-page .island.map-render { height: 285px; }
  .home-page .guide-world > p { max-width: 440px; }
  .profile-last-seen { position: static; margin-top: 16px !important; }
}
@media(max-width:650px) {
  .site-footer-main, .site-footer-bottom, .forum-page .forum-wrap { width: calc(100% - 36px); }
  .site-footer { padding-top: 30px; }
  .site-footer-main { grid-template-columns: 1fr; gap: 20px; padding-bottom: 25px; }
  .site-footer-main > nav { grid-column: 1; }
  .site-footer-main > p { font-size: 13px; max-width: 420px; }
  .site-footer-main nav { gap: 25px; }
  .site-footer-brand img { width: 145px; height: 45px; }
  .site-footer-bottom { align-items: flex-start; padding-bottom: 22px; }
  .site-footer-bottom nav { gap: 14px; }
  .footer-back-top { top: -48px; right: 0; }
  .footer-signal { display: none; }
  .home-page .section-nav > a { width: 40px; height: 44px; }
  .home-page .section-nav > a > i { width: 10px; height: 10px; }
  .home-page .section-nav > a.active > i { width: 13px; height: 13px; }
  .home-page .adventure-content { width: calc(100% - 95px); margin-left: 23px; padding: 100px 0 60px; }
  .home-page .guide-worlds { margin-top: 40px; gap: 45px; }
  .home-page .island.map-render { height: 220px; }
  .home-page .guide-world h3 { font-size: 24px; }
  .home-page .guide-world > p { font-size: 15px; }
  .home-page .game-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 20px; margin-top: 40px; }
  .home-page .game-facts > i { display: none; }
  .home-page .game-facts > div { text-align: center; display: grid; gap: 8px; }
  .home-page .world-stage { top: 280px; bottom: 165px; }
  .home-page .world-controls { gap: 8px; bottom: 48px; flex-wrap: wrap; width: calc(100% - 70px); justify-content: center; }
  .home-page .world-controls > label { width: 100%; text-align: center; }
  .home-page .world-controls > i { display: none; }
  .home-page .world-controls select { max-width: 220px; font-size: 13px; }
  .home-page .world-hint { bottom: 150px; font-size: 10px; }
  .home-page .world-label { font-size: 10px; }
  .home-page .world-expanded .world-stage { top: 215px; }
  .forum-page .forum-hero { min-height: 195px; height: auto; padding: 25px; }
  .forum-page .forum-hero h1 { font-size: 24px; line-height: 1.5; }
  .forum-page .discussion-row { padding: 16px 14px; }
  .forum-page .discussion-info h2 { font-size: 20px; }
  .forum-page .discussion-info > p { font-size: 14px; }
  .forum-page .discussion-icon .member-avatar { width: 30px; height: 30px; }
  .forum-topic-summary { grid-template-columns: 32px minmax(0,1fr) 30px; padding: 18px 14px; gap: 12px; }
  .forum-topic-summary > .member-avatar { width: 30px; height: 30px; }
  .forum-topic-summary > .discussion-metric:nth-last-child(2) { display: none; }
  .forum-page .forum-topic-summary h1 { font-size: 20px; }
  .forum-topic-summary p { font-size: 13px; }
  .topic-summary-byline { font-size: 11px; flex-wrap: wrap; gap: 8px; }
  .forum-page .topic-post > aside .member-avatar { width: 36px; height: 36px; }
  .forum-page .topic-post:not(:first-child) .post-content { padding-left: 20px; }
  .forum-page .post-body { font-size: 15px; }
  .editor-image-picker > div { left: -95px; width: calc(100vw - 70px); grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forum-page .profile-cover { padding: 25px 22px; }
  .forum-page .profile-heading { align-items: flex-start; gap: 14px; }
  .forum-page .profile-avatar { width: 60px; height: 60px; }
  .forum-page .profile-heading h1 { font-size: 24px; }
  .profile-edit-link { position: static; display: inline-flex; margin-top: 20px; }
  .profile-reference-layout { grid-template-columns: 1fr; }
  .profile-reference-layout > aside { border-right: 0; border-bottom: 1px solid #ffffff09; }
  .profile-feed { padding: 20px; }
  .profile-reference-card { padding: 18px; }
  .profile-card-context { align-items: flex-start; flex-wrap: wrap; font-size: 11px; }
  .forum-page .profile-reference-card h3 { font-size: 20px; }
}
@media(prefers-reduced-motion:reduce) { .home-page .section-nav > a > i { transition: none; } }

/* Conversations, reporting and profile controls have their own reference layouts. */
.post-header-actions { display: flex; align-items: center; gap: 14px; }
.post-header-actions button { display: grid; place-items: center; width: 27px; height: 27px; background: #28222e; border: 1px solid #ffffff0b; border-radius: 4px; color: #9d89ac; cursor: pointer; }
.post-header-actions button svg { width: 14px !important; height: 14px !important; }
.profile-message-button { margin-top: 18px; font-size: 13px; padding: 10px 14px; }
.profile-cover-link { position: absolute; right: 24px; top: 66px; display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff17; border-radius: 5px; padding: 9px 12px; font: 12px var(--site-font); background: #211728a3; color: #c6add8; cursor: pointer; }
.profile-cover-link svg { width: 15px; height: 15px; }
.forum-modal { width: min(540px,calc(100% - 36px)); max-height: 90svh; overflow-y: auto; padding: 30px; border: 1px solid #b297ca35; border-radius: 9px; background: #1c1821; color: #e7d9f1; font-family: var(--site-font); box-shadow: 0 30px 100px #0009; }
.forum-modal::backdrop { background: #050308cf; }
.forum-modal > .c-close { position: absolute; right: 16px; top: 14px; padding: 4px; background: none; color: #9e86ae; border: 0; cursor: pointer; }
.forum-modal .c-close svg { width: 18px; height: 18px; }
.forum-page .forum-modal h2 { font: 400 24px/1.5 var(--display-font); margin: 0 25px 12px 0; }
.forum-modal-lead { color: #9981ab; font-size: 13px; line-height: 1.8; margin-bottom: 20px !important; }
.forum-modal form { display: grid; gap: 14px; }
.forum-modal form > label { display: grid; gap: 9px; color: #bda4cf; font-size: 13px; }
.forum-modal :is(textarea,select) { width: 100%; padding: 13px; border: 1px solid #b891cf28; border-radius: 6px; background: #261e2e; color: #e1cdeb; font: 15px/1.8 var(--site-font); resize: vertical; }
.report-modal > blockquote { border: 0; border-radius: 7px; background: #28232e; padding: 15px; color: #c7b3d5; font-size: 13px; line-height: 1.8; margin: 20px 0 25px; max-height: 130px; overflow-y: auto; }
.forum-page .report-modal form h3 { font: 600 14px/1.8 var(--site-font); padding-top: 20px; margin: 0 0 5px; border-top: 1px solid #ffffff0b; }
.report-reason { border: 1px solid #ffffff0d; border-radius: 8px; background: #28232e; padding: 14px 16px; text-align: left; cursor: pointer; }
.report-reason:hover { background: #3b2d46; border-color: #b083d33b; }
.report-reason strong { display: block; color: #e2d2ef; font: 600 14px var(--site-font); }
.report-reason span { display: block; margin-top: 7px; color: #a28bb3; font: 13px/1.7 var(--site-font); }
.report-confirmation { padding: 40px 10px 25px; text-align: center; }
.report-confirmation[hidden], .forum-modal [hidden] { display: none !important; }
.report-confirmation > span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #8251cb; color: #fff; box-shadow: 0 0 0 20px #9463d719; font-size: 32px; margin: 15px auto 40px; }
.report-confirmation .pixel-ui-icon{display:block;width:32px;height:32px;fill:currentColor;stroke:none;shape-rendering:crispEdges}
.forum-page .report-confirmation h3 { font: 400 24px/1.5 var(--display-font); margin-bottom: 15px; }
.report-confirmation p { color: #a78cb9; font-size: 14px; }
.report-confirmation button { margin-top: 28px; padding: 9px 20px; border: 1px solid #b38bcd35; border-radius: 5px; background: none; color: #caa9df; cursor: pointer; }
.cover-modal { width: min(730px,calc(100% - 36px)); }
.cover-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 10px 0 15px; }
.cover-options > label { display: block; position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: #2b2035; cursor: pointer; }
.cover-options > label:has(input:checked) { border-color: #ac7bea; }
.cover-options input { position: absolute; left: 10px; top: 10px; accent-color: #a16bdf; }
.cover-options img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.cover-options span { display: block; padding: 10px 12px; color: #cab0de; font-size: 12px; }
.forum-messages-heading { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin: 12px 0 30px; }
.forum-page .forum-messages-heading h1 { font: 400 30px/1.5 var(--display-font); }
.forum-messenger { display: grid; grid-template-columns: 290px minmax(0,1fr); min-height: 650px; height: min(800px,calc(100svh - 200px)); overflow: hidden; border: 1px solid #ffffff11; border-radius: 7px; background: #19151ddc; margin-bottom: 40px; }
.conversation-list { background: #211a27ba; border-right: 1px solid #ffffff0b; overflow-y: auto; padding: 18px 0; }
.conversation-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 20px; padding: 11px 8px; border: 1px solid #ffffff12; border-radius: 5px; }
.conversation-search > svg { width: 14px; height: 14px; color: #8f749f; }
.conversation-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: #d5bce6; font: 12px var(--site-font); }
.conversation-link { display: flex; align-items: center; gap: 11px; padding: 17px 16px; border-left: 2px solid transparent; }
.conversation-link[hidden] { display: none !important; }
.conversation-link.selected { border-left-color: #ac76e4; background: #3a2d4559; }
.conversation-link .member-avatar { width: 37px; height: 37px; }
.conversation-link > span:not(.member-avatar) { min-width: 0; flex: 1; }
.conversation-link strong { display: block; color: #d8c1e8; font-size: 13px; font-weight: 600; }
.conversation-link small { display: block; color: #9a7eac; font-size: 12px; margin-top: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conversation-link time { align-self: flex-start; color: #8c719c; font-size: 10px; white-space: nowrap; }
.conversation-empty { color: #91749f; font-size: 13px; line-height: 1.8; padding: 10px 20px; }
.conversation-thread { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.conversation-thread > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff0a; padding: 19px 25px; }
.conversation-thread > header > a:first-child { display: flex; align-items: center; gap: 12px; }
.conversation-thread > header strong { display: block; color: #ddc7ed; font-size: 14px; }
.conversation-thread > header small { display: block; color: #9c81ad; font-size: 11px; margin-top: 5px; }
.conversation-thread > header > a:last-child { color: #9a7fac; padding: 6px; }
.conversation-messages { min-height: 0; flex: 1; overflow-y: auto; padding: 25px; scroll-behavior: smooth; }
.private-message { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 22px; max-width: 85%; }
.private-message > .member-avatar { width: 31px; height: 31px; }
.private-message > div { padding: 15px 18px; border-radius: 8px 8px 8px 2px; background: #2c2533; min-width: 0; }
.private-message strong { color: #cab1dd; font-size: 12px; }
.forum-page .private-message .post-body { min-height: 0; padding: 8px 0; font-size: 15px; line-height: 1.8; }
.private-message .post-body p:last-child { margin-bottom: 0 !important; }
.private-message time { display: block; text-align: right; font-size: 10px; color: #9a7fac; margin-top: 5px; }
.private-message.own-message { margin-left: auto; justify-content: flex-end; }
.private-message.own-message > div { border-radius: 8px 8px 2px 8px; background: #493254; }
.conversation-compose { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 20px 25px; border-top: 1px solid #ffffff0b; }
.conversation-compose textarea { min-width: 0; flex: 1; max-height: 160px; min-height: 70px; padding: 13px; border: 1px solid #b28ad22b; border-radius: 6px; background: #2b2233; color: #dcc5ed; font: 15px/1.7 var(--site-font); resize: vertical; }
.conversation-compose .c-button { min-height: 44px; padding: 12px; }
.conversation-compose .form-message { width: 100%; }
.member-hover-card { position: fixed; z-index: 55; width: 350px; max-width: calc(100vw - 30px); padding-bottom: 20px; border: 1px solid #b494cf29; border-radius: 8px; background: #1e1825f5; box-shadow: 0 18px 35px #0008; overflow: hidden; }
.member-hover-card[hidden] { display: none; }
.member-hover-cover { padding: 22px; display: flex; align-items: center; gap: 17px; background-position: center; background-size: cover; }
.member-hover-cover .member-avatar { width: 68px; height: 68px; }
.member-hover-cover strong { color: #edddf8; font: 600 15px var(--site-font); display: block; }
.member-hover-cover small { display: block; color: #baa0c9; font-size: 11px; margin-top: 10px; }
.member-hover-cover > div > span { display: block; margin-top: 9px; color: #b995d8; font-size: 11px; }
.member-hover-stats { display: flex; align-items: center; gap: 12px; padding: 20px 22px; }
.member-hover-stats > span { min-width: 75px; border-radius: 8px; background: #2b2233; padding: 11px; font-size: 11px; color: #9276a2; }
.member-hover-stats b { display: block; font-size: 19px; color: #d5bce6; font-weight: 500; margin-bottom: 6px; }
.member-hover-actions { display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.member-hover-actions > a { font-size: 12px; color: #b390ce; }
.member-hover-actions .c-button { padding: 9px 12px; font-size: 12px; }
@media(max-width:850px) {
  .forum-messenger { grid-template-columns: 230px minmax(0,1fr); }
  .conversation-link { padding: 15px 12px; gap: 8px; }
  .conversation-link time { display: none; }
  .conversation-messages { padding: 20px; }
}
@media(max-width:650px) {
  .profile-cover-link { position: static; display: inline-flex; margin-top: 15px; margin-right: 10px; }
  .forum-modal { padding: 26px 22px; }
  .forum-page .forum-modal h2 { font-size: 24px; }
  .cover-options { gap: 10px; }
  .cover-options span { font-size: 11px; }
  .forum-messages-heading { flex-wrap: wrap; margin-top: 10px; }
  .forum-page .forum-messages-heading h1 { font-size: 24px; }
  .forum-messenger { height: auto; min-height: 600px; grid-template-columns: 1fr; }
  .conversation-list { max-height: 220px; border-right: 0; border-bottom: 1px solid #ffffff0d; }
  .conversation-search { margin-bottom: 10px; }
  .conversation-link { padding: 12px 16px; }
  .conversation-thread { min-height: 500px; }
  .conversation-messages { max-height: 65svh; padding: 20px 15px; }
  .conversation-thread > header { padding: 17px; }
  .private-message { max-width: 94%; gap: 8px; }
  .private-message > div { padding: 13px; }
  .conversation-compose { padding: 16px; gap: 10px; }
}
