@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fff;
  --paper: #f4f3ef;
  --card: #fbfaf7;
  --ink: #14140f;
  --dim: #56554d;
  --faint: #68665b;
  --line: #d5d2c8;
  --red: #a72e26;
  --red-dim: rgba(167, 46, 38, .35);
  --ok: #27633d;
  --warn: #775500;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--red); color: var(--bg); }

/* HUD readouts */
.hud { position: fixed; z-index: 5; font: 400 10.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); pointer-events: none; }
.hud b { color: var(--ink); font-weight: 400; }
.hud .r { color: var(--red); }
.hud-tl { top: 18px; left: 22px; }
.hud-tr { top: 18px; right: 22px; text-align: right; }
.hud-br { bottom: 18px; right: 22px; text-align: right; }
.hud-bl { bottom: 16px; left: 22px; pointer-events: auto; display: flex; gap: 8px; }
.hud-bl a { white-space: nowrap; text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); background: var(--paper); }
.hud-bl a:hover, .hud-bl a:focus-visible { color: var(--ink); border-color: var(--faint); }

main { position: relative; z-index: 3; }

.label { font: 400 10.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.label .r { color: var(--red); }
.mono { font-family: var(--mono); }

/* Home: hero */
.hero { padding: 150px 4vw 96px; }
.hero h1 {
  font-weight: 500; font-size: clamp(64px, 12.4vw, 220px); line-height: .9; letter-spacing: -.055em;
  margin: 28px 0 0 -0.04em; max-width: 12ch;
}
.hero h1 .ghost { color: var(--ink); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4vw; align-items: start; margin-top: 56px; }
.lede { font: 400 12px/1.75 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); max-width: 52ch; }
.lede b { color: var(--ink); font-weight: 400; }

.scan { display: flex; border: 1px solid var(--line); background: var(--card); }
.scan input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink);
  font: 400 14px/1 var(--mono); padding: 18px 18px; letter-spacing: .02em;
}
.scan input::placeholder { color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.scan button {
  background: var(--ink); color: var(--bg); border: 0; padding: 0 22px; cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.scan button:hover, .scan button:focus-visible { background: var(--red); color: white; }
.scan:focus-within { border-color: var(--faint); }
.scan-err { color: var(--red); font: 11px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; margin-top: 10px; min-height: 18px; }

.boot { margin-top: 18px; font: 400 11px/1.75 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.boot .ok { color: var(--ink); }
.boot .cursor::after { content: '_'; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Feed */
.section { padding: 64px 4vw 120px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-weight: 500; font-size: clamp(40px, 6vw, 88px); letter-spacing: -.05em; line-height: .95; }
.tabs { display: flex; gap: 6px; }
.tabs button {
  background: transparent; color: var(--dim); border: 1px solid var(--line); padding: 8px 12px; cursor: pointer;
  font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.tabs button[aria-pressed='true'] { color: var(--ink); border-color: var(--ink); }

.feed { width: 100%; border-collapse: collapse; font: 400 13px/1.3 var(--mono); }
.feed th { text-align: left; font-weight: 400; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.feed td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.feed tr.row { cursor: pointer; transition: background .2s; }
.feed tr.row:hover { background: var(--paper); }
.feed tr.row.new { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: rgba(239, 74, 60, .22); } 100% { background: transparent; } }
.feed .tok { display: flex; flex-direction: column; gap: 3px; }
.feed .sym { font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.feed .nm { color: var(--dim); font-size: 11px; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.feed .num { text-align: right; }
.feed th.num { text-align: right; }
.feed .why { color: var(--dim); font-size: 11.5px; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; }

.verdict { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.verdict i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.verdict b { font-weight: 500; font-variant-numeric: tabular-nums; }
.v-low { color: var(--ok); }
.v-medium { color: var(--warn); }
.v-high { color: var(--red); }
.v-early { color: var(--dim); }

.bar { width: 90px; height: 6px; background: var(--line); position: relative; display: inline-block; vertical-align: middle; }
.bar span { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.bar.full span { background: var(--ok); }
.empty { color: var(--dim); font: 11px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 40px 0; }

/* Explainer strip */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.how > div { padding: 36px 4vw 44px 24px; border-right: 1px solid var(--line); }
.how > div:last-child { border-right: 0; }
.how h3 { font-weight: 500; font-size: 24px; letter-spacing: -.03em; margin: 14px 0 10px; }
.how p { font: 11px/1.75 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }

footer { position: relative; z-index: 3; border-top: 1px solid var(--line); padding: 28px 4vw 90px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Token page */
.t-wrap { padding: 140px 4vw 120px; position: relative; }
.t-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4vw; align-items: end; }
.t-sym { font-weight: 500; font-size: clamp(64px, 11vw, 190px); line-height: .88; letter-spacing: -.055em; margin-top: 22px; word-break: break-word; }
.t-name { overflow-wrap: anywhere; font: 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }
.t-score { border: 1px solid var(--line); padding: 22px 24px; background: var(--card); }
.t-score .big { font-weight: 500; font-size: 92px; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.t-score .big small { font-size: 28px; color: var(--dim); letter-spacing: -.02em; }
.t-score .lvl { font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; }

.read { margin-top: 56px; border: 1px solid var(--line); border-left: 2px solid var(--red); padding: 24px 28px; background: var(--card); max-width: 900px; }
.read p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.32; letter-spacing: -.02em; margin-top: 14px; max-width: 46ch; }
.read .src { margin-top: 14px; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; margin-top: 64px; }
.flags { list-style: none; padding: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.flags li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.flags li::before { font: 12px/1.6 var(--mono); }
.flags .bad::before { content: '▲'; color: var(--red); }
.flags .warn::before { content: '◆'; color: var(--warn); }
.flags .good::before { content: '●'; color: var(--ok); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 10.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.facts dd { font: 400 20px/1.3 var(--sans); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }

.holders { margin-top: 16px; border-top: 1px solid var(--line); font: 12px/1 var(--mono); }
.holders > div { display: grid; grid-template-columns: 26px 1fr 64px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.holders a { text-decoration: none; color: var(--dim); }
.holders a:hover { color: var(--ink); }
.holders .hb { height: 4px; background: var(--line); margin-top: 6px; }
.holders .hb span { display: block; height: 100%; background: var(--ink); }
.holders .pc { text-align: right; color: var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.btn { cursor: pointer; background: transparent; display: inline-flex; align-items: center; padding: 12px 18px; border: 1px solid var(--line); text-decoration: none; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--faint); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--red); border-color: var(--red); color: white; }
.note { margin-top: 56px; font: 10.5px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); max-width: 80ch; }

:focus-visible { outline: 1px solid var(--red); outline-offset: 2px; }

@media (max-width: 900px) {
  .hud-tr { display: none; }
  .hero { padding-top: 110px; min-height: auto; }
  .hero h1 { font-size: clamp(56px, 17vw, 120px); }
  .hero-foot { grid-template-columns: 1fr; }
  .lede { margin-left: 0; }
  .section { padding: 48px 5vw 100px; }
  .feed thead { display: none; }
  .feed, .feed tbody { display: block; }
  .feed tr.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .feed td { border: 0; padding: 0; }
  .feed td.c-time, .feed td.c-top, .feed td.c-dev { display: none; }
  .feed td.c-why { grid-column: 1 / -1; }
  .feed .why { max-width: none; white-space: normal; }
  .how { grid-template-columns: 1fr 1fr; }
  .how > div { border-bottom: 1px solid var(--line); }
  .t-head, .grid2 { grid-template-columns: 1fr; }
  .t-wrap { padding-top: 100px; }
  .scan input { font-size: 16px; }
  .chart-head { flex-direction: column; gap: 4px; }
  .t-score .big { font-size: 72px; }
  .facts dd { font-size: 17px; }
  .hud-bl { left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hud .brand img { width: 18px; height: 18px; vertical-align: -5px; margin-right: 8px; border-radius: 3px; }

/* Price chart */
.chart-wrap { margin-top: 56px; max-width: 900px; }
.chart { margin-top: 16px; border: 1px solid var(--line); background: var(--card); padding: 16px 18px 12px; }
.chart svg { display: block; width: 100%; height: 200px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.chart .dot { fill: var(--red); }
.chart-head, .chart-foot { display: flex; justify-content: space-between; gap: 12px; }
.chart-head { margin-bottom: 12px; }
.chart-head b { color: var(--ink); font-weight: 400; }
.chart-foot { margin-top: 8px; }
.live-dot { color: var(--red); animation: blink 2s steps(1) infinite; }
.big.changed { animation: flash 1.6s ease-out; }

/* Usage */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; min-height: 2px; background: var(--ink); opacity: .85; }
.bars span:last-child { background: var(--red); }

/* Feed tabs and filters */
.tabbar { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button {
  position: relative; background: transparent; border: 0; color: var(--dim); cursor: pointer; white-space: nowrap;
  font: 500 15px/1 var(--sans); letter-spacing: -.01em; padding: 14px 18px 16px;
}
.tabbar button b { font: 400 10px/1 var(--mono); color: var(--red); margin-left: 4px; vertical-align: 2px; }
.tabbar button:hover { color: var(--ink); }
.tabbar button[aria-selected='true'] { color: var(--ink); }
.tabbar button[aria-selected='true']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--red); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button, .filters button {
  background: transparent; color: var(--dim); border: 1px dashed var(--line); padding: 7px 11px; cursor: pointer;
  font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.chips button[aria-pressed='true'], .filters button[aria-pressed='true'] { color: var(--bg); background: var(--ink); border: 1px solid var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.star { background: transparent; border: 0; cursor: pointer; color: var(--faint); font-size: 16px; line-height: 1; padding: 4px 6px; }
.star:hover { color: var(--ink); }
.star[aria-pressed='true'] { color: var(--warn); }
.up { color: var(--ok); }
.down { color: var(--red); }
@media (max-width: 900px) {
  .feed td.c-dex, .feed td.c-vol { display: none; }

  .tabbar button { padding: 12px 12px 14px; font-size: 14px; }
}

/* Wallet and quick buy */
.wbtn { pointer-events: auto; margin-bottom: 6px; background: var(--ink); color: var(--bg); border: 0; padding: 8px 12px; cursor: pointer; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.wbtn.connected { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.qb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qb .label { margin-right: 4px; }
.qb button { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; font: 400 12px/1 var(--mono); }
.qb button:hover, .qb button[aria-pressed='true'] { border-color: var(--ink); }
.qb button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.qb-in { width: 84px; background: transparent; border: 1px solid var(--line); color: var(--ink); font: 400 13px/1 var(--mono); padding: 8px 10px; outline: 0; }
.qb-in:focus { border-color: var(--faint); }
.buybox { margin-top: 12px; border: 1px solid var(--line); padding: 16px 18px; background: var(--card); }
.buybox .qb { margin-top: 12px; }
.buy-mini { background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; padding: 6px 9px; font: 400 11px/1 var(--mono); white-space: nowrap; }
.buy-mini:hover { background: var(--ink); color: var(--bg); }
.section-head .qb { margin-left: auto; }
dialog.sheet { margin: auto; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-top: 2px solid var(--red); padding: 0; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .7); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet-x { background: transparent; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; line-height: 1; }
.sheet-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sheet-body .btn { justify-content: center; }
.sheet-body .flags { margin-top: 0; }
.sheet-note { font: 11px/1.7 var(--mono); letter-spacing: .04em; color: var(--dim); }
.warn-note { color: var(--warn); }
.wallet-pick { display: flex; align-items: center; gap: 12px; background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 12px 14px; cursor: pointer; font: 500 15px/1 var(--sans); }
.wallet-pick:hover { border-color: var(--ink); }
.wallet-pick img { border-radius: 4px; }
.buy-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big-n { font-size: 30px; font-weight: 500; letter-spacing: -.03em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.btn.wide { width: 100%; justify-content: center; padding: 16px; font-size: 12px; }
.btn.done { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.btn:disabled { opacity: .7; cursor: wait; }
@media (max-width: 900px) {
  .feed tr.row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .feed tr.row > td:nth-child(2) { flex: 1 1 50%; order: 1; }
  .feed tr.row > td:nth-child(3) { order: 2; }
  .feed tr.row > td.c-why { flex: 1 1 100%; order: 3; }
  .feed tr.row > td { order: 4; }
  .feed tr.row > td.c-buy { order: 5; margin-left: auto; }
  .feed tr.row > td.c-star { order: 6; }
  .feed td[data-l]::before { content: attr(data-l) ' '; color: var(--dim); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
  .section-head .qb { margin-left: 0; }
  .hud-tr { display: block !important; top: 12px; right: 12px; }
  .hud-tr > div { display: none; }
}
[hidden] { display: none !important; }

/* Token pictures */
.av {
  --h: 20; position: relative; flex: none; width: 36px; height: 36px; border-radius: 7px; overflow: hidden;
  display: inline-grid; place-items: center; background: hsl(var(--h) 18% 15%); border: 1px solid hsl(var(--h) 14% 24%);
}
.av em { font: 600 15px/1 var(--sans); font-style: normal; color: hsl(var(--h) 45% 72%); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.av.has-img img { opacity: 1; }
.av.has-img em { visibility: hidden; }
.av-lg { width: clamp(64px, 9vw, 132px); height: clamp(64px, 9vw, 132px); border-radius: 14px; }
.av-lg em { font-size: clamp(28px, 4vw, 56px); }
.tok-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.feed .tok { min-width: 0; }

/* Paste and search */
.scan .paste { background: transparent; color: var(--dim); border-left: 1px solid var(--line); }
.scan .paste:hover, .scan .paste:focus-visible { background: transparent; color: var(--ink); }
.search-in { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 16px/1 var(--mono); padding: 16px 14px; }
.recent { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.recent a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.recent .sym { font: 500 16px/1 var(--sans); flex: 1; }

/* Since your last visit */
.since { display: flex; align-items: center; gap: 12px; margin: -8px 0 20px; border: 1px solid var(--line); border-left: 2px solid var(--red); background: var(--card); padding: 10px 12px 10px 16px; }
.since-in { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; flex: 1; font: 13px/1.4 var(--mono); }
.since-in b { font-weight: 500; color: var(--ink); }
.since-in a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.since-in a .av { width: 22px; height: 22px; border-radius: 5px; }
.since-in a .av em { font-size: 11px; }

/* Alerts switch */
.chips .alerts { background: transparent; color: var(--dim); border: 1px dashed var(--line); padding: 7px 11px; cursor: pointer; font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chips .alerts[aria-pressed='true'] { color: var(--bg); background: var(--warn); border: 1px solid var(--warn); }

/* Toasts */
.toasts { position: fixed; z-index: 40; right: 16px; bottom: 70px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: block; text-decoration: none; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-left: 2px solid var(--warn); padding: 12px 16px; font: 13px/1.3 var(--mono); max-width: min(360px, calc(100vw - 32px)); animation: toast-in .25s ease-out; transition: opacity .5s, transform .5s; }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Loading placeholders */
.feed tr.skel { cursor: default; }
.feed tr.skel i { display: inline-block; height: 10px; background: var(--line); border-radius: 2px; animation: skel 1.4s ease-in-out infinite; vertical-align: middle; }
.feed tr.skel .tok { gap: 7px; }
@keyframes skel { 50% { opacity: .45; } }

/* Token page extras */
.t-id { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-top: 22px; min-width: 0; }
.t-id .t-sym { margin-top: 0; min-width: 0; }
.t-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; max-width: 60ch; }
.profile p { font-size: 16px; line-height: 1.5; margin-top: 8px; overflow-wrap: anywhere; }
.plinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plinks a { text-decoration: none; padding: 9px 12px; border: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--dim); }
.plinks a:hover { color: var(--ink); border-color: var(--faint); }
.buybar { display: none; }

/* Bottom nav: phones only */
.bnav { display: none; }

@media (max-width: 900px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .hud-bl { display: none; }
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .bnav a, .bnav button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 60px;
    background: transparent; border: 0; color: var(--dim); text-decoration: none; cursor: pointer; font: 400 10.5px/1 var(--mono); letter-spacing: .04em;
    -webkit-tap-highlight-color: transparent;
  }
  .bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .bnav [aria-current='page'] { color: var(--ink); }
  .bnav [aria-current='page']::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--red); }
  .bnav .watch-n { position: absolute; top: 8px; left: calc(50% + 8px); font: 500 9.5px/1 var(--mono); color: var(--red); }
  .toasts { left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }

  /* Compact hero: the feed starts on the first screen */
  .hero { padding: 84px 5vw 28px; }
  .hero > .label { display: none; }
  .hero h1 { font-size: clamp(44px, 13vw, 72px); margin-top: 0; }
  .hero-foot { margin-top: 22px; gap: 14px; grid-template-columns: minmax(0, 1fr); }
  .scan input::placeholder { font-size: 11px; }
  .hero .lede, .hero .boot { display: none; }
  .scan input { padding: 16px 14px; }
  .scan button { padding: 0 16px; min-height: 52px; }
  .section { padding: 24px 4vw 40px; }
  .section-head { margin-bottom: 14px; gap: 12px; }
  .section-head h2 { font-size: 34px; }
  .since { margin: 0 0 14px; }
  .since-in { font-size: 12.5px; }

  /* Tabs stay in reach and show that they scroll */
  .tabbar {
    position: sticky; top: 0; z-index: 20; background: var(--bg); margin: 0 -4vw 4px; padding: 0 4vw;
    -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent);
  }
  .tabbar button { padding: 15px 13px 15px; font-size: 15px; }
  .tabbar button:last-child { margin-right: 40px; }

  /* Bigger text and tap targets */
  .label { font-size: 11px; }
  .feed { font-size: 14px; }
  .feed tr.row { padding: 14px 0; }
  .feed .why { font-size: 13px; line-height: 1.45; color: var(--dim); }
  .feed .nm { font-size: 12px; max-width: 40vw; }
  .feed .sym { font-size: 18px; }
  .feed td[data-l]::before { font-size: 10.5px; }
  .feed tr.row > td.c-tok { flex: 1 1 50%; order: 1; min-width: 0; }
  .av { width: 40px; height: 40px; }
  .star { font-size: 20px; min-width: 44px; min-height: 44px; }
  .buy-mini { padding: 11px 14px; font-size: 12.5px; }
  .chips button, .chips .alerts { padding: 10px 13px; font-size: 11px; }
  .qb button { padding: 11px 14px; font-size: 13px; }
  .btn { padding: 14px 16px; font-size: 12px; }
  .feed tr.skel > td.c-why, .feed tr.skel > td.c-dex, .feed tr.skel > td.c-vol { display: none; }
  .feed tr.skel > td:nth-child(2) { flex: 1 1 50%; order: 1; }

  /* Token page: buy stays under the thumb */
  .t-wrap { padding-top: 76px; }
  .t-sym { font-size: clamp(44px, 14vw, 96px); }
  .av-lg { width: 64px; height: 64px; border-radius: 12px; }
  .t-name { font-size: 11.5px; }
  body.has-buybar { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
  .buybar {
    display: flex; align-items: center; gap: 10px; position: fixed; z-index: 29; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom)); padding: 10px 4vw; background: var(--paper); border-top: 1px solid var(--line);
  }
  .buybar .av { width: 36px; height: 36px; }
  .bb-t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
  .bb-t b { font: 500 16px/1 var(--sans); }
  .bb-t span { font: 11px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { padding: 14px 18px; }
  .buybar .star { min-width: 40px; }
  body.has-buybar .toasts { bottom: calc(140px + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {
  /* The corner readouts scroll away, so the pinned tabs stay clean */
  .hud-tl, .hud-tr { position: absolute; }
  .tabbar { box-shadow: 0 1px 0 var(--line); }
}
.t-id .t-sym { font-size: clamp(56px, 8.6vw, 156px); word-break: normal; overflow-wrap: anywhere; }
.t-id .t-sym.long { font-size: clamp(44px, 6vw, 112px); }
.t-id .t-sym.xlong { font-size: clamp(34px, 4vw, 76px); }
@media (max-width: 900px) {
  .t-id .t-sym { font-size: clamp(40px, 13vw, 88px); }
  .t-id .t-sym.long { font-size: clamp(30px, 9vw, 64px); }
  .t-id .t-sym.xlong { font-size: clamp(24px, 6.4vw, 44px); }
}
@media (max-width: 900px) {
  /* The star sits on the token's top line, next to the verdict */
  .feed tr.row > td.c-tok { flex: 1 1 0; }
  .feed tr.row > td.c-star { order: 2; margin: -10px -10px 0 0; }
  .feed tr.row > td.c-star .star { min-height: 40px; }
}
/* AI read on its way */
.writing { animation: skel 1.4s ease-in-out infinite; }
#read-text.is-pending { color: var(--dim); }

/* Tinesis: a framed first screen and a compact workspace below it. */
.site-header, .home-stage, body[data-page="home"] main > .section, .how,
body[data-page="home"] footer, .page-status, .t-wrap {
  width: min(1360px, calc(100% - 8vw));
  margin-inline: auto;
}
.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
}
.wordmark img { display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-nav a { font-size: .875rem; font-weight: 600; color: var(--dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }

.home-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(490px, 67svh, 730px);
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  text-align: center;
  overflow: hidden;
}
.stage-people { position: absolute; inset: 0; pointer-events: none; }
.observer {
  display: block;
  aspect-ratio: 1;
  opacity: .90;
  background: url('/tinesis-observers.webp?v=2') no-repeat;
  background-size: 300% 200%;
}
.observer--step-right { background-position: 0 0; }
.observer--standing-dark { background-position: 50% 0; }
.observer--step-left { background-position: 100% 0; }
.observer--walking-dark { background-position: 0 100%; }
.observer--standing { background-position: 50% 100%; }
.observer--pair { background-position: 100% 100%; }
.stage-people .observer { position: absolute; width: clamp(68px, 7.4vw, 106px); }
.stage-people .observer--step-right { top: 9%; left: 12%; }
.stage-people .observer--standing-dark { top: 7%; right: 12%; }
.stage-people .observer--step-left { top: 47%; right: 2%; }
.stage-people .observer--walking-dark { bottom: 12%; left: 4%; }
.stage-people .observer--standing { bottom: 6%; left: 17%; }
.stage-people .observer--pair { right: 12%; bottom: 8%; }
.stage-people .observer--top,
.stage-people .observer--left,
.stage-people .observer--right,
.stage-people .observer--bottom { width: clamp(60px, 6vw, 86px); }
.stage-people .observer--top { inset: 3% auto auto 32%; }
.stage-people .observer--left { inset: 35% auto auto 5%; }
.stage-people .observer--right { inset: 26% 3% auto auto; }
.stage-people .observer--bottom { inset: auto 30% 10% auto; }
.stage-content, .stage-status { position: relative; z-index: 1; }
.stage-content {
  width: 100%;
  min-width: 0;
  align-self: center;
  padding: 46px 24px 25px;
}
.stage-content h1 {
  font-size: clamp(4.5rem, 13vw, 13rem);
  font-weight: 950;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.072em;
}
.stage-tagline {
  margin: 24px auto 0;
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  line-height: 1.35;
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.stage-actions .scan {
  flex: 0 1 25rem;
  min-width: 0;
  min-height: 48px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.stage-actions .scan:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.stage-actions .scan input { padding: 11px 15px; font: 400 1rem/1.3 var(--sans); }
.stage-actions .scan input::placeholder { color: var(--dim); font: inherit; letter-spacing: 0; text-transform: none; }
.stage-actions .scan button, .stage-actions .stage-feed {
  min-height: 42px;
  border-radius: 999px;
  font: 750 .875rem/1.1 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.stage-actions .scan button { margin: 1px; padding: 0 19px; }
.stage-actions .scan button:hover { background: #383830; color: white; }
.stage-actions .scan .paste { color: var(--ink); background: transparent; padding-inline: 10px; }
.stage-actions .scan .paste:hover { background: var(--paper); }
.stage-actions .stage-feed {
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 var(--ink);
}
.stage-actions .stage-feed:hover { box-shadow: 0 1px 0 var(--ink); }
.stage-status, .page-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  color: var(--dim);
  font: 400 .8125rem/1.4 var(--mono);
}
.stage-status { padding: 16px 20px; }
.stage-status b, .page-status b { color: var(--ink); font-weight: 600; }
.stream-status { color: var(--ink); text-transform: uppercase; }

body[data-page="home"] main > .section { padding: 50px 0 48px; border-top: 0; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 850; line-height: 1; }
.section-head .label { margin-bottom: 5px; }
.section-head .qb .label { margin-bottom: 0; }
.tabbar { gap: 6px; margin-bottom: 12px; border: 0; padding: 1px 1px 4px; }
.tabbar button {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
}
.tabbar button[aria-selected='true'] { color: var(--bg); border-color: var(--ink); background: var(--ink); }
.tabbar button[aria-selected='true'] b { color: var(--bg); }
.tabbar button[aria-selected='true']::after { content: none; }
.feed th { padding-top: 10px; background: var(--paper); font-size: .75rem; }
.feed th:first-child, .feed td:first-child { padding-left: 12px; }
.feed .sym { font-weight: 700; }
.feed .nm, .feed .why { font-size: .8125rem; }
.feed .empty { padding: 18px 12px; }
.qb button, .buy-mini, .chips button, .chips .alerts { border-radius: 999px; border-style: solid; }
.star[aria-pressed='true'] { color: var(--warn); }

.how {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
}
.how > div { padding: 24px; }
.how h3 { font-weight: 800; margin: 6px 0 8px; }
.how p { font: 400 1rem/1.5 var(--sans); letter-spacing: 0; text-transform: none; }
body[data-page="home"] footer { margin-top: 32px; padding-inline: 0; }

.page-status { justify-content: space-between; border-block: 1px solid var(--line); padding: 11px 0; }
.method-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.method-heading .t-sym { font-size: clamp(2.5rem, 8vw, 8rem); }
.method-people { display: flex; flex: 0 0 min(23%, 240px); }
.method-people .observer { width: 50%; }
.site-header ~ .t-wrap { padding: 42px 0 80px; }
.t-sym { font-weight: 850; }
.t-score, .read, .chart, .buybox, dialog.sheet { background: var(--paper); border-radius: 16px; }
.t-score, dialog.sheet { border: 2px solid var(--ink); }
.chart { max-width: 100%; }
.btn, .wbtn, .wbtn.connected { border: 1px solid var(--ink); border-radius: 999px; font-weight: 700; }
.wbtn { min-height: 42px; margin: 0; padding-inline: 16px; flex: none; }
.wbtn:hover { background: #383830; color: white; }
.btn { color: var(--ink); }
.btn.primary:hover { background: #383830; border-color: #383830; color: white; }
.wallet-pick { border-radius: 10px; }
.sheet-note, .note { font-size: .8125rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 10px 14px; padding-block: 14px; min-height: 0; }
  .site-header .wbtn { margin-left: auto; }
  .site-nav { order: 1; width: 100%; gap: 8px 18px; }
  .home-stage { min-height: clamp(370px, 57svh, 520px); border-radius: 18px; }
  .stage-content h1 { font-size: clamp(3rem, 15vw, 8rem); }
  .stage-status { gap: 5px 12px; font-size: .75rem; }
  body[data-page="home"] main > .section { padding: 30px 0; }
  .section-head .qb { margin-left: 0; }
  .tabbar { margin-inline: 0; padding: 3px 2px 7px; mask: none; -webkit-mask: none; box-shadow: none; }
  .tabbar button:last-child { margin-right: 0; }
  .feed td:first-child { padding-left: 0; }
  .site-header ~ .t-wrap { padding-top: 28px; }
}
@media (max-width: 1100px) {
  .stage-people .observer--standing,
  .stage-people .observer--step-left,
  .stage-people .observer--left,
  .stage-people .observer--right { display: none; }
  .stage-people .observer--pair { right: 5%; }
}
@media (max-width: 700px) {
  .home-stage { grid-template-rows: minmax(0, 1fr) auto auto; }
  .stage-people {
    position: static;
    display: flex;
    justify-content: center;
    align-items: end;
    height: clamp(72px, 21vw, 100px);
  }
  .stage-people .observer { position: static; width: min(27%, 98px); }
  .stage-people .observer--walking-dark { display: none; }
  .method-people { flex-basis: min(26%, 112px); }
  .method-people .observer { width: 100%; }
  .method-people .observer--step-left { display: none; }
}
@media (max-width: 480px) {
  .stage-content { padding: 30px 16px 10px; }
  .stage-content h1 { font-size: clamp(2.5rem, 14.5vw, 4.5rem); }
  .stage-tagline { margin-top: 16px; }
  .stage-actions { margin-top: 18px; gap: 9px; }
  .stage-actions .scan button { padding-inline: 13px; }
  .stage-actions .scan .paste { padding-inline: 7px; }
  .stage-actions .scan input { padding-inline: 12px 4px; }
  .stage-actions .stage-feed { min-height: 42px; }
  .stage-status { padding-inline: 13px; }
  .how > div { padding: 16px; }
}

.how .how-intro {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 480px) {
  .how .how-intro { padding: 16px; }
}
