:root {
  --bg: #fdf4ff;
  --surface: #ffffff;
  --text: #2e1065;
  --muted: #5b4b7a;
  --primary: #6b46c1;
  --primary-text: #ffffff;
  --gold: #b7791f;
  --border: #e9d5ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1745;
    --surface: #2a2158;
    --text: #f3eefe;
    --muted: #c9bfe6;
    --primary: #b49bff;
    --primary-text: #1f1745;
    --gold: #e8c766;
    --border: #3d3275;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.center { text-align: center; }

.logo {
  width: 112px;
  height: 112px;
  border-radius: 28px;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 16px 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }

p, li { color: var(--text); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

a { color: var(--primary); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  margin-top: 24px;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  margin-top: 12px;
}

.hidden { display: none; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

footer a { margin: 0 8px; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap { overflow-x: auto; }
