:root {
  --bg: #12141a;
  --surface: #1a1d26;
  --border: #2a3040;
  --text: #e8eaed;
  --muted: #9aa0ae;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
}

header.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.site-nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav__link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav__link[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  pointer-events: none;
  text-decoration: none;
}

.site-nav__sep {
  color: var(--border);
  user-select: none;
}

header.summary h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.loading {
  color: var(--muted);
  padding: 2rem 0;
}

.error-wrap {
  background: #3d2226;
  border: 1px solid #7a3e45;
  color: #f0d0d3;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.error-wrap code {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* BitJita player profile links (see BitcraftWebCommon.playerProfileOverviewUrl) */
a.bitjita-player-link {
  color: #aeb8c7;
  text-decoration: none;
}

a.bitjita-player-link:hover {
  color: #c2cde0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a.bitjita-player-link:visited {
  color: #98a4b8;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
