:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #15192b;
  --ink-soft: #4a5068;
  --line: #e6e3db;
  --accent: #1f7a4d;
  --accent-soft: #e5f2ea;
  --gold: #b8871f;
  --track: #ece9e1;
  --max: 1040px;
  --prose: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10131f;
    --surface: #171b2b;
    --ink: #eef0f6;
    --ink-soft: #a7adc2;
    --line: #2a3045;
    --accent: #52c48a;
    --accent-soft: #1b2e27;
    --gold: #e2b950;
    --track: #252b3f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Home */
.hero { padding: 72px 0 56px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 18ch; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 40ch; margin: 0; }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.facts li::before { content: ""; position: absolute; left: 4px; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; color: var(--ink-soft); }

/* Hero player card */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-visual { min-width: 0; display: grid; place-items: center; }
.stats { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 14px 36px -20px rgba(20,25,43,.4); display: grid; gap: 18px; }
.stats-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 12px; background: #1f7a4d; display: grid; place-items: center; flex: none; }
.avatar svg { width: 26px; height: 26px; }
.who { display: grid; line-height: 1.3; min-width: 0; }
.who b { font-size: 16px; }
.who span { font-size: 13px; color: var(--ink-soft); }
.lvl { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; transition: transform .3s; }
.lvl.bump { transform: scale(1.15); }
.stat { display: grid; gap: 6px; position: relative; }
.stat-row { display: flex; justify-content: space-between; font-size: 14px; }
.stat-row b { font-weight: 600; }
.stat-row span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .7s cubic-bezier(.3,.8,.3,1); }
.stat[data-k="save"] .bar i { background: var(--gold); }
.xp { position: absolute; right: 0; top: -20px; font-weight: 700; font-size: 13px; color: var(--accent); pointer-events: none; animation: rise 1.1s ease-out forwards; }
.stat[data-k="save"] .xp { color: var(--gold); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-visual { justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .bar i, .lvl { transition: none; } }

/* Legal pages */
.prose { max-width: var(--prose); padding: 56px 0 64px; }
.prose h1 { font-size: clamp(30px, 4.5vw, 40px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
.prose .meta { color: var(--ink-soft); margin: 0 0 32px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero p.lead { font-size: 18px; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
}
