@charset "UTF-8";
/*
 * NEA AION - shared design system.
 * Owns the chrome every page shares: tokens, reset, topbar, buttons,
 * form primitives, panels and footer. Page-specific rules live in
 * portal.css (home/login/ranking), shop.css and quests.css.
 */

:root {
  color-scheme: dark;

  /* Ground */
  --bg: #0c1015;
  --bg-deep: #080b0f;
  --panel: #121920;
  --panel-raised: #161f28;
  --panel-sunken: #0d141b;

  /* Structure */
  --line: #26313c;
  --line-soft: #1b232c;
  --line-gold: #eac58844;

  /* Ink */
  --text: #edf0f3;
  --muted: #9daab8;
  --muted-dim: #74828e;

  /* Brand - pulled from the masthead: gold leaf over an ember blade. */
  --gold: #eac588;
  --gold-bright: #f4d8a8;
  --gold-deep: #b9945a;
  --ember: #ff8a3d;
  --cyan: #87d6de;
  --violet: #c5abe8;

  --success: #7fd6a2;
  --danger: #ff9291;

  --shell: 1500px;
  --gutter: 38px;

  --serif: Georgia, "Times New Roman", serif;

  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 900px 520px at 78% -8%, #2a353f55, transparent 62%),
    radial-gradient(ellipse 700px 420px at 4% 8%, #eac5880d, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; border-radius: 0; }
button:disabled { opacity: .4; cursor: default; }
img { max-width: 100%; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }

button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection { background: #eac58833; }

/* Scrollbars ------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: #3c4a56 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3c4a56; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #556674; }

/* ------------------------------------------------------------------ */
/* Utilities                                                           */
/* ------------------------------------------------------------------ */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-mark { display: flex; align-items: center; gap: 10px; }

.eyebrow-mark::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 15px #eac58866;
  flex-shrink: 0;
}

.serif { font-family: var(--serif); font-weight: 400; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: #211b14;
  font-size: 12px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Section heading used across pages. */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: -.028em;
  margin-top: 8px;
}

.section-head h2 span { color: var(--gold); }

.section-note {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 11px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Icons                                                               */
/* ------------------------------------------------------------------ */

.q-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex-shrink: 0;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Top bar                                                             */
/* ------------------------------------------------------------------ */

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0c1015f2;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-topbar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .07em;
  flex-shrink: 0;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: .24em;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  flex-shrink: 0;
  transition: color .18s;
}

.site-nav a:hover { color: var(--gold); }

.site-nav a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.site-nav .account-link {
  border: 1px solid var(--line);
  padding: 9px 15px;
  color: var(--text);
  transition: border-color .18s, background .18s;
}

.site-nav .account-link:hover {
  border-color: var(--gold);
  background: #eac5880a;
  color: var(--text);
}

.site-nav .account-link span { margin-left: 10px; color: var(--gold); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.button,
.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  text-align: center;
  transition: background .18s, border-color .18s, color .18s;
}

.button .q-icon { width: 17px; height: 17px; }

.button.primary,
.cta-button {
  background: var(--gold);
  border-color: var(--gold);
  color: #211b14;
}

.button.primary:hover,
.cta-button:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.cta-button:disabled { background: #6d6252; border-color: #6d6252; }

.button.outline,
.ghost-button {
  border-color: #42515c;
  color: var(--gold);
}

.button.outline:hover,
.ghost-button:hover {
  background: #eac5880a;
  border-color: var(--gold);
}

.button.ghost { color: var(--muted); }
.button.ghost:hover { color: var(--text); }

.button.cyan { border-color: #3f636b; color: var(--cyan); }
.button.cyan:hover { background: #87d6de0d; border-color: var(--cyan); }

/* ------------------------------------------------------------------ */
/* Panels + cards                                                      */
/* ------------------------------------------------------------------ */

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-head h2,
.panel-head h3 { font-size: 19px; margin-top: 7px; }

.card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #182027, #11171d);
  padding: 22px 23px;
  --edge: var(--gold);
  transition: border-color .2s, transform .2s;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 23px;
  width: 40px;
  height: 2px;
  background: var(--edge);
}

.card:hover { border-color: var(--edge); }

.card.edge-cyan { --edge: var(--cyan); }
.card.edge-violet { --edge: var(--violet); }

.card h3 {
  font-size: 18px;
  margin: 11px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card h3 .q-icon { width: 20px; height: 20px; color: var(--edge); }

.card p { font-size: 12px; color: var(--muted); }

.card-number {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--edge);
}

/* ------------------------------------------------------------------ */
/* Status pills                                                        */
/* ------------------------------------------------------------------ */

.status-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: #0f151bcc;
}

.status-cell { flex: 1 1 140px; padding: 14px 18px; min-width: 0; }
.status-cell + .status-cell { border-left: 1px solid var(--line); }

.status-label {
  display: block;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.status-cell strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px #7fd6a222;
  flex-shrink: 0;
}

.status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 3px #ff929122;
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: pulse-dot 2.4s ease-in-out infinite; }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px #7fd6a222; }
  50% { box-shadow: 0 0 0 6px #7fd6a20d; }
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.field { display: grid; gap: 7px; min-width: 0; }

.field > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: var(--panel-sunken);
  border: 1px solid #2e3a46;
  color: var(--text);
  font-size: 13px;
  border-radius: 0;
  transition: border-color .18s, background .18s;
}

.field input::placeholder { color: #6f7d8a; }

.field input:focus,
.field select:focus,
.input:focus { border-color: var(--gold); background: #0f171e; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  border: 1px solid #46525e;
  background: var(--panel-sunken);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"]::after {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  background: var(--gold);
  transition: transform .12s;
}

.checkbox-row input[type="checkbox"]:checked { border-color: var(--gold); }
.checkbox-row input[type="checkbox"]:checked::after { transform: scale(1); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-status {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* Shared empty / placeholder copy. */
.dashboard-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  background: #0f151b66;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.dashboard-empty a { color: var(--gold); }
.dashboard-empty a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #0a0e13;
}

.site-footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)) auto;
  gap: 28px;
  align-items: start;
}

.site-footer .brand { margin-bottom: 12px; }

.footer-blurb {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
  transition: color .16s;
}

.footer-col a:hover { color: var(--text); }

.footer-meta {
  text-align: right;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--muted-dim);
  line-height: 2;
}

.footer-meta i { font-style: normal; color: var(--gold); margin: 0 6px; }

.site-footer-base {
  border-top: 1px solid var(--line-soft);
  padding: 16px var(--gutter);
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  color: var(--muted-dim);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1150px) {
  :root { --gutter: 25px; }
  .site-nav { gap: 20px; }
}

@media (max-width: 900px) {
  .site-topbar-inner { flex-wrap: wrap; gap: 14px; }
  .site-nav {
    width: 100%;
    order: 3;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 600px) {
  :root { --gutter: 17px; }
  .site-topbar-inner { padding: 13px var(--gutter); }
  .brand { font-size: 13px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: 7px; }
  .site-nav { font-size: 11px; gap: 18px; }
  .site-nav .account-link { padding: 6px 10px; }
  .site-nav .account-link span { margin-left: 5px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-note { white-space: normal; }

  /* Two-up beats an orphaned cell on the last row. */
  .status-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .status-cell { flex: none; }
  .status-cell + .status-cell { border-left: 0; }
  .status-cell:nth-child(even) { border-left: 1px solid var(--line); }
  .status-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-footer-inner { grid-template-columns: 1fr; }
  .site-footer-base { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
