﻿/* ===== Home ===== */
/* Hero: the arc sits straight on the ink, no card around it */
.hero { padding-top: 0; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.tagline { font: 700 20px/1.25 var(--f-display); letter-spacing: -0.03em; max-width: 620px; }
.stats { display: flex; flex: none; }
.stat { padding: 0 24px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat:last-child { padding-right: 0; }
.stat .v { display: block; margin-top: 8px; font: 500 18px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.arc-zone { position: relative; margin: 4px -8px 0; }
.arc-svg { min-height: 404px; }
.hero.is-loading .arc-svg .sk { margin: 24px 8px; }
.arc-queue { position: absolute; left: 8px; top: 22px; width: 300px; z-index: 2; }
.arc-queue > .label { display: block; margin: 0 0 10px 10px; }
.queue { display: flex; flex-direction: column; gap: 2px; }
.q-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 5px 12px 9px 10px; border-radius: 12px; text-align: left; min-width: 0; color: var(--text-2); transition: background .2s var(--ease), color .2s var(--ease); }
.q-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.q-item.on { background: rgba(255,255,255,0.055); color: var(--text); }
.q-rank { width: 12px; font-size: 11px; color: var(--text-3); }
.q-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.q-t b { font: 600 14px/1.1 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-t .mono { font-size: 11.5px; color: var(--text-3); }
.q-p { font-size: 14px; }
.q-bar { position: absolute; left: 34px; right: 12px; bottom: 3px; height: 2px; background: var(--elevated); border-radius: 2px; overflow: hidden; }
.q-bar b { display: block; height: 100%; background: var(--text-3); }
.q-item.on .q-bar b { background: var(--signal); }

.arc-label { position: absolute; top: 40px; left: 0; width: 180px; z-index: 2; transition: top .3s var(--ease); }
.arc-label.swap { animation: swapfade .26s var(--ease); }
@keyframes swapfade { from { opacity: .3; transform: translateY(4px); } }
.al-pct { font: 500 76px/0.95 var(--f-mono); letter-spacing: -0.07em; color: var(--signal); font-variant-numeric: tabular-nums; margin-left: -4px; }
.al-pct small { font-size: 30px; letter-spacing: 0; color: var(--text-3); margin-left: 2px; }
.al-pct.is-grad { color: var(--text); }
.al-rem { margin-top: 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.35; }
.al-rem b { display: block; font: 500 18px var(--f-mono); color: var(--text); margin-bottom: 4px; letter-spacing: -0.02em; }
.al-id { margin: 12px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.al-id b { display: block; font: 700 16px/1.15 var(--f-display); letter-spacing: -0.03em; margin-bottom: 5px; }
.al-id .mono { font-size: 12px; color: var(--text-3); }

.arc-pt { position: absolute; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.arc-pt .v { font: 500 15px var(--f-mono); font-variant-numeric: tabular-nums; }
.arc-end { text-align: center; width: 140px; align-items: center; }
.arc-end.right { text-align: right; align-items: flex-end; width: auto; }

/* Board = grid + tape */
.board { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; padding-top: 22px; }
.board-main { min-width: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; position: sticky; top: var(--topbar); z-index: 20; padding: 10px 0; background: linear-gradient(var(--bg) 80%, transparent); }
.filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { height: 36px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1 var(--f-ui); color: var(--text-2); white-space: nowrap; border: 1px solid transparent; transition: color .18s, background .18s, border-color .18s; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: var(--text); background: var(--elevated); border-color: var(--border); }
.filters .n { margin-left: 8px; font: 500 12px var(--f-mono); color: var(--text-3); }
.viewtog { display: flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-ctl); flex: none; }
.viewtog button { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--text-3); transition: color .18s, background .18s; }
.viewtog button[aria-pressed="true"] { background: var(--elevated); color: var(--text); }
.viewtog svg { width: 15px; height: 15px; }

/* Dense cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.grid.is-list { grid-template-columns: 1fr; gap: 8px; }
.card-token { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); transition: transform .2s var(--ease), border-color .2s var(--ease); animation: rise .24s var(--ease) both; animation-delay: calc(var(--i, 0) * 16ms); }
.card-token:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.card-token.is-preview { pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ct-main { display: flex; gap: 16px; align-items: stretch; }
.ct-main .avatar { border-radius: 14px; }
.ct-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 1px 0 2px; }
.ct-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ct-name { font: 700 19px/1.1 var(--f-display); letter-spacing: -0.035em; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ct-av { position: relative; flex: none; }
.bd { position: absolute; left: 6px; bottom: 6px; height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(7,8,11,0.86); color: var(--text-2); font: 600 10px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.bd-near { color: var(--heat); }
.bd-lock { padding: 0 6px; color: var(--locked); } .bd-lock svg { width: 12px; height: 12px; }
.ct-top .chip { flex: none; margin-top: -1px; }
.ct-sub { display: flex; gap: 8px; font: 400 12px var(--f-mono); color: var(--text-3); white-space: nowrap; overflow: hidden; margin-top: 5px; }
.ct-sub .tk { color: var(--text-2); font-weight: 500; }
.ct-mcap { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.ct-mcap .v { font: 500 28px/1 var(--f-mono); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.ct-mcap .d { font: 600 14px var(--f-mono); margin: 0; }
.ct-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--text-2); margin-top: -4px; }
.ct-meta .pg { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.ct-meta .pg .mono { color: var(--text); font-size: 13px; font-weight: 500; }
.ct-meta .lk { display: inline-flex; gap: 5px; align-items: center; color: var(--text-3); }
.ct-meta .lk svg { width: 12px; height: 12px; color: var(--locked); }
.ct-meta .st { display: flex; gap: 14px; font: 500 12px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.ct-meta .st i { font: 500 10.5px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-style: normal; margin-right: 6px; }

/* Rows */
.row-token { display: grid; grid-template-columns: 44px minmax(140px,1.3fr) 84px 84px 76px minmax(150px,1.1fr) auto; gap: 16px; align-items: center; padding: 10px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; transition: transform .2s var(--ease), border-color .2s var(--ease); animation: rise .24s var(--ease) both; animation-delay: calc(var(--i, 0) * 14ms); }
.row-token:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.row-token.is-preview { pointer-events: none; }
.rt-id { min-width: 0; } .rt-id b { font: 700 15px var(--f-display); letter-spacing: -0.03em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-id span { font: 500 12px var(--f-mono); color: var(--text-2); }
.row-token .c { font: 500 13px var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.row-token .c small { display: block; font: 500 11px var(--f-mono); margin-top: 3px; }
.rt-prog { display: flex; align-items: center; gap: 12px; }
.rt-prog .mono { width: 36px; text-align: right; font-size: 12.5px; }
.rt-bar { flex: 1; }
.rt-chip { justify-self: end; }
