/* blizzvault.com: the same palette as the app (frontend/tailwind.config.js). */
:root {
  --bg: #0B1929;
  --bg-2: #162638;
  --card: #1E2F45;
  --gold: #F5C542;
  --gold-bright: #FFD966;
  --gold-dim: #B8913A;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
a:hover { color: var(--gold-bright); }

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero.short { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero > * { position: relative; }
.gold-radial {
  position: absolute;
  inset: 0 0 auto 0;
  height: 60vh;
  pointer-events: none;
  background: radial-gradient(ellipse at top,
    rgba(245, 197, 66, 0.12) 0%, rgba(245, 197, 66, 0.04) 35%, transparent 65%);
}
.wordmark {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  margin: 0.5rem 0 1.25rem;
  /* letter-spacing adds trailing space after the last letter; pull it back so it centres */
  margin-right: -0.18em;
}
.tagline { font-size: 1.3rem; color: #cbd5e1; margin: 0 0 1.5rem; }
.lede { max-width: 38rem; margin: 0 auto 1.5rem; color: var(--muted); }
.status { color: var(--gold-dim); font-size: 0.95rem; margin: 0; }
.badge {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main { margin: 0 auto; }
.wide { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem 2rem; }
.narrow { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem 3rem; }
.btn.ghost { border-color: rgba(148, 163, 184, 0.35); color: var(--text); }
.btn.small { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.hero .btn { margin: 0.25rem; }
.appintro { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(245, 197, 66, 0.15); }
.appintro .badge { margin-bottom: 0.75rem; }

/* ---------- Azeroth Adventurer showcase ----------
   Chart colours validated (dataviz validator, dark mode, surface #1E2F45):
   slots 1-3 pass all pairs; 1-6 pass adjacent pairs (slot 6 needs labels: legends + tables). */
:root {
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300;
  --gridline: #2b3e57; --baseline: #44597a; --axis: #94a3b8;
}
.s1 { --c: var(--s1); } .s2 { --c: var(--s2); } .s3 { --c: var(--s3); }
.s4 { --c: var(--s4); } .s5 { --c: var(--s5); } .s6 { --c: var(--s6); }
.aza h3.sub {
  font-family: "Cinzel", Georgia, serif; color: var(--gold); letter-spacing: 0.06em;
  font-size: 1.2rem; margin: 3rem 0 1rem; text-align: center;
}
.tiles { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.tiles.small { margin-top: 1rem; }
.tile { background: var(--card); border-radius: 0.75rem; padding: 1rem 1.1rem; display: flex; flex-direction: column;
  border: 1px solid rgba(245, 197, 66, 0.12); }
.tv { font-size: 1.7rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.tl { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.04em; margin-top: 0.2rem; }
.ts { color: var(--faint); font-size: 0.8rem; }
.tiles.small .tv { font-size: 1.3rem; }

.chars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.char { background: var(--card); border-radius: 0.75rem; padding: 1.1rem 1.25rem; border: 1px solid rgba(245, 197, 66, 0.12); }
.chead { display: flex; align-items: center; gap: 0.75rem; }
.cicons { display: flex; gap: 0.35rem; flex: none; }
.cicons img { width: 36px; height: 36px; border-radius: 0.4rem; border: 1px solid rgba(245, 197, 66, 0.35); display: block; }
.chead > div { min-width: 0; }
.stage {
  height: 230px; margin: -0.2rem -0.35rem 0.9rem; border-radius: 0.6rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: radial-gradient(ellipse 60% 30% at 50% 92%, rgba(245, 197, 66, 0.22), transparent 70%),
              linear-gradient(180deg, #13243a 0%, #1a2c43 100%);
  border: 1px solid rgba(245, 197, 66, 0.12);
}
.figure { display: block; max-height: 218px; max-width: 100%; width: auto; height: auto; margin-bottom: 4px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.stage.empty { justify-content: center; gap: 0.75rem; }
.stage.empty span { color: var(--faint); font-size: 0.8rem; text-align: center; padding: 0 1rem; }
.cicons.big img { width: 72px; height: 72px; border-radius: 0.6rem; border: 1px solid rgba(245, 197, 66, 0.35); opacity: 0.85; }
.cicons.badges { margin: 0.2rem 0 0.15rem; }
.cicons.badges img { width: 20px; height: 20px; border-radius: 0.25rem; }
.cname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cname { font-size: 1.15rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.cmeta { color: var(--muted); margin: 0; font-size: 0.9rem; }
.char dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 100%), 1fr)); gap: 0.35rem 1rem; margin: 0.9rem 0; }
.char dd { white-space: nowrap; }
.char dl div { display: flex; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--gridline); padding-bottom: 0.2rem; }
.char dt { color: var(--faint); font-size: 0.82rem; }
.char dd { margin: 0; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.cprof, .cbest { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; }
.cprof b { color: var(--text); }

.grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.vcard { background: var(--card); border-radius: 0.75rem; padding: 1rem 1.1rem 0.8rem; border: 1px solid rgba(245, 197, 66, 0.12); min-width: 0; margin-bottom: 1rem; }
.grid2 .vcard { margin-bottom: 0; }
.vcard h3 { margin: 0 0 0.2rem; font-size: 1rem; color: var(--text); }
.vnote { margin: 0 0 0.4rem; color: var(--faint); font-size: 0.8rem; }
.empty { color: var(--faint); font-size: 0.9rem; }

svg.chart { display: block; width: 100%; height: auto; margin-top: 0.4rem; overflow: visible; }
.chart .grid { stroke: var(--gridline); stroke-width: 1; }
.chart .base { stroke: var(--baseline); stroke-width: 1; }
.chart .ax { fill: var(--axis); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .dl { fill: var(--muted); font-size: 12px; }
.chart .col { fill: var(--c); }
.chart .ln { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; }
.chart .dot { fill: var(--c); stroke: var(--card); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover, .chart .hit:focus { fill: rgba(255, 255, 255, 0.05); outline: none; }

.hbars { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.hbars li { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr 4.5rem; align-items: center; gap: 0.6rem; padding: 0.18rem 0; border-radius: 0.25rem; }
.hbars li:hover, .hbars li:focus { background: rgba(255, 255, 255, 0.04); outline: none; }
.bl { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt { height: 10px; }
.bf { display: block; height: 10px; background: var(--c); border-radius: 0 4px 4px 0; min-width: 2px; }
.bv { text-align: right; font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.segbar { display: flex; gap: 2px; height: 22px; margin: 0.8rem 0 0.6rem; }
.seg { background: var(--c); min-width: 2px; }
.seg:first-child { border-radius: 4px 0 0 4px; } .seg:last-child { border-radius: 0 4px 4px 0; }
.seg:only-child { border-radius: 4px; }
.legend { list-style: none; padding: 0; margin: 0.3rem 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.85rem; color: var(--muted); }
.legend b { color: var(--text); font-weight: 600; }
.pc { color: var(--faint); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-right: 0.35rem; flex: none; }

.tbl { margin-top: 0.5rem; font-size: 0.85rem; }
.tbl summary { color: var(--faint); cursor: pointer; font-size: 0.8rem; }
.tbl table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.tbl caption { text-align: left; color: var(--faint); font-size: 0.8rem; padding-bottom: 0.3rem; }
.tbl th, .tbl td { text-align: left; padding: 0.25rem 0.4rem; border-bottom: 1px solid var(--gridline); font-weight: 400; }
.tbl td { font-variant-numeric: tabular-nums; color: var(--muted); }
.tbl thead th { color: var(--faint); font-size: 0.78rem; }

.feed { list-style: none; padding: 0 0.75rem 0 0; margin: 0.5rem 0 0; max-height: 26rem; overflow-y: auto; scrollbar-gutter: stable; }
.feed li { padding: 0.35rem 0; border-bottom: 1px solid var(--gridline); font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.feed b { color: var(--text); font-weight: 600; }
.feed time { color: var(--faint); font-size: 0.78rem; margin-left: auto; }

.getit { text-align: center; background: var(--bg-2); border-radius: 1rem; padding: 1.75rem 1.5rem; margin: 2.5rem 0 1rem; }
.getit p { margin: 0 0 0.9rem; color: var(--muted); }
.getit b { color: var(--text); }

.tip { position: fixed; z-index: 10; pointer-events: none; background: #0B1929; color: var(--text);
  border: 1px solid rgba(245, 197, 66, 0.35); border-radius: 0.4rem; padding: 0.3rem 0.6rem; font-size: 0.82rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); max-width: 18rem; }
section { margin: 0 0 4rem; }
h2 {
  font-family: "Cinzel", Georgia, serif;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  text-align: center;
}
.note { text-align: center; color: var(--faint); margin: -0.75rem 0 1.25rem; font-size: 0.9rem; }

.quote { text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; }
.quote blockquote {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold-bright);
  margin: 0 0 1rem;
}
.quote p { color: var(--muted); margin: 0; }

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid rgba(245, 197, 66, 0.15);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
}
.card h3 { margin: 0 0 0.6rem; color: var(--text); font-size: 1.15rem; }
.card p { margin: 0 0 0.6rem; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.05rem 0.45rem;
  border-radius: 0.25rem;
  margin-right: 0.3rem;
  vertical-align: 0.1em;
}
.label.now { background: rgba(245, 197, 66, 0.18); color: var(--gold); }
.label.next { background: rgba(148, 163, 184, 0.15); color: var(--muted); }

.roadmap {
  max-width: 34rem;
  margin: 0 auto;
  padding-left: 1.8rem;
  color: var(--muted);
}
.roadmap li { padding: 0.35rem 0; }
.roadmap li::marker { color: var(--gold-dim); font-weight: 700; }

.plain { max-width: 42rem; margin: 0 auto; color: var(--muted); padding-left: 1.2rem; }
.plain li { padding: 0.3rem 0; }

.about {
  text-align: center;
  background: var(--bg-2);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
}
.about img { display: block; margin: 0 auto 0.75rem; height: 80px; width: auto; }
.about-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.ver { color: var(--faint); font-weight: 400; font-size: 0.95rem; }
.about-by { margin: 0.25rem 0 0; color: #cbd5e1; }
.about-tag { margin: 0.25rem 0 1.25rem; color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 1.25rem; }
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: rgba(245, 197, 66, 0.1); }
.btn.bmac { background: #FFDD00; border-color: #FFDD00; color: #000; }
.btn.bmac:hover { background: #ffe633; color: #000; }
.feedback { color: var(--muted); margin: 0 0 1rem; }
.copy {
  margin-left: 0.4rem;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.15rem 0.6rem;
  border-radius: 0.35rem;
  border: 1px solid var(--faint);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.copy:hover { border-color: var(--gold-dim); }
.credit { color: var(--faint); font-size: 0.8rem; margin: 0; }

.foot {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  color: var(--faint);
  font-size: 0.8rem;
  padding: 2rem 1.5rem 2.5rem;
}
.foot p { max-width: 46rem; margin: 0 auto 0.5rem; }

@media (max-width: 480px) {
  .hero { padding-top: 4rem; }
}

/* ---------- /history/ ---------- */
.short-hero { padding: 3rem 1.5rem 2rem; }
.wordmark.small { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0.5rem 0 0.5rem; }
.wordmark.small a { color: inherit; text-decoration: none; }
.hsearch { display: flex; gap: 0.5rem; justify-content: center; max-width: 34rem; margin: 1rem auto 0.75rem; }
.hsearch input { flex: 1; min-width: 0; font: inherit; padding: 0.55rem 0.9rem; border-radius: 0.5rem;
  border: 1px solid var(--gold-dim); background: var(--bg-2); color: var(--text); }
.hsearch input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hnav { color: var(--faint); font-size: 0.9rem; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#hview { transition: opacity 0.15s; min-height: 40vh; }
.hcrumb { color: var(--faint); font-size: 0.85rem; margin: 1rem 0 0.2rem; }
.htitle { text-align: left; margin-bottom: 0.4rem; }
#hview .note { text-align: left; margin: 0 0 1rem; }
.hlist { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.hlist li { padding: 0.35rem 0; border-bottom: 1px solid var(--gridline); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.muted { color: var(--faint); font-size: 0.85rem; }
.htable { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.4rem; }
.htable th, .htable td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--gridline); font-weight: 400; }
.htable thead th { color: var(--faint); font-size: 0.78rem; }
.htable td { color: var(--muted); font-variant-numeric: tabular-nums; }
.vcard { overflow-x: auto; }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 1rem 0; }
.chart a .hit { cursor: pointer; }
.hbars .bl a { color: var(--muted); text-decoration: none; }
.hbars .bl a:hover { color: var(--gold-bright); text-decoration: underline; }
.hsearch .btn { background: rgba(245, 197, 66, 0.12); font: inherit; font-weight: 600; cursor: pointer; }
