/* Pump Ball, dressed as the pump.fun app: its ground, panels, green, Geist, three columns on desktop, tabs at the bottom on a phone.
   Measured on pump.fun: ground #0e0f11, panels and rules #1e2024, strip #16181b, tint rgba(217,229,255,.04),
   text #ebebeb / #c7cad1 / #91969f / #757c8a, green #66ff99 on #052e16, red #ff3d6e, buttons 32px radius 6, embedded cards radius 12. */
@font-face { font-family: "Geist"; src: url("/assets/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0e0f11; --strip: #16181b; --line: #1e2024; --panel: rgba(217, 229, 255, .04); --panel2: #1e2024; --control: #2e3137; --hover: rgba(217, 229, 255, .06);
  --text: #ebebeb; --soft: #c7cad1; --muted: #91969f; --faint: #757c8a;
  --green: #66ff99; --green-ink: #052e16; --green-tint: rgba(102, 255, 153, .12); --red: #ff3d6e; --red-tint: rgba(255, 61, 110, .12); --yellow: #ffe666;
  --font: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --pad: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/20px var(--font); padding-bottom: 32px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.grow { flex: 1; }
.faint { color: var(--faint); font-size: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
b { font-weight: 600; }

/* ---------- strip and top bar */
.strip { height: 32px; display: flex; align-items: center; justify-content: center; background: var(--strip); color: var(--soft); font-size: 13px; padding: 0 16px; text-align: center; overflow: hidden; white-space: nowrap; }
.strip b { color: var(--green); }
.top { position: sticky; top: 0; z-index: 30; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--bg); border-bottom: .8px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.tabsTop { display: flex; gap: 4px; margin-left: 8px; }
.tabsTop a, #extLinks a { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 6px; font-weight: 500; color: var(--text); }
.tabsTop a.on { background: var(--panel2); }
.tabsTop a:hover, #extLinks a:hover { background: var(--hover); }
#extLinks { display: contents; }
#extLinks a { color: var(--muted); font-weight: 400; }
.caPill { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 420px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--panel2); cursor: pointer; min-width: 0; }
.caPill .k { font-size: 12px; font-weight: 600; color: var(--faint); }
.caPill .v { font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caPill .v.soon { font-family: var(--font); color: var(--muted); }
.caPill:hover { background: #26292e; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--green); color: var(--green-ink); font-weight: 500; cursor: pointer; white-space: nowrap; transition: filter .12s, transform .08s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.wide { width: 100%; height: 44px; font-size: 15px; font-weight: 600; border-radius: 8px; }
.ghost { background: var(--panel); color: var(--text); }
.txt { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.txt:hover { color: var(--text); }

/* ---------- three columns, the pump.fun home */
.cols { display: grid; grid-template-columns: 420px minmax(0, 1fr) 380px; min-height: calc(100vh - 120px); }
.col { border-right: .8px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.col:last-child { border-right: 0; }
.colHead { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 var(--pad); border-bottom: .8px solid var(--line); }
.colHead svg { width: 16px; height: 16px; fill: var(--muted); }
.colHead h2 { font-size: 14px; line-height: 20px; font-weight: 500; }
.colTabs { display: flex; gap: 20px; padding: 14px var(--pad) 10px; }
.colTabs button { background: none; border: 0; padding: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--muted); cursor: pointer; }
.colTabs button.on { color: var(--text); }
.colTabs button:hover { color: var(--text); }
.colBody { padding: 16px var(--pad) 32px; display: grid; gap: 16px; align-content: start; }
.colBody.flush { padding: 0 0 32px; gap: 0; }
.label { color: var(--muted); font-size: 12px; line-height: 16px; display: block; }
.empty { color: var(--muted); padding: 24px var(--pad); }

/* ---------- pool card */
.poolCard { background: var(--panel); border-radius: 12px; padding: 16px; display: grid; gap: 14px; }
.poolTop { display: flex; align-items: center; gap: 14px; }
.poolTop img { width: 56px; height: 56px; }
.poolSol { font-size: 32px; line-height: 36px; font-weight: 700; color: var(--green); letter-spacing: -.02em; }
.poolSol small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.poolGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.poolGrid b { font-size: 15px; display: block; margin-top: 2px; }
.poolGrid .val, .poolVal { display: block; color: var(--faint); font-size: 12px; line-height: 16px; }
.poolVal { margin-top: 2px; font-size: 13px; }
.coinCard .fig small, .lead .amt small, .result .val { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }
.result .val { font-size: 13px; }
.poolSub { color: var(--faint); font-size: 12px; }
.poolSub a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- claim form */
.claim { display: grid; gap: 12px; }
.claim label { display: grid; gap: 6px; color: var(--soft); font-size: 13px; font-weight: 500; }
.claim input { height: 44px; border-radius: 8px; border: .8px solid var(--control); background: var(--bg); padding: 0 12px; font: 14px var(--mono); outline: none; }
.claim input:focus { border-color: var(--green); }
.claim input::placeholder { color: var(--faint); font-family: var(--font); }
.hint { color: var(--muted); font-size: 12px; line-height: 18px; }
.hint b { color: var(--soft); font-weight: 500; }
.err { color: var(--red); font-weight: 500; font-size: 13px; }
.err:empty { display: none; }
.result { background: var(--green-tint); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.result .big { font-size: 28px; line-height: 32px; font-weight: 700; color: var(--green); }
.result .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.result .row b { color: var(--text); font-weight: 500; }
.result a { color: var(--green); font-weight: 500; }

/* ---------- steps and tables */
.sub { font-size: 14px; font-weight: 600; margin-top: 8px; }
.steps { list-style: none; display: grid; gap: 8px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border-radius: 12px; padding: 12px; }
.steps .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 12px; }
.steps p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 12px; overflow: hidden; font-size: 13px; }
.tbl td { padding: 9px 12px; border-top: .8px solid var(--line); color: var(--soft); }
.tbl tr:first-child td { border-top: 0; }
.tbl td:last-child { text-align: right; font-weight: 600; color: var(--text); white-space: nowrap; }
.tbl tr.hl td:last-child { color: var(--green); }
.tbl tr.total td { color: var(--text); font-weight: 600; }

/* ---------- callout posts, built like pump.fun's */
.post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px var(--pad); border-bottom: .8px solid var(--line); }
.post:hover { background: rgba(217, 229, 255, .02); }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); color: #0e0f11; flex: none; }
.ava.sm { width: 28px; height: 28px; font-size: 11px; }
.pHead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pHead b { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.pHead .t { color: var(--faint); }
.pText { margin-top: 2px; color: var(--text); }
.pText .tk { color: var(--green); font-weight: 600; }
.coinCard { margin-top: 10px; display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 12px; padding: 12px; max-width: 460px; }
.coinCard img { width: 40px; height: 40px; border-radius: 8px; }
.coinCard .nm { min-width: 0; flex: 1; }
.coinCard .nm b { display: block; }
.coinCard .nm span { color: var(--muted); font-size: 13px; }
.coinCard .fig { text-align: right; }
.coinCard .fig b { display: block; font-size: 15px; }
.coinCard .fig.g b { color: var(--green); }
.pFoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; color: var(--faint); font-size: 13px; }
.pFoot a { color: var(--muted); }
.pFoot a:hover { color: var(--text); }
.x.up { color: var(--green); } .x.down { color: var(--red); }
.tag { font-size: 10px; line-height: 16px; font-weight: 800; text-transform: uppercase; padding: 0 6px; border-radius: 4px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--green-tint); color: var(--green); }
.tag.bad { background: var(--red-tint); color: var(--red); }

/* ---------- leaderboard and rules */
.lead { display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px var(--pad); min-height: 56px; }
.lead:hover { background: rgba(217, 229, 255, .02); }
.lead .rk { color: var(--faint); font-weight: 600; text-align: center; }
.lead .nm b { font-family: var(--mono); font-weight: 600; display: block; }
.lead .nm span { color: var(--faint); font-size: 12px; }
.lead .amt { color: var(--green); font-weight: 600; text-align: right; }
.lead .amt small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; }
.rule { padding: 14px var(--pad); border-bottom: .8px solid var(--line); }
.rule b { display: block; }
.rule p { color: var(--muted); margin-top: 2px; font-size: 13px; }

/* ---------- bottom ticker, like pump.fun's */
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: 32px; background: var(--strip); border-top: .8px solid var(--line); overflow: hidden; }
.tickerRow { display: flex; gap: 28px; align-items: center; height: 100%; white-space: nowrap; width: max-content; padding-left: 16px; animation: roll 60s linear infinite; }
.tickerRow span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.tickerRow span b { color: var(--green); font-weight: 500; }
.tickerRow .dot { width: 16px; height: 16px; border-radius: 50%; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bottomTabs { display: none; }
.foot { padding: 20px 16px 28px; color: var(--faint); font-size: 12px; border-top: .8px solid var(--line); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%); z-index: 60; background: var(--green); color: var(--green-ink); font-weight: 600; padding: 9px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ---------- tablet and phone: one column at a time, tabs at the bottom like the app */
@media (max-width: 1180px) {
  .cols { grid-template-columns: 400px minmax(0, 1fr); }
  .colLeaders { display: none; }
  body.show-leaders .colLeaders { display: flex; grid-column: 2; }
  body.show-leaders .colFeed { display: none; }
}
@media (max-width: 820px) {
  body { padding-bottom: 96px; }
  .strip { font-size: 12px; }
  .tabsTop, #buyBtn { display: none; }
  .top { gap: 10px; }
  .caPill { max-width: 52vw; }
  .cols { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .col { display: none; border-right: 0; }
  body.show-claim .colClaim, body.show-callouts .colFeed, body.show-leaders .colLeaders { display: flex; grid-column: 1; }
  :root { --pad: 16px; }
  .ticker { bottom: 64px; }
  .bottomTabs { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 64px; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: .8px solid var(--line); }
  .bottomTabs a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
  .bottomTabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
  .bottomTabs a.on { color: var(--green); }
  .coinCard { max-width: none; }
  .toast { bottom: 108px; }
  .foot { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { .tickerRow { animation: none; } .btn { transition: none; } }

/* the logo is the ball on white: shown as a round white badge, like a pump.fun coin picture */
.logo img, .poolTop img, .coinCard img, .lead img { border-radius: 50%; background: #ffffff; object-fit: cover; }
