:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #14120f;
  color: #f4efe6;
  font: 18px/1.4 "Segoe UI", sans-serif;
}
main { width: min(420px, 92vw); text-align: center; }
.fund {
  margin: 0 0 18px;
  padding: 16px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(100deg, #f3b59a 0%, #d7b7e8 55%, #b9c4f5 100%);
  text-align: left;
}
.fund-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fund-title { margin: 4px 0 12px; color: #fff; font-weight: 700; font-size: 20px; }
.fund-days {
  margin: 0;
  flex: none;
  background: #1c1c1e;
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}
.fund-bar {
  position: relative;
  height: 42px;
  border-radius: 999px;
  background: #1c1c1e;
  overflow: hidden;
  border: 3px solid transparent;
  background-image: linear-gradient(#1c1c1e, #1c1c1e), linear-gradient(90deg, #ff9a1f, #7aa2ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.fund-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #ffb000, #ff7a00);
  border-radius: 999px;
}
.fund-label {
  position: relative;
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.rate { letter-spacing: 0.04em; margin: 0 0 16px; }
.stage {
  position: relative;
  height: 320px;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}
.stage video { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.left { min-height: 2.8em; }
form { display: flex; gap: 10px; justify-content: center; align-items: end; }
label { display: grid; gap: 6px; font-size: 14px; text-align: left; }
input, button {
  font: inherit; border-radius: 12px; border: 0; padding: 10px 14px;
}
input { width: 110px; background: #2c261f; color: inherit; }
button { background: #ef8b3a; color: #1a120c; cursor: pointer; }
.err { color: #ffb4a8; min-height: 1.4em; }
