:root { --aden-gold: #d6b477; --aden-line: #a486483f; }
html[data-theme="knowledge"] { --aden-gold: #afd0ca; --aden-line: #72999455; }
html[data-theme="forum"] { --aden-gold: #e0a87f; --aden-line: #b7765555; }
.game-icon,.forum-icon,.game-avatar { object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.game-icon { width: 24px; height: 24px; }
.main-nav .game-icon { width: 18px; height: 18px; }
.crest-mini .game-icon { width: 31px; height: 31px; }
.user-pill .game-avatar { width: 24px; height: 24px; }
.post-author .game-avatar, .page-heading .game-avatar { width: 57px; height: 57px; }
.forum-icon { width: 42px; height: 42px; }
.project-card .project-glyph { object-fit: contain; width: 55px; height: 55px; }
.main-nav a:hover,.main-nav a:focus-visible { color: var(--aden-gold); }
.page-heading h1,.hero h1 { text-shadow: 0 3px 20px #09080b; }
.hero .hero-inner { position: relative; z-index: 1; }
html[data-theme="portal"] .hero[style*="citadel"] {
  background-image: linear-gradient(90deg,#080b12c9,#080b1245),linear-gradient(0deg,#0c0c13,#0a0b1300 60%),var(--hero);
  background-position: center,center,center 53%;
  background-size: cover;
}
.forum-category-list .forum-cat-entry a { align-items: center; gap: 12px; }
.forum-emote { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; }
.emote-picker:not([hidden]) { display: flex; gap: 8px; flex-wrap: wrap; }
.emote-picker button { cursor: pointer; background: #19171d; border: 1px solid var(--aden-line); border-radius: 5px; padding: 8px; }
.emote-picker button:hover,.emote-picker button:focus-visible { border-color: var(--aden-gold); }
.avatar-select { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; border: 1px solid var(--aden-line); padding: 10px; min-width: 0; }
.avatar-select label { display: grid; justify-items: center; gap: 4px; cursor: pointer; padding: 4px; }
.avatar-select input[type="radio"] { width: auto; accent-color: var(--aden-gold); margin: 0; }
.avatar-select .game-avatar { width: 56px; height: 56px; }
@media(max-width:480px) {
  .forum-icon { width: 30px; height: 30px; }
  .avatar-select .game-avatar { width: 43px; height: 43px; }
}
.hero::after { content: none; }
.hero-actions .btn { gap: 7px; }
html[data-theme="portal"] .hero:has([class="hero-inner"])::before { background-position: center,center,center 45%; }
html[data-theme="knowledge"] .hero::before,
html[data-theme="forum"] .hero::before {
  background-image: linear-gradient(90deg,#080b13e0,#080b132a 85%),linear-gradient(0deg,#0a0b11,#0a0b1100 55%),var(--hero);
  background-position:center,center,right center;
}
html[data-theme="knowledge"] .hero h1 { color: #cae7e9; }
html[data-theme="forum"] .hero h1 { color: #ffe2bd; }
html[data-theme="knowledge"] .hero-inner, html[data-theme="forum"] .hero-inner {
  justify-self: start; text-align: left; margin-left: clamp(10px,6vw,95px);
}
html[data-theme="knowledge"] .hero-actions, html[data-theme="forum"] .hero-actions { justify-content: flex-start; }
.forum-layout { display: flex; flex-direction: column; }
.forum-filtered .forum-discussions { order: -1; }
.forum-cat-entry a[aria-current="page"] { background: #78503838; color: #fff0d3; }
.back-to-forum { display: inline-block; padding: 10px 16px; color: var(--aden-gold); }
.forum-heading .btn { gap: 7px; }
@media (max-width:540px) {
  .forum-heading .page-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .forum-heading .page-actions .btn { padding-inline: 8px; clip-path: none; border-radius: 6px; text-shadow: none; }
  .forum-heading .game-icon { width: 19px; height: 19px; }
  .auth-wrap { padding: 18px 12px 36px; }
}
.illustrated-heading {
  isolation: isolate;
  position: relative;
  text-align: left;
  min-height: 228px;
  display: grid;
  align-content: center;
  border-bottom-color: var(--aden-line);
  background: #12151a;
}
.illustrated-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#080b13f2 0%,#080b13ce 37%,#080b1338 100%),
              linear-gradient(0deg,#0d0e15bf,transparent 60%),var(--section-art) right 43% / cover no-repeat;
}
.illustrated-heading h1 { margin-top: 3px; }
.illustrated-heading p { margin-inline: 0; max-width: 38rem; color: #efe1ce; }
.illustrated-heading .page-actions { justify-content: flex-start; }
.guide-card .guide-art {
  display: block;
  width: 100%;
  height: clamp(70px, 8vw, 124px);
  object-fit: cover;
  object-position: 65% center;
  border: 1px solid var(--aden-line);
  border-radius: 4px;
}
.guide-card:focus-visible { outline: 2px solid var(--aden-gold); outline-offset: 2px; }
@media (max-width: 540px) {
  .illustrated-heading { min-height: 0; padding: 23px 15px 19px; }
  .illustrated-heading h1 { font-size: clamp(26px, 7.5vw, 33px); }
  .illustrated-heading::before {
    background: linear-gradient(90deg,#080b13f5,#080b1377),linear-gradient(0deg,#0d0e15db,transparent),var(--section-art) 68% center / cover no-repeat;
  }
  .illustrated-heading.forum-heading .page-actions { justify-content: stretch; }
}
.project-card.illustrated-card {
  min-height: 158px;
  background: linear-gradient(90deg,#14121beb,#14121b69),
              linear-gradient(0deg,#110e15e8,transparent),var(--card-art) center / cover no-repeat;
}
.illustrated-card small { color: #efe3d3; }
.illustrated-card:focus-visible { outline: 2px solid var(--aden-gold); outline-offset: 2px; }
