/* Callbook: dense, tabular, monospaced numbers; amber is the stamp. Light and dark follow the system. */
:root {
  --bg: #f7f5ee; --surface: #ffffff; --raise: #efece2; --line: #dedacb; --fg: #17150f; --muted: #625d50;
  --accent: #8a5a00; --stamp: #f2b630; --stamp-ink: #14120d; --up: #0f7a3f; --down: #b42318; --warn: #b42318;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0b; --surface: #171612; --raise: #1f1e18; --line: #2b2a22; --fg: #eeeadc; --muted: #9c978a;
    --accent: #f2b630; --up: #4fd18b; --down: #ff6b5e; --warn: #ff8a7e;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--sans); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
p { margin: 0 0 8px; }
code, .mono, pre, input, .num .v { font-family: var(--mono); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.wrapall { overflow-wrap: anywhere; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; padding-top: 32px; padding-bottom: 48px; }
[hidden] { display: none !important; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font: 700 17px var(--mono); }
.top nav { display: flex; gap: 16px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 32px; color: var(--muted); font-size: 13px; }
.foot strong { color: var(--fg); }

/* buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: 600 14px var(--sans);
  text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--stamp); border-color: var(--stamp); color: var(--stamp-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
button.link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.chip { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font: 600 11px/18px var(--sans); color: var(--muted); vertical-align: 1px; }
.chip.warn { color: var(--warn); border-color: currentColor; }
.chip.ok { color: var(--up); border-color: currentColor; }
.icon { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--raise); flex: none; display: inline-block; }
.icon.sm { width: 24px; height: 24px; }
.icon.blank { border: 1px dashed var(--line); }

/* home: the call box */
.callbox { padding: 20px 0 8px; }
.callbox h1 { font-size: 22px; margin-bottom: 4px; }
.callbox .lede { color: var(--muted); margin-bottom: 14px; max-width: 64ch; }
.find { display: flex; gap: 8px; }
.find input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--fg); font-size: 15px; }
.find input:focus { outline: 2px solid var(--stamp); outline-offset: 1px; }
.find .btn { min-height: 46px; }
.status { min-height: 22px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.status.err { color: var(--warn); }
.cands { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.cands li + li { border-top: 1px solid var(--line); }
.cands button { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 8px 12px;
  border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.cands button:hover { background: var(--raise); }
.cands .icon { width: 28px; height: 28px; }
.cands .meta { display: block; font-size: 12px; color: var(--muted); }
.cands .mc { font: 600 14px var(--mono); text-align: right; }
.picked { margin-top: 12px; padding: 14px; border: 1px solid var(--stamp); border-radius: 10px; background: var(--surface); }
.picked .head { display: flex; gap: 12px; align-items: center; }
.picked .head > div { min-width: 0; }
.picked .head h3 { font-size: 18px; }
.picked .mc { font: 700 22px var(--mono); margin-left: auto; text-align: right; }
.picked .mc small { display: block; font: 12px var(--sans); color: var(--muted); }
.picked .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.rules { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.walletpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.walletpick img { width: 18px; height: 18px; border-radius: 4px; }
.msg { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--raise); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; color: var(--muted); }

/* home: the two lists */
.cols { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.15fr 1fr; } }
.cols section { min-width: 0; }
.cols h2 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; color: var(--fg); text-decoration: none; }
a.row:hover { background: var(--raise); }
.row .icon { width: 28px; height: 28px; }
.row .t { min-width: 0; }
.row .t b { font: 700 14px var(--mono); }
.row .t .sub { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .n { text-align: right; font: 13px/1.35 var(--mono); white-space: nowrap; }
.row .n .big { font-weight: 700; font-size: 14px; }
.row .side { display: flex; align-items: center; gap: 10px; }
.empty { padding: 16px 2px; color: var(--muted); }

/* call and caller pages */
.sheet { margin-top: 20px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tokrow { display: flex; gap: 12px; align-items: center; }
.tokname { min-width: 0; }
.tokname h1 { font-size: 22px; }
.tokname .sym { font-family: var(--mono); }
.tokname .name { font-size: 15px; font-weight: 400; color: var(--muted); }
.tokname p { margin: 2px 0 0; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px 0 12px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.num { background: var(--surface); padding: 10px 12px; min-width: 0; }
.num .k { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.num .v { display: block; font-size: 24px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.num .s { display: block; font-size: 12.5px; color: var(--muted); }
.num .s.up { color: var(--up); font: 700 15px var(--mono); }
.num .s.down { color: var(--down); font: 700 15px var(--mono); }
@media (max-width: 520px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .nums .num:last-child { grid-column: 1 / -1; }
  .num .v { font-size: 21px; }
}
.by { font-size: 14px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.powered { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.facts, .board, .proof { margin-top: 20px; }
.facts h2, .board h2 { margin-bottom: 8px; }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0 0 8px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; }
.proof summary { cursor: pointer; font-weight: 600; }
.proof pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: var(--raise); border-radius: 6px; font-size: 12.5px; }
.again { margin-top: 24px; display: flex; gap: 16px; align-items: center; }
.callerpage h1 { font-size: 26px; }
.callerpage .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 6px 6px; border-bottom: 1px solid var(--line); }
table.list td { padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td.tk a { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--mono); color: var(--fg); text-decoration: none; }
table.list td.tk a:hover span { text-decoration: underline; }
@media (max-width: 520px) { .hide-s { display: none; } table.list { font-size: 13px; } }
.banner { margin-top: 16px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--stamp); background: var(--surface); font-size: 14px; }

/* the token section */
#token { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
#token h2 { margin-bottom: 8px; }
#token h3 { margin: 14px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.addr { display: flex; gap: 8px; align-items: flex-start; }
.addr code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; }
.links a { margin-right: 16px; }

/* how */
.how h1 { font-size: 24px; margin-bottom: 12px; }
.how h2 { margin: 28px 0 8px; }
.how ul { padding-left: 20px; margin: 0 0 8px; }
.how li { margin: 3px 0; }
