: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; }
.detail-heading {
  min-height: 168px;
}
.detail-heading h1, .breadcrumbs, .post-body {
  overflow-wrap: anywhere;
}
.detail-heading h1 {
  max-width: 42rem;
  font-size: clamp(27px, 4vw, 44px);
}
.detail-heading p {
  margin-bottom: 0;
}
#replies {
  scroll-margin-top: 72px;
}
@media (max-width:540px) {
  .page-heading.compact.detail-heading {
    min-height: 0;
    padding: 20px 15px;
  }
  .page-heading.compact.detail-heading h1 {
    font-size: clamp(23px, 7vw, 31px);
  }
}
.game-empty {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid var(--aden-line);
  border-radius: 8px;
  background: radial-gradient(ellipse at 2% 50%, #3d323b, #17171e 70%);
  text-align: left;
  white-space: normal;
}
.game-empty strong { display: block; color: #f5dfbc; font-size: 1rem; }
.game-empty p { color: #dfd0c1; margin: 5px 0 8px; }
.game-empty .btn { width: fit-content; min-height: 42px; }
.empty-art, .auth-art { display: block; object-fit: contain; }
.empty-art { width: 96px; height: 96px; }
.auth-art { width: 74px; height: 74px; flex-shrink: 0; }
.auth-panel .panel-heading { align-items: center; gap: 10px; }
@media(max-width: 420px) {
  .game-empty { grid-template-columns: 58px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .empty-art, .auth-art { width: 58px; height: 58px; }
  .game-empty .btn { padding-inline: 10px; clip-path: none; border-radius: 5px; }
}
.race-portrait {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 23%;
  border: 1px solid var(--aden-line);
  border-radius: 5px;
}
.class-tab .race-portrait { width: 37px; height: 43px; }
.class-tab-row .class-tab { display: inline-flex; align-items: center; gap: 8px; }
.class-tab.active .race-portrait, .races-list a:hover .race-portrait {
  border-color: var(--aden-gold);
}
.class-tab:focus-visible,.races-list a:focus-visible { outline: 2px solid var(--aden-gold); }
.class-catalog-card .class-card-portrait { width: 44px; height: 52px; }
.class-detail-title { display: flex; align-items: center; gap: 12px; }
.class-detail-title h1 { margin-block: 5px; min-width: 0; }
.class-detail-title .race-portrait { width: 51px; height: 59px; border-color: var(--aden-gold); }
@media(max-width: 420px) {
  .class-catalog-card .class-card-portrait { width: 36px; height: 43px; }
}
.skill-mode-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
  margin-inline-end: 6px;
}
.skill-name-link:focus-visible { outline: 2px solid var(--aden-gold); }
@media (max-width: 540px) {
  .skill-mode-icon { width: 20px; height: 20px; margin-inline-end: 4px; }
}
.skill-mobile-list { display: none; }
@media (max-width: 640px) {
  .skills-desktop { display: none; }
  .skill-mobile-list { display: grid; list-style: none; margin: 0; padding: 0; gap: 8px; }
  .skill-mobile-card { border: 1px solid var(--aden-line); border-radius: 8px; padding: 12px; background: #171820; overflow-wrap: anywhere; }
  .skill-mobile-card .skill-name-link { display: inline-flex; align-items: center; flex-wrap: wrap; min-height: 44px; color: #f1d49e; }
  .skill-mobile-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; margin: 2px 0 0; }
  .skill-mobile-card dt { color: #c9b9aa; font-size: .8rem; }
  .skill-mobile-card dd { margin: 2px 0 0; font-size: .9rem; color: #f2e8db; }
}
.skill-source { padding: 12px 16px; overflow-wrap: anywhere; }
.skill-source summary { cursor: pointer; color: var(--aden-gold); padding-block: 8px; }
.skill-level-table tbody th { font-variant-numeric: tabular-nums; color: #eed6ac; }
@media (max-width:640px) {
  .skill-detail-layout .skill-level-table { width: 100%; min-width: 0; table-layout: fixed; }
  .skill-level-table th, .skill-level-table td { padding: 8px 4px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
#learned-skills { scroll-margin-top: 85px; }
:root {
  --page-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-serif: Georgia, "Times New Roman", serif;
  --ui-surface: #15171f;
  --ui-line: #ffffff21;
  --ui-accent: #e5bd80;
}
html[data-theme="knowledge"] { --ui-surface: #121b21; --ui-accent: #a9d8d9; }
html[data-theme="forum"] { --ui-surface: #1b161b; --ui-accent: #e6ac88; }
body { font-family: var(--page-sans); background: #0b0d12; }
.hero h1, .page-heading h1, .brand-mini strong, .panel-heading h2 { font-family: var(--page-serif); }
.topbar { background: #101218; }
.panel {
  background: var(--ui-surface);
  border-color: var(--ui-line);
  box-shadow: 0 10px 24px #0003;
}
.panel-heading { border-color: var(--ui-line); }
.panel-heading h2 { text-transform: none; letter-spacing: .01em; }
.project-card, .guide-card, .clan-card { border-color: var(--ui-line); }
:is(.project-card,.guide-card,.clan-card):hover { border-color: var(--ui-accent); }
.btn { clip-path: none; border-radius: 6px; gap: 8px; }
.btn-primary { background: #d5ac72; color: #171017; border-color: #ecc992; box-shadow: inset 0 1px #fff6; }
.btn-primary:hover { background: #edc994; color: #171017; }
.hero.hero-premium {
  min-height: clamp(420px, 43vw, 616px);
  place-items: center start;
  background: #10121a;
  border-bottom: 1px solid var(--ui-line);
  box-shadow: none;
}
.hero.hero-premium::before {
  background: linear-gradient(90deg,#080a11f0 0%,#080a11b8 38%,#080a1115 78%),
              linear-gradient(0deg,#10121a 0%,transparent 45%),
              var(--hero) 65% 42% / cover no-repeat;
}
html[data-theme] .hero.hero-premium .hero-inner {
  margin: 0;
  max-width: min(700px,100%);
  padding: 58px clamp(24px,6vw,100px);
  justify-self: start;
  text-align: left;
}
.hero-premium .hero-eyebrow { color: var(--ui-accent); letter-spacing: .19em; }
html[data-theme] .hero.hero-premium h1 {
  color: #fff0d9;
  font-size: clamp(3rem,6.8vw,6.5rem);
  line-height: .99;
  letter-spacing: -.05em;
  text-shadow: 0 4px 28px #0008;
  margin: 12px 0;
}
.hero-premium .hero-subtitle { font-size: clamp(1.05rem,2vw,1.5rem); color: #fff0e1; }
.hero-premium .hero-lead { margin-inline: 0; max-width: 40ch; }
html[data-theme] .hero.hero-premium .hero-actions { justify-content: flex-start; gap: 8px; }
.hero-premium .btn { min-height: 44px; font-size: 13px; padding-inline: 12px; }
.hero-premium .btn .game-icon { width: 19px; height: 19px; }
@media(max-width:640px) {
  .hero.hero-premium { min-height: 0; }
  .hero.hero-premium::before {
    background: linear-gradient(90deg,#0a0b13dd,#0a0b1350),
                linear-gradient(0deg,#10121a 4%,#10121a6e 66%,transparent),
                var(--hero) 72% center / cover no-repeat;
  }
  html[data-theme] .hero.hero-premium .hero-inner { padding: 68px 16px 25px; }
  html[data-theme] .hero.hero-premium h1 { font-size: clamp(2.55rem,10vw,4rem); }
  .hero-premium .hero-lead { font-size: .875rem; }
}
.btn-primary { text-shadow: none; }
.hero-premium .hero-edge { height: 1px; opacity: .7; }
html[data-theme="knowledge"] .hero-premium .btn-primary { background: #a9d3d4; border-color: #d4eeee; color: #102124; }
html[data-theme="knowledge"] .hero-premium .btn-primary:hover { background: #c3e3e3; }
html[data-theme="forum"] .hero-premium .btn-primary { background: #dfaa88; border-color: #ffd2b0; color: #261710; }
html[data-theme="forum"] .hero-premium .btn-primary:hover { background: #f1bf9d; }
@media(max-width:420px) {
  .hero-premium .hero-actions .btn-primary { flex-basis: 100%; }
  .hero-premium .hero-actions .btn-ornate { flex-grow: 1; }
}
.original-game-icon { display: inline-block; flex: 0 0 auto; width: 30px; height: 30px; vertical-align: middle; object-fit: contain; border: 1px solid var(--ui-line); border-radius: 4px; margin-inline-end: 7px; }
.skill-title { display: flex; align-items: center; gap: 6px; }
.skill-title h1 { min-width: 0; }
.skill-title .original-game-icon { width: 44px; height: 44px; }
.market-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 clamp(12px, 2.5vw, 32px) 16px; }
.market-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 11px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 6px; }
.market-shortcuts a:hover { border-color: var(--ui-accent); }
:root {
  --page-serif: "Cormorant Garamond", Georgia, serif;
  --page-sans: Inter, system-ui, sans-serif;
  --trim-line: #9a714864;
}
html[data-theme="knowledge"] { --trim-line: #7ab9be55; }
html[data-theme="forum"] { --trim-line: #b372585e; }
.hero h1,.page-heading h1 { font-weight: 700; letter-spacing: -.025em; }
.panel-heading h2,.brand-mini strong { font-weight: 700; }
.panel-heading h2 { font-size: 1.45rem; }
.topbar { border-bottom: 1px solid var(--trim-line); }
.topbar::after {
  height: 1px; bottom: -2px; opacity: .75;
  background: linear-gradient(90deg,transparent,var(--ui-accent) 48%,var(--ui-accent) 52%,transparent);
}
.main-nav { gap: 3px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 13px/1.2 var(--page-sans);
  text-shadow: none;
}
.main-nav a::after { content: none; }
.main-nav a .nav-label { color: inherit; font: inherit; margin: 0; }
.nav-art { object-fit: contain; flex: 0 0 auto; }
.main-nav a:hover,.main-nav a[aria-current] {
  color: var(--ui-accent);
  border-color: var(--trim-line);
  background: #ffffff08;
  text-shadow: none;
}
.panel-heading { border-bottom-color: var(--trim-line); }
.skills-verified-table th { background: #242229; color: #f0d6ad; }
.skills-verified-table td { color: #eee3d4; border-bottom-color: #ffffff18; }
.skills-verified-table :is(td,th) { font-size: 13px; font-variant-numeric: tabular-nums; }
.skills-verified-table tbody tr:hover { background: #ffffff0a; }
@media(max-width:930px) {
  .main-nav.is-open a { padding: 8px 11px; min-height: 44px; }
}
.crest-mini:has(.site-crest) { background: none; box-shadow: none; border: 0; width: 44px; height: 44px; }
.site-crest { display: block; width: 44px; height: 44px; object-fit: contain; }
@media(max-width:420px) {
  .crest-mini:has(.site-crest), .site-crest { width: 34px; height: 34px; }
}
.footer-crest { display: block; width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.portal-footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding-block: 14px; border-top: 1px solid var(--trim-line); }
.portal-footer-link { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 62px; border: 1px solid var(--ui-line); border-radius: 6px; background: var(--ui-surface); }
.portal-footer-link:hover { border-color: var(--ui-accent); }
.portal-footer-link img { flex-shrink: 0; object-fit: contain; }
.portal-footer-link strong,.portal-footer-link small { display: block; }
.portal-footer-link small { margin-top: 2px; color: #cabeb5; font-size: .75rem; }
.portal-footer-arrow { margin-inline-start: auto; color: var(--ui-accent); }
@media(max-width:640px) { .portal-footer-links { grid-template-columns: 1fr; } }
.error-wayfinding {
  display: grid;
  align-items: center;
  min-height: clamp(330px, 37vw, 530px);
  background: linear-gradient(90deg,#0b0d14f5,#0b0d14d9 42%,#0b0d1430),
              linear-gradient(0deg,#0b0d14,transparent 55%),
              url("aden/sections/gludin.webp") right center / cover no-repeat;
  border-bottom: 1px solid var(--trim-line);
}
.error-wayfinding-copy { padding: clamp(24px,6vw,88px); max-width: 720px; }
.error-wayfinding h1 { font: 700 clamp(2.5rem,6vw,5rem)/.98 var(--page-serif); margin: 8px 0 16px; color: #fff0da; }
.error-wayfinding p { color: #e7dacb; max-width: 46ch; }
.error-wayfinding .error-status { color: var(--ui-accent); font-weight: 600; letter-spacing: .08em; }
.error-wayfinding .page-actions { justify-content: flex-start; margin-top: 20px; }
@media (max-width: 500px) { .error-wayfinding .btn-primary { flex-basis: 100%; } }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  color: #c8bcaf;
  font-size: .8125rem;
}
.breadcrumbs a { color: var(--ui-accent); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-hidden="true"] { color: #a78e77; }
.breadcrumbs [aria-current="page"] { color: #eee2d3; }
.quest-trophy { display: flex; align-items: flex-start; gap: .7rem; padding-block: .35rem; }
.quest-trophy input { flex: 0 0 auto; margin-top: .35rem; accent-color: var(--ui-accent); }
.quest-trophy input:checked + span strong { color: var(--ui-accent); }
#trophies:has(input:not([hidden])) .quest-trophy { cursor: pointer; min-height: 44px; }
[data-quest-progress] { color: var(--ui-accent); font-variant-numeric: tabular-nums; }
.quest-route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.quest-route-card { height: 100%; background: linear-gradient(145deg,#24222a,var(--ui-surface)); }
.quest-route-card strong { font: 700 1.65rem/1.15 var(--page-serif); color: var(--ui-accent); }
@media(max-width:640px) { .quest-route-grid { grid-template-columns: 1fr; } }
.quest-route-card[aria-current="step"] { border-color: var(--ui-accent); box-shadow: inset 3px 0 var(--ui-accent); }
