* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000;
  color: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* ---------- background rain ---------- */

#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

#rain img {
  position: absolute;
  top: -20vh;
  opacity: 0.4;
  filter: grayscale(30%) brightness(0.9);
  mix-blend-mode: lighten;
  object-fit: cover;
  border-radius: 4px;
  will-change: transform;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fall {
  from { transform: translateY(0); }
  to   { transform: translateY(140vh); }
}

/* ---------- progress chart ---------- */

#chart {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ---------- foreground content ---------- */

#content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 1.5rem 4rem;
}

#percentage {
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 1;
  color: #3ddc72;
  text-shadow: 0 0 30px rgba(61, 220, 114, 0.45), 0 2px 6px rgba(0, 0, 0, 0.9);
}

#amounts {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #e6e6e6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

#history {
  margin-top: 4rem;
  width: 100%;
  max-width: 420px;
}

#history h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

#history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #cfcfcf;
}

#history-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

#history-list li span:last-child {
  color: #3ddc72;
  font-variant-numeric: tabular-nums;
}

#history-list .empty {
  color: #777;
  justify-content: center;
}
