/* Shared look for the public pages (/ and /sponsors). Phone first, scales up to desktop. */
:root {
  --bg: #0b1530; --bg2: #13224a; --card: rgba(255,255,255,.06); --line: rgba(255,255,255,.12);
  --ink: #f4f7ff; --soft: #d9e2f7; --muted: #a9b6d6; --accent: #ff7a1a; --accent2: #ffb347; --ice: #5fd3ff; --good: #3ddc84;
  --radius: 22px; --wrap: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(120% 60% at 50% 0%, var(--bg2) 0%, var(--bg) 70%) fixed, var(--bg);
  color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-bottom: 96px; /* room for the sticky donate bar */
}
img { max-width: 100%; display: block; }
a { color: var(--accent2); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.display, h1, h2 { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; letter-spacing: .3px; line-height: 1; }
h1 { font-size: clamp(44px, 9vw, 88px); }
h2 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 14px; }
h3 { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.1; margin-bottom: 6px; }
.eyebrow { color: var(--accent2); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-bottom: 10px; }
.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--soft); max-width: 62ch; }
.muted { color: var(--muted); }
b, strong { color: var(--accent2); }
section { padding: clamp(40px, 7vw, 80px) 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.topbar .cup { height: 64px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.bsf { background: #fff; border-radius: 14px; padding: 6px 10px; }
.bsf img { height: 40px; width: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 18px; cursor: pointer; text-decoration: none;
  font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.btn-donate { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #1a0d00; font-size: clamp(26px, 4.4vw, 36px); padding: 16px 30px;
  box-shadow: 0 10px 30px rgba(255,122,26,.35), inset 0 -5px 0 rgba(0,0,0,.18); }
.btn-donate:active { transform: translateY(2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); font-size: clamp(20px, 3vw, 26px); padding: 12px 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
.share-status { color: var(--good); font-weight: 700; }

/* Progress */
.progress { margin-top: 26px; }
.raised { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: clamp(56px, 11vw, 104px); line-height: .9; text-shadow: 0 0 40px rgba(255,122,26,.3); }
.raised small { font-family: Inter, sans-serif; font-size: clamp(16px, 2.4vw, 22px); font-weight: 600; color: var(--muted); text-shadow: none; margin-left: 8px; }
.bar { height: 22px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin: 14px 0 12px; }
.bar > div { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 15px; font-weight: 600; }
.pill b { color: var(--ink); }

/* Banner for an active match sponsor */
.match { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--accent2);
  background: linear-gradient(135deg, rgba(255,122,26,.25), rgba(255,179,71,.08)); font-weight: 700; font-size: 18px; }
.match.on { display: block; }

/* Supporters */
.donors { list-style: none; display: grid; gap: 10px; }
.donor { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.05); }
.donor .who { font-weight: 700; }
.donor .when { color: var(--muted); font-size: 14px; }
.donor .amt { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: 26px; color: var(--accent2); }

/* Story cards */
.story img.photo { border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 16px; }
.story .diagram { background: #fff; border-radius: 18px; padding: 10px; margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 1.6em 1fr; gap: 8px; color: var(--soft); }

/* Map */
.map { height: clamp(280px, 50vw, 440px); border-radius: 18px; overflow: hidden; position: relative; z-index: 0; isolation: isolate; background: #0e1a33; margin: 16px 0 12px; }
.leaflet-container { font-family: Inter, sans-serif; background: #0e1a33; }
.leaflet-control-attribution { font-size: 9px; background: rgba(11,21,48,.6) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }
.leaflet-bar a { background: rgba(11,21,48,.85); color: var(--ink); border-color: var(--line); }
.area-label { background: rgba(11,21,48,.86); border: 1px solid rgba(255,179,71,.6); border-radius: 12px; color: var(--ink); padding: 2px 8px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.area-label::before { display: none; }
.area-label .amt { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: 20px; color: var(--accent2); }

/* Stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat .n { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: clamp(36px, 6vw, 54px); line-height: 1; color: var(--accent2); }
.stat .l { font-weight: 700; margin-top: 4px; }
.stat .s { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Sponsor wall */
.sponsor-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sponsor { min-height: 130px; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.sponsor.filled { background: linear-gradient(135deg, rgba(255,122,26,.22), rgba(255,255,255,.05)); border: 1px solid rgba(255,179,71,.55); }
.sponsor .logo { max-height: 56px; background: #fff; border-radius: 10px; padding: 6px; }
.sponsor .s-name { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.05; }
.sponsor .s-offer { font-size: 14px; color: var(--soft); }
.sponsor.open { border: 2px dashed rgba(255,255,255,.22); color: var(--muted); }
.sponsor.open .s-ico { font-size: 28px; opacity: .7; }
.sponsor.open .s-name { font-size: 20px; color: var(--ink); opacity: .75; }
.sponsor.open.featured { border-color: rgba(255,179,71,.6); }
.sponsor.open.featured .s-name { color: var(--accent2); opacity: 1; }

/* Sticky donate bar (shows once the hero button scrolls away) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,21,48,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .3s ease; }
.sticky.show { transform: none; }
.sticky .sum { font-weight: 700; font-size: 15px; line-height: 1.2; }
.sticky .sum b { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 26px; display: block; }
.sticky .btn-donate { font-size: 24px; padding: 12px 22px; }

footer { padding: 30px 0 10px; color: var(--muted); font-size: 13px; text-align: center; }
