/* ===== The Hood Ponzi — minimal Robinhood palette =====
   One restrained green accent. Everything else monochrome + warm neutrals. */
:root {
  --green:      #0a5c3c;   /* deep forest — used sparingly */
  --green-dk:   #08492f;
  --ink:        #171a17;   /* near-black text */
  --muted:      #74786f;   /* warm gray */
  --bg:         #f6f4ef;   /* warm off-white ground */
  --surface:    #ffffff;
  --line:       #e6e2d8;   /* warm hairline */
  --line-2:     #d8d3c7;
  --radius:     14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-feature-settings: "tnum" 1;
}

.forest-bg { display: none; }   /* dropped the grid/glow backdrop */

.wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 22px 64px;
}

/* ===== Hero ===== */
.hero { text-align: center; padding: 4px 0 34px; }
.logo {
  width: 60px; height: 60px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.feather { width: 34px; height: 34px; }

.title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: -0.5px;
  color: var(--ink);
}
.tagline {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
}
.subhead { color: var(--muted); margin-top: 6px; font-size: 14px; }
.subhead .hl { color: var(--green); font-weight: 600; }

.apr-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--line-2);
}

.hero-btns { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }

/* ===== Buttons ===== */
.btn {
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 600;
  border-radius: var(--radius);
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
  color: var(--ink);
}
.btn:active { transform: translateY(1px); }

.btn-ghost {
  flex: 1; max-width: 150px;
  padding: 11px 0;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dk); }

.btn-dark {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn-dark:hover { border-color: var(--ink); }

.btn-solid-ink {
  background: var(--ink);
  color: #fff;
}
.btn-solid-ink:hover { background: #000; }

/* Network warning banner */
.network-warn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 11px 16px;
  background: #7f1d1d;
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  line-height: 1.4;
}
.btn-switch-net {
  padding: 5px 14px; border: none; border-radius: 999px;
  background: #fff; color: #7f1d1d;
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: opacity .12s;
}
.btn-switch-net:hover { opacity: .88; }

/* Transaction loading state */
.btn.is-loading {
  opacity: .55;
  pointer-events: none;
  cursor: not-allowed;
}

/* disabled / cooldown state */
.btn.is-disabled {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line-2);
  pointer-events: none;
}
.btn.is-disabled .ba-sub { opacity: .8; }

/* ===== Game panel ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 22px 24px;
}

.stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stat-row-last { border-bottom: none; }
.stat-label { color: var(--muted); font-weight: 400; font-size: 14px; }
.stat-val { font-weight: 600; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-val small { color: var(--muted); font-size: 11px; font-weight: 500; }
.stat-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 1px 7px; margin-left: 4px;
  vertical-align: 1px;
}
.stat-sub { display: block; text-align: right; font-size: 12px; font-weight: 500; color: var(--muted); }

.input-shell {
  display: flex; align-items: center;
  background: var(--bg);
  border-radius: 12px;
  margin-top: 16px;
  padding: 4px 16px 4px 4px;
  border: 1px solid var(--line-2);
  transition: border-color .15s;
}
.input-shell:focus-within { border-color: var(--green); }
.amount-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 22px; font-weight: 600; text-align: right;
  color: var(--ink); padding: 12px 10px; font-variant-numeric: tabular-nums;
}
.input-suffix { font-weight: 600; color: var(--muted); font-size: 15px; }

.pct-row { display: flex; gap: 8px; margin-top: 12px; }
.pct {
  flex: 1; padding: 9px 0;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px;
  font-family: inherit; font-weight: 500; font-size: 13px; cursor: pointer;
  transition: all .12s;
}
.pct:hover { border-color: var(--ink); color: var(--ink); }
.pct-max { color: var(--green); border-color: var(--line-2); }

.btn-rob { width: 100%; padding: 15px 0; margin-top: 16px; font-size: 15px; }

.divider { height: 1px; background: var(--line); margin: 22px 0 18px; }

.loot-row,
.ref-earn-row {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.ref-earn-row { margin-top: 10px; }
.loot-label { font-weight: 500; color: var(--muted); font-size: 14px; padding-top: 3px; }
.loot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.loot-val { font-weight: 700; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.loot-val small { color: var(--muted); font-size: 11px; font-weight: 500; }
.loot-eth { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Referral claim inline button */
.btn-ref-claim {
  margin-top: 4px;
  padding: 5px 14px;
  font-size: 12px; font-weight: 600;
  background: var(--green); color: #fff;
  border: none; border-radius: 999px;
  cursor: pointer; font-family: inherit;
  transition: background .12s;
}
.btn-ref-claim:hover { background: var(--green-dk); }
.btn-ref-claim:disabled {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line-2);
  cursor: not-allowed;
}

.action-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.action-2col .btn { padding: 12px 6px; display: flex; flex-direction: column; gap: 1px; }
.ba-top { font-size: 14px; }
.ba-sub { font-size: 10px; font-weight: 500; opacity: .65; text-transform: uppercase; letter-spacing: .4px; }

.wallet-cta { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
.pulse { color: var(--green); }

.btn-connect { width: 100%; padding: 13px 0; margin-top: 10px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  font-size: 14px; position: relative; overflow: hidden; }
.btn-connect:hover { background: var(--ink); color: #fff; }

.btn-disconnect-label { display: none; }

.btn-connect.is-connected:hover {
  background: #7f1d1d;
  border-color: #7f1d1d;
  color: #fff;
}
.btn-connect.is-connected:hover .btn-connect-label { display: none; }
.btn-connect.is-connected:hover .btn-disconnect-label { display: inline; }

/* ===== How it works ===== */
.how-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  margin-top: 16px;
}
.section-title { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 14px; }
.how-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.how-list li {
  position: relative; padding-left: 24px; font-size: 14px; color: var(--muted); line-height: 1.5;
}
.how-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.how-list b { color: var(--ink); font-weight: 600; }

.example {
  margin-top: 18px; padding: 16px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.example-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; }
.example-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.example-table td { padding: 6px 0; vertical-align: top; }
.example-table td:first-child { color: var(--muted); }
.example-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.example-table b { color: var(--green); }
.example-table .dim { color: var(--muted); font-weight: 400; }
.example-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.sustain { margin-top: 16px; }
.sustain p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.sustain b { color: var(--ink); font-weight: 600; }

/* ===== Referral ===== */
.ref-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  margin-top: 16px;
  text-align: center;
}
.ref-title { font-family: 'Inter', sans-serif; color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.ref-link-shell {
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px; margin: 16px 0; font-size: 12px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-copy { width: 100%; padding: 12px 0; font-size: 14px; }
.ref-blurb { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.65; }
.ref-blurb b { color: var(--ink); font-weight: 600; }

/* ===== Footer ===== */
.foot { text-align: center; color: var(--muted); font-size: 11px; margin-top: 32px; line-height: 1.6; }
.foot-chain { color: var(--muted); margin-top: 8px; letter-spacing: .3px; font-weight: 500; }

.social-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
  transition: color .12s;
}
.social-link:hover { color: var(--green); }
.x-icon { width: 15px; height: 15px; }

@media (max-width: 400px) {
  .action-2col { grid-template-columns: 1fr; }
}

