/* outgive.lol - (c) 2026 outgive.lol. All rights reserved. */

:root {
  --bg: #fffdf9;
  --fg: #24282a;
  --card: #fffdf9;
  --muted: #f3f4ef;
  --muted-fg: #686e68;
  --faint: #a3a8a1;
  --border: #e5e7df;
  --primary: #128a5c;
  --primary-fg: #ffffff;
  --primary-soft: #e4f3ea;
  --primary-tint: #f0f8f3;
  --heat: #e5725a;
  --gold: #c58f1f;
  --live: #0fa858;
  --shadow: 0 10px 34px rgba(40, 50, 40, 0.07);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 820px;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
html.dark {
  --bg: #111614;
  --fg: #f3f5f1;
  --card: #181f1b;
  --muted: #222a25;
  --muted-fg: #a5ada6;
  --faint: #6f776f;
  --border: rgba(255, 255, 255, 0.09);
  --primary: #2fc27f;
  --primary-fg: #0c1a12;
  --primary-soft: rgba(47, 194, 127, 0.16);
  --primary-tint: rgba(47, 194, 127, 0.08);
  --heat: #ff8a6a;
  --gold: #e0ad45;
  --live: #3ad17f;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button { font-family: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; }

/* ---------------------------------------------------------------- header */
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo:hover { color: inherit; }
.logo svg { display: block; }
nav.main { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
nav.main a { color: var(--fg); }
nav.main a.active { font-weight: 700; }
.theme-toggle {
  width: 32px; height: 32px; border-radius: 999px; border: 0;
  background: transparent; color: var(--fg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--muted); }
.theme-toggle .sun { display: none; }
html.dark .theme-toggle .sun { display: block; }
html.dark .theme-toggle .moon { display: none; }

/* ---------------------------------------------------------- stats pill */
.pill-stats {
  display: flex; justify-content: center; margin: 6px 0 22px;
}
.pill-stats span.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--muted); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--muted-fg);
}
.pill-stats .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--live);
  box-shadow: 0 0 0 3px rgba(15, 168, 88, 0.18);
}
.pill-stats strong { color: var(--live); font-weight: 700; }
.pill-stats .sep { opacity: 0.5; }

/* ------------------------------------------------------- charity card */
.charity-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-soft));
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 0 0 30px;
}
.charity-card .heart {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
}
.charity-card .body { flex: 1 1 240px; min-width: 0; }
.charity-card .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}
.charity-card h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.charity-card h2 a:hover { text-decoration: underline; }
.charity-card p { margin: 2px 0 0; color: var(--muted-fg); font-size: 13.5px; }
.charity-card .side { text-align: right; font-size: 13px; color: var(--muted-fg); flex: none; }
.charity-card .side .big { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--primary); }

/* ---------------------------------------------------------------- hero */
.hero { text-align: center; }
.hero h1 {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 42px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.1;
}
.hero .amt-wrap { display: inline-flex; align-items: center; gap: 8px; }
.hero .amt-btn {
  width: 26px; height: 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--primary-soft); color: var(--primary); font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.hero .amt-btn:hover { background: var(--primary); color: var(--primary-fg); }
.hero input.amt {
  font-family: var(--mono); font-size: 42px; font-weight: 500; color: var(--primary);
  background: transparent; border: 0; outline: none; padding: 0; margin: 0;
  width: 6ch; min-width: 3ch; text-align: left; letter-spacing: -0.02em; -moz-appearance: textfield;
}
.hero input.amt::-webkit-outer-spin-button, .hero input.amt::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hero .dollar { font-family: var(--mono); font-size: 42px; color: var(--primary); font-weight: 500; margin-right: -6px; }
.hero .sub { color: var(--muted-fg); max-width: 480px; margin: 0 auto; font-size: 14.5px; }
.hero .sub .accent { color: var(--primary); font-weight: 500; }
.hero .split { margin: 8px auto 0; font-size: 13px; color: var(--muted-fg); }
.hero .split b { color: var(--fg); font-weight: 600; }

.search {
  display: flex; align-items: center; gap: 10px;
  margin: 22px auto 0; max-width: 720px;
}
.search .field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 50px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); padding: 0 18px; color: var(--faint);
}
.search .field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search input {
  flex: 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--fg); min-width: 0;
}
.search input::placeholder { color: var(--faint); }
.btn {
  height: 50px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: var(--primary-fg); font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.btn:hover { filter: brightness(0.94); color: var(--primary-fg); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.hint { text-align: center; color: var(--muted-fg); font-size: 13px; margin: 12px 0 0; }
.error { text-align: center; color: #c8321f; font-size: 13px; margin: 10px 0 0; display: none; }
html.dark .error { color: #ff7b6b; }

/* ---------------------------------------------------------------- cards */
.cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 28px;
}
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 8px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.card h3 .ic { color: var(--heat); display: inline-flex; }
.card h3 .live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--heat); display: inline-block; }
.card ol, .card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--border);
}
.card li:first-child { border-top: 0; }
.card li img { width: 18px; height: 18px; border-radius: 5px; flex: none; background: var(--muted); }
.card li .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card li .at { color: var(--muted-fg); white-space: nowrap; }
.card li .meta { margin-left: auto; color: var(--muted-fg); white-space: nowrap; font-size: 12.5px; }
.card .empty { color: var(--faint); font-size: 13px; padding: 8px 0; }

/* ----------------------------------------------------------- leaderboard */
.board { margin: 0 0 60px; }
.top-entry {
  display: flex; align-items: center; gap: 16px;
  background: var(--primary-tint); border: 1.5px solid var(--primary-soft);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 12px;
  position: relative;
}
.top-entry.r1 { border-color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), var(--primary-tint)); }
.top-entry .badge {
  flex: none; width: 38px; height: 38px; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.top-entry.r2 .badge, .top-entry.r3 .badge { background: var(--primary-soft); color: var(--primary); }
.top-entry .icon { width: 60px; height: 60px; border-radius: 16px; flex: none; background: var(--muted); object-fit: cover; }
.top-entry .body { flex: 1; min-width: 0; }
.top-entry .name { font-weight: 700; font-size: 16px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-entry .desc { margin: 2px 0 4px; font-size: 14px; color: var(--fg); opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-entry .meta, .entry .meta { font-size: 12px; color: var(--muted-fg); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.top-entry .meta .dot, .entry .meta .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--heat); display: inline-block; }
.top-entry .meta b, .entry .meta b { color: var(--fg); font-weight: 600; }
.top-entry .amount, .entry .amount {
  font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--primary); white-space: nowrap;
  position: absolute; right: 20px; top: 16px;
}
.top-entry .claim, .entry .claim {
  position: absolute; right: 20px; bottom: 14px;
  font-size: 12px; color: var(--muted-fg); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.top-entry .claim:hover, .entry .claim:hover { color: var(--primary); }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--primary); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--primary-soft); }
.divider span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; border: 1px solid var(--primary-soft);
  border-radius: 999px; padding: 3px 12px; background: var(--card);
}

.entry {
  display: flex; align-items: center; gap: 16px; padding: 16px 4px 16px 0;
  border-bottom: 1px solid var(--border); position: relative;
}
.entry .rank { flex: none; width: 44px; text-align: center; color: var(--muted-fg); font-weight: 600; font-size: 15px; }
.entry .icon { width: 52px; height: 52px; border-radius: 14px; flex: none; background: var(--muted); object-fit: cover; }
.entry .body { flex: 1; min-width: 0; padding-right: 110px; }
.entry .name { font-weight: 700; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .desc { margin: 1px 0 3px; font-size: 13.5px; color: var(--fg); opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry .amount { top: 14px; right: 4px; }
.entry .claim { right: 4px; bottom: 12px; }
.board .empty { text-align: center; color: var(--muted-fg); padding: 36px 0; }
@media (max-width: 560px) {
  .top-entry .body, .entry .body { padding-right: 0; }
  .top-entry .amount, .entry .amount, .top-entry .claim, .entry .claim { position: static; }
  .top-entry, .entry { flex-wrap: wrap; }
  .hero h1, .hero input.amt, .hero .dollar { font-size: 34px; }
}

/* ----------------------------------------------------------------- prose */
.prose { max-width: 700px; margin: 24px auto 64px; }
.prose h1 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 4px; }
.prose h2 { font-size: 19px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--fg); opacity: 0.88; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { color: var(--muted-fg); font-size: 13px; margin: 0 0 18px; }
.prose .notice {
  background: var(--primary-tint); border: 1px solid var(--primary-soft); border-radius: var(--radius);
  padding: 14px 16px; font-size: 14px;
}
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; }
.prose td, .prose th { border-bottom: 1px solid var(--border); padding: 8px 6px; text-align: left; }
.prose td.num, .prose th.num { text-align: right; font-family: var(--mono); }

/* ---------------------------------------------------------------- footer */
footer.site { padding: 26px 0 40px; font-size: 13px; color: var(--muted-fg); text-align: center; }
footer.site .links { margin-bottom: 10px; }
footer.site .links a { margin: 0 7px; }
footer.site .links a:hover { text-decoration: underline; }
footer.site .legal { max-width: 640px; margin: 0 auto; font-size: 12px; line-height: 1.55; }
