/* Billionvale — policy and support pages. The game's palette: near-black
   surfaces and gold, with a light variant for long reading. No scripts. */

:root {
  --bg: #0e1014;
  --surface: #181c22;
  --surface-hi: #222731;
  --line: #2b313c;
  --text: #e9ecf1;
  --muted: #9aa3af;
  --gold: #e8b44a;
  --gold-ink: #e8b44a;
  --on-gold: #1a1406;
  --radius: 14px;
  --measure: 44rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-hi: #f3efe5;
    --line: #e5dfd1;
    --text: #1b1e23;
    --muted: #5b6370;
    --gold: #e8b44a;
    --gold-ink: #8a5f0c;
    --on-gold: #1a1406;
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

a {
  color: var(--gold-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

/* Header */

.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.top-inner {
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
  margin-right: auto;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  display: flex;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  font-size: 0.93rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav .lang {
  color: var(--gold-ink);
  font-weight: 600;
}

/* Content */

main {
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 2.25rem 1rem 3rem;
}

h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.updated {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 0.93rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.6rem;
  padding-top: 0.4rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.4rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.3rem;
}

strong {
  font-weight: 700;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 0.35rem;
  margin: 0 0 2rem;
}

.summary h2 {
  margin-top: 0;
  padding-top: 0;
  font-size: 1.05rem;
}

.toc {
  background: var(--surface-hi);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface-hi);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: 0.93rem;
}

.contact {
  display: inline-block;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
}

.contact:hover {
  filter: brightness(1.06);
}

/* Home */

.hero {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.hero svg {
  width: 84px;
  height: 84px;
}

.hero p {
  color: var(--muted);
  max-width: 30rem;
  margin: 0.5rem auto 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.85rem;
  margin: 2rem 0;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--text);
  text-decoration: none;
}

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

.card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.card span {
  color: var(--muted);
  font-size: 0.93rem;
}

/* FAQ */

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin: 0 0 0.7rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

details p:last-child {
  margin-bottom: 0.2rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-inner {
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  display: flex;
  gap: 0.4rem 1.2rem;
  flex-wrap: wrap;
}

.foot-inner a {
  color: var(--muted);
}

.foot-inner .copy {
  margin-right: auto;
}

@media print {
  .top,
  footer,
  .toc,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
