:root {
  --yellow: #ffd400;
  --yellow-soft: #ffe45c;
  --black: #080808;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --line: #2c2c2c;
  --white: #f8f8f4;
  --muted: #9b9b96;
  --danger: #ff5656;
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--black); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 85% -10%, rgba(255, 212, 0, .13), transparent 34rem),
    linear-gradient(180deg, #090909, #050505 70%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button { font: inherit; }

.shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.hero { padding: 44px 0 38px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
}

.brand-clock {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  width: 72px;
  height: 72px;
  padding: 8px 7px 8px 10px;
  color: var(--black);
  background: var(--yellow);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  font-family: "Barlow Condensed", sans-serif;
  line-height: .76;
}

.brand-clock span { font-size: 58px; font-weight: 900; }
.brand-clock small { align-self: start; margin: 9px 0 0 -4px; font-size: 16px; font-weight: 900; }
.brand-copy { display: flex; flex-direction: column; line-height: .9; }
.brand-copy strong { font-family: "Barlow Condensed", sans-serif; font-size: 35px; letter-spacing: .04em; }
.brand-copy span { margin-top: 7px; color: var(--yellow); font-size: 9px; font-weight: 800; letter-spacing: .34em; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}

h1, h2 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; }

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(52px, 9vw, 104px);
  line-height: .85;
  letter-spacing: -.035em;
}

h1 em { color: var(--yellow); font-style: normal; }
.hero-note { margin: 24px 0 0; color: var(--muted); font-size: 14px; }

main { padding-bottom: 48px; }

.panel {
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(27,27,27,.96), rgba(15,15,15,.96));
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading.compact { align-items: center; margin-bottom: 20px; }
h2 { margin: 0; font-size: clamp(34px, 6vw, 54px); line-height: .95; }
.goal-date { text-align: right; }
.goal-date span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.goal-date strong { display: block; margin-top: 4px; font-family: "Barlow Condensed", sans-serif; font-size: 24px; }

.fund { border-top: 3px solid var(--yellow); }
.fund-main { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.metric-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-value { display: block; color: var(--yellow); font-family: "Barlow Condensed", sans-serif; font-size: clamp(58px, 12vw, 94px); line-height: .9; }
.goal-copy { padding-bottom: 9px; text-align: right; }
.goal-copy span { display: block; color: var(--muted); font-size: 11px; }
.goal-copy strong { font-size: 20px; }

.progress-track { overflow: hidden; height: 14px; margin-top: 28px; border-radius: 99px; background: #303030; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e7b900, var(--yellow-soft)); box-shadow: 0 0 22px rgba(255,212,0,.35); transition: width .6s ease; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.progress-copy strong { color: var(--white); }

.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.money-grid article { padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.money-grid span { display: block; color: var(--muted); font-size: 11px; }
.money-grid strong { display: block; margin-top: 5px; font-family: "Barlow Condensed", sans-serif; font-size: 30px; }

.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #343434; border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }

.ranking-list { display: grid; gap: 8px; }
.ranking-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #292929; border-radius: 13px; background: rgba(255,255,255,.02); }
.ranking-row.top { border-color: rgba(255,212,0,.45); background: linear-gradient(90deg, rgba(255,212,0,.1), rgba(255,255,255,.02)); }
.rank { color: var(--muted); font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 800; }
.top .rank { color: var(--yellow); }
.rank-name { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.rank-meta { margin-top: 3px; color: var(--muted); font-size: 11px; }
.rank-value { text-align: right; }
.rank-value strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 25px; }
.rank-value span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }

.milestone-list { display: grid; gap: 12px; }
.milestone { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; }
.milestone-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #373737; border-radius: 50%; color: var(--muted); font-weight: 900; }
.milestone.done .milestone-icon { border-color: var(--yellow); color: var(--black); background: var(--yellow); }
.milestone-copy strong, .milestone-copy span { display: block; }
.milestone-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.milestone-value { font-family: "Barlow Condensed", sans-serif; font-size: 23px; }
.mini-track { overflow: hidden; height: 5px; margin-top: 8px; border-radius: 99px; background: #303030; }
.mini-track i { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { margin-bottom: 18px; min-height: 150px; }
.stat > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.stat > strong { display: block; margin-top: 16px; color: var(--yellow); font-family: "Barlow Condensed", sans-serif; font-size: 58px; line-height: .85; }
.stat sup { font-size: 17px; }
.stat small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.stat > strong.leader { overflow: hidden; color: var(--white); font-size: 31px; line-height: 1; text-overflow: ellipsis; }

.empty-state { padding: 24px; border: 1px dashed #353535; border-radius: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.notice { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; font-size: 13px; }
.notice-error { border: 1px solid rgba(255,86,86,.45); color: #ffb1b1; background: rgba(255,86,86,.08); }
.hidden { display: none !important; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 4px 0; }
footer span, footer strong { display: block; }
footer span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
footer strong { margin-top: 4px; font-size: 11px; }
footer button { min-height: 44px; padding: 0 18px; border: 1px solid #404040; border-radius: 10px; color: var(--white); background: #181818; font-size: 10px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
footer button:hover { border-color: var(--yellow); }
footer button:disabled { opacity: .55; cursor: wait; }

.push-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.push-signature span {
  white-space: nowrap;
}

.push-signature img {
  display: block;
  width: 112px;
  height: auto;
}

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 620px); }
  .hero { padding-top: 28px; }
  .brand { margin-bottom: 38px; }
  .panel { padding: 21px 18px; border-radius: 16px; }
  .fund-main { align-items: start; flex-direction: column; gap: 8px; }
  .goal-copy { padding: 0; text-align: left; }
  .money-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 132px; }
  footer { flex-wrap: wrap; }
  .push-signature {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 390px) {
  .ranking-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding-inline: 12px; }
  .money-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
