:root {
  color-scheme: dark;
  --bg: #081714;
  --panel: #102520;
  --panel-2: #153129;
  --ink: #eefbf6;
  --muted: #8eaaa0;
  --accent: #70f0b7;
  --line: #26483e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(112, 240, 183, .13), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }

header { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; margin-bottom: 48px; }
.mark { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 18px; color: var(--accent); font-size: 30px; }
.eyebrow, .label { margin: 0 0 8px; color: var(--accent); font: 700 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(36px, 7vw, 72px); line-height: .98; letter-spacing: -.055em; }
.lede { max-width: 660px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }

.meter-card, .controls, .details { border: 1px solid var(--line); border-radius: 22px; background: rgba(16, 37, 32, .84); }
.meter-card { padding: clamp(22px, 4vw, 38px); }
.meter-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.amount { margin: 0; font-size: clamp(25px, 5vw, 44px); font-weight: 720; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.percent { margin: 0; color: var(--accent); font: 700 18px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.track { height: 12px; margin: 28px 0; overflow: hidden; border-radius: 999px; background: #07110f; }
.fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #37bf86, var(--accent)); transition: width .25s ease; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { padding: 16px; border-radius: 14px; background: var(--panel-2); }
.stats span, .stats strong { display: block; }
.stats span { color: var(--muted); font-size: 13px; }
.stats strong { margin-top: 5px; }

.controls, .details { margin-top: 18px; padding: 26px; }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 5px; accent-color: var(--accent); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
button { border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
button.primary { border-color: var(--accent); background: var(--accent); color: #06120e; }
button:disabled { cursor: not-allowed; opacity: .38; }
.note { margin: 18px 0 0; color: var(--muted); }
.details h2 { margin: 0 0 18px; font-size: 20px; }
dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
dl div { padding: 15px; background: var(--panel); }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 4px 0 0; font-weight: 700; }
a { color: var(--accent); }
code { color: var(--ink); }

@media (max-width: 620px) {
  .shell { padding: 36px 0; }
  header { grid-template-columns: 1fr; }
  .mark { width: 52px; height: 52px; }
  .stats, dl { grid-template-columns: 1fr; }
  .meter-head { align-items: start; flex-direction: column; }
}
