/* Minimal black: one narrow column, Inter, thin white progress bars. */
:root {
  --bg: #000;
  --text: #fff;
  --faint: rgba(255, 255, 255, 0.35);
  --fainter: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.4 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.column { width: min(520px, 92vw); }

/* Progress bars */
.track {
  width: 100%;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.total-track { height: 8px; margin-bottom: 1rem; }
.fill {
  height: 100%;
  width: 0;
  background: var(--text);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Amount + percent */
.amount-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.amount {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.percent { font-size: 0.78rem; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sub { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fainter); }

/* Total */
.summary { margin-bottom: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.summary .amount { font-size: clamp(2rem, 7vw, 2.8rem); }
.summary-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.9rem; }

/* Goals */
.goals { display: flex; flex-direction: column; gap: 0.9rem; }
.goal {
  padding: 1.2rem 1.3rem 1.1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}
.goal .track { background: rgba(255, 255, 255, 0.14); }
.goal .percent { color: rgba(255, 255, 255, 0.55); }
.goal .sub { color: rgba(255, 255, 255, 0.4); }
.goal-name {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty { text-align: center; }

/* Donate */
.support { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.support > .sub { font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
/* Ko-fi widget: black button on a black page, so give it an outline */
.kofi-widget { margin-top: 0.85rem; }
.kofi-widget a.kofi-button { border: 1px solid rgba(255, 255, 255, 0.35) !important; box-shadow: none; }
.kofi-widget a.kofi-button:hover { border-color: rgba(255, 255, 255, 0.7) !important; opacity: 1; }
.donate-links[hidden] { display: none; }
.donate-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.donate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  transition: background 0.2s, border-color 0.2s;
}
.donate:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }
.donate:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
.icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font: 800 0.7rem/1 "Inter", system-ui, sans-serif;
}
.icon img, .icon svg { width: 13px; height: 13px; display: block; }

/* Footer */
footer { margin-top: 3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 0.5em; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fainter); }
.status.live::before { background: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .fill, .donate { transition: none; }
}

/* Currency code (e.g. CAD) after the big amounts */
.code { margin-left: 0.4em; font-size: 0.42em; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); vertical-align: 0.15em; }
.summary .code { font-size: 0.36em; }
