:root {
  --green: #1f8a32;
  --green-2: #15681f;
  --ink: #0f140d;
  --paper: #ffffff;
  --muted: #7a847a;
  --line: #ececec;
  --soft: #f6f7f5;
  --sans: "Inter", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --poster: Impact, "Arial Narrow", Haettenschweiler, "Franklin Gothic Bold", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { display: block; }
button, input { font: inherit; }
::selection { background: var(--green); color: #fff; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 clamp(18px, 4vw, 40px); background: var(--ink); color: #fff; }
.brand { font-family: var(--poster); font-size: 22px; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; color: #fff; }
.connect { border: 1.5px solid #fff; background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; transition: transform .15s, opacity .15s; }
.connect:hover { transform: translateY(-1px); opacity: .9; }
.connect.on { background: transparent; color: #fff; }

/* Hero: poster left, burn and spotlight right */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - 64px); }
.poster { background: radial-gradient(120% 90% at 15% 0%, #26a03d 0%, var(--green) 48%, #0f4d1c 100%); color: #fff; padding: 56px 52px 40px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.poster::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.5px); background-size: 16px 16px; opacity: .45; pointer-events: none; }
.eyebrow { position: relative; margin: 0 0 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.poster h1 { position: relative; margin: 0; font-family: var(--poster); font-weight: 400; font-size: clamp(72px, 8vw, 128px); line-height: 0.8; letter-spacing: 0.01em; text-transform: uppercase; }
.capsule { position: relative; width: 150px; height: 58px; margin-top: 28px; border-radius: 999px; display: flex; overflow: hidden; border: 3px solid rgba(255,255,255,.9); transform: rotate(-14deg); box-shadow: 0 16px 36px rgba(0,0,0,.25); }
.capsule span { flex: 1; }
.capsule span:first-child { background: #f7f7f2; }
.capsule span:last-child { background: var(--ink); }
.lede { position: relative; max-width: 420px; margin: auto 0 0; font-size: 16px; color: rgba(255,255,255,.92); }
.ca { position: relative; margin: 14px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: rgba(255,255,255,.7); word-break: break-all; }
.side { padding: 40px 40px 32px; display: flex; flex-direction: column; justify-content: center; gap: 22px; background: #f6f4ee; }

.cta { border: none; background: var(--green); color: #fff; border-radius: 999px; padding: 15px 30px; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px rgba(31,138,50,.28); transition: transform .15s, box-shadow .15s, background .15s; }
.cta:hover { transform: translateY(-2px); background: #23a03a; box-shadow: 0 16px 34px rgba(31,138,50,.34); }
.cta:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* Leader, centered and quiet */
.champion { display: flex; justify-content: center; padding: 56px 24px 8px; background: var(--paper); }
.champion .empty { margin: 0; color: var(--muted); }
.champ-card { width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; }
.champ-tag { margin: 14px 0 0; font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.champ-card img, .champ-card .ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.champ-card .cname { font-family: var(--poster); font-size: 54px; line-height: 0.9; text-transform: uppercase; margin-top: 4px; }
.champ-card .cname a { text-decoration: none; }
.nets { display: flex; gap: 8px; margin-top: 12px; }
.nets a { text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); }
.nets a:hover { border-color: var(--ink); }
.burned-label { margin: 26px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.burned { margin: 2px 0 0; font-family: var(--poster); font-size: 64px; line-height: 0.9; }
.burned small { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.usd { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: var(--green-2); }
.clock { margin: 22px 0 0; font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; letter-spacing: 0.08em; }
.clock-label { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sent { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.sent small { display: block; margin-top: 2px; }

/* Board */
.board { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 40px; }
.board-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; text-align: left; }
.board-head h2 { margin: 0; font-family: var(--poster); font-weight: 400; font-size: clamp(34px, 6vw, 52px); text-transform: uppercase; letter-spacing: 0.02em; }
.board-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 38px 48px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, transform .15s; }
.row:hover { border-color: #cfe6d4; transform: translateX(2px); }
.row.lead { border-color: #ffd86b; background: linear-gradient(0deg, #fffdf4, #fff); }
.rank { font-family: var(--poster); font-size: 24px; color: var(--muted); text-align: center; }
.row.lead .rank { color: #d99a00; }
.row .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.who b { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b a { text-decoration: none; }
.who span { color: var(--muted); font-size: 13px; }
.who a { color: var(--green-2); text-decoration: none; }
.who a:hover { text-decoration: underline; }
.amount { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.amount small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.burn { margin: 0; text-align: left; }
.burn h2 { margin: 0; font-family: var(--poster); font-weight: 400; font-size: 42px; text-transform: uppercase; letter-spacing: 0.02em; }
.hold { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
#burnForm { display: flex; gap: 8px; align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; }
#burnAmount { flex: 1; border: none; background: transparent; font-size: 20px; font-weight: 700; min-width: 0; }
#burnAmount:focus { outline: none; }
.max { border: none; background: transparent; color: var(--green-2); font-weight: 800; cursor: pointer; }
#burnForm .cta { margin-top: 0; padding: 12px 22px; }
.fees { margin: 0; text-align: left; color: var(--muted); font-size: 13px; }
.foot { padding: 8px 32px 36px; color: var(--muted); font-size: 12px; }

/* Join overlay */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15,20,13,.5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.overlay[hidden] { display: none; }
.sheet { position: relative; width: min(420px, 100%); background: var(--paper); border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.x { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.sheet h3 { margin: 0 0 8px; font-family: var(--poster); font-weight: 400; font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; }
.sheet p { margin: 0 0 20px; color: #41493f; font-size: 15px; }
.sheet .cta { width: 100%; margin-top: 8px; }
.hint { min-height: 18px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.hint.err { color: #b0431a; }
.me { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.me img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.me b { display: block; }
.me .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.me #mePump { display: block; font-size: 13px; font-weight: 700; color: var(--green-2); text-decoration: none; }
.me #mePump:hover { text-decoration: underline; }
.sheet label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.sheet input { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 500; }
.sheet input:focus { outline: none; border-color: var(--green); }
.req { color: #b0431a; font-weight: 700; margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.opt { color: var(--muted); font-weight: 600; margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .poster, .side { padding: 32px 22px; }
  .poster h1 { font-size: 76px; }
  .board { width: calc(100% - 32px); }
  .board-head { display: grid; }
  .burned { font-size: 52px; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 30px 42px 1fr auto; gap: 10px; padding: 12px 14px; }
}
