/* Pooled: dark, precise, data-first. Hairlines, one accent (pump green) used only for meaning and the live map. */
:root {
  --bg: #000000;
  --bg-2: #0a0a0c;
  --card: #08080a;
  --hover: #16181b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --ink: #f7f8f8;
  --ink-2: #9a9ea6;
  --ink-3: #62666d;
  --up: #5ab8ff;
  --up-bg: rgba(90,184,255, .1);
  --down: #f59e5b;
  --down-bg: rgba(245,158,91, .1);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, .1);
  --gold: #5ab8ff;
  --primary: #f7f8f8;
  --on-primary: #08090a;
  --grid: rgba(255, 255, 255, .04);
  --shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -.015em; }
b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
sub { font-size: .72em; vertical-align: -.25em; }
.num, td, .v, .big, .price, .kpis { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.up { color: var(--up); }
.down { color: var(--down); }
.hide-lg { display: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand .mark { width: 24px; height: 24px; color: var(--ink); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--hover); }
.search { margin-left: auto; position: relative; display: flex; align-items: center; width: 240px; height: 34px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px; padding: 0 8px 0 32px; color: var(--ink-3); }
.search:hover { border-color: var(--line-2); }
.search svg { position: absolute; left: 10px; width: 15px; height: 15px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13.5px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
kbd { font: 500 11px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, opacity .15s, border-color .15s; }
.btn:hover { background: var(--hover); }
.btn-gold { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-gold:hover { background: var(--primary); opacity: .86; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 46px; border-radius: 12px; font-size: 15px; }
#wallet-btn { height: 34px; }
#wallet-btn.wallet-on { background: var(--card); color: var(--ink); border-color: var(--line-2); font-family: var(--mono); font-size: 13px; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--ink-2); }
.link-btn:hover { color: var(--ink); border-color: var(--line-2); }
td .link-btn { border: 0; padding: 0; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- page ---------- */
main#app { max-width: 1240px; margin: 0 auto; padding: 36px 24px 72px; min-height: calc(100vh - 200px); }
main#app.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.page-title { font-size: 28px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.025em; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.025em; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 560px; }
.page-head p b { color: var(--ink); }
.page-head p a, .explain a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.page-head p a:hover { text-decoration-color: var(--ink); }
.kpis { display: flex; gap: 36px; }
.kpis .l { font-size: 12px; color: var(--ink-3); }
.kpis .v { font-size: 18px; font-weight: 600; margin-top: 2px; letter-spacing: -.01em; }

.notice { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 28px; color: var(--ink-2); transition: background .15s; }
.notice:hover { background: var(--bg-2); }
.notice-tag { font-size: 12px; font-weight: 600; color: var(--up); background: var(--up-bg); padding: 2px 8px; border-radius: 999px; }
.notice-go { margin-left: auto; color: var(--ink); font-weight: 500; white-space: nowrap; }

.section { margin-top: 56px; }
.section-head { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head .label { display: none; }
.section-head h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--ink-2); }
.section-title { font-size: 15px; font-weight: 600; margin: 36px 0 12px; }
.explain { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.explain h2 { font-size: 18px; font-weight: 600; margin: 0 0 20px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols3 h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.cols3 p { margin: 0; color: var(--ink-2); line-height: 1.65; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.card-pad { padding: 20px; }
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); }
.empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.skeleton { height: 14px; border-radius: 6px; background: var(--hover); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- toolbar + table ---------- */
.tbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tbar-r { display: flex; align-items: center; gap: 8px; }
.ptabs { display: flex; gap: 2px; }
.ptabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.ptabs button:hover { color: var(--ink); }
.ptabs button.on { background: var(--hover); color: var(--ink); }
.cnt { font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.cnt:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2); font-weight: 500; font-size: 13px; }
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--card); }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--hover); color: var(--ink); }
.dd { position: relative; }
.dd-menu { position: absolute; right: 0; top: 40px; width: 310px; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 6px; }
.dd-menu[hidden] { display: none; }
.dd-l { font-size: 12px; color: var(--ink-3); }
.seg-f { display: flex; flex-wrap: wrap; margin-bottom: 6px; }
.ck { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 5px 0; cursor: pointer; }
.ck input { margin-top: 3px; accent-color: var(--ink); }
.ck .faint { display: block; font-size: 12px; }

.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--card); }
table.pools { width: 100%; border-collapse: collapse; }
.pools th { font-size: 12px; font-weight: 500; color: var(--ink-3); text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); user-select: none; }
.pools th.left, .pools td.left { text-align: left; }
.pools th.sortable { cursor: pointer; }
.pools th.sortable:hover, .pools th.sorted { color: var(--ink); }
.pools th.sorted::after { content: ' ↓'; }
.pools th.sorted.asc::after { content: ' ↑'; }
.pools td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; vertical-align: middle; }
.pools tbody tr:last-child td { border-bottom: 0; }
.pools tr[data-a] { cursor: pointer; transition: background .1s; }
.pools tr[data-a]:hover td { background: var(--bg-2); }
.pools th:first-child, .pools td:first-child { padding-left: 18px; }
.pools th:last-child, .pools td:last-child { padding-right: 18px; }
body.compact .pools td { padding-top: 8px; padding-bottom: 8px; }
.pools .idx { width: 28px; padding-right: 0; }
.tokcell { text-align: left !important; }
.tok { display: flex; align-items: center; gap: 11px; }
.tok img, .tok .ph, .avatar img, .avatar .ph, .unit img, .unit .ph, .pal-i img, .pal-i .ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--hover); }
.ph { display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.tok .t { font-weight: 600; display: flex; align-items: center; }
.tok .q { color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.tok .s { font-size: 12px; color: var(--ink-3); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.est { display: inline-block; font-size: 10px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; line-height: 15px; margin-left: 5px; vertical-align: 1px; }
.edge-pill { display: inline-block; font-weight: 600; padding: 3px 8px; border-radius: 6px; min-width: 70px; text-align: right; }
.edge-pill.up { background: var(--up-bg); }
.edge-pill.down { background: var(--down-bg); }
.spark-box { width: 92px; height: 28px; margin-left: auto; color: var(--ink-3); }
.spark { width: 100%; height: 100%; display: block; }
.fv { display: inline-grid; gap: 4px; width: 100px; vertical-align: middle; }
.fv .bar { height: 4px; border-radius: 2px; background: var(--hover); overflow: hidden; display: block; }
.fv .bar i { display: block; height: 100%; border-radius: 2px; }
.fv .f i { background: var(--up); }
.fv .d i { background: var(--down); }
.flags { display: inline-flex; gap: 4px; margin-left: 8px; }
.flag, .vbadge, .badge-rw { display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 6px; border-radius: 5px; color: var(--ink-2); background: var(--hover); white-space: nowrap; }
.flag.bad { color: var(--down); background: var(--down-bg); }
.flag.warn { color: var(--warn); background: var(--warn-bg); }
.vbadge, .badge-rw { color: var(--up); background: var(--up-bg); }
.badge-rw { margin-left: 8px; }
.star { background: none; border: 0; padding: 2px; color: var(--line-2); display: grid; place-items: center; }
.star:hover { color: var(--ink-3); }
.star.on { color: #eab308; }
.more { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; font-size: 13px; border-top: 1px solid var(--line); }
.more:empty { display: none; }
.pager { display: flex; align-items: center; gap: 10px; }
.table-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
.legend { display: flex; gap: 16px; color: var(--ink-3); flex-wrap: wrap; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 4px; border-radius: 2px; display: inline-block; }

/* ---------- pool page ---------- */
.back { display: inline-block; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.pool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pool-head .avatar img, .pool-head .avatar .ph { width: 56px; height: 56px; font-size: 16px; }
.pool-head h1 { font-size: 26px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; letter-spacing: -.025em; }
.pool-head h1 .q { color: var(--ink-3); font-weight: 400; }
.star.big svg { width: 18px; height: 18px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.pool-head .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
.pool-head .meta > span { margin-right: 4px; }
.pool-head .price { margin-left: auto; text-align: right; }
.pool-head .price .v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.pool-head .price .muted { margin-top: 4px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "top panel" "mid panel" "bottom panel"; gap: 20px; align-items: start; }
.area-top { grid-area: top; }
.area-mid { grid-area: mid; display: grid; gap: 20px; }
.area-bottom { grid-area: bottom; }
.panel { grid-area: panel; position: sticky; top: 80px; overflow: hidden; }

.edge-card { padding: 22px 24px; }
.edge-card .top-row { display: flex; align-items: center; gap: 28px; }
.edge-card .big { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.edge-card .what { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.edge-card .say { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.edge-card .say b { color: var(--ink); }
.duel { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.duel .row { display: grid; grid-template-columns: 170px 1fr 80px; gap: 14px; align-items: center; font-size: 13px; color: var(--ink-2); }
.duel .bar { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.duel .bar i { display: block; height: 100%; border-radius: 3px; }
.duel .f .bar i { background: var(--up); }
.duel .d .bar i { background: var(--down); }
.duel .num { text-align: right; font-weight: 600; }
.rw-note { margin-top: 16px; padding: 12px 14px; background: var(--up-bg); border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.rw-note b { color: var(--ink); }

.chart-card, .act-card { overflow: hidden; }
.chart-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
#chart { height: 380px; position: relative; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
#act { max-height: 440px; overflow: auto; }
#act .pools th { position: sticky; top: 0; }
#act .pools td { padding: 9px 14px; font-size: 13px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: inherit; }
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }

.grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.area-bottom > .card:first-child { overflow: hidden; }
.stat { background: var(--card); padding: 16px 18px; }
.stat .l { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 17px; font-weight: 600; margin: 3px 0 1px; letter-spacing: -.01em; }
.stat .n { font-size: 12px; color: var(--ink-3); }
.depth { display: grid; gap: 6px; }
.drow { display: grid; grid-template-columns: 44px 1fr 86px; gap: 10px; align-items: center; font-size: 12.5px; }
.drow .mono:last-child { text-align: right; }
.dbar { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.dbar i { display: block; height: 100%; border-radius: 3px; }
.dbar.up i { background: var(--up); }
.dbar.dn i { background: var(--down); }
.kv .row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv .row:last-child { border-bottom: 0; }
.kv .row span:first-child { color: var(--ink-2); flex: 1; }
.kv .row b { font-weight: 500; text-align: right; }
.notes { margin-top: 20px; display: grid; gap: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-2); }

/* ---------- action panel ---------- */
.panel .tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.panel .tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 0 12px; font-weight: 500; color: var(--ink-3); }
.panel .tabs button:hover { color: var(--ink); }
.panel .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.panel-body { padding: 16px; display: grid; gap: 12px; }
.toggle2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--hover); border-radius: 10px; padding: 3px; }
.toggle2 button { border: 0; background: none; padding: 7px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.toggle2 button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.field { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s; }
.field:focus-within { border-color: var(--ink-3); }
.field .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field label { font-size: 12px; color: var(--ink-3); }
.field .bal { font-size: 12px; color: var(--ink-3); }
.field .bal button { border: 0; background: var(--hover); border-radius: 4px; font-size: 11px; font-weight: 600; padding: 1px 6px; margin-left: 4px; }
.field input { border: 0; outline: 0; background: none; width: 100%; font-size: 26px; font-weight: 600; letter-spacing: -.02em; padding: 4px 0 0; font-variant-numeric: tabular-nums; }
.field input::placeholder { color: var(--line-2); }
.field input[type=range] { accent-color: var(--ink); padding: 0; }
.unit { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.unit img, .unit .ph, .unit .coin { width: 22px; height: 22px; }
.coin { border-radius: 50%; background: linear-gradient(135deg, #9945ff, #14f195); display: inline-block; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.quick button:hover, .quick button.on { color: var(--ink); border-color: var(--ink-3); }
.est-box { display: grid; gap: 6px; padding: 12px; background: var(--bg-2); border-radius: 10px; font-size: 13px; }
.est-box[hidden] { display: none; }
.est-box .row { display: flex; justify-content: space-between; }
.est-box .row span { color: var(--ink-2); }
.settings { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); }
.settings button { background: none; border: 0; color: var(--ink-2); font-size: 12px; }
.settings button:hover { color: var(--ink); }
.position { border-top: 1px solid var(--line); padding: 16px; display: grid; gap: 6px; font-size: 13px; }
.position h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.position .row { display: flex; justify-content: space-between; }

/* ---------- modal, palette, toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .35); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(440px, 100%); max-height: 90vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
.modal-card h2 { font-size: 18px; font-weight: 600; margin: 0 0 6px; padding-right: 28px; }
.modal-card .x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; font-size: 20px; color: var(--ink-3); }
.modal-card .x:hover { background: var(--hover); color: var(--ink); }
.modal.top-modal { align-items: start; padding-top: 12vh; }
.top-modal .modal-card { padding: 0; width: min(600px, 100%); }
.pal input { width: 100%; height: 54px; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: none; padding: 0 18px; font-size: 15px; }
.pal-r { max-height: 50vh; overflow: auto; padding: 6px; }
.pal-h { font-size: 11px; color: var(--ink-3); padding: 10px 12px 4px; font-weight: 500; }
.pal-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; border-radius: 8px; text-align: left; font-size: 13.5px; }
.pal-i.on, .pal-i:hover { background: var(--hover); }
.pal-i img, .pal-i .ph { width: 24px; height: 24px; }
.pal-i .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-i .mono { font-size: 12px; }
.pal-i .pg { width: 24px; text-align: center; color: var(--ink-3); }
.pal-f { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; }
.wallets { display: grid; gap: 8px; margin-top: 18px; }
.wallets button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 500; text-align: left; }
.wallets button:hover { border-color: var(--line-2); background: var(--bg-2); }
.wl { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; }
.tag2 { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.tag2.on { color: var(--up); }
.sim { padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.sim.ok { background: var(--up-bg); color: var(--up); }
.sim.bad { background: var(--down-bg); color: var(--down); word-break: break-word; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 10px 16px; font-size: 13.5px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- portfolio ---------- */
.connect-card { padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.step .n { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.step h3 { font-size: 15px; font-weight: 600; margin: 6px 0; }
.step p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.port-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 0; }
.port-kpis .card { padding: 18px 20px; }
.port-kpis .l, .rw-kpis .l { font-size: 12px; color: var(--ink-3); }
.port-kpis .v { font-size: 22px; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; }

/* ---------- rewards ---------- */
.rw-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 12px 0 8px; }
.rw-hero h1 { font-size: 32px; font-weight: 600; letter-spacing: -.03em; margin: 12px 0 10px; line-height: 1.15; }
.rw-hero p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin: 0; }
.rw-hero .cta { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.gold-text { color: inherit; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.status.on i { background: var(--up); }
.rw-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw-kpis .card { padding: 16px 18px; }
.rw-kpis .v { font-size: 22px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.02em; }
.rw-kpis .n { font-size: 12px; color: var(--ink-3); }
.you { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.flow .f { padding: 18px; border-right: 1px solid var(--line); }
.flow .f:last-child { border-right: 0; }
.flow .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.flow h4 { font-size: 14px; font-weight: 600; margin: 8px 0 4px; }
.flow p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { color: var(--ink-2); line-height: 1.6; padding-left: 14px; border-left: 2px solid var(--line); }
.rules b { color: var(--ink); }
.addr { display: flex; align-items: center; gap: 10px; font: 12.5px var(--mono); padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; word-break: break-all; }
.section.two { display: grid; }

/* ---------- docs ---------- */
.docs-wrap { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 64px; justify-content: space-between; }
.docs { max-width: 760px; }
.docs .lede { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.docs .lede b { color: var(--ink); }
.docs h2 { font-size: 20px; font-weight: 600; margin: 44px 0 10px; scroll-margin-top: 90px; }
.docs p, .docs li { color: var(--ink-2); line-height: 1.75; font-size: 15px; }
.docs b { color: var(--ink); }
.docs ul { padding-left: 20px; }
.docs li { margin: 6px 0; }
.docs table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.docs th, .docs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.docs th { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.docs td:first-child { white-space: nowrap; color: var(--ink); }
.docs a { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.formula { font: 14.5px var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; white-space: pre; overflow-x: auto; }
.toc { position: sticky; top: 100px; align-self: start; margin-top: 100px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc-l { font-size: 12px; color: var(--ink-3); padding: 0 0 10px 16px; font-weight: 500; }
.toc a { font-size: 13px; color: var(--ink-3); padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent; transition: color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-color: var(--ink); }

/* ---------- footer + mobile tab bar ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 13px; color: var(--ink-3); }
.foot-brand { color: var(--ink); font-weight: 600; }
.foot-links { display: flex; gap: 16px; }
.foot-links a:hover { color: var(--ink); }
.foot-note { margin-left: auto; }
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hide-md { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "panel" "mid" "bottom"; }
  .panel { position: static; }
  .docs-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .kpis { gap: 24px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow .f { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .hide-lg { display: inline; }
  .top-inner { padding: 0 16px; gap: 12px; height: 56px; }
  .nav, .search, kbd { display: none; }
  #wallet-btn { margin-left: auto; }
  main#app { padding: 24px 16px 100px; }
  .page-head { gap: 20px; }
  .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; width: 100%; }
  .notice { flex-wrap: wrap; }
  .notice-go { margin-left: 0; }
  .tbar-r { width: 100%; }
  .dd-menu { right: auto; left: 0; width: min(310px, calc(100vw - 32px)); }
  .cols3, .steps, .port-kpis, .you, .two, .rw-hero { grid-template-columns: 1fr; }
  .cols3 { gap: 24px; }
  .flow { grid-template-columns: 1fr; }
  .flow .f { border-right: 0; }
  .grid-stats { grid-template-columns: 1fr 1fr; }
  .pools th:first-child, .pools td:first-child { padding-left: 14px; }
  .pools th:last-child, .pools td:last-child { padding-right: 14px; }
  .pools td { padding: 12px 10px; }
  .pool-head { flex-wrap: wrap; gap: 12px; }
  .pool-head > div:nth-child(2) { flex: 1; min-width: 0; }
  .pool-head .avatar img, .pool-head .avatar .ph { width: 44px; height: 44px; }
  .pool-head h1 { font-size: 24px; }
  .pool-head .price { margin-left: 0; width: 100%; text-align: left; }
  .edge-card .top-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .duel .row { grid-template-columns: 120px 1fr 64px; }
  #chart { height: 300px; }
  .rw-hero h1 { font-size: 26px; }
  .foot { padding-bottom: 64px; }
  .foot-note { margin-left: 0; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: 11px; color: var(--ink-3); font-weight: 500; }
  .tabbar svg { width: 20px; height: 20px; }
  .tabbar a.on { color: var(--ink); }
}
.est { border: 0; padding: 0; color: var(--ink-3); opacity: .8; margin-left: 4px; }
@media (max-width: 760px) {
  .tok .s { max-width: 150px; }
  .tok img, .tok .ph { width: 28px; height: 28px; }
  .edge-pill { min-width: 0; }
  .pools th.sorted::after { content: ''; }
}

/* =====================================================================
   Pooled: next-level pass
   ===================================================================== */
html, body { overflow-x: clip; }
::selection { background: rgba(90,184,255, .25); }
.top { background: rgba(8, 9, 10, .72); border-bottom-color: var(--line); }
.brand .mark { width: 26px; height: 26px; }
.brand span { font-size: 16px; letter-spacing: -.02em; }
.nav a.on { background: rgba(255, 255, 255, .06); }
.search { background: rgba(255, 255, 255, .03); }
.btn-gold:hover { opacity: 1; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
main#app { padding-top: 0; }
.mono-l { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 12px; }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.rv-in, .h-title .ln { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.rv { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.bento .rv:nth-child(2) { transition-delay: .08s; }
.bento .rv:nth-child(3) { transition-delay: .04s; }
.bento .rv:nth-child(4) { transition-delay: .12s; }
.bento .rv:nth-child(5) { transition-delay: .2s; }

/* hero */
.hero { position: relative; text-align: center; padding: 96px 0 8px; isolation: isolate; }
.hero-bg { position: absolute; z-index: -1; top: -60px; bottom: -340px; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, #000 20%, transparent 72%); }
.hero-glow { position: absolute; left: 50%; top: -260px; width: 1100px; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(90,184,255, .16), rgba(90,184,255, .04) 55%, transparent); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .7; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); font-size: 13px; color: var(--ink-2); transition: border-color .2s, background .2s; }
.pill:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(90,184,255, .55); } 100% { box-shadow: 0 0 0 9px rgba(90,184,255, 0); } }
.pill-go { padding: 3px 11px; border-radius: 999px; background: var(--up-bg); color: var(--up); font-weight: 500; font-size: 12.5px; }
.h-title { font-size: clamp(48px, 8.4vw, 104px); font-weight: 600; letter-spacing: -.055em; line-height: .98; margin: 28px 0 24px; }
.h-title .ln { display: inline-block; padding: 0 .02em .06em; background: linear-gradient(180deg, #ffffff 35%, rgba(255, 255, 255, .5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-sub { max-width: 620px; margin: 0 auto; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
.h-sub b { color: var(--ink); font-weight: 500; }
.h-cta { display: flex; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* product frame + edge map */
.frame-wrap { margin-top: 72px; }
.frame { position: relative; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012) 40%), #0a0b0d; box-shadow: 0 50px 140px -30px rgba(90,184,255, .14), 0 40px 100px rgba(0, 0, 0, .7); overflow: hidden; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a), transparent 0 72%, rgba(90,184,255, .85) 86%, rgba(255, 255, 255, .7) 88%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam 8s linear infinite; pointer-events: none; z-index: 2; }
@keyframes beam { to { --a: 360deg; } }
.frame-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); flex-wrap: wrap; }
.fh-l, .fh-r { display: flex; align-items: center; gap: 18px; }
.fh-l .live-dot { color: var(--ink); font: inherit; }
.fh-meta { text-transform: none; letter-spacing: 0; font-family: Inter, sans-serif; font-size: 12.5px; }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid; }
.lg i.g { border-color: var(--up); background: rgba(90,184,255, .2); }
.lg i.r { border-color: rgba(245,158,91, .6); background: rgba(245,158,91, .1); }
.lg i.o { width: 12px; height: 12px; border-color: var(--ink-3); }
.frame-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.em { position: relative; height: 470px; }
.em canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.em-ax { position: absolute; font: 500 10.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.em-x { right: 20px; bottom: 36px; }
.em-y { left: 58px; top: 4px; }
.em-tip { position: absolute; z-index: 3; width: 200px; padding: 10px 12px; border-radius: 12px; background: rgba(14, 15, 17, .9); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12.5px; pointer-events: none; display: grid; gap: 5px; }
.em-tip[hidden] { display: none; }
.tt-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tt-h img, .tt-h .ph { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.tt-r { display: flex; justify-content: space-between; color: var(--ink-2); }
.tt-r b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.tt-r b.up { color: var(--up); }
.tt-r b.down { color: var(--down); }
.em-side { border-left: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .012); }
.em-side-h { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 0 6px 10px; }
.et { display: grid; grid-template-columns: 14px 24px minmax(0, 1fr) 44px 58px; gap: 9px; align-items: center; width: 100%; padding: 9px 6px; border: 0; background: none; border-radius: 10px; text-align: left; transition: background .15s; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 900ms); }
.et:hover { background: rgba(255, 255, 255, .05); }
.et-r { font: 500 11px var(--mono); color: var(--ink-3); }
.et img, .et .ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--hover); }
.et .ph { font-size: 9px; }
.et-s { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-b { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.et-b i { display: block; height: 100%; background: var(--up); border-radius: 2px; }
.et b { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.em-side-f { margin-top: auto; padding: 12px 6px 0; font-size: 13px; color: var(--ink-2); }
.em-side-f:hover { color: var(--ink); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st { padding: 28px 24px; border-right: 1px solid var(--line); }
.st:first-child { padding-left: 0; }
.st:last-child { border-right: 0; }
.st .l { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.st .v { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.st .n { font-size: 13px; color: var(--ink-3); }

/* sections */
.section { margin-top: 112px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 12px; background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .6)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.section-head p { font-size: 16px; }
#all-pools { scroll-margin-top: 80px; }

/* table, dark-tuned */
.table-wrap { background: var(--card); border-color: var(--line); border-radius: 16px; }
.pools th { background: rgba(255, 255, 255, .015); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.pools tr[data-a]:hover td { background: rgba(255, 255, 255, .025); }
.ptabs button.on, .seg button.on { background: rgba(255, 255, 255, .07); }
.chip, .seg, .icon-btn { background: rgba(255, 255, 255, .02); }
.dd-menu { background: #101113; }

/* spotlight cards */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(480px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .055), transparent 45%); opacity: 0; transition: opacity .35s; z-index: 0; }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(90,184,255, .55), transparent 50%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
.spot:hover::after, .spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bx { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 60%), var(--card); padding: 22px; display: flex; flex-direction: column; overflow: hidden; }
.b-edge { grid-column: span 2; }
.bx-vis { height: 190px; margin: -6px -6px 22px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.035), transparent 70%), #0a0b0c; display: grid; place-items: center; position: relative; overflow: hidden; }
.bx h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.bx p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.ev { width: min(520px, 88%); display: grid; gap: 14px; font-size: 13px; }
.ev-h { display: flex; justify-content: space-between; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.ev-row { display: grid; grid-template-columns: 100px 1fr 70px; gap: 14px; align-items: center; color: var(--ink-2); }
.ev-row b { text-align: right; font-variant-numeric: tabular-nums; }
.ev-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.ev-bar i { display: block; height: 100%; border-radius: 5px; transition: width 1.6s var(--ease) .3s; }
.ev-bar.f i { background: linear-gradient(90deg, rgba(90,184,255,.5), var(--up)); }
.ev-bar.d i { background: linear-gradient(90deg, rgba(245,158,91,.4), var(--down)); }
.bx:not(.in) .ev-bar i { width: 0 !important; }
.ev-eq { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line-2); font: 500 13px var(--mono); color: var(--ink-2); }
.ev-eq b { font-size: 15px; }
.ring { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--up); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 289.03; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 6px rgba(90,184,255, .5)); }
.ring-t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-t b { font: 500 24px var(--mono); letter-spacing: -.02em; }
.ring-t span { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-top: 2px; }
.zap { width: 92%; overflow: visible; }
.zap .fl-bg { stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; fill: none; }
.zap .fl-run { stroke: var(--up); stroke-width: 2; fill: none; stroke-dasharray: 8 56; stroke-linecap: round; animation: run 1.6s linear infinite; filter: drop-shadow(0 0 4px rgba(90,184,255, .8)); }
.zap .fl-run.r2 { animation-delay: .8s; }
@keyframes run { from { stroke-dashoffset: 64; } to { stroke-dashoffset: 0; } }
.zap .nd { fill: #101113; stroke: rgba(255, 255, 255, .16); }
.zap .nd.hot { stroke: rgba(90,184,255, .5); animation: hot 1.6s ease-in-out infinite; }
@keyframes hot { 50% { stroke: rgba(90,184,255, .95); } }
.zap text { fill: var(--ink); font: 600 11px var(--mono); text-anchor: middle; dominant-baseline: central; letter-spacing: .06em; }
.zap text.sm { fill: var(--ink-3); font-weight: 500; font-size: 10px; }
.fl-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 22px; }
.fl-cloud span { font: 500 12px var(--mono); padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-3); animation: flagz 6.4s ease-in-out infinite; animation-delay: calc(var(--i) * .8s); }
@keyframes flagz { 0%, 14%, 100% { color: var(--ink-3); border-color: var(--line-2); background: transparent; } 4%, 10% { color: var(--warn); border-color: rgba(251, 191, 36, .45); background: var(--warn-bg); } }
.tr-v { text-align: center; }
.tr-big { font: 500 44px var(--mono); letter-spacing: -.04em; }
.tr-l { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-top: 2px; }
.tr-rows { display: flex; gap: 14px; margin-top: 18px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; justify-content: center; }
.tr-rows i { font-style: normal; color: var(--up); margin-right: 5px; }

/* rewards band */
.band { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 48px; border: 1px solid var(--line-2); border-radius: 24px; background: radial-gradient(700px 360px at 0% 0%, rgba(90,184,255, .1), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(255, 255, 255, .03), transparent 60%), var(--card); overflow: hidden; }
.band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; margin: 0 0 14px; }
.band h2 .dim { color: var(--ink-3); }
.band p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin: 0; max-width: 520px; }
.band-r { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.band-r .s { background: #0b0c0e; padding: 22px; }
.band-r .l { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.band-r .v { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 8px; }

/* other pages, dark-tuned */
.edge-card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 70%), var(--card); }
.page-title { font-size: 36px; letter-spacing: -.04em; margin-top: 36px; }
.rw-hero { padding-top: 40px; }
.rw-hero h1 { font-size: 44px; letter-spacing: -.045em; }
.back { margin-top: 28px; }
.foot { margin-top: 120px; }
.docs-wrap { padding-top: 8px; }

@media (max-width: 1100px) {
  .frame-body { grid-template-columns: 1fr; }
  .em-side { border-left: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-edge { grid-column: span 2; }
  .band { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .h-sub { font-size: 16px; }
  .frame-wrap { margin-top: 48px; }
  .frame-head { padding: 11px 14px; }
  .fh-r { gap: 12px; }
  .em { height: 340px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .st { padding: 20px 16px; border-bottom: 1px solid var(--line); }
  .st:nth-child(2) { border-right: 0; }
  .st:nth-child(3) { padding-left: 0; }
  .st:nth-child(n+3) { border-bottom: 0; }
  .st .v { font-size: 26px; }
  .section { margin-top: 80px; }
  .bento { grid-template-columns: 1fr; }
  .b-edge { grid-column: auto; }
  .band { padding: 24px; gap: 28px; }
  .page-title { font-size: 30px; }
  .rw-hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}

.tr-v { max-width: 100%; padding: 0 18px; }
.tr-rows { gap: 6px 14px; }
.ring { width: 150px; height: 150px; }
.ring-t span { font-size: 9px; letter-spacing: .08em; }
.em-x { bottom: 4px; }
.em-y { top: 10px; }
@media (max-width: 760px) {
  .pill-go, .fh-r { display: none; }
  .pill { padding: 6px 14px; }
  .em-side .et:nth-child(n+6) { display: none; }
}

.brand .mark { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(120, 170, 255, .25)); }

/* ---------- chrome / iridescent pass (matches the bubble logo) ---------- */
:root { --chrome: linear-gradient(100deg, #ffffff 0%, #f6e6d8 30%, #c9d6ea 58%, #5ab8ff 100%); }
.top { background: rgba(0, 0, 0, .7); }
.hero-glow { background: radial-gradient(closest-side, rgba(90, 184, 255, .13), rgba(245, 158, 91, .04) 55%, transparent); }
.h-title .ln.irid { background: linear-gradient(100deg, #fff 0%, #f3dccb 28%, #b9c9e4 60%, #5ab8ff 100%); -webkit-background-clip: text; background-clip: text; }
.section-head h2 { background-image: linear-gradient(100deg, #fff 30%, #d9dfea 70%, #9ccaf5); }
.bub { position: absolute; pointer-events: none; user-select: none; filter: saturate(1.05); animation: bob 14s ease-in-out infinite alternate; }
.b1 { width: 560px; left: calc(50% - 980px); top: -150px; animation-duration: 16s; }
.b2 { width: 420px; left: calc(50% + 560px); top: 330px; animation-duration: 13s; animation-delay: -4s; }
.b3 { width: 64px; left: calc(50% - 470px); top: 150px; opacity: .9; animation-duration: 9s; animation-delay: -2s; }
.b4 { width: 42px; left: calc(50% + 470px); top: 250px; opacity: .85; animation-duration: 11s; animation-delay: -6s; }
@keyframes bob { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(14px, -18px, 0) rotate(8deg); } 100% { transform: translate3d(-10px, 12px, 0) rotate(-6deg); } }
.hero-grid { -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 0%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse 50% 55% at 50% 0%, #000 15%, transparent 70%); }
.pill-go { background: rgba(90, 184, 255, .12); }
.frame { box-shadow: 0 50px 140px -30px rgba(90, 184, 255, .14), 0 40px 100px rgba(0, 0, 0, .8); }
.frame::before { background: conic-gradient(from var(--a), transparent 0 70%, rgba(245, 158, 91, .7) 80%, rgba(255, 255, 255, .85) 85%, rgba(90, 184, 255, .9) 89%, transparent 93%); }
.band { background: radial-gradient(700px 360px at 0% 0%, rgba(90, 184, 255, .1), transparent 60%), radial-gradient(500px 320px at 100% 100%, rgba(245, 158, 91, .07), transparent 60%), var(--card); }
.edge-pill.up { background: rgba(90, 184, 255, .1); }
@media (max-width: 760px) {
  .b1 { width: 300px; left: -150px; top: -80px; }
  .b2 { width: 220px; left: auto; right: -110px; top: 420px; }
  .b3, .b4 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bub { animation: none; } }
.b3 { left: calc(50% - 560px); top: 470px; width: 56px; }
.b4 { left: calc(50% + 610px); top: 110px; width: 44px; }
@media (max-width: 760px) {
  .b2 { width: 190px; right: -100px; top: 610px; }
}

.x-link { margin-left: -16px; color: var(--ink); }
.x-btn svg { margin-right: 2px; }
@media (max-width: 760px) { .x-link { margin-left: auto; } #wallet-btn { margin-left: 0; } .x-btn { display: none; } }
