:root {
  --vespera-header-bg: rgba(8, 10, 22, 0.88);
  --vespera-header-surface: #101427;
  --vespera-header-surface-soft: rgba(255, 255, 255, 0.045);
  --vespera-header-line: rgba(255, 255, 255, 0.09);
  --vespera-header-line-strong: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.28);
  --vespera-header-text: #f8f7ff;
  --vespera-header-muted: #929ab2;
  --vespera-header-primary: var(--vespera-primary, #8b5cf6);
  --vespera-header-cyan: #22d3ee;
}

/* Realm Deck: identity/status deck above a dedicated route rail. */
@media (min-width: 1200px) {
  .vespera-header { min-height: 122px; background: rgba(7, 9, 20, .96); border-bottom: 1px solid var(--vespera-header-line); }
  .vespera-header__inner { display: grid; min-height: 122px; grid-template-columns: minmax(220px, 1fr) auto auto; grid-template-rows: 72px 50px; grid-template-areas: "brand discord actions" "nav nav nav"; gap: 0 1rem; align-items: center; }
  .vespera-header__brand { grid-area: brand; justify-self: start; }
  .vespera-header__discord { grid-area: discord; display: inline-flex; min-width: 190px; gap: .7rem; align-items: center; justify-content: center; padding: .55rem .85rem; color: var(--vespera-header-text); border-inline: 1px solid var(--vespera-header-line); }
  .vespera-header__discord > i { display: grid; width: 36px; height: 36px; place-items: center; color: var(--vespera-primary-bright, #a78bfa); border-radius: 12px; background: rgba(var(--vespera-primary-rgb, 139, 92, 246), .12); font-size: 1.2rem; }
  .vespera-header__discord span { display: flex; flex-direction: column; }
  .vespera-header__discord small { color: var(--vespera-header-muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
  .vespera-header__discord strong { color: #fff; font-size: .7rem; }
  .vespera-header__actions { grid-area: actions; justify-self: end; }
  .vespera-navigation { position: relative; grid-area: nav; display: block !important; width: 100%; min-width: 0; align-self: stretch; border-top: 1px solid var(--vespera-header-line); }
  .vespera-navigation__list { display: flex; height: 49px; gap: .25rem; align-items: center; overflow: visible; padding: 0; scrollbar-width: none; }
  .vespera-navigation__list::-webkit-scrollbar { display: none; }
  .vespera-navigation__link { min-height: 38px; padding-inline: .85rem; border-radius: 10px; white-space: nowrap; }
  .vespera-header__toggle,
  .vespera-navigation__mobile-actions { display: none !important; }
}

@media (max-width: 1199.98px) {
  .vespera-header { position: sticky; top: 0; z-index: 1041; min-height: 64px; background: rgba(7,9,20,.96); backdrop-filter: blur(18px); }
  .vespera-header__inner { display: flex; min-height: 64px; gap: .65rem; align-items: center; }
  .vespera-header__brand { min-width: 0; margin-right: auto; }
  .vespera-header__brand-mark { width: 42px; height: 42px; }
  .vespera-header__brand-copy small { display: none; }
  .vespera-header__discord,
  .vespera-header__server,
  .vespera-header__toggle { order: 5; display: grid; flex: 0 0 42px; }
  .vespera-header__actions { margin-left: 0; }
  .vespera-user__copy { display: none; }
  .vespera-user__trigger { width: 42px; min-width: 42px; padding: 0; justify-content: center; }
  .vespera-user__trigger > i { display: none; }
  .vespera-navigation { position: fixed !important; z-index: 1050; inset: 64px 0 0; width: 100%; height: calc(100dvh - 64px); padding: 1rem max(1rem, calc((100vw - 720px)/2)); overflow-y: auto; color: #fff; background: rgba(7,9,20,.99); overscroll-behavior: contain; }
  .vespera-navigation.show { display: flex !important; flex-direction: column; }
  .vespera-navigation__list { display: flex; flex: 0 0 auto; flex-direction: column; gap: .35rem; align-items: stretch; padding: 0; }
  .vespera-navigation__item { width: 100%; }
  .vespera-navigation__link { display: flex; width: 100%; min-height: 48px; justify-content: flex-start; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.025); }
  .vespera-navigation__dropdown { position: static !important; width: 100%; transform: none !important; box-shadow: none; }
  .vespera-navigation__mobile-actions { display: grid; gap: .55rem; margin-top: auto; padding: 1rem 0 max(1rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--vespera-header-line); }
  .vespera-navigation__mobile-actions > a,
  .vespera-navigation__mobile-actions > button { display: flex; width: 100%; min-height: 56px; gap: .75rem; align-items: center; padding: .7rem .9rem; color: #fff; text-align: left; border: 1px solid var(--vespera-header-line); border-radius: 14px; background: rgba(255,255,255,.04); }
  .vespera-navigation__mobile-actions i { display: grid; width: 36px; height: 36px; place-items: center; color: var(--vespera-primary-bright, #a78bfa); border-radius: 10px; background: rgba(var(--vespera-primary-rgb, 139, 92, 246), .12); }
  .vespera-navigation__mobile-actions span { display: flex; min-width: 0; flex-direction: column; }
  .vespera-navigation__mobile-actions small { color: var(--vespera-header-muted); font-size: .62rem; }
  .vespera-navigation__mobile-actions strong { overflow: hidden; color: #fff; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
  body.vespera-navigation-open { overflow: hidden; }
}

.vespera-header :is(a,button):focus-visible { outline: 3px solid var(--vespera-primary-bright, #a78bfa) !important; outline-offset: 2px; }
.vespera-account-panel { height: 100dvh !important; max-height: 100dvh; overflow: hidden; }
.vespera-account-panel__header { flex: 0 0 auto; }
.vespera-account-panel__body { min-height: 0; flex: 1 1 auto; overflow-y: auto !important; overscroll-behavior: contain; }
.vespera-account-panel__logout { position: sticky; z-index: 2; bottom: 0; background: linear-gradient(0deg,#0b0e1e 75%,transparent); }

@media (prefers-reduced-motion: reduce) {
  .vespera-header *, .vespera-account-panel * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Canonical Realm Deck layout; keep last so legacy theme rules cannot win. */
@media (min-width: 1200px) {
  .vespera-header { min-height: 122px !important; height: auto !important; }
  .vespera-header .vespera-header__inner { display: grid !important; min-height: 122px !important; height: 122px !important; grid-template-columns: minmax(220px,1fr) auto auto !important; grid-template-rows: 72px 50px !important; grid-template-areas: "brand discord actions" "nav nav nav" !important; gap: 0 1rem !important; align-items: center !important; }
  .vespera-header .vespera-header__brand { grid-area: brand; }
  .vespera-header .vespera-header__discord { grid-area: discord; display: inline-flex !important; }
  .vespera-header .vespera-header__actions { grid-area: actions; }
  .vespera-header .vespera-navigation { position: relative !important; inset: auto !important; grid-area: nav; display: block !important; width: 100% !important; height: 50px !important; max-height: none !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; border-top: 1px solid var(--vespera-header-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  .vespera-header .vespera-navigation__list { height: 49px !important; flex-flow: row nowrap !important; overflow: visible !important; }
  .vespera-header .vespera-navigation__mobile-actions,
  .vespera-header .vespera-header__toggle { display: none !important; }
}

@media (max-width: 1199.98px) {
  .vespera-header { min-height: 64px !important; height: 64px !important; }
  .vespera-header .vespera-header__inner { display: flex !important; min-height: 64px !important; height: 64px !important; }
  .vespera-header .vespera-navigation { position: fixed !important; inset: var(--vespera-drawer-top,64px) 0 0 !important; width: 100vw !important; max-width: none !important; height: calc(100dvh - var(--vespera-drawer-top,64px)) !important; max-height: none !important; padding: 1rem max(1rem,calc((100vw - 720px)/2)) !important; margin: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; border: 0 !important; border-radius: 0 !important; background: rgba(7,9,20,.995) !important; box-shadow: none !important; overscroll-behavior: contain; }
  .vespera-header .vespera-navigation.show { display: flex !important; flex-direction: column !important; }
  .vespera-header .vespera-navigation__list { flex: 0 0 auto !important; flex-flow: column nowrap !important; overflow: visible !important; }
  .vespera-header .vespera-navigation__mobile-actions { margin-top: auto !important; }
  body.vespera-navigation-open { overflow: hidden !important; touch-action: none; }
}
.vespera-navigation__mobile-register { display: none !important; }
@media (max-width: 767.98px) {
  .vespera-navigation__mobile-actions > .vespera-navigation__mobile-register { display: flex !important; }
}

.vespera-account-panel { display: flex !important; height: 100dvh !important; max-height: 100dvh !important; flex-direction: column !important; overflow: hidden !important; }
.vespera-account-panel .vespera-account-panel__header,
.vespera-account-panel .vespera-account-panel__footer { flex: 0 0 auto !important; }
.vespera-account-panel .vespera-account-panel__body { min-height: 0 !important; flex: 1 1 auto !important; overflow-y: auto !important; }
.vespera-account-panel .vespera-account-panel__footer { padding: .75rem 1rem max(.75rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--vespera-header-line); background: #0b0e1e; }
.vespera-account-panel .vespera-account-panel__logout { position: static !important; margin: 0 !important; background: none !important; }

/* Restrained command language: status and account controls share one compact rhythm. */
@media (min-width: 1200px) {
  .vespera-header .vespera-header__discord { min-width: 0 !important; gap: .5rem !important; padding: .35rem .65rem !important; border: 1px solid var(--vespera-header-line) !important; border-radius: 999px !important; background: rgba(255,255,255,.025) !important; }
  .vespera-header .vespera-header__discord > i { width: 28px !important; height: 28px !important; border-radius: 50% !important; font-size: 1rem !important; }
  .vespera-header .vespera-header__discord strong { font-size: .68rem !important; }
  .vespera-header .vespera-header__discord small { font-size: .54rem !important; }
  .vespera-header .vespera-header__server,
  .vespera-header .vespera-header__login,
  .vespera-header .vespera-header__register,
  .vespera-header .vespera-user__trigger,
  .vespera-header .vespera-header__icon-button { min-height: 40px !important; height: 40px !important; border: 1px solid var(--vespera-header-line) !important; border-radius: 999px !important; background: rgba(255,255,255,.025) !important; box-shadow: none !important; }
  .vespera-header .vespera-header__server { gap: .45rem !important; padding: 0 .7rem !important; }
  .vespera-header .vespera-header__server strong { font-size: .68rem !important; }
  .vespera-header .vespera-header__server > i { font-size: .85rem !important; }
  .vespera-header .vespera-header__actions { gap: .4rem !important; }
}

@media (max-width: 1199.98px) {
  .vespera-header .vespera-navigation__mobile-actions { gap: 0 !important; border-top: 1px solid var(--vespera-header-line) !important; }
  .vespera-header .vespera-navigation__mobile-actions > a,
  .vespera-header .vespera-navigation__mobile-actions > button { min-height: 46px !important; padding: .45rem .3rem !important; border: 0 !important; border-bottom: 1px solid var(--vespera-header-line) !important; border-radius: 0 !important; background: transparent !important; }
  .vespera-header .vespera-navigation__mobile-actions i { width: 30px !important; height: 30px !important; background: transparent !important; }
  .vespera-header .vespera-navigation__mobile-actions strong { font-size: .72rem !important; }
}

.vespera-announcement,
.vespera-header,
.vespera-account-panel {
  box-sizing: border-box;
}

.vespera-announcement *,
.vespera-header *,
.vespera-account-panel * {
  box-sizing: border-box;
}

/* Tabler applies underline on every hovered anchor. Keep the entire header
   system opt-out scoped so it cannot leak into page content. */
.vespera-announcement a,
.vespera-announcement a:hover,
.vespera-announcement a:focus,
.vespera-announcement a:active,
.vespera-header a,
.vespera-header a:hover,
.vespera-header a:focus,
.vespera-header a:active,
.vespera-account-panel a,
.vespera-account-panel a:hover,
.vespera-account-panel a:focus,
.vespera-account-panel a:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.vespera-announcement {
  position: relative;
  z-index: 1042;
  height: 38px;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.78), rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.98) 48%, rgba(8, 121, 142, 0.95));
}

.vespera-announcement::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.24), transparent 65%);
  transform: translateX(-70%);
  animation: vespera-announcement-sheen 8s ease-in-out infinite;
}

.vespera-announcement__inner {
  position: relative;
  display: flex;
  max-width: 1320px;
  height: 100%;
  align-items: center;
}

.vespera-announcement__label,
.vespera-announcement__pulse {
  display: inline-flex;
  height: 100%;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vespera-announcement__label {
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.vespera-announcement__label i {
  font-size: 0.9rem;
}

.vespera-announcement__track {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding: 0 1rem;
}

.vespera-announcement__track ul {
  display: flex;
  width: max-content;
  gap: 2.2rem;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  animation: vespera-announcement-track 28s linear infinite;
}

.vespera-announcement__track:hover ul {
  animation-play-state: paused;
}

.vespera-announcement__track li {
  margin: 0;
}

.vespera-announcement__track a {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.vespera-announcement__track a:hover {
  color: #fff;
}

.vespera-announcement__track i {
  font-size: 0.82rem;
}

.vespera-announcement__pulse {
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.vespera-announcement__pulse span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7df6c4;
  box-shadow: 0 0 0 4px rgba(125, 246, 196, 0.12), 0 0 14px rgba(125, 246, 196, 0.8);
}

.vespera-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  width: 100%;
  min-height: 78px;
  color: var(--vespera-header-text);
  border-bottom: 1px solid var(--vespera-header-line);
  background: var(--vespera-header-bg);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(135%);
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body:has(.vespera-home) .vespera-header,
body.vespera-has-home .vespera-header {
  position: absolute;
  top: 0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(5, 6, 16, 0.97) 0%, rgba(5, 6, 16, 0.84) 68%, rgba(5, 6, 16, 0.62) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px) saturate(115%);
}

body:has(.vespera-home) .vespera-announcement + .vespera-header,
body.vespera-has-home .vespera-announcement + .vespera-header {
  top: 38px;
}

.vespera-header.vespera-header--scrolled {
  position: fixed !important;
  top: 0 !important;
  border-bottom-color: var(--vespera-header-line);
  background: rgba(7, 9, 20, 0.93) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
}

.vespera-header__inner {
  display: flex;
  max-width: 1320px;
  min-height: 78px;
  gap: 1.25rem;
  align-items: center;
}

.vespera-header__brand {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  gap: 0.7rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.vespera-header__brand:hover {
  color: #fff;
}

.vespera-header__brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.2), rgba(34, 211, 238, 0.08));
  box-shadow: inset 0 0 22px rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.08), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.vespera-header__brand-mark img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.vespera-header__brand-copy {
  display: flex;
  max-width: 130px;
  flex-direction: column;
}

.vespera-header__brand-copy strong,
.vespera-header__brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vespera-header__brand-copy strong {
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.vespera-header__brand-copy small {
  margin-top: 0.1rem;
  color: var(--vespera-header-muted);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vespera-navigation {
  min-width: 0;
  flex: 1;
}

.vespera-navigation__list {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.vespera-navigation__item {
  position: relative;
  margin: 0;
}

.vespera-navigation__link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  gap: 0.45rem;
  align-items: center;
  padding: 0 0.72rem;
  color: rgba(240, 240, 251, 0.68);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.055em;
  border-radius: 12px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 170ms ease, background-color 170ms ease;
}

.vespera-navigation__link::after {
  display: none !important;
}

.vespera-navigation__link:hover,
.vespera-navigation__item.active > .vespera-navigation__link,
.vespera-navigation__item.show > .vespera-navigation__link {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.vespera-navigation__item.active > .vespera-navigation__link {
  box-shadow: inset 0 0 0 1px rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.14);
}

.vespera-navigation__icon {
  display: none;
  color: var(--vespera-primary-bright, #a99cf2);
  font-size: 0.9rem;
}

.vespera-navigation__chevron {
  color: #6f768d;
  font-size: 0.72rem;
  transition: transform 180ms ease;
}

.vespera-navigation__item.show .vespera-navigation__chevron {
  transform: rotate(180deg);
}

.vespera-navigation__dropdown {
  min-width: 230px;
  padding: 0.65rem;
  margin-top: 0.55rem !important;
  border: 1px solid var(--vespera-header-line);
  border-radius: 16px;
  background: rgba(12, 15, 30, 0.97);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.vespera-navigation__dropdown::before {
  position: absolute;
  top: -1px;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.65), transparent);
}

.vespera-navigation__dropdown .dropdown-item {
  display: flex;
  min-height: 42px;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.72rem;
  color: #a8aec0;
  font-size: 0.76rem;
  font-weight: 650;
  border-radius: 10px;
}

.vespera-navigation__dropdown .dropdown-item:hover,
.vespera-navigation__dropdown .dropdown-item:focus {
  color: #fff;
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.12);
}

.vespera-navigation__dropdown .dropdown-item i {
  color: #646d87;
  font-size: 0.82rem;
}

.vespera-header__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  align-items: center;
  margin-left: auto;
}

.vespera-header__server {
  display: flex;
  max-width: 190px;
  min-height: 46px;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.58rem;
  color: #fff;
  border: 1px solid var(--vespera-header-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.vespera-header__server:hover {
  color: #fff;
  border-color: var(--vespera-header-line-strong);
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.08);
  transform: translateY(-2px);
}

.vespera-header__server-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #46df9d;
  box-shadow: 0 0 0 4px rgba(70, 223, 157, 0.11), 0 0 13px rgba(70, 223, 157, 0.58);
}

.vespera-header__server > span:not(.vespera-header__server-dot) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.vespera-header__server small,
.vespera-header__server strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vespera-header__server small {
  color: var(--vespera-header-muted);
  font-size: 0.54rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vespera-header__server strong {
  font-size: 0.68rem;
  font-weight: 760;
}

.vespera-header__server > i {
  color: #747c96;
  font-size: 0.86rem;
}

.vespera-header__icon-button,
.vespera-header__login,
.vespera-header__register,
.vespera-user__trigger,
.vespera-header__toggle {
  border: 1px solid var(--vespera-header-line);
  background: rgba(255, 255, 255, 0.04);
}

.vespera-header__icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #d9d8e5;
  font-size: 1.1rem;
  border-radius: 13px;
}

.vespera-header__icon-button:hover {
  color: #fff;
  border-color: var(--vespera-header-line-strong);
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.1);
}

.vespera-header__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  place-items: center;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 850;
  border: 2px solid #0b0e1d;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vespera-primary-bright, #a970ff), var(--vespera-primary-dark, #6b46e7));
}

.vespera-user__trigger {
  display: flex;
  min-height: 48px;
  gap: 0.55rem;
  align-items: center;
  padding: 0.3rem 0.52rem 0.3rem 0.32rem;
  color: #fff;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 170ms ease, background-color 170ms ease;
}

.vespera-user__trigger:hover {
  border-color: var(--vespera-header-line-strong);
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.09);
}

.vespera-user__trigger .avatar {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.vespera-user__copy {
  display: flex;
  width: 98px;
  min-width: 0;
  flex-direction: column;
  text-align: left;
}

.vespera-user__copy strong,
.vespera-user__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vespera-user__copy strong {
  font-size: 0.7rem;
  font-weight: 780;
}

.vespera-user__copy small {
  margin-top: 0.08rem;
  color: var(--vespera-header-muted);
  font-size: 0.57rem;
}

.vespera-user__trigger > i {
  color: #737b93;
  font-size: 0.9rem;
}

.vespera-header__login,
.vespera-header__register {
  display: inline-flex;
  min-height: 44px;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.92rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  border-radius: 13px;
  text-decoration: none;
}

.vespera-header__login:hover {
  color: #fff;
  border-color: var(--vespera-header-line-strong);
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.09);
}

.vespera-header__register {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--vespera-primary-bright, #a78bfa), var(--vespera-primary-dark, #6845df));
  box-shadow: 0 12px 28px rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.26);
}

.vespera-header__register:hover {
  color: #fff;
  box-shadow: 0 14px 32px rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.4);
  transform: translateY(-1px);
}

.vespera-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 13px;
}

.vespera-header__toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #d8d9e5;
  transition: transform 180ms ease, opacity 180ms ease;
}

.vespera-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.vespera-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.vespera-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.vespera-account-panel {
  width: min(440px, 100vw) !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh;
  overflow: hidden;
  color: var(--vespera-header-text);
  border-left: 1px solid var(--vespera-header-line) !important;
  background:
    radial-gradient(circle at 90% 8%, rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.18), transparent 17rem),
    radial-gradient(circle at 8% 88%, rgba(34, 211, 238, 0.08), transparent 18rem),
    #090c19 !important;
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.45);
}

.vespera-account-panel__aurora {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.2);
  filter: blur(70px);
}

.vespera-account-panel__header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  align-items: center;
  padding: 1.4rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--vespera-header-line);
}

.vespera-account-panel__header > div {
  display: flex;
  flex-direction: column;
}

.vespera-account-panel__header span,
.vespera-account-panel__section-title span {
  color: var(--vespera-primary-bright, #a695ef);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vespera-account-panel__header h2 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.vespera-account-panel__close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #c6c8d5;
  border: 1px solid var(--vespera-header-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  transition: color 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.vespera-account-panel__close:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.09);
}

.vespera-account-panel__body {
  position: relative;
  z-index: 2;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1.25rem 1.5rem 1.5rem;
}

.vespera-account-panel__body::-webkit-scrollbar {
  width: 6px;
}

.vespera-account-panel__body::-webkit-scrollbar-track {
  background: transparent;
}

.vespera-account-panel__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.28);
}

.vespera-account-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.15), rgba(17, 20, 39, 0.82) 56%, rgba(34, 211, 238, 0.06));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.vespera-account-card::after {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 180px;
  height: 180px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--vespera-primary-rgb, 139, 92, 246), .18), transparent 68%);
}

.vespera-account-card__identity {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.95rem;
  align-items: center;
}

.vespera-account-card__identity .avatar {
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 0 0 5px rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.09);
}

.vespera-account-card__identity > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.vespera-account-card__identity small {
  color: var(--vespera-header-muted);
  font-size: 0.67rem;
  font-weight: 650;
}

.vespera-account-card__identity strong {
  overflow: hidden;
  margin-top: 0.15rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vespera-account-card__identity em {
  width: max-content;
  margin-top: 0.35rem;
  padding: 0.22rem 0.5rem;
  color: var(--vespera-primary-bright, #c5b7ff);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 750;
  border: 1px solid rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.2);
  border-radius: 999px;
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.1);
}

.vespera-account-card__profile-link {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
  margin-top: 1.15rem;
  color: #d8d3ee;
  font-size: 0.7rem;
  font-weight: 780;
  border: 1px solid var(--vespera-header-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.vespera-account-card__profile-link:hover {
  color: #fff;
  border-color: var(--vespera-header-line-strong);
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.09);
}

.vespera-account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.vespera-account-stat {
  display: flex;
  min-width: 0;
  min-height: 74px;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  color: #fff;
  border: 1px solid var(--vespera-header-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.vespera-account-stat:hover {
  color: #fff;
  border-color: var(--vespera-header-line-strong);
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.08);
}

.vespera-account-stat > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--vespera-primary-bright, #b9a7ff);
  font-size: 1.1rem;
  border-radius: 11px;
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.1);
}

.vespera-account-stat > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.vespera-account-stat small,
.vespera-account-stat strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vespera-account-stat small {
  color: var(--vespera-header-muted);
  font-size: 0.6rem;
  font-weight: 680;
}

.vespera-account-stat strong {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 790;
}

.vespera-account-panel__section-title {
  padding: 1.4rem 0 0.65rem;
}

.vespera-account-links {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--vespera-header-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.vespera-account-links > a {
  display: flex;
  min-height: 68px;
  gap: 0.78rem;
  align-items: center;
  padding: 0.75rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition: background-color 170ms ease;
}

.vespera-account-links > a:last-child {
  border-bottom: 0;
}

.vespera-account-links > a:hover {
  color: #fff;
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.08);
}

.vespera-account-links__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--vespera-primary-bright, #b7a6ff);
  font-size: 1.05rem;
  border-radius: 12px;
  background: rgba(var(--vespera-primary-rgb, 139, 92, 246), 0.09);
}

.vespera-account-links > a > span:not(.vespera-account-links__icon) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.vespera-account-links strong,
.vespera-account-links small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vespera-account-links strong {
  font-size: 0.76rem;
  font-weight: 760;
}

.vespera-account-links small {
  margin-top: 0.12rem;
  color: var(--vespera-header-muted);
  font-size: 0.62rem;
}

.vespera-account-links > a > i {
  color: #5f687f;
  font-size: 0.86rem;
  transition: transform 170ms ease;
}

.vespera-account-links > a:hover > i {
  transform: translateX(3px);
}

.vespera-account-panel__logout {
  margin-top: 0.85rem;
}

.vespera-account-panel__logout button {
  display: flex;
  width: 100%;
  min-height: 62px;
  gap: 0.78rem;
  align-items: center;
  padding: 0.72rem;
  color: #f8b4b4;
  border: 1px solid rgba(248, 113, 113, 0.14);
  border-radius: 16px;
  background: rgba(248, 113, 113, 0.055);
  text-align: left;
}

.vespera-account-panel__logout button:hover {
  color: #ffd4d4;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.1);
}

.vespera-account-panel__logout button > i:first-child {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  font-size: 1.05rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.09);
}

.vespera-account-panel__logout button > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.vespera-account-panel__logout strong {
  font-size: 0.76rem;
}

.vespera-account-panel__logout small {
  margin-top: 0.12rem;
  color: rgba(248, 180, 180, 0.62);
  font-size: 0.62rem;
}

.vespera-account-panel__logout button > i:last-child {
  color: rgba(248, 180, 180, 0.5);
}

.offcanvas-backdrop.show {
  opacity: 0.72;
  background: #03040b;
  backdrop-filter: blur(3px);
}

@keyframes vespera-announcement-sheen {
  0%, 18% { transform: translateX(-70%); }
  55%, 100% { transform: translateX(90%); }
}

@keyframes vespera-announcement-track {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

@media (min-width: 1200px) {
  .vespera-navigation.collapse {
    display: block !important;
  }
}

@media (max-width: 1199.98px) {
  .vespera-header__inner {
    gap: 0.7rem;
  }

  .vespera-header__toggle {
    display: flex;
    order: 3;
  }

  .vespera-navigation {
    position: absolute;
    top: calc(100% + 10px);
    right: 0.75rem;
    left: 0.75rem;
    z-index: 1050;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--vespera-header-line);
    border-radius: 18px;
    background: rgba(10, 13, 27, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(22px);
  }

  .vespera-navigation__list {
    flex-direction: column;
    align-items: stretch;
  }

  .vespera-navigation__link {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 0.8rem;
  }

  .vespera-navigation__icon {
    display: inline-flex;
    width: 22px;
    justify-content: center;
  }

  .vespera-navigation__chevron {
    margin-left: auto;
  }

  .vespera-navigation__dropdown {
    position: static !important;
    min-width: 0;
    margin: 0.25rem 0 0.45rem 2.2rem !important;
    border-radius: 13px;
    box-shadow: none;
    transform: none !important;
  }

  .vespera-header__server {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .vespera-announcement__label span,
  .vespera-announcement__pulse {
    display: none;
  }

  .vespera-announcement__label {
    padding-right: 0.65rem;
  }

  .vespera-announcement__track {
    padding-right: 0;
  }

  .vespera-header,
  .vespera-header__inner {
    min-height: 68px;
  }

  .vespera-header__brand-copy,
  .vespera-user__copy,
  .vespera-user__trigger > i,
  .vespera-header__login span,
  .vespera-header__register {
    display: none;
  }

  .vespera-header__brand-mark {
    width: 42px;
    height: 42px;
  }

  .vespera-header__actions {
    gap: 0.4rem;
  }

  .vespera-user__trigger {
    width: 44px;
    height: 44px;
    padding: 0.25rem;
    justify-content: center;
  }

  .vespera-header__login {
    width: 44px;
    padding: 0;
  }

  .vespera-navigation {
    top: calc(100% + 7px);
  }

  .vespera-account-panel__header {
    padding-inline: 1rem;
  }

  .vespera-account-panel__body {
    padding: 1rem;
  }
}

@media (max-width: 399.98px) {
  .vespera-header__icon-button {
    display: none;
  }

  .vespera-account-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vespera-announcement::before,
  .vespera-announcement__track ul {
    animation: none;
  }

  .vespera-navigation__chevron,
  .vespera-account-links > a > i {
    transition: none;
  }
}

/* Keep utility actions in the same visual language as the route rail. */
@media (min-width: 1200px) {
  .vespera-header .vespera-header__discord {
    min-width: 0 !important;
    min-height: 38px !important;
    gap: 0.45rem !important;
    padding: 0 0.72rem !important;
    color: rgba(240, 240, 251, 0.68) !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .vespera-header .vespera-header__discord > i {
    width: 20px !important;
    height: 20px !important;
    color: var(--vespera-primary-bright, #a99cf2) !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 0.95rem !important;
  }

  .vespera-header .vespera-header__discord strong {
    color: inherit !important;
    font-size: 0.69rem !important;
    letter-spacing: 0.055em !important;
    text-transform: uppercase !important;
  }

  .vespera-header .vespera-header__discord small {
    display: none !important;
  }

  .vespera-header .vespera-header__server,
  .vespera-header .vespera-header__login,
  .vespera-header .vespera-header__register,
  .vespera-header .vespera-user__trigger,
  .vespera-header .vespera-header__icon-button {
    min-height: 38px !important;
    height: 38px !important;
    color: rgba(240, 240, 251, 0.68) !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .vespera-header .vespera-header__server,
  .vespera-header .vespera-header__login,
  .vespera-header .vespera-header__register {
    padding: 0 0.72rem !important;
    font-size: 0.69rem !important;
    font-weight: 780 !important;
    letter-spacing: 0.055em !important;
    text-transform: uppercase !important;
  }

  .vespera-header .vespera-header__server {
    gap: 0.45rem !important;
  }

  .vespera-header .vespera-header__icon-button {
    width: 38px !important;
  }

  .vespera-header .vespera-user__trigger {
    padding: 0.2rem 0.45rem !important;
  }

  .vespera-header .vespera-header__discord:hover,
  .vespera-header .vespera-header__server:hover,
  .vespera-header .vespera-header__login:hover,
  .vespera-header .vespera-header__register:hover,
  .vespera-header .vespera-user__trigger:hover,
  .vespera-header .vespera-header__icon-button:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.055) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .vespera-header .vespera-header__actions {
    gap: 0.15rem !important;
  }
}
@media (max-width: 1199.98px) {
  .vespera-header .vespera-navigation__mobile-actions { gap: 0 !important; border-top: 1px solid var(--vespera-header-line) !important; }
  .vespera-header .vespera-navigation__mobile-actions > a,.vespera-header .vespera-navigation__mobile-actions > button { min-height: 46px !important; padding: .45rem .3rem !important; border: 0 !important; border-bottom: 1px solid var(--vespera-header-line) !important; border-radius: 0 !important; background: transparent !important; }
}

/* Final Realm Deck authority. */
@media (min-width: 1200px) {
  .vespera-header { min-height: 122px !important; height: auto !important; }
  .vespera-header .vespera-header__inner { display: grid !important; min-height: 122px !important; height: 122px !important; grid-template-columns: minmax(220px,1fr) auto auto !important; grid-template-rows: 72px 50px !important; grid-template-areas: "brand discord actions" "nav nav nav" !important; gap: 0 1rem !important; }
  .vespera-header .vespera-header__brand { grid-area: brand; }
  .vespera-header .vespera-header__discord { grid-area: discord; display: inline-flex !important; }
  .vespera-header .vespera-header__actions { grid-area: actions; }
  .vespera-header .vespera-navigation { position: relative !important; inset: auto !important; grid-area: nav; display: block !important; width: 100% !important; height: 50px !important; max-height: none !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  .vespera-header .vespera-navigation__list { height: 49px !important; flex-flow: row nowrap !important; overflow: visible !important; }
  .vespera-header .vespera-navigation__item.dropdown { z-index: 2; }
  .vespera-header .vespera-navigation__dropdown { z-index: 1060; }
  .vespera-header .vespera-navigation__mobile-actions,.vespera-header .vespera-header__toggle { display: none !important; }
}
@media (max-width: 1199.98px) {
  .vespera-header,.vespera-header .vespera-header__inner { min-height: 64px !important; height: 64px !important; }
  .vespera-header .vespera-header__inner { display: flex !important; }
  .vespera-header .vespera-navigation { position: fixed !important; inset: var(--vespera-drawer-top,64px) 0 0 !important; width: 100vw !important; max-width: none !important; height: calc(100dvh - var(--vespera-drawer-top,64px)) !important; max-height: none !important; padding: 1rem max(1rem,calc((100vw - 720px)/2)) !important; margin: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; border: 0 !important; border-radius: 0 !important; background: rgba(7,9,20,.995) !important; box-shadow: none !important; overscroll-behavior: contain; }
  .vespera-header .vespera-navigation.show { display: flex !important; flex-direction: column !important; }
  .vespera-header .vespera-navigation__list { flex: 0 0 auto !important; flex-flow: column nowrap !important; overflow: visible !important; }
  .vespera-header .vespera-navigation__mobile-actions { margin-top: auto !important; }
  body.vespera-navigation-open { overflow: hidden !important; touch-action: none; }
}
.vespera-account-panel { display: flex !important; height: 100dvh !important; max-height: 100dvh !important; flex-direction: column !important; overflow: hidden !important; }
.vespera-account-panel .vespera-account-panel__header,.vespera-account-panel .vespera-account-panel__footer { flex: 0 0 auto !important; }
.vespera-account-panel .vespera-account-panel__body { min-height: 0 !important; flex: 1 1 auto !important; overflow-y: auto !important; }
.vespera-account-panel .vespera-account-panel__footer { padding: .75rem 1rem max(.75rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--vespera-header-line); background: #0b0e1e; }
.vespera-account-panel .vespera-account-panel__logout { position: static !important; margin: 0 !important; background: none !important; }
