:root {
  --green: #00883a;
  --green-dark: #006b2e;
  --ink: #1d2320;
  --muted: #5d6a63;
  --paper: #f5f7f4;
  --card: #ffffff;
  --line: #dfe6e1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: var(--green-dark); }
header {
  background: var(--green);
  color: #fff;
}
.bar {
  max-width: 920px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; border-radius: 4px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: #e8f5ec; text-decoration: none; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
main { max-width: 920px; margin: 0 auto; padding: 40px 20px 64px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; max-width: 60ch; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.address {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px;
}
.address code {
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
}
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border: 0; border-radius: 8px; padding: 10px 16px;
  background: var(--green); color: #fff; text-decoration: none; display: inline-block;
}
button, .btn { transition: background-color .15s ease, transform .15s ease; }
button:hover, .btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.donate-item .btn[aria-disabled="true"]:hover { transform: none; }
.btn.secondary { background: transparent; color: var(--green-dark); border: 1px solid var(--green); }
.btn.secondary:hover { background: #e8f5ec; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.donate-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.donate-item { display: flex; flex-direction: column; gap: 10px; }
.donate-item .btn { text-align: center; }
.donate-item .btn[aria-disabled="true"] { background: #c9d3cd; color: #55615a; cursor: not-allowed; }
.cost { font-variant-numeric: tabular-nums; }
.small { font-size: 0.9rem; color: var(--muted); }
.choices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 40px;
}
.choice {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green);
  border-radius: 12px; padding: 24px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.choice:hover, .choice:focus-visible {
  transform: translateY(-5px); background: #eef8f1; border-color: var(--green);
}
.choice:hover .choice-title, .choice:focus-visible .choice-title { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.choice.discord:hover, .choice.discord:focus-visible { background: #eef0fe; border-color: #5865f2; }
.choice.discord:hover .choice-title, .choice.discord:focus-visible .choice-title { color: #4752c4; }
.choice:active { transform: translateY(-2px); }
.choice svg { width: 36px; height: 36px; fill: var(--green); }
.choice.discord { border-top-color: #5865f2; }
.choice.discord svg { fill: #5865f2; }
.choice-title { font-size: 1.3rem; font-weight: 700; }
.choice-text { color: var(--muted); }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.boards .leaderboard { margin: 0; }
.lb-updated { margin: 8px 0 18px; }
.lb-level { color: #2e7d32; font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: grid; grid-template-columns: 3em 1fr auto; align-items: center; gap: 8px; padding: 9px 4px; border-top: 1px solid var(--line); }
.lb-list li:first-child { border-top: 0; }
.lb-rank { font-weight: 700; color: var(--muted); text-align: center; }
.lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-deaths { color: #b3261e; font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-empty { display: block !important; color: var(--muted); }
.lb-more { margin-top: 12px; }
.paypal-mail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.paypal-mail code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: .9rem; }
.paypal-mail button { padding: 6px 10px; font-size: .85rem; }
.steps { margin: 8px 0 0; padding-left: 1.3em; color: var(--ink); }
.steps li { margin: 6px 0; }
.steps code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.section-title { font-size: 1.2rem; margin: 0 0 14px; }
footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 0 20px 32px; }
.toast { color: var(--green-dark); font-weight: 600; min-height: 1.5em; }
