:root {
  --cream: #f7f4ee;
  --ink: #111111;
  --muted: #4a4a4a;
  --gold: #d4a017;
  --gold-deep: #b8860b;
  --paper: #fffdf8;
  --line: rgba(17, 17, 17, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(212, 160, 23, 0.14), transparent 55%),
    linear-gradient(165deg, #fbf8f2 0%, var(--cream) 50%, #efe8da 100%);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--ink); }
img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem .75rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

.site { min-height: 100vh; display: flex; flex-direction: column; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  padding: .8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 244, 238, 0.96);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: .78rem;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .18s ease, opacity .18s ease;
}
.brand-mark:hover { transform: translateY(-1px); }
.brand-mark:active { transform: translateY(1px) scale(.98); }
.coin {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand-mark:hover .coin {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.35);
}
.nav {
  display: flex; flex-wrap: wrap; gap: .35rem;
  align-items: center; justify-content: flex-end;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color .18s ease,
    background .18s ease,
    border-color .18s ease,
    transform .15s ease,
    box-shadow .18s ease;
}
.nav a .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--gold);
  transition: transform .18s ease, color .18s ease, font-variation-settings .18s ease;
}
.nav a:hover {
  color: var(--ink);
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}
.nav a:hover .material-symbols-outlined {
  transform: scale(1.12);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}
.nav a:active {
  transform: translateY(1px) scale(.97);
  box-shadow: none;
  background: rgba(212, 160, 23, 0.2);
}
.nav a.is-active {
  color: var(--ink);
  background: rgba(212, 160, 23, 0.16);
  border-color: rgba(212, 160, 23, 0.35);
}
.nav a.is-active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-toggle .material-symbols-outlined {
  font-size: 1.45rem;
  color: var(--ink);
  transition: transform .18s ease;
}
.nav-toggle:hover {
  background: #fff;
  border-color: rgba(212, 160, 23, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.nav-toggle:hover .material-symbols-outlined { transform: scale(1.08); }
.nav-toggle:active {
  transform: translateY(1px) scale(.96);
  box-shadow: none;
  background: rgba(212, 160, 23, 0.16);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 17, 17, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(18.5rem, 86vw);
  height: 100%;
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .9rem;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-head p {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  transition: transform .15s ease, background .18s ease;
}
.nav-close .material-symbols-outlined {
  font-size: 1.45rem;
  color: var(--ink);
  transition: transform .18s ease;
}
.nav-close:hover {
  background: rgba(212, 160, 23, 0.14);
  transform: translateY(-1px);
}
.nav-close:hover .material-symbols-outlined { transform: rotate(90deg); }
.nav-close:active { transform: scale(.94); }
.nav-close:focus-visible,
.nav-drawer a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem .75rem 1.5rem;
}
.nav-drawer-links a {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: .85rem .85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background .18s ease,
    transform .15s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}
.nav-drawer-links a .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform .18s ease, font-variation-settings .18s ease;
}
.nav-drawer-links a:hover {
  background: rgba(212, 160, 23, 0.14);
  border-color: rgba(212, 160, 23, 0.28);
  transform: translateX(4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}
.nav-drawer-links a:hover .material-symbols-outlined {
  transform: scale(1.12);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}
.nav-drawer-links a:active {
  transform: translateX(2px) scale(.98);
  background: rgba(212, 160, 23, 0.22);
}
.nav-drawer-links a.is-active {
  background: rgba(212, 160, 23, 0.16);
  border-color: rgba(212, 160, 23, 0.35);
}
.nav-drawer-links a.is-active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}
body.nav-open .nav-drawer {
  transform: translateX(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  flex: 1 1 auto;
  width: min(74rem, 100%);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.page-hero { max-width: 40rem; margin-bottom: 2rem; }
.eyebrow {
  margin: 0 0 .6rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.page-hero h1 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero .lede {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem 1.05rem;
  border: 0;
  border-bottom: 3px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  transition:
    transform .15s ease,
    background .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}
.btn .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: #1c1c1c;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  filter: brightness(1.03);
}
.btn:hover .material-symbols-outlined { transform: scale(1.1); }
.btn:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  filter: none;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn.secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  border-bottom-width: 3px;
  border-bottom-color: var(--gold);
  box-shadow: none;
}
.btn.secondary .material-symbols-outlined { color: var(--ink); }
.btn.secondary:hover {
  background: rgba(212, 160, 23, 0.12);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}
.btn.secondary:active {
  background: rgba(212, 160, 23, 0.2);
  box-shadow: none;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}
.stat-card .label {
  margin: 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-card .value {
  margin: .45rem 0 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}
.stat-card .meta {
  margin: .45rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: .55rem 0 0; color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
table.data th, table.data td {
  text-align: left;
  padding: .7rem .5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.charity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.charity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.charity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 160, 23, 0.35);
}
.charity-card:active {
  transform: translateY(0) scale(.99);
  box-shadow: var(--shadow);
}
.charity-card-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .35rem;
}
.charity-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
  padding: .2rem;
}
.charity-card h3 { margin: .4rem 0 .35rem; font-size: 1.05rem; }
.progress {
  height: 6px; background: #ebe6dc; border-radius: 99px; overflow: hidden; margin-top: .6rem;
}
.progress > span { display: block; height: 100%; background: var(--gold); }

.qr {
  width: 160px; height: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem;
}
.vote-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  align-items: flex-start;
}
.vote-meta { min-width: min(100%, 16rem); flex: 1 1 16rem; }
.vote-meta .mono {
  margin: .35rem 0 .7rem;
  padding: .65rem .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .15rem 0 .85rem;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 0;
  padding: .7rem .95rem;
  border: 1px solid var(--ink);
  border-bottom-width: 3px;
  border-bottom-color: var(--gold);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .15s ease,
    background .15s ease,
    color .15s ease,
    box-shadow .18s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
}
.btn-action .material-symbols-outlined {
  font-size: 1.15rem;
  color: inherit;
  transition: transform .18s ease;
}
.btn-action:hover {
  transform: translateY(-2px);
  background: rgba(212, 160, 23, 0.12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}
.btn-action:hover .material-symbols-outlined { transform: scale(1.1); }
.btn-action:active {
  transform: translateY(1px) scale(.97);
  box-shadow: none;
  background: rgba(212, 160, 23, 0.2);
}
.btn-action:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn-action.is-wallet {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  border-bottom-color: var(--gold);
}
.btn-action.is-wallet .material-symbols-outlined { color: var(--gold); }
.btn-action.is-wallet:hover {
  background: #222;
  color: #fff;
}
.btn-action.is-copied {
  background: rgba(212, 160, 23, 0.18);
}
.btn-action[hidden],
.vote-actions[hidden] { display: none !important; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  word-break: break-all;
}

.material-symbols-outlined,
.material-icons {
  font-family: "Material Symbols Outlined", "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  color: var(--gold);
  vertical-align: middle;
  user-select: none;
}
.material-symbols-outlined.md-18,
.material-icons.md-18 { font-size: 18px; }
.material-symbols-outlined.md-24,
.material-icons.md-24 { font-size: 24px; }
.material-symbols-outlined.md-32,
.material-icons.md-32 { font-size: 32px; }
.stat-card .material-symbols-outlined,
.stat-card .material-icons {
  font-size: 1.75rem;
  margin-bottom: .15rem;
}

.foot {
  width: 100%;
  margin: 0 auto;
  padding: .9rem 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  color: var(--muted);
  background: rgba(247, 244, 238, 0.9);
}
.foot p { margin: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .top .nav { display: none; }
}

@media (min-width: 769px) {
  .nav-backdrop,
  .nav-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand-mark .coin,
  .nav a,
  .nav a .material-symbols-outlined,
  .nav-toggle,
  .nav-toggle .material-symbols-outlined,
  .nav-close,
  .nav-close .material-symbols-outlined,
  .nav-drawer-links a,
  .nav-drawer-links a .material-symbols-outlined,
  .btn,
  .btn .material-symbols-outlined,
  .btn-action,
  .btn-action .material-symbols-outlined,
  .charity-card {
    transition: none !important;
  }
  .brand-mark:hover,
  .brand-mark:active,
  .nav a:hover,
  .nav a:active,
  .nav-toggle:hover,
  .nav-toggle:active,
  .nav-close:hover,
  .nav-close:active,
  .nav-drawer-links a:hover,
  .nav-drawer-links a:active,
  .btn:hover,
  .btn:active,
  .btn-action:hover,
  .btn-action:active {
    transform: none !important;
  }
}
