/* Nostalgia site styles. Tokens and specs: web/README.md ("Design tokens", "Shared components").
   The site is dark only. No inline styles anywhere (CSP style-src 'self'). */

@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("../fonts/Cinzel-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("../fonts/Cinzel-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --bg: #120d18;
  --bg-nav: #0f0a14;
  --bg-masthead: #1b1226;
  --ink: #f3e6cf;
  --ink-2: rgba(243, 230, 207, .86);
  --ink-3: rgba(243, 230, 207, .75);
  --ink-4: rgba(243, 230, 207, .6);
  --ink-5: rgba(243, 230, 207, .5);
  --accent: #e8b56a;
  --accent-hover: #f3cf92;
  --btn-grad: linear-gradient(#c98a3e, #9c6227);
  --btn-grad-hover: linear-gradient(#d8994a, #a96b2c);
  --btn-ink: #1b1009;
  --panel: rgba(16, 11, 22, .72);
  --panel-line: rgba(232, 181, 106, .28);
  --panel-line-hover: rgba(232, 181, 106, .6);
  --rule: rgba(232, 181, 106, .14);
  --rule-strong: rgba(232, 181, 106, .2);
  --field: rgba(0, 0, 0, .35);
  --field-line: rgba(255, 255, 255, .13);
  --ok-dot: #5fd38a;
  --ok: #7fdca0;
  --ok-tint: rgba(95, 211, 138, .12);
  --warn: #e8b56a;
  --warn-tint: rgba(232, 181, 106, .12);
  --err: #ec8a72;
  --err-tint: rgba(236, 107, 79, .14);
  --muted-dot: #8a8090;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --realm-alb: #b3262e;
  --realm-mid: #2b5ca8;
  --realm-hib: #2e8a4c;
  --emblem-gold: #e8d3a6;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius-panel: 10px;
  --radius-btn: 7px;
  --radius-input: 6px;
  --shadow-panel: 0 20px 50px rgba(0, 0, 0, .35);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .35);
  --ease: .15s ease;

  color-scheme: dark;
}

/* ---- Base ---------------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--bg-nav);
  border: 1px solid var(--accent);
  color: var(--ink);
}
.skip-link:focus { top: 12px; }

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

/* ---- Layout -------------------------------------------------------------------------------------------------- */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; display: flex; flex-direction: column; }
.main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 72px 40px; display: flex; flex-direction: column; gap: 32px; }
.section--last { padding-bottom: 96px; }
.section__intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---- Type ---------------------------------------------------------------------------------------------------- */

.kicker {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 230, 207, .8);
}

.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__intro .label { font-size: 15px; letter-spacing: .22em; }

.statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.2;
  text-wrap: balance;
}
.statement--sm { font-size: clamp(24px, 2.4vw, 32px); }

.text-accent { color: var(--accent); }
.muted { color: var(--ink-3); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.meta { font-size: 13px; color: var(--ink-4); }
.fine { font-size: 13.5px; color: var(--ink-4); line-height: 1.6; }

/* ---- Masthead (nav + hero or header strip) ------------------------------------------------------------------- */

.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-masthead);
  background-repeat: no-repeat;
  background-image: url("../assets/bg-dusk-1280.webp");
}
@media (min-width: 1281px) {
  .masthead { background-image: url("../assets/bg-dusk-2560.webp"); }
}
.masthead__scrim { position: absolute; inset: 0; pointer-events: none; }
.masthead > :not(.masthead__scrim) { position: relative; }

.masthead--strip { background-position: 50% 0; background-size: max(100%, 1800px) auto; }
.masthead--strip .masthead__scrim {
  background: linear-gradient(180deg, rgba(18, 13, 24, .6) 0%, rgba(18, 13, 24, .2) 40%, var(--bg) 100%);
}

.masthead--hero { min-height: min(900px, 100vh); background-position: 90% 62%; background-size: cover; }
.masthead--hero .masthead__scrim {
  background:
    linear-gradient(270deg, rgba(18, 13, 24, .62) 0%, rgba(18, 13, 24, .3) 38%, rgba(18, 13, 24, 0) 60%),
    linear-gradient(180deg, rgba(18, 13, 24, .55) 0%, rgba(18, 13, 24, 0) 22%, rgba(18, 13, 24, 0) 62%, var(--bg) 100%);
}

/* Header strip (every page except Home). Copy stays left, clear of the castle and sun. */
.strip { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.strip__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: .06em;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(18, 13, 24, .6);
}
.strip__lede { max-width: 600px; color: var(--ink-2); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

/* Hero (Home): right-aligned block, left-aligned text, right of the castle. */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: 48px;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; width: min(100%, 600px); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.06;
  letter-spacing: .02em;
  text-shadow: 0 2px 24px rgba(18, 13, 24, .6);
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: rgba(243, 230, 207, .92);
  text-shadow: 0 1px 12px rgba(18, 13, 24, .7);
  text-wrap: pretty;
}
.hero .actions { margin-top: 6px; }
.hero__facts { padding-bottom: 48px; }

/* ---- Nav ----------------------------------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .28em; }

.nav__links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.nav__link { color: var(--ink-3); padding-block: 4px; }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--accent); }

.nav__spacer { flex: 1; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(243, 230, 207, .3);
  background: rgba(16, 11, 22, .6);
  font-size: 14.5px;
}

.server-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(243, 230, 207, .85); }
.server-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-dot); }
.server-status--online .server-status__dot { background: var(--ok-dot); box-shadow: 0 0 6px var(--ok-dot); }

.btn-signin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(232, 181, 106, .4);
  background: rgba(16, 11, 22, .55);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--ease);
}
.btn-signin:hover { background: rgba(232, 181, 106, .14); color: var(--ink); }

.nav__account { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.account-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: rgba(232, 181, 106, .12);
  color: var(--ink);
}
.account-pill:hover { color: var(--ink); background: rgba(232, 181, 106, .2); }
.nav__signout { display: contents; }

/* Under 1024px the links collapse behind "Menu" and open as a full-width panel below the bar. */
@media (max-width: 1023.98px) {
  .js .nav__toggle { display: flex; }
  .js .nav__links {
    display: none;
    order: 10;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-radius: var(--radius-panel);
    background: rgba(16, 11, 22, .92);
    border: 1px solid var(--panel-line);
    font-size: 16px;
    line-height: 2.4;
  }
  .js .nav[data-open] .nav__links { display: flex; }
  .js .nav__link[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav { gap: 12px 16px; }
}
@media (max-width: 560px) {
  .server-status span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .account-pill span:last-child { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---- Avatar -------------------------------------------------------------------------------------------------- */

.avatar {
  flex: none;
  border-radius: 50%;
  background: var(--discord);
  color: #fff;
  font-weight: 600;
  display: grid;
  place-items: center;
  object-fit: cover;
}
.avatar--28 { width: 28px; height: 28px; font-size: 13px; }
.avatar--48 { width: 48px; height: 48px; font-size: 18px; }

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

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn--lg { min-height: 52px; padding: 0 30px; }

.btn--primary {
  background: var(--btn-grad);
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  box-shadow: var(--shadow-btn);
}
.btn--primary.btn--lg { font-size: 15px; letter-spacing: .24em; }
.btn--primary:hover { background: var(--btn-grad-hover); color: var(--btn-ink); }

.btn--outline { border-color: rgba(243, 230, 207, .3); background: rgba(16, 11, 22, .45); color: var(--ink); }
.btn--outline:hover { background: rgba(243, 230, 207, .06); color: var(--ink); }
.hero .btn--outline { border-color: rgba(243, 230, 207, .35); }
.hero .btn--outline:hover { background: rgba(16, 11, 22, .7); }

.btn--discord { background: var(--discord); color: #fff; font-weight: 600; }
.btn--discord:hover { background: var(--discord-hover); color: #fff; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: rgba(243, 230, 207, .65);
  transition: color var(--ease);
}
.link-button:hover { color: var(--ink); }
.link-button--accent { color: var(--accent); font-size: inherit; }
.link-button--accent:hover { color: var(--accent-hover); }

/* ---- Panels -------------------------------------------------------------------------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-panel);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel--large { padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-panel); }
.panel--glass { backdrop-filter: blur(10px); box-shadow: var(--shadow-panel); }

/* Fact strip: 4 cells with 1px dividers. */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.fact-strip__cell {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(232, 181, 106, .16);
  margin-left: -1px;
}
.fact-strip__big { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--accent); letter-spacing: .04em; }
.fact-strip__small { font-size: 14px; color: var(--ink-3); }

/* Pillars: 4 across, then 2×2, then 1 column. Never 3 + 1 (two nested pairs). */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.pillar-grid__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-panel);
  background: var(--panel);
  border: 1px solid rgba(232, 181, 106, .22);
  color: var(--ink);
  transition: border-color var(--ease);
}
.pillar:hover { border-color: var(--panel-line-hover); color: var(--ink); }
.pillar__num { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--accent); }
.pillar__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .03em; }
.pillar__line { font-size: 15px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.pillar__more { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--accent); }

.teaser { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.teaser__copy { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }

.placeholder { max-width: 720px; }

/* ---- Notices, code ------------------------------------------------------------------------------------------- */

.notice { padding: 12px 14px; border-radius: var(--radius-btn); font-size: 14.5px; line-height: 1.55; }
.notice--warn { background: var(--warn-tint); color: var(--ink-2); border: 1px solid rgba(232, 181, 106, .3); }
.notice--err { background: var(--err-tint); color: var(--err); border: 1px solid rgba(236, 138, 114, .3); }

.command {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  background: var(--field);
  border: 1px solid var(--field-line);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  overflow-x: auto;
}

/* ---- Sign in, 404 -------------------------------------------------------------------------------------------- */

.signin, .lost { max-width: 620px; }
.signin__heading { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .03em; }
.signin__lead { font-size: 17px; color: var(--ink-2); }
.signin form .btn { width: 100%; justify-content: center; }
.signin__dev { border-top: 1px dashed var(--rule-strong); padding-top: 14px; }

/* ---- Account ------------------------------------------------------------------------------------------------- */

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 28px;
}
@media (min-width: 900px) {
  .account-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.identity { display: flex; gap: 14px; align-items: center; }
.identity__name { display: flex; flex-direction: column; gap: 2px; }
.identity__display { font-size: 16px; font-weight: 600; }

.facts { display: flex; flex-direction: column; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.facts dt { color: var(--ink-4); }
.facts dd { text-align: right; }

/* ---- Shared content patterns -------------------------------------------------------------------------------- */

.container--narrow { max-width: 900px; }
.section-stack { display: flex; flex-direction: column; gap: 56px; padding-top: 28px; }
.label--lg { font-size: 15px; letter-spacing: .22em; }
.statement--xs { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.muted--sm { font-size: 14.5px; color: rgba(243, 230, 207, .7); }
.more-link { font-size: 14px; align-self: flex-start; }

/* Question/answer rows (FAQ, troubleshooting): label column + list spanning two columns on wide screens. */
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 40px; }
.qa__intro { display: flex; flex-direction: column; gap: 12px; }
.qa__list { display: flex; flex-direction: column; }
@media (min-width: 900px) { .qa__list { grid-column: span 2; } }
.qa__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 32px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.qa__row dt { font-size: 16px; font-weight: 600; }
.qa__row dd { font-size: 15px; line-height: 1.6; color: var(--ink-3); }

/* Privacy */
.prose-list { display: flex; flex-direction: column; padding-top: 28px; }
.prose-list__item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.prose-list__item h2 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.prose-list__item p { font-size: 15px; line-height: 1.65; color: rgba(243, 230, 207, .78); }

/* ---- Join ---------------------------------------------------------------------------------------------------- */

.join { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.join__intro { display: flex; flex-direction: column; gap: 16px; }
.join__text { max-width: 440px; line-height: 1.65; }
.join__actions { margin-top: 8px; }
.steps { display: flex; flex-direction: column; }
.steps__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps__num { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--accent); line-height: 1.3; }
.steps__text { display: flex; flex-direction: column; gap: 4px; }
.steps__title { font-size: 16px; font-weight: 600; }
.steps__desc { font-size: 14.5px; line-height: 1.55; color: rgba(243, 230, 207, .7); }

/* ---- Features ------------------------------------------------------------------------------------------------ */

.jumpbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 13, 24, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 181, 106, .18);
}
.jumpbar__list { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.jumpbar__link { display: flex; gap: 10px; align-items: baseline; padding: 14px 0; font-size: 14.5px; color: rgba(243, 230, 207, .8); }
.jumpbar__link:hover { color: var(--ink); }
.jumpbar__num { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--accent); }

.features { display: flex; flex-direction: column; gap: 40px; padding-top: 24px; }
.feature-group { display: flex; flex-direction: column; scroll-margin-top: calc(var(--sticky-offset, 48px) + 16px); }
.feature-group__head { display: flex; gap: 16px; align-items: baseline; padding: 32px 0 8px; }
.feature-group__num { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .2em; color: var(--accent); }
.feature-group__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: .04em; line-height: 1.2; }

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px 48px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--sticky-offset, 48px) + 16px);
}
.feature__lead { display: flex; flex-direction: column; gap: 12px; }
.feature__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.feature__headline { font-size: 17px; color: var(--accent); font-weight: 500; }
.feature__body { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.feature__body > p { font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }

.badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.badge { font-weight: 600; line-height: 1.5; }
.badge--live { display: flex; align-items: center; gap: 6px; color: var(--ok); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok-dot); }
.badge--soon { color: var(--accent); padding: 1px 7px; border: 1px solid rgba(232, 181, 106, .45); border-radius: 4px; }

.diamonds { display: flex; flex-direction: column; gap: 8px; }
.diamonds li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: rgba(243, 230, 207, .78); }
.diamonds li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; transform: rotate(45deg); background: #c98a3e; }

.btn--gold-outline {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 18px;
  border-color: rgba(232, 181, 106, .45);
  background: rgba(232, 181, 106, .1);
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
}
.btn--gold-outline:hover { background: rgba(232, 181, 106, .18); color: var(--accent-hover); }

.cta-bar { flex-direction: row; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 28px 32px; }
.cta-bar__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); }

/* ---- World Atlas --------------------------------------------------------------------------------------------- */

:root {
  --map-land: #2a1f36;
  --map-land-front: #3a2630;
  --map-land-hi: #4a3552;
  --map-zone-line: rgba(232, 181, 106, .22);
  --mk-capital: #e8b56a;
  --mk-town: #cdbb93;
  --mk-zone: #79b8c4;
  --mk-frontier: #d98b58;
  --mk-dungeon: #a98be0;
  --mk-pvp: #ec6b4f;
  --mk-housing: #9aa3b8;
  --band-elite: #e07aa8;
  --band-boss: #ec6b4f;
  --realm-alb-map: #c9474b;
  --realm-mid-map: #4f7fd0;
  --realm-hib-map: #3fa564;
}

.strip__lede code { font-family: var(--font-mono); font-size: .92em; color: var(--accent); }


.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 230, 207, .55); }
.eyebrow--accent { color: var(--accent); }

/* Chips and region tabs: selected = gold border + tint; aria-pressed carries the state. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tab, .chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(243, 230, 207, .16);
  background: rgba(0, 0, 0, .25);
  color: var(--ink-3);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.tab { padding: 8px 14px; border-radius: var(--radius-btn); font-size: 14.5px; font-weight: 500; }
.chip { gap: 7px; padding: 5px 12px; border-radius: 14px; font-size: 13.5px; }
.tab:hover, .chip:hover { color: var(--ink); border-color: rgba(243, 230, 207, .32); }
.tab[aria-pressed="true"], .chip[aria-pressed="true"] { background: rgba(232, 181, 106, .18); border-color: var(--accent); color: var(--ink); }
.tab__count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }

/* Realm mark: 10x12 shield (README "Realm mark"); the filter dots use the lighter map colours. */
.realm-dot { width: 8px; height: 10px; border-radius: 0 0 4px 4px; }
.realm-dot--albion { background: var(--realm-alb-map); }
.realm-dot--midgard { background: var(--realm-mid-map); }
.realm-dot--hibernia { background: var(--realm-hib-map); }

.atlas { display: flex; flex-direction: column; gap: 48px; padding-top: 20px; }
.atlas__section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.atlas__layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.atlas__map { flex: 999 1 480px; min-width: 0; max-width: 100%; padding: 10px; gap: 0; }
.atlas__svg svg { display: block; width: 100%; height: auto; }
.atlas__detail { flex: 1 1 300px; min-width: 0; max-width: 100%; padding: 20px 22px; gap: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 4px 4px; font-size: 12.5px; color: rgba(243, 230, 207, .7); }
.legend li { display: flex; align-items: center; gap: 6px; }

/* Map drawing */
.zn { fill: var(--map-land); stroke: var(--map-zone-line); stroke-width: 1; }
.zn--front { fill: var(--map-land-front); }
.zn--hi { fill: var(--map-land-hi); }
.mini-map .zn { stroke-width: .6; }
.zn__label { font: 600 11px var(--font-display); fill: rgba(243, 230, 207, .5); pointer-events: none; }
.mk { stroke: var(--bg); stroke-width: 1.5; }
.mk--capital { fill: var(--mk-capital); }
.mk--town { fill: var(--mk-town); }
.mk--zone { fill: var(--mk-zone); }
.mk--frontier { fill: var(--mk-frontier); }
.mk--dungeon { fill: var(--mk-dungeon); }
.mk--pvp { fill: var(--mk-pvp); }
.mk--housing { fill: var(--mk-housing); }
.mk__x { stroke: var(--bg); stroke-width: 1.6; fill: none; }
.mkr { cursor: pointer; outline: none; }
.mkr__hit { fill: transparent; }
.mkr__ring { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.mkr:focus-visible .mkr__hit { fill: none; stroke: var(--accent); stroke-width: 2; }
.mini-map { display: block; width: 100%; height: 100%; }

/* Detail panel */
.detail__head { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 14px; align-items: start; }
.detail__titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.detail__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.detail__sub { font-size: 14px; color: rgba(243, 230, 207, .65); }
.detail__mini, .place-card__mini { width: 88px; height: 88px; border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, .3); }
.detail__text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.detail__where { font-size: 13.5px; color: var(--ink-4); }
.detail__block { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.detail__monsters { font-size: 15px; }

.access { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 5px; }
.access--open { color: var(--ok); background: var(--ok-tint); }
.access--realm { color: var(--ink); background: #7a5a3a; }
.access--albion { background: var(--realm-alb); }
.access--midgard { background: var(--realm-mid); }
.access--hibernia { background: var(--realm-hib); }

.named-list { display: flex; flex-wrap: wrap; gap: 6px; }
.named { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 3px 10px; border-radius: 14px; border: 1px solid rgba(243, 230, 207, .16); }
.named__tag { font-size: 11.5px; }
.named__tag--elite { color: var(--band-elite); }
.named__tag--boss { color: var(--band-boss); }

.tp {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px 7px 12px;
  border-radius: var(--radius-btn);
  background: var(--field);
  border: 1px solid rgba(255, 255, 255, .12);
}
.tp__code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); }
.tp__label { flex: none; font-size: 11.5px; color: var(--ink-5); }
.tp__copy {
  flex: none;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid rgba(232, 181, 106, .45);
  background: rgba(232, 181, 106, .1);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  min-width: 4.6em;
}
.tp__copy:hover { background: rgba(232, 181, 106, .2); }

/* Filters and list */
.filters { padding: 16px; gap: 12px; border-color: rgba(232, 181, 106, .22); }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.filters__row .chips { flex: 1; min-width: 0; }
.filters__label { width: 64px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 230, 207, .55); }
.field {
  flex: 1 1 220px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-input);
  background: var(--field);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
}
.field::placeholder { color: var(--ink-5); }

.atlas__count { font-size: 13.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.place-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.place-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-panel);
  text-align: left;
  background: var(--panel);
  border: 1px solid rgba(232, 181, 106, .2);
  transition: border-color var(--ease), background var(--ease);
}
.place-card:hover { border-color: rgba(232, 181, 106, .55); }
.place-card[aria-current="true"] { background: rgba(232, 181, 106, .1); border-color: var(--accent); }
.place-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.place-card__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.place-card__cmd {
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--field);
  color: var(--accent);
}
.place-card__sub { font-size: 12.5px; color: var(--ink-4); }
.place-card__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(243, 230, 207, .78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atlas__more { align-self: center; min-height: 44px; padding: 0 22px; background: rgba(0, 0, 0, .25); }

.atlas__fallback { display: flex; flex-direction: column; gap: 14px; }
.atlas__fallback-region { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-top: 16px; }
.atlas__fallback code { font-family: var(--font-mono); color: var(--accent); }

/* ---- Account (continued) ------------------------------------------------------------------------------------- */

@media (min-width: 900px) { .account-grid__wide { min-width: 0; } }
.facts__strong { font-weight: 500; }
.inline-code { font-family: var(--font-mono); font-size: .92em; color: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; align-self: flex-start; }

.balances { display: flex; flex-direction: column; }
.balances__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(232, 181, 106, .12); }
.balances__row dt { display: flex; flex-direction: column; gap: 2px; }
.balances__name { font-size: 14.5px; font-weight: 500; }
.balances__value { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.balances__value--na { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-4); }

.panel--scroll { gap: 6px; overflow-x: auto; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.empty { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 8px; border-top: 1px solid rgba(232, 181, 106, .12); margin-top: 6px; }
.empty__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--offline { background: var(--muted-dot); }

/* Characters table: scrolls horizontally inside its panel on narrow screens. */
.chars { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; }
.chars th, .chars td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid rgba(232, 181, 106, .12); font-weight: 400; vertical-align: middle; }
.chars thead th { padding: 12px 12px 8px 0; border-top: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-5); }
.chars tbody th { font-weight: 600; }
.chars .num { text-align: right; font-variant-numeric: tabular-nums; }
.chars__dim { color: rgba(243, 230, 207, .8); }
.chars__faint { color: var(--ink-4); }
.realm { display: flex; align-items: center; gap: 8px; }

/* Realm mark: 10×12 shield in the realm colour with a 1.5px emblem-gold ring (README component 10). */
.realm-mark { flex: none; width: 10px; height: 12px; border-radius: 0 0 5px 5px; box-shadow: 0 0 0 1.5px var(--emblem-gold); }
.realm-mark--albion { background: var(--realm-alb); }
.realm-mark--midgard { background: var(--realm-mid); }
.realm-mark--hibernia { background: var(--realm-hib); }

/* ---- Footer, back-to-top ------------------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule-strong);
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__logo { height: 30px; width: auto; }
.footer__links { display: flex; gap: 20px; font-size: 13.5px; }
.footer__links a { color: rgba(243, 230, 207, .7); }
.footer__links a:hover { color: var(--ink); }
.footer__note, .footer__disclaimer { max-width: 640px; font-size: 13px; line-height: 1.6; color: rgba(243, 230, 207, .55); }
.footer__note { flex-basis: 100%; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(16, 11, 22, .88);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  transition: background var(--ease);
}
.to-top:hover { background: rgba(232, 181, 106, .2); }
.to-top[hidden] { display: none; }
@media (max-width: 560px) { .to-top { right: 20px; bottom: 20px; } }
