:root {
  --portal-bg: #100b1e;
  --portal-panel: #140d27;
  --portal-panel-deep: #0d091a;
  --portal-line: #7345b0;
  --portal-gold: #ddbf78;
  --portal-muted: #b5a9c5;
}

body {
  background: var(--portal-bg) url('/assets/theme-fifteen-purple-bg.jpg') center top / max(1440px, 100vw) auto no-repeat;
  color: #f3edf6;
}
body:before { display: none; }
.site-shell { background: linear-gradient(180deg, transparent 0, transparent 400px, #100b1edc 760px, #100b1e 1400px); }
.site-header {
  height: 445px;
  border: 0;
  background: transparent;
  box-shadow: inset 0 -90px 90px -90px #080511;
  backdrop-filter: none;
}
.header-inner {
  position: relative;
  display: block;
  min-height: 445px;
  height: 445px;
  background: none;
}
.brand {
  position: absolute;
  top: 184px;
  left: 0;
  width: 510px;
  height: 170px;
  z-index: 2;
}
.brand:before { left: 80px; top: 42px; width: 350px; height: 85px; opacity: .38; background: #55bdf1; }
.brand-art {
  width: 510px;
  height: 170px;
  opacity: 1;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 4px 18px #140a2a) drop-shadow(0 0 15px #3a98dc5c);
}
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid #d9c0ef2e;
}
.site-nav a {
  height: 72px;
  min-width: 116px;
  padding: 0 15px;
  justify-content: center;
  border-bottom: 2px solid transparent;
  color: #f0dbb0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px #100821;
}
.site-nav a:hover, .site-nav a[aria-current=page] { color: #fff5d6; border-color: var(--portal-gold); background: #2714406b; }
.header-actions { position: absolute; right: 0; top: 13px; gap: 12px; }
.header-actions .account-link { color: #f3e4bd; text-shadow: 0 2px 8px #100821; }
.header-actions .button-gold { min-height: 38px; color: #1b1027; background: linear-gradient(#fae3a4, #b68440); border-color: #ffe9ad; }
.site-main { position: relative; z-index: 2; width: min(1220px, calc(100% - 32px)); padding-bottom: 70px; }

.portal-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr) 274px; gap: 12px; align-items: start; }
.portal-column { display: grid; gap: 12px; align-content: start; min-width: 0; }
.portal-box, .portal-center, .portal-column .preview-panel {
  background: linear-gradient(165deg, #1a0f30f5, #0e0a1df7 76%);
  border: 1px solid #8e5dc34a;
  box-shadow: 0 12px 35px #06030ec4, inset 0 1px #8f67bd30;
}
.portal-box { padding: 21px 19px 24px; }
.portal-box h2, .portal-column .section-title h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 17px;
  color: var(--portal-gold);
  font: 700 15px/1.2 Georgia, serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-bottom: 1px solid #bb9edd56;
}
.portal-box h2:after, .portal-column .section-title:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 85px;
  height: 2px;
  background: linear-gradient(90deg, #bb8ffc, #7339c2, transparent);
  box-shadow: 0 0 14px #9f4cf8;
}
.portal-login form { display: grid; gap: 10px; }
.portal-login input {
  width: 100%;
  height: 42px;
  padding: 9px 12px;
  color: #f7f2fb;
  background: #100b20;
  border: 1px solid #73598b82;
  border-radius: 0;
  box-shadow: inset 0 2px 8px #05030b;
}
.portal-login input::placeholder { color: #9e91ad; }
.portal-login input:focus { border-color: #bd91f8; }
.portal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  color: #f8eac5;
  background: linear-gradient(180deg, #402067, #251044);
  border: 1px solid #8452be;
  box-shadow: 0 0 19px #8042cf75, inset 0 1px #d3a6ff50;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.portal-action:hover { background: linear-gradient(180deg, #552b84, #36145d); }
.portal-sub-link { justify-self: center; color: #c8b7dd; font-size: 12px; margin-top: 4px; }
.portal-sub-link:hover { color: #fff; }
.portal-hint, .portal-login-ready p { color: var(--portal-muted); font-size: 13px; line-height: 1.6; }
.portal-login-ready strong { color: #fff; }
.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; }

.portal-column .preview-panel { padding: 21px 19px 23px; }
.portal-column .section-title { position: relative; display: block; margin-bottom: 6px; padding: 0; border: 0; }
.portal-column .section-title .eyebrow { display: none; }
.portal-column .section-title h2 { font-size: 15px; }
.portal-column .section-title .text-link { position: static; display: inline-block; margin: -4px 0 10px; color: var(--portal-gold); }
.portal-column .section-title:after { bottom: 0; }
.portal-column .preview-list { margin: 4px 0 0; }
.portal-column .preview-list li { grid-template-columns: 28px minmax(0, 1fr) auto; min-height: 39px; border-bottom: 1px solid #b58cda18; }
.portal-column .preview-list li:nth-child(even) { background: #2a164328; }
.portal-column .preview-list strong { font-size: 12px; font-weight: 600; }
.portal-column .preview-list small { font-size: 10px; color: #c6afd4; }
.portal-column .rank-mark { color: #ccad73; font-size: 14px; }
.portal-column .preview-empty { color: var(--portal-muted); }

.portal-center { min-width: 0; overflow: hidden; background: #0c0918; }
.portal-spotlight-art { height: auto; aspect-ratio: 625 / 220; background: #1c1035 url('/assets/theme-fifteen/images/slider.png') center center / 100% auto no-repeat; }
.portal-spotlight-copy { min-height: 110px; padding: 17px 26px 20px; background: linear-gradient(180deg, #17102b, #0d0919); border-top: 1px solid #bd95e23d; }
.portal-spotlight-copy > span { color: #c7a5e8; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.portal-spotlight-copy h1 { margin: 1px 0 4px; color: #f4e6bd; font: 30px/1.12 Georgia, serif; }
.portal-spotlight-copy p { margin: 0; color: #bfb4cb; font-size: 12px; }
.portal-spotlight-copy a { display: inline-block; margin-top: 10px; color: #e6c67f; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.portal-spotlight-copy a span { padding-left: 5px; font-size: 16px; }
.portal-news { padding: 19px 26px 32px; border-top: 1px solid #9b75bd30; }
.portal-news h2 { margin: 0; padding-bottom: 12px; color: #d7bee9; border-bottom: 1px solid #a381c943; font: 26px Georgia, serif; text-align: center; }
.portal-news-empty { display: flex; align-items: center; gap: 10px; min-height: 90px; color: #bcb0c7; font-size: 13px; }
.portal-news-empty span { color: #c497f2; font-size: 22px; }
.portal-news-empty p { margin: 0; }

.portal-download { display: flex; flex-direction: column; justify-content: center; min-height: 112px; padding: 18px 20px; color: #3c2810; background: linear-gradient(115deg, #d5a94c, #fff0bb 43%, #b77d32 100%); border: 1px solid #ffe8a7; box-shadow: 0 8px 23px #07030f9c, inset 0 1px #fff8; }
.portal-download > span { font: 24px Georgia, serif; text-shadow: 0 1px #fff8; }
.portal-download strong { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; }
.portal-download strong span { display: grid; place-items: center; width: 34px; height: 34px; color: #fce9bb; background: #402719; border-radius: 50%; font-size: 23px; line-height: 1; }
.portal-download:hover { filter: brightness(1.1); }

.page-layout { max-width: 950px; min-height: 600px; padding-top: 0; }
.page-top { margin: 0; padding: 25px 35px; background: #150e29ed; border: 1px solid #9469bc69; border-bottom: 0; }
.page-top h1 { color: #eddbab; font-size: clamp(36px, 4vw, 56px); }
.page-top p { color: #c9bdd6; }
.page-card { background: #120d23f5; border-color: #9469bc69; border-top-color: #af7edf; }
.panel { background: #160f2bf2; border-color: #9469bc69; }
.site-form input { background: #0e0a1b; border-color: #755d8d; }
.button-outline { background: #24143c; border-color: #9c75bb; }
.button-outline:hover { background: #3c225c; }
.site-footer { background: #0b0818; border-color: #7f57a24a; }
.footer-inner { background: none; }
.footer-brand { width: 205px; height: 70px; }
.footer-brand-art { width: 205px; height: 70px; opacity: 1; }

@media (max-width: 1050px) {
  .portal-layout { grid-template-columns: 230px minmax(0, 1fr) 235px; gap: 8px; }
  .portal-box, .portal-column .preview-panel { padding: 17px 14px; }
  .portal-spotlight-art { height: auto; }
  .brand { top: 184px; width: 440px; height: 147px; }
  .brand-art { width: 440px; height: 147px; }
}

@media (max-width: 760px) {
  body { background-size: auto 740px; }
  .site-header, .header-inner { height: 335px; min-height: 335px; }
  .site-header { box-shadow: inset 0 -80px 70px -65px #090612; }
  .header-inner { width: 100%; background: none; }
  .site-nav { top: 0; left: 0; right: 0; width: 100%; justify-content: flex-start; gap: 0; overflow-x: auto; border-top: 0; background: #140b2780; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; min-width: auto; height: 52px; padding: 0 14px; font-size: 10px; }
  .header-actions { top: 64px; right: 16px; }
  .header-actions .button { display: inline-flex; }
  .brand { top: 190px; left: 10px; width: 320px; height: 107px; }
  .brand:before { left: 45px; top: 26px; width: 220px; height: 55px; }
  .brand-art { width: 320px; height: 107px; }
  .site-main { width: calc(100% - 24px); }
  .portal-layout { grid-template-columns: 1fr; gap: 12px; }
  .portal-column { gap: 12px; }
  .portal-center { order: 2; }
  .portal-right { order: 3; }
  .portal-spotlight-art { height: auto; }
  .page-layout { min-height: 500px; }
  .page-top { padding: 20px 22px; }
  .page-card { padding: 24px 20px; }
  .footer-inner { background: none; }
  .footer-brand-art { opacity: 1; }
}

@media (max-width: 400px) {
  .header-actions .button { display: none; }
  .brand { top: 190px; left: 8px; width: 302px; height: 101px; }
  .brand-art { width: 302px; height: 101px; }
}

.brand-art, .footer-brand-art {
  opacity: 1;
  background-image: url('/assets/hvzm2-wordmark-aqua.png');
  background-size: contain;
  background-position: center;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}
.brand:hover .brand-art { filter: brightness(1.12) drop-shadow(0 0 15px #46cff0a8); }

.account-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  margin-bottom: 18px;
  border: 1px solid #9770bc68;
  background: linear-gradient(110deg, #28183f, #1a102d 72%);
  box-shadow: inset 0 1px #ffffff0d, 0 8px 22px #08051155;
}
.account-identity { min-width: 0; display: grid; gap: 2px; }
.account-identity span { color: var(--portal-gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.account-identity strong { overflow: hidden; color: #fff4dc; font: 24px/1.2 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #b487d38c;
  border-radius: 3px;
  background: linear-gradient(180deg, #3b2459, #271639);
  box-shadow: inset 0 1px #ffffff1a, 0 5px 16px #08051166;
  color: #f4e9fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.account-logout:hover { transform: translateY(-2px); border-color: #e4bd7e; background: linear-gradient(180deg, #573475, #342047); box-shadow: 0 7px 22px #713f9e66; }
.account-logout:active { transform: translateY(0); }
.account-logout-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #ddb87b7a; border-radius: 50%; color: #efce91; font-size: 18px; font-weight: 400; line-height: 1; }
.account-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 24px; }
.account-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 66px;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid #75559294;
  background: linear-gradient(145deg, #241537, #170f29);
  color: #d1c0df;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.account-tab:after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, #e6c67f, #ad6ce1); content: ''; opacity: 0; }
.account-tab:hover { transform: translateY(-2px); border-color: #c594ed; color: #fff; background: #342048; }
.account-tab[aria-selected="true"] { border-color: #c28be5; background: linear-gradient(125deg, #3c2058, #26163d); color: #fff4d7; box-shadow: inset 0 1px #ffffff1a, 0 6px 18px #0b061b66; }
.account-tab[aria-selected="true"]:after { opacity: 1; }
.account-tab-number { color: #cba960; font: 20px/1 Georgia, serif; }
.account-panel { min-height: 290px; margin-top: 0; padding-top: 0; }
.account-panel .section-title { margin-bottom: 20px; }
.account-panel .section-title h2 { color: #f2dbaf; }
.account-panel .character-card { border-color: #8863ae73; background: linear-gradient(145deg, #28183e, #1a112b); }
.account-panel .character-emblem { border-color: #d3ad78a3; background: #39244f; }
.account-panel .account-empty { border-color: #9e73c57d; }

.loading-state { display: flex; align-items: center; gap: 12px; min-height: 150px; color: #cdbbdb; font-size: 13px; }
.loading-state-compact { min-height: 72px; }
.loading-spinner { width: 24px; height: 24px; flex: none; border: 2px solid #a375c362; border-top-color: #e7c67e; border-radius: 50%; animation: loading-spin .8s linear infinite; }
.portal-login .loading-state { min-height: 172px; align-items: flex-start; padding-top: 19px; }
.header-loading { display: flex; align-items: center; gap: 12px; height: 38px; }
.header-loading span { display: block; width: 69px; height: 12px; border-radius: 3px; background: #d4b4e855; animation: loading-pulse 1.2s ease-in-out infinite alternate; }
.header-loading span:last-child { width: 112px; height: 38px; border: 1px solid #e3c28a50; background: #d9b77a77; animation-delay: .2s; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .loading-spinner, .header-loading span { animation: none; }
}

@media (max-width: 600px) {
  .account-overview { padding: 14px; }
  .account-identity strong { font-size: 20px; }
  .account-tabs { gap: 6px; }
  .account-tab { min-height: 62px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 8px 10px; font-size: 11px; line-height: 1.2; }
  .account-tab-number { font-size: 17px; }
}
@media (max-width: 380px) {
  .account-logout { gap: 6px; padding: 7px 9px; font-size: 11px; }
  .account-logout-icon { width: 19px; height: 19px; font-size: 16px; }
  .account-tab { font-size: 10px; }
}
.portal-activity h2 { font-size: 17px; line-height: 1.4; }
.portal-activity-value { display: flex; align-items: center; min-height: 68px; color: #f4d68e; font: 44px Georgia, serif; font-variant-numeric: tabular-nums; }
.portal-activity p { margin: 8px 0 0; color: #c5b8d3; font-size: 12px; line-height: 1.6; }
.portal-activity-unavailable { color: #c5b8d3; font: 14px 'Segoe UI', sans-serif; }

.security-challenge{width:min(420px,calc(100vw - 32px));padding:24px;color:#eee;background:#160f26;border:1px solid #8968ad}.security-challenge::backdrop{background:#080510dc}.security-challenge h2{font:24px Georgia,serif;color:#e9ca83;margin:0 0 12px}.security-challenge p{font-size:14px;margin:0 0 20px}.security-challenge .button{margin-top:20px}
