:root {
  --night: #11142a;
  --night-2: #1a1e3d;
  --night-3: #262c56;
  --line: #070814;
  --ink: #eef0ff;
  --muted: #a7acd3;
  --kai: #ffffff;
  --mimi: #ffc2d6;
  --orange: #f58d3d;
  --orange-hi: #ffad66;
  --orange-lo: #a8471c;
  --torch: #ffc266;
  --locked: #323866;
  --pixel: "Silkscreen", ui-monospace, "Courier New", monospace;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, #2a2f63 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0d1022 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
b.kai { color: var(--kai); }
b.mimi { color: var(--mimi); }

/* ---------- falling square snow ---------- */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.snow i {
  position: absolute; top: -12px; background: #fff;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate(0, -5vh); }
  50%  { transform: translate(18px, 50vh); }
  100% { transform: translate(-6px, 108vh); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(13, 16, 34, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--pixel); }
.brand img { width: 36px; height: 36px; border: 3px solid var(--line); image-rendering: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font: 400 14px var(--pixel); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.topbar .btn-small { margin-left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 700 15px/1 var(--pixel);
  letter-spacing: 0.02em;
  text-decoration: none; text-align: center;
  color: #1c0e04;
  background: var(--orange);
  padding: 15px 20px 17px;
  border: 3px solid var(--line);
  box-shadow: inset 0 -5px 0 var(--orange-lo), inset 0 3px 0 var(--orange-hi), 4px 4px 0 var(--line);
  cursor: pointer;
  transition: transform 0.06s, box-shadow 0.06s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: inset 0 -5px 0 var(--orange-lo), inset 0 3px 0 var(--orange-hi), 5px 5px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: inset 0 -3px 0 var(--orange-lo), 1px 1px 0 var(--line); }
.btn:focus-visible { outline: 3px solid var(--torch); outline-offset: 3px; }
.btn-ghost {
  color: var(--ink); background: rgba(17, 20, 42, 0.6);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35), 4px 4px 0 var(--line);
  border-color: var(--ink);
}
.btn-ghost:hover { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35), 5px 5px 0 var(--line); }
.btn-small { font-size: 12px; padding: 10px 12px 12px; }
.btn-block { display: block; width: 100%; }
.btn-off, .btn-off:hover, .btn-off:active {
  color: var(--muted); background: var(--locked); cursor: not-allowed; transform: none;
  box-shadow: inset 0 -4px 0 #1f2347, 4px 4px 0 var(--line);
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; overflow: hidden; border-bottom: 3px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 70% 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 16, 34, 0.92) 0%, rgba(13, 16, 34, 0.55) 38%, rgba(13, 16, 34, 0) 62%),
    linear-gradient(0deg, rgba(13, 16, 34, 0.85) 0%, rgba(13, 16, 34, 0) 30%);
}
.hero-copy { position: relative; padding: 48px clamp(18px, 6vw, 80px); max-width: 760px; }
.title {
  margin: 0 0 18px;
  font: 700 clamp(48px, 7vw, 92px)/0.95 var(--pixel);
  letter-spacing: 0.01em;
}
.title span { display: block; white-space: nowrap; }
.t-white {
  color: #fff;
  text-shadow: -3px 0 0 var(--line), 3px 0 0 var(--line), 0 -3px 0 var(--line), 0 3px 0 var(--line), 6px 6px 0 var(--line);
}
.t-orange {
  color: var(--orange);
  text-shadow: -3px 0 0 #4a1c08, 3px 0 0 #4a1c08, 0 -3px 0 #4a1c08, 0 3px 0 #4a1c08, 6px 6px 0 #4a1c08;
}
.lede { margin: 0 0 26px; font-size: clamp(17px, 2vw, 20px); font-weight: 600; max-width: 30em; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- stats strip ---------- */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 980px; margin: -44px auto 0; padding: 0 clamp(14px, 4vw, 24px);
  gap: 12px;
}
.stat {
  background: var(--night-2);
  border: 3px solid var(--line);
  box-shadow: inset 0 3px 0 var(--night-3), 4px 4px 0 var(--line);
  padding: 14px 10px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font: 700 clamp(20px, 3.2vw, 30px)/1 var(--pixel); color: var(--torch); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- sections ---------- */
.block { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 24px) 8px; }
.h2 { margin: 0 0 6px; font: 700 clamp(26px, 4vw, 38px)/1.1 var(--pixel); text-shadow: 4px 4px 0 var(--line); }
.sub { margin: 0 0 26px; color: var(--muted); font-weight: 600; }
.note { color: var(--muted); font-size: 15px; margin: 22px 0 0; }
.note.center { text-align: center; }

.panel {
  background: var(--night-2);
  border: 3px solid var(--line);
  box-shadow: inset 0 3px 0 var(--night-3), 5px 5px 0 var(--line);
  padding: 20px 22px;
}

/* ---------- next-goal card + bar ---------- */
.next { margin-bottom: 30px; }
.next-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.next-label { font: 400 13px var(--pixel); color: var(--muted); text-transform: uppercase; }
.next-amount { font: 700 22px var(--pixel); color: var(--torch); }
.next-title { font: 700 clamp(22px, 3.4vw, 30px)/1.15 var(--pixel); margin: 6px 0 16px; }
.next-foot { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 700; font-size: 15px; color: var(--muted); }
.bar {
  height: 30px; background: #0a0c1d;
  border: 3px solid var(--line);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.6);
  position: relative; overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 22%, transparent 22% 75%, rgba(0, 0, 0, 0.22) 75%),
    repeating-linear-gradient(90deg, var(--orange) 0 16px, var(--orange-lo) 16px 19px);
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}

.bar-mini { height: 18px; margin: 12px 0 4px; border-width: 2px; }

.who-kai { color: var(--kai); }
.who-mimi { color: var(--mimi); }
.who-both { color: var(--torch); }

/* ---------- ladder ---------- */
.ladder { list-style: none; margin: 0; padding: 0; }
.rung { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.rung-track { position: relative; }
/* the line hangs below each node and shows progress toward the NEXT goal */
.rung-track::before, .rung-track::after {
  content: ""; position: absolute; left: 50%; width: 8px; margin-left: -4px; top: 34px;
}
.rung-track::before { bottom: -6px; background: var(--locked); border-left: 2px solid var(--line); border-right: 2px solid var(--line); }
.rung-track::after { height: calc((100% - 28px) * var(--next-fill, 0) / 100); background: var(--orange); border-left: 2px solid var(--line); border-right: 2px solid var(--line); }
.rung.last .rung-track::before, .rung.last .rung-track::after { display: none; }
.rung-node {
  position: absolute; left: 50%; top: 10px; width: 26px; height: 26px; margin-left: -13px;
  background: var(--locked); border: 3px solid var(--line); z-index: 1;
}
.rung.done .rung-node { background: var(--orange); box-shadow: inset 0 -4px 0 var(--orange-lo), inset 0 3px 0 var(--orange-hi); }
.rung.now .rung-node { background: var(--torch); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 194, 102, 0.0), 0 0 14px 2px rgba(255, 194, 102, 0.55); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 194, 102, 0.25), 0 0 22px 6px rgba(255, 194, 102, 0.75); }
}
.rung-body {
  margin-bottom: 16px; padding: 14px 18px 12px;
  background: var(--night-2);
  border: 3px solid var(--line);
  box-shadow: inset 0 3px 0 var(--night-3), 4px 4px 0 var(--line);
}
.rung.locked .rung-body { background: rgba(26, 30, 61, 0.7); }
.rung.locked .rung-title, .rung.locked .rung-text { opacity: 0.72; }
.rung.now .rung-body { border-color: #6a4a12; box-shadow: inset 0 3px 0 var(--night-3), 0 0 0 2px rgba(255, 194, 102, 0.35), 4px 4px 0 var(--line); }
.rung-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rung-amount { font: 700 18px var(--pixel); color: var(--torch); }
.rung-title { font: 700 20px/1.2 var(--pixel); margin: 6px 0 4px; }
.rung-text { margin: 0; color: var(--muted); font-size: 15.5px; }
.chip { font: 400 11px/1 var(--pixel); padding: 6px 8px; border: 2px solid var(--line); text-transform: uppercase; white-space: nowrap; }
.chip-done { background: var(--orange); color: #1c0e04; }
.chip-now { background: var(--torch); color: #1c0e04; }
.chip-locked { background: var(--locked); color: var(--muted); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li {
  display: flex; align-items: center; gap: 12px;
  background: var(--night-2); border: 3px solid var(--line);
  box-shadow: inset 0 3px 0 var(--night-3), 4px 4px 0 var(--line);
  padding: 12px 14px; font-weight: 700; font-size: 15.5px;
}
.step-n {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  font: 700 17px var(--pixel); color: #1c0e04; background: var(--torch); border: 3px solid var(--line);
}

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--night-2); border: 3px solid var(--line);
  box-shadow: inset 0 3px 0 var(--night-3), 5px 5px 0 var(--line);
  padding: 22px 20px 20px;
}
.tier.featured { border-color: var(--orange); box-shadow: inset 0 3px 0 var(--night-3), 0 0 0 3px var(--line), 7px 7px 0 var(--line), 0 0 30px rgba(245, 141, 61, 0.25); }
.ribbon {
  position: absolute; top: -14px; right: 14px;
  font: 700 12px/1 var(--pixel); color: #1c0e04; background: var(--torch);
  padding: 6px 9px; border: 3px solid var(--line);
}
.tier-price { font: 700 40px/1 var(--pixel); color: var(--torch); text-shadow: 3px 3px 0 var(--line); }
.tier-title { font: 700 20px/1.2 var(--pixel); margin: 12px 0 6px; }
.tier-text { margin: 0 0 8px; font-weight: 600; }
.tier-ex { margin: 0 0 18px; color: var(--mimi); font-style: italic; font-size: 15px; flex: 1; }

/* ---------- credits ---------- */
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.credits li {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
  background: var(--night-2); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line);
  padding: 12px 16px;
}
.credit-name { font: 700 16px var(--pixel); color: var(--torch); }
.credit-idea { color: var(--muted); }
.credit-ep { font: 400 11px var(--pixel); color: var(--ink); background: var(--locked); padding: 3px 6px; margin-left: 6px; }
.empty { color: var(--muted); text-align: center; font-weight: 600; }

/* ---------- rules ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { position: relative; padding-left: 28px; font-weight: 600; }
.rules li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 12px;
  background: var(--orange); border: 2px solid var(--line);
}

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1;
  margin-top: 80px; padding: 34px 20px 44px; text-align: center;
  background: rgba(7, 8, 20, 0.6); border-top: 3px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.footer p { margin: 4px 0; }
.fine { font-size: 13px; opacity: 0.8; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .topbar .btn-small { margin-left: auto; }
  .hero { min-height: 0; display: block; }
  .hero-media { position: relative; }
  .hero picture, .hero-img { position: relative; height: auto; }
  .hero-img { aspect-ratio: 825 / 1080; max-height: 78vh; object-position: 50% 70%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(13, 16, 34, 0.88) 0%, rgba(13, 16, 34, 0.25) 22%, rgba(13, 16, 34, 0) 40%),
      linear-gradient(0deg, var(--night) 0%, rgba(17, 20, 42, 0.0) 26%);
  }
  .hero-copy { position: static; padding: 0 18px 64px; max-width: none; }
  .title { position: absolute; top: 20px; left: 18px; right: 18px; font-size: clamp(44px, 14vw, 72px); }
  .title span { display: inline; }
  .lede { margin-top: -6px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .stats { margin-top: -38px; gap: 8px; }
  .stat { padding: 12px 6px; }
  .stat-label { font-size: 12px; line-height: 1.25; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; gap: 22px; }
  .rung { grid-template-columns: 30px 1fr; gap: 10px; }
  .rung-node { width: 22px; height: 22px; margin-left: -11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rung.now .rung-node { animation: none; box-shadow: 0 0 14px 2px rgba(255, 194, 102, 0.55); }
  .bar-fill { transition: none; }
}
